1(function ($, Drupal, settings) {/*! For license information please see core.bundle.js.LICENSE.txt */ 2!function(e, t) { 3 "object" == typeof exports && "object" == typeof module ? module.exports = t(require("jQuery")) : "function" == typeof define && define.amd ? define([ "jQuery" ], t) : "object" == typeof exports ? exports.Stratis = t(require("jQuery")) : e.Stratis = t(e.jQuery); 4}(window, (function(e) { 5 return function(e) { 6 var t = {}; 7 function n(i) { 8 if (t[i]) return t[i].exports; 9 var r = t[i] = { 10 i: i, 11 l: !1, 12 exports: {} 13 }; 14 return e[i].call(r.exports, r, r.exports, n), r.l = !0, r.exports; 15 } 16 return n.m = e, n.c = t, n.d = function(e, t, i) { 17 n.o(e, t) || Object.defineProperty(e, t, { 18 enumerable: !0, 19 get: i 20 }); 21 }, n.r = function(e) { 22 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { 23 value: "Module" 24 }), Object.defineProperty(e, "__esModule", { 25 value: !0 26 }); 27 }, n.t = function(e, t) { 28 if (1 & t && (e = n(e)), 8 & t) return e; 29 if (4 & t && "object" == typeof e && e && e.__esModule) return e; 30 var i = Object.create(null); 31 if (n.r(i), Object.defineProperty(i, "default", { 32 enumerable: !0, 33 value: e 34 }), 2 & t && "string" != typeof e) for (var r in e) n.d(i, r, function(t) { 35 return e[t]; 36 }.bind(null, r)); 37 return i; 38 }, n.n = function(e) { 39 var t = e && e.__esModule ? function() { 40 return e.default; 41 } : function() { 42 return e; 43 }; 44 return n.d(t, "a", t), t; 45 }, n.o = function(e, t) { 46 return Object.prototype.hasOwnProperty.call(e, t); 47 }, n.p = "/js/", n(n.s = 600); 48 }([ function(e, t, n) { 49 "use strict"; 50 n.r(t), n.d(t, "type", (function() { 51 return o; 52 })), n.d(t, "executeIfFunction", (function() { 53 return s; 54 })), n.d(t, "switchcase", (function() { 55 return a; 56 })), n.d(t, "switchcaseF", (function() { 57 return l; 58 })), n.d(t, "checkExpectedParams", (function() { 59 return c; 60 })), n.d(t, "callIfTrue", (function() { 61 return u; 62 })), n.d(t, "getViewport", (function() { 63 return d; 64 })), n.d(t, "flatten", (function() { 65 return h; 66 })), n.d(t, "flatNodes", (function() { 67 return f; 68 })), n.d(t, "addClass", (function() { 69 return p; 70 })), n.d(t, "addClassToSingleEl", (function() { 71 return m; 72 })), n.d(t, "convertToHTML", (function() { 73 return g; 74 })), n.d(t, "removeClass", (function() { 75 return v; 76 })), n.d(t, "removeClassFromSingleEl", (function() { 77 return b; 78 })), n.d(t, "hasClass", (function() { 79 return y; 80 })), n.d(t, "toggleClass", (function() { 81 return x; 82 }
82)), n.d(t, "manageBodyOverflow", (function() { 83 return w; 84 })), n.d(t, "setAttributes", (function() { 85 return _; 86 })), n.d(t, "removeAttributes", (function() { 87 return S; 88 })), n.d(t, "outerHeight", (function() { 89 return C; 90 })), n.d(t, "outerWidth", (function() { 91 return T; 92 })), n.d(t, "getSiblings", (function() { 93 return k; 94 })), n.d(t, "findAncestor", (function() { 95 return M; 96 })), n.d(t, "findAncestorByTag", (function() { 97 return A; 98 })), n.d(t, "matches", (function() { 99 return O; 100 })), n.d(t, "getFirstFocusableElement", (function() { 101 return P; 102 })), n.d(t, "getNextFocusableElement", (function() { 103 return I; 104 })), n.d(t, "getPrevFocusableElement", (function() { 105 return L; 106 })), n.d(t, "getLastFocusableElement", (function() { 107 return D; 108 })), n.d(t, "getUniqId", (function() { 109 return N; 110 })), n.d(t, "setTabindex", (function() { 111 return F; 112 })), n.d(t, "toggleTabindex", (function() { 113 return j; 114 })), n.d(t, "initAriaControls", (function() { 115 return R; 116 })), n.d(t, "parseFormData", (function() { 117 return B; 118 })), n.d(t, "encodeQueryString", (function() { 119 return z; 120 })), n.d(t, "parseToHtml", (function() { 121 return H; 122 })), n.d(t, "removeAriaControls", (function() { 123 return $; 124 })), n.d(t, "toggleAttribute", (function() { 125 return W; 126 })), n.d(t, "setAriaControls", (function() { 127 return q; 128 })), n.d(t, "manageAriaControls", (function() { 129 return V; 130 })), n.d(t, "getBrowserName", (function() { 131 return Y; 132 })), n.d(t, "getFocusableElements", (function() { 133 return G; 134 })), n.d(t, "getFocusableChildren", (function() { 135 return U; 136 })), n.d(t, "isFE", (function() { 137 return X; 138 })), n.d(t, "isFocusable", (function() { 139 return K; 140 })), n.d(t, "setFirstElementFocus", (function() { 141 return Z; 142 })), n.d(t, "setLastElementFocus", (function() { 143 return J; 144 })), n.d(t, "initFocusTrap", (function() { 145 return Q; 146 })), n.d(t, "generateHash", (function() { 147 return ee; 148 })), n.d(t, "debounce", (function() { 149 return te; 150 })), n.d(t, "throttle", (function() { 151 return ne; 152 })), n.d(t, "hasElement", (function() { 153 return ie; 154 })), n.d(t, "range", (function() { 155 return re; 156 })), n.d(t, "extendDefaults", (function() { 157 return oe; 158 })), n.d(t, "insertAfter", (function() { 159 return se; 160 })), n.d(t, "formatString", (function() { 161 return ae; 162 })), n.d(t, "serializeForm", (function() { 163 return le; 164 })), n.d(t, "manageTabindex", (function() { 165 return ce; 166 })), n.d(t, "setChildrenTabindex", (function() { 167 return ue; 168 })); 169 var i = n(52), r = n.n(i); 170 const o = {}; 171 [ "Arguments", "Function", "String", "Number", "Date", "RegExp" ].forEach(e => { 172 o["is" + e] = t => Object.prototype.toString.call(t) === `[object ${e}]`; 173 }); 174 const s = e => o.isFunction(e) ? e() : e, a = e => t => n => Object.prototype.hasOwnProperty.call(e, n) ? e[n] : t, l = e => t => n => s(a(e)(t)(n)), c = e => { 175 const t = e => a({ 176 string: "string" == typeof e, 177 number: "number" == typeof e, 178 boolean: "boolean" == typeof e, 179 function: "function" == typeof e, 180 element: e instanceof Element, 181 node: e.nodeType, 182 array: Array.isArray(e), 183 object: e instanceof Object && !(e instanceof Array) 184 })(!1); 185 Object.keys(e).forEach(n => {
186 if (!t(e[n])("array")) throw new Error("checkExpectedParams: You should pass values as an Array! Get: " + e[n]); 187 e[n].forEach(e => { 188 if (null == e) throw new Error("checkExpectedParams: Parameter is undefined!"); 189 if (!t(e)(n)) throw console.log("Element with wrong type: ", e), window.errorExpected = e, 190 new Error(`checkExpectedParams: Parameter has wrong type. See above or check 'window.errorExpected'.\n (Expecting '${n}' type for '${Object.prototype.toString.call(e)}')!`); 191 }); 192 }); 193 }, u = (e, t, n = null) => (c({ 194 boolean: [ e ], 195 function: [ t ] 196 }), e ? t() : s(n)), d = () => { 197 const e = { 198 0: "smartphone", 199 767: "tablet", 200 1279: "desktop" 201 }, t = window.innerWidth; 202 let n; 203 for (const i in e) { 204 if (!(i < t)) break; 205 n = e[i]; 206 } 207 return n; 208 }, h = e => [].concat(...e || []), f = (...e) => e.reduce((e, t) => e.concat(t && t.length ? [ ...t ] : t), []).filter(e => e instanceof Element), p = (e, t) => { 209 const n = Array.isArray(t) ? t : [].concat(t.split(" ")); 210 f(e).forEach(e => ((e, t) => { 211 e.classList ? e.classList.add(...t) : e.className += " " + t.join(" "); 212 })(e, n)); 213 }, m = (e, t) => { 214 ((e, t) => { 215 e.classList ? e.classList.add(...t) : e.className += " " + t.join(" "); 216 })(e, Array.isArray(t) ? t : [].concat(t.split(" "))); 217 }, g = e => { 218 const t = document.createElement("html"); 219 return t.innerHTML = e, t; 220 }, v = (e, t) => { 221 const n = Array.isArray(t) ? t : t.split(" "); 222 f(e).forEach(e => ((e, t) => { 223 e.classList ? e.classList.remove(...t) : e.className = e.className.replace(new RegExp(`(^|\\b)${t.split(" ").join("|")}(\\b|$)`, "gi"), " "); 224 })(e, n)); 225 }, b = (e, t) => { 226 ((e, t) => { 227 e.classList ? e.classList.remove(...t) : e.className = e.className.replace(new RegExp(`(^|\\b)${t.split(" ").join("|")}(\\b|$)`, "gi"), " "); 228 })(e, Array.isArray(t) ? t : t.split(" ")); 229 }, y = (e, t) => { 230 c({ 231 element: [ e ] 232 }); 233 const n = Array.isArray(t) ? t : [].concat(t.split(" ")); 234 if (e.classList) return Boolean(n.filter(t => e.classList.contains(t)).length); 235 const i = "[object SVGAElement]" === Object.prototype.toString.call(e) ? e.className.baseVal : e.className; 236 return new RegExp(`(^| )(${n.join("|")})( |$)`, "gi").test(i); 237 }, x = (e, t, n) => { 238 c({ 239 element: [ e ] 240 }); 241 return (("boolean" == typeof n ? n : y(e, t)) ? p : v)(e, t); 242 }, w = (e = null, t = "site-wrapper") => { 243 const n = document.querySelector("." + t); 244 "hidden" === e ? (p(document.body, "-overflow-hidden"), p(n, "-overflow-hidden")) : (v(document.body, "-overflow-hidden"), 245 v(n, "-overflow-hidden")); 246 }, _ = (e, t) => { 247 c({ 248 element: [ e ], 249 object: [ t ] 250 }), Object.keys(t).forEach(n => { 251 e.setAttribute(n, t[n]); 252 }); 253 }, S = (e, t) => { 254 c({ 255 element: [ e ], 256 array: [ t ] 257 }), t.forEach(t => { 258 e.removeAttribute(t); 259 }); 260 }, E = (e, t) => { 261 c({ 262 element: [ e ], 263 string: [ t ] 264 }); 265 let n = e["offset" + t]; 266 const i = getComputedStyle(e), r = a({ 267 Height: [ "marginTop", "marginBottom" ], 268 Width: [ "marginLeft", "marginRight" ] 269 })("Height"), [o, s] = r(t); 270 return n += parseInt(i[o], 10) + parseInt(i[s], 10), n; 271 }, C = e => E(e, "Height"), T = e => E(e, "Width"), k = (e, t) => { 272 c({ 273 node: [ e ], 274 function: t 275 }); 276 const n = []; 277 let i = e.parentElement.firstElementChild; 278 do { 279 t && !t(i) || n.push(i); 280 } while (null !== (i = i.nextElementSibling)); 281 return n; 282 }, M = (e, t) => { 283 c({ 284 element: [ e ],
285 string: [ t ] 286 }); 287 let n = e; 288 for (;!y(n, t); ) { 289 if (n === document.body) { 290 n = null; 291 break; 292 } 293 n = n.parentNode; 294 } 295 return n; 296 }, A = (e, t) => { 297 c({ 298 element: [ e ], 299 string: [ t ] 300 }); 301 let n = e; 302 for (;n.tagName.toUpperCase() !== t.toUpperCase() && (n = n.parentNode); ) ; 303 return n; 304 }, O = (e, t) => { 305 (e.matches || e.matchesSelector || e.msMatchesSelector || e.mozMatchesSelector || e.webkitMatchesSelector || e.oMatchesSelector).call(e, t); 306 }, P = e => (o.isString(e) ? document.querySelector(e) : e).querySelector("a, input, select, button"), I = (e, t) => { 307 const n = r.a.query.focusable({ 308 context: t 309 }); 310 if (!n.length) return null; 311 const i = n.findIndex(t => t === e); 312 return i >= 0 && i < n.length - 1 ? n[i + 1] : n[0]; 313 }, L = (e, t) => { 314 const n = r.a.query.focusable({ 315 context: t 316 }); 317 if (!n.length) return null; 318 const i = n.findIndex(t => t === e); 319 return i > 0 ? n[i - 1] : n[n.length - 1]; 320 }, D = e => { 321 const t = (o.isString(e) ? document.querySelector(e) : e).querySelectorAll("a, input, select, button"); 322 return t[t.length - 1]; 323 }, N = () => Math.random().toString(36).substr(2, 16), F = (e, t) => { 324 const n = (o.isString(e) ? document.querySelector(e) : e).querySelectorAll("a, input, select, button"); 325 for (let e = 0; e < n.length; e++) n[e].setAttribute("tabindex", parseInt(t, 10)); 326 }, j = e => { 327 const t = e.getAttribute("tabindex") || 0; 328 return e.setAttribute("tabindex", t < 0 ? 0 : -1); 329 }, R = (e, t, n = [ "close", "overlay", "toggle" ]) => { 330 const i = "relations-" + N(); 331 [].concat(e).forEach(e => { 332 const t = { 333 "aria-controls": i, 334 "aria-expanded": !1 335 }; 336 n.filter(t => e.className.indexOf(t) >= 0).length || (t["aria-haspopup"] = !0), 337 _(e, t); 338 }); 339 const r = o.isString(t) ? document.querySelector(t) : t; 340 r.id = i, r.setAttribute("aria-hidden", !0); 341 }, B = e => { 342 const t = {}; 343 for (const [n, i] of e.entries()) t[n] = i; 344 return t; 345 }, z = e => { 346 c({ 347 object: [ e ] 348 }); 349 const t = Object.entries(e).map(([e, t]) => `${e}=${t}`); 350 return t.length ? t.join("&") : ""; 351 }, H = e => { 352 const t = document.createElement("html"); 353 return t.innerHTML = e, t; 354 }, $ = e => { 355 S(e, [ "aria-hidden", "aria-expanded", "aria-haspopup", "aria-controls" ]), [].slice.call(e.querySelectorAll("*")).forEach(e => { 356 S(e, [ "aria-hidden", "aria-expanded", "aria-haspopup", "aria-controls", "id" ]); 357 }); 358 }, W = (e, t) => { 359 c({ 360 element: [ e ], 361 string: [ t ] 362 }); 363 const n = "true" === e.getAttribute(t) ? "false" : "true"; 364 e.setAttribute(t, n); 365 }, q = (e, t, n) => { 366 const i = "opened" === n || !0 === n ? 1 : 0; 367 [].concat(e).forEach(e => { 368 e.setAttribute("aria-expanded", (!!i).toString()); 369 }), t.setAttribute("aria-hidden", (!i).toString()); 370 }, V = (e, t) => { 371 const n = t.getAttribute("aria-hidden"); 372 [].concat(e).forEach(e => { 373 q(e, t, "true" === n); 374 }); 375 }; 376 function Y() { 377 return window.chrome ? "Chrome" : window.opr && window.opr.addons || window.opera || navigator.userAgent.indexOf(" OPR/") >= 0 ? "Opera" : "undefined" != typeof InstallTrigger ? "Firefox" : /constructor/i.test(window.HTMLElement) || "[object SafariRemoteNotification]" === (!window.safari).toString() ? "Safari" : document.DOCUMENT_NODE ? "Internet Explorer" : window.styleMedia ? "Microsoft Edge" : void 0; 378 } 379 const G = (e, t = !1) => { 380 let n; 381 return c({ 382 element: [ e ], 383 boolean: [ t ] 384 }
384), n = t ? '[tabindex="0"]' : 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]', 385 Array.prototype.slice.call(e.querySelectorAll(n)); 386 }, U = (e, t = !1) => G(e, t).filter(t => t.parentNode === e), X = () => window.location.href.includes("integration-main") || window.location.href.includes("localhost"), K = e => [ "a", "button", "select", "input", "textarea" ].filter(t => e.tagName.toLowerCase() === t).length > 0, Z = e => { 387 e[0].focus(); 388 }, J = e => { 389 e[e.length - 1].focus(); 390 }, Q = (e, t, n = !1) => { 391 const i = n ? G(e, !0) : G(e), r = i[0], o = i[i.length - 1]; 392 9 === t.keyCode && (t.shiftKey ? document.activeElement === r && (t.preventDefault(), 393 o.focus()) : document.activeElement === o && (t.preventDefault(), r.focus())); 394 }, ee = e => { 395 let t = 0; 396 if (0 === e.length) return t; 397 for (let n = 0; n < e.length; n++) { 398 t = 31 * t + e.charCodeAt(n), t |= 0; 399 } 400 return t; 401 }, te = (e, t) => { 402 let n = null; 403 return (...i) => { 404 clearTimeout(n), n = setTimeout(() => { 405 e(...i); 406 }, t); 407 }; 408 }, ne = (e, t = 250, n) => { 409 let i, r; 410 return (...o) => { 411 const s = n || void 0, a = +new Date, l = o; 412 i && a < i + t ? (clearTimeout(r), r = setTimeout(() => { 413 i = a, e.apply(s, l); 414 }, t)) : (i = a, e.apply(s, l)); 415 }; 416 }, ie = (e, t) => { 417 if (null !== t) for (let n = 0; n < e.length; n++) if (e[n] === t) return e[n] === t; 418 }, re = (e, t, n = !0) => { 419 const i = [], r = e < t, o = n ? r ? t + 1 : t - 1 : t; 420 for (let t = e; r ? t < o : t > o; r ? t += 1 : t -= 1) i.push(t); 421 return i; 422 }, oe = (...e) => { 423 const t = e => e && "object" == typeof e; 424 return e.reduce((e, n) => (Object.keys(n).forEach(i => { 425 const r = e[i], o = n[i]; 426 Array.isArray(r) && Array.isArray(o) ? e[i] = r.concat(...o) : t(r) && t(o) ? e[i] = oe(r, o) : e[i] = o; 427 }), e), {}); 428 }, se = (e, t) => { 429 c({ 430 node: [ e, t ] 431 }), t.parentNode.insertBefore(e, t.nextSibling); 432 }, ae = (e, t, n = (e => e)) => { 433 const i = e.split(" "), r = []; 434 let o = ""; 435 return i.forEach((e, s) => { 436 t < o.length + e.length && (r.push(n(o)), o = ""), o += e + " ", i.length === s + 1 && r.push(n(o)); 437 }), r; 438 }, le = e => { 439 const t = []; 440 for (let n = 0; n < e.elements.length; n++) { 441 const i = e.elements[n]; 442 if (i.name && !i.disabled && "file" !== i.type && "reset" !== i.type && "submit" !== i.type && "button" !== i.type) if ("select-multiple" === i.type) for (let e = 0; e < i.options.length; e++) i.options[e].selected && t.push(`${encodeURIComponent(i.name)}=${encodeURIComponent(i.options[e].value)}`); else ("checkbox" !== i.type && "radio" !== i.type || i.checked) && t.push(`${encodeURIComponent(i.name)}=${encodeURIComponent(i.value)}`); 443 } 444 return t.join("&"); 445 }, ce = (e, t, n = 0) => { 446 if (c({ 447 element: [ e ], 448 number: [ n ] 449 }), !n) return F(e, t); 450 [ ...e.children ].forEach(e => { 451 K(e) && e.setAttribute("tabindex", t), n > 1 && ce(e, t, n - 1); 452 }); 453 }, ue = (e, t) => { 454 [ ...e.children ].forEach(e => !!K(e) && e.setAttribute("tabindex", t)); 455 }; 456 }, function(e, t, n) { 457 var i = n(13), r = n(24), o = n(46), s = n(39), a = n(55), l = function(e, t, n) { 458 var c, u, d, h, f = e & l.F, p = e & l.G, m = e & l.S, g = e & l.P, v = e & l.B, b = p ? i : m ? i[t] || (i[t] = {}) : (i[t] || {}).prototype, y = p ? r : r[t] || (r[t] = {}), x = y.prototype || (y.prototype = {}); 459 for (c in p && (n = t), n) d = ((u = !f && b && void 0 !== b[c]) ? b : n)[c], h = v && u ? a(d, i) : g && "function" == typeof d ? a(Function.call, d) : d, 460 b && s(b, c, d, e & l.U), y[c] != d && o(y, c, h), g && x[c] != d && (x[
460c] = d); 461 }; 462 i.core = r, l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, 463 e.exports = l; 464 }, , , , , function(t, n) { 465 t.exports = e; 466 }, , , function(e, t, n) { 467 "use strict"; 468 Object.defineProperty(t, "__esModule", { 469 value: !0 470 }), t.default = function(e) { 471 var t = e.context, n = e.label, i = void 0 === n ? "context-to-element" : n, r = e.resolveDocument, s = e.defaultToDocument, a = (0, 472 o.default)(t)[0]; 473 if (r && a && a.nodeType === Node.DOCUMENT_NODE && (a = a.documentElement), !a && s) return document.documentElement; 474 if (!a) throw new TypeError(i + " requires valid options.context"); 475 if (a.nodeType !== Node.ELEMENT_NODE && a.nodeType !== Node.DOCUMENT_FRAGMENT_NODE) throw new TypeError(i + " requires options.context to be an Element"); 476 return a; 477 }; 478 var i, r = n(34), o = (i = r) && i.__esModule ? i : { 479 default: i 480 }; 481 e.exports = t.default; 482 }, , , , function(e, t) { 483 var n = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 484 "number" == typeof __g && (__g = n); 485 }, function(e, t) { 486 e.exports = function(e) { 487 try { 488 return !!e(); 489 } catch (e) { 490 return !0; 491 } 492 }; 493 }, function(e, t, n) { 494 var i = n(16); 495 e.exports = function(e) { 496 if (!i(e)) throw TypeError(e + " is not an object!"); 497 return e; 498 }; 499 }, function(e, t) { 500 e.exports = function(e) { 501 return "object" == typeof e ? null !== e : "function" == typeof e; 502 }; 503 }, , , , , function(e, t, n) { 504 var i = n(148)("wks"), r = n(87), o = n(13).Symbol, s = "function" == typeof o; 505 (e.exports = function(e) { 506 return i[e] || (i[e] = s && o[e] || (s ? o : r)("Symbol." + e)); 507 }).store = i; 508 }, function(e, t, n) { 509 var i = n(57), r = Math.min; 510 e.exports = function(e) { 511 return e > 0 ? r(i(e), 9007199254740991) : 0; 512 }; 513 }, function(e, t, n) { 514 "use strict"; 515 Object.defineProperty(t, "__esModule", { 516 value: !0 517 }); 518 var i, r = n(281), o = (i = r) && i.__esModule ? i : { 519 default: i 520 }; 521 var s = JSON.parse(JSON.stringify(o.default)), a = s.os.family || "", l = "Android" === a, c = "Windows" === a.slice(0, 7), u = "OS X" === a, d = "iOS" === a, h = "Blink" === s.layout, f = "Gecko" === s.layout, p = "Trident" === s.layout, m = "EdgeHTML" === s.layout, g = "WebKit" === s.layout, v = parseFloat(s.version), b = Math.floor(v); 522 s.majorVersion = b, s.is = { 523 ANDROID: l, 524 WINDOWS: c, 525 OSX: u, 526 IOS: d, 527 BLINK: h, 528 GECKO: f, 529 TRIDENT: p, 530 EDGE: m, 531 WEBKIT: g, 532 IE9: p && 9 === b, 533 IE10: p && 10 === b, 534 IE11: p && 11 === b 535 }, t.default = s, e.exports = t.default; 536 }, function(e, t) { 537 var n = e.exports = { 538 version: "2.6.12" 539 }; 540 "number" == typeof __e && (__e = n); 541 }, , , function(e, t, n) { 542 e.exports = !n(14)((function() { 543 return 7 != Object.defineProperty({}, "a", { 544 get: function() { 545 return 7; 546 } 547 }).a; 548 })); 549 }, function(e, t, n) { 550 var i = n(15), r = n(245), o = n(73), s = Object.defineProperty; 551 t.f = n(27) ? Object.defineProperty : function(e, t, n) { 552 if (i(e), t = o(t, !0), i(n), r) try { 553 return s(e, t, n); 554 } catch (e) {} 555 if ("get" in n || "set" in n) throw TypeError("Accessors not supported!"); 556 return "value" in n && (e[t] = n.value), e; 557 }; 558 }, , function(e, t, n) { 559 "use strict"; 560 Object.defineProperty(t, "__esModule", { 561 value: !0 562 }), t.default = function() { 563 return V || ((V = r.default.get()).time || (r.default.set((e = (0, i.default)(q), 564 Object.keys(W).forEach((function(t) { 565 e[t] = W[t](); 566 })), e)), V = r.default.get()), V); 567 var e; 568 }; 569 var i = $(n(280)), r = $(n(282)), o = $(n(168)), s = $(n(283)), a = $(n(284)), l = $(n(285)), c = $(n(286)), u = $(n(288)), d = $(n(290)), h = $(n(291)), f = $(n(292)), p = $(n(293)), m = $(n(294)), g = $(n(295)), v = $(n(296)), b = $(n(297)), y = $(n(298)), x = $(n(299)), w = $(n(300)), _ = $(n(301)), S = $(n(302)), E = $(n(303)), C = $(n(304)), T = $(n(305)), k = $(n(306)), M = $(n(307)), A = $(n(308)), O = $(n(309)), P = $(n(310)), I = $(n(311)), L = $(n(312)), D = $(n(313)), N = $(n(314)), F = $(n(315)), j = $(n(316)), R = $(n(317)), B = $(n(318)), z = $(n(319)), H = $(n(321)); 570 function $(e) {
571 return e && e.__esModule ? e : { 572 default: e 573 }; 574 } 575 var W = { 576 cssShadowPiercingDeepCombinator: o.default, 577 focusInZeroDimensionObject: y.default, 578 focusObjectSwf: E.default, 579 focusSvgInIframe: F.default, 580 tabsequenceAreaAtImgPosition: H.default 581 }, q = { 582 focusAreaImgTabindex: s.default, 583 focusAreaTabindex: a.default, 584 focusAreaWithoutHref: l.default, 585 focusAudioWithoutControls: c.default, 586 focusBrokenImageMap: u.default, 587 focusChildrenOfFocusableFlexbox: d.default, 588 focusFieldsetDisabled: h.default, 589 focusFieldset: f.default, 590 focusFlexboxContainer: p.default, 591 focusFormDisabled: m.default, 592 focusImgIsmap: g.default, 593 focusImgUsemapTabindex: v.default, 594 focusInHiddenIframe: b.default, 595 focusInvalidTabindex: x.default, 596 focusLabelTabindex: w.default, 597 focusObjectSvg: S.default, 598 focusObjectSvgHidden: _.default, 599 focusRedirectImgUsemap: C.default, 600 focusRedirectLegend: T.default, 601 focusScrollBody: k.default, 602 focusScrollContainerWithoutOverflow: M.default, 603 focusScrollContainer: A.default, 604 focusSummary: O.default, 605 focusSvgFocusableAttribute: P.default, 606 focusSvgTabindexAttribute: I.default, 607 focusSvgNegativeTabindexAttribute: L.default, 608 focusSvgUseTabindex: D.default, 609 focusSvgForeignobjectTabindex: N.default, 610 focusSvg: j.default, 611 focusTabindexTrailingCharacters: R.default, 612 focusTable: B.default, 613 focusVideoWithoutControls: z.default 614 }; 615 var V = null; 616 e.exports = t.default; 617 }, , , , function(e, t, n) { 618 "use strict"; 619 Object.defineProperty(t, "__esModule", { 620 value: !0 621 }), t.default = function(e) { 622 if (!e) return []; 623 if (Array.isArray(e)) return e; 624 if (void 0 !== e.nodeType) return [ e ]; 625 if ("string" == typeof e && (e = document.querySelectorAll(e)), void 0 !== e.length) return [].slice.call(e, 0); 626 throw new TypeError("unexpected input " + String(e)); 627 }, e.exports = t.default; 628 }, function(e, t, n) { 629 "use strict"; 630 Object.defineProperty(t, "__esModule", { 631 value: !0 632 }), t.default = function(e) { 633 return e ? e.nodeType === Node.DOCUMENT_NODE ? e : e.ownerDocument || document : document; 634 }, e.exports = t.default; 635 }, function(e, t, n) { 636 "use strict"; 637 Object.defineProperty(t, "__esModule", { 638 value: !0 639 }), t.default = function() { 640 for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = [], i = (0, 641 o.default)({ 642 label: "get/parents", 643 context: t 644 }); i; ) n.push(i), (i = i.parentNode) && i.nodeType !== Node.ELEMENT_NODE && (i = null); 645 return n; 646 }; 647 var i, r = n(9), o = (i = r) && i.__esModule ? i : { 648 default: i 649 }; 650 e.exports = t.default; 651 }, function(e, t, n) { 652 var i = n(68); 653 e.exports = function(e) { 654 return Object(i(e)); 655 }; 656 }, , function(e, t, n) { 657 var i = n(13), r = n(46), o = n(45), s = n(87)("src"), a = n(389), l = ("" + a).split("toString"); 658 n(24).inspectSource = function(e) { 659 return a.call(e); 660 }, (e.exports = function(e, t, n, a) { 661 var c = "function" == typeof n; 662 c && (o(n, "name") || r(n, "name", t)), e[t] !== n && (c && (o(n, s) || r(n, s, e[t] ? "" + e[t] : l.join(String(t)))), 663 e === i ? e[t] = n : a ? e[t] ? e[t] = n : r(e, t, n) : (delete e[t], r(e, t, n))); 664 })(Function.prototype, "toString", (function() { 665 return "function" == typeof this && this[s] || a.call(this); 666 })); 667 }, function(e, t, n) { 668 var i = n(1), r = n(14), o = n(68), s = /"/g, a = function(e, t, n, i) { 669 var r = String(o(e)), a = "<" + t; 670 return "" !== n && (a += " " + n + '="' + String(i).replace(s, """) + '"'), 671 a + ">" + r + "</" + t + ">"; 672 }; 673 e.exports = function(e, t) { 674 var n = {};
675 n[e] = t(a), i(i.P + i.F * r((function() { 676 var t = ""[e]('"'); 677 return t !== t.toLowerCase() || t.split('"').length > 3; 678 })), "String", n); 679 }; 680 }, , function(e, t, n) { 681 "use strict"; 682 Object.defineProperty(t, "__esModule", { 683 value: !0 684 }), t.default = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", 685 e.exports = t.default; 686 }, function(e, t, n) { 687 "use strict"; 688 Object.defineProperty(t, "__esModule", { 689 value: !0 690 }); 691 var i = h(n(105)), r = h(n(175)), o = h(n(64)), s = h(n(176)), a = h(n(177)), l = h(n(9)), c = h(n(106)), u = h(n(51)), d = h(n(30)); 692 function h(e) { 693 return e && e.__esModule ? e : { 694 default: e 695 }; 696 } 697 var f = void 0; 698 function p(e) { 699 var t = e.nodeName.toLowerCase(); 700 if ("embed" === t || "keygen" === t) return !0; 701 var n = (0, u.default)(e); 702 if (e.shadowRoot && null === n) return !0; 703 if ("label" === t) return !f.focusLabelTabindex || null === n; 704 if ("legend" === t) return null === n; 705 if (f.focusSvgFocusableAttribute && (e.ownerSVGElement || "svg" === t)) { 706 var i = e.getAttribute("focusable"); 707 return i && "false" === i; 708 } 709 return "img" === t && e.hasAttribute("usemap") ? null === n || !f.focusImgUsemapTabindex : "area" === t && !(0, 710 r.default)(e); 711 } 712 function m() { 713 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, r = void 0 === n ? { 714 disabled: !1, 715 visible: !1, 716 onlyTabbable: !1 717 } : n; 718 f || (f = (0, d.default)()); 719 var u = a.default.rules.except({ 720 onlyFocusableBrowsingContext: !0, 721 visible: r.visible 722 }), h = (0, l.default)({ 723 label: "is/focusable", 724 resolveDocument: !0, 725 context: t 726 }), m = i.default.rules({ 727 context: h, 728 except: r 729 }); 730 if (!m || p(h)) return !1; 731 if (!r.disabled && (0, s.default)(h)) return !1; 732 if (!r.onlyTabbable && u(h)) return !1; 733 if (!r.visible) { 734 var g = { 735 context: h, 736 except: {} 737 }; 738 if (f.focusInHiddenIframe && (g.except.browsingContext = !0), f.focusObjectSvgHidden) { 739 var v = h.nodeName.toLowerCase(); 740 "object" === v && (g.except.cssVisibility = !0); 741 } 742 if (!o.default.rules(g)) return !1; 743 } 744 var b = (0, c.default)(h); 745 if (b) { 746 var y = b.nodeName.toLowerCase(); 747 if (!("object" !== y || f.focusInZeroDimensionObject || b.offsetWidth && b.offsetHeight)) return !1; 748 } 749 var x = h.nodeName.toLowerCase(); 750 return !("svg" === x && f.focusSvgInIframe && !b && null === h.getAttribute("tabindex")); 751 } 752 m.except = function() { 753 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = function(t) { 754 return m({ 755 context: t, 756 except: e 757 }); 758 }; 759 return t.rules = m, t; 760 }; 761 var g = m.except({}); 762 t.default = g, e.exports = t.default; 763 }, , function(e, t) { 764 var n = {}.hasOwnProperty; 765 e.exports = function(e, t) { 766 return n.call(e, t); 767 }; 768 }, function(e, t, n) { 769 var i = n(28), r = n(86); 770 e.exports = n(27) ? function(e, t, n) { 771 return i.f(e, t, r(1, n)); 772 } : function(e, t, n) { 773 return e[t] = n, e; 774 }; 775 }, function(e, t, n) { 776 var i = n(130), r = n(68); 777 e.exports = function(e) { 778 return i(r(e)); 779 }; 780 }, , function(e, t, n) { 781 "use strict";
782 n.d(t, "a", (function() { 783 return a; 784 })); 785 var i = n(52), r = n.n(i), o = n(0), s = n(161); 786 class a { 787 constructor(e = ".js-dropdown", t = null) { 788 this.selector = e, this.toggler = null, this.dropdown = null, this.slideToggler = null, 789 this.closeBtn = null, this.focusTrapHandler = null, this.dropdowmWidth = null, this.keyOptions = null, 790 window.dropdownList = window.dropdownList || [], this.options = { 791 wrapperClass: "js-dropdown", 792 dropdownClass: "js-dropdown__block", 793 btnClass: "js-dropdown__toggle", 794 closeBtnClass: "js-dropdown__close", 795 closeBtnHtml: '<span class="ghost">Fermer</span>', 796 closeHelperClass: "has-close-btn", 797 closeBtn: !1, 798 opened: [], 799 outsideToggle: !1, 800 outsideToggleId: "js-dropdown-outside-toggle", 801 closeOnOutsideClick: !0, 802 openTypeSlide: !1, 803 isWrapContent: !1, 804 focusTrap: !0, 805 overflow: !1, 806 clickRoll: !1, 807 disabledClose: [], 808 onInit: e => {}, 809 beforeOpen: e => {}, 810 afterOpen: e => {}, 811 beforeClose: e => {}, 812 afterClose: e => {} 813 }, t instanceof Object && (this.options = o.extendDefaults(this.options, t)), this.$nextKeysHandler = this.nextKeysHandler.bind(this), 814 this.$prevKeysHandler = this.prevKeysHandler.bind(this), this.$outsideHandler = this.outsideHandler.bind(this), 815 this.$escHandler = this.escHandler.bind(this), this.checkBeforeInit(); 816 } 817 static onTogglerClick() { 818 let e; 819 e = this.options.outsideToggle ? o.hasClass(this.selector, "-is-open") : o.hasClass(this.toggler.parentElement, "-is-open"), 820 !0 === e ? this.close() : this.open(); 821 } 822 checkBeforeInit() { 823 if ("string" != typeof this.selector) { 824 if (o.hasClass(this.selector, "-is-initialized")) return; 825 return null !== this.selector && this.init(); 826 } 827 if ("string" == typeof this.selector) { 828 const e = document.querySelectorAll(this.selector); 829 if (null === e) return; 830 for (let t = 0; t < e.length; t++) { 831 const n = new a(e[t], this.options); 832 window.dropdownList.push(n); 833 } 834 } 835 } 836 init() { 837 this.options.onInit(this.selector), this.create(), this.initEvents(); 838 } 839 manageResponsiveState() { 840 if (0 === this.options.opened.length) return; 841 const e = o.hasClass(this.selector, "-is-open"), t = -1 !== this.options.opened.indexOf(window.responsive); 842 !e && t ? this.open() : e && !t && 0 !== this.selector.getBoundingClientRect().height && this.menuWidth !== this.selector.getBoundingClientRect().width && this.close(); 843 } 844 create() { 845 const e = this.selector; 846 let t = ""; 847 if (o.addClass(e, "-is-initialized"), e.classList.add(this.options.wrapperClass), 848 this.options.outsideToggle ? (this.toggler = document.getElementById(this.options.outsideToggleId), 849 t = `"#${this.options.outsideToggleId}"`) : (this.toggler = e.querySelector("." + this.options.btnClass), 850 t = `".${this.options.btnClass}"`), !this.toggler) throw new Error(`Dropdown. Can't find toggle button with selector: ${t} for "${this.selector.className}"`); 851 this.dropdown = e.querySelector("." + this.options.dropdownClass), 0 === this.options.opened.length ? o.setTabindex(this.dropdown, -1) : o.setTabindex(this.dropdown, 0), 852 this.slideToggler = this.options.openTypeSlide && new s.a(this.dropdown, { 853 isWrapContent: this.options.isWrapContent 854 }), this.options.closeBtn ? (this.closeBtn = e.querySelector("." + this.options.closeBtnClass), 855 null === this.closeBtn && (this.closeBtn = document.createElement("button"), this.closeBtn.setAttribute("type", "button"), 856 this.closeBtn.className = this.options.closeBtnClass, this.closeBtn.innerHTML = this.options.closeBtnHtml, 857 e.insertBefore(this.closeBtn, e.children[0])), o.initAriaControl
857s([ this.toggler, this.closeBtn ], this.dropdown)) : o.initAriaControls(this.toggler, this.dropdown); 858 } 859 open() { 860 this.menuWidth = this.selector.getBoundingClientRect().width, this.options.beforeOpen(), 861 this.options.openTypeSlide && this.slideToggler.open(), this.options.outsideToggle ? o.addClass(this.selector, "-is-open") : o.addClass(this.toggler.parentElement, "-is-open"), 862 !0 === this.options.closeBtn && null !== this.closeBtn ? (o.setAriaControls([ this.toggler, this.closeBtn ], this.dropdown, "opened"), 863 this.closeBtn.setAttribute("tabindex", 0)) : o.setAriaControls(this.toggler, this.dropdown, "opened"), 864 this.options.overflow && o.addClass(document.body, "-overflow-hidden"), this.keyOptions = { 865 context: this.selector 866 }, this.options.focusTrap && !this.options.clickRoll && (this.toggler.setAttribute("tabindex", 0), 867 this.keyOptions.tab = this.$nextKeysHandler, this.keyOptions["shift+tab"] = this.$prevKeysHandler), 868 this.options.clickRoll || (this.keyOptions.down = this.$nextKeysHandler, this.keyOptions.right = this.$nextKeysHandler, 869 this.keyOptions.up = this.$prevKeysHandler, this.keyOptions.left = this.$prevKeysHandler, 870 this.keyOptions.escape = this.$escHandler, this.$keyHandler = r.a.when.key(this.keyOptions)), 871 this.options.focusTrap && (this.focusTrapHandler = this.initFocusTrap.bind(this), 872 window.addEventListener("responsive", this.manageFocusTrap.bind(this), !1)), this.$tabindexHandler = r.a.when.visibleArea({ 873 context: this.dropdown, 874 callback: e => { 875 o.setTabindex(this.dropdown, 0); 876 }, 877 area: .5 878 }), this.options.afterOpen(this.selector); 879 } 880 escHandler(e) { 881 e.preventDefault(); 882 let t = !1; 883 this.options.disabledClose.forEach(e => { 884 e === window.responsive && (t = !0); 885 }), t || this.close(); 886 } 887 close() { 888 this.options.beforeClose(this.selector), this.options.focusTrap && (this.toggler.focus(), 889 this.toggler.removeAttribute("tabindex")), this.options.openTypeSlide && this.slideToggler.close(), 890 this.options.outsideToggle ? o.removeClass(this.selector, "-is-open") : o.removeClass(this.toggler.parentElement, "-is-open"), 891 this.options.overflow && o.removeClass(document.body, "-overflow-hidden"), this.dise
891ngageAllyHandlers(), 892 o.setTabindex(this.dropdown, -1), !0 === this.options.closeBtn && null !== this.closeBtn ? (o.setAriaControls([ this.toggler, this.closeBtn ], this.dropdown, "closed"), 893 this.closeBtn.setAttribute("tabindex", -1)) : o.setAriaControls(this.toggler, this.dropdown, "closed"), 894 this.options.afterClose(this.selector); 895 } 896 skipFormControls(e) { 897 let t = !0; 898 if (e) { 899 const n = e.tagName.toLowerCase(), i = e.getAttribute("type"); 900 switch (n) { 901 case "input": 902 i && "radio" !== i && "checkbox" !== i && "date" !== i && (t = !1); 903 break; 904 905 case "textarea": 906 t = !1; 907 } 908 } 909 return t; 910 } 911 nextKeysHandler(e) { 912 if (this.skipFormControls(e.target) && (e.preventDefault(), this.selector && "object" == typeof this.selector)) { 913 const t = o.getNextFocusableElement(e.target, this.selector); 914 t && r.a.element.focus(t); 915 } 916 } 917 prevKeysHandler(e) { 918 if (this.skipFormControls(e.target) && (e.preventDefault(), this.selector && "object" == typeof this.selector)) { 919 const t = o.getPrevFocusableElement(e.target, this.selector); 920 t && r.a.element.focus(t); 921 } 922 } 923 disengageAllyHandlers() { 924 this.$keyHandler && this.$keyHandler.disengage(), this.$tabindexHandler && this.$tabindexHandler.disengage(); 925 } 926 initEvents() { 927 this.toggler.addEventListener("click", o.debounce(a.onTogglerClick.bind(this), 200)), 928 !0 === this.options.closeBtn && null !== this.closeBtn && this.closeBtn.addEventListener("click", this.close.bind(this)), 929 window.addEventListener("responsive", this.manageResponsiveState.bind(this)), this.manageResponsiveState(), 930 this.options.closeOnOutsideClick && document.addEventListener("click", e => { 931 const t = this.selector.contains(e.target) || e.target === this.toggler || this.toggler.contains(e.target), n = o.hasClass(this.selector, "-is-open"); 932 !t && n && this.close(); 933 }); 934 } 935 outsideHandler(e) { 936 if (this.selector && "object" == typeof this.selector && this.toggle) { 937 const t = this.selector.contains(e.target) || e.target === this.toggler || this.toggler.contains(e.target), n = o.hasClass(this.selector, this.options.classList.opened); 938 !t && n && this.close(); 939 } 940 } 941 manageFocusTrap() { 942 if ("boolean" != typeof this.options.focusTrap) { 943 if (!Array.isArray(this.options.focusTrap)) throw new Error("focusTrap parameter should be Boolean or Array"); 944 this.selector.removeEventListener("keydown", this.focusTrapHandler, !0), this.options.focusTrap.forEach(e => { 945 window.responsive === e && this.selector.addEventListener("keydown", this.focusTrapHandler, !0); 946 }); 947 } else this.selector.addEventListener("keydown", this.focusTrapHandler, !0); 948 } 949 initFocusTrap(e) { 950 o.initFocusTrap(this.selector, e, !0); 951 } 952 destroy() { 953 o.removeAriaControls(this.toggler.parentElement), this.toggler.removeEventListener("click", a.onTogglerClick.bind(this)), 954 !0 === this.options.closeBtn && null !== this.closeBtn && this.closeBtn.removeEventListener("click", this.close.bind(this)); 955 } 956 } 957 }, function(e, t, n) { 958 "use strict"; 959 var i = n(14); 960 e.exports = function(e, t) { 961 return !!e && i((function() { 962 t ? e.call(null, (function() {}
962), 1) : e.call(null); 963 })); 964 }; 965 }, function(e, t, n) { 966 "use strict"; 967 Object.defineProperty(t, "__esModule", { 968 value: !0 969 }), t.default = function(e) { 970 if (!(0, o.default)(e)) return null; 971 var t = e.hasAttribute("tabindex") ? "tabindex" : "tabIndex", n = parseInt(e.getAttribute(t), 10); 972 return isNaN(n) ? -1 : n; 973 }; 974 var i, r = n(104), o = (i = r) && i.__esModule ? i : { 975 default: i 976 }; 977 e.exports = t.default; 978 }, function(e, t, n) { 979 "use strict"; 980 Object.defineProperty(t, "__esModule", { 981 value: !0 982 }); 983 var i = m(n(278)), r = m(n(332)), o = m(n(335)), s = m(n(339)), a = m(n(341)), l = m(n(342)), c = m(n(350)), u = m(n(352)), d = m(n(353)), h = m(n(355)), f = m(n(358)), p = m(n(167)); 984 function m(e) { 985 return e && e.__esModule ? e : { 986 default: e 987 }; 988 } 989 var g = "undefined" != typeof window && window.ally; 990 t.default = { 991 element: i.default, 992 event: r.default, 993 fix: o.default, 994 get: s.default, 995 is: a.default, 996 maintain: l.default, 997 map: c.default, 998 observe: u.default, 999 query: d.default, 1000 style: h.default, 1001 when: f.default, 1002 version: p.default, 1003 noConflict: function() { 1004 return "undefined" != typeof window && window.ally === this && (window.ally = g), 1005 this; 1006 } 1007 }, e.exports = t.default; 1008 }, , , function(e, t, n) { 1009 var i = n(56); 1010 e.exports = function(e, t, n) { 1011 if (i(e), void 0 === t) return e; 1012 switch (n) { 1013 case 1: 1014 return function(n) { 1015 return e.call(t, n); 1016 }; 1017 1018 case 2: 1019 return function(n, i) { 1020 return e.call(t, n, i); 1021 }; 1022 1023 case 3: 1024 return function(n, i, r) { 1025 return e.call(t, n, i, r); 1026 }; 1027 } 1028 return function() { 1029 return e.apply(t, arguments); 1030 }; 1031 }; 1032 }, function(e, t) { 1033 e.exports = function(e) { 1034 if ("function" != typeof e) throw TypeError(e + " is not a function!"); 1035 return e; 1036 }; 1037 }, function(e, t) { 1038 var n = Math.ceil, i = Math.floor; 1039 e.exports = function(e) { 1040 return isNaN(e = +e) ? 0 : (e > 0 ? i : n)(e); 1041 }; 1042 }, function(e, t, n) { 1043 var i = n(131), r = n(86), o = n(47), s = n(73), a = n(45), l = n(245), c = Object.getOwnPropertyDescriptor; 1044 t.f = n(27) ? c : function(e, t) { 1045 if (e = o(e), t = s(t, !0), l) try { 1046 return c(e, t); 1047 } catch (e) {} 1048 if (a(e, t)) return r(!i.f.call(e, t), e[t]); 1049 }; 1050 }, function(e, t, n) { 1051 var i = n(1), r = n(24), o = n(14); 1052 e.exports = function(e, t) { 1053 var n = (r.Object || {})[e] || Object[e], s = {}; 1054 s[e] = t(n), i(i.S + i.F * o((function() { 1055 n(1); 1056 })), "Object", s); 1057 }; 1058 }, function(e, t, n) { 1059 var i = n(55), r = n(130), o = n(37), s = n(22), a = n(261); 1060 e.exports = function(e, t) { 1061 var n = 1 == e, l = 2 == e, c = 3 == e, u = 4 == e, d = 6 == e, h = 5 == e || d, f = t || a; 1062 return function(t, a, p) { 1063 for (var m, g, v = o(t), b = r(v), y = i(a, p, 3), x = s(b.length), w = 0, _ = n ? f(t, x) : l ? f(t, 0) : void 0; x > w; w++) if ((h || w in b) && (g = y(m = b[w], w, v), 1064 e)) if (n) _[w] = g; else if (g) switch (e) { 1065 case 3: 1066 return !0; 1067 1068 case 5: 1069 return m; 1070 1071 case 6: 1072 return w; 1073 1074 case 2: 1075 _.push(m); 1076 } else if (u) return !1; 1077 return d ? -1 : c || u ? u : _; 1078 }; 1079 }; 1080 }, , , function(e, t, n) { 1081 "use strict"; 1082 Object.defineProperty(t, "__esModule", { 1083 value: !0 1084 }), t.generate = function(e) { 1085 return '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' + e + "</svg>"; 1086 }, t.focus = s, t.validate = function(e, t, n) { 1087 return s(t), n.activeElement === t; 1088 }; 1089 var i, r = n(170), o = (i = r) && i.__esModule ? i : { 1090 default: i 1091 }; 1092 function s(e) { 1093 if (!e.focus) try {
1094 HTMLElement.prototype.focus.call(e); 1095 } catch (t) { 1096 (0, o.default)(e); 1097 } 1098 } 1099 }, function(e, t, n) { 1100 "use strict"; 1101 Object.defineProperty(t, "__esModule", { 1102 value: !0 1103 }); 1104 var i = a(n(136)), r = a(n(36)), o = a(n(9)), s = a(n(106)); 1105 function a(e) { 1106 return e && e.__esModule ? e : { 1107 default: e 1108 }; 1109 } 1110 var l = /^(area)$/; 1111 function c(e, t) { 1112 return window.getComputedStyle(e, null).getPropertyValue(t); 1113 } 1114 function u(e) { 1115 return e.some((function(e) { 1116 return "none" === c(e, "display"); 1117 })); 1118 } 1119 function d(e) { 1120 var t = (0, i.default)(e, (function(e) { 1121 var t = c(e, "visibility"); 1122 return "hidden" === t || "collapse" === t; 1123 })); 1124 if (-1 === t) return !1; 1125 var n = (0, i.default)(e, (function(e) { 1126 return "visible" === c(e, "visibility"); 1127 })); 1128 return -1 === n || t < n; 1129 } 1130 function h(e) { 1131 var t = 1; 1132 return "summary" === e[0].nodeName.toLowerCase() && (t = 2), e.slice(t).some((function(e) { 1133 return "details" === e.nodeName.toLowerCase() && !1 === e.open; 1134 })); 1135 } 1136 function f() { 1137 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, i = void 0 === n ? { 1138 notRendered: !1, 1139 cssDisplay: !1, 1140 cssVisibility: !1, 1141 detailsElement: !1, 1142 browsingContext: !1 1143 } : n, a = (0, o.default)({ 1144 label: "is/visible", 1145 resolveDocument: !0, 1146 context: t 1147 }), c = a.nodeName.toLowerCase(); 1148 if (!i.notRendered && l.test(c)) return !0; 1149 var p = (0, r.default)({ 1150 context: a 1151 }), m = "audio" === c && !a.hasAttribute("controls"); 1152 if (!i.cssDisplay && u(m ? p.slice(1) : p)) return !1; 1153 if (!i.cssVisibility && d(p)) return !1; 1154 if (!i.detailsElement && h(p)) return !1; 1155 if (!i.browsingContext) { 1156 var g = (0, s.default)(a), v = f.except(i); 1157 if (g && !v(g)) return !1; 1158 } 1159 return !0; 1160 } 1161 f.except = function() { 1162 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = function(t) { 1163 return f({ 1164 context: t, 1165 except: e 1166 }); 1167 }; 1168 return t.rules = f, t; 1169 }; 1170 var p = f.except({}); 1171 t.default = p, e.exports = t.default; 1172 }, , , function(e, t) { 1173 var n = {}.toString; 1174 e.exports = function(e) { 1175 return n.call(e).slice(8, -1); 1176 }; 1177 }, function(e, t) { 1178 e.exports = function(e) { 1179 if (null == e) throw TypeError("Can't call method on " + e); 1180 return e; 1181 }; 1182 }, function(e, t, n) { 1183 "use strict"; 1184 if (n(27)) { 1185 var i = n(88), r = n(13), o = n(14), s = n(1), a = n(159), l = n(219), c = n(55), u = n(120), d = n(86), h = n(46), f = n(121), p = n(57), m = n(22), g = n(272), v = n(90), b = n(73), y = n(45), x = n(132), w = n(16), _ = n(37), S = n(211), E = n(91), C = n(93), T = n(92).f, k = n(213), M = n(87), A = n(21), O = n(60), P = n(149), I = n(133), L = n(215), D = n(118), N = n(152), F = n(119), j = n(214), R = n(263), B = n(28), z = n(58), H = B.f, $ = z.f, W = r.RangeError, q = r.TypeError, V = r.Uint8Array, Y = Array.prototype, G = l.ArrayBuffer, U = l.DataView, X = O(0), K = O(2), Z = O(3), J = O(4), Q = O(5), ee = O(6), te = P(!0), ne = P(!1), ie = L.values, re = L.keys, oe = L.entries, se = Y.lastIndexOf, ae = Y.reduce, le = Y.reduceRight, ce = Y.join, ue = Y.sort, de = Y.slice, he = Y.toString, fe = Y.toLocaleString, pe = A("iterator"), me = A("toStringTag"), ge = M("typed_constructor"), ve = M("def_constructor"), be = a.CONSTR, ye = a.TYPED, xe = a.VIEW, we = O(1, (function(e, t) { 1186 return Te(I(e, e[ve]), t); 1187 })), _e = o((function() { 1188 return 1 === new V(new Uint16Array([ 1 ]).buffer)[0]; 1189 })), Se = !!V && !!V.prototype.set && o((function() { 1190 new V(1).set({}); 1191 })), Ee = function(e, t) { 1192 var n = p(e); 1193 if (n < 0 || n % t) throw W("Wrong offset!"); 1194 return n; 1195 }, Ce = function(e) { 1196 if (w(e) && ye in e) return e; 1197 throw q(e + " is not a typed array!"); 1198 }, Te = function(e, t) { 1199 if (!w(e) || !(ge in e)) throw q("It is not a typed array constructor!"); 1200 return new e(t); 1201 }, ke = function(e, t) { 1202 return Me(I(e, e[ve]), t); 1203 }, Me = function(e, t) { 1204 for (var n = 0, i = t.length, r = Te(e, i); i > n; ) r[n] = t[n++]; 1205 return r; 1206 }, Ae = function(e, t, n) { 1207 H(e, t, { 1208 get: function() { 1209 return this._d[n]; 1210 } 1211 }); 1212 }, Oe = function(e) { 1213 var t, n, i, r, o, s, a = _(e), l = arguments.length, u = l > 1 ? arguments[1] : void 0, d = void 0 !== u, h = k(a); 1214 if (null != h && !S(h)) { 1215 for (s = h.call(a), i = [], t = 0; !(o = s.next()).done; t++) i.push(o.value); 1216 a = i; 1217 } 1218 for (d && l > 2 && (u = c(u, arguments[2], 2)), t = 0, n = m(a.length), r = Te(this, n); n > t; t++) r[t] = d ? u(a[t], t) : a[t]; 1219 return r; 1220 }, Pe = function() { 1221 for (var e = 0, t = arguments.length, n = Te(this, t); t > e; ) n[e] = arguments[e++]; 1222 return n; 1223 }, Ie = !!V && o((function() { 1224 fe.call(new V(1)); 1225 })), Le = function() { 1226 return fe.apply(Ie ? de.call(Ce(this)) : Ce(this), arguments); 1227 }, De = { 1228 copyWithin: function(e, t) { 1229 return R.call(Ce(this), e, t, arguments.length > 2 ? arguments[2] : void 0); 1230 }, 1231 every: function(e) { 1232 return J(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1233 }, 1234 fill: function(e) { 1235 return j.apply(Ce(this), arguments); 1236 }, 1237 filter: function(e) { 1238 return ke(this, K(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0)); 1239 }, 1240 find: function(e) { 1241 return Q(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1242 }, 1243 findIndex: function(e) { 1244 return ee(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1245 },
1246 forEach: function(e) { 1247 X(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1248 }, 1249 indexOf: function(e) { 1250 return ne(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1251 }, 1252 includes: function(e) { 1253 return te(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1254 }, 1255 join: function(e) { 1256 return ce.apply(Ce(this), arguments); 1257 }, 1258 lastIndexOf: function(e) { 1259 return se.apply(Ce(this), arguments); 1260 }, 1261 map: function(e) { 1262 return we(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1263 }, 1264 reduce: function(e) { 1265 return ae.apply(Ce(this), arguments); 1266 }, 1267 reduceRight: function(e) { 1268 return le.apply(Ce(this), arguments); 1269 }, 1270 reverse: function() { 1271 for (var e, t = Ce(this).length, n = Math.floor(t / 2), i = 0; i < n; ) e = this[i], 1272 this[i++] = this[--t], this[t] = e; 1273 return this; 1274 }, 1275 some: function(e) { 1276 return Z(Ce(this), e, arguments.length > 1 ? arguments[1] : void 0); 1277 }, 1278 sort: function(e) { 1279 return ue.call(Ce(this), e); 1280 }, 1281 subarray: function(e, t) { 1282 var n = Ce(this), i = n.length, r = v(e, i); 1283 return new (I(n, n[ve]))(n.buffer, n.byteOffset + r * n.BYTES_PER_ELEMENT, m((void 0 === t ? i : v(t, i)) - r)); 1284 } 1285 }, Ne = function(e, t) { 1286 return ke(this, de.call(Ce(this), e, t)); 1287 }, Fe = function(e) { 1288 Ce(this); 1289 var t = Ee(arguments[1], 1), n = this.length, i = _(e), r = m(i.length), o = 0; 1290 if (r + t > n) throw W("Wrong length!"); 1291 for (;o < r; ) this[t + o] = i[o++]; 1292 }, je = { 1293 entries: function() { 1294 return oe.call(Ce(this)); 1295 }, 1296 keys: function() { 1297 return re.call(Ce(this)); 1298 }, 1299 values: function() { 1300 return ie.call(Ce(this)); 1301 } 1302 }, Re = function(e, t) { 1303 return w(e) && e[ye] && "symbol" != typeof t && t in e && String(+t) == String(t); 1304 }, Be = function(e, t) { 1305 return Re(e, t = b(t, !0)) ? d(2, e[t]) : $(e, t); 1306 }, ze = function(e, t, n) { 1307 return !(Re(e, t = b(t, !0)) && w(n) && y(n, "value")) || y(n, "get") || y(n, "set") || n.configurable || y(n, "writable") && !n.writable || y(n, "enumerable") && !n.enumerable ? H(e, t, n) : (e[t] = n.value, 1308 e); 1309 }; 1310 be || (z.f = Be, B.f = ze), s(s.S + s.F * !be, "Object", { 1311 getOwnPropertyDescriptor: Be, 1312 defineProperty: ze 1313 }), o((function() { 1314 he.call({}); 1315 })) && (he = fe = function() { 1316 return ce.call(this); 1317 }); 1318 var He = f({}, De); 1319 f(He, je), h(He, pe, je.values), f(He, { 1320 slice: Ne, 1321 set: Fe, 1322 constructor: function() {}, 1323 toString: he, 1324 toLocaleString: Le 1325 }), Ae(He, "buffer", "b"), Ae(He, "byteOffset", "o"), Ae(He, "byteLength", "l"), 1326 Ae(He, "length", "e"), H(He, me, { 1327 get: function() { 1328 return this[ye]; 1329 } 1330 }), e.exports = function(e, t, n, l) { 1331 var c = e + ((l = !!l) ? "Clamped" : "") + "Array", d = "get" + e, f = "set" + e, p = r[c], v = p || {}, b = p && C(p), y = !p || !a.ABV, _ = {}, S = p && p.prototype, k = function(e, n) { 1332 H(e, n, { 1333 get: function() { 1334 return function(e, n) { 1335 var i = e._d; 1336 return i.v[d](n * t + i.o, _e); 1337 }(this, n); 1338 }, 1339 set: function(e) { 1340 return function(e, n, i) { 1341 var r = e._d; 1342 l && (i = (i = Math.round(i)) < 0 ? 0 : i > 255 ? 255 : 255 & i), r.v[f](n * t + r.o, i, _e); 1343 }(this, n, e); 1344 }, 1345 enumerable: !0 1346 }); 1347 }; 1348 y ? (p = n((function(e, n, i, r) { 1349 u(e, p, c, "_d"); 1350 var o, s, a, l, d = 0, f = 0; 1351 if (w(n)) { 1352 if (!(n instanceof G || "ArrayBuffer" == (l = x(n)) || "SharedArrayBuffer" == l)) return ye in n ? Me(p, n) : Oe.call(p, n); 1353 o = n, f = Ee(i, t);
1354 var v = n.byteLength; 1355 if (void 0 === r) { 1356 if (v % t) throw W("Wrong length!"); 1357 if ((s = v - f) < 0) throw W("Wrong length!"); 1358 } else if ((s = m(r) * t) + f > v) throw W("Wrong length!"); 1359 a = s / t; 1360 } else a = g(n), o = new G(s = a * t); 1361 for (h(e, "_d", { 1362 b: o, 1363 o: f, 1364 l: s, 1365 e: a, 1366 v: new U(o) 1367 }); d < a; ) k(e, d++); 1368 })), S = p.prototype = E(He), h(S, "constructor", p)) : o((function() { 1369 p(1); 1370 })) && o((function() { 1371 new p(-1); 1372 })) && N((function(e) { 1373 new p, new p(null), new p(1.5), new p(e); 1374 }), !0) || (p = n((function(e, n, i, r) { 1375 var o; 1376 return u(e, p, c), w(n) ? n instanceof G || "ArrayBuffer" == (o = x(n)) || "SharedArrayBuffer" == o ? void 0 !== r ? new v(n, Ee(i, t), r) : void 0 !== i ? new v(n, Ee(i, t)) : new v(n) : ye in n ? Me(p, n) : Oe.call(p, n) : new v(g(n)); 1377 })), X(b !== Function.prototype ? T(v).concat(T(b)) : T(v), (function(e) { 1378 e in p || h(p, e, v[e]); 1379 })), p.prototype = S, i || (S.constructor = p)); 1380 var M = S[pe], A = !!M && ("values" == M.name || null == M.name), O = je.values; 1381 h(p, ge, !0), h(S, ye, c), h(S, xe, !0), h(S, ve, p), (l ? new p(1)[me] == c : me in S) || H(S, me, { 1382 get: function() { 1383 return c; 1384 } 1385 }), _[c] = p, s(s.G + s.W + s.F * (p != v), _), s(s.S, c, { 1386 BYTES_PER_ELEMENT: t 1387 }), s(s.S + s.F * o((function() { 1388 v.of.call(p, 1); 1389 })), c, { 1390 from: Oe, 1391 of: Pe 1392 }), "BYTES_PER_ELEMENT" in S || h(S, "BYTES_PER_ELEMENT", t), s(s.P, c, De), F(c), 1393 s(s.P + s.F * Se, c, { 1394 set: Fe 1395 }), s(s.P + s.F * !A, c, je), i || S.toString == he || (S.toString = he), s(s.P + s.F * o((function() { 1396 new p(1).slice(); 1397 })), c, { 1398 slice: Ne 1399 }), s(s.P + s.F * (o((function() { 1400 return [ 1, 2 ].toLocaleString() != new p([ 1, 2 ]).toLocaleString(); 1401 })) || !o((function() { 1402 S.toLocaleString.call([ 1, 2 ]); 1403 }))), c, { 1404 toLocaleString: Le 1405 }), D[c] = A ? M : O, i || A || h(S, pe, O); 1406 }; 1407 } else e.exports = function() {}; 1408 }, , , , function(e, t, n) { 1409 var i = n(16); 1410 e.exports = function(e, t) { 1411 if (!i(e)) return e; 1412 var n, r; 1413 if (t && "function" == typeof (n = e.toString) && !i(r = n.call(e))) return r; 1414 if ("function" == typeof (n = e.valueOf) && !i(r = n.call(e))) return r; 1415 if (!t && "function" == typeof (n = e.toString) && !i(r = n.call(e))) return r; 1416 throw TypeError("Can't convert object to primitive value"); 1417 }; 1418 }, function(e, t, n) { 1419 var i = n(87)("meta"), r = n(16), o = n(45), s = n(28).f, a = 0, l = Object.isExtensible || function() { 1420 return !0; 1421 }, c = !n(14)((function() { 1422 return l(Object.preventExtensions({})); 1423 })), u = function(e) { 1424 s(e, i, { 1425 value: { 1426 i: "O" + ++a, 1427 w: {} 1428 } 1429 }); 1430 }, d = e.exports = { 1431 KEY: i, 1432 NEED: !1, 1433 fastKey: function(e, t) { 1434 if (!r(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e; 1435 if (!o(e, i)) { 1436 if (!l(e)) return "F";
1437 if (!t) return "E"; 1438 u(e); 1439 } 1440 return e[i].i; 1441 }, 1442 getWeak: function(e, t) { 1443 if (!o(e, i)) { 1444 if (!l(e)) return !0; 1445 if (!t) return !1; 1446 u(e); 1447 } 1448 return e[i].w; 1449 }, 1450 onFreeze: function(e) { 1451 return c && d.NEED && l(e) && !o(e, i) && u(e), e; 1452 } 1453 }; 1454 }, function(e, t, n) { 1455 "use strict"; 1456 Object.defineProperty(t, "__esModule", { 1457 value: !0 1458 }), t.default = function() { 1459 for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = (0, 1460 o.default)({ 1461 label: "get/shadow-host", 1462 context: t 1463 }), i = null; n; ) i = n, n = n.parentNode; 1464 return i.nodeType === i.DOCUMENT_FRAGMENT_NODE && i.host ? i.host : null; 1465 }; 1466 var i, r = n(9), o = (i = r) && i.__esModule ? i : { 1467 default: i 1468 }; 1469 e.exports = t.default; 1470 }, function(e, t, n) { 1471 "use strict"; 1472 Object.defineProperty(t, "__esModule", { 1473 value: !0 1474 }), t.default = function() { 1475 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, a = (0, 1476 s.default)({ 1477 label: "get/focus-target", 1478 context: t 1479 }), l = null, c = function(e) { 1480 return o.default.rules({ 1481 context: e, 1482 except: n 1483 }) ? (l = e, !0) : (l = (0, i.default)({ 1484 context: e, 1485 skipFocusable: !0 1486 }), Boolean(l)); 1487 }; 1488 return c(a) || (0, r.default)({ 1489 context: a 1490 }).slice(1).some(c), l; 1491 }; 1492 var i = a(n(173)), r = a(n(36)), o = a(n(43)), s = a(n(9)); 1493 function a(e) { 1494 return e && e.__esModule ? e : { 1495 default: e 1496 }; 1497 } 1498 e.exports = t.default; 1499 }, function(e, t, n) { 1500 "use strict"; 1501 Object.defineProperty(t, "__esModule", { 1502 value: !0 1503 }), t.default = function() { 1504 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.includeContext, o = e.includeOnlyTabbable, s = e.strategy, a = r.default.rules.except({ 1505 onlyTabbable: o 1506 }); 1507 return (0, i.default)({ 1508 context: t, 1509 includeContext: n, 1510 includeOnlyTabbable: o, 1511 strategy: s 1512 }).filter(a); 1513 }; 1514 var i = o(n(108)), r = o(n(178)); 1515 function o(e) { 1516 return e && e.__esModule ? e : { 1517 default: e 1518 }; 1519 } 1520 e.exports = t.default; 1521 }, function(e, t, n) { 1522 "use strict"; 1523 function i() { 1524 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.force; 1525 t ? this.instances = 0 : this.instances--, this.instances || (this.disengage(), 1526 this._result = null); 1527 } 1528 function r() { 1529 return this.instances ? (this.instances++, this._result) : (this.instances++, this._result = this.engage() || {}, 1530 this._result.disengage = i.bind(this), this._result); 1531 } 1532 function o() {} 1533 Object.defineProperty(t, "__esModule", { 1534 value: !0 1535 }), t.default = function() { 1536 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.engage, n = e.disengage, i = { 1537 engage: t || o, 1538 disengage: n || o, 1539 instances: 0, 1540 _result: null 1541 }; 1542 return r.bind(i); 1543 }, e.exports = t.default; 1544 }, function(e, t) { 1545 let n = { 1546 fr: { 1547 paginationMoreElement: "Afficher plus de résultats", 1548 goToNextSection: "Aller à la section suivante", 1549 loading: "Chargement...", 1550 prevStep: "Ãtape précédente", 1551 nextStep: "Ãtape suivante", 1552 prevPage: "Page précédente", 1553 nextPage: "Page suivante", 1554 prev: "Précédent", 1555 next: "Suivant", 1556 stopCarrousel: "Arrêter le diaporama", 1557 startCarrousel: "Lancer le diaporama", 1558 activeSlide: "Slide active", 1559 listReadMore: "En savoir plus", 1560 listDownload: "Télécharger", 1561 listSeeAlso: "Voir aussi", 1562 mandatory: "obligatoire", 1563 formErrorInvalidDate: "La date doit être au format jj/mm/aaaa.", 1564 formErrorBirthdayInFutur: "La date de naissance est plus récente que la date d'aujourd'hui.", 1565 formErrorBirthdayDoNotExist: "La date de naissance n'existe pas.", 1566 formErrorEnterMail: "Veuillez entrer votre courriel.", 1567 formErrorConfirmMail: "Veuillez confirmer votre courriel.", 1568 formErrorInvalidMail: "Votre adresse e-mail est invalide. Le format doit être du type [email protected], sans espace ni caractères spéciaux (é, à , ç, !...).", 1569 formErrorSelectNewsletter: "Veuillez sélectionner une lettre d'information.", 1570 formErrorCheckMail: "La vérification de votre adresse email a échoué.", 1571 formErrorDateFormat: "L'un des champs date n'est pas au format jj/mm/aaaa, ou n'est pas valide. \nMerci de corriger.", 1572 formErrorMandatoryField: "Ce champ est obligatoire.", 1573 formErrorsSummary: "Votre formulaire contient les erreurs suivantes ", 1574 pleaseWaitForFile: "Envoi des pièces jointes en cours, veuillez patienter... ", 1575 pleaseWait: "Veuillez patienter... ", 1576 linkNewWindow: "Nouvelle fenêtre", 1577 linkExternalLink: "Lien externe", 1578 open: "Ouvrir", 1579 close: "Fermer", 1580 closeModalWindow: "Fermer la fenêtre modale", 1581 moreInformation: "Plus d'information", 1582 lessInformation: "Moins d'information", 1583 nextImage: "Image suivante", 1584 prevImage: "Image précédente", 1585 pictures: "images", 1586 picture: "image", 1587 Picture: "Photo",
1588 on: "sur", 1589 Gallery: "Galerie", 1590 navigationError: "Erreur de navigation", 1591 openMenu: "Menu principal", 1592 goToSite: "Accéder au site ", 1593 browseThisPage: "Dans cette page", 1594 cookieMessage: "Ce site utilise des cookies pour favoriser votre navigation et enrichir les contenus qui vous sont proposés. <br />Vous pouvez néanmoins les désactiver à tout moment si vous le souhaitez.<br /><br />", 1595 noResult: "Aucun résultat", 1596 displaying: "Affichage de", 1597 result: "résultat", 1598 of: "sur", 1599 entryError: "Erreur de saisie", 1600 fillFieldRequired: "Ce champ doit être rempli !" 1601 }, 1602 en: { 1603 paginationMoreElement: "Show more results", 1604 goToNextSection: "Go to next section", 1605 loading: "Loading...", 1606 prevStep: "Previous step", 1607 nextStep: "Next step", 1608 prevPage: "Previous page", 1609 nextPage: "Next page", 1610 prev: "Previous", 1611 next: "Next", 1612 stopCarrousel: "Stop slider", 1613 startCarrousel: "Play slider", 1614 activeSlide: "Active slide", 1615 listReadMore: "Read more", 1616 listDownload: "Download", 1617 listSeeAlso: "See also", 1618 mandatory: "required", 1619 formErrorInvalidDate: "The date must use jj/mm/aaaa format.", 1620 formErrorBirthdayInFutur: "The birth date is later than today's date.", 1621 formErrorBirthdayDoNotExist: "The birth date doesn't exist.", 1622 formErrorEnterMail: "Please enter your email address.", 1623 formErrorConfirmMail: "Please confirm your email address.", 1624 formErrorInvalidMail: "Your email address is not valid. \nIt must use [email protected] format, without spaces or special characters (é, à , ç, !...).", 1625 formErrorSelectNewsletter: "Please select a newsletter.", 1626 formErrorCheckMail: "The email verification has failed.", 1627 formErrorDateFormat: "One of date fields doesn't use jj/mm/aaaa format, or is not valid.", 1628 formErrorMandatoryField: "This field is required.", 1629 formErrorsSummary: "Your form contains the following errors: ", 1630 pleaseWaitForFile: "Sending files in progress, please wait... ", 1631 pleaseWait: "Please wait... ", 1632 linkNewWindow: "New window", 1633 linkExternalLink: "External link", 1634 open: "Open", 1635 close: "Close", 1636 closeModalWindow: "Close modal window", 1637 moreInformation: "More information", 1638 lessInformation: "Less information", 1639 nextImage: "Next picture", 1640 prevImage: "Previous picture", 1641 pictures: "pictures", 1642 picture: "picture", 1643 Picture: "Picture", 1644 on: "on", 1645 navigationError: "Browsing error", 1646 openMenu: "Main menu", 1647 goToSite: "Go to site ", 1648 browseThisPage: "Browse this page", 1649 cookieMessage: "This website uses cookies to enhance your navigation and enrich the content. <br />Nevertheless you can disable them at any time if you wish.<br /><br />", 1650 noResult: "No result", 1651 displaying: "Displaying", 1652 result: "result", 1653 of: "of", 1654 entryError: "Entry error", 1655 fillFieldRequired: "This field must be fielded !" 1656 } 1657 }; 1658 n = "undefined" != typeof siteCodeLang ? n[siteCodeLang] : n.fr; 1659 }, , , , , , , function(e, t) { 1660 e.exports = function(e, t) { 1661 return { 1662 enumerable: !(1 & e), 1663 configurable: !(2 & e), 1664 writable: !(4 & e), 1665 value: t 1666 }; 1667 }; 1668 }, function(e, t) { 1669 var n = 0, i = Math.random(); 1670 e.exports = function(e) { 1671 return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + i).toString(36)); 1672 }; 1673 }, function(e, t) { 1674 e.exports = !1; 1675 }, function(e, t, n) { 1676 var i = n(247), r = n(198); 1677 e.exports = Object.keys || function(e) { 1678 return i(e, r); 1679 }; 1680 }, function(e, t, n) { 1681 var i = n(57), r = Math.max, o = Math.min; 1682 e.exports = function(e, t) { 1683 return (e = i(e)) < 0 ? r(e + t, 0) : o(e, t); 1684 }; 1685 }, function(e, t, n) { 1686 var i = n(15), r = n(248), o = n(198), s = n(197)("IE_PROTO"), a = function() {}, l = function() { 1687 var e, t = n(195)("iframe"), i = o.length; 1688 for (t.style.display = "none", n(199).appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(),
1689 e.write("<script>document.F=Object<\/script>"), e.close(), l = e.F; i--; ) delete l.prototype[o[i]]; 1690 return l(); 1691 }; 1692 e.exports = Object.create || function(e, t) { 1693 var n; 1694 return null !== e ? (a.prototype = i(e), n = new a, a.prototype = null, n[s] = e) : n = l(), 1695 void 0 === t ? n : r(n, t); 1696 }; 1697 }, function(e, t, n) { 1698 var i = n(247), r = n(198).concat("length", "prototype"); 1699 t.f = Object.getOwnPropertyNames || function(e) { 1700 return i(e, r); 1701 }; 1702 }, function(e, t, n) { 1703 var i = n(45), r = n(37), o = n(197)("IE_PROTO"), s = Object.prototype; 1704 e.exports = Object.getPrototypeOf || function(e) { 1705 return e = r(e), i(e, o) ? e[o] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? s : null; 1706 }; 1707 }, function(e, t, n) { 1708 var i = n(21)("unscopables"), r = Array.prototype; 1709 null == r[i] && n(46)(r, i, {}), e.exports = function(e) { 1710 r[i][e] = !0; 1711 }; 1712 }, function(e, t, n) { 1713 var i = n(16); 1714 e.exports = function(e, t) { 1715 if (!i(e) || e._t !== t) throw TypeError("Incompatible receiver, " + t + " required!"); 1716 return e; 1717 }; 1718 }, function(e, t) { 1719 var n; 1720 n = function() { 1721 return this; 1722 }(); 1723 try { 1724 n = n || new Function("return this")(); 1725 } catch (e) { 1726 "object" == typeof window && (n = window); 1727 } 1728 e.exports = n; 1729 }, , , , , , , function(e, t, n) { 1730 "use strict"; 1731 Object.defineProperty(t, "__esModule", { 1732 value: !0 1733 }), t.default = function(e) { 1734 var t = (0, i.default)({ 1735 label: "is/active-element", 1736 resolveDocument: !0, 1737 context: e 1738 }); 1739 if ((0, o.default)(t).activeElement === t) return !0; 1740 var n = (0, r.default)({ 1741 context: t 1742 }); 1743 return !(!n || n.shadowRoot.activeElement !== t); 1744 }; 1745 var i = s(n(9)), r = s(n(75)), o = s(n(35)); 1746 function s(e) { 1747 return e && e.__esModule ? e : { 1748 default: e 1749 }; 1750 } 1751 e.exports = t.default; 1752 }, function(e, t, n) { 1753 "use strict"; 1754 Object.defineProperty(t, "__esModule", { 1755 value: !0 1756 }), t.default = function(e) { 1757 s || (s = (0, r.default)()); 1758 var t = s.focusTabindexTrailingCharacters ? l : a, n = (0, i.default)({ 1759 label: "is/valid-tabindex", 1760 resolveDocument: !0, 1761 context: e 1762 }), o = n.hasAttribute("tabindex"), c = n.hasAttribute("tabIndex"); 1763 if (!o && !c) return !1; 1764 if ((n.ownerSVGElement || "svg" === n.nodeName.toLowerCase()) && !s.focusSvgTabindexAttribute) return !1; 1765 if (s.focusInvalidTabindex) return !0; 1766 var u = n.getAttribute(o ? "tabindex" : "tabIndex"); 1767 return "-32768" !== u && Boolean(u && t.test(u)); 1768 }; 1769 var i = o(n(9)), r = o(n(30)); 1770 function o(e) { 1771 return e && e.__esModule ? e : { 1772 default: e 1773 }; 1774 } 1775 var s = void 0, a = /^\s*(-|\+)?[0-9]+\s*$/, l = /^\s*(-|\+)?[0-9]+.*$/; 1776 e.exports = t.default; 1777 }, function(e, t, n) { 1778 "use strict"; 1779 Object.defineProperty(t, "__esModule", { 1780 value: !0 1781 }); 1782 var i = u(n(36)), r = u(n(9)), o = u(n(135)), s = u(n(51)), a = u(n(104)), l = n(174), c = u(n(30)); 1783 function u(e) { 1784 return e && e.__esModule ? e : { 1785 default: e 1786 }; 1787 } 1788 var d = void 0; 1789 function h() { 1790 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, u = void 0 === n ? { 1791 flexbox: !1, 1792 scrollable: !1, 1793 shadow: !1 1794 } : n; 1795 d || (d = (0, c.default)()); 1796 var h = (0, r.default)({ 1797 label: "is/focus-relevant", 1798 resolveDocument: !0, 1799 context: t 1800 }); 1801 if (!u.shadow && h.shadowRoot) return !0; 1802 var f = h.nodeName.toLowerCase(); 1803 if ("input" === f && "hidden" === h.type) return !1; 1804 if ("input" === f || "select" === f || "button" === f || "textarea" === f) return !0; 1805 if ("legend" === f && d.focusRedirectLegend) return !0; 1806 if ("label" === f) return !0; 1807 if ("area" === f) return !0; 1808 if ("a" === f && h.hasAttribute("href")) return !0; 1809 if ("object" === f && h.hasAttribute("usemap")) return !1; 1810 if ("object" === f) { 1811 var p = h.getAttribute("type"); 1812 if (!d.focusObjectSvg && "image/svg+xml" === p) return !1; 1813 if (!d.focusObjectSwf && "application/x-shockwave-flash" === p) return !1; 1814 } 1815 if ("iframe" === f || "object" === f) return !0; 1816 if ("embed" === f || "keygen" === f) return !0; 1817 if (h.hasAttribute("contenteditable")) return !0; 1818 if ("audio" === f && (d.focusAudioWithoutControls || h.hasAttribute("controls"))) return !0; 1819 if ("video" === f && (d.focusVideoWithoutControls || h.hasAttribute("controls"))) return !0; 1820 if (d.focusSummary && "summary" === f) return !0; 1821 var m = (0, a.default)(h); 1822 if ("img" === f && h.hasAttribute("usemap")) return m && d.focusImgUsemapTabindex || d.focusRedirectImgUsemap; 1823 if (d.focusTable && ("table" === f || "td" === f)) return !0; 1824 if (d.focusFieldset && "fieldset" === f) return !0; 1825 var g = "svg" === f, v = h.ownerSVGElement, b = h.getAttribute("focusable"), y = (0, 1826 s.default)(h); 1827 if ("use" === f && null !== y && !d.focusSvgUseTabindex) return !1; 1828 if ("foreignobject" === f) return null !== y && d.focusSvgForeignobjectTabindex; 1829 if ((0, o.default)(h, "svg a") && h.hasAttribute("xlink:href")) return !0; 1830 if ((g || v) && h.focus && !d.focusSvgNegativeTabindexAttribute && y < 0) return !1; 1831 if (g) return m || d.focusSvg || d.focusSvgInIframe || Boolean(d.focusSvgFocusableAttribute && b && "true" === b); 1832 if (v) { 1833 if (d.focusSvgTabindexAttribute && m) return !0; 1834 if (d.focusSvgFocusableAttribute) return "true" === b; 1835 } 1836 if (m) return !0; 1837 var x = window.getComputedStyle(h, null);
1838 if ((0, l.isUserModifyWritable)(x)) return !0; 1839 if (d.focusImgIsmap && "img" === f && h.hasAttribute("ismap")) { 1840 var w = (0, i.default)({ 1841 context: h 1842 }).some((function(e) { 1843 return "a" === e.nodeName.toLowerCase() && e.hasAttribute("href"); 1844 })); 1845 if (w) return !0; 1846 } 1847 if (!u.scrollable && d.focusScrollContainer) if (d.focusScrollContainerWithoutOverflow) { 1848 if ((0, l.isScrollableContainer)(h, f)) return !0; 1849 } else if ((0, l.hasCssOverflowScroll)(x)) return !0; 1850 if (!u.flexbox && d.focusFlexboxContainer && (0, l.hasCssDisplayFlex)(x)) return !0; 1851 var _ = h.parentElement; 1852 if (!u.scrollable && _) { 1853 var S = _.nodeName.toLowerCase(), E = window.getComputedStyle(_, null); 1854 if (d.focusScrollBody && (0, l.isScrollableContainer)(_, f, S, E)) return !0; 1855 if (d.focusChildrenOfFocusableFlexbox && (0, l.hasCssDisplayFlex)(E)) return !0; 1856 } 1857 return !1; 1858 } 1859 h.except = function() { 1860 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = function(t) { 1861 return h({ 1862 context: t, 1863 except: e 1864 }); 1865 }; 1866 return t.rules = h, t; 1867 }; 1868 var f = h.except({}); 1869 t.default = f, e.exports = t.default; 1870 }, function(e, t, n) { 1871 "use strict"; 1872 Object.defineProperty(t, "__esModule", { 1873 value: !0 1874 }), t.default = function(e) { 1875 var t = (0, r.default)(e); 1876 if (!t.parent || t.parent === t) return null; 1877 try { 1878 return t.frameElement || function(e) { 1879 a || (a = (0, o.default)("object, iframe")); 1880 if (void 0 !== e._frameElement) return e._frameElement; 1881 e._frameElement = null; 1882 var t = e.parent.document.querySelectorAll(a); 1883 return [].some.call(t, (function(t) { 1884 return (0, i.default)(t) === e.document && (e._frameElement = t, !0); 1885 })), e._frameElement; 1886 }(t); 1887 } catch (e) { 1888 return null; 1889 } 1890 }; 1891 var i = s(n(325)), r = s(n(134)), o = s(n(137)); 1892 function s(e) { 1893 return e && e.__esModule ? e : { 1894 default: e 1895 }; 1896 } 1897 var a = void 0; 1898 e.exports = t.default; 1899 }, function(e, t, n) { 1900 "use strict"; 1901 Object.defineProperty(t, "__esModule", { 1902 value: !0 1903 }), t.getMapByName = s, t.getMapOfImage = function(e) { 1904 var t = e.getAttribute("usemap"); 1905 if (!t) return null; 1906 var n = (0, r.default)(e); 1907 return s(t.slice(1), n); 1908 }, t.getImageOfArea = function(e) { 1909 var t = e.parentElement; 1910 if (!t.name || "map" !== t.nodeName.toLowerCase()) return null; 1911 return (0, r.default)(e).querySelector('img[usemap="#' + (0, i.default)(t.name) + '"]') || null; 1912 }; 1913 var i = o(n(326)), r = o(n(35)); 1914 function o(e) { 1915 return e && e.__esModule ? e : { 1916 default: e 1917 }; 1918 } 1919 function s(e, t) { 1920 return t.querySelector('map[name="' + (0, i.default)(e) + '"]') || null; 1921 } 1922 }, function(e, t, n) { 1923 "use strict"; 1924 Object.defineProperty(t, "__esModule", { 1925 value: !0 1926 }), t.default = function() { 1927 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.includeContext, s = e.includeOnlyTabbable, a = e.strategy, l = void 0 === a ? "quick" : a, c = (0, 1928 i.default)({ 1929 label: "query/focusable", 1930 resolveDocument: !0, 1931 defaultToDocument: !0, 1932 context: t 1933 }), u = { 1934 context: c, 1935 includeContext: n, 1936 includeOnlyTabbable: s, 1937 strategy: l 1938 }; 1939 if ("quick" === l) return (0, o.default)(u); 1940 if ("strict" === l || "all" === l) return (0, r.default)(u); 1941 throw new TypeError('query/focusable requires option.strategy to be one of ["quick", "strict", "all"]'); 1942 }; 1943 var i = s(n(9)), r = s(n(327)), o = s(n(328)); 1944 function s(e) {
1945 return e && e.__esModule ? e : { 1946 default: e 1947 }; 1948 } 1949 e.exports = t.default; 1950 }, function(e, t, n) { 1951 "use strict"; 1952 Object.defineProperty(t, "__esModule", { 1953 value: !0 1954 }), t.getParentComparator = function() { 1955 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.parent, n = e.element, i = e.includeSelf; 1956 if (t) return function(e) { 1957 return Boolean(i && e === t || t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_CONTAINED_BY); 1958 }; 1959 if (n) return function(e) { 1960 return Boolean(i && n === e || e.compareDocumentPosition(n) & Node.DOCUMENT_POSITION_CONTAINED_BY); 1961 }; 1962 throw new TypeError("util/compare-position#getParentComparator required either options.parent or options.element"); 1963 }; 1964 }, , , , , , , function(e, t, n) { 1965 var i = n(28).f, r = n(45), o = n(21)("toStringTag"); 1966 e.exports = function(e, t, n) { 1967 e && !r(e = n ? e : e.prototype, o) && i(e, o, { 1968 configurable: !0, 1969 value: t 1970 }); 1971 }; 1972 }, function(e, t, n) { 1973 var i = n(1), r = n(68), o = n(14), s = n(201), a = "[" + s + "]", l = RegExp("^" + a + a + "*"), c = RegExp(a + a + "*$"), u = function(e, t, n) { 1974 var r = {}, a = o((function() { 1975 return !!s[e]() || "â " != "â "[e](); 1976 })), l = r[e] = a ? t(d) : s[e]; 1977 n && (r[n] = l), i(i.P + i.F * a, "String", r); 1978 }, d = u.trim = function(e, t) { 1979 return e = String(r(e)), 1 & t && (e = e.replace(l, "")), 2 & t && (e = e.replace(c, "")), 1980 e; 1981 }; 1982 e.exports = u; 1983 }, function(e, t) { 1984 e.exports = {}; 1985 }, function(e, t, n) { 1986 "use strict"; 1987 var i = n(13), r = n(28), o = n(27), s = n(21)("species"); 1988 e.exports = function(e) { 1989 var t = i[e]; 1990 o && t && !t[s] && r.f(t, s, { 1991 configurable: !0, 1992 get: function() { 1993 return this; 1994 } 1995 }); 1996 }; 1997 }, function(e, t) { 1998 e.exports = function(e, t, n, i) { 1999 if (!(e instanceof t) || void 0 !== i && i in e) throw TypeError(n + ": incorrect invocation!"); 2000 return e; 2001 }; 2002 }, function(e, t, n) { 2003 var i = n(39); 2004 e.exports = function(e, t, n) { 2005 for (var r in t) i(e, r, t[r], n); 2006 return e; 2007 }; 2008 }, function(e, t, n) { 2009 e.exports = function() { 2010 "use strict"; 2011 var e = "undefined" == typeof document ? { 2012 body: {}, 2013 addEventListener: function() {}, 2014 removeEventListener: function() {}, 2015 activeElement: { 2016 blur: function() {}, 2017 nodeName: "" 2018 }, 2019 querySelector: function() { 2020 return null; 2021 }, 2022 querySelectorAll: function() { 2023 return []; 2024 }, 2025 getElementById: function() { 2026 return null; 2027 }, 2028 createEvent: function() { 2029 return { 2030 initEvent: function() {} 2031 }; 2032 }, 2033 createElement: function() { 2034 return { 2035 children: [], 2036 childNodes: [], 2037 style: {}, 2038 setAttribute: function() {}, 2039 getElementsByTagName: function() { 2040 return []; 2041 } 2042 }; 2043 }, 2044 location: { 2045 hash: "" 2046 } 2047 } : document, t = "undefined" == typeof window ? { 2048 document: e, 2049 navigator: { 2050 userAgent: "" 2051 }, 2052 location: {}, 2053 history: {}, 2054 CustomEvent: function() { 2055 return this; 2056 }, 2057 addEventListener: function() {}, 2058 removeEventListener: function() {}, 2059 getComputedStyle: function() { 2060 return { 2061 getPropertyValue: function() { 2062 return ""; 2063 } 2064 }; 2065 }, 2066 Image: function() {}, 2067 Date: function() {}, 2068 screen: {}, 2069 setTimeout: function() {}, 2070 clearTimeout: function() {} 2071 } : window, n = function(e) { 2072 for (var t = 0; t < e.length; t += 1) this[t] = e[t]; 2073 return this.length = e.length, this; 2074 }; 2075 function i(i, r) { 2076 var o = [], s = 0; 2077 if (i && !r && i instanceof n) return i; 2078 if (i) if ("string" == typeof i) { 2079 var a, l, c = i.trim(); 2080 if (c.indexOf("<") >= 0 && c.indexOf(">") >= 0) { 2081 var u = "div"; 2082 for (0 === c.indexOf("<li") && (u = "ul"), 0 === c.indexOf("<tr") && (u = "tbody"), 2083 0 !== c.indexOf("<td") && 0 !== c.indexOf("<th") || (u = "tr"), 0 === c.indexOf("<tbody") && (u = "table"), 2084 0 === c.indexOf("<option") && (u = "select"), (l = e.createElement(u)).innerHTML = c, 2085 s = 0; s < l.childNodes.length; s += 1) o.push(l.childNodes[s]); 2086 } else for (a = r || "#" !== i[0] || i.match(/[ .<>:~]/) ? (r || e).querySelectorAll(i.trim()) : [ e.getElementById(i.trim().split("#")[1]) ], 2087 s = 0; s < a.length; s += 1) a[s] && o.push(a[s]); 2088 } else if (i.nodeType || i === t || i === e) o.push(i); else if (i.length > 0 && i[0].nodeType) for (s = 0; s < i.length; s += 1) o.push(i[s]); 2089 return new n(o); 2090 } 2091 function r(e) { 2092 for (var t = [], n = 0; n < e.length; n += 1) -1 === t.indexOf(e[n]) && t.push(e[n]); 2093 return t; 2094 } 2095 i.fn = n.prototype, i.Class = n, i.Dom7 = n; 2096 var o = { 2097 addClass: function(e) { 2098 if (void 0 === e) return this; 2099 for (var t = e.split(" "), n = 0; n < t.length; n += 1) for (var i = 0; i < this.length; i += 1) void 0 !== this[i] && void 0 !== this[i].classList && this[i].classList.add(t[n]); 2100 return this; 2101 }, 2102 removeClass: function(e) { 2103 for (var t = e.split(" "), n = 0; n < t.length; n += 1) for (var i = 0; i < this.length; i += 1) void 0 !== this[i] && void 0 !== this[i].classList && this[i].classList.remove(t[n]); 2104 return this; 2105 }, 2106 hasClass: function(e) { 2107 return !!this[0] && this[0].classList.contains(e); 2108 }, 2109 toggleClass: function(e) { 2110 for (var t = e.split(" "), n = 0; n < t.length; n += 1) for (var i = 0; i < this.length; i += 1) void 0 !== this[i] && void 0 !== this[i].classList && this[i].classList.toggle(t[n]); 2111 return this; 2112 }, 2113 attr: function(e, t) { 2114 var n = arguments; 2115 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 2116 for (var i = 0; i < this.length; i += 1) if (2 === n.length) this[i].setAttribute(e, t); else for (var r in e) this[i][r] = e[r], 2117 this[i].setAttribute(r, e[r]); 2118 return this; 2119 }, 2120 removeAttr: function(e) { 2121 for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e); 2122 return this; 2123 }, 2124 data: function(e, t) { 2125 var n; 2126 if (void 0 !== t) { 2127 for (var i = 0; i < this.length; i += 1) (n = this[i]).dom7ElementDataStorage || (n.dom7ElementDataStorage = {}), 2128 n.dom7ElementDataStorage[e] = t; 2129 return this; 2130 } 2131 if (n = this[0]) { 2132 if (n.dom7ElementDataStorage && e in n.dom7ElementDataStorage) return n.dom7ElementDataStorage[e]; 2133 var r = n.getAttribute("data-" + e); 2134 return r || void 0; 2135 } 2136 }, 2137 transform: function(e) { 2138 for (var t = 0; t < this.length; t += 1) { 2139 var n = this[t].style; 2140 n.webkitTransform = e, n.transform = e; 2141 } 2142 return this; 2143 }, 2144 transition: function(e) { 2145 "string" != typeof e && (e += "ms"); 2146 for (var t = 0; t < this.length; t += 1) { 2147 var n = this[t].style; 2148 n.webkitTransitionDuration = e, n.transitionDuration = e; 2149 } 2150 return this; 2151 }, 2152 on: function() { 2153 for (var e, t = [], n = arguments.length; n--; ) t[n] = arguments[n]; 2154 var r = t[0], o = t[1], s = t[2], a = t[3]; 2155 function l(e) { 2156 var t = e.target; 2157 if (t) { 2158 var n = e.target.dom7EventData || []; 2159 if (n.indexOf(e) < 0 && n.unshift(e), i(t).is(o)) s.apply(t, n); else for (var r = i(t).parents(), a = 0; a < r.length; a += 1) i(r[a]).is(o) && s.apply(r[a], n); 2160 } 2161 } 2162 function c(e) { 2163 var t = e && e.target && e.target.dom7EventData || []; 2164 t.indexOf(e) < 0 && t.unshift(e), s.apply(this, t); 2165 } 2166 "function" == typeof t[1] && (r = (e = t)[0], s = e[1], a = e[2], o = void 0), a || (a = !1); 2167 for (var u, d = r.split(" "), h = 0; h < this.length; h += 1) { 2168 var f = this[h]; 2169 if (o) for (u = 0; u < d.length; u += 1) { 2170 var p = d[u]; 2171 f.dom7LiveListeners || (f.dom7LiveListeners = {}), f.dom7LiveListeners[p] || (f.dom7LiveListeners[p] = []), 2172 f.dom7LiveListeners[p].push({ 2173 listener: s, 2174 proxyListener: l 2175 }), f.addEventListener(p, l, a); 2176 } else for (u = 0; u < d.length; u += 1) { 2177 var m = d[u]; 2178 f.dom7Listeners || (f.dom7Listeners = {}), f.dom7Listeners[m] || (f.dom7Listeners[m] = []), 2179 f.dom7Listeners[m].push({ 2180 listener: s, 2181 proxyListener: c 2182 }), f.addEventListener(m, c, a); 2183 } 2184 } 2185 return this; 2186 }, 2187 off: function() { 2188 for (var e, t = [], n = arguments.length; n--; ) t[n] = arguments[n]; 2189 var i = t[0], r = t[1], o = t[2], s = t[3]; 2190 "function" == typeof t[1] && (i = (e = t)[0], o = e[1], s = e[2], r = void 0), s || (s = !1); 2191 for (var a = i.split(" "), l = 0; l < a.length; l += 1) for (var c = a[l], u = 0; u < this.length; u += 1) { 2192 var d = this[u], h = void 0;
2193 if (!r && d.dom7Listeners ? h = d.dom7Listeners[c] : r && d.dom7LiveListeners && (h = d.dom7LiveListeners[c]), 2194 h && h.length) for (var f = h.length - 1; f >= 0; f -= 1) { 2195 var p = h[f]; 2196 o && p.listener === o || o && p.listener && p.listener.dom7proxy && p.listener.dom7proxy === o ? (d.removeEventListener(c, p.proxyListener, s), 2197 h.splice(f, 1)) : o || (d.removeEventListener(c, p.proxyListener, s), h.splice(f, 1)); 2198 } 2199 } 2200 return this; 2201 }, 2202 trigger: function() { 2203 for (var n = [], i = arguments.length; i--; ) n[i] = arguments[i]; 2204 for (var r = n[0].split(" "), o = n[1], s = 0; s < r.length; s += 1) for (var a = r[s], l = 0; l < this.length; l += 1) { 2205 var c = this[l], u = void 0; 2206 try { 2207 u = new t.CustomEvent(a, { 2208 detail: o, 2209 bubbles: !0, 2210 cancelable: !0 2211 }); 2212 } catch (t) { 2213 (u = e.createEvent("Event")).initEvent(a, !0, !0), u.detail = o; 2214 } 2215 c.dom7EventData = n.filter((function(e, t) { 2216 return t > 0; 2217 })), c.dispatchEvent(u), c.dom7EventData = [], delete c.dom7EventData; 2218 } 2219 return this; 2220 }, 2221 transitionEnd: function(e) { 2222 var t, n = [ "webkitTransitionEnd", "transitionend" ], i = this; 2223 function r(o) { 2224 if (o.target === this) for (e.call(this, o), t = 0; t < n.length; t += 1) i.off(n[t], r); 2225 } 2226 if (e) for (t = 0; t < n.length; t += 1) i.on(n[t], r); 2227 return this; 2228 }, 2229 outerWidth: function(e) { 2230 if (this.length > 0) { 2231 if (e) { 2232 var t = this.styles(); 2233 return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue("margin-left")); 2234 } 2235 return this[0].offsetWidth; 2236 } 2237 return null; 2238 }, 2239 outerHeight: function(e) { 2240 if (this.length > 0) { 2241 if (e) { 2242 var t = this.styles(); 2243 return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue("margin-bottom")); 2244 } 2245 return this[0].offsetHeight; 2246 } 2247 return null; 2248 }, 2249 offset: function() { 2250 if (this.length > 0) { 2251 var n = this[0], i = n.getBoundingClientRect(), r = e.body, o = n.clientTop || r.clientTop || 0, s = n.clientLeft || r.clientLeft || 0, a = n === t ? t.scrollY : n.scrollTop, l = n === t ? t.scrollX : n.scrollLeft; 2252 return { 2253 top: i.top + a - o, 2254 left: i.left + l - s 2255 }; 2256 } 2257 return null; 2258 }, 2259 css: function(e, n) { 2260 var i; 2261 if (1 === arguments.length) { 2262 if ("string" != typeof e) { 2263 for (i = 0; i < this.length; i += 1) for (var r in e) this[i].style[r] = e[r]; 2264 return this; 2265 } 2266 if (this[0]) return t.getComputedStyle(this[0], null).getPropertyValue(e); 2267 } 2268 if (2 === arguments.length && "string" == typeof e) { 2269 for (i = 0; i < this.length; i += 1) this[i].style[e] = n; 2270 return this; 2271 } 2272 return this; 2273 }, 2274 each: function(e) { 2275 if (!e) return this; 2276 for (var t = 0; t < this.length; t += 1) if (!1 === e.call(this[t], t, this[t])) return this; 2277 return this; 2278 }, 2279 html: function(e) { 2280 if (void 0 === e) return this[0] ? this[0].innerHTML : void 0; 2281 for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e; 2282 return this; 2283 }, 2284 text: function(e) { 2285 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 2286 for (var t = 0; t < this.length; t += 1) this[t].textContent = e; 2287 return this; 2288 }, 2289 is: function(r) { 2290 var o, s, a = this[0]; 2291 if (!a || void 0 === r) return !1; 2292 if ("string" == typeof r) { 2293 if (a.matches) return a.matches(r); 2294 if (a.webkitMatchesSelector) return a.webkitMatchesSelector(r); 2295 if (a.msMatchesSelector) return a.msMatchesSelector(r); 2296 for (o = i(r), s = 0; s < o.length; s += 1) if (o[s] === a) return !0; 2297 return !1; 2298 } 2299 if (r === e) return a === e; 2300 if (r === t) return a === t; 2301 if (r.nodeType || r instanceof n) { 2302 for (o = r.nodeType ? [ r ] : r, s = 0; s < o.length; s += 1) if (o[s] === a) return !0; 2303 return !1; 2304 } 2305 return !1; 2306 }, 2307 index: function() { 2308 var e, t = this[0]; 2309 if (t) { 2310 for (e = 0; null !== (t = t.previousSibling); ) 1 === t.nodeType && (e += 1); 2311 return e; 2312 } 2313 }, 2314 eq: function(e) { 2315 if (void 0 === e) return this; 2316 var t, i = this.length; 2317 return new n(e > i - 1 ? [] : e < 0 ? (t = i + e) < 0 ? [] : [ this[t] ] : [ this[e] ]); 2318 }, 2319 append: function() { 2320 for (var t, i = [], r = arguments.length; r--; ) i[r] = arguments[r]; 2321 for (var o = 0; o < i.length; o += 1) { 2322 t = i[o]; 2323 for (var s = 0; s < this.length; s += 1) if ("string" == typeof t) { 2324 var a = e.createElement("div"); 2325 for (a.innerHTML = t; a.firstChild; ) this[s].appendChild(a.firstChild); 2326 } else if (t instanceof n) for (var l = 0; l < t.length; l += 1) this[s].appendChild(t[l]); else this[s].appendChild(t); 2327 } 2328 return this; 2329 }, 2330 prepend: function(t) { 2331 var i, r; 2332 for (i = 0; i < this.length; i += 1) if ("string" == typeof t) { 2333 var o = e.createElement("div"); 2334 for (o.innerHTML = t, r = o.childNodes.length - 1; r >= 0; r -= 1) this[i].insertBefore(o.childNodes[r], this[i].childNodes[0]); 2335 } else if (t instanceof n) for (r = 0; r < t.length; r += 1) this[i].insertBefore(t[r], this[i].childNodes[0]); else this[i].insertBefore(t, this[i].childNodes[0]); 2336 return this; 2337 }, 2338 next: function(e) { 2339 return this.length > 0 ? e ? this[0].nextElementSibling && i(this[0].nextElementSibling).is(e) ? new n([ this[0].nextElementSibling ]) : new n([]) : this[0].nextElementSibling ? new n([ this[0].nextElementSibling ]) : new n([]) : new n([]); 2340 }, 2341 nextAll: function(e) { 2342 var t = [], r = this[0]; 2343 if (!r) return new n([]); 2344 for (;r.nextElementSibling; ) { 2345 var o = r.nextElementSibling; 2346 e ? i(o).is(e) && t.push(o) : t.push(o), r = o; 2347 } 2348 return new n(t); 2349 }, 2350 prev: function(e) { 2351 if (this.length > 0) { 2352 var t = this[0]; 2353 return e ? t.previousElementSibling && i(t.previousElementSibling).is(e) ? new n([ t.previousElementSibling ]) : new n([]) : t.previousElementSibling ? new n([ t.previousElementSibling ]) : new n([]); 2354 } 2355 return new n([]); 2356 }, 2357 prevAll: function(e) { 2358 var t = [], r = this[0]; 2359 if (!r) return new n([]); 2360 for (;r.previousElementSibling; ) { 2361 var o = r.previousElementSibling; 2362 e ? i(o).is(e) && t.push(o) : t.push(o), r = o; 2363 } 2364 return new n(t); 2365 }, 2366 parent: function(e) { 2367 for (var t = [], n = 0; n < this.length; n += 1) null !== this[n].parentNode && (e ? i(this[n].parentNode).is(e) && t.push(this[n].parentNode) : t.push(this[n].parentNode)); 2368 return i(r(t)); 2369 }, 2370 parents: function(e) { 2371 for (var t = [], n = 0; n < this.length; n += 1) for (var o = this[n].parentNode; o; ) e ? i(o).is(e) && t.push(o) : t.push(o), 2372 o = o.parentNode; 2373 return i(r(t)); 2374 }, 2375 closest: function(e) { 2376 var t = this; 2377 return void 0 === e ? new n([]) : (t.is(e) || (t = t.parents(e).eq(0)), t); 2378 }, 2379 find: function(e) { 2380 for (var t = [], i = 0; i < this.length; i += 1) for (var r = this[i].querySelectorAll(e), o = 0; o < r.length; o += 1) t.push(r[o]); 2381 return new n(t); 2382 }, 2383 children: function(e) { 2384 for (var t = [], o = 0; o < this.length; o += 1) for (var s = this[o].childNodes, a = 0; a < s.length; a += 1) e ? 1 === s[a].nodeType && i(s[a]).is(e) && t.push(s[a]) : 1 === s[a].nodeType && t.push(s[a]); 2385 return new n(r(t)); 2386 }, 2387 remove: function() { 2388 for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 2389 return this; 2390 }, 2391 add: function() { 2392 for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t]; 2393 var n, r, o = this; 2394 for (n = 0; n < e.length; n += 1) { 2395 var s = i(e[n]); 2396 for (r = 0; r < s.length; r += 1) o[o.length] = s[r], o.length += 1; 2397 } 2398 return o; 2399 }, 2400 styles: function() { 2401 return this[0] ? t.getComputedStyle(this[0], null) : {}; 2402 } 2403 };
2404 Object.keys(o).forEach((function(e) { 2405 i.fn[e] = i.fn[e] || o[e]; 2406 })); 2407 var s, a, l, c = { 2408 deleteProps: function(e) { 2409 var t = e; 2410 Object.keys(t).forEach((function(e) { 2411 try { 2412 t[e] = null; 2413 } catch (e) {} 2414 try { 2415 delete t[e]; 2416 } catch (e) {} 2417 })); 2418 }, 2419 nextTick: function(e, t) { 2420 return void 0 === t && (t = 0), setTimeout(e, t); 2421 }, 2422 now: function() { 2423 return Date.now(); 2424 }, 2425 getTranslate: function(e, n) { 2426 var i, r, o; 2427 void 0 === n && (n = "x"); 2428 var s = t.getComputedStyle(e, null); 2429 return t.WebKitCSSMatrix ? ((r = s.transform || s.webkitTransform).split(",").length > 6 && (r = r.split(", ").map((function(e) { 2430 return e.replace(",", "."); 2431 })).join(", ")), o = new t.WebKitCSSMatrix("none" === r ? "" : r)) : i = (o = s.MozTransform || s.OTransform || s.MsTransform || s.msTransform || s.transform || s.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","), 2432 "x" === n && (r = t.WebKitCSSMatrix ? o.m41 : 16 === i.length ? parseFloat(i[12]) : parseFloat(i[4])), 2433 "y" === n && (r = t.WebKitCSSMatrix ? o.m42 : 16 === i.length ? parseFloat(i[13]) : parseFloat(i[5])), 2434 r || 0; 2435 }, 2436 parseUrlQuery: function(e) { 2437 var n, i, r, o, s = {}, a = e || t.location.href; 2438 if ("string" == typeof a && a.length) for (o = (i = (a = a.indexOf("?") > -1 ? a.replace(/\S*\?/, "") : "").split("&").filter((function(e) { 2439 return "" !== e; 2440 }))).length, n = 0; n < o; n += 1) r = i[n].replace(/#\S+/g, "").split("="), s[decodeURIComponent(r[0])] = void 0 === r[1] ? void 0 : decodeURIComponent(r[1]) || ""; 2441 return s; 2442 }, 2443 isObject: function(e) { 2444 return "object" == typeof e && null !== e && e.constructor && e.constructor === Object; 2445 }, 2446 extend: function() { 2447 for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t]; 2448 for (var n = Object(e[0]), i = 1; i < e.length; i += 1) { 2449 var r = e[i]; 2450 if (null != r) for (var o = Object.keys(Object(r)), s = 0, a = o.length; s < a; s += 1) { 2451 var l = o[s], u = Object.getOwnPropertyDescriptor(r, l); 2452 void 0 !== u && u.enumerable && (c.isObject(n[l]) && c.isObject(r[l]) ? c.extend(n[l], r[l]) : !c.isObject(n[l]) && c.isObject(r[l]) ? (n[l] = {}, 2453 c.extend(n[l], r[l])) : n[l] = r[l]); 2454 } 2455 } 2456 return n; 2457 } 2458 }, u = (l = e.createElement("div"), { 2459 touch: t.Modernizr && !0 === t.Modernizr.touch || !!(t.navigator.maxTouchPoints > 0 || "ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch), 2460 pointerEvents: !!(t.navigator.pointerEnabled || t.PointerEvent || "maxTouchPoints" in t.navigator && t.navigator.maxTouchPoints > 0), 2461 prefixedPointerEvents: !!t.navigator.msPointerEnabled, 2462 transition: (a = l.style, "transition" in a || "webkitTransition" in a || "MozTransition" in a), 2463 transforms3d: t.Modernizr && !0 === t.Modernizr.csstransforms3d || function() { 2464 var e = l.style; 2465 return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e; 2466 }(), 2467 flexbox: function() { 2468 for (var e = l.style, t = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), n = 0; n < t.length; n += 1) if (t[n] in e) return !0; 2469 return !1; 2470 }(), 2471 observer: "MutationObserver" in t || "WebkitMutationObserver" in t, 2472 passiveListener: function() { 2473 var e = !1; 2474 try { 2475 var n = Object.defineProperty({}, "passive", { 2476 get: function() { 2477 e = !0; 2478 } 2479 }); 2480 t.addEventListener("testPassiveListener", null, n); 2481 } catch (e) {} 2482 return e; 2483 }(), 2484 gestures: "ongesturestart" in t 2485 }), d = { 2486 isIE: !!t.navigator.userAgent.match(/Trident/g) || !!t.navigator.userAgent.match(/MSIE/g), 2487 isEdge: !!t.navigator.userAgent.match(/Edge/g), 2488 isSafari: (s = t.navigator.userAgent.toLowerCase(), s.indexOf("safari") >= 0 && s.indexOf("chrome") < 0 && s.indexOf("android") < 0),
2489 isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent) 2490 }, h = function(e) { 2491 void 0 === e && (e = {}); 2492 var t = this; 2493 t.params = e, t.eventsListeners = {}, t.params && t.params.on && Object.keys(t.params.on).forEach((function(e) { 2494 t.on(e, t.params.on[e]); 2495 })); 2496 }, f = { 2497 components: { 2498 configurable: !0 2499 } 2500 }; 2501 h.prototype.on = function(e, t, n) { 2502 var i = this; 2503 if ("function" != typeof t) return i; 2504 var r = n ? "unshift" : "push"; 2505 return e.split(" ").forEach((function(e) { 2506 i.eventsListeners[e] || (i.eventsListeners[e] = []), i.eventsListeners[e][r](t); 2507 })), i; 2508 }, h.prototype.once = function(e, t, n) { 2509 var i = this; 2510 if ("function" != typeof t) return i; 2511 function r() { 2512 for (var n = [], o = arguments.length; o--; ) n[o] = arguments[o]; 2513 t.apply(i, n), i.off(e, r), r.f7proxy && delete r.f7proxy; 2514 } 2515 return r.f7proxy = t, i.on(e, r, n); 2516 }, h.prototype.off = function(e, t) { 2517 var n = this; 2518 return n.eventsListeners ? (e.split(" ").forEach((function(e) { 2519 void 0 === t ? n.eventsListeners[e] = [] : n.eventsListeners[e] && n.eventsListeners[e].length && n.eventsListeners[e].forEach((function(i, r) { 2520 (i === t || i.f7proxy && i.f7proxy === t) && n.eventsListeners[e].splice(r, 1); 2521 })); 2522 })), n) : n; 2523 }, h.prototype.emit = function() { 2524 for (var e = [], t = arguments.length; t--; ) e[t] = arguments[t]; 2525 var n, i, r, o = this; 2526 if (!o.eventsListeners) return o; 2527 "string" == typeof e[0] || Array.isArray(e[0]) ? (n = e[0], i = e.slice(1, e.length), 2528 r = o) : (n = e[0].events, i = e[0].data, r = e[0].context || o); 2529 var s = Array.isArray(n) ? n : n.split(" "); 2530 return s.forEach((function(e) { 2531 if (o.eventsListeners && o.eventsListeners[e]) { 2532 var t = []; 2533 o.eventsListeners[e].forEach((function(e) { 2534 t.push(e); 2535 })), t.forEach((function(e) { 2536 e.apply(r, i); 2537 })); 2538 } 2539 })), o; 2540 }, h.prototype.useModulesParams = function(e) { 2541 var t = this; 2542 t.modules && Object.keys(t.modules).forEach((function(n) { 2543 var i = t.modules[n]; 2544 i.params && c.extend(e, i.params); 2545 })); 2546 }, h.prototype.useModules = function(e) { 2547 void 0 === e && (e = {}); 2548 var t = this; 2549 t.modules && Object.keys(t.modules).forEach((function(n) { 2550 var i = t.modules[n], r = e[n] || {}; 2551 i.instance && Object.keys(i.instance).forEach((function(e) { 2552 var n = i.instance[e]; 2553 t[e] = "function" == typeof n ? n.bind(t) : n; 2554 })), i.on && t.on && Object.keys(i.on).forEach((function(e) { 2555 t.on(e, i.on[e]); 2556 })), i.create && i.create.bind(t)(r); 2557 })); 2558 }, f.components.set = function(e) { 2559 this.use && this.use(e); 2560 }, h.installModule = function(e) { 2561 for (var t = [], n = arguments.length - 1; n-- > 0; ) t[n] = arguments[n + 1]; 2562 var i = this; 2563 i.prototype.modules || (i.prototype.modules = {}); 2564 var r = e.name || Object.keys(i.prototype.modules).length + "_" + c.now(); 2565 return i.prototype.modules[r] = e, e.proto && Object.keys(e.proto).forEac
2565h((function(t) { 2566 i.prototype[t] = e.proto[t]; 2567 })), e.static && Object.keys(e.static).forEach((function(t) { 2568 i[t] = e.static[t]; 2569 })), e.install && e.install.apply(i, t), i; 2570 }, h.use = function(e) { 2571 for (var t = [], n = arguments.length - 1; n-- > 0; ) t[n] = arguments[n + 1]; 2572 var i = this; 2573 return Array.isArray(e) ? (e.forEach((function(e) { 2574 return i.installModule(e); 2575 })), i) : i.installModule.apply(i, [ e ].concat(t)); 2576 }, Object.defineProperties(h, f); 2577 var p = { 2578 updateSize: function() { 2579 var e, t, n = this.$el; 2580 e = void 0 !== this.params.width ? this.params.width : n[0].clientWidth, t = void 0 !== this.params.height ? this.params.height : n[0].clientHeight, 2581 0 === e && this.isHorizontal() || 0 === t && this.isVertical() || (e = e - parseInt(n.css("padding-left"), 10) - parseInt(n.css("padding-right"), 10), 2582 t = t - parseInt(n.css("padding-top"), 10) - parseInt(n.css("padding-bottom"), 10), 2583 c.extend(this, { 2584 width: e, 2585 height: t, 2586 size: this.isHorizontal() ? e : t 2587 })); 2588 }, 2589 updateSlides: function() { 2590 var e = this.params, n = this.$wrapperEl, i = this.size, r = this.rtlTranslate, o = this.wrongRTL, s = this.virtual && e.virtual.enabled, a = s ? this.virtual.slides.length : this.slides.length, l = n.children("." + this.params.slideClass), h = s ? this.virtual.slides.length : l.length, f = [], p = [], m = [], g = e.slidesOffsetBefore; 2591 "function" == typeof g && (g = e.slidesOffsetBefore.call(this)); 2592 var v = e.slidesOffsetAfter; 2593 "function" == typeof v && (v = e.slidesOffsetAfter.call(this)); 2594 var b = this.snapGrid.length, y = this.snapGrid.length, x = e.spaceBetween, w = -g, _ = 0, S = 0; 2595 if (void 0 !== i) { 2596 var E, C; 2597 "string" == typeof x && x.indexOf("%") >= 0 && (x = parseFloat(x.replace("%", "")) / 100 * i), 2598 this.virtualSize = -x, r ? l.css({ 2599 marginLeft: "", 2600 marginTop: "" 2601 }) : l.css({ 2602 marginRight: "", 2603 marginBottom: "" 2604 }), e.slidesPerColumn > 1 && (E = Math.floor(h / e.slidesPerColumn) === h / this.params.slidesPerColumn ? h : Math.ceil(h / e.slidesPerColumn) * e.slidesPerColumn, 2605 "auto" !== e.slidesPerView && "row" === e.slidesPerColumnFill && (E = Math.max(E, e.slidesPerView * e.slidesPerColumn))); 2606 for (var T, k = e.slidesPerColumn, M = E / k, A = Math.floor(h / e.slidesPerColumn), O = 0; O < h; O += 1) { 2607 C = 0; 2608 var P = l.eq(O); 2609 if (e.slidesPerColumn > 1) { 2610 var I = void 0, L = void 0, D = void 0; 2611 if ("column" === e.slidesPerColumnFill || "row" === e.slidesPerColumnFill && e.slidesPerGroup > 1) { 2612 if ("column" === e.slidesPerColumnFill) D = O - (L = Math.floor(O / k)) * k, (L > A || L === A && D === k - 1) && (D += 1) >= k && (D = 0, 2613 L += 1); else { 2614 var N = Math.floor(O / e.slidesPerGroup); 2615 L = O - (D = Math.floor(O / e.slidesPerView) - N * e.slidesPerColumn) * e.slidesPerView - N * e.slidesPerView; 2616 } 2617 I = L + D * E / k, P.css({ 2618 "-webkit-box-ordinal-group": I, 2619 "-moz-box-ordinal-group": I, 2620 "-ms-flex-order": I, 2621 "-webkit-order": I, 2622 order: I 2623 }); 2624 } else L = O - (D = Math.floor(O / M)) * M; 2625 P.css("margin-" + (this.isHorizontal() ? "top" : "left"), 0 !== D && e.spaceBetween && e.spaceBetween + "px").attr("data-swiper-column", L).attr("data-swiper-row", D); 2626 } 2627 if ("none" !== P.css("display")) { 2628 if ("auto" === e.slidesPerView) { 2629 var F = t.getComputedStyle(P[0], null), j = P[0].style.transform, R = P[0].style.webkitTransform; 2630 if (j && (P[0].style.transform = "none"), R && (P[0].style.webkitTransform = "none"), 2631 e.roundLengths) C = this.isHorizontal() ? P.outerWidth(!0) : P.outerHeight(!0); else if (this.isHorizontal()) { 2632 var B = parseFloat(F.getPropertyValue("width")), z = parseFloat(F.getPropertyValue("padding-left")), H = parseFloat(F.getPropertyValue("padding-right")), $ = parseFloat(F.getPropertyValue("margin-left")), W = parseFloat(F.getPropertyValue("margin-right")), q = F.getPropertyValue("box-sizing"); 2633 C = q && "border-box" === q && !d.isIE ? B + $ + W : B + z + H + $ + W; 2634 } else { 2635 var V = parseFloat(F.getPropertyValue("height")), Y = parseFloat(F.getPropertyValue("padding-top")), G = parseFloat(F.getPropertyValue("padding-bottom")), U = parseFloat(F.getPropertyValue("margin-top")), X = parseFloat(F.getPropertyValue("margin-bottom")), K = F.getPropertyValue("box-sizing"); 2636 C = K && "border-box" === K && !d.isIE ? V + U + X : V + Y + G + U + X; 2637 } 2638 j && (P[0].style.transform = j), R && (P[0].style.webkitTransform = R), e.roundLengths && (C = Math.floor(C)); 2639 } else C = (i - (e.slidesPerView - 1) * x) / e.slidesPerView, e.roundLengths && (C = Math.floor(C)), 2640 l[O] && (this.isHorizontal() ? l[O].style.width = C + "px" : l[O].style.height = C + "px"); 2641 l[O] && (l[O].swiperSlideSize = C), m.push(C), e.centeredSlides ? (w = w + C / 2 + _ / 2 + x, 2642 0 === _ && 0 !== O && (w = w - i / 2 - x), 0 === O && (w = w - i / 2 - x), Math.abs(w) < .001 && (w = 0), 2643 e.roundLengths && (w = Math.floor(w)), S % e.slidesPerGroup == 0 && f.push(w), p.push(w)) : (e.roundLengths && (w = Math.floor(w)), 2644 S % e.slidesPerGroup == 0 && f.push(w), p.push(w), w = w + C + x), this.virtualSize += C + x, 2645 _ = C, S += 1; 2646 } 2647 } 2648 if (this.virtualSize = Math.max(this.virtualSize, i) + v, r && o && ("slide" === e.effect || "coverflow" === e.effect) && n.css({ 2649 width: this.virtualSize + e.spaceBetween + "px" 2650 }), u.flexbox && !e.setWrapperSize || (this.isHorizontal() ? n.css({ 2651 width: this.virtualSize + e.spaceBetween + "px" 2652 }) : n.css({ 2653 height: this.virtualSize + e.spaceBetween + "px" 2654 })), e.slidesPerColumn > 1 && (this.virtualSize = (C + e.spaceBetween) * E, this.virtualSize = Math.
2654ceil(this.virtualSize / e.slidesPerColumn) - e.spaceBetween, 2655 this.isHorizontal() ? n.css({ 2656 width: this.virtualSize + e.spaceBetween + "px" 2657 }) : n.css({ 2658 height: this.virtualSize + e.spaceBetween + "px" 2659 }), e.centeredSlides)) { 2660 T = []; 2661 for (var Z = 0; Z < f.length; Z += 1) { 2662 var J = f[Z]; 2663 e.roundLengths && (J = Math.floor(J)), f[Z] < this.virtualSize + f[0] && T.push(J); 2664 } 2665 f = T; 2666 } 2667 if (!e.centeredSlides) { 2668 T = []; 2669 for (var Q = 0; Q < f.length; Q += 1) { 2670 var ee = f[Q]; 2671 e.roundLengths && (ee = Math.floor(ee)), f[Q] <= this.virtualSize - i && T.push(ee); 2672 } 2673 f = T, Math.floor(this.virtualSize - i) - Math.floor(f[f.length - 1]) > 1 && f.push(this.virtualSize - i); 2674 } 2675 if (0 === f.length && (f = [ 0 ]), 0 !== e.spaceBetween && (this.isHorizontal() ? r ? l.css({ 2676 marginLeft: x + "px" 2677 }) : l.css({ 2678 marginRight: x + "px" 2679 }) : l.css({ 2680 marginBottom: x + "px" 2681 })), e.centerInsufficientSlides) { 2682 var te = 0; 2683 if (m.forEach((function(t) { 2684 te += t + (e.spaceBetween ? e.spaceBetween : 0); 2685 })), (te -= e.spaceBetween) < i) { 2686 var ne = (i - te) / 2; 2687 f.forEach((function(e, t) { 2688 f[t] = e - ne; 2689 })), p.forEach((function(e, t) { 2690 p[t] = e + ne; 2691 })); 2692 } 2693 } 2694 c.extend(this, { 2695 slides: l, 2696 snapGrid: f, 2697 slidesGrid: p, 2698 slidesSizesGrid: m 2699 }), h !== a && this.emit("slidesLengthChange"), f.length !== b && (this.params.watchOverflow && this.checkOverflow(), 2700 this.emit("snapGridLengthChange")), p.length !== y && this.emit("slidesGridLengthChange"), 2701 (e.watchSlidesProgress || e.watchSlidesVisibility) && this.updateSlidesOffset(); 2702 } 2703 }, 2704 updateAutoHeight: function(e) { 2705 var t, n = [], i = 0; 2706 if ("number" == typeof e ? this.setTransition(e) : !0 === e && this.setTransition(this.params.speed), 2707 "auto" !== this.params.slidesPerView && this.params.slidesPerView > 1) for (t = 0; t < Math.ceil(this.params.slidesPerView); t += 1) { 2708 var r = this.activeIndex + t; 2709 if (r > this.slides.length) break; 2710 n.push(this.slides.eq(r)[0]); 2711 } else n.push(this.slides.eq(this.activeIndex)[0]); 2712 for (t = 0; t < n.length; t += 1) if (void 0 !== n[t]) { 2713 var o = n[t].offsetHeight; 2714 i = o > i ? o : i; 2715 } 2716 i && this.$wrapperEl.css("height", i + "px"); 2717 }, 2718 updateSlidesOffset: function() { 2719 for (var e = this.slides, t = 0; t < e.length; t += 1) e[t].swiperSlideOffset = this.isHorizontal() ? e[t].offsetLeft : e[t].offsetTop; 2720 }, 2721 updateSlidesProgress: function(e) { 2722 void 0 === e && (e = this && this.translate || 0); 2723 var t = this.params, n = this.slides, r = this.rtlTranslate; 2724 if (0 !== n.length) { 2725 void 0 === n[0].swiperSlideOffset && this.updateSlidesOffset(); 2726 var o = -e; 2727 r && (o = e), n.removeClass(t.slideVisibleClass), this.visibleSlidesIndexes = [], 2728 this.visibleSlides = []; 2729 for (var s = 0; s < n.length; s += 1) { 2730 var a = n[s], l = (o + (t.centeredSlides ? this.minTranslate() : 0) - a.swiperSlideOffset) / (a.swiperSlideSize + t.spaceBetween); 2731 if (t.watchSlidesVisibility) { 2732 var c = -(o - a.swiperSlideOffset), u = c + this.slidesSizesGrid[s]; 2733 (c >= 0 && c < this.size - 1 || u > 1 && u <= this.size || c <= 0 && u >= this.size) && (this.visibleSlides.push(a), 2734 this.visibleSlidesIndexes.push(s), n.eq(s).addClass(t.slideVisibleClass)); 2735 } 2736 a.progress = r ? -l : l; 2737 } 2738 this.visibleSlides = i(this.visibleSlides); 2739 } 2740 }, 2741 updateProgress: function(e) { 2742 void 0 === e && (e = this && this.translate || 0); 2743 var t = this.params, n = this.maxTranslate() - this.minTranslate(), i = this.progress, r = this.isBeg
2743inning, o = this.isEnd, s = r, a = o; 2744 0 === n ? (i = 0, r = !0, o = !0) : (r = (i = (e - this.minTranslate()) / n) <= 0, 2745 o = i >= 1), c.extend(this, { 2746 progress: i, 2747 isBeginning: r, 2748 isEnd: o 2749 }), (t.watchSlidesProgress || t.watchSlidesVisibility) && this.updateSlidesProgress(e), 2750 r && !s && this.emit("reachBeginning toEdge"), o && !a && this.emit("reachEnd toEdge"), 2751 (s && !r || a && !o) && this.emit("fromEdge"), this.emit("progress", i); 2752 }, 2753 updateSlidesClasses: function() { 2754 var e, t = this.slides, n = this.params, i = this.$wrapperEl, r = this.activeIndex, o = this.realIndex, s = this.virtual && n.virtual.enabled; 2755 t.removeClass(n.slideActiveClass + " " + n.slideNextClass + " " + n.slidePrevClass + " " + n.slideDuplicateActiveClass + " " + n.slideDuplicateNextClass + " " + n.slideDuplicatePrevClass), 2756 (e = s ? this.$wrapperEl.find("." + n.slideClass + '[data-swiper-slide-index="' + r + '"]') : t.eq(r)).addClass(n.slideActiveClass), 2757 n.loop && (e.hasClass(n.slideDuplicateClass) ? i.children("." + n.slideClass + ":not(." + n.slideDuplicateClass + ')[data-swiper-slide-index="' + o + '"]').addClass(n.slideDuplicateActiveClass) : i.children("." + n.slideClass + "." + n.slideDuplicateClass + '[data-swiper-slide-index="' + o + '"]').addClass(n.slideDuplicateActiveClass)); 2758 var a = e.nextAll("." + n.slideClass).eq(0).addClass(n.slideNextClass); 2759 n.loop && 0 === a.length && (a = t.eq(0)).addClass(n.slideNextClass); 2760 var l = e.prevAll("." + n.slideClass).eq(0).addClass(n.slidePrevClass); 2761 n.loop && 0 === l.length && (l = t.eq(-1)).addClass(n.slidePrevClass), n.loop && (a.hasClass(n.slideDuplicateClass) ? i.children("." + n.slideClass + ":not(." + n.slideDuplicateClass + ')[data-swiper-slide-index="' + a.attr("data-swiper-slide-index") + '"]').addClass(n.slideDuplicateNextClass) : i.children("." + n.slideClass + "." + n.slideDuplicateClass + '[data-swiper-slide-index="' + a.attr("data-swiper-slide-index") + '"]').addClass(n.slideDuplicateNextClass), 2762 l.hasClass(n.slideDuplicateClass) ? i.children("." + n.slideClass + ":not(." + n.slideDuplicateClass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(n.slideDuplicatePrevClass) : i.children("." + n.slideClass + "." + n.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(n.slideDuplicatePrevClass)); 2763 }, 2764 updateActiveIndex: function(e) { 2765 var t, n = this.rtlTranslate ? this.translate : -this.translate, i = this.slidesGrid, r = this.snapGrid, o = this.params, s = this.activeIndex, a = this.realIndex, l = this.snapIndex, u = e; 2766 if (void 0 === u) { 2767 for (var d = 0; d < i.length; d += 1) void 0 !== i[d + 1] ? n >= i[d] && n < i[d + 1] - (i[d + 1] - i[d]) / 2 ? u = d : n >= i[d] && n < i[d + 1] && (u = d + 1) : n >= i[d] && (u = d); 2768 o.normalizeSlideIndex && (u < 0 || void 0 === u) && (u = 0); 2769 } 2770 if ((t = r.indexOf(n) >= 0 ? r.indexOf(n) : Math.floor(u / o.slidesPerGroup)) >= r.length && (t = r.length - 1), 2771 u !== s) { 2772 var h = parseInt(this.slides.eq(u).attr("data-swiper-slide-index") || u, 10); 2773 c.extend(this, { 2774 snapIndex: t, 2775 realIndex: h, 2776 previousIndex: s, 2777 activeIndex: u 2778 }), this.emit("activeIndexChange"), this.emit("snapIndexChange"), a !== h && this.emit("realIndexChange"), 2779 (this.initialized || this.runCallbacksOnInit) && this.emit("slideChange"); 2780 }
2780 else t !== l && (this.snapIndex = t, this.emit("snapIndexChange")); 2781 }, 2782 updateClickedSlide: function(e) { 2783 var t = this.params, n = i(e.target).closest("." + t.slideClass)[0], r = !1; 2784 if (n) for (var o = 0; o < this.slides.length; o += 1) this.slides[o] === n && (r = !0); 2785 if (!n || !r) return this.clickedSlide = void 0, void (this.clickedIndex = void 0); 2786 this.clickedSlide = n, this.virtual && this.params.virtual.enabled ? this.clickedIndex = parseInt(i(n).attr("data-swiper-slide-index"), 10) : this.clickedIndex = i(n).index(), 2787 t.slideToClickedSlide && void 0 !== this.clickedIndex && this.clickedIndex !== this.activeIndex && this.slideToClickedSlide(); 2788 } 2789 }, m = { 2790 getTranslate: function(e) { 2791 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 2792 var t = this.params, n = this.rtlTranslate, i = this.translate, r = this.$wrapperEl; 2793 if (t.virtualTranslate) return n ? -i : i; 2794 var o = c.getTranslate(r[0], e); 2795 return n && (o = -o), o || 0; 2796 }, 2797 setTranslate: function(e, t) { 2798 var n = this.rtlTranslate, i = this.params, r = this.$wrapperEl, o = this.progress, s = 0, a = 0; 2799 this.isHorizontal() ? s = n ? -e : e : a = e, i.roundLengths && (s = Math.floor(s), 2800 a = Math.floor(a)), i.virtualTranslate || (u.transforms3d ? r.transform("translate3d(" + s + "px, " + a + "px, 0px)") : r.transform("translate(" + s + "px, " + a + "px)")), 2801 this.previousTranslate = this.translate, this.translate = this.isHorizontal() ? s : a; 2802 var l = this.maxTranslate() - this.minTranslate(); 2803 (0 === l ? 0 : (e - this.minTranslate()) / l) !== o && this.updateProgress(e), this.emit("setTranslate", this.translate, t); 2804 }, 2805 minTranslate: function() { 2806 return -this.snapGrid[0]; 2807 }, 2808 maxTranslate: function() { 2809 return -this.snapGrid[this.snapGrid.length - 1]; 2810 } 2811 }, g = { 2812 setTransition: function(e, t) { 2813 this.$wrapperEl.transition(e), this.emit("setTransition", e, t); 2814 }, 2815 transitionStart: function(e, t) { 2816 void 0 === e && (e = !0); 2817 var n = this.activeIndex, i = this.params, r = this.previousIndex; 2818 i.autoHeight && this.updateAutoHeight(); 2819 var o = t; 2820 if (o || (o = n > r ? "next" : n < r ? "prev" : "reset"), this.emit("transitionStart"), 2821 e && n !== r) { 2822 if ("reset" === o) return void this.emit("slideResetTransitionStart"); 2823 this.emit("slideChangeTransitionStart"), "next" === o ? this.emit("slideNextTransitionStart") : this.emit("slidePrevTransitionStart"); 2824 } 2825 }, 2826 transitionEnd: function(e, t) { 2827 void 0 === e && (e = !0); 2828 var n = this.activeIndex, i = this.previousIndex; 2829 this.animating = !1, this.setTransition(0); 2830 var r = t; 2831 if (r || (r = n > i ? "next" : n < i ? "prev" : "reset"), this.emit("transitionEnd"), 2832 e && n !== i) { 2833 if ("reset" === r) return void this.emit("slideResetTransitionEnd"); 2834 this.emit("slideChangeTransitionEnd"), "next" === r ? this.emit("slideNextTransitionEnd") : this.emit("slidePrevTransitionEnd"); 2835 } 2836 } 2837 }, v = { 2838 slideTo: function(e, t, n, i) { 2839 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === n && (n = !0); 2840 var r = this, o = e; 2841 o < 0 && (o = 0); 2842 var s = r.params, a = r.snapGrid, l = r.slidesGrid, c = r.previousIndex, d = r.activeIndex, h = r.rtlTranslate; 2843 if (r.animating && s.preventInteractionOnTransition) return !1; 2844 var f = Math.floor(o / s.slidesPerGroup); 2845 f >= a.length && (f = a.length - 1), (d || s.initialSlide || 0) === (c || 0) && n && r.emit("beforeSlideChangeStart"); 2846 var p, m = -a[f]; 2847 if (r.updateProgress(m), s.normalizeSlideIndex) for (var g = 0; g < l.length; g += 1) -Math.floor(100 * m) >= Math.floor(100 * l[g]) && (o = g); 2848 if (r.initialized && o !== d) { 2849 if (!r.allowSlideNext && m < r.translate && m < r.minTranslate()) return !1; 2850 if (!r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (d || 0) !== o) return !1; 2851 } 2852 return p = o > d ? "next" : o < d ? "prev" : "reset", h && -m === r.translate || !h && m === r.translate ? (r.updateActiveIndex(o), 2853 s.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== s.effect && r.setTranslate(m), 2854 "reset" !== p && (r.transitionStart(n, p), r.transitionEnd(n, p)), !1) : (0 !== t && u.transition ? (r.setTransition(t), 2855 r.setTranslate(m), r.updateActiveIndex(o), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, i), 2856 r.transitionStart(n, p), r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(e) { 2857 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), 2858 r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), 2859 r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, 2860 r.transitionEnd(n, p)); 2861 }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), 2862 r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd))) : (r.setTransition(0), 2863 r.setTranslate(m), r.updateActiveIndex(o), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, i), 2864 r.transitionStart(n, p), r.transitionEnd(n, p)), !0); 2865 }, 2866 slideToLoop: function(e, t, n, i) { 2867 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === n && (n = !0); 2868 var r = e; 2869 return this.params.loop && (r += this.loopedSlides), this.slideTo(r, t, n, i); 2870 }, 2871 slideNext: function(e, t, n) { 2872 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 2873 var i = this.params, r = this.animating; 2874 return i.loop ? !r && (this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft, 2875 this.slideTo(this.activeIndex + i.slidesPerGroup, e, t, n)) : this.slideTo(this.activeIndex + i.slidesPerGroup, e, t, n); 2876 }, 2877 slidePrev: function(e, t, n) { 2878 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 2879 var i = this.params, r = this.animating, o = this.snapGrid, s = this.slidesGrid, a = this.rtlTranslate; 2880 if (i.loop) { 2881 if (r) return !1; 2882 this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft; 2883 } 2884 function l(e) { 2885 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e); 2886 } 2887 var c, u = l(a ? this.translate : -this.translate), d = o.map((function(e) { 2888 return l(e); 2889 })), h = (s.map((function(e) { 2890 return l(e); 2891 })), o[d.indexOf(u)], o[d.indexOf(u) - 1]); 2892 return void 0 !== h && (c = s.indexOf(h)) < 0 && (c = this.activeIndex - 1), this.slideTo(c, e, t, n); 2893 }, 2894 slideReset: function(e, t, n) { 2895 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, n); 2896 }, 2897 slideToClosest: function(e, t, n) { 2898 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 2899 var i = this.activeIndex, r = Math.floor(i / this.params.slidesPerGroup); 2900 if (r < this.snapGrid.length - 1) { 2901 var o = this.rtlTranslate ? this.translate : -this.translate, s = this.snapGrid[r]; 2902 o - s > (this.snapGrid[r + 1] - s) / 2 && (i = this.params.slidesPerGroup); 2903 } 2904 return this.slideTo(i, e, t, n); 2905 }, 2906 slideToClickedSlide: function() { 2907 var e, t = this, n = t.params, r = t.$wrapperEl, o = "auto" === n.slidesPerView ? t.slidesPerViewDynamic() : n.slidesPerView, s = t.clickedIndex; 2908 if (n.loop) { 2909 if (t.animating) return; 2910 e = parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"), 10), n.centeredSlides ? s < t.loopedSlides - o / 2 || s > t.slides.length - t.loopedSlides + o / 2 ? (t.loopFix(), 2911 s = r.children("." + n.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + n.slideDuplicateClass + ")").eq(0).index(), 2912 c.nextTick((function() { 2913 t.slideTo(s); 2914 }))) : t.slideTo(s) : s > t.slides.length - o ? (t.loopFix(), s = r.children("." + n.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + n.slideDuplicateClass + ")").eq(0).index(), 2915 c.nextTick((function() { 2916 t.slideTo(s); 2917 }))) : t.slideTo(s); 2918 } else t.slideTo(s); 2919 } 2920 }, b = { 2921 loopCreate: function() { 2922 var t = this, n = t.params, r = t.$wrapperEl; 2923 r.children("." + n.slideClass + "." + n.slideDuplicateClass).remove(); 2924 var o = r.children("." + n.slideClass); 2925 if (n.loopFillGroupWithBlank) { 2926 var s = n.slidesPerGroup - o.length % n.slidesPerGroup; 2927 if (s !== n.slidesPerGroup) { 2928 for (var a = 0; a < s; a += 1) { 2929 var l = i(e.createElement("div")).addClass(n.slideClass + " " + n.slideBlankClass); 2930 r.append(l); 2931 } 2932 o = r.children("." + n.slideClass); 2933 } 2934 } 2935 "auto" !== n.slidesPerView || n.loopedSlides || (n.loopedSlides = o.length), t.loopedSlides = parseInt(n.loopedSlides || n.slidesPerView, 10), 2936 t.loopedSlides += n.loopAdditionalSlides, t.loopedSlides > o.length && (t.loopedSlides = o.length); 2937 var c = [], u = []; 2938 o.each((function(e, n) { 2939 var r = i(n); 2940 e < t.loopedSlides && u.push(n), e < o.length && e >= o.length - t.loopedSlides && c.push(n), 2941 r.attr("data-swiper-slide-index", e); 2942 })); 2943 for (var d = 0; d < u.length; d += 1) r.append(i(u[d].cloneNode(!0)).addClass(n.slideDuplicateClass)); 2944 for (var h = c.length - 1; h >= 0; h -= 1) r.prepend(i(c[h].cloneNode(!0)).addClass(n.slideDuplicateClass)); 2945 }, 2946 loopFix: function() { 2947 var e, t = this.params, n = this.activeIndex, i = this.slides, r = this.loopedSlides, o = this.allowSlidePrev, s = this.allowSlideNext, a = this.snapGrid, l = this.rtlTranslate; 2948 this.allowSlidePrev = !0, this.allowSlideNext = !0; 2949 var c = -a[n] - this.getTranslate(); 2950 n < r ? (e = i.length - 3 * r + n, e += r, this.slideTo(e, 0, !1, !0) && 0 !== c && this.setTranslate((l ? -this.translate : this.translate) - c)) : ("auto" === t.slidesPerView && n >= 2 * r || n >= i.length - r) && (e = -i.length + n + r, 2951 e += r, this.slideTo(e, 0, !1, !0) && 0 !== c && this.setTranslate((l ? -this.translate : this.translate) - c)), 2952 this.allowSlidePrev = o, this.allowSlideNext = s; 2953 }, 2954 loopDestroy: function() { 2955 var e = this.$wrapperEl, t = this.params, n = this.slides; 2956 e.children("." + t.slideClass + "." + t.slideDuplicateClass + ",." + t.slideClass + "." + t.slideBlankClass).remove(), 2957 n.removeAttr("data-swiper-slide-index"); 2958 } 2959 }, y = { 2960 setGrabCursor: function(e) { 2961 if (!(u.touch || !this.params.simulateTouch || this.params.watchOverflow && this.isLocked)) { 2962 var t = this.el; 2963 t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", 2964 t.style.cursor = e ? "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab"; 2965 } 2966 }, 2967 unsetGrabCursor: function() { 2968 u.touch || this.params.watchOverflow && this.isLocked || (this.el.style.cursor = ""); 2969 } 2970 }, x = { 2971 appendSlide: function(e) { 2972 var t = this.$wrapperEl, n = this.params; 2973 if (n.loop && this.loopDestroy(), "object" == typeof e && "length" in e) for (var i = 0; i < e.length; i += 1) e[i] && t.append(e[i]); else t.append(e); 2974 n.loop && this.loopCreate(), n.observer && u.observer || this.update(); 2975 }, 2976 prependSlide: function(e) { 2977 var t = this.params, n = this.$wrapperEl, i = this.activeIndex; 2978 t.loop && this.loopDestroy(); 2979 var r = i + 1; 2980 if ("object" == typeof e && "length" in e) { 2981 for (var o = 0; o < e.length; o += 1) e[o] && n.prepend(e[o]); 2982 r = i + e.length; 2983 } else n.prepend(e); 2984 t.loop && this.loopCreate(), t.observer && u.observer || this.update(), this.slideTo(r, 0, !1); 2985 }, 2986 addSlide: function(e, t) { 2987 var n = this.$wrapperEl, i = this.params, r = this.activeIndex; 2988 i.loop && (r -= this.loopedSlides, this.loopDestroy(), this.slides = n.children("." + i.slideClass)); 2989 var o = this.slides.length; 2990 if (e <= 0) this.prependSlide(t); else if (e >= o) this.appendSlide(t); else { 2991 for (var s = r > e ? r + 1 : r, a = [], l = o - 1; l >= e; l -= 1) { 2992 var c = this.slides.eq(l); 2993 c.remove(), a.unshift(c); 2994 } 2995 if ("object" == typeof t && "length" in t) { 2996 for (var d = 0; d < t.length; d += 1) t[d] && n.append(t[d]); 2997 s = r > e ? r + t.length : r; 2998 } else n.append(t); 2999 for (var h = 0; h < a.length; h += 1) n.append(a[h]); 3000 i.loop && this.loopCreate(), i.observer && u.observer || this.update(), i.loop ? this.slideTo(s + this.loopedSlides, 0, !1) : this.slideTo(s, 0, !1); 3001 } 3002 }, 3003 removeSlide: function(e) { 3004 var t = this.params, n = this.$wrapperEl, i = this.activeIndex; 3005 t.loop && (i -= this.loopedSlides, this.loopDestroy(), this.slides = n.children("." + t.slideClass)); 3006 var r
3006, o = i; 3007 if ("object" == typeof e && "length" in e) { 3008 for (var s = 0; s < e.length; s += 1) r = e[s], this.slides[r] && this.slides.eq(r).remove(), 3009 r < o && (o -= 1); 3010 o = Math.max(o, 0); 3011 } else r = e, this.slides[r] && this.slides.eq(r).remove(), r < o && (o -= 1), o = Math.max(o, 0); 3012 t.loop && this.loopCreate(), t.observer && u.observer || this.update(), t.loop ? this.slideTo(o + this.loopedSlides, 0, !1) : this.slideTo(o, 0, !1); 3013 }, 3014 removeAllSlides: function() { 3015 for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t); 3016 this.removeSlide(e); 3017 } 3018 }, w = function() { 3019 var n = t.navigator.userAgent, i = { 3020 ios: !1, 3021 android: !1, 3022 androidChrome: !1, 3023 desktop: !1, 3024 windows: !1, 3025 iphone: !1, 3026 ipod: !1, 3027 ipad: !1, 3028 cordova: t.cordova || t.phonegap, 3029 phonegap: t.cordova || t.phonegap 3030 }, r = n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/), o = n.match(/(Android);?[\s\/]+([\d.]+)?/), s = n.match(/(iPad).*OS\s([\d_]+)/), a = n.match(/(iPod)(.*OS\s([\d_]+))?/), l = !s && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/); 3031 if (r && (i.os = "windows", i.osVersion = r[2], i.windows = !0), o && !r && (i.os = "android", 3032 i.osVersion = o[2], i.android = !0, i.androidChrome = n.toLowerCase().indexOf("chrome") >= 0), 3033 (s || l || a) && (i.os = "ios", i.ios = !0), l && !a && (i.osVersion = l[2].replace(/_/g, "."), 3034 i.iphone = !0), s && (i.osVersion = s[2].replace(/_/g, "."), i.ipad = !0), a && (i.osVersion = a[3] ? a[3].replace(/_/g, ".") : null, 3035 i.iphone = !0), i.ios && i.osVersion && n.indexOf("Version/") >= 0 && "10" === i.osVersion.split(".")[0] && (i.osVersion = n.toLowerCase().split("version/")[1].split(" ")[0]), 3036 i.desktop = !(i.os || i.android || i.webView), i.webView = (l || s || a) && n.match(/.*AppleWebKit(?!.*Safari)/i), 3037 i.os && "ios" === i.os) { 3038 var c = i.osVersion.split("."), u = e.querySelector('meta[name="viewport"]'); 3039 i.minimalUi = !i.webView && (a || l) && (1 * c[0] == 7 ? 1 * c[1] >= 1 : 1 * c[0] > 7) && u && u.getAttribute("content").indexOf("minimal-ui") >= 0; 3040 } 3041 return i.pixelRatio = t.devicePixelRatio || 1, i; 3042 }(); 3043 function _(n) { 3044 var r = this.touchEventsData, o = this.params, s = this.touches; 3045 if (!this.animating || !o.preventInteractionOnTransition) { 3046 var a = n; 3047 if (a.originalEvent && (a = a.originalEvent), r.isTouchEvent = "touchstart" === a.type, 3048 (r.isTouchEvent || !("which" in a) || 3 !== a.which) && !(!r.isTouchEvent && "button" in a && a.button > 0 || r.isTouched && r.isMoved)) if (o.noSwiping && i(a.target).closest(o.noSwipingSelector ? o.noSwipingSelector : "." + o.noSwipingClass)[0]) this.allowClick = !0; else if (!o.swipeHandler || i(a).closest(o.swipeHandler)[0]) { 3049 s.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX, s.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY; 3050 var l = s.currentX, u = s.currentY, d = o.edgeSwipeDetection || o.iOSEdgeSwipeDetection, h = o.edgeSwipeThreshold || o.iOSEdgeSwipeThreshold; 3051 if (!d || !(l <= h || l >= t.screen.width - h)) { 3052 if (c.extend(r, { 3053 isTouched: !0, 3054 isMoved: !1, 3055 allowTouchCallbacks: !0, 3056 isScrolling: void 0, 3057 startMoving: void 0 3058 }), s.startX = l, s.startY = u, r.touchStartTime = c.now(), this.allowClick = !0, 3059 this.updateSize(), this.swipeDirection = void 0, o.threshold > 0 && (r.allowThresholdMove = !1), 3060 "touchstart" !== a.type) { 3061 var f = !0; 3062 i(a.target).is(r.formElements) && (f = !1), e.activeElement && i(e.activeElement).is(r.formElements) && e.activeElement !== a.target && e.activeElement.blur(); 3063 var p = f && this.allowTouchMove && o.touchStartPreventDefault; 3064 (o.touchStartForcePreventDefault || p) && a.preventDefault(); 3065 }
3066 this.emit("touchStart", a); 3067 } 3068 } 3069 } 3070 } 3071 function S(t) { 3072 var n = this.touchEventsData, r = this.params, o = this.touches, s = this.rtlTranslate, a = t; 3073 if (a.originalEvent && (a = a.originalEvent), n.isTouched) { 3074 if (!n.isTouchEvent || "mousemove" !== a.type) { 3075 var l = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX, u = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY; 3076 if (a.preventedByNestedSwiper) return o.startX = l, void (o.startY = u); 3077 if (!this.allowTouchMove) return this.allowClick = !1, void (n.isTouched && (c.extend(o, { 3078 startX: l, 3079 startY: u, 3080 currentX: l, 3081 currentY: u 3082 }), n.touchStartTime = c.now())); 3083 if (n.isTouchEvent && r.touchReleaseOnEdges && !r.loop) if (this.isVertical()) { 3084 if (u < o.startY && this.translate <= this.maxTranslate() || u > o.startY && this.translate >= this.minTranslate()) return n.isTouched = !1, 3085 void (n.isMoved = !1); 3086 } else if (l < o.startX && this.translate <= this.maxTranslate() || l > o.startX && this.translate >= this.minTranslate()) return; 3087 if (n.isTouchEvent && e.activeElement && a.target === e.activeElement && i(a.target).is(n.formElements)) return n.isMoved = !0, 3088 void (this.allowClick = !1); 3089 if (n.allowTouchCallbacks && this.emit("touchMove", a), !(a.targetTouches && a.targetTouches.length > 1)) { 3090 o.currentX = l, o.currentY = u; 3091 var d, h = o.currentX - o.startX, f = o.currentY - o.startY; 3092 if (!(this.params.threshold && Math.sqrt(Math.pow(h, 2) + Math.pow(f, 2)) < this.params.threshold)) if (void 0 === n.isScrolling && (this.isHorizontal() && o.currentY === o.startY || this.isVertical() && o.currentX === o.startX ? n.isScrolling = !1 : h * h + f * f >= 25 && (d = 180 * Math.atan2(Math.abs(f), Math.abs(h)) / Math.PI, 3093 n.isScrolling = this.isHorizontal() ? d > r.touchAngle : 90 - d > r.touchAngle)), 3094 n.isScrolling && this.emit("touchMoveOpposite", a), void 0 === n.startMoving && (o.currentX === o.startX && o.currentY === o.startY || (n.startMoving = !0)), 3095 n.isScrolling) n.isTouched = !1; else if (n.startMoving) { 3096 this.allowClick = !1, a.preventDefault(), r.touchMoveStopPropagation && !r.nested && a.stopPropagation(), 3097 n.isMoved || (r.loop && this.loopFix(), n.startTranslate = this.getTranslate(), 3098 this.setTransition(0), this.animating && this.$wrapperEl.trigger("webkitTransitionEnd transitionend"), 3099 n.allowMomentumBounce = !1, !r.grabCursor || !0 !== this.allowSlideNext && !0 !== this.allowSlidePrev || this.setGrabCursor(!0), 3100 this.emit("sliderFirstMove", a)), this.emit("sliderMove", a), n.isMoved = !0; 3101 var p = this.isHorizontal() ? h : f; 3102 o.diff = p, p *= r.touchRatio, s && (p = -p), this.swipeDirection = p > 0 ? "prev" : "next", 3103 n.currentTranslate = p + n.startTranslate; 3104 var m = !0, g = r.resistanceRatio; 3105 if (r.touchReleaseOnEdges && (g = 0), p > 0 && n.currentTranslate > this.minTranslate() ? (m = !1, 3106 r.resistance && (n.currentTranslate = this.minTranslate() - 1 + Math.pow(-this.minTranslate() + n.startTranslate + p, g))) : p < 0 && n.currentTranslate < this.maxTranslate() && (m = !1, 3107 r.resistance && (n.currentTranslate = this.maxTranslate() + 1 - Math.pow(this.maxTranslate() - n.startTranslate - p, g))), 3108 m && (a.preventedByNestedSwiper = !0), !this.allowSlideNext && "next" === this.swipeDirection && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), 3109 !this.allowSlidePrev && "prev" === this.swipeDirection && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), 3110 r.threshold > 0) { 3111 if (!(Math.abs(p) > r.threshold || n.allowThresholdMove)) return void (n.currentTranslate = n.startTranslate); 3112 if (!n.allowThresholdMove) return n.allowThresholdMove = !0, o.startX = o.currentX, 3113 o.startY = o.currentY, n.currentTranslate = n.startTranslate, void (o.diff = this.isHorizontal() ? o.currentX - o.startX : o.currentY - o.startY); 3114 } 3115 r.followFinger && ((r.freeMode || r.watchSlidesProgress || r.watchSlidesVisibility) && (this.updateActiveIndex(), 3116 this.updateSlidesClasses()), r.freeMode && (0 === n.velocities.length && n.velocities.push({ 3117 position: o[this.isHorizontal() ? "startX" : "startY"], 3118 time: n.touchStartTime 3119 }), n.velocities.push({ 3120 position: o[this.isHorizontal() ? "currentX" : "currentY"], 3121 time: c.now() 3122 })), this.updateProgress(n.currentTranslate), this.setTranslate(n.currentTranslate)); 3123 } 3124 } 3125 } 3126 }
3126 else n.startMoving && n.isScrolling && this.emit("touchMoveOpposite", a); 3127 } 3128 function E(e) { 3129 var t = this, n = t.touchEventsData, i = t.params, r = t.touches, o = t.rtlTranslate, s = t.$wrapperEl, a = t.slidesGrid, l = t.snapGrid, u = e; 3130 if (u.originalEvent && (u = u.originalEvent), n.allowTouchCallbacks && t.emit("touchEnd", u), 3131 n.allowTouchCallbacks = !1, !n.isTouched) return n.isMoved && i.grabCursor && t.setGrabCursor(!1), 3132 n.isMoved = !1, void (n.startMoving = !1); 3133 i.grabCursor && n.isMoved && n.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 3134 var d, h = c.now(), f = h - n.touchStartTime; 3135 if (t.allowClick && (t.updateClickedSlide(u), t.emit("tap", u), f < 300 && h - n.lastClickTime > 300 && (n.clickTimeout && clearTimeout(n.clickTimeout), 3136 n.clickTimeout = c.nextTick((function() { 3137 t && !t.destroyed && t.emit("click", u); 3138 }), 300)), f < 300 && h - n.lastClickTime < 300 && (n.clickTimeout && clearTimeout(n.clickTimeout), 3139 t.emit("doubleTap", u))), n.lastClickTime = c.now(), c.nextTick((function() { 3140 t.destroyed || (t.allowClick = !0); 3141 })), !n.isTouched || !n.isMoved || !t.swipeDirection || 0 === r.diff || n.currentTranslate === n.startTranslate) return n.isTouched = !1, 3142 n.isMoved = !1, void (n.startMoving = !1); 3143 if (n.isTouched = !1, n.isMoved = !1, n.startMoving = !1, d = i.followFinger ? o ? t.translate : -t.translate : -n.currentTranslate, 3144 i.freeMode) { 3145 if (d < -t.minTranslate()) return void t.slideTo(t.activeIndex); 3146 if (d > -t.maxTranslate()) return void (t.slides.length < l.length ? t.slideTo(l.length - 1) : t.slideTo(t.slides.length - 1)); 3147 if (i.freeModeMomentum) { 3148 if (n.velocities.length > 1) { 3149 var p = n.velocities.pop(), m = n.velocities.pop(), g = p.position - m.position, v = p.time - m.time; 3150 t.velocity = g / v, t.velocity /= 2, Math.abs(t.velocity) < i.freeModeMinimumVelocity && (t.velocity = 0), 3151 (v > 150 || c.now() - p.time > 300) && (t.velocity = 0); 3152 } else t.velocity = 0; 3153 t.velocity *= i.freeModeMomentumVelocityRatio, n.velocities.length = 0; 3154 var b = 1e3 * i.freeModeMomentumRatio, y = t.velocity * b, x = t.translate + y; 3155 o && (x = -x); 3156 var w, _, S = !1, E = 20 * Math.abs(t.velocity) * i.freeModeMomentumBounceRatio; 3157 if (x < t.maxTranslate()) i.freeModeMomentumBounce ? (x + t.maxTranslate() < -E && (x = t.maxTranslate() - E), 3158 w = t.maxTranslate(), S = !0, n.allowMomentumBounce = !0) : x = t.maxTranslate(), 3159 i.loop && i.centeredSlides && (_ = !0); else if (x > t.minTranslate()) i.freeModeMomentumBounce ? (x - t.minTranslate() > E && (x = t.minTranslate() + E), 3160 w = t.minTranslate(), S = !0, n.allowMomentumBounce = !0) : x = t.minTranslate(), 3161 i.loop && i.centeredSlides && (_ = !0); else if (i.freeModeSticky) { 3162 for (var C, T = 0; T < l.length; T += 1) if (l[T] > -x) { 3163 C = T; 3164 break; 3165 } 3166 x = -(x = Math.abs(l[C] - x) < Math.abs(l[C - 1] - x) || "next" === t.swipeDirection ? l[C] : l[C - 1]); 3167 } 3168 if (_ && t.once("transitionEnd", (function() { 3169 t.loopFix(); 3170 })), 0 !== t.velocity) b = o ? Math.abs((-x - t.translate) / t.velocity) : Math.abs((x - t.translate) / t.velocity); else if (i.freeModeSticky) return void t.slideToClosest(); 3171 i.freeModeMomentumBounce && S ? (t.updateProgress(w), t.setTransition(b), t.setTranslate(x), 3172 t.transitionStart(!0, t.swipeDirection), t.animating = !0, s.transitionEnd((function() { 3173 t && !t.destroyed && n.allowMomentumBounce && (t.emit("momentumBounce"), t.setTransition(i.speed), 3174 t.setTranslate(w), s.transitionEnd((function() { 3175 t && !t.destroyed && t.transitionEnd(); 3176 }))); 3177 }))) : t.velocity ? (t.updateProgress(x), t.setTransition(b), t.setTranslate(x), 3178 t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, s.transitionEnd((function() { 3179 t && !t.destroyed && t.transitionEnd(); 3180 })))) : t.updateProgress(x), t.updateActiveIndex(), t.updateSlidesClasses(); 3181 } else if (i.freeModeSticky) return void t.slideToClosest(); 3182 (!i.freeModeMomentum || f >= i.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), 3183 t.updateSlidesClasses()); 3184 } else { 3185 for (var k = 0, M = t.slidesSizesGrid[0], A = 0; A < a.length; A += i.slidesPerGroup) void 0 !== a[A + i.slidesPerGroup] ? d >= a[A] && d < a[A + i.slidesPerGroup] && (k = A, 3186 M = a[A + i.slidesPerGroup] - a[A]) : d >= a[A] && (k = A, M = a[a.length - 1] - a[a.length - 2]); 3187 var O = (d - a[k]) / M; 3188 if (f > i.longSwipesMs) { 3189 if (!i.longSwipes) return void t.slideTo(t.activeIndex); 3190 "next" === t.swipeDirection && (O >= i.longSwipesRatio ? t.slideTo(k + i.slidesPerGroup) : t.slideTo(k)), 3191 "prev" === t.swipeDirection && (O > 1 - i.longSwipesRatio ? t.slideTo(k + i.slidesPerGroup) : t.slideTo(k)); 3192 } else { 3193 if (!i.shortSwipes) return void t.slideTo(t.activeIndex); 3194 "next" === t.swipeDirection && t.slideTo(k + i.slidesPerGroup), "prev" === t.swipeDirection && t.slideTo(k); 3195 } 3196 } 3197 } 3198 function C() { 3199 var e = this.params, t = this.el; 3200 if (!t || 0 !== t.offsetWidth) { 3201 e.breakpoints && this.setBreakpoint(); 3202 var n = this.allowSlideNext, i = this.allowSlidePrev, r = this.snapGrid; 3203 if (this.allowSlideNext = !0, this.allowSlidePrev = !0, this.updateSize(), this.updateSlides(), 3204 e.freeMode) { 3205 var o = Math.min(Math.max(this.translate, this.maxTranslate()), this.minTranslate()); 3206 this.setTranslate(o), this.updateActiveIndex(), this.updateSlidesClasses(), e.autoHeight && this.updateAutoHeight(); 3207 } else this.updateSlidesClasses(), ("auto" === e.slidesPerView || e.slidesPerView > 1) && this.isEnd && !this.params.centeredSlides ? this.slideTo(this.slides.length - 1, 0, !1, !0) : this.slideTo(this.activeIndex, 0, !1, !0); 3208 this.autoplay && this.autoplay.running && this.autoplay.paused && this.autoplay.run(), 3209 this.allowSlidePrev = i, this.allowSlideNext = n, this.params.watchOverflow && r !== this.snapGrid && this.checkOverflow(); 3210 } 3211 } 3212 function T(e) { 3213 this.allowClick || (this.params.preventClicks && e.preventDefault(), this.params.preventClicksPropagation && this.animating && (e.stopPropagation(), 3214 e.stopImmediatePropagation())); 3215 } 3216 var k = { 3217 init: !0, 3218 direction: "horizontal", 3219 touchEventsTarget: "container", 3220 initialSlide: 0, 3221 speed: 300, 3222 preventInteractionOnTransition: !1, 3223 edgeSwipeDetection: !1, 3224 edgeSwipeThreshold: 20, 3225 freeMode: !1, 3226 freeModeMomentum: !0, 3227 freeModeMomentumRatio: 1, 3228 freeModeMomentumBounce: !0, 3229 freeModeMomentumBounceRatio: 1, 3230 freeModeMomentumVelocityRatio: 1, 3231 freeModeSticky: !1, 3232 freeModeMinimumVelocity: .02, 3233 autoHeight: !1, 3234 setWrapperSize: !1, 3235 virtualTranslate: !1, 3236 effect: "slide", 3237 breakpoints: void 0, 3238 breakpointsInverse: !1, 3239 spaceBetween: 0, 3240 slidesPerView: 1, 3241 slidesPerColumn: 1, 3242 slidesPerColumnFill: "column", 3243 slidesPerGroup: 1, 3244 centeredSlides: !1, 3245 slidesOffsetBefore: 0, 3246 slidesOffsetAfter: 0, 3247 normalizeSlideIndex: !0, 3248 centerInsufficientSlides: !1, 3249 watchOverflow: !1, 3250 roundLengths: !1, 3251 touchRatio: 1, 3252 touchAngle: 45, 3253 simulateTouch: !0, 3254 shortSwipes: !0, 3255 longSwipes: !0, 3256 longSwipesRatio: .5, 3257 longSwipesMs: 300, 3258 followFinger: !0, 3259 allowTouchMove: !0, 3260 threshold: 0, 3261 touchMoveStopPropagation: !0, 3262 touchStartPreventDefault: !0, 3263 touchStartForcePreventDefault: !1, 3264 touchReleaseOnEdges: !1, 3265 uniqueNavElements: !0, 3266 resistance: !0, 3267 resistanceRatio: .85, 3268 watchSlidesProgress: !1, 3269 watchSlidesVisibility: !1, 3270 grabCursor: !1, 3271 preventClicks: !0, 3272 preventClicksPropagation: !0, 3273 slideToClickedSlide: !1, 3274 preloadImages: !0, 3275 updateOnImagesReady: !0, 3276 loop: !1, 3277 loopAdditionalSlides: 0, 3278 loopedSlides: null, 3279 loopFillGroupWithBlank: !1, 3280 allowSlidePrev: !0, 3281 allowSlideNext: !0, 3282 swipeHandler: null, 3283 noSwiping: !0, 3284 noSwipingClass: "swiper-no-swiping", 3285 noSwipingSelector: null, 3286 passiveListeners: !0, 3287 containerModifierClass: "swiper-container-", 3288 slideClass: "swiper-slide", 3289 slideBlankClass: "swiper-slide-invisible-blank", 3290 slideActiveClass: "swiper-slide-active", 3291 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 3292 slideVisibleClass: "swiper-slide-visible", 3293 slideDuplicateClass: "swiper-slide-duplicate", 3294 slideNextClass: "swiper-slide-next", 3295 slideDuplicateNextClass: "swiper-slide-duplicate-next", 3296 slidePrevClass: "swiper-slide-prev", 3297 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 3298 wrapperClass: "swiper-wrapper", 3299 runCallbacksOnInit: !0 3300 }, M = { 3301 update: p, 3302 translate: m, 3303 transition: g, 3304 slide: v, 3305 loop: b, 3306 grabCursor: y, 3307 manipulation: x, 3308 events: { 3309 attachEvents: function() { 3310 var t = this.params, n = this.touchEvents, i = this.el, r = this.wrapperEl; 3311 this.onTouchStart = _.bind(this), this.onTouchMove = S.bind(this), this.onTouchEnd = E.bind(this), 3312 this.onClick = T.bind(this); 3313 var o = "container" === t.touchEventsTarget ? i : r, s = !!t.nested; 3314 if (u.touch || !u.pointerEvents && !u.prefixedPointerEvents) { 3315 if (u.touch) { 3316 var a = !("touchstart" !== n.start || !u.passiveListener || !t.passiveListeners) && { 3317 passive: !0, 3318 capture: !1 3319 }; 3320 o.addEventListener(n.start, this.onTouchStart, a), o.addEventListener(n.move, this.onTouchMove, u.passiveListener ? { 3321 passive: !1, 3322 capture: s 3323 } : s), o.addEventListener(n.end, this.onTouchEnd, a); 3324 } 3325 (t.simulateTouch && !w.ios && !w.android || t.simulateTouch && !u.touch && w.ios) && (o.addEventListener("mousedown", this.onTouchStart, !1), 3326 e.addEventListener("mousemove", this.onTouchMove, s), e.addEventListener("mouseup", this.onTouchEnd, !1)); 3327 } else o.addEventListener(n.start, this.onTouchStart, !1), e.addEventListener(n.move, this.onTouchMove, s), 3328 e.addEventListener(n.end, this.onTouchEnd, !1); 3329 (t.preventClicks || t.preventClicksPropagation) && o.addEventListener("click", this.onClick, !0), 3330 this.on(w.ios || w.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", C, !0); 3331 }, 3332 detachEvents: function() { 3333 var t = this.params, n = this.touchEvents, i = this.el, r = this.wrapperEl, o = "container" === t.touchEventsTarget ? i : r, s = !!t.nested; 3334 if (u.touch || !u.pointerEvents && !u.prefixedPointerEvents) { 3335 if (u.touch) { 3336 var a = !("onTouchStart" !== n.start || !u.passiveListener || !t.passiveListeners) && { 3337 passive: !0, 3338 capture: !1 3339 }; 3340 o.removeEventListener(n.start, this.onTouchStart, a), o.removeEventListener(n.move, this.onTouchMove, s), 3341 o.removeEventListener(n.end, this.onTouchEnd, a); 3342 } 3343 (t.simulateTouch && !w.ios && !w.android || t.simulateTouch && !u.touch && w.ios) && (o.removeEventListener("mousedown", this.onTouchStart, !1), 3344 e.removeEventListener("mousemove", this.onTouchMove, s), e.removeEventListener("mouseup", this.onTouchEnd, !1)); 3345 } else o.removeEventListener(n.start, this.onTouchStart, !1), e.removeEventListener(n.move, this.onTouchMove, s), 3346 e.removeEventListener(n.end, this.onTouchEnd, !1); 3347 (t.preventClicks || t.preventClicksPropagation) && o.removeEventListener("click", this.onClick, !0), 3348 this.off(w.ios || w.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", C); 3349 } 3350 }, 3351 breakpoints: { 3352 setBreakpoint: function() { 3353 var e = this.activeIndex, t = this.initialized, n = this.loopedSlides; 3354 void 0 === n && (n = 0); 3355 var i = this.params, r = i.breakpoints; 3356 if (r && (!r || 0 !== Object.keys(r).length)) {
3357 var o = this.getBreakpoint(r); 3358 if (o && this.currentBreakpoint !== o) { 3359 var s = o in r ? r[o] : void 0; 3360 s && [ "slidesPerView", "spaceBetween", "slidesPerGroup" ].forEach((function(e) { 3361 var t = s[e]; 3362 void 0 !== t && (s[e] = "slidesPerView" !== e || "AUTO" !== t && "auto" !== t ? "slidesPerView" === e ? parseFloat(t) : parseInt(t, 10) : "auto"); 3363 })); 3364 var a = s || this.originalParams, l = a.direction && a.direction !== i.direction, u = i.loop && (a.slidesPerView !== i.slidesPerView || l); 3365 l && t && this.changeDirection(), c.extend(this.params, a), c.extend(this, { 3366 allowTouchMove: this.params.allowTouchMove, 3367 allowSlideNext: this.params.allowSlideNext, 3368 allowSlidePrev: this.params.allowSlidePrev 3369 }), this.currentBreakpoint = o, u && t && (this.loopDestroy(), this.loopCreate(), 3370 this.updateSlides(), this.slideTo(e - n + this.loopedSlides, 0, !1)), this.emit("breakpoint", a); 3371 } 3372 } 3373 }, 3374 getBreakpoint: function(e) { 3375 if (e) { 3376 var n = !1, i = []; 3377 Object.keys(e).forEach((function(e) { 3378 i.push(e); 3379 })), i.sort((function(e, t) { 3380 return parseInt(e, 10) - parseInt(t, 10); 3381 })); 3382 for (var r = 0; r < i.length; r += 1) { 3383 var o = i[r]; 3384 this.params.breakpointsInverse ? o <= t.innerWidth && (n = o) : o >= t.innerWidth && !n && (n = o); 3385 } 3386 return n || "max"; 3387 } 3388 } 3389 }, 3390 checkOverflow: { 3391 checkOverflow: function() { 3392 var e = this.isLocked; 3393 this.isLocked = 1 === this.snapGrid.length, this.allowSlideNext = !this.isLocked, 3394 this.allowSlidePrev = !this.isLocked, e !== this.isLocked && this.emit(this.isLocked ? "lock" : "unlock"), 3395 e && e !== this.isLocked && (this.isEnd = !1, this.navigation.update()); 3396 } 3397 }, 3398 classes: { 3399 addClasses: function() { 3400 var e = this.classNames, t = this.params, n = this.rtl, i = this.$el, r = []; 3401 r.push("initialized"), r.push(t.direction), t.freeMode && r.push("free-mode"), u.flexbox || r.push("no-flexbox"), 3402 t.autoHeight && r.push("autoheight"), n && r.push("rtl"), t.slidesPerColumn > 1 && r.push("multirow"), 3403 w.android && r.push("android"), w.ios && r.push("ios"), (d.isIE || d.isEdge) && (u.pointerEvents || u.prefixedPointerEvents) && r.push("wp8-" + t.direction), 3404 r.forEach((function(n) { 3405 e.push(t.containerModifierClass + n); 3406 })), i.addClass(e.join(" ")); 3407 }, 3408 removeClasses: function() { 3409 var e = this.$el, t = this.classNames; 3410 e.removeClass(t.join(" ")); 3411 } 3412 }, 3413 images: { 3414 loadImage: function(e, n, i, r, o, s) { 3415 var a; 3416 function l() { 3417 s && s(); 3418 } 3419 e.complete && o ? l() : n ? ((a = new t.Image).onload = l, a.onerror = l, r && (a.sizes = r), 3420 i && (a.srcset = i), n && (a.src = n)) : l(); 3421 }, 3422 preloadImages: function() { 3423 var e = this; 3424 function t() { 3425 null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), 3426 e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(
3426), 3427 e.emit("imagesReady"))); 3428 } 3429 e.imagesToLoad = e.$el.find("img"); 3430 for (var n = 0; n < e.imagesToLoad.length; n += 1) { 3431 var i = e.imagesToLoad[n]; 3432 e.loadImage(i, i.currentSrc || i.getAttribute("src"), i.srcset || i.getAttribute("srcset"), i.sizes || i.getAttribute("sizes"), !0, t); 3433 } 3434 } 3435 } 3436 }, A = {}, O = function(e) { 3437 function t() { 3438 for (var n, r, o, s = [], a = arguments.length; a--; ) s[a] = arguments[a]; 3439 1 === s.length && s[0].constructor && s[0].constructor === Object ? o = s[0] : (r = (n = s)[0], 3440 o = n[1]), o || (o = {}), o = c.extend({}, o), r && !o.el && (o.el = r), e.call(this, o), 3441 Object.keys(M).forEach((function(e) { 3442 Object.keys(M[e]).forEach((function(n) { 3443 t.prototype[n] || (t.prototype[n] = M[e][n]); 3444 })); 3445 })); 3446 var l = this; 3447 void 0 === l.modules && (l.modules = {}), Object.keys(l.modules).forEach((function(e) { 3448 var t = l.modules[e]; 3449 if (t.params) { 3450 var n = Object.keys(t.params)[0], i = t.params[n]; 3451 if ("object" != typeof i || null === i) return; 3452 if (!(n in o) || !("enabled" in i)) return; 3453 !0 === o[n] && (o[n] = { 3454 enabled: !0 3455 }), "object" != typeof o[n] || "enabled" in o[n] || (o[n].enabled = !0), o[n] || (o[n] = { 3456 enabled: !1 3457 }); 3458 } 3459 })); 3460 var d = c.extend({}, k); 3461 l.useModulesParams(d), l.params = c.extend({}, d, A, o), l.originalParams = c.extend({}, l.params), 3462 l.passedParams = c.extend({}, o), l.$ = i; 3463 var h = i(l.params.el); 3464 if (r = h[0]) { 3465 if (h.length > 1) { 3466 var f = []; 3467 return h.each((function(e, n) { 3468 var i = c.extend({}, o, { 3469 el: n 3470 }); 3471 f.push(new t(i)); 3472 })), f; 3473 } 3474 r.swiper = l, h.data("swiper", l); 3475 var p, m, g = h.children("." + l.params.wrapperClass); 3476 return c.extend(l, { 3477 $el: h, 3478 el: r, 3479 $wrapperEl: g, 3480 wrapperEl: g[0], 3481 classNames: [], 3482 slides: i(), 3483 slidesGrid: [], 3484 snapGrid: [], 3485 slidesSizesGrid: [], 3486 isHorizontal: function() { 3487 return "horizontal" === l.params.direction; 3488 }, 3489 isVertical: function() { 3490 return "vertical" === l.params.direction; 3491 }, 3492 rtl: "rtl" === r.dir.toLowerCase() || "rtl" === h.css("direction"), 3493 rtlTranslate: "horizontal" === l.params.direction && ("rtl" === r.dir.toLowerCase() || "rtl" === h.css("direction")), 3494 wrongRTL: "-webkit-box" === g.css("display"), 3495 activeIndex: 0, 3496 realIndex: 0, 3497 isBeginning: !0, 3498 isEnd: !1, 3499 translate: 0, 3500 previousTranslate: 0, 3501 progress: 0, 3502 velocity: 0, 3503 animating: !1, 3504 allowSlideNext: l.params.allowSlideNext, 3505 allowSlidePrev: l.params.allowSlidePrev, 3506 touchEvents: (p = [ "touchstart", "touchmove", "touchend" ], m = [ "mousedown", "mousemove", "mouseup" ], 3507 u.pointerEvents ? m = [ "pointerdown", "pointermove", "pointerup" ] : u.prefixedPointerEvents && (m = [ "MSPointerDown", "MSPointerMove", "MSPointerUp" ]), 3508 l.touchEventsTouch = { 3509 start: p[0], 3510 move: p[1], 3511 end: p[2] 3512 }, l.touchEventsDesktop = { 3513 start: m[0], 3514 move: m[1], 3515 end: m[2] 3516 }, u.touch || !l.params.simulateTouch ? l.touchEventsTouch : l.touchEventsDesktop), 3517 touchEventsData: { 3518 isTouched: void 0, 3519 isMoved: void 0, 3520 allowTouchCallbacks: void 0, 3521 touchStartTime: void 0, 3522 isScrolling: void 0, 3523 currentTranslate: void 0, 3524 startTranslate: void 0, 3525 allowThresholdMove: void 0, 3526 formElements: "input, select, option, textarea, button, video", 3527 lastClickTime: c.now(), 3528 clickTimeout: void 0, 3529 velocities: [], 3530 allowMomentumBounce: void 0, 3531 isTouchEvent: void 0, 3532 startMoving: void 0 3533 }, 3534 allowClick: !0, 3535 allowTouchMove: l.params.allowTouchMove, 3536 touches: { 3537 startX: 0, 3538 startY: 0, 3539 currentX: 0, 3540 currentY: 0, 3541 diff: 0 3542 }, 3543 imagesToLoad: [], 3544 imagesLoaded: 0 3545 }
3545), l.useModules(), l.params.init && l.init(), l; 3546 } 3547 } 3548 e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t; 3549 var n = { 3550 extendedDefaults: { 3551 configurable: !0 3552 }, 3553 defaults: { 3554 configurable: !0 3555 }, 3556 Class: { 3557 configurable: !0 3558 }, 3559 $: { 3560 configurable: !0 3561 } 3562 }; 3563 return t.prototype.slidesPerViewDynamic = function() { 3564 var e = this.params, t = this.slides, n = this.slidesGrid, i = this.size, r = this.activeIndex, o = 1; 3565 if (e.centeredSlides) { 3566 for (var s, a = t[r].swiperSlideSize, l = r + 1; l < t.length; l += 1) t[l] && !s && (o += 1, 3567 (a += t[l].swiperSlideSize) > i && (s = !0)); 3568 for (var c = r - 1; c >= 0; c -= 1) t[c] && !s && (o += 1, (a += t[c].swiperSlideSize) > i && (s = !0)); 3569 } else for (var u = r + 1; u < t.length; u += 1) n[u] - n[r] < i && (o += 1); 3570 return o; 3571 }, t.prototype.update = function() { 3572 var e = this; 3573 if (e && !e.destroyed) { 3574 var t = e.snapGrid, n = e.params; 3575 n.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), 3576 e.updateSlidesClasses(), e.params.freeMode ? (i(), e.params.autoHeight && e.updateAutoHeight()) : (("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0)) || i(), 3577 n.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update"); 3578 } 3579 function i() { 3580 var t = e.rtlTranslate ? -1 * e.translate : e.translate, n = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 3581 e.setTranslate(n), e.updateActiveIndex(), e.updateSlidesClasses(); 3582 } 3583 }, t.prototype.changeDirection = function(e, t) { 3584 void 0 === t && (t = !0); 3585 var n = this.params.direction; 3586 return e || (e = "horizontal" === n ? "vertical" : "horizontal"), e === n || "horizontal" !== e && "vertical" !== e || (this.$el.removeClass("" + this.params.containerModifierClass + n + " wp8-" + n).addClass("" + this.params.containerModifierClass + e), 3587 (d.isIE || d.isEdge) && (u.pointerEvents || u.prefixedPointerEvents) && this.$el.addClass(this.params.containerModifierClass + "wp8-" + e), 3588 this.params.direction = e, this.slides.each((function(t, n) { 3589 "vertical" === e ? n.style.width = "" : n.style.height = ""; 3590 })), this.emit("changeDirection"), t && this.update()), this; 3591 }, t.prototype.init = function() {
3592 this.initialized || (this.emit("beforeInit"), this.params.breakpoints && this.setBreakpoint(), 3593 this.addClasses(), this.params.loop && this.loopCreate(), this.updateSize(), this.updateSlides(), 3594 this.params.watchOverflow && this.checkOverflow(), this.params.grabCursor && this.setGrabCursor(), 3595 this.params.preloadImages && this.preloadImages(), this.params.loop ? this.slideTo(this.params.initialSlide + this.loopedSlides, 0, this.params.runCallbacksOnInit) : this.slideTo(this.params.initialSlide, 0, this.params.runCallbacksOnInit), 3596 this.attachEvents(), this.initialized = !0, this.emit("init")); 3597 }, t.prototype.destroy = function(e, t) { 3598 void 0 === e && (e = !0), void 0 === t && (t = !0); 3599 var n = this, i = n.params, r = n.$el, o = n.$wrapperEl, s = n.slides; 3600 return void 0 === n.params || n.destroyed || (n.emit("beforeDestroy"), n.initialized = !1, 3601 n.detachEvents(), i.loop && n.loopDestroy(), t && (n.removeClasses(), r.removeAttr("style"), 3602 o.removeAttr("style"), s && s.length && s.removeClass([ i.slideVisibleClass, i.slideActiveClass, i.slideNextClass, i.slidePrevClass ].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")), 3603 n.emit("destroy"), Object.keys(n.eventsListeners).forEach((function(e) { 3604 n.off(e); 3605 })), !1 !== e && (n.$el[0].swiper = null, n.$el.data("swiper", null), c.deleteProps(n)), 3606 n.destroyed = !0), null; 3607 }, t.extendDefaults = function(e) { 3608 c.extend(A, e); 3609 }, n.extendedDefaults.get = function() { 3610 return A; 3611 }, n.defaults.get = function() { 3612 return k; 3613 }, n.Class.get = function() { 3614 return e; 3615 }, n.$.get = function() { 3616 return i; 3617 }, Object.defineProperties(t, n), t; 3618 }(h), P = { 3619 name: "device", 3620 proto: { 3621 device: w 3622 }, 3623 static: { 3624 device: w 3625 } 3626 }, I = { 3627 name: "support", 3628 proto: { 3629 support: u 3630 }, 3631 static: { 3632 support: u 3633 } 3634 }, L = { 3635 name: "browser", 3636 proto: { 3637 browser: d 3638 }, 3639 static: { 3640 browser: d 3641 } 3642 }, D = { 3643 name: "resize", 3644 create: function() { 3645 var e = this; 3646 c.extend(e, { 3647 resize: { 3648 resizeHandler: function() { 3649 e && !e.destroyed && e.initialized && (e.emit("beforeResize"), e.emit("resize")); 3650 }, 3651 orientationChangeHandler: function() { 3652 e && !e.destroyed && e.initialized && e.emit("orientationchange"); 3653 } 3654 } 3655 }); 3656 }, 3657 on: { 3658 init: function() { 3659 t.addEventListener("resize", this.resize.resizeHandler), t.addEventListener("orientationchange", this.resize.orientationChangeHandler); 3660 }, 3661 destroy: function() { 3662 t.removeEventListener("resize", this.resize.resizeHandler), t.removeEventListener("orientationchange", this.resize.orientationChangeHandler); 3663 } 3664 } 3665 }, N = { 3666 func: t.MutationObserver || t.WebkitMutationObserver, 3667 attach: function(e, n) { 3668 void 0 === n && (n = {}); 3669 var i = this, r = new (0, N.func)((function(e) { 3670 if (1 !== e.length) { 3671 var n = function() { 3672 i.emit("observerUpdate", e[0]); 3673 }; 3674 t.requestAnimationFrame ? t.requestAnimationFrame(n) : t.setTimeout(n, 0); 3675 } else i.emit("observerUpdate", e[0]); 3676 })); 3677 r.observe(e, { 3678 attributes: void 0 === n.attributes || n.attributes, 3679 childList: void 0 === n.childList || n.childList, 3680 characterData: void 0 === n.characterData || n.characterData 3681 }), i.observer.observers.push(r); 3682 }, 3683 init: function() { 3684 if (u.observer && this.params.observer) { 3685 if (this.params.observeParents) for (var e = this.$el.parents(), t = 0; t < e.length; t += 1) this.observer.attach(e[t]); 3686 this.observer.attach(this.$el[0], { 3687 childList: this.params.observeSlideChildren 3688 }), this.observer.attach(this.$wrapperEl[0], { 3689 attributes: !1 3690 }); 3691 } 3692 }, 3693 destroy: function() {
3694 this.observer.observers.forEach((function(e) { 3695 e.disconnect(); 3696 })), this.observer.observers = []; 3697 } 3698 }, F = { 3699 name: "observer", 3700 params: { 3701 observer: !1, 3702 observeParents: !1, 3703 observeSlideChildren: !1 3704 }, 3705 create: function() { 3706 c.extend(this, { 3707 observer: { 3708 init: N.init.bind(this), 3709 attach: N.attach.bind(this), 3710 destroy: N.destroy.bind(this), 3711 observers: [] 3712 } 3713 }); 3714 }, 3715 on: { 3716 init: function() { 3717 this.observer.init(); 3718 }, 3719 destroy: function() { 3720 this.observer.destroy(); 3721 } 3722 } 3723 }, j = { 3724 update: function(e) { 3725 var t = this, n = t.params, i = n.slidesPerView, r = n.slidesPerGroup, o = n.centeredSlides, s = t.params.virtual, a = s.addSlidesBefore, l = s.addSlidesAfter, u = t.virtual, d = u.from, h = u.to, f = u.slides, p = u.slidesGrid, m = u.renderSlide, g = u.offset; 3726 t.updateActiveIndex(); 3727 var v, b, y, x = t.activeIndex || 0; 3728 v = t.rtlTranslate ? "right" : t.isHorizontal() ? "left" : "top", o ? (b = Math.floor(i / 2) + r + a, 3729 y = Math.floor(i / 2) + r + l) : (b = i + (r - 1) + a, y = r + l); 3730 var w = Math.max((x || 0) - y, 0), _ = Math.min((x || 0) + b, f.length - 1), S = (t.slidesGrid[w] || 0) - (t.slidesGrid[0] || 0); 3731 function E() { 3732 t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.lazy && t.params.lazy.enabled && t.lazy.load(); 3733 } 3734 if (c.extend(t.virtual, { 3735 from: w, 3736 to: _, 3737 offset: S, 3738 slidesGrid: t.slidesGrid 3739 }), d === w && h === _ && !e) return t.slidesGrid !== p && S !== g && t.slides.css(v, S + "px"), 3740 void t.updateProgress(); 3741 if (t.params.virtual.renderExternal) return t.params.virtual.renderExternal.call(t, { 3742 offset: S, 3743 from: w, 3744 to: _, 3745 slides: function() { 3746 for (var e = [], t = w; t <= _; t += 1) e.push(f[t]); 3747 return e; 3748 }() 3749 }), void E(); 3750 var C = [], T = []; 3751 if (e) t.$wrapperEl.find("." + t.params.slideClass).remove(); else for (var k = d; k <= h; k += 1) (k < w || k > _) && t.$wrapperEl.find("." + t.params.slideClass + '[data-swiper-slide-index="' + k + '"]').remove(); 3752 for (var M = 0; M < f.length; M += 1) M >= w && M <= _ && (void 0 === h || e ? T.push(M) : (M > h && T.push(M), 3753 M < d && C.push(M))); 3754 T.forEach((function(e) { 3755 t.$wrapperEl.append(m(f[e], e)); 3756 })), C.sort((function(e, t) { 3757 return t - e; 3758 })).forEach((function(e) { 3759 t.$wrapperEl.prepend(m(f[e], e)); 3760 })), t.$wrapperEl.children(".swiper-slide").css(v, S + "px"), E(); 3761 }, 3762 renderSlide: function(e, t) { 3763 var n = this.params.virtual; 3764 if (n.cache && this.virtual.cache[t]) return this.virtual.cache[t]; 3765 var r = n.renderSlide ? i(n.renderSlide.call(this, e, t)) : i('<div class="' + this.params.slideClass + '" data-swiper-slide-index="' + t + '">' + e + "</div>"); 3766 return r.attr("data-swiper-slide-index") || r.attr("data-swiper-slide-index", t), 3767 n.cache && (this.virtual.cache[t] = r), r; 3768 }, 3769 appendSlide: function(e) { 3770 if ("object" == typeof e && "length" in e) for (var t = 0; t < e.length; t += 1) e[t] && this.virtual.slides.push(e[t]); else this.virtual.slides.push(e); 3771 this.virtual.update(!0); 3772 }, 3773 prependSlide: function(e) { 3774 var t = this.activeIndex, n = t + 1, i = 1; 3775 if (Array.isArray(e)) { 3776 for (var r = 0; r < e.length; r += 1) e[r] && this.virtual.slides.unshift(e[r]); 3777 n = t + e.length, i = e.length; 3778 } else this.virtual.slides.unshift(e); 3779 if (this.params.virtual.cache) { 3780 var o = this.virtual.cache, s = {};
3781 Object.keys(o).forEach((function(e) { 3782 s[parseInt(e, 10) + i] = o[e]; 3783 })), this.virtual.cache = s; 3784 } 3785 this.virtual.update(!0), this.slideTo(n, 0); 3786 }, 3787 removeSlide: function(e) { 3788 if (null != e) { 3789 var t = this.activeIndex; 3790 if (Array.isArray(e)) for (var n = e.length - 1; n >= 0; n -= 1) this.virtual.slides.splice(e[n], 1), 3791 this.params.virtual.cache && delete this.virtual.cache[e[n]], e[n] < t && (t -= 1), 3792 t = Math.max(t, 0); else this.virtual.slides.splice(e, 1), this.params.virtual.cache && delete this.virtual.cache[e], 3793 e < t && (t -= 1), t = Math.max(t, 0); 3794 this.virtual.update(!0), this.slideTo(t, 0); 3795 } 3796 }, 3797 removeAllSlides: function() { 3798 this.virtual.slides = [], this.params.virtual.cache && (this.virtual.cache = {}), 3799 this.virtual.update(!0), this.slideTo(0, 0); 3800 } 3801 }, R = { 3802 name: "virtual", 3803 params: { 3804 virtual: { 3805 enabled: !1, 3806 slides: [], 3807 cache: !0, 3808 renderSlide: null, 3809 renderExternal: null, 3810 addSlidesBefore: 0, 3811 addSlidesAfter: 0 3812 } 3813 }, 3814 create: function() { 3815 c.extend(this, { 3816 virtual: { 3817 update: j.update.bind(this), 3818 appendSlide: j.appendSlide.bind(this), 3819 prependSlide: j.prependSlide.bind(this), 3820 removeSlide: j.removeSlide.bind(this), 3821 removeAllSlides: j.removeAllSlides.bind(this), 3822 renderSlide: j.renderSlide.bind(this), 3823 slides: this.params.virtual.slides, 3824 cache: {} 3825 } 3826 }); 3827 }, 3828 on: { 3829 beforeInit: function() { 3830 if (this.params.virtual.enabled) { 3831 this.classNames.push(this.params.containerModifierClass + "virtual"); 3832 var e = { 3833 watchSlidesProgress: !0 3834 }; 3835 c.extend(this.params, e), c.extend(this.originalParams, e), this.params.initialSlide || this.virtual.update(
3835); 3836 } 3837 }, 3838 setTranslate: function() { 3839 this.params.virtual.enabled && this.virtual.update(); 3840 } 3841 } 3842 }, B = { 3843 handle: function(n) { 3844 var i = this.rtlTranslate, r = n; 3845 r.originalEvent && (r = r.originalEvent); 3846 var o = r.keyCode || r.charCode; 3847 if (!this.allowSlideNext && (this.isHorizontal() && 39 === o || this.isVertical() && 40 === o || 34 === o)) return !1; 3848 if (!this.allowSlidePrev && (this.isHorizontal() && 37 === o || this.isVertical() && 38 === o || 33 === o)) return !1; 3849 if (!(r.shiftKey || r.altKey || r.ctrlKey || r.metaKey || e.activeElement && e.activeElement.nodeName && ("input" === e.activeElement.nodeName.toLowerCase() || "textarea" === e.activeElement.nodeName.toLowerCase()))) { 3850 if (this.params.keyboard.onlyInViewport && (33 === o || 34 === o || 37 === o || 39 === o || 38 === o || 40 === o)) { 3851 var s = !1; 3852 if (this.$el.parents("." + this.params.slideClass).length > 0 && 0 === this.$el.parents("." + this.params.slideActiveClass).length) return; 3853 var a = t.innerWidth, l = t.innerHeight, c = this.$el.offset(); 3854 i && (c.left -= this.$el[0].scrollLeft); 3855 for (var u = [ [ c.left, c.top ], [ c.left + this.width, c.top ], [ c.left, c.top + this.height ], [ c.left + this.width, c.top + this.height ] ], d = 0; d < u.length; d += 1) { 3856 var h = u[d]; 3857 h[0] >= 0 && h[0] <= a && h[1] >= 0 && h[1] <= l && (s = !0); 3858 } 3859 if (!s) return; 3860 } 3861 this.isHorizontal() ? (33 !== o && 34 !== o && 37 !== o && 39 !== o || (r.preventDefault ? r.preventDefault() : r.returnValue = !1), 3862 (34 !== o && 39 !== o || i) && (33 !== o && 37 !== o || !i) || this.slideNext(), 3863 (33 !== o && 37 !== o || i) && (34 !== o && 39 !== o || !i) || this.slidePrev()) : (33 !== o && 34 !== o && 38 !== o && 40 !== o || (r.preventDefault ? r.preventDefault() : r.returnValue = !1), 3864 34 !== o && 40 !== o || this.slideNext(), 33 !== o && 38 !== o || this.slidePrev()), 3865 this.emit("keyPress", o); 3866 } 3867 }, 3868 enable: function() { 3869 this.keyboard.enabled || (i(e).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0); 3870 }, 3871 disable: function() { 3872 this.keyboard.enabled && (i(e).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1); 3873 } 3874 }, z = { 3875 name: "keyboard", 3876 params: { 3877 keyboard: { 3878 enabled: !1, 3879 onlyInViewport: !0 3880 } 3881 }, 3882 create: function() { 3883 c.extend(this, { 3884 keyboard: { 3885 enabled: !1, 3886 enable: B.enable.bind(this), 3887 disable: B.disable.bind(this), 3888 handle: B.handle.bind(this) 3889 } 3890 }); 3891 }, 3892 on: { 3893 init: function() { 3894 this.params.keyboard.enabled && this.keyboard.enable(); 3895 }, 3896 destroy: function() { 3897 this.keyboard.enabled && this.keyboard.disable(); 3898 } 3899 } 3900 }, H = { 3901 lastScrollTime: c.now(), 3902 event: t.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function() { 3903 var t = "onwheel" in e; 3904 if (!t) { 3905 var n = e.createElement("div"); 3906 n.setAttribute("onwheel", "return;"), t = "function" == typeof n.onwheel; 3907 } 3908 return !t && e.implementation && e.implementation.hasFeature && !0 !== e.implementation.hasFeature("", "") && (t = e.implementation.hasFeature("Events.wheel", "3.0")), 3909 t; 3910 }() ? "wheel" : "mousewheel", 3911 normalize: function(e) { 3912 var t = 0, n = 0, i = 0, r = 0; 3913 return "detail" in e && (n = e.detail), "wheelDelta" in e && (n = -e.wheelDelta / 120), 3914 "wheelDeltaY" in e && (n = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), 3915 "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = n, n = 0), i = 10 * t, r = 10 * n, 3916 "deltaY" in e && (r = e.deltaY), "deltaX" in e && (i = e.deltaX), (i || r) && e.deltaMode && (1 === e.deltaMode ? (i *= 40, 3917 r *= 40) : (i *= 800, r *= 800)), i && !t && (t = i < 1 ? -1 : 1), r && !n && (n = r < 1 ? -1 : 1), 3918 { 3919 spinX: t, 3920 spinY: n, 3921 pixelX: i, 3922 pixelY: r 3923 }; 3924 }, 3925 handleMouseEnter: function() { 3926 this.mouseEntered = !0; 3927 }, 3928 handleMouseLeave: function() { 3929 this.mouseEntered = !1; 3930 }, 3931 handle: function(e) { 3932 var n = e, i = this, r = i.params.mousewheel; 3933 if (!i.mouseEntered && !r.releaseOnEdges) return !0; 3934 n.originalEvent && (n = n.originalEvent); 3935 var o = 0, s = i.rtlTranslate ? -1 : 1, a = H.normalize(n); 3936 if (r.forceToAxis) if (i.isHorizontal()) { 3937 if (!(Math.abs(a.pixelX) > Math.abs(a.pixelY))) return !0; 3938 o = a.pixelX * s; 3939 } else { 3940 if (!(Math.abs(a.pixelY) > Math.abs(a.pixelX))) return !0; 3941 o = a.pixelY; 3942 } else o = Math.abs(a.pixelX) > Math.abs(a.pixelY) ? -a.pixelX * s : -a.pixelY; 3943 if (0 === o) return !0; 3944 if (r.invert && (o = -o), i.params.freeMode) { 3945 i.params.loop && i.loopFix(); 3946 var l = i.getTranslate() + o * r.sensitivity, u = i.isBeginning, d = i.isEnd; 3947 if (l >= i.minTranslate() && (l = i.minTranslate()), l <= i.maxTranslate() && (l = i.maxTranslate()), 3948 i.setTransition(0), i.setTranslate(l), i.updateProgress(), i.updateActiveIndex(), 3949 i.updateSlidesClasses(), (!u && i.isBeginning || !d && i.isEnd) && i.updateSlidesClasses(), 3950 i.params.freeModeSticky && (clearTimeout(i.mousewheel.timeout), i.mousewheel.timeout = c.nextTick((function() { 3951 i.slideToClosest(); 3952 }), 300)), i.emit("scroll", n), i.params.autoplay && i.params.autoplayDisableOnInteraction && i.autoplay.stop(), 3953 l === i.minTranslate() || l === i.maxTranslate()) return !0; 3954 } else { 3955 if (c.now() - i.mousewheel.lastScrollTime > 60) if (o < 0) if (i.isEnd && !i.params.loop || i.animating) { 3956 if (r.releaseOnEdges) return !0; 3957 } else i.slideNext(), i.emit("scroll", n); else if (i.isBeginning && !i.params.loop || i.animating) { 3958 if (r.releaseOnEdges) return !0; 3959 } else i.slidePrev(), i.emit("scroll", n); 3960 i.mousewheel.lastScrollTime = (new t.Date).getTime(); 3961 } 3962 return n.preventDefault ? n.preventDefault() : n.returnValue = !1, !1; 3963 }, 3964 enable: function() { 3965 if (!H.event) return !1; 3966 if (this.mousewheel.enabled) return !1; 3967 var e = this.$el; 3968 return "container" !== this.params.mousewheel.eventsTarged && (e = i(this.params.mousewheel.eventsTarged)), 3969 e.on("mouseenter", this.mousewheel.handleMouseEnter), e.on("mouseleave", this.mousewheel.handleMouseLeave), 3970 e.on(H.event, this.mousewheel.handle), this.mousewheel.enabled = !0, !0; 3971 }, 3972 disable: function() { 3973 if (!H.event) return !1; 3974 if (!this.mousewheel.enabled) return !1; 3975 var e = this.$el; 3976 return "container" !== this.params.mousewheel.eventsTarged && (e = i(this.params.mousewheel.eventsTarged)), 3977 e.off(H.event, this.mousewheel.handle), this.mousewheel.enabled = !1, !0; 3978 } 3979 }, $ = { 3980 update: function() { 3981 var e = this.params.navigation; 3982 if (!this.params.loop) { 3983 var t = this.navigation, n = t.$nextEl, i = t.$prevEl; 3984 i && i.length >
3984 0 && (this.isBeginning ? i.addClass(e.disabledClass) : i.removeClass(e.disabledClass), 3985 i[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)), 3986 n && n.length > 0 && (this.isEnd ? n.addClass(e.disabledClass) : n.removeClass(e.disabledClass), 3987 n[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)); 3988 } 3989 }, 3990 onPrevClick: function(e) { 3991 e.preventDefault(), this.isBeginning && !this.params.loop || this.slidePrev(); 3992 }, 3993 onNextClick: function(e) { 3994 e.preventDefault(), this.isEnd && !this.params.loop || this.slideNext(); 3995 }, 3996 init: function() { 3997 var e, t, n = this.params.navigation; 3998 (n.nextEl || n.prevEl) && (n.nextEl && (e = i(n.nextEl), this.params.uniqueNavElements && "string" == typeof n.nextEl && e.length > 1 && 1 === this.$el.find(n.nextEl).length && (e = this.$el.find(n.nextEl))), 3999 n.prevEl && (t = i(n.prevEl), this.params.uniqueNavElements && "string" == typeof n.prevEl && t.length > 1 && 1 === this.$el.find(n.prevEl).length && (t = this.$el.find(n.prevEl))), 4000 e && e.length > 0 && e.on("click", this.navigation.onNextClick), t && t.length > 0 && t.on("click", this.navigation.onPrevClick), 4001 c.extend(this.navigation, { 4002 $nextEl: e, 4003 nextEl: e && e[0], 4004 $prevEl: t, 4005 prevEl: t && t[0] 4006 })); 4007 }, 4008 destroy: function() { 4009 var e = this.navigation, t = e.$nextEl, n = e.$prevEl; 4010 t && t.length && (t.off("click", this.navigation.onNextClick), t.removeClass(this.params.navigation.disabledClass)), 4011 n && n.length && (n.off("click", this.navigation.onPrevClick), n.removeClass(this.params.navigation.disabledClass)); 4012 } 4013 }, W = { 4014 update: function() { 4015 var e = this.rtl, t = this.params.pagination; 4016 if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 4017 var n, r = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, o = this.pagination.$el, s = this.params.loop ? Math.ceil((r - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length; 4018 if (this.params.loop ? ((n = Math.ceil((this.activeIndex - this.loopedSlides) / this.params.slidesPerGroup)) > r - 1 - 2 * this.loopedSlides && (n -= r - 2 * this.loopedSlides), 4019 n > s - 1 && (n -= s), n < 0 && "bullets" !== this.params.paginationType && (n = s + n)) : n = void 0 !== this.snapIndex ? this.snapIndex : this.activeIndex || 0, 4020 "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) { 4021 var a, l, c, u = this.pagination.bullets; 4022 if (t.dynamicBullets && (this.pagination.bulletSize = u.eq(0)[this.isHorizontal() ? "outerWidth" : "outerHeight"](!0), 4023 o.css(this.isHorizontal() ? "width" : "height", this.pagination.bulletSize * (t.dynamicMainBullets + 4) + "px"), 4024 t.dynamicMainBullets > 1 && void 0 !== this.previousIndex && (this.pagination.dynamicBulletIndex += n - this.previousIndex, 4025 this.pagination.dynamicBulletIndex > t.dynamicMainBullets - 1 ? this.pagination.dynamicBulletIndex = t.dynamicMainBullets - 1 : this.pagination.dynamicBulletIndex < 0 && (this.pagination.dynamicBulletIndex = 0)), 4026 a = n - this.pagination.dynamicBulletIndex, c = ((l = a + (Math.min(u.length, t.dynamicMainBullets) - 1)) + a) / 2), 4027 u.removeClass(t.bulletActiveClass + " " + t.bulletActiveClass + "-next " + t.bulletActiveClass + "-next-next " + t.bulletActiveClass + "-prev " + t.bulletActiveClass + "-prev-prev " + t.bulletActiveClass + "-main"), 4028 o.length > 1) u.each((function(e, r) { 4029 var o = i(r), s = o.index(); 4030 s === n && o.addClass(t.bulletActiveClass), t.dynamicBullets && (s >= a && s <= l && o.addClass(t.bulletActiveClass + "-main"), 4031 s === a && o.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), 4032 s === l && o.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next")); 4033 })); else if (u.eq(n).addClass(t.bulletActiveClass), t.dynamicBullets) { 4034 for (var d = u.eq(a), h = u.eq(l), f = a;
4034 f <= l; f += 1) u.eq(f).addClass(t.bulletActiveClass + "-main"); 4035 d.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), 4036 h.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next"); 4037 } 4038 if (t.dynamicBullets) { 4039 var p = Math.min(u.length, t.dynamicMainBullets + 4), m = (this.pagination.bulletSize * p - this.pagination.bulletSize) / 2 - c * this.pagination.bulletSize, g = e ? "right" : "left"; 4040 u.css(this.isHorizontal() ? g : "top", m + "px"); 4041 } 4042 } 4043 if ("fraction" === t.type && (o.find("." + t.currentClass).text(t.formatFractionCurrent(n + 1)), 4044 o.find("." + t.totalClass).text(t.formatFractionTotal(s))), "progressbar" === t.type) { 4045 var v; 4046 v = t.progressbarOpposite ? this.isHorizontal() ? "vertical" : "horizontal" : this.isHorizontal() ? "horizontal" : "vertical"; 4047 var b = (n + 1) / s, y = 1, x = 1; 4048 "horizontal" === v ? y = b : x = b, o.find("." + t.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + y + ") scaleY(" + x + ")").transition(this.params.speed); 4049 } 4050 "custom" === t.type && t.renderCustom ? (o.html(t.renderCustom(this, n + 1, s)), 4051 this.emit("paginationRender", this, o[0])) : this.emit("paginationUpdate", this, o[0]), 4052 o[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](t.lockClass); 4053 } 4054 }, 4055 render: function() { 4056 var e = this.params.pagination; 4057 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 4058 var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, n = this.pagination.$el, i = ""; 4059 if ("bullets" === e.type) { 4060 for (var r = this.params.loop ? Math.ceil((t - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length, o = 0; o < r; o += 1) e.renderBullet ? i += e.renderBullet.call(this, o, e.bulletClass) : i += "<" + e.bulletElement + ' class="' + e.bulletClass + '"></' + e.bulletElement + ">"; 4061 n.html(i), this.pagination.bullets = n.find("." + e.bulletClass); 4062 } 4063 "fraction" === e.type && (i = e.renderFraction ? e.renderFraction.call(this, e.currentClass, e.totalClass) : '<span class="' + e.currentClass + '"></span> / <span class="' + e.totalClass + '"></span>', 4064 n.html(i)), "progressbar" === e.type && (i = e.renderProgressbar ? e.renderProgressbar.call(this, e.progressbarFillClass) : '<span class="' + e.progressbarFillClass + '"></span>', 4065 n.html(i)), "custom" !== e.type && this.emit("paginationRender", this.pagination.$el[0]); 4066 } 4067 }, 4068 init: function() { 4069 var e = this, t = e.params.pagination; 4070 if (t.el) { 4071 var n = i(t.el); 4072 0 !== n.length && (e.params.uniqueNavElements && "string" == typeof t.el && n.length > 1 && 1 === e.$el.find(t.el).length && (n = e.$el.find(t.el)), 4073 "bullets" === t.type && t.clickable && n.addClass(t.clickableClass), n.addClass(t.modifierClass + t.type), 4074 "bullets" === t.type && t.dynamicBullets && (n.addClass("" + t.modifierClass + t.type + "-dynamic"), 4075 e.pagination.dynamicBulletIndex = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), 4076 "progressbar" === t.type && t.progressbarOpposite && n.addClass(t.progressbarOppositeClass), 4077 t.clickable && n.on("click", "." + t.bulletClass, (function(t) { 4078 t.preventDefault(); 4079 var n = i(this).index() * e.params.slidesPerGroup; 4080 e.params.loop && (n += e.loopedSlides), e.slideTo(n); 4081 })), c.extend(e.pagination, { 4082 $el: n, 4083 el: n[0] 4084 })); 4085 } 4086 }, 4087 destroy: function() { 4088 var e = this.params.pagination; 4089 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 4090 var t = this.pagination.$el; 4091 t.removeClass(e.hiddenClass), t.removeClass(e.modifierClass + e.type), this.pagination.bullets && this.pagination.bullets.removeClass(e.bulletActiveClass), 4092 e.clickable && t.off("click", "." + e.bulletClass); 4093 } 4094 } 4095 }, q = { 4096 setTranslate: function() { 4097 if (this.params.scrollbar.el && this.scrollbar.el) { 4098 var e = this.scrollbar, t = this.rtlTranslate, n = this.progress, i = e.dragSize, r = e.trackSize, o = e.$dragEl, s = e.$el, a = this.params.scrollbar, l = i, c = (r - i) * n; 4099 t ? (c = -c) > 0 ? (l = i - c, c = 0) : -c + i > r && (l = r + c) : c < 0 ? (l = i + c, 4100 c = 0) : c + i > r && (l = r - c), this.isHorizontal() ? (u.transforms3d ? o.transform("translate3d(" + c + "px, 0, 0)") : o.transform("translateX("
4100+ c + "px)"), 4101 o[0].style.width = l + "px") : (u.transforms3d ? o.transform("translate3d(0px, " + c + "px, 0)") : o.transform("translateY(" + c + "px)"), 4102 o[0].style.height = l + "px"), a.hide && (clearTimeout(this.scrollbar.timeout), 4103 s[0].style.opacity = 1, this.scrollbar.timeout = setTimeout((function() { 4104 s[0].style.opacity = 0, s.transition(400); 4105 }), 1e3)); 4106 } 4107 }, 4108 setTransition: function(e) { 4109 this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragEl.transition(e); 4110 }, 4111 updateSize: function() { 4112 if (this.params.scrollbar.el && this.scrollbar.el) { 4113 var e = this.scrollbar, t = e.$dragEl, n = e.$el; 4114 t[0].style.width = "", t[0].style.height = ""; 4115 var i, r = this.isHorizontal() ? n[0].offsetWidth : n[0].offsetHeight, o = this.size / this.virtualSize, s = o * (r / this.size); 4116 i = "auto" === this.params.scrollbar.dragSize ? r * o : parseInt(this.params.scrollbar.dragSize, 10), 4117 this.isHorizontal() ? t[0].style.width = i + "px" : t[0].style.height = i + "px", 4118 n[0].style.display = o >= 1 ? "none" : "", this.params.scrollbar.hide && (n[0].style.opacity = 0), 4119 c.extend(e, { 4120 trackSize: r, 4121 divider: o, 4122 moveDivider: s, 4123 dragSize: i 4124 }), e.$el[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](this.params.scrollbar.lockClass); 4125 } 4126 }, 4127 getPointerPosition: function(e) { 4128 return this.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX || e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY || e.clientY; 4129 }, 4130 setDragPosition: function(e) { 4131 var t, n = this.scrollbar, i = this.rtlTranslate, r = n.$el, o = n.dragSize, s = n.trackSize, a = n.dragStartPos; 4132 t = (n.getPointerPosition(e) - r.offset()[this.isHorizontal() ? "left" : "top"] - (null !== a ? a : o / 2)) / (s - o), 4133 t = Math.max(Math.min(t, 1), 0), i && (t = 1 - t); 4134 var l = this.minTranslate() + (this.maxTranslate() - this.minTranslate()) * t; 4135 this.updateProgress(l), this.setTranslate(l), this.updateActiveIndex(), this.updateSlidesClasses(); 4136 }, 4137 onDragStart: function(e) { 4138 var t = this.params.scrollbar, n = this.scrollbar, i = this.$wrapperEl, r = n.$el, o = n.$dragEl; 4139 this.scrollbar.isTouched = !0, this.scrollbar.dragStartPos = e.target === o[0] || e.target === o ? n.getPointerPosition(e) - e.target.getBoundingClientRect()[this.isHorizontal() ? "left" : "top"] : null, 4140 e.preventDefault(), e.stopPropagation(), i.transition(100), o.transition(100), n.setDragPosition(e), 4141 clearTimeout(this.scrollbar.dragTimeout), r.transition(0), t.hide && r.css("opacity", 1), 4142 this.emit("scrollbarDragStart", e); 4143 }, 4144 onDragMove: function(e) { 4145 var t = this.scrollbar, n = this.$wrapperEl, i = t.$el, r = t.$dragEl; 4146 this.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, 4147 t.setDragPosition(e), n.transition(0), i.transition(0), r.transition(0), this.emit("scrollbarDragMove", e)); 4148 }, 4149 onDragEnd: function(e) { 4150 var t = this.params.scrollbar, n = this.scrollbar.$el; 4151 this.scrollbar.isTouched && (this.scrollbar.isTouched = !1, t.hide && (clearTimeout(this.scrollbar.dragTimeout), 4152 this.scrollbar.dragTimeout = c.nextTick((function() { 4153 n.css("opacity", 0), n.transition(400); 4154 }
4154), 1e3)), this.emit("scrollbarDragEnd", e), t.snapOnRelease && this.slideToClosest()); 4155 }, 4156 enableDraggable: function() { 4157 if (this.params.scrollbar.el) { 4158 var t = this.scrollbar, n = this.touchEventsTouch, i = this.touchEventsDesktop, r = this.params, o = t.$el[0], s = !(!u.passiveListener || !r.passiveListeners) && { 4159 passive: !1, 4160 capture: !1 4161 }, a = !(!u.passiveListener || !r.passiveListeners) && { 4162 passive: !0, 4163 capture: !1 4164 }; 4165 u.touch ? (o.addEventListener(n.start, this.scrollbar.onDragStart, s), o.addEventListener(n.move, this.scrollbar.onDragMove, s), 4166 o.addEventListener(n.end, this.scrollbar.onDragEnd, a)) : (o.addEventListener(i.start, this.scrollbar.onDragStart, s), 4167 e.addEventListener(i.move, this.scrollbar.onDragMove, s), e.addEventListener(i.end, this.scrollbar.onDragEnd, a)); 4168 } 4169 }, 4170 disableDraggable: function() { 4171 if (this.params.scrollbar.el) { 4172 var t = this.scrollbar, n = this.touchEventsTouch, i = this.touchEventsDesktop, r = this.params, o = t.$el[0], s = !(!u.passiveListener || !r.passiveListeners) && { 4173 passive: !1, 4174 capture: !1 4175 }, a = !(!u.passiveListener || !r.passiveListeners) && { 4176 passive: !0, 4177 capture: !1 4178 }; 4179 u.touch ? (o.removeEventListener(n.start, this.scrollbar.onDragStart, s), o.removeEventListener(n.move, this.scrollbar.onDragMove, s), 4180 o.removeEventListener(n.end, this.scrollbar.onDragEnd, a)) : (o.removeEventListener(i.start, this.scrollbar.onDragStart, s), 4181 e.removeEventListener(i.move, this.scrollbar.onDragMove, s), e.removeEventListener(i.end, this.scrollbar.onDragEnd, a)); 4182 } 4183 }, 4184 init: function() { 4185 if (this.params.scrollbar.el) { 4186 var e = this.scrollbar, t = this.$el, n = this.params.scrollbar, r = i(n.el); 4187 this.params.uniqueNavElements && "string" == typeof n.el && r.length > 1 && 1 === t.find(n.el).length && (r = t.find(n.el)); 4188 var o = r.find("." + this.params.scrollbar.dragClass); 4189 0 === o.length && (o = i('<div class="' + this.params.scrollbar.dragClass + '"></div>'), 4190 r.append(o)), c.extend(e, { 4191 $el: r, 4192 el: r[0], 4193 $dragEl: o, 4194 dragEl: o[0] 4195 }), n.draggable && e.enableDraggable(); 4196 } 4197 }, 4198 destroy: function() { 4199 this.scrollbar.disableDraggable(); 4200 } 4201 }, V = { 4202 setTransform: function(e, t) { 4203 var n = this.rtl, r = i(e), o = n ? -1 : 1, s = r.attr("data-swiper-parallax") || "0", a = r.attr("data-swiper-parallax-x"), l = r.attr("data-swiper-parallax-y"), c = r.attr("data-swiper-parallax-scale"), u = r.attr("data-swiper-parallax-opacity"); 4204 if (a || l ? (a = a || "0", l = l || "0") : this.isHorizontal() ? (a = s, l = "0") : (l = s, 4205 a = "0"), a = a.indexOf("%") >= 0 ? parseInt(a, 10) * t * o + "%" : a * t * o + "px", 4206 l = l.indexOf("%") >= 0 ? parseInt(l, 10) * t + "%" : l * t + "px", null != u) { 4207 var d = u - (u - 1) * (1 - Math.abs(t)); 4208 r[0].style.opacity = d; 4209 } 4210 if (null == c) r.transform("translate3d(" + a + ", " + l + ", 0px)"); else { 4211 var h = c - (c - 1) * (1 - Math.abs(t)); 4212 r.transform("translate3d(" + a + ", " + l + ", 0px) scale(" + h + ")"); 4213 } 4214 }, 4215 setTranslate: function() { 4216 var e = this, t = e.$el, n = e.slides, r = e.progress, o = e.snapGrid; 4217 t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t, n) { 4218 e.parallax.setTransform(n, r); 4219 })), n.each((function(t, n) { 4220 var s = n.progress; 4221 e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (s += Math.ceil(t / 2) - r * (o.length - 1)), 4222 s = Math.min(Math.max(s, -1), 1), i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t, n) { 4223 e.parallax.setTransform(n, s); 4224 })); 4225 })); 4226 }, 4227 setTransition: function(e) { 4228 void 0 === e && (e = this.params.speed), this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t, n) { 4229 var r = i(n), o = parseInt(r.attr("data-swiper-parallax-duration"), 10) || e; 4230 0 === e && (o = 0), r.transition(o); 4231 })); 4232 } 4233 }, Y = { 4234 getDistanceBetweenTouches: function(e) { 4235 if (e.targetTouches.length < 2) return 1; 4236 var t = e.targetTouches[0].pageX, n = e.targetTouches[0].pageY, i = e.targetTouches[1].pageX, r = e.targetTouches[1].pageY; 4237 return Math.sqrt(Math.pow(i - t, 2) + Math.pow(r - n, 2)); 4238 }, 4239 onGestureStart: function(e) { 4240 var t = this.params.zoom, n = this.zoom, r = n.gesture; 4241 if (n.fakeGestureTouched = !1, n.fakeGestureMoved = !1, !u.gestures) { 4242 if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return; 4243 n.fakeGestureTouched = !0, r.scaleStart = Y.getDistanceBetweenTouches(e); 4244 }
4245 r.$slideEl && r.$slideEl.length || (r.$slideEl = i(e.target).closest(".swiper-slide"), 4246 0 === r.$slideEl.length && (r.$slideEl = this.slides.eq(this.activeIndex)), r.$imageEl = r.$slideEl.find("img, svg, canvas"), 4247 r.$imageWrapEl = r.$imageEl.parent("." + t.containerClass), r.maxRatio = r.$imageWrapEl.attr("data-swiper-zoom") || t.maxRatio, 4248 0 !== r.$imageWrapEl.length) ? (r.$imageEl.transition(0), this.zoom.isScaling = !0) : r.$imageEl = void 0; 4249 }, 4250 onGestureChange: function(e) { 4251 var t = this.params.zoom, n = this.zoom, i = n.gesture; 4252 if (!u.gestures) { 4253 if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 4254 n.fakeGestureMoved = !0, i.scaleMove = Y.getDistanceBetweenTouches(e); 4255 } 4256 i.$imageEl && 0 !== i.$imageEl.length && (n.scale = u.gestures ? e.scale * n.currentScale : i.scaleMove / i.scaleStart * n.currentScale, 4257 n.scale > i.maxRatio && (n.scale = i.maxRatio - 1 + Math.pow(n.scale - i.maxRatio + 1, .5)), 4258 n.scale < t.minRatio && (n.scale = t.minRatio + 1 - Math.pow(t.minRatio - n.scale + 1, .5)), 4259 i.$imageEl.transform("translate3d(0,0,0) scale(" + n.scale + ")")); 4260 }, 4261 onGestureEnd: function(e) { 4262 var t = this.params.zoom, n = this.zoom, i = n.gesture; 4263 if (!u.gestures) { 4264 if (!n.fakeGestureTouched || !n.fakeGestureMoved) return; 4265 if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !w.android) return; 4266 n.fakeGestureTouched = !1, n.fakeGestureMoved = !1; 4267 } 4268 i.$imageEl && 0 !== i.$imageEl.length && (n.scale = Math.max(Math.min(n.scale, i.maxRatio), t.minRatio), 4269 i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + n.scale + ")"), 4270 n.currentScale = n.scale, n.isScaling = !1, 1 === n.scale && (i.$slideEl = void 0)); 4271 }, 4272 onTouchStart: function(e) { 4273 var t = this.zoom, n = t.gesture, i = t.image; 4274 n.$imageEl && 0 !== n.$imageEl.length && (i.isTouched || (w.android && e.preventDefault(), 4275 i.isTouched = !0, i.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, 4276 i.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY)); 4277 }, 4278 onTouchMove: function(e) { 4279 var t = this.zoom, n = t.gesture, i = t.image, r = t.velocity; 4280 if (n.$imageEl && 0 !== n.$imageEl.length && (this.allowClick = !1, i.isTouched && n.$slideEl)) { 4281 i.isMoved || (i.width = n.$imageEl[0].offsetWidth, i.height = n.$imageEl[0].offsetHeight, 4282 i.startX = c.getTranslate(n.$imageWrapEl[0], "x") || 0, i.startY = c.getTranslate(n.$imageWrapEl[0], "y") || 0, 4283 n.slideWidth = n.$slideEl[0].offsetWidth, n.slideHeight = n.$slideEl[0].offsetHeight, 4284 n.$imageWrapEl.transition(0), this.rtl && (i.startX = -i.startX, i.startY = -i.startY)); 4285 var o = i.width * t.scale, s = i.height * t.scale; 4286 if (!(o < n.slideWidth && s < n.slideHeight)) { 4287 if (i.minX = Math.min(n.slideWidth / 2 - o / 2, 0), i.maxX = -i.minX, i.minY = Math.min(n.slideHeight / 2 - s / 2, 0), 4288 i.maxY = -i.minY, i.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, 4289 i.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, 4290 !i.isMoved && !t.isScaling) { 4291 if (this.isHorizontal() && (Math.floor(i.minX) === Math.floor(i.startX) && i.touchesCurrent.x < i.touchesStart.x || Math.floor(i.maxX) === Math.floor(i.startX) && i.touchesCurrent.x > i.touchesStart.x)) return void (i.isTouched = !1); 4292 if (!this.isHorizontal() && (Math.floor(i.minY) === Math.floor(i.startY) && i.touchesCurrent.y < i.touchesStart.y || Math.floor(i.maxY) === Math.floor(i.startY) && i.touchesCurrent.y > i.touchesStart.y)) return void (i.isTouched = !1); 4293 } 4294 e.preventDefault(), e.stopPropagation(), i.isMoved = !0, i.currentX = i.touchesCurrent.x - i.touchesStart.x + i.startX, 4295 i.currentY = i.touchesCurrent.y - i.touchesStart.y + i.startY, i.currentX < i.minX && (i.currentX = i.minX + 1 - Math.pow(i.minX - i.currentX + 1, .8)), 4296 i.currentX > i.maxX && (i.currentX = i.maxX - 1 + Math.pow(i.currentX - i.maxX + 1, .8)), 4297 i.currentY < i.minY && (i.currentY = i.minY + 1 - Math.pow(i.minY - i.currentY + 1, .8)), 4298 i.currentY > i.maxY && (i.currentY = i.maxY - 1 + Math.pow(i.currentY - i.maxY + 1, .8)), 4299 r.prevPositionX || (r.prevPositionX = i.touchesCurrent.x), r.prevPositionY || (r.prevPositionY = i.touchesCurrent.y), 4300 r.prevTime || (r.prevTime = Date.now()), r.x = (i.touchesCurrent.x - r.prevPositionX) / (Date.now() - r.prevTime) / 2, 4301 r.y = (i.touchesCurrent.y - r.prevPositionY) / (Date.now() - r.prevTime) / 2, Math.abs(i.touchesCurrent.x - r.prevPositionX) < 2 && (r.x = 0), 4302 Math.abs(i.touchesCurrent.y - r.prevPositionY) < 2 && (r.y = 0), r.prevPositionX = i.touchesCurrent.x, 4303 r.prevPositionY = i.touchesCurrent.y, r.prevTime = Date.now(), n.$imageWrapEl.transform("translate3d(" + i.currentX + "px, " + i.currentY + "px,0
4303)"); 4304 } 4305 } 4306 }, 4307 onTouchEnd: function() { 4308 var e = this.zoom, t = e.gesture, n = e.image, i = e.velocity; 4309 if (t.$imageEl && 0 !== t.$imageEl.length) { 4310 if (!n.isTouched || !n.isMoved) return n.isTouched = !1, void (n.isMoved = !1); 4311 n.isTouched = !1, n.isMoved = !1; 4312 var r = 300, o = 300, s = i.x * r, a = n.currentX + s, l = i.y * o, c = n.currentY + l; 4313 0 !== i.x && (r = Math.abs((a - n.currentX) / i.x)), 0 !== i.y && (o = Math.abs((c - n.currentY) / i.y)); 4314 var u = Math.max(r, o); 4315 n.currentX = a, n.currentY = c; 4316 var d = n.width * e.scale, h = n.height * e.scale; 4317 n.minX = Math.min(t.slideWidth / 2 - d / 2, 0), n.maxX = -n.minX, n.minY = Math.min(t.slideHeight / 2 - h / 2, 0), 4318 n.maxY = -n.minY, n.currentX = Math.max(Math.min(n.currentX, n.maxX), n.minX), n.currentY = Math.max(Math.min(n.currentY, n.maxY), n.minY), 4319 t.$imageWrapEl.transition(u).transform("translate3d(" + n.currentX + "px, " + n.currentY + "px,0)"); 4320 } 4321 }, 4322 onTransitionEnd: function() { 4323 var e = this.zoom, t = e.gesture; 4324 t.$slideEl && this.previousIndex !== this.activeIndex && (t.$imageEl.transform("translate3d(0,0,0) scale(1)"), 4325 t.$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, e.currentScale = 1, 4326 t.$slideEl = void 0, t.$imageEl = void 0, t.$imageWrapEl = void 0); 4327 }, 4328 toggle: function(e) { 4329 var t = this.zoom; 4330 t.scale && 1 !== t.scale ? t.out() : t.in(e); 4331 }, 4332 in: function(e) { 4333 var t, n, r, o, s, a, l, c, u, d, h, f, p, m, g, v, b = this.zoom, y = this.params.zoom, x = b.gesture, w = b.image; 4334 x.$slideEl || (x.$slideEl = this.clickedSlide ? i(this.clickedSlide) : this.slides.eq(this.activeIndex), 4335 x.$imageEl = x.$slideEl.find("img, svg, canvas"), x.$imageWrapEl = x.$imageEl.parent("." + y.containerClass)), 4336 x.$imageEl && 0 !== x.$imageEl.length && (x.$slideEl.addClass("" + y.zoomedSlideClass), 4337 void 0 === w.touchesStart.x && e ? (t = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, 4338 n = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (t = w.touchesStart.x, 4339 n = w.touchesStart.y), b.scale = x.$imageWrapEl.attr("data-swiper-zoom") || y.maxRatio, 4340 b.currentScale = x.$imageWrapEl.attr("data-swiper-zoom") || y.maxRatio, e ? (g = x.$slideEl[0].offsetWidth, 4341 v = x.$slideEl[0].offsetHeight, r = x.$slideEl.offset().left + g / 2 - t, o = x.$slideEl.offset().top + v / 2 - n, 4342 l = x.$imageEl[0].offsetWidth, c = x.$imageEl[0].offsetHeight, u = l * b.scale, 4343 d = c * b.scale, p = -(h = Math.min(g / 2 - u / 2, 0)), m = -(f = Math.min(v / 2 - d / 2, 0)), 4344 (s = r * b.scale) < h && (s = h), s > p && (s = p), (a = o * b.scale) < f && (a = f), 4345 a > m && (a = m)) : (s = 0, a = 0), x.$imageWrapEl.transition(300).transform("translate3d(" + s + "px, " + a + "px,0)"), 4346 x.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + b.scale + ")")); 4347 }, 4348 out: function() { 4349 var e = this.zoom, t = this.params.zoom, n = e.gesture; 4350 n.$slideEl || (n.$slideEl = this.clickedSlide ? i(this.clickedSlide) : this.slides.eq(this.activeIndex), 4351 n.$imageEl = n.$slideEl.find("img, svg, canvas"), n.$imageWrapEl = n.$imageEl.parent("." + t.containerClass)), 4352 n.$imageEl && 0 !== n.$imageEl.length && (e.scale = 1, e.currentScale = 1, n.$imageWrapEl.transition(300).transform("translate3d(0,
43520,0)"), 4353 n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), n.$slideEl.removeClass("" + t.zoomedSlideClass), 4354 n.$slideEl = void 0); 4355 }, 4356 enable: function() { 4357 var e = this.zoom; 4358 if (!e.enabled) { 4359 e.enabled = !0; 4360 var t = !("touchstart" !== this.touchEvents.start || !u.passiveListener || !this.params.passiveListeners) && { 4361 passive: !0, 4362 capture: !1 4363 }; 4364 u.gestures ? (this.$wrapperEl.on("gesturestart", ".swiper-slide", e.onGestureStart, t), 4365 this.$wrapperEl.on("gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.on("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.on(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t), 4366 this.$wrapperEl.on(this.touchEvents.move, ".swiper-slide", e.onGestureChange, t), 4367 this.$wrapperEl.on(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t)), this.$wrapperEl.on(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove); 4368 } 4369 }, 4370 disable: function() { 4371 var e = this.zoom; 4372 if (e.enabled) { 4373 this.zoom.enabled = !1; 4374 var t = !("touchstart" !== this.touchEvents.start || !u.passiveListener || !this.params.passiveListeners) && { 4375 passive: !0, 4376 capture: !1 4377 }; 4378 u.gestures ? (this.$wrapperEl.off("gesturestart", ".swiper-slide", e.onGestureStart, t), 4379 this.$wrapperEl.off("gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.off("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.off(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t), 4380 this.$wrapperEl.off(this.touchEvents.move, ".swiper-slide", e.onGestureChange, t), 4381 this.$wrapperEl.off(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t)), 4382 this.$wrapperEl.off(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove); 4383 } 4384 } 4385 }, G = { 4386 loadInSlide: function(e, t) { 4387 void 0 === t && (t = !0); 4388 var n = this, r = n.params.lazy; 4389 if (void 0 !== e && 0 !== n.slides.length) { 4390 var o = n.virtual && n.params.virtual.enabled ? n.$wrapperEl.children("." + n.params.slideClass + '[data-swiper-slide-index="' + e + '"]') : n.slides.eq(e), s = o.find("." + r.elementClass + ":not(." + r.loadedClass + "):not(." + r.loadingClass + ")"); 4391 !o.hasClass(r.elementClass) || o.hasClass(r.loadedClass) || o.hasClass(r.loadingClass) || (s = s.add(o[0])), 4392 0 !== s.length && s.each((function(e, s) { 4393 var a = i(s); 4394 a.addClass(r.loadingClass); 4395 var l = a.attr("data-background"), c = a.attr("data-src"), u = a.attr("data-srcset"), d = a.attr("data-sizes"); 4396 n.loadImage(a[0], c || l, u, d, !1, (function() { 4397 if (null != n && n && (!n || n.params) && !n.destroyed) { 4398 if (l ? (a.css("background-image", 'url("' + l + '")'), a.removeAttr("data-background")) : (u && (a.attr("srcset", u), 4399 a.removeAttr("data-srcset")), d && (a.attr("sizes", d), a.removeAttr("data-sizes")), 4400 c && (a.attr("src", c), a.removeAttr("data-src"))), a.addClass(r.loadedClass).removeClass(r.loadingClass), 4401 o.find("." + r.preloaderClass).remove(), n.params.loop && t) { 4402 var e = o.attr("data-swiper-slide-index"); 4403 if (o.hasClass(n.params.slideDuplicateClass)) { 4404 var i = n.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + n.params.slideDuplicateClass + ")"); 4405 n.lazy.loadInSlide(i.index(), !1); 4406 } else { 4407 var s = n.$wrapperEl.children("." + n.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); 4408 n.lazy.loadInSlide(s.index(), !1); 4409 } 4410 } 4411 n.emit("lazyImageReady", o[0], a[0]); 4412 } 4413 })), n.emit("lazyImageLoad", o[0], a[0]); 4414 })); 4415 } 4416 }, 4417 load: function() { 4418 var e = this, t = e.$wrapperEl, n = e.params, r = e.slides, o = e.activeIndex, s = e.virtual && n.virtual.enabled, a = n.lazy, l = n.slidesPerView; 4419 function c(e) { 4420 if (s) { 4421 if (t.children("." + n.slideClass + '[data-swiper-slide-index="' + e + '"]').length) return !0; 4422 } else if (r[e]) return !0; 4423 return !1; 4424 } 4425 function u(e) { 4426 return s ? i(e).attr("data-swiper-slide-index") : i(e).index(); 4427 } 4428 if ("auto" === l && (l = 0), e.lazy.initialImageLoaded || (e.lazy.initialImageLoaded = !0), 4429 e.params.watchSlidesVisibility) t.children("." + n.slideVisibleClass).each((function(t, n) { 4430 var r = s ? i(n).attr("data-swiper-slide-index") : i(n).index(); 4431 e.lazy.loadInSlide(r); 4432 })); else if (l > 1) for (var d = o; d < o + l; d += 1) c(d) && e.lazy.loadInSlide(d); else e.lazy.loadInSlide(o); 4433 if (a.loadPrevNext) if (l > 1 || a.loadPrevNextAmount && a.loadPrevNextAmount > 1) { 4434 for (var h = a.loadPrevNextAmount, f = l, p = Math.min(o + f + Math.max(h, f), r.length), m = Math.max(o - Math.max(f, h), 0), g = o + l; g < p; g += 1) c(g) && e.lazy.loadInSlide(g); 4435 for (var v = m; v < o; v += 1) c(v) && e.lazy.loadInSlide(v); 4436 } else { 4437 var b = t.children("." + n.slideNextClass); 4438 b.length > 0 && e.lazy.loadInSlide(u(b)); 4439 var y = t.children("." + n.slidePrevClass); 4440 y.length > 0 && e.lazy.loadInSlide(u(y)); 4441 } 4442 } 4443 }, U = { 4444 LinearSpline: function(e, t) { 4445 var n, i, r, o, s, a = function(e, t) { 4446 for (i = -1, n = e.length; n - i > 1; ) e[r = n + i >> 1] <= t ? i = r : n = r; 4447 return n; 4448 }; 4449 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function(e) { 4450 return e ? (s = a(this.x, e), o = s - 1, (e - this.x[o]) * (this.y[s] - this.y[o]) / (this.x[s] - this.x[o]) + this.y[o]) : 0; 4451 }, this; 4452 }, 4453 getInterpolateFunction: function(e) { 4454 this.controller.spline || (this.controller.spline = this.params.loop ? new U.LinearSpline(this.slidesGrid, e.slidesGrid) : new U.LinearSpline(this.snapGrid, e.snapGrid)); 4455 }, 4456 setTranslate: function(e, t) { 4457 var n, i, r = this, o = r.controller.control; 4458 function s(e) { 4459 var t = r.rtlTranslate ? -r.translate : r.translate; 4460 "slide" === r.params.controller.by && (r.controller.getInterpolateFunction(e), i =
4460-r.controller.spline.interpolate(-t)), 4461 i && "container" !== r.params.controller.by || (n = (e.maxTranslate() - e.minTranslate()) / (r.maxTranslate() - r.minTranslate()), 4462 i = (t - r.minTranslate()) * n + e.minTranslate()), r.params.controller.inverse && (i = e.maxTranslate() - i), 4463 e.updateProgress(i), e.setTranslate(i, r), e.updateActiveIndex(), e.updateSlidesClasses(); 4464 } 4465 if (Array.isArray(o)) for (var a = 0; a < o.length; a += 1) o[a] !== t && o[a] instanceof O && s(o[a]); else o instanceof O && t !== o && s(o); 4466 }, 4467 setTransition: function(e, t) { 4468 var n, i = this, r = i.controller.control; 4469 function o(t) { 4470 t.setTransition(e, i), 0 !== e && (t.transitionStart(), t.params.autoHeight && c.nextTick((function() { 4471 t.updateAutoHeight(); 4472 })), t.$wrapperEl.transitionEnd((function() { 4473 r && (t.params.loop && "slide" === i.params.controller.by && t.loopFix(), t.transitionEnd()); 4474 }))); 4475 } 4476 if (Array.isArray(r)) for (n = 0; n < r.length; n += 1) r[n] !== t && r[n] instanceof O && o(r[n]); else r instanceof O && t !== r && o(r); 4477 } 4478 }, X = { 4479 name: "controller", 4480 params: { 4481 controller: { 4482 control: void 0, 4483 inverse: !1, 4484 by: "slide" 4485 } 4486 }, 4487 create: function() { 4488 c.extend(this, { 4489 controller: { 4490 control: this.params.controller.control, 4491 getInterpolateFunction: U.getInterpolateFunction.bind(this), 4492 setTranslate: U.setTranslate.bind(this), 4493 setTransition: U.setTransition.bind(this) 4494 } 4495 }); 4496 }, 4497 on: { 4498 update: function() { 4499 this.controller.control && this.controller.spline && (this.controller.spline = void 0, 4500 delete this.controller.spline); 4501 }, 4502 resize: function() { 4503 this.controller.control && this.controller.spline && (this.controller.spline = void 0, 4504 delete this.controller.spline); 4505 }, 4506 observerUpdate: function() { 4507 this.controller.control && this.controller.spline && (this.controller.spline = void 0, 4508 delete this.controller.spline); 4509 }, 4510 setTranslate: function(e, t) { 4511 this.controller.control && this.controller.setTranslate(e, t); 4512 }, 4513 setTransition: function(e, t) { 4514 this.controller.control && this.controller.setTransition(e, t); 4515 } 4516 } 4517 }, K = { 4518 makeElFocusable: function(e) { 4519 return e.attr("tabIndex", "0"), e; 4520 }, 4521 addElRole: function(e, t) { 4522 return e.attr("role", t), e; 4523 }, 4524 addElLabel: function(e, t) { 4525 return e.attr("aria-label", t), e; 4526 }, 4527 disableEl: function(e) { 4528 return e.attr("aria-disabled", !0), e; 4529 }, 4530 enableEl: function(e) { 4531 return e.attr("aria-disabled", !1), e; 4532 }, 4533 onEnterKey: function(e) { 4534 var t = this.params.a11y; 4535 if (13 === e.keyCode) { 4536 var n = i(e.target); 4537 this.navigation && this.navigation.$nextEl && n.is(this.navigation.$nextEl) && (this.isEnd && !this.params.loop || this.slideNext(), 4538 this.isEnd ? this.a11y.notify(t.lastSlideMessage) : this.a11y.notify(t.nextSlideMessage)), 4539 this.navigation && this.navigation.$prevEl && n.is(this.navigation.$prevEl) && (this.isBeg
4539inning && !this.params.loop || this.slidePrev(), 4540 this.isBeginning ? this.a11y.notify(t.firstSlideMessage) : this.a11y.notify(t.prevSlideMessage)), 4541 this.pagination && n.is("." + this.params.pagination.bulletClass) && n[0].click(); 4542 } 4543 }, 4544 notify: function(e) { 4545 var t = this.a11y.liveRegion; 4546 0 !== t.length && (t.html(""), t.html(e)); 4547 }, 4548 updateNavigation: function() { 4549 if (!this.params.loop) { 4550 var e = this.navigation, t = e.$nextEl, n = e.$prevEl; 4551 n && n.length > 0 && (this.isBeginning ? this.a11y.disableEl(n) : this.a11y.enableEl(n)), 4552 t && t.length > 0 && (this.isEnd ? this.a11y.disableEl(t) : this.a11y.enableEl(t)); 4553 } 4554 }, 4555 updatePagination: function() { 4556 var e = this, t = e.params.a11y; 4557 e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each((function(n, r) { 4558 var o = i(r); 4559 e.a11y.makeElFocusable(o), e.a11y.addElRole(o, "button"), e.a11y.addElLabel(o, t.paginationBulletMessage.replace(/{{index}}/, o.index() + 1)); 4560 })); 4561 }, 4562 init: function() { 4563 this.$el.append(this.a11y.liveRegion); 4564 var e, t, n = this.params.a11y; 4565 this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), 4566 e && (this.a11y.makeElFocusable(e), this.a11y.addElRole(e, "button"), this.a11y.addElLabel(e, n.nextSlideMessage), 4567 e.on("keydown", this.a11y.onEnterKey)), t && (this.a11y.makeElFocusable(t), this.a11y.addElRole(t, "button"), 4568 this.a11y.addElLabel(t, n.prevSlideMessage), t.on("keydown", this.a11y.onEnterKey)), 4569 this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey); 4570 }, 4571 destroy: function() { 4572 var e, t; 4573 this.a11y.liveRegion && this.a11y.liveRegion.length > 0 && this.a11y.liveRegion.remove(), 4574 this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), 4575 e && e.off("keydown", this.a11y.onEnterKey), t && t.off("keydown", this.a11y.onEnterKey), 4576 this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey); 4577 } 4578 }, Z = { 4579 init: function() { 4580 if (this.params.history) { 4581 if (!t.history || !t.history.pushState) return this.params.history.enabled = !1, 4582 void (this.params.hashNavigation.enabled = !0); 4583 var e = this.history; 4584 e.initialized = !0, e.paths = Z.getPathValues(), (e.paths.key || e.paths.value) && (e.scrollToSlide(0, e.paths.value, this.params.runCallbacksOnInit), 4585 this.params.history.replaceState || t.addEventListener("popstate", this.history.setHistoryPopState)); 4586 } 4587 }, 4588 destroy: function() { 4589 this.params.history.replaceState || t.removeEventListener("popstate", this.history.setHistoryPopState); 4590 }, 4591 setHistoryPopState: function() { 4592 this.history.paths = Z.getPathValues(), this.history.scrollToSlide(this.params.speed, this.history.paths.value, !1); 4593 }, 4594 getPathValues: function() { 4595 var e = t.location.pathname.slice(1).split("/").filter((function(e) { 4596 return "" !== e; 4597 })), n = e.length; 4598 return { 4599 key: e[n - 2], 4600 value: e[n - 1] 4601 }; 4602 }, 4603 setHistory: function(e, n) { 4604 if (this.history.initialized && this.params.history.enabled) { 4605 var i = this.slides.eq(n), r = Z.slugify(i.attr("data-history")); 4606 t.location.pathname.includes(e) || (r = e + "/" + r); 4607 var o = t.history.state; 4608 o && o.value === r || (this.params.history.replaceState ? t.history.replaceState({ 4609 value: r 4610 }, null, r) : t.history.pushState({ 4611 value: r 4612 }, null, r)); 4613 } 4614 }, 4615 slugify: function(e) { 4616 return e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""); 4617 }, 4618 scrollToSlide: function(e, t, n) { 4619 if (t) for (var i = 0, r = this.slides.length; i < r; i += 1) { 4620 var o = this.slides.eq(i); 4621 if (Z.slugify(o.attr("data-history")) === t && !o.hasClass(this.params.slideDuplicateClass)) { 4622 var s = o.index(); 4623 this.slideTo(s, e, n); 4624 } 4625 } else this.slideTo(0, e, n); 4626 } 4627 }, J = { 4628 onHashCange: function() { 4629 var t = e.location.hash.replace("#", ""); 4630 if (t !== this.slides.eq(this.activeIndex).attr("data-hash")) { 4631 var n = this.$wrapperEl.children("." + this.params.slideClass + '[data-hash="' + t + '"]').index(); 4632 if (void 0 === n) return; 4633 this.slideTo(n); 4634 } 4635 }, 4636 setHash: function() { 4637 if (this.hashNavigation.initialized && this.params.hashNavigation.enabled) if (this.params.hashNavigation.replaceState && t.history && t.history.replaceState) t.history.replaceState(null, null, "#" + this.slides.eq(this.activeIndex).attr("data-hash") || !1); else { 4638 var n = this.slides.eq(this.activeIndex), i = n.attr("data-hash") || n.attr("data-history"); 4639 e.location.hash = i || ""; 4640 } 4641 }, 4642 init: function() { 4643 if (!(!this.params.hashNavigation.enabled || this.params.history && this.params.history.enabled)) { 4644 this.hashNavigation.initialized = !0; 4645 var n = e.location.hash.replace("#", ""); 4646 if (n) for (var r = 0, o = this.slides.length; r < o; r += 1) { 4647 var s = this.slides.eq(r); 4648 if ((s.attr("data-hash") || s.attr("data-history")) === n && !s.hasClass(this.params.slideDuplicateClass)) { 4649 var a = s.index(); 4650 this.slideTo(a, 0, this.params.runCallbacksOnInit, !0); 4651 } 4652 } 4653 this.params.hashNavigation.watchState && i(t).on("hashchange", this.hashNavigation.onHashCange); 4654 } 4655 }, 4656 destroy: function() { 4657 this.params.hashNavigation.watchState && i(t).off("hashchange", this.hashNavigation.onHashCange); 4658 } 4659 }, Q = { 4660 run: function() { 4661 var e = this, t = e.slides.eq(e.activeIndex), n = e.params.autoplay.delay; 4662 t.attr("data-swiper-autoplay") && (n = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), 4663 clearTimeout(e.autoplay.timeout), e.autoplay.timeout = c.nextTick((function() { 4664 e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), e.slidePrev(e.params.speed, !0, !0), 4665 e.emit("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(e.slides.length - 1, e.params.speed, !0, !0), 4666 e.emit("autoplay")) : (e.slidePrev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopFix(), 4667 e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0), 4668 e.emit("autoplay")) : (e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")); 4669 }), n); 4670 }, 4671 start: function() { 4672 return void 0 === this.autoplay.timeout && !this.autoplay.running && (this.autoplay.running = !0,
4673 this.emit("autoplayStart"), this.autoplay.run(), !0); 4674 }, 4675 stop: function() { 4676 return !!this.autoplay.running && void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (clearTimeout(this.autoplay.timeout), 4677 this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit("autoplayStop"), 4678 !0); 4679 }, 4680 pause: function(e) { 4681 this.autoplay.running && (this.autoplay.paused || (this.autoplay.timeout && clearTimeout(this.autoplay.timeout), 4682 this.autoplay.paused = !0, 0 !== e && this.params.autoplay.waitForTransition ? (this.$wrapperEl[0].addEventListener("transitionend", this.autoplay.onTransitionEnd), 4683 this.$wrapperEl[0].addEventListener("webkitTransitionEnd", this.autoplay.onTransitionEnd)) : (this.autoplay.paused = !1, 4684 this.autoplay.run()))); 4685 } 4686 }, ee = { 4687 setTranslate: function() { 4688 for (var e = this.slides, t = 0; t < e.length; t += 1) { 4689 var n = this.slides.eq(t), i = -n[0].swiperSlideOffset; 4690 this.params.virtualTranslate || (i -= this.translate); 4691 var r = 0; 4692 this.isHorizontal() || (r = i, i = 0); 4693 var o = this.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(n[0].progress), 0) : 1 + Math.min(Math.max(n[0].progress, -1), 0); 4694 n.css({ 4695 opacity: o 4696 }).transform("translate3d(" + i + "px, " + r + "px, 0px)"); 4697 } 4698 }, 4699 setTransition: function(e) { 4700 var t = this, n = t.slides, i = t.$wrapperEl; 4701 if (n.transition(e), t.params.virtualTranslate && 0 !== e) { 4702 var r = !1; 4703 n.transitionEnd((function() { 4704 if (!r && t && !t.destroyed) { 4705 r = !0, t.animating = !1; 4706 for (var e = [ "webkitTransitionEnd", "transitionend" ], n = 0; n < e.length; n += 1) i.trigger(e[n]); 4707 } 4708 })); 4709 } 4710 } 4711 }, te = { 4712 setTranslate: function() { 4713 var e, t = this.$el, n = this.$wrapperEl, r = this.slides, o = this.width, s = this.height, a = this.rtlTranslate, l = this.size, c = this.params.cubeEffect, u = this.isHorizontal(), h = this.virtual && this.params.virtual.enabled, f = 0; 4714 c.shadow && (u ? (0 === (e = n.find(".swiper-cube-shadow")).length && (e = i('<div class="swiper-cube-shadow"></div>'), 4715 n.append(e)), e.css({ 4716 height: o + "px" 4717 })) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = i('<div class="swiper-cube-shadow"></div>'), 4718 t.append(e))); 4719 for (var p = 0; p < r.length; p += 1) { 4720 var m = r.eq(p), g = p; 4721 h && (g = parseInt(m.attr("data-swiper-slide-index"), 10)); 4722 var v = 90 * g, b = Math.floor(v / 360); 4723 a && (v = -v, b = Math.floor(-v / 360)); 4724 var y = Math.max(Math.min(m[0].progress, 1), -1), x = 0, w = 0, _ = 0; 4725 g % 4 == 0 ? (x = 4 * -b * l, _ = 0) : (g - 1) % 4 == 0 ? (x = 0, _ = 4 * -b * l) : (g - 2) % 4 == 0 ? (x = l + 4 * b * l, 4726 _ = l) : (g - 3) % 4 == 0 && (x = -l, _ = 3 * l + 4 * l * b), a && (x = -x), u || (w = x, 4727 x = 0); 4728 var S = "rotateX(" + (u ? 0 : -v) + "deg) rotateY(" + (u ? v : 0) + "deg) translate3d(" + x + "px, " + w + "px, " + _ + "px)"; 4729 if (y <= 1 && y > -1 && (f = 90 * g + 90 * y, a && (f = 90 * -g - 90 * y)), m.transform(S), 4730 c.slideShadows) { 4731 var E = u ? m.find(".swiper-slide-shadow-left") : m.find(".swiper-slide-shadow-top"), C = u ? m.find(".swiper-slide-shadow-right") : m.find(".swiper-slide-shadow-bottom"); 4732 0 === E.length && (E = i('<div class="swiper-slide-shadow-' + (u ? "left" : "top") + '"></div>'), 4733 m.append(E)), 0 === C.length && (C = i('<div class="swiper-slide-shadow-' + (u ? "right" : "bottom") + '"></div>'), 4734 m.append(C)), E.length && (E[0].style.opacity = Math.max(-y, 0)), C.length && (C[0].style.opacity = Math.max(y, 0)); 4735 } 4736 } 4737 if (n.css({ 4738 "-webkit-transform-origin": "50% 50% -" + l / 2 + "px", 4739 "-moz-transform-origin": "50% 50% -" + l / 2 + "px", 4740 "-ms-transform-origin": "50% 50% -" + l / 2 + "px", 4741 "transform-origin": "50% 50% -" + l / 2 + "px" 4742 }), c.shadow) if (u) e.transform("translate3d(0px, " + (o / 2 + c.shadowOffset) + "px, " + -o / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + c.shadowScale + ")"); else { 4743 var T = Math.abs(f) - 90 * Math.floor(Math.abs(f) / 90), k = 1.5 - (Math.sin(2 * T * Math.PI / 360) / 2 + Math.cos(2 * T * Math.PI / 360) / 2), M = c.shadowScale, A = c.shadowScale / k, O = c.shadowOffset; 4744 e.transform("scale3d(" + M + ", 1, " + A + ") translate3d(0px, " + (s / 2 + O) + "px, " + -s / 2 / A + "px) rotateX(-90deg)"); 4745 } 4746 var P = d.isSafari || d.isUiWebView ? -l / 2 : 0; 4747 n.transform("translate3d(0px,0," + P + "px) rotateX(" + (this.isHorizontal() ? 0 : f) + "deg) rotateY(" + (this.isHorizontal() ? -f : 0) + "deg)"); 4748 }, 4749 setTransition: function(e) { 4750 var t = this.$el; 4751 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), 4752 this.params.cubeEffect.shadow && !this.isHorizontal() && t.find(".swiper-cube-shadow").transition(e); 4753 } 4754 }, ne = { 4755 setTranslate: function() { 4756 for (var e = this.slides, t = this.rtlTranslate, n = 0; n < e.length; n += 1) {
4757 var r = e.eq(n), o = r[0].progress; 4758 this.params.flipEffect.limitRotation && (o = Math.max(Math.min(r[0].progress, 1), -1)); 4759 var s = -180 * o, a = 0, l = -r[0].swiperSlideOffset, c = 0; 4760 if (this.isHorizontal() ? t && (s = -s) : (c = l, l = 0, a = -s, s = 0), r[0].style.zIndex = -Math.abs(Math.round(o)) + e.length, 4761 this.params.flipEffect.slideShadows) { 4762 var u = this.isHorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"), d = this.isHorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom"); 4763 0 === u.length && (u = i('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "left" : "top") + '"></div>'), 4764 r.append(u)), 0 === d.length && (d = i('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "right" : "bottom") + '"></div>'), 4765 r.append(d)), u.length && (u[0].style.opacity = Math.max(-o, 0)), d.length && (d[0].style.opacity = Math.max(o, 0)); 4766 } 4767 r.transform("translate3d(" + l + "px, " + c + "px, 0px) rotateX(" + a + "deg) rotateY(" + s + "deg)"); 4768 } 4769 }, 4770 setTransition: function(e) { 4771 var t = this, n = t.slides, i = t.activeIndex, r = t.$wrapperEl; 4772 if (n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), 4773 t.params.virtualTranslate && 0 !== e) { 4774 var o = !1; 4775 n.eq(i).transitionEnd((function() { 4776 if (!o && t && !t.destroyed) { 4777 o = !0, t.animating = !1; 4778 for (var e = [ "webkitTransitionEnd", "transitionend" ], n = 0; n < e.length; n += 1) r.trigger(e[n]); 4779 } 4780 })); 4781 } 4782 } 4783 }, ie = { 4784 setTranslate: function() { 4785 for (var e = this.width, t = this.height, n = this.slides, r = this.$wrapperEl, o = this.slidesSizesGrid, s = this.params.coverflowEffect, a = this.isHorizontal(), l = this.translate, c = a ? e / 2 - l : t / 2 - l, d = a ? s.rotate : -s.rotate, h = s.depth, f = 0, p = n.length; f < p; f += 1) { 4786 var m = n.eq(f), g = o[f], v = (c - m[0].swiperSlideOffset - g / 2) / g * s.modifier, b = a ? d * v : 0, y = a ? 0 : d * v, x = -h * Math.abs(v), w = a ? 0 : s.stretch * v, _ = a ? s.stretch * v : 0; 4787 Math.abs(_) < .001 && (_ = 0), Math.abs(w) < .001 && (w = 0), Math.abs(x) < .001 && (x = 0), 4788 Math.abs(b) < .001 && (b = 0), Math.abs(y) < .001 && (y = 0); 4789 var S = "translate3d(" + _ + "px," + w + "px," + x + "px) rotateX(" + y + "deg) rotateY(" + b + "deg)"; 4790 if (m.transform(S), m[0].style.zIndex = 1 - Math.abs(Math.round(v)), s.slideShadows) { 4791 var E = a ? m.find(".swiper-slide-shadow-left") : m.find(".swiper-slide-shadow-top"), C = a ? m.find(".swiper-slide-shadow-right") : m.find(".swiper-slide-shadow-bottom"); 4792 0 === E.length && (E = i('<div class="swiper-slide-shadow-' + (a ? "left" : "top") + '"></div>'), 4793 m.append(E)), 0 === C.length && (C = i('<div class="swiper-slide-shadow-' + (a ? "right" : "bottom") + '"></div>'), 4794 m.append(C)), E.length && (E[0].style.opacity = v > 0 ? v : 0), C.length && (C[0].style.opacity = -v > 0 ? -v : 0); 4795 } 4796 } 4797 (u.pointerEvents || u.prefixedPointerEvents) && (r[0].style.perspectiveOrigin = c + "px 50%"); 4798 }, 4799 setTransition: function(e) { 4800 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e); 4801 } 4802 }, re = { 4803 init: function() { 4804 var e = this.params.thumbs, t = this.constructor; 4805 e.swiper instanceof t ? (this.thumbs.swiper = e.swiper, c.extend(this.thumbs.swiper.originalParams, { 4806 watchSlidesProgress: !0, 4807 slideToClickedSlide: !1 4808 }), c.extend(this.thumbs.swiper.params, { 4809 watchSlidesProgress: !0, 4810 slideToClickedSlide: !1 4811 })) : c.isObject(e.swiper) && (this.thumbs.swiper = new t(c.extend({}, e.swiper, { 4812 watchSlidesVisibility: !0, 4813 watchSlidesProgress: !0, 4814 slideToClickedSlide: !1 4815 })), this.thumbs.swiperCreated = !0), this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass), 4816 this.thumbs.swiper.on("tap", this.thumbs.onThumbClick); 4817 }, 4818 onThumbClick: function() { 4819 var e = this.thumbs.swiper; 4820 if (e) { 4821 var t = e.clickedIndex, n = e.clickedSlide;
4822 if (!(n && i(n).hasClass(this.params.thumbs.slideThumbActiveClass) || null == t)) { 4823 var r; 4824 if (r = e.params.loop ? parseInt(i(e.clickedSlide).attr("data-swiper-slide-index"), 10) : t, 4825 this.params.loop) { 4826 var o = this.activeIndex; 4827 this.slides.eq(o).hasClass(this.params.slideDuplicateClass) && (this.loopFix(), 4828 this._clientLeft = this.$wrapperEl[0].clientLeft, o = this.activeIndex); 4829 var s = this.slides.eq(o).prevAll('[data-swiper-slide-index="' + r + '"]').eq(0).index(), a = this.slides.eq(o).nextAll('[data-swiper-slide-index="' + r + '"]').eq(0).index(); 4830 r = void 0 === s ? a : void 0 === a ? s : a - o < o - s ? a : s; 4831 } 4832 this.slideTo(r); 4833 } 4834 } 4835 }, 4836 update: function(e) { 4837 var t = this.thumbs.swiper; 4838 if (t) { 4839 var n = "auto" === t.params.slidesPerView ? t.slidesPerViewDynamic() : t.params.slidesPerView; 4840 if (this.realIndex !== t.realIndex) { 4841 var i, r = t.activeIndex; 4842 if (t.params.loop) { 4843 t.slides.eq(r).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft, 4844 r = t.activeIndex); 4845 var o = t.slides.eq(r).prevAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(), s = t.slides.eq(r).nextAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(); 4846 i = void 0 === o ? s : void 0 === s ? o : s - r == r - o ? r : s - r < r - o ? s : o; 4847 } else i = this.realIndex; 4848 t.visibleSlidesIndexes && t.visibleSlidesIndexes.indexOf(i) < 0 && (t.params.centeredSlides ? i = i > r ? i - Math.floor(n / 2) + 1 : i + Math.floor(n / 2) - 1 : i > r && (i = i - n + 1), 4849 t.slideTo(i, e ? 0 : void 0)); 4850 } 4851 var a = 1, l = this.params.thumbs.slideThumbActiveClass; 4852 if (this.params.slidesPerView > 1 && !this.params.centeredSlides && (a = this.params.slidesPerView), 4853 t.slides.removeClass(l), t.params.loop || t.params.virtual) for (var c = 0; c < a; c += 1) t.$wrapperEl.children('[data-swiper-slide-index="' + (this.realIndex + c) + '"]').addClass(l); else for (var u = 0; u < a; u += 1) t.slides.eq(this.realIndex + u).addClass(l); 4854 } 4855 } 4856 }, oe = [ P, I, L, D, F, R, z, { 4857 name: "mousewheel", 4858 params: { 4859 mousewheel: { 4860 enabled: !1, 4861 releaseOnEdges: !1, 4862 invert: !1, 4863 forceToAxis: !1, 4864 sensitivity: 1, 4865 eventsTarged: "container" 4866 } 4867 }, 4868 create: function() { 4869 c.extend(this, { 4870 mousewheel: { 4871 enabled: !1, 4872 enable: H.enable.bind(this), 4873 disable: H.disable.bind(this), 4874 handle: H.handle.bind(this), 4875 handleMouseEnter: H.handleMouseEnter.bind(this), 4876 handleMouseLeave: H.handleMouseLeave.bind(this), 4877 lastScrollTime: c.now() 4878 } 4879 }); 4880 }, 4881 on: { 4882 init: function() { 4883 this.params.mousewheel.enabled && this.mousewheel.enable(); 4884 }, 4885 destroy: function() { 4886 this.mousewheel.enabled && this.mousewheel.disable(); 4887 } 4888 } 4889 }, { 4890 name: "navigation", 4891 params: { 4892 navigation: { 4893 nextEl: null, 4894 prevEl: null, 4895 hideOnClick: !1, 4896 disabledClass: "swiper-button-disabled", 4897 hiddenClass: "swiper-button-hidden", 4898 lockClass: "swiper-button-lock" 4899 } 4900 }, 4901 create: function() { 4902 c.extend(this, { 4903 navigation: { 4904 init: $.init.bind(this), 4905 update: $.update.bind(this), 4906 destroy: $.destroy.bind(this), 4907 onNextClick: $.onNextClick.bind(this), 4908 onPrevClick: $.onPrevClick.bind(this) 4909 } 4910 }); 4911 }, 4912 on: { 4913 init: function() { 4914 this.navigation.init(), this.navigation.update(); 4915 }, 4916 toEdge: function() { 4917 this.navigation.update(); 4918 }, 4919 fromEdge: function() { 4920 this.navigation.update(); 4921 }, 4922 destroy: function() { 4923 this.navigation.destroy(); 4924 }, 4925 click: function(e) { 4926 var t, n = this.navigation, r = n.$nextEl, o = n.$prevEl; 4927 !this.params.navigation.hideOnClick || i(e.target).is(o) || i(e.target).is(r) || (r ? t = r.hasClass(this.params.navigation.hiddenClass) : o && (t = o.hasClass(this.params.navigation.hiddenClass)),
4928 !0 === t ? this.emit("navigationShow", this) : this.emit("navigationHide", this), 4929 r && r.toggleClass(this.params.navigation.hiddenClass), o && o.toggleClass(this.params.navigation.hiddenClass)); 4930 } 4931 } 4932 }, { 4933 name: "pagination", 4934 params: { 4935 pagination: { 4936 el: null, 4937 bulletElement: "span", 4938 clickable: !1, 4939 hideOnClick: !1, 4940 renderBullet: null, 4941 renderProgressbar: null, 4942 renderFraction: null, 4943 renderCustom: null, 4944 progressbarOpposite: !1, 4945 type: "bullets", 4946 dynamicBullets: !1, 4947 dynamicMainBullets: 1, 4948 formatFractionCurrent: function(e) { 4949 return e; 4950 }, 4951 formatFractionTotal: function(e) { 4952 return e; 4953 }, 4954 bulletClass: "swiper-pagination-bullet", 4955 bulletActiveClass: "swiper-pagination-bullet-active", 4956 modifierClass: "swiper-pagination-", 4957 currentClass: "swiper-pagination-current", 4958 totalClass: "swiper-pagination-total", 4959 hiddenClass: "swiper-pagination-hidden", 4960 progressbarFillClass: "swiper-pagination-progressbar-fill", 4961 progressbarOppositeClass: "swiper-pagination-progressbar-opposite", 4962 clickableClass: "swiper-pagination-clickable", 4963 lockClass: "swiper-pagination-lock" 4964 } 4965 }, 4966 create: function() { 4967 c.extend(this, { 4968 pagination: { 4969 init: W.init.bind(this), 4970 render: W.render.bind(this), 4971 update: W.update.bind(this), 4972 destroy: W.destroy.bind(this), 4973 dynamicBulletIndex: 0 4974 } 4975 }); 4976 }, 4977 on: { 4978 init: function() { 4979 this.pagination.init(), this.pagination.render(), this.pagination.update(); 4980 }, 4981 activeIndexChange: function() { 4982 (this.params.loop || void 0 === this.snapIndex) && this.pagination.update(); 4983 }, 4984 snapIndexChange: function() { 4985 this.params.loop || this.pagination.update(); 4986 }, 4987 slidesLengthChange: function() { 4988 this.params.loop && (this.pagination.render(), this.pagination.update()); 4989 }, 4990 snapGridLengthChange: function() { 4991 this.params.loop || (this.pagination.render(), this.pagination.update()); 4992 }, 4993 destroy: function() { 4994 this.pagination.destroy(); 4995 }, 4996 click: function(e) { 4997 this.params.pagination.el && this.params.pagination.hideOnClick && this.pagination.$el.length > 0 && !i(e.target).hasClass(this.params.pagination.bulletClass) && (!0 === this.pagination.$el.hasClass(this.params.pagination.hiddenClass) ? this.emit("paginationShow", this) : this.emit("paginationHide", this), 4998 this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)); 4999 } 5000 } 5001 }, { 5002 name: "scrollbar", 5003 params: { 5004 scrollbar: { 5005 el: null, 5006 dragSize: "auto", 5007 hide: !1, 5008 draggable: !1, 5009 snapOnRelease: !0, 5010 lockClass: "swiper-scrollbar-lock", 5011 dragClass: "swiper-scrollbar-drag" 5012 } 5013 }, 5014 create: function() { 5015 c.extend(this, { 5016 scrollbar: { 5017 init: q.init.bind(this), 5018 destroy: q.destroy.bind(this), 5019 updateSize: q.updateSize.bind(this), 5020 setTranslate: q.setTranslate.bind(this), 5021 setTransition: q.setTransition.bind(this), 5022 enableDraggable: q.enableDraggable.bind(this), 5023 disableDraggable: q.disableDraggable.bind(this), 5024 setDragPosition: q.setDragPosition.bind(this), 5025 getPointerPosition: q.getPointerPosition.bind(this), 5026 onDragStart: q.onDragStart.bind(this), 5027 onDragMove: q.onDragMove.bind(this), 5028 onDragEnd: q.onDragEnd.bind(this), 5029 isTouched: !1, 5030 timeout: null, 5031 dragTimeout: null 5032 } 5033 }); 5034 }, 5035 on: { 5036 init: function() { 5037 this.scrollbar.init(), this.scrollbar.updateSize(), this.scrollbar.setTranslate(); 5038 }, 5039 update: function() { 5040 this.scrollbar.updateSize(); 5041 }, 5042 resize: function() { 5043 this.scrollbar.updateSize(); 5044 }, 5045 observerUpdate: function() { 5046 this.scrollbar.updateSize(); 5047 }, 5048 setTranslate: function() { 5049 this.scrollbar.setTranslate(); 5050 }, 5051 setTransition: function(e) { 5052 this.scrollbar.setTransition(e); 5053 }, 5054 destroy: function() { 5055 this.scrollbar.destroy(); 5056 } 5057 } 5058 }, { 5059 name: "parallax", 5060 params: { 5061 parallax: { 5062 enabled: !1 5063 } 5064 }, 5065 create: function() { 5066 c.extend(this, { 5067 parallax: { 5068 setTransform: V.setTransform.bind(this), 5069 setTranslate: V.setTranslate.bind(this), 5070 setTransition: V.setTransition.bind(this) 5071 } 5072 }); 5073 }, 5074 on: { 5075 beforeInit: function() { 5076 this.params.parallax.enabled && (this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !0); 5077 }, 5078 init: function() { 5079 this.params.parallax.enabled && this.parallax.setTranslate(); 5080 }, 5081 setTranslate: function() { 5082 this.params.parallax.enabled && this.parallax.setTranslate(); 5083 }, 5084 setTransition: function(e) { 5085 this.params.parallax.enabled && this.parallax.setTransition(e); 5086 } 5087 } 5088 }, { 5089 name: "zoom", 5090 params: { 5091 zoom: { 5092 enabled: !1, 5093 maxRatio: 3, 5094 minRatio: 1, 5095 toggle: !0, 5096 containerClass: "swiper-zoom-container", 5097 zoomedSlideClass: "swiper-slide-zoomed" 5098 } 5099 }, 5100 create: function() { 5101 var e = this, t = { 5102 enabled: !1, 5103 scale: 1, 5104 currentScale: 1, 5105 isScaling: !1, 5106 gesture: { 5107 $slideEl: void 0, 5108 slideWidth: void 0, 5109 slideHeight: void 0, 5110 $imageEl: void 0, 5111 $imageWrapEl: void 0, 5112 maxRatio: 3 5113 }, 5114 image: { 5115 isTouched: void 0, 5116 isMoved: void 0, 5117 currentX: void 0, 5118 currentY: void 0, 5119 minX: void 0, 5120 minY: void 0, 5121 maxX: void 0, 5122 maxY: void 0, 5123 width: void 0, 5124 height: void 0, 5125 startX: void 0, 5126 startY: void 0, 5127 touchesStart: {}, 5128 touchesCurrent: {} 5129 }, 5130 velocity: { 5131 x: void 0, 5132 y: void 0, 5133 prevPositionX: void 0, 5134 prevPositionY: void 0, 5135 prevTime: void 0 5136 } 5137 }; 5138 "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(n) { 5139 t[n] = Y[n].bind(e); 5140 })), c.extend(e, { 5141 zoom: t 5142 }); 5143 var n = 1; 5144 Object.defineProperty(e.zoom, "scale", { 5145 get: function() { 5146 return n; 5147 }, 5148 set: function(t) { 5149 if (n !== t) { 5150 var i = e.zoom.gesture.$imageEl ? e.zoom.gesture.$imageEl[0] : void 0, r = e.zoom.gesture.$slideEl ? e.zoom.gesture.$slideEl[0] : void 0; 5151 e.emit("zoomChange", t, i, r); 5152 } 5153 n = t; 5154 } 5155 }); 5156 }, 5157 on: { 5158 init: function() { 5159 this.params.zoom.enabled && this.zoom.enable(); 5160 }, 5161 destroy: function() { 5162 this.zoom.disable(); 5163 }, 5164 touchStart: function(e) { 5165 this.zoom.enabled && this.zoom.onTouchStart(e); 5166 }, 5167 touchEnd: function(e) { 5168 this.zoom.enabled && this.zoom.onTouchEnd(e); 5169 }, 5170 doubleTap: function(e) { 5171 this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e); 5172 }, 5173 transitionEnd: function() { 5174 this.zoom.enabled && this.params.zoom.enabled && this.zoom.onTransitionEnd(); 5175 } 5176 } 5177 }, { 5178 name: "lazy", 5179 params: { 5180 lazy: { 5181 enabled: !1, 5182 loadPrevNext: !1, 5183 loadPrevNextAmount: 1, 5184 loadOnTransitionStart: !1, 5185 elementClass: "swiper-lazy", 5186 loadingClass: "swiper-lazy-loading", 5187 loadedClass: "swiper-lazy-loaded", 5188 preloaderClass: "swiper-lazy-preloader" 5189 } 5190 }, 5191 create: function() { 5192 c.extend(this, { 5193 lazy: { 5194 initialImageLoaded: !1, 5195 load: G.load.bind(this), 5196 loadInSlide: G.loadInSlide.bind(this) 5197 } 5198 }); 5199 }, 5200 on: { 5201 beforeInit: function() { 5202 this.params.lazy.enabled && this.params.preloadImages && (this.params.preloadImages = !1); 5203 }, 5204 init: function() { 5205 this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialSlide && this.lazy.load(); 5206 }, 5207 scroll: function() { 5208 this.params.freeMode && !this.params.freeModeSticky && this.lazy.load(); 5209 }, 5210 resize: function() { 5211 this.params.lazy.enabled && this.lazy.load(); 5212 }, 5213 scrollbarDragMove: function() { 5214 this.params.lazy.enabled && this.lazy.load(); 5215 }, 5216 transitionStart: function() { 5217 this.params.lazy.enabled && (this.params.lazy.loadOnTransitionStart || !this.params.lazy.loadOnTransitionStart && !this.lazy.initialImageLoaded) && this.lazy.load(); 5218 }, 5219 transitionEnd: function() { 5220 this.params.lazy.enabled && !this.params.lazy.loadOnTransitionStart && this.lazy.load(); 5221 } 5222 } 5223 }, X, { 5224 name: "a11y", 5225 params: { 5226 a11y: { 5227 enabled: !0, 5228 notificationClass: "swiper-notification", 5229 prevSlideMessage: "Previous slide", 5230 nextSlideMessage: "Next slide", 5231 firstSlideMessage: "This is the first slide", 5232 lastSlideMessage: "This is the last slide", 5233 paginationBulletMessage: "Go to slide {{index}}" 5234 } 5235 }, 5236 create: function() { 5237 var e = this; 5238 c.extend(e, { 5239 a11y: { 5240 liveRegion: i('<span class="' + e.params.a11y.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>') 5241 } 5242 }
5242), Object.keys(K).forEach((function(t) { 5243 e.a11y[t] = K[t].bind(e); 5244 })); 5245 }, 5246 on: { 5247 init: function() { 5248 this.params.a11y.enabled && (this.a11y.init(), this.a11y.updateNavigation()); 5249 }, 5250 toEdge: function() { 5251 this.params.a11y.enabled && this.a11y.updateNavigation(); 5252 }, 5253 fromEdge: function() { 5254 this.params.a11y.enabled && this.a11y.updateNavigation(); 5255 }, 5256 paginationUpdate: function() { 5257 this.params.a11y.enabled && this.a11y.updatePagination(); 5258 }, 5259 destroy: function() { 5260 this.params.a11y.enabled && this.a11y.destroy(); 5261 } 5262 } 5263 }, { 5264 name: "history", 5265 params: { 5266 history: { 5267 enabled: !1, 5268 replaceState: !1, 5269 key: "slides" 5270 } 5271 }, 5272 create: function() { 5273 c.extend(this, { 5274 history: { 5275 init: Z.init.bind(this), 5276 setHistory: Z.setHistory.bind(this), 5277 setHistoryPopState: Z.setHistoryPopState.bind(this), 5278 scrollToSlide: Z.scrollToSlide.bind(this), 5279 destroy: Z.destroy.bind(this) 5280 } 5281 }); 5282 }, 5283 on: { 5284 init: function() { 5285 this.params.history.enabled && this.history.init(); 5286 }, 5287 destroy: function() { 5288 this.params.history.enabled && this.history.destroy(); 5289 }, 5290 transitionEnd: function() { 5291 this.history.initialized && this.history.setHistory(this.params.history.key, this.activeIndex); 5292 } 5293 } 5294 }, { 5295 name: "hash-navigation", 5296 params: { 5297 hashNavigation: { 5298 enabled: !1, 5299 replaceState: !1, 5300 watchState: !1 5301 } 5302 }, 5303 create: function() { 5304 c.extend(this, { 5305 hashNavigation: { 5306 initialized: !1, 5307 init: J.init.bind(this),
5308 destroy: J.destroy.bind(this), 5309 setHash: J.setHash.bind(this), 5310 onHashCange: J.onHashCange.bind(this) 5311 } 5312 }); 5313 }, 5314 on: { 5315 init: function() { 5316 this.params.hashNavigation.enabled && this.hashNavigation.init(); 5317 }, 5318 destroy: function() { 5319 this.params.hashNavigation.enabled && this.hashNavigation.destroy(); 5320 }, 5321 transitionEnd: function() { 5322 this.hashNavigation.initialized && this.hashNavigation.setHash(); 5323 } 5324 } 5325 }, { 5326 name: "autoplay", 5327 params: { 5328 autoplay: { 5329 enabled: !1, 5330 delay: 3e3, 5331 waitForTransition: !0, 5332 disableOnInteraction: !0, 5333 stopOnLastSlide: !1, 5334 reverseDirection: !1 5335 } 5336 }, 5337 create: function() { 5338 var e = this; 5339 c.extend(e, { 5340 autoplay: { 5341 running: !1, 5342 paused: !1, 5343 run: Q.run.bind(e), 5344 start: Q.start.bind(e), 5345 stop: Q.stop.bind(e), 5346 pause: Q.pause.bind(e), 5347 onTransitionEnd: function(t) { 5348 e && !e.destroyed && e.$wrapperEl && t.target === this && (e.$wrapperEl[0].removeEventListener("transitionend", e.autoplay.onTransitionEnd), 5349 e.$wrapperEl[0].removeEventListener("webkitTransitionEnd", e.autoplay.onTransitionEnd), 5350 e.autoplay.paused = !1, e.autoplay.running ? e.autoplay.run() : e.autoplay.stop()); 5351 } 5352 } 5353 }); 5354 }, 5355 on: { 5356 init: function() { 5357 this.params.autoplay.enabled && this.autoplay.start(); 5358 }, 5359 beforeTransitionStart: function(e, t) { 5360 this.autoplay.running && (t || !this.params.autoplay.disableOnInteraction ? this.autoplay.pause(e) : this.autoplay.stop()); 5361 }, 5362 sliderFirstMove: function() { 5363 this.autoplay.running && (this.params.autoplay.disableOnInteraction ? this.autoplay.stop() : this.autoplay.pause()); 5364 }, 5365 destroy: function() { 5366 this.autoplay.running && this.autoplay.stop(); 5367 } 5368 } 5369 }, { 5370 name: "effect-fade", 5371 params: { 5372 fadeEffect: { 5373 crossFade: !1 5374 } 5375 }, 5376 create: function() { 5377 c.extend(this, { 5378 fadeEffect: { 5379 setTranslate: ee.setTranslate.bind(this), 5380 setTransition: ee.setTransition.bind(this) 5381 } 5382 }); 5383 }, 5384 on: { 5385 beforeInit: function() { 5386 if ("fade" === this.params.effect) { 5387 this.classNames.push(this.params.containerModifierClass + "fade"); 5388 var e = { 5389 slidesPerView: 1, 5390 slidesPerColumn: 1, 5391 slidesPerGroup: 1, 5392 watchSlidesProgress: !0, 5393 spaceBetween: 0, 5394 virtualTranslate: !0 5395 }; 5396 c.extend(this.params, e), c.extend(this.originalParams, e); 5397 } 5398 }, 5399 setTranslate: function() { 5400 "fade" === this.params.effect && this.fadeEffect.setTranslate(); 5401 }, 5402 setTransition: function(e) { 5403 "fade" === this.params.effect && this.fadeEffect.setTransition(e); 5404 } 5405 } 5406 }, { 5407 name: "effect-cube", 5408 params: { 5409 cubeEffect: { 5410 slideShadows: !0, 5411 shadow: !0, 5412 shadowOffset: 20, 5413 shadowScale: .94 5414 } 5415 }, 5416 create: function() { 5417 c.extend(this, { 5418 cubeEffect: { 5419 setTranslate: te.setTranslate.bind(this), 5420 setTransition: te.setTransition.bind(this) 5421 } 5422 }); 5423 }, 5424 on: { 5425 beforeInit: function() { 5426 if ("cube" === this.params.effect) { 5427 this.classNames.push(this.params.containerModifierClass + "cube"), this.classNames.push(this.params.containerModifierClass + "3d"); 5428 var e = { 5429 slidesPerView: 1, 5430 slidesPerColumn: 1, 5431 slidesPerGroup: 1, 5432 watchSlidesProgress: !0, 5433 resistanceRatio: 0, 5434 spaceBetween: 0, 5435 centeredSlides: !1, 5436 virtualTranslate: !0 5437 }; 5438 c.extend(this.params, e), c.extend(this.originalParams, e); 5439 } 5440 }, 5441 setTranslate: function() { 5442 "cube" === this.params.effect && this.cubeEffect.setTranslate(); 5443 }, 5444 setTransition: function(e) { 5445 "cube" === this.params.effect && this.cubeEffect.setTransition(e); 5446 } 5447 } 5448 }, { 5449 name: "effect-flip", 5450 params: { 5451 flipEffect: { 5452 slideShadows: !0, 5453 limitRotation: !0 5454 } 5455 }, 5456 create: function() { 5457 c.extend(this, { 5458 flipEffect: { 5459 setTranslate: ne.setTranslate.bind(this), 5460 setTransition: ne.setTransition.bind(this) 5461 } 5462 }); 5463 }, 5464 on: { 5465 beforeInit: function() { 5466 if ("flip" === this.params.effect) { 5467 this.classNames.push(this.params.containerModifierClass + "flip"), this.classNames.push(this.params.containerModifierClass + "3d"); 5468 var e = { 5469 slidesPerView: 1, 5470 slidesPerColumn: 1, 5471 slidesPerGroup: 1, 5472 watchSlidesProgress: !0, 5473 spaceBetween: 0, 5474 virtualTranslate: !0 5475 }; 5476 c.extend(this.params, e), c.extend(this.originalParams, e); 5477 } 5478 }, 5479 setTranslate: function() { 5480 "flip" === this.params.effect && this.flipEffect.setTranslate(); 5481 }, 5482 setTransition: function(e) { 5483 "flip" === this.params.effect && this.flipEffect.setTransition(e); 5484 } 5485 } 5486 }, { 5487 name: "effect-coverflow", 5488 params: { 5489 coverflowEffect: { 5490 rotate: 50, 5491 stretch: 0, 5492 depth: 100, 5493 modifier: 1, 5494 slideShadows: !0 5495 } 5496 }, 5497 create: function() { 5498 c.extend(this, { 5499 coverflowEffect: { 5500 setTranslate: ie.setTranslate.bind(this), 5501 setTransition: ie.setTransition.bind(this) 5502 } 5503 }); 5504 }, 5505 on: { 5506 beforeInit: function() { 5507 "coverflow" === this.params.effect && (this.classNames.push(this.params.containerModifierClass + "coverflow"), 5508 this.classNames.push(this.params.containerModifierClass + "3d"), this.params.watchSlidesProgress = !0, 5509 this.originalParams.watchSlidesProgress = !0); 5510 }, 5511 setTranslate: function() { 5512 "coverflow" === this.params.effect && this.coverflowEffect.setTranslate(); 5513 }, 5514 setTransition: function(e) { 5515 "coverflow" === this.params.effect && this.coverflowEffect.setTransition(e); 5516 } 5517 } 5518 }, { 5519 name: "thumbs", 5520 params: { 5521 thumbs: { 5522 swiper: null, 5523 slideThumbActiveClass: "swiper-slide-thumb-active", 5524 thumbsContainerClass: "swiper-container-thumbs" 5525 } 5526 }, 5527 create: function() { 5528 c.extend(this, { 5529 thumbs: { 5530 swiper: null, 5531 init: re.init.bind(this), 5532 update: re.update.bind(this), 5533 onThumbClick: re.onThumbClick.bind(this) 5534 } 5535 }); 5536 }, 5537 on: { 5538 beforeInit: function() { 5539 var e = this.params.thumbs; 5540 e && e.swiper && (this.thumbs.init(), this.thumbs.update(!0)); 5541 }, 5542 slideChange: function() { 5543 this.thumbs.swiper && this.thumbs.update(); 5544 }, 5545 update: function() { 5546 this.thumbs.swiper && this.thumbs.update(); 5547 }, 5548 resize: function() { 5549 this.thumbs.swiper && this.thumbs.update(); 5550 }, 5551 observerUpdate: function() { 5552 this.thumbs.swiper && this.thumbs.update(); 5553 }, 5554 setTransition: function(e) { 5555 var t = this.thumbs.swiper; 5556 t && t.setTransition(e); 5557 }, 5558 beforeDestroy: function() { 5559 var e = this.thumbs.swiper; 5560 e && this.thumbs.swiperCreated && e && e.destroy(); 5561 } 5562 } 5563 } ]; 5564 return void 0 === O.use && (O.use = O.Class.use, O.installModule = O.Class.installModule), 5565 O.use(oe), O; 5566 }(); 5567 }, , , , , , , , function(e, t, n) { 5568 var i = n(67); 5569 e.exports = Object("z").propertyIsEnumerable(0) ? Object : function(e) { 5570 return "String" == i(e) ? e.split("") : Object(e); 5571 }; 5572 }, function(e, t) { 5573 t.f = {}.propertyIsEnumerable; 5574 }, function(e, t, n) { 5575 var i = n(67), r = n(21)("toStringTag"), o = "Arguments" == i(function() { 5576 return arguments; 5577 }()); 5578 e.exports = function(e) { 5579 var t, n, s; 5580 return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (n = function(e, t) { 5581 try { 5582 return e[t]; 5583 } catch (e) {} 5584 }(t = Object(e), r)) ? n : o ? i(t) : "Object" == (s = i(t)) && "function" == typeof t.callee ? "Arguments" : s; 5585 }; 5586 }, function(e, t, n) { 5587 var i = n(15), r = n(56), o = n(21)("species"); 5588 e.exports = function(e, t) { 5589 var n, s = i(e).constructor; 5590 return void 0 === s || null == (n = i(s)[o]) ? t : r(n); 5591 }; 5592 }, function(e, t, n) { 5593 "use strict"; 5594 Object.defineProperty(t, "__esModule", { 5595 value: !0 5596 }), t.default = function(e) { 5597 return (0, o.default)(e).defaultView || window; 5598 }; 5599 var i, r = n(35), o = (i = r) && i.__esModule ? i : { 5600 default: i 5601 }; 5602 e.exports = t.default; 5603 }, function(e, t, n) { 5604 "use strict"; 5605 Object.defineProperty(t, "__esModule", { 5606 value: !0 5607 }), t.default = function(e, t) { 5608 r || function(e) { 5609 i.some((function(t) { 5610 return !!e[t] && (r = t, !0); 5611 })); 5612 }(e); 5613 return e[r](t); 5614 }; 5615 var i = [ "matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector" ], r = null; 5616 e.exports = t.default; 5617 }, function(e, t, n) { 5618 "use strict"; 5619 Object.defineProperty(t, "__esModule", { 5620 value: !0 5621 }), t.default = function(e, t) { 5622 if (e.findIndex) return e.findIndex(t); 5623 var n = e.length; 5624 if (0 === n) return -1; 5625 for (var i = 0; i < n; i++) if (t(e[i], i, e)) return i; 5626 return -1; 5627 }, e.exports = t.default; 5628 }, function(e, t, n) { 5629 "use strict"; 5630 Object.defineProperty(t, "__esModule", { 5631 value: !0 5632 }), t.default = function(e) { 5633 if ("string" != typeof s) { 5634 var t = (0, o.default)(); 5635 t && (s = ", html " + t + " "); 5636 } 5637 return s ? e + s + e.replace(/\s*,\s*/g, ",").split(",").join(s) : e; 5638 }; 5639 var i, r = n(168), o = (i = r) && i.__esModule ? i : { 5640 default: i 5641 }; 5642 var s = void 0; 5643 e.exports = t.default; 5644 }, function(e, t, n) { 5645 "use strict"; 5646 Object.defineProperty(t, "__esModule", { 5647 value: !0 5648 }), t.default = function() { 5649 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.list, n = e.elements, i = e.resolveElement, s = t.slice(0), c = (0, 5650 r.default)(n).slice(0); 5651 (0, o.default)(c); 5652 var u = a(s, c, i); 5653 return l(s, u), s; 5654 }; 5655 var i = s(n(136)), r = s(n(34)), o = s(n(330)); 5656 function s(e) {
5657 return e && e.__esModule ? e : { 5658 default: e 5659 }; 5660 } 5661 function a(e, t, n) { 5662 var o = []; 5663 return t.forEach((function(t) { 5664 var s = !0, a = e.indexOf(t); 5665 -1 === a && (a = function(e, t) { 5666 return (0, i.default)(e, (function(e) { 5667 return t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING; 5668 })); 5669 }(e, t), s = !1), -1 === a && (a = e.length); 5670 var l = (0, r.default)(n ? n(t) : t); 5671 l.length && o.push({ 5672 offset: a, 5673 replace: s, 5674 elements: l 5675 }); 5676 })), o; 5677 } 5678 function l(e, t) { 5679 var n = 0; 5680 t.sort((function(e, t) { 5681 return e.offset - t.offset; 5682 })), t.forEach((function(t) { 5683 var i = t.replace ? 1 : 0, r = [ t.offset + n, i ].concat(t.elements); 5684 e.splice.apply(e, r), n += t.elements.length - i; 5685 })); 5686 } 5687 e.exports = t.default; 5688 }, function(e, t, n) { 5689 "use strict"; 5690 Object.defineProperty(t, "__esModule", { 5691 value: !0 5692 }); 5693 var i = o(n(140)), r = o(n(78)); 5694 function o(e) { 5695 return e && e.__esModule ? e : { 5696 default: e 5697 }; 5698 } 5699 var s, a, l, c, u, d, h = void 0, f = void 0; 5700 "undefined" != typeof document && document.documentElement.createShadowRoot ? (s = void 0, 5701 a = void 0, l = function() { 5702 c(), (window.clearImmediate || window.clearTimeout)(s), s = (window.setImmediate || window.setTimeout)((function() { 5703 u(); 5704 })); 5705 }, c = function() { 5706 a && a.removeEventListener("blur", l, !0), a = null; 5707 }, u = function() { 5708 var e = (0, i.default)(); 5709 if (1 !== e.length) { 5710 var t; 5711 (t = e[0]).addEventListener("blur", l, !0), a = t; 5712 var n = new CustomEvent("shadow-focus", { 5713 bubbles: !1, 5714 cancelable: !1, 5715 detail: { 5716 elements: e, 5717 active: e[0], 5718 hosts: e.slice(1) 5719 } 5720 }); 5721 document.dispatchEvent(n); 5722 } else c(); 5723 }, d = function() { 5724 (window.clearImmediate || window.clearTimeout)(s), u(); 5725 }, h = function() { 5726 document.addEventListener("focus", d, !0); 5727 }, f = function() { 5728 (window.clearImmediate || window.clearTimeout)(s), a && a.removeEventListener("blur", l, !0), 5729 document.removeEventListener("focus", d, !0); 5730 }) : h = f = function() {}, t.default = (0, r.default)({ 5731 engage: h, 5732 disengage: f 5733 }), e.exports = t.default; 5734 }, function(e, t, n) { 5735 "use strict"; 5736 Object.defineProperty(t, "__esModule", { 5737 value: !0 5738 }), t.default = function() { 5739 return null === document.activeElement && document.body.focus(), (0, i.default)(document.activeElement) ? (e = (0, 5740 r.default)({ 5741 context: document.activeElement 5742 }), [ document.activeElement ].concat(e)) : function() { 5743 var e = [ document.activeElement ]; 5744 for (;e[0] && e[0].shadowRoot; ) e.unshift(e[0].shadowRoot.activeElement); 5745 return e; 5746 }(); 5747 var e; 5748 }; 5749 var i = o(n(180)), r = o(n(181)); 5750 function o(e) { 5751 return e && e.__esModule ? e : { 5752 default: e 5753 }; 5754 } 5755 e.exports = t.default; 5756 }, function(e, t, n) { 5757 "use strict"; 5758 Object.defineProperty(t, "__esModule", { 5759 value: !0 5760 }), t.default = function() { 5761 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.engage, n = e.disengage, i = { 5762 engage: t || l, 5763 disengage: n || l, 5764 context: null 5765 }; 5766 return a.bind(i); 5767 }; 5768 var i, r = n(34), o = (i = r) && i.__esModule ? i : { 5769 default: i 5770 }; 5771 function s() {
5772 this.context && (this.context.forEach(this.disengage), this.context = null, this.engage = null, 5773 this.disengage = null); 5774 } 5775 function a() { 5776 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context; 5777 return this.context = (0, o.default)(t || document), this.context.forEach(this.engage), 5778 { 5779 disengage: s.bind(this) 5780 }; 5781 } 5782 function l() {} 5783 e.exports = t.default; 5784 }, , , , , , , function(e, t, n) { 5785 var i = n(24), r = n(13), o = r["__core-js_shared__"] || (r["__core-js_shared__"] = {}); 5786 (e.exports = function(e, t) { 5787 return o[e] || (o[e] = void 0 !== t ? t : {}); 5788 })("versions", []).push({ 5789 version: i.version, 5790 mode: n(88) ? "pure" : "global", 5791 copyright: "© 2020 Denis Pushkarev (zloirock.ru)" 5792 }); 5793 }, function(e, t, n) { 5794 var i = n(47), r = n(22), o = n(90); 5795 e.exports = function(e) { 5796 return function(t, n, s) { 5797 var a, l = i(t), c = r(l.length), u = o(s, c); 5798 if (e && n != n) { 5799 for (;c > u; ) if ((a = l[u++]) != a) return !0; 5800 } else for (;c > u; u++) if ((e || u in l) && l[u] === n) return e || u || 0; 5801 return !e && -1; 5802 }; 5803 }; 5804 }, function(e, t) { 5805 t.f = Object.getOwnPropertySymbols; 5806 }, function(e, t, n) { 5807 var i = n(67); 5808 e.exports = Array.isArray || function(e) { 5809 return "Array" == i(e); 5810 }; 5811 }, function(e, t, n) { 5812 var i = n(21)("iterator"), r = !1; 5813 try { 5814 var o = [ 7 ][i](); 5815 o.return = function() { 5816 r = !0; 5817 }, Array.from(o, (function() { 5818 throw 2; 5819 })); 5820 } catch (e) {} 5821 e.exports = function(e, t) { 5822 if (!t && !r) return !1; 5823 var n = !1; 5824 try { 5825 var o = [ 7 ], s = o[i](); 5826 s.next = function() { 5827 return { 5828 done: n = !0 5829 }; 5830 }, o[i] = function() { 5831 return s; 5832 }, e(o); 5833 } catch (e) {} 5834 return n; 5835 }; 5836 }, function(e, t, n) { 5837 "use strict"; 5838 var i = n(15); 5839 e.exports = function() { 5840 var e = i(this), t = ""; 5841 return e.global && (t += "g"), e.ignoreCase && (t += "i"), e.multiline && (t += "m"), 5842 e.unicode && (t += "u"), e.sticky && (t += "y"), t; 5843 }; 5844 }, function(e, t, n) { 5845 "use strict"; 5846 var i = n(132), r = RegExp.prototype.exec; 5847 e.exports = function(e, t) { 5848 var n = e.exec; 5849 if ("function" == typeof n) { 5850 var o = n.call(e, t); 5851 if ("object" != typeof o) throw new TypeError("RegExp exec method returned something other than an Object or null"); 5852 return o; 5853 } 5854 if ("RegExp" !== i(e)) throw new TypeError("RegExp#exec called on incompatible receiver"); 5855 return r.call(e, t); 5856 }; 5857 }, function(e, t, n) { 5858 "use strict"; 5859 n(265); 5860 var i = n(39), r = n(46), o = n(14), s = n(68), a = n(21), l = n(216), c = a("species"), u = !o((function() { 5861 var e = /./; 5862 return e.exec = function() { 5863 var e = []; 5864 return e.groups = { 5865 a: "7" 5866 }, e; 5867 }, "7" !== "".replace(e, "$<a>"); 5868 })), d = function() { 5869 var e = /(?:)/, t = e.exec; 5870 e.exec = function() { 5871 return t.apply(this, arguments); 5872 }; 5873 var n = "ab".split(e); 5874 return 2 === n.length && "a" === n[0] && "b" === n[1]; 5875 }(); 5876 e.exports = function(e, t, n) { 5877 var h = a(e), f = !o((function() { 5878 var t = {}; 5879 return t[h] = function() { 5880 return 7; 5881 }, 7 != ""[e](t); 5882 }
5882)), p = f ? !o((function() { 5883 var t = !1, n = /a/; 5884 return n.exec = function() { 5885 return t = !0, null; 5886 }, "split" === e && (n.constructor = {}, n.constructor[c] = function() { 5887 return n; 5888 }), n[h](""), !t; 5889 })) : void 0; 5890 if (!f || !p || "replace" === e && !u || "split" === e && !d) { 5891 var m = /./[h], g = n(s, h, ""[e], (function(e, t, n, i, r) { 5892 return t.exec === l ? f && !r ? { 5893 done: !0, 5894 value: m.call(t, n, i) 5895 } : { 5896 done: !0, 5897 value: e.call(n, t, i) 5898 } : { 5899 done: !1 5900 }; 5901 })), v = g[0], b = g[1]; 5902 i(String.prototype, e, v), r(RegExp.prototype, h, 2 == t ? function(e, t) { 5903 return b.call(e, this, t); 5904 } : function(e) { 5905 return b.call(e, this); 5906 }); 5907 } 5908 }; 5909 }, function(e, t, n) { 5910 var i = n(55), r = n(260), o = n(211), s = n(15), a = n(22), l = n(213), c = {}, u = {}; 5911 (t = e.exports = function(e, t, n, d, h) { 5912 var f, p, m, g, v = h ? function() { 5913 return e; 5914 } : l(e), b = i(n, d, t ? 2 : 1), y = 0; 5915 if ("function" != typeof v) throw TypeError(e + " is not iterable!"); 5916 if (o(v)) { 5917 for (f = a(e.length); f > y; y++) if ((g = t ? b(s(p = e[y])[0], p[1]) : b(e[y])) === c || g === u) return g; 5918 } else for (m = v.call(e); !(p = m.next()).done; ) if ((g = r(m, b, p.value, t)) === c || g === u) return g; 5919 }).BREAK = c, t.RETURN = u; 5920 }, function(e, t, n) { 5921 var i = n(13).navigator; 5922 e.exports = i && i.userAgent || ""; 5923 }, function(e, t, n) { 5924 "use strict"; 5925 var i = n(13), r = n(1), o = n(39), s = n(121), a = n(74), l = n(156), c = n(120), u = n(16), d = n(14), h = n(152), f = n(116), p = n(202); 5926 e.exports = function(e, t, n, m, g, v) { 5927 var b = i[e], y = b, x = g ? "set" : "add", w = y && y.prototype, _ = {}, S = function(e) { 5928 var t = w[e]; 5929 o(w, e, "delete" == e || "has" == e ? function(e) { 5930 return !(v && !u(e)) && t.call(this, 0 === e ? 0 : e); 5931 } : "get" == e ? function(e) { 5932 return v && !u(e) ? void 0 : t.call(this, 0 === e ? 0 : e); 5933 } : "add" == e ? function(e) { 5934 return t.call(this, 0 === e ? 0 : e), this; 5935 } : function(e, n) { 5936 return t.call(this, 0 === e ? 0 : e, n), this; 5937 }); 5938 }; 5939 if ("function" == typeof y && (v || w.forEach && !d((function() { 5940 (new y).entries().next(); 5941 })))) { 5942 var E = new y, C = E[x](v ? {} : -0, 1) != E, T = d((function() { 5943 E.has(1); 5944 })), k = h((function(e) { 5945 new y(e); 5946 })), M = !v && d((function() { 5947 for (var e = new y, t = 5; t--; ) e[x](t, t); 5948 return !e.has(-0); 5949 })); 5950 k || ((y = t((function(t, n) { 5951 c(t, y, e); 5952 var i = p(new b, t, y); 5953 return null != n && l(n, g, i[x], i), i; 5954 }))).prototype = w, w.constructor = y), (T || M) && (S("delete"), S("has"), g && S("get")), 5955 (M || C) && S(x), v && w.clear && delete w.clear; 5956 } else y = m.getConstructor(t, e, g, x), s(y.prototype, n), a.NEED = !0; 5957 return f(y, e), _[e] = y, r(r.G + r.W + r.F * (y != b), _), v || m.setStrong(y, e, g), 5958 y; 5959 }; 5960 }, function(e, t, n) { 5961 for (var i, r = n(13), o = n(46), s = n(87), a = s("typed_array"), l = s("view"), c = !(!r.ArrayBuffer || !r.DataView), u = c, d = 0, h = "Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(","); d < 9; ) (i = r[h[d++]]) ? (o(i.prototype, a, !0), 5962 o(i.prototype, l, !0)) : u = !1; 5963 e.exports = { 5964 ABV: c, 5965 CONSTR: u, 5966 TYPED: a, 5967 VIEW: l 5968 }; 5969 }, function(e, t, n) { 5970 !function(t, n) { 5971 var i = function(e, t, n) { 5972 "use strict"; 5973 var i, r; 5974 if (function() { 5975 var t, n = { 5976 lazyClass: "lazyload", 5977 loadedClass: "lazyloaded", 5978 loadingClass: "lazyloading", 5979 preloadClass: "lazypreload", 5980 errorClass: "lazyerror", 5981 autosizesClass: "lazyautosizes",
5982 fastLoadedClass: "ls-is-cached", 5983 iframeLoadMode: 0, 5984 srcAttr: "data-src", 5985 srcsetAttr: "data-srcset", 5986 sizesAttr: "data-sizes", 5987 minSize: 40, 5988 customMedia: {}, 5989 init: !0, 5990 expFactor: 1.5, 5991 hFac: .8, 5992 loadMode: 2, 5993 loadHidden: !0, 5994 ricTimeout: 0, 5995 throttleDelay: 125 5996 }; 5997 for (t in r = e.lazySizesConfig || e.lazysizesConfig || {}, n) t in r || (r[t] = n[t]); 5998 }(), !t || !t.getElementsByClassName) return { 5999 init: function() {}, 6000 cfg: r, 6001 noSupport: !0 6002 }; 6003 var o = t.documentElement, s = e.HTMLPictureElement, a = e.addEventListener.bind(e), l = e.setTimeout, c = e.requestAnimationFrame || l, u = e.requestIdleCallback, d = /^picture$/i, h = [ "load", "error", "lazyincluded", "_lazyloaded" ], f = {}, p = Array.prototype.forEach, m = function(e, t) { 6004 return f[t] || (f[t] = new RegExp("(\\s|^)" + t + "(\\s|$)")), f[t].test(e.getAttribute("class") || "") && f[t]; 6005 }, g = function(e, t) { 6006 m(e, t) || e.setAttribute("class", (e.getAttribute("class") || "").trim() + " " + t); 6007 }, v = function(e, t) { 6008 var n; 6009 (n = m(e, t)) && e.setAttribute("class", (e.getAttribute("class") || "").replace(n, " ")); 6010 }, b = function(e, t, n) { 6011 var i = n ? "addEventListener" : "removeEventListener"; 6012 n && b(e, t), h.forEach((function(n) { 6013 e[i](n, t); 6014 })); 6015 }, y = function(e, n, r, o, s) { 6016 var a = t.createEvent("Event"); 6017 return r || (r = {}), r.instance = i, a.initEvent(n, !o, !s), a.detail = r, e.dispatchEvent(a), 6018 a; 6019 }, x = function(t, n) { 6020 var i; 6021 !s && (i = e.picturefill || r.pf) ? (n && n.src && !t.getAttribute("srcset") && t.setAttribute("srcset", n.src), 6022 i({ 6023 reevaluate: !0, 6024 elements: [ t ] 6025 })) : n && n.src && (t.src = n.src); 6026 }, w = function(e, t) { 6027 return (getComputedStyle(e, null) || {})[t]; 6028 }, _ = function(e, t, n) { 6029 for (n = n || e.offsetWidth; n < r.minSize && t && !e._lazysizesWidth; ) n = t.offsetWidth, 6030 t = t.parentNode; 6031 return n; 6032 }, S = (fe = [], pe = [], me = fe, ge = function() { 6033 var e = me; 6034 for (me = fe.length ? pe : fe, de = !0, he = !1; e.length; ) e.shift()(); 6035 de = !1; 6036 }, ve = function(e, n) { 6037 de && !n ? e.apply(this, arguments) : (me.push(e), he || (he = !0, (t.hidden ? l : c)(ge))); 6038 }, ve._lsFlush = ge, ve), E = function(e, t) { 6039 return t ? function() { 6040 S(e); 6041 } : function() { 6042 var t = this, n = arguments; 6043 S((function() { 6044 e.apply(t, n); 6045 })); 6046 }; 6047 }, C = function(e) { 6048 var t, i, r = function() { 6049 t = null, e(); 6050 }, o = function() { 6051 var e = n.now() - i; 6052 e < 99 ? l(o, 99 - e) : (u || r)(r); 6053 }; 6054 return function() { 6055 i = n.now(), t || (t = l(o, 99)); 6056 }; 6057 }, T = (V = /^img$/i, Y = /^iframe$/i, G = "onscroll" in e && !/(gle|ing)bot/.test(navigator.userAgent), 6058 U = 0, X = 0, K = -1, Z = function(e) { 6059 X--, (!e || X < 0 || !e.target) && (X = 0); 6060 }, J = function(e) { 6061 return null == q && (q = "hidden" == w(t.body, "visibility")), q || !("hidden" == w(e.parentNode, "visibility") && "hidden" == w(e, "visibility")); 6062 }, Q = function(e, n) { 6063 var i, r = e, s = J(e); 6064 for (z -= n, W += n, H -= n, $ += n; s && (r = r.offsetParent) && r != t.body && r != o; ) (s = (w(r, "opacity") || 1) > 0) && "visible" != w(r, "overflow") && (i = r.getBoundingClientRect(), 6065 s = $ > i.left && H < i.right && W > i.top - 1 && z < i.bottom + 1); 6066 return s; 6067 }, ee = function() { 6068 var e, n, s, a, l, c, u, d, h, f, p, m, g = i.elements; 6069 if ((F = r.loadMode) && X < 8 && (e = g.length)) { 6070 for (n = 0, K++; n < e; n++) if (g[n] && !g[n]._lazyRace) if (!G || i.prematureUnveil && i.prematureUnveil(g[n])) ae(g[n]); else if ((d = g[n].getAttribute("data-expand")) && (c = 1 * d) || (c = U), 6071 f || (f = !r.expand || r.expand < 1 ? o.clientHeight > 500 && o.clientWidth > 500 ? 500 : 370 : r.expand, 6072 i._defEx = f, p = f * r.expFactor, m = r.hFac, q = null, U < p && X < 1 && K > 2 && F > 2 && !t.hidden ? (U = p, 6073 K = 0) : U = F > 1 && K > 1 && X < 6 ? f : 0), h !== c && (R = innerWidth + c * m,
6074 B = innerHeight + c, u = -1 * c, h = c), s = g[n].getBoundingClientRect(), (W = s.bottom) >= u && (z = s.top) <= B && ($ = s.right) >= u * m && (H = s.left) <= R && (W || $ || H || z) && (r.loadHidden || J(g[n])) && (D && X < 3 && !d && (F < 3 || K < 4) || Q(g[n], c))) { 6075 if (ae(g[n]), l = !0, X > 9) break; 6076 } else !l && D && !a && X < 4 && K < 4 && F > 2 && (L[0] || r.preloadAfterLoad) && (L[0] || !d && (W || $ || H || z || "auto" != g[n].getAttribute(r.sizesAttr))) && (a = L[0] || g[n]); 6077 a && !l && ae(a); 6078 } 6079 }, te = function(e) { 6080 var t, i = 0, o = r.throttleDelay, s = r.ricTimeout, a = function() { 6081 t = !1, i = n.now(), e(); 6082 }, c = u && s > 49 ? function() { 6083 u(a, { 6084 timeout: s 6085 }), s !== r.ricTimeout && (s = r.ricTimeout); 6086 } : E((function() { 6087 l(a); 6088 }), !0); 6089 return function(e) { 6090 var r; 6091 (e = !0 === e) && (s = 33), t || (t = !0, (r = o - (n.now() - i)) < 0 && (r = 0), 6092 e || r < 9 ? c() : l(c, r)); 6093 }; 6094 }(ee), ne = function(e) { 6095 var t = e.target; 6096 t._lazyCache ? delete t._lazyCache : (Z(e), g(t, r.loadedClass), v(t, r.loadingClass), 6097 b(t, re), y(t, "lazyloaded")); 6098 }, ie = E(ne), re = function(e) { 6099 ie({ 6100 target: e.target 6101 }); 6102 }, oe = function(e) { 6103 var t, n = e.getAttribute(r.srcsetAttr); 6104 (t = r.customMedia[e.getAttribute("data-media") || e.getAttribute("media")]) && e.setAttribute("media", t), 6105 n && e.setAttribute("srcset", n); 6106 }, se = E((function(e, t, n, i, o) { 6107 var s, a, c, u, h, f; 6108 (h = y(e, "lazybeforeunveil", t)).defaultPrevented || (i && (n ? g(e, r.autosizesClass) : e.setAttribute("sizes", i)), 6109 a = e.getAttribute(r.srcsetAttr), s = e.getAttribute(r.srcAttr), o && (u = (c = e.parentNode) && d.test(c.nodeName || "")), 6110 f = t.firesLoad || "src" in e && (a || s || u), h = { 6111 target: e 6112 }, g(e, r.loadingClass), f && (clearTimeout(N), N = l(Z, 2500), b(e, re, !0)), u && p.call(c.getElementsByTagName("source"), oe), 6113 a ? e.setAttribute("srcset", a) : s && !u && (Y.test(e.nodeName) ? function(e, t) { 6114 var n = e.getAttribute("data-load-mode") || r.iframeLoadMode; 6115 0 == n ? e.contentWindow.location.replace(t) : 1 == n && (e.src = t); 6116 }(e, s) : e.src = s), o && (a || u) && x(e, { 6117 src: s 6118 })), e._lazyRace && delete e._lazyRace, v(e, r.lazyClass), S((function() { 6119 var t = e.complete && e.naturalWidth > 1; 6120 f && !t || (t && g(e, r.fastLoadedClass), ne(h), e._lazyCache = !0, l((function() { 6121 "_lazyCache" in e && delete e._lazyCache; 6122 }), 9)), "lazy" == e.loading && X--; 6123 }), !0); 6124 })), ae = function(e) { 6125 if (!e._lazyRace) { 6126 var t, n = V.test(e.nodeName), i = n && (e.getAttribute(r.sizesAttr) || e.getAttribute("sizes")), o = "auto" == i; 6127 (!o && D || !n || !e.getAttribute("src") && !e.srcset || e.complete || m(e, r.errorClass) || !m(e, r.lazyClass)) && (t = y(e, "lazyunveilread").detail, 6128 o && k.updateElem(e, !0, e.offsetWidth), e._lazyRace = !0, X++, se(e, t, o, i, n)); 6129 } 6130 }, le = C((function() { 6131 r.loadMode = 3, te(); 6132 })), ce = function() { 6133 3 == r.loadMode && (r.loadMode = 2), le(); 6134 }, ue = function() { 6135 D || (n.now() - j < 999 ? l(ue, 999) : (D = !0, r.loadMode = 3, te(), a("scroll", ce, !0))); 6136 }, { 6137 _: function() { 6138 j = n.now(), i.elements = t.getElementsByClassName(r.lazyClass), L = t.getElementsByClassName(r.lazyClass + " " + r.preloadClass), 6139 a("scroll", te, !0), a("resize", te, !0), a("pageshow", (function(e) { 6140 if (e.persisted) { 6141 var n = t.querySelectorAll("." + r.loadingClass);
6142 n.length && n.forEach && c((function() { 6143 n.forEach((function(e) { 6144 e.complete && ae(e); 6145 })); 6146 })); 6147 } 6148 })), e.MutationObserver ? new MutationObserver(te).observe(o, { 6149 childList: !0, 6150 subtree: !0, 6151 attributes: !0 6152 }) : (o.addEventListener("DOMNodeInserted", te, !0), o.addEventListener("DOMAttrModified", te, !0), 6153 setInterval(te, 999)), a("hashchange", te, !0), [ "focus", "mouseover", "click", "load", "transitionend", "animationend" ].forEach((function(e) { 6154 t.addEventListener(e, te, !0); 6155 })), /d$|^c/.test(t.readyState) ? ue() : (a("load", ue), t.addEventListener("DOMContentLoaded", te), 6156 l(ue, 2e4)), i.elements.length ? (ee(), S._lsFlush()) : te(); 6157 }, 6158 checkElems: te, 6159 unveil: ae, 6160 _aLSL: ce 6161 }), k = (O = E((function(e, t, n, i) { 6162 var r, o, s; 6163 if (e._lazysizesWidth = i, i += "px", e.setAttribute("sizes", i), d.test(t.nodeName || "")) for (o = 0, 6164 s = (r = t.getElementsByTagName("source")).length; o < s; o++) r[o].setAttribute("sizes", i); 6165 n.detail.dataAttr || x(e, n.detail); 6166 })), P = function(e, t, n) { 6167 var i, r = e.parentNode; 6168 r && (n = _(e, r, n), (i = y(e, "lazybeforesizes", { 6169 width: n, 6170 dataAttr: !!t 6171 })).defaultPrevented || (n = i.detail.width) && n !== e._lazysizesWidth && O(e, r, i, n)); 6172 }, I = C((function() { 6173 var e, t = A.length; 6174 if (t) for (e = 0; e < t; e++) P(A[e]); 6175 })), { 6176 _: function() { 6177 A = t.getElementsByClassName(r.autosizesClass), a("resize", I); 6178 }, 6179 checkElems: I, 6180 updateElem: P 6181 }), M = function() { 6182 !M.i && t.getElementsByClassName && (M.i = !0, k._(), T._()); 6183 }; 6184 var A, O, P, I; 6185 var L, D, N, F, j, R, B, z, H, $, W, q, V, Y, G, U, X, K, Z, J, Q, ee, te, ne, ie, re, oe, se, ae, le, ce, ue; 6186 var de, he, fe, pe, me, ge, ve; 6187 return l((function() { 6188 r.init && M(); 6189 })), i = { 6190 cfg: r, 6191 autoSizer: k, 6192 loader: T, 6193 init: M, 6194 uP: x, 6195 aC: g, 6196 rC: v, 6197 hC: m, 6198 fire: y, 6199 gW: _, 6200 rAF: S 6201 }; 6202 }(t, t.document, Date); 6203 t.lazySizes = i, e.exports && (e.exports = i); 6204 }("undefined" != typeof window ? window : {}); 6205 }, function(e, t, n) { 6206 "use strict"; 6207 n.d(t, "a", (function() { 6208 return r; 6209 })); 6210 var i = n(0); 6211 class r { 6212 constructor(e, t = null) { 6213 this.selector = e, this.height = null, this.brokenImages = null, this.brokenImagesHeight = 0, 6214 this.duration = null, this.togglerState = null, this.options = { 6215 display: window.getComputedStyle(this.selector).display, 6216 duration: null, 6217 isWrapContent: !1, 6218 toggleClassName: "-is-open", 6219 class: { 6220 wrapPrefix: "__slide-wrap" 6221 } 6222 }, this.selector instanceof HTMLElement && (t instanceof Object && (this.options = i.extendDefaults(this.options, t)), 6223 this.init()); 6224 } 6225 get state() { 6226 return this.togglerState; 6227 } 6228 init() { 6229 i.callIfTrue(this.options.isWrapContent, this.wrapContent.bind(this)), this.updateV
6229alues(), 6230 this.togglerState = !!this.height, window.addEventListener("resize", i.debounce(this.updateValues.bind(this), 250)); 6231 } 6232 updateValues() { 6233 this.height = this.getHeight(), this.duration = this.options.duration || Math.floor(this.height / 3) + 300; 6234 } 6235 getHeight() { 6236 const e = this.selector.parentNode, t = document.createElement("div"); 6237 t.style.cssText = "visibility: hidden; overflow: hidden; max-height: 0;"; 6238 const n = this.selector.cloneNode(!0); 6239 n.style.cssText = "display: block;", t.appendChild(n), e.appendChild(t); 6240 const i = n.clientHeight; 6241 return e.removeChild(t), i; 6242 } 6243 getDirection() { 6244 return this.selector.clientHeight * ("none" !== window.getComputedStyle(this.selector).display) > this.height / 2 ? [ this.height, 0 ] : [ 0, this.height ]; 6245 } 6246 wrapContent() { 6247 const e = this.selector.classList[0].split("__")[0]; 6248 this.selector.innerHTML = `<div${e ? ` class="${e + this.options.class.wrapPrefix}"` : ""}>${this.selector.innerHTML}</div>`; 6249 } 6250 open() { 6251 0 === this.getDirection()[0] ? this.toggle() : console.log("Already opened!"); 6252 } 6253 close() { 6254 0 !== this.getDirection()[0] ? this.toggle() : console.log("Already closed!"); 6255 } 6256 toggle() { 6257 const [e, t] = this.getDirection(), n = t - e, i = this.options.display && "none" !== this.options.display ? this.options.display : "block", r = performance.now(); 6258 this.togglerState = 0 === t, this.selector.style.cssText = `overflow: hidden; display: ${i};`; 6259 const o = s => { 6260 let a = s - r; 6261 const l = e + n * a / this.duration; 6262 a > this.duration && (a = this.duration), this.selector.style.height = l + "px", 6263 a < this.duration ? requestAnimationFrame(o) : this.selector.style.cssText = "display: " + (0 === t ? "none" : i); 6264 }; 6265 return o(r); 6266 } 6267 } 6268 }, function(e, t, n) { 6269 "use strict"; 6270 n.d(t, "a", (function() { 6271 return a; 6272 })); 6273 var i = n(6), r = n.n(i); 6274 r.a.regExpEscape = function(e) { 6275 return e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"); 6276 }; 6277 var o = function(e, t) { 6278 for (var n, i = /<%(.+?)?%>/g, r = /(^\s*(if|for|else|switch|case|break|{|})).*/g, o = "var r=[];\n", s = 0, a = function(e, t) { 6279 return o += t ? e.match(r) ? e + "\n" : "r.push(" + e + ");\n" : "" !== e ? 'r.push("' + e.replace(/"/g, '\\"') + '");\n' : "", 6280 a; 6281 }; n = i.exec(e); ) a(e.slice(s, n.index))(n[1], !0), s = n.index + n[0].length; 6282 return a(e.substr(s, e.length - s)), o += 'return r.join("");', new Function(o.replace(/[\r\t\n]/g, "")).apply(t); 6283 }; 6284 function s(e) { 6285 return e.split("").map((e, t) => { 6286 const n = "ÃÃÃÃÃà à áâãäåÃÃÃÃÃÃÃÃòóôõöøÃÃÃÃèéêëðÃçÃÃÃÃÃìÃîïÃÃÃÃùúûüÃñŠšŸÿýŽž".indexOf(e); 6287 return -1 !== n ? "AAAAAAaaaaaaBOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz"[n] : e; 6288 }).join(""); 6289 } 6290 function a() { 6291 r()(document).ready(() => { 6292 r()(".js-combobox-1").accessibleCombobox(), r()(".js-combobox-2").jsonToDatalist({ 6293 callback: function(e) { 6294 e.accessibleCombobox({ 6295 comboboxPrefixClass: "combobox", 6296 comboboxHelpText: "Utilisez les touches de tabulation ou la flèche du bas pour naviguer dans la liste du champ autocomplété. Confirmez votre choix avec la touche entrée, ou la touche échap pour fermer la liste de suggestions.",
6297 defaultClassForInvisibleText: "invisible", 6298 suggestionSingle: "Il y a ", 6299 suggestionPlural: "Il y a ", 6300 suggestionWord: "suggestion", 6301 comboboxButtonTitle: "Effacer ce champ", 6302 comboboxButtonClearText: '<i class="fal fa-times"></i>', 6303 comboboxCaseSensitive: "no", 6304 comboboxMinLength: 0, 6305 comboboxLimitNumberSuggestions: 666, 6306 comboboxSearchOption: "containing", 6307 comboboxSeeMoreText: "Plus de résultatsâ¦" 6308 }); 6309 } 6310 }), r()(".js-combobox-3").jsonToDatalist({ 6311 jsonPath: "http://www.mocky.io/v2/5ab3e1ed2f00006000ca39f3", 6312 callback: function(e) { 6313 e.accessibleCombobox(); 6314 } 6315 }), r()(".js-combobox-4").jsonToDatalist({ 6316 getField: "", 6317 callback: function(e) { 6318 var t = e.attr("data-json-path"), n = e.attr("list"); 6319 e.accessibleCombobox({ 6320 comboboxPrefixClass: "combobox", 6321 comboboxHelpText: "Utilisez les touches de tabulation ou la flèche du bas pour naviguer dans la liste du champ autocomplété. Confirmez votre choix avec la touche entrée, ou la touche échap pour fermer la liste de suggestions.", 6322 defaultClassForInvisibleText: "invisible", 6323 suggestionSingle: "Il y a ", 6324 suggestionPlural: "Il y a ", 6325 suggestionWord: "suggestion", 6326 comboboxButtonTitle: "Effacer ce champ", 6327 comboboxButtonClearText: '<i class="fal fa-times"></i>', 6328 comboboxCaseSensitive: "no", 6329 comboboxMinLength: 2, 6330 comboboxLimitNumberSuggestions: 3, 6331 comboboxSearchOption: "containing", 6332 comboboxSeeMoreText: "", 6333 itemTemplate: '<a class="js-suggestion combobox-suggestion" href="<%this.title.href%>" role="option"><span><%this.title.text%></span><span class="type"><%this.type.text%></span></a>', 6334 itemDataType: "object", 6335 itemGetDataFrom: "title",
6336 setActiveElement: "body", 6337 callback: function(e, i) { 6338 if ("" !== e.val() && e.val().length >= 2) { 6339 var o = ""; 6340 o = t.indexOf("?") > -1 ? t + "&" + e.attr("name") + "=" + e.val() : t + "?" + e.attr("name") + "=" + e.val(), 6341 r.a.ajax(o).done((function(e) { 6342 var t = []; 6343 e.map((function(e) { 6344 e.title.text = e.title.text.replace(/ /g, " ").replace(/\u00A0/g, " "); 6345 })), r.a.each(e, (function(e, n) { 6346 t.push("<option value='" + JSON.stringify(n) + "'>"); 6347 })); 6348 var o = r()("<datalist/>", { 6349 id: n, 6350 html: t.join("") 6351 }); 6352 i(o); 6353 })); 6354 } 6355 } 6356 }); 6357 } 6358 }); 6359 }); 6360 } 6361 r.a.fn.extend({ 6362 accessibleCombobox: function(e, t) { 6363 e = r.a.extend({ 6364 comboboxPrefixClass: "combobox", 6365 comboboxHelpText: "Use tabulation (or down) key to access and browse suggestions after input. Confirm your choice with enter key, or esc key to close suggestions box.", 6366 defaultClassForInvisibleText: "invisible", 6367 suggestionSingle: "There is ", 6368 suggestionPlural: "There are ", 6369 suggestionWord: "suggestion", 6370 comboboxButtonTitle: "clear this field", 6371 comboboxButtonClearText: "X", 6372 comboboxCaseSensitive: "yes", 6373 comboboxMinLength: 0, 6374 comboboxLimitNumberSuggestions: 666, 6375 comboboxSearchOption: "beginning", 6376 comboboxSeeMoreText: "See more resultsâ¦", 6377 itemTemplate: "", 6378 itemDataType: !1, 6379 itemGetDataFrom: !1,
6380 setActiveElement: "body", 6381 callback: function(e, t) {} 6382 }, e); 6383 var n = [], i = []; 6384 function a(e) { 6385 setTimeout((function() { 6386 e.click(); 6387 }), 0); 6388 } 6389 this.each((function(t) { 6390 var l = r()(this), c = l.data(), u = r.a.extend(!0, {}, e, c), d = l.parents("form"); 6391 if (!d[0] || !d[0].classList.contains("-init")) { 6392 d.addClass("-init"); 6393 var h = l.attr("id"), f = d.children(".search-form__submit, .header-search__submit"), p = r()('label[for="' + h + '"]'), m = t + 1, g = u.comboboxPrefixClass + "-", v = u.defaultClassForInvisibleText, b = u.comboboxHelpText, y = r()("#" + l.attr("list")), x = u.comboboxButtonTitle, w = u.comboboxButtonClearText, _ = u.comboboxCaseSensitive, S = [], E = []; 6394 l.attr({ 6395 "data-number": m, 6396 autocorrect: "off", 6397 autocapitalize: "off", 6398 spellcheck: "false", 6399 autocomplete: "off", 6400 "aria-describedby": g + "help-text" + m, 6401 "aria-autocomplete": "list", 6402 "data-lastval": "", 6403 "aria-owns": g + "suggest_" + m 6404 }); 6405 T(y), l.wrap('<div class="' + g + 'container js-container" data-combobox-prefix-class="' + g + '"></div>'); 6406 var C = l.parent(); 6407 C.append('<div id="' + g + "suggest_" + m + '" class="js-suggest ' + g + 'suggestions"><div role="listbox"></div></div>'), 6408 C.prepend('<div id="' + g + "suggestion-text" + m + '" class="js-suggestion-text ' + g + "suggestion-text " + v + '" aria-live="assertive"></div>'), 6409 C.prepend('<span id="' + g + "help-text" + m + '" class="' + g + "help-text " + v + '">' + b + "</span>"), 6410 p.attr("id", "label-id-" + h), l.after('<button class="js-clear-button ' + g + 'clear-button" aria-label="' + x + '" title="' + x + '" aria-describedby="label-id-' + h + '" type="button">' + w + "</button>"), 6411 l.on("keyup", (function(e) { 6412 var t = r()(this), l = t.parent(), c = l.find(".js-suggest div"), d = l.parents("form"), h = l.data(), f = d.children(".search-form__submit, .header-search__submit"), p = void 0 !== h.comboboxPrefixClass ? h.comboboxPrefixClass : "", m = l.find(".js-suggestion-text"), g = u.suggestionSingle, v = u.suggestionPlural, b = u.suggestionWord, y = u.comboboxMinLength, x = u.comboboxLimitNumberSuggestions, w = u.comboboxSearchOption, S = u.comboboxSeeMoreText, E = t.attr("data-number"), C = s(t.val()), k = ""; 6413 r()(e.target); 6414 t.val().length >= u.comboboxMinLength ? u.callback(r()(this), (function(a) { 6415 T(a, (function() { 6416 if (a.children().length > 0 && (r()(u.setActiveElement).addClass("-is-searching"), 6417 l.addClass("-is-active"), 27 !== e.keyCode)) { 6418 t.attr("data-lastval", C); 6419 var d = n[E].length, h = 0, f = 0; 6420 if (c.empty(), "" !== C && C.length >= y) { 6421 for (;h < d; ) { 6422 if (f < x) { 6423 let e = "", r = ""; 6424 if ("containing" === w && "yes" === _ && s(n[E][h]).indexOf(C) >= 0 || "no" === _ && s(n[E][h]).toUpperCase().indexOf(C.toUpperCase()) >= 0 || "beginning" === w && "yes" === _ && s(n[E][h]).substring(0, C.length) === C || "no" === _ && s(n[E][h]).substring(0, C.length).toUpperCase() === C.toUpperCase()) { 6425 if (u.itemGetDataFrom && (r = i[E][h]), "" === C.trim()) e = n[E][h]; else { 6426 const i = s(n[E][h]), o = s(t.val().trim()); 6427 if (o) { 6428 const t = i.toLowerCase().indexOf(o.toLowerCase()), s = t + o.length; 6429 n[E][h].length; 6430 if (t > -1) { 6431 const i = `<mark>${n[E][h].slice(t, s)}</mark>`, a = n[E][h].split(""); 6432 a.splice(t, o.length, i), e = a.join(""), u.itemGetDataFrom && (r[u.itemGetDataFrom].text = e); 6433 } 6434 } 6435 } 6436 u.itemTemplate ? c.append(o(u.itemTemplate, r)) : c.append('<div id="suggestion-' + E + "-" + f + '" class="js-suggestion ' + p + 'suggestion" tabindex="-1" role="option">' + e + "</div>"), 6437 f++; 6438 } else u.itemGetDataFrom && (r = i[E][h]), u.itemTemplate ? c.append(o(u.itemTemplate, r)) : c.append('<div id="suggestion-' + E + "-" + f + '" class="js-suggestion ' + p + 'suggestion" tabindex="-1" role="option">' + e + "</div>"), 6439 f++; 6440 } 6441 h++; 6442 } 6443 if (f >= x && (c.append('<div id="suggestion-' + E + "-" + f + '" class="js-suggestion js-seemore ' + p + 'suggestion" tabindex="-1" role="option">' + S + "</div>"), 6444 f++), f > 1 && (k = v + f + " " + b + "s."), 1 === f && (k = g + f + " " + b + "."), 6445 0 === f && (k = g + f + " " + b + "."), f >= 0) { 6446 var T = m.text(); 6447 if (k != T) { 6448 var M = r()("<p>").text(k); 6449 m.attr("aria-live", "polite"), m.empty(), m.append(M); 6450 } 6451 } 6452 } 6453 } 6454 })); 6455 })) : (r()(u.setActiveElement).removeClass("-is-searching"), l.removeClass("-is-active"), 6456 c.empty()), 13 === e.keyCode && a(f); 6457 })).on("click", (function(e) { 6458 console.log("click"); 6459 var t = r()(e.target), n = r()(".js-suggestion-text:not(:empty)"), i = n.parents(".js-container"), o = i.find(".js-combobox"), s = i.find(".js-suggest div"); 6460 t.is(".js-suggestion") || t.is(".js-combobox") || !n.length || (o.val(o.attr("data-lastval")), 6461 s.empty(), n.empty()); 6462 })).on("keydown", (function(e) { 6463 console.log("keydown"); 6464 var t = r()(this), n = t.parent(), i = n.find(".js-combobox"), o = n.find(".js-suggest div"), s = o.find(".js-suggestion"), a = n.find(".js-suggestion-text"), l = void 0 === t.attr("data-combobox-notab-options"); 6465 s.first(); 6466 (!e.shiftKey && 9 === e.keyCode && l || 40 === e.keyCode) && s.length && (s.first().focus(), 6467 e.preventDefault()), (27 == e.keyCode || !1 === l && 9 == e.keyCode) && (i.val(i.attr("data-lastval").replace(/<mark>|<\/mark>/gi, "")), 6468 o.empty(), a.empty(), 27 == e.keyCode && (e.preventDefault(), setTimeout((function() { 6469 i.focus(); 6470 }), 300))); 6471 })), l.parent().on("keydown", ".js-suggestion", (function(e) { 6472 var t = r()(this), n = t.parents(".js-container"), i = n.find(".js-combobox"), o = void 0 === i.attr("data-combobox-notab-options"), s = n.find(".js-suggest div"), l = n.find(".js-suggestion-text"), c = t.next(), d = t.prev(), h = i.attr("data-lastval").replace(/<mark>|<\/mark>/gi, ""), p = u.itemTemplate ? t.html().replace(/<mark>|<\/mark>/gi, "").match(/>(.*?)?</)[1] : t.html().replace(/<mark>|<\/mark>/gi, ""); 6473 if ((27 === e.keyCode || !1 === o && 9 === e.keyCode) && (27 === e.keyCode && (i.val(h), 6474 s.empty(), l.empty(), setTimeout((function() { 6475 i.focus(); 6476 }), 300), e.preventDefault()), !1 === o && 9 === e.keyCode && (s.empty(), l.empty(), 6477 i.focus())), 13 === e.keyCode || 32 === e.keyCode) if (console.log("enter or space"), 6478 console.log(t[0]), t.hasClass("js-seemore")) i.val(h), s.empty(), l.empty(), setTimeout((function() { 6479 i.focus(); 6480 }), 300), setTimeout((function() { 6481 a(f); 6482 }), 301), e.preventDefault(); else { 6483 i.val(p), i.attr(h), s.empty(), l.empty(); 6484 var m = document.createElement("a"); 6485 m.setAttribute("type", "hidden"), m.href = t[0].getAttribute("href"), document.body.appendChild(m), 6486 m.click(), m.remove(), setTimeout((function() { 6487 i.focus(); 6488 }), 300), e.preventDefault(); 6489 } 6490 if (!e.shiftKey && 9 === e.keyCode && o || 40 === e.keyCode) { 6491 if (c.length) { 6492 u.itemTemplate ? c.html().replace(/<mark>|<\/mark>/gi, "").match(/>(.*?)?</)[1] : c.html().replace(/<mark>|<\/mark>/gi, ""); 6493 c.hasClass("js-seemore"), c.focus(); 6494 } else if (i.val(h), e.shiftKey || 9 !== e.keyCode) setTimeout((function() { 6495 i.focus(); 6496 }), 300); else { 6497 var g = jQuery.Event("keydown"); 6498 g.which = 27, g.keyCode = 27, t.trigger(g); 6499 } 6500 e.preventDefault(); 6501 } 6502 if (e.shiftKey && 9 === e.keyCode && o || 38 === e.keyCode) { 6503 if (d.length) { 6504 u.itemTemplate && void 0 !== d ? d.html().replace(/<mark>|<\/mark>/gi, "").match(/>(.*?)?</)[1] : d.html().replace(/<mark>|<\/mark>/gi, ""); 6505 d.focus(); 6506 } else i.val(i.attr("data-lastval")).focus(); 6507 e.preventDefault(); 6508 } 6509 })).on("click", ".js-clear-button", (function() { 6510 var e = r()(this).parent(), t = e.find(".js-combobox"), n = e.find(".js-suggest div"), i = e.find(".js-suggestion-text"); 6511 n.empty(), i.empty(), t.val(""), t.attr("data-lastval", ""), r()(u.setActiveElement).removeClass("-is-searching"), 6512 e.removeClass("-is-active"); 6513 })).on("click", ".js-suggestion", (function() { 6514 var e = r()(this), t = u.itemTemplate ? e.html().replace(/<mark>|<\/mark>/gi, "").match(/>(.*?)?</)[1] : e.html().replace(/<mark>|<\/mark>/gi, ""), n = e.parents(".js-container"), i = n.find(".js-combobox"), o = n.find(".js-suggest div"), s = n.find(".js-suggestion-text"); 6515 e.hasClass("js-seemore") ? (o.empty(), s.empty(), i.focus(), a(f)) : (i.val(t).focus(), 6516 o.empty(), s.empty()); 6517 })), r()(window).on("scroll resize", (function() { 6518 r()("body").hasClass("-is-searching") || r()(".combobox-container").removeClass("-is-active"); 6519 })); 6520 } 6521 function T(t, o) { 6522 o = o || function() {}, S = [], E = [], r()(t).find("option").each((function(t, n) { 6523 if (e.itemDataType && "object" === e.itemDataType) { 6524 var i = JSON.parse(r()(n).attr("value")); 6525 for (var o in i) o === e.itemGetDataFrom && (S.push(i[o].text), E.push(i)); 6526 } else S.push(n.value); 6527 })), E.length && (i[m] = E), n[m] = S, r()(t).remove(), o(); 6528 } 6529 })); 6530 } 6531 }), r.a.fn.extend({ 6532 jsonToDatalist: function(e) { 6533 e = r.a.extend({ 6534 getField: "name", 6535 jsonPath: null, 6536 callback: function() {} 6537 }, e); 6538 this.each((function() { 6539 var t = r()(this), n = t.data(), i = r.a.extend(!0, {}, e, n), o = i.jsonPath, s = t.attr("list"); 6540 o ? r.a.ajax(o).done((function(n) { 6541 var o = []; 6542 r.a.each(n, (function(t, n) { 6543 e.getField ? o.push('<option value="' + n[e.getField] + '">') : o.push("<option value='" + JSON.stringify(n) + "'>"); 6544 })), r()("<datalist/>", { 6545 id: s, 6546 html: o.join("") 6547 }).insertAfter(t), i.callback.call(this, t); 6548 })) : console.log("JSON path is empty or null."); 6549 })); 6550 } 6551 }); 6552 }, function(e, t, n) { 6553 "use strict";
6554 n.d(t, "a", (function() { 6555 return r; 6556 })); 6557 var i = n(0); 6558 function r() { 6559 [ ...document.querySelectorAll(".facets-active__reset") ].forEach(e => { 6560 i.hasClass(e, "-is-initialized") || (i.addClass(e, "-is-initialized"), e.addEventListener("click", t => { 6561 if (!i.hasClass(e, "global-reset")) { 6562 t.preventDefault(); 6563 [ ...e.parentElement.querySelectorAll("input") ].forEach(e => { 6564 e.value = "", e.dispatchEvent(new Event("input"), { 6565 bubbles: !0 6566 }); 6567 }); 6568 } 6569 })); 6570 }); 6571 } 6572 }, , function(e, t, n) { 6573 "use strict"; 6574 Object.defineProperty(t, "__esModule", { 6575 value: !0 6576 }), t.default = function(e, t) { 6577 d || (d = (0, c.default)()); 6578 var n = (0, i.default)({ 6579 label: "element/disabled", 6580 context: e 6581 }); 6582 t = Boolean(t); 6583 var r = n.hasAttribute("data-ally-disabled"), s = 1 === arguments.length; 6584 return (0, o.default)(n) ? s ? n.disabled : (n.disabled = t, n) : s ? r : (r === t || f(n, t), 6585 n); 6586 }; 6587 var i = u(n(9)), r = u(n(51)), o = u(n(171)), s = u(n(322)), a = u(n(172)), l = u(n(323)), c = u(n(30)); 6588 function u(e) { 6589 return e && e.__esModule ? e : { 6590 default: e 6591 }; 6592 } 6593 var d = void 0; 6594 function h() { 6595 l.default.warn("trying to focus inert element", this); 6596 } 6597 function f(e, t) { 6598 !function(e, t) { 6599 (0, a.default)({ 6600 element: e, 6601 attribute: "aria-disabled", 6602 temporaryValue: t ? "true" : void 0 6603 }); 6604 }(e, t), function(e, t) { 6605 if (t) { 6606 var n = (0, r.default)(e); 6607 (0, a.default)({ 6608 element: e, 6609 attribute: "tabindex", 6610 temporaryValue: "-1", 6611 saveValue: null !== n ? n : "" 6612 }); 6613 } else (0, a.default)({ 6614 element: e, 6615 attribute: "tabindex" 6616 }); 6617 }(e, t), function(e, t) { 6618 t ? e.focus = h : delete e.focus; 6619 }(e, t), function(e, t) { 6620 if (t) { 6621 var n = e.style.pointerEvents || ""; 6622 e.setAttribute("data-inert-pointer-events", n), e.style.pointerEvents = "none"; 6623 } else { 6624 var i = e.getAttribute("data-inert-pointer-events"); 6625 e.removeAttribute("data-inert-pointer-events"), e.style.pointerEvents = i; 6626 } 6627 }(e, t); 6628 var n = e.nodeName.toLowerCase(); 6629 "video" !== n && "audio" !== n || function(e, t) { 6630 (0, s.default)({ 6631 element: e, 6632 attribute: "controls", 6633 remove: t 6634 }); 6635 }(e, t), ("svg" === n || e.ownerSVGElement) && (d.focusSvgFocusableAttribute ? function(e, t) { 6636 (0, a.default)({ 6637 element: e, 6638 attribute: "focusable", 6639 temporaryValue: t ? "false" : void 0 6640 }); 6641 }(e, t) : d.focusSvgTabindexAttribute || "a" !== n || function(e, t) { 6642 (0, s.default)({ 6643 element: e, 6644 attribute: "xlink:href", 6645 remove: t 6646 }); 6647 }(e, t)), t ? e.setAttribute("data-ally-disabled", "true") : e.removeAttribute("data-ally-disabled"); 6648 } 6649 e.exports = t.default; 6650 }, function(e, t) { 6651 e.exports = function(e) { 6652 return e.webpackPolyfill || (e.deprecate = function() {}, e.paths = [], e.children || (e.children = []), 6653 Object.defineProperty(e, "loaded", { 6654 enumerable: !0, 6655 get: function() { 6656 return e.l; 6657 } 6658 }), Object.defineProperty(e, "id", { 6659 enumerable: !0, 6660 get: function() { 6661 return e.i; 6662 } 6663 }), e.webpackPolyfill = 1), e; 6664 }; 6665 }, function(e, t, n) { 6666 "use strict"; 6667 Object.defineProperty(t, "__esModule", { 6668 value: !0 6669 }); 6670 t.default = "1.4.1", e.exports = t.default; 6671 }, function(e, t, n) { 6672 "use strict"; 6673 Object.defineProperty(t, "__esModule", { 6674 value: !0 6675 }), t.default = function() { 6676 var e = void 0; 6677 try { 6678 document.querySelector("html >>> :first-child"), e = ">>>"; 6679 } catch (t) { 6680 try { 6681 document.querySelector("html /deep/ :first-child"), e = "/deep/"; 6682 } catch (t) { 6683 e = ""; 6684 } 6685 } 6686 return e; 6687 }, e.exports = t.default; 6688 }, function(e, t, n) { 6689 "use strict"; 6690 Object.defineProperty(t, "__esModule", { 6691 value: !0 6692 }), t.default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBpZD0ic3ZnIj48dGV4dCB4PSIxMCIgeT0iMjAiIGlkPSJzdmctbGluay10ZXh0Ij50ZXh0PC90ZXh0Pjwvc3ZnPg==", 6693 e.exports = t.default; 6694 }, function(e, t, n) { 6695 "use strict"; 6696 Object.defineProperty(t, "__esModule", { 6697 value: !0 6698 }), t.default = function(e) { 6699 if (!(e.ownerSVGElement || "svg" === e.nodeName.toLowerCase())) return !1; 6700 var t, n = ((t = document.createElement("div")).innerHTML = '<svg><foreignObject width="30" height="30">\n <input type="text"/>\n </foreignObject></svg>', 6701 t.firstChild.firstChild); 6702 e.appendChild(n); 6703 var i = n.querySelector("input"); 6704 return i.focus(), i.disabled = !0, e.removeChild(n), !0; 6705 }, e.exports = t.default; 6706 }, function(e, t, n) { 6707 "use strict"; 6708 Object.defineProperty(t, "__esModule", { 6709 value: !0 6710 }), t.default = function(e) { 6711 s || ((s = (0, r.default)()).focusFieldsetDisabled && delete l.fieldset, s.focusFormDisabled && delete l.form, 6712 a = new RegExp("^(" + Object.keys(l).join("|") + ")$")); 6713 var t = (0, i.default)({ 6714 label: "is/native-disabled-supported", 6715 context: e 6716 }).nodeName.toLowerCase(); 6717 return Boolean(a.test(t)); 6718 }; 6719 var i = o(n(9)), r = o(n(30)); 6720 function o(e) {
6721 return e && e.__esModule ? e : { 6722 default: e 6723 }; 6724 } 6725 var s = void 0, a = void 0, l = { 6726 input: !0, 6727 select: !0, 6728 textarea: !0, 6729 button: !0, 6730 fieldset: !0, 6731 form: !0 6732 }; 6733 e.exports = t.default; 6734 }, function(e, t, n) { 6735 "use strict"; 6736 Object.defineProperty(t, "__esModule", { 6737 value: !0 6738 }), t.default = function(e) { 6739 var t = e.element, n = e.attribute, i = e.temporaryValue, r = e.saveValue, o = "data-cached-" + n; 6740 if (void 0 !== i) { 6741 var s = r || t.getAttribute(n); 6742 t.setAttribute(o, s || ""), t.setAttribute(n, i); 6743 } else { 6744 var a = t.getAttribute(o); 6745 t.removeAttribute(o), "" === a ? t.removeAttribute(n) : t.setAttribute(n, a); 6746 } 6747 }, e.exports = t.default; 6748 }, function(e, t, n) { 6749 "use strict"; 6750 Object.defineProperty(t, "__esModule", { 6751 value: !0 6752 }), t.default = function() { 6753 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.skipFocusable; 6754 h || (h = (0, u.default)()); 6755 var r = (0, s.default)({ 6756 label: "get/focus-redirect-target", 6757 context: t 6758 }); 6759 if (!n && (0, i.default)(r)) return null; 6760 var o = r.nodeName.toLowerCase(), l = (0, a.default)(r); 6761 return "label" === o ? p(r, l) : "legend" === o ? m(r, l) : "img" === o ? g(r) : null; 6762 }; 6763 var i = d(n(43)), r = d(n(108)), o = d(n(77)), s = d(n(9)), a = d(n(35)), l = d(n(138)), c = n(107), u = d(n(30)); 6764 function d(e) { 6765 return e && e.__esModule ? e : { 6766 default: e 6767 }; 6768 } 6769 var h = void 0; 6770 function f(e) { 6771 var t = e.nodeName.toLowerCase(); 6772 return "input" === t || "textarea" === t || "select" === t || "button" === t; 6773 } 6774 function p(e, t) { 6775 var n = e.getAttribute("for"); 6776 return n ? t.getElementById(n) : e.querySelector("input, select, textarea"); 6777 } 6778 function m(e, t) { 6779 return h.focusRedirectLegend ? "fieldset" !== e.parentNode.nodeName.toLowerCase() ? null : "tabbable" === h.focusRedirectLegend ? function(e, t) { 6780 var n = (0, o.default)({ 6781 context: t.body, 6782 strategy: "strict" 6783 }); 6784 if (!n.length) return null; 6785 var i = (0, l.default)({ 6786 list: n, 6787 elements: [ e ] 6788 }), r = i.indexOf(e); 6789 return r === i.length - 1 ? null : i[r + 1]; 6790 }(e, t) : function(e) { 6791 var t = e.parentNode; 6792 return (0, r.default)({ 6793 context: t, 6794 strategy: "strict" 6795 }).filter(f)[0] || null; 6796 }(e) : null; 6797 } 6798 function g(e) { 6799 if (!h.focusRedirectImgUsemap) return null; 6800 var t = (0, c.getMapOfImage)(e); 6801 return t && t.querySelector("area") || null; 6802 } 6803 e.exports = t.default; 6804 }, function(e, t, n) { 6805 "use strict"; 6806 function i(e) { 6807 return [ e.getPropertyValue("overflow"), e.getPropertyValue("overflow-x"), e.getPropertyValue("overflow-y") ].some((function(e) { 6808 return "auto" === e || "scroll" === e; 6809 })); 6810 } 6811 Object.defineProperty(t, "__esModule", { 6812 value: !0 6813 }), t.isUserModifyWritable = function(e) { 6814 var t = e.webkitUserModify || ""; 6815 return Boolean(t && -1 !== t.indexOf("write")); 6816 }, t.hasCssOverflowScroll = i, t.hasCssDisplayFlex = function(e) { 6817 return e.display.indexOf("flex") > -1; 6818 }, t.isScrollableContainer = function(e, t, n, r) { 6819 if ("div" !== t && "span" !== t) return !1; 6820 if (n && "div" !== n && "span" !== n && !i(r)) return !1; 6821 return e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth; 6822 }; 6823 }, function(e, t, n) { 6824 "use strict"; 6825 Object.defineProperty(t, "__esModule", { 6826 value: !0 6827 }), t.default = function(e) { 6828 c || (c = (0, a.default)()); 6829 var t = (0, i.default)({ 6830 label: "is/valid-area", 6831 context: e 6832 }); 6833 if ("area" !== t.nodeName.toLowerCase()) return !1; 6834 var n = t.hasAttribute("tabindex"); 6835 if (!c.focusAreaTabindex && n) return !1; 6836 var l = (0, s.getImageOfArea)(t); 6837 return !(!l || !(0, r.default)(l)) && (!(!c.focusBrokenImageMap && (!l.complete || !l.naturalHeight || l.offsetWidth <= 0 || l.offsetHeight <= 0)
6837) && (c.focusAreaWithoutHref || t.href ? !(0, 6838 o.default)({ 6839 context: l 6840 }).slice(1).some((function(e) { 6841 var t = e.nodeName.toLowerCase(); 6842 return "button" === t || "a" === t; 6843 })) : c.focusAreaTabindex && n || c.focusAreaImgTabindex && l.hasAttribute("tabindex"))); 6844 }; 6845 var i = l(n(9)), r = l(n(64)), o = l(n(36)), s = n(107), a = l(n(30)); 6846 function l(e) { 6847 return e && e.__esModule ? e : { 6848 default: e 6849 }; 6850 } 6851 var c = void 0; 6852 e.exports = t.default; 6853 }, function(e, t, n) { 6854 "use strict"; 6855 Object.defineProperty(t, "__esModule", { 6856 value: !0 6857 }), t.default = function(e) { 6858 l || (l = (0, s.default)()); 6859 var t = (0, i.default)({ 6860 label: "is/disabled", 6861 context: e 6862 }); 6863 if (t.hasAttribute("data-ally-disabled")) return !0; 6864 if (!(0, o.default)(t)) return !1; 6865 if (t.disabled) return !0; 6866 var n = (0, r.default)({ 6867 context: t 6868 }); 6869 return !!n.some(c) || !(l.focusFormDisabled || !n.some(u)); 6870 }; 6871 var i = a(n(9)), r = a(n(36)), o = a(n(171)), s = a(n(30)); 6872 function a(e) { 6873 return e && e.__esModule ? e : { 6874 default: e 6875 }; 6876 } 6877 var l = void 0; 6878 function c(e) { 6879 return "fieldset" === e.nodeName.toLowerCase() && e.disabled; 6880 } 6881 function u(e) { 6882 return "form" === e.nodeName.toLowerCase() && e.disabled; 6883 } 6884 e.exports = t.default; 6885 }, function(e, t, n) { 6886 "use strict"; 6887 Object.defineProperty(t, "__esModule", { 6888 value: !0 6889 }); 6890 var i = l(n(64)), r = l(n(9)), o = l(n(106)), s = l(n(51)), a = l(n(23)); 6891 function l(e) { 6892 return e && e.__esModule ? e : { 6893 default: e 6894 }; 6895 } 6896 function c() { 6897 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, l = void 0 === n ? { 6898 onlyFocusableBrowsingContext: !1, 6899 visible: !1 6900 } : n, c = (0, r.default)({ 6901 label: "is/only-tabbable", 6902 resolveDocument: !0, 6903 context: t 6904 }); 6905 if (!l.visible && !(0, i.default)(c)) return !1; 6906 if (!l.onlyFocusableBrowsingContext && (a.default.is.GECKO || a.default.is.TRIDENT || a.default.is.EDGE)) { 6907 var u = (0, o.default)(c); 6908 if (u && (0, s.default)(u) < 0) return !1; 6909 } 6910 var d = c.nodeName.toLowerCase(), h = (0, s.default)(c); 6911 return "label" === d && a.default.is.GECKO ? null !== h && h >= 0 : !!(a.default.is.GECKO && c.ownerSVGElement && !c.focus && "a" === d && c.hasAttribute("xlink:href") && a.default.is.GECKO); 6912 } 6913 c.except = function() { 6914 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = function(t) { 6915 return c({ 6916 context: t, 6917 except: e 6918 }); 6919 }; 6920 return t.rules = c, t; 6921 }; 6922 var u = c.except({}); 6923 t.default = u, e.exports = t.default; 6924 }, function(e, t, n) { 6925 "use strict"; 6926 Object.defineProperty(t, "__esModule", { 6927 value: !0 6928 }); 6929 var i = f(n(64)), r = f(n(9)), o = f(n(135)), s = f(n(51)), a = f(n(105)), l = f(n(106)), c = f(n(23)), u = n(107), d = n(174), h = f(n(30)); 6930 function f(e) { 6931 return e && e.__esModule ? e : { 6932 default: e 6933 }; 6934 } 6935 var p = void 0, m = /^(fieldset|table|td|body)$/; 6936 function g() { 6937 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.except, a = void 0 === n ? { 6938 flexbox: !1, 6939 scrollable: !1, 6940 shadow: !1, 6941 visible: !1, 6942 onlyTabbable: !1 6943 } : n; 6944 p || (p = (0, h.default)()); 6945 var f = (0, r.default)({ 6946 label: "is/tabbable", 6947 resolveDocument: !0, 6948 context: t 6949 }); 6950 if (c.default.is.BLINK && c.default.is.ANDROID && c.default.majorVersion > 42) return !1; 6951 var g = (0, l.default)(f); 6952 if (g) { 6953 if (c.default.is.WEBKIT && c.default.is.IOS) return !1; 6954 if ((0, s.default)(g) < 0) return !1; 6955 if (!a.visible && (c.default.is.BLINK || c.default.is.WEBKIT) && !(0, i.default)(g)) return !1; 6956 var y = g.nodeName.toLowerCase(); 6957 if ("object" === y) { 6958 var x = "Chrome" === c.default.name && c.default.majorVersion >= 54 || "Opera" === c.default.name && c.default.majorVersion >= 41; 6959 if (c.default.is.WEBKIT || c.default.is.BLINK && !x) return !1; 6960 } 6961 } 6962 var w = f.nodeName.toLowerCase(), _ = (0, s.default)(f), S = null === _ ? null : _ >= 0; 6963 if (c.default.is.EDGE && c.default.majorVersion >= 14 && g && f.ownerSVGElement && _ < 0) return !0; 6964 var E = !1 !== S, C = null !== _ && _ >= 0; 6965 if (f.hasAttribute("contenteditable")) return E; 6966 if (m.test(w) && !0 !== S) return !1; 6967 if (c.default.is.WEBKIT && c.default.is.IOS) {
6968 var T = "input" === w && "text" === f.type || "password" === f.type || "select" === w || "textarea" === w || f.hasAttribute("contenteditable"); 6969 if (!T) { 6970 var k = window.getComputedStyle(f, null); 6971 T = (0, d.isUserModifyWritable)(k); 6972 } 6973 if (!T) return !1; 6974 } 6975 if ("use" === w && null !== _ && (c.default.is.BLINK || c.default.is.WEBKIT && 9 === c.default.majorVersion)) return !0; 6976 if ((0, o.default)(f, "svg a") && f.hasAttribute("xlink:href")) { 6977 if (E) return !0; 6978 if (f.focus && !p.focusSvgNegativeTabindexAttribute) return !0; 6979 } 6980 if ("svg" === w && p.focusSvgInIframe && E) return !0; 6981 if (c.default.is.TRIDENT || c.default.is.EDGE) { 6982 if ("svg" === w) return !!p.focusSvg || (f.hasAttribute("focusable") || C); 6983 if (f.ownerSVGElement) return !(!p.focusSvgTabindexAttribute || !C) || f.hasAttribute("focusable"); 6984 } 6985 if (void 0 === f.tabIndex) return Boolean(a.onlyTabbable); 6986 if ("audio" === w) { 6987 if (!f.hasAttribute("controls")) return !1; 6988 if (c.default.is.BLINK) return !0; 6989 } 6990 if ("video" === w) if (f.hasAttribute("controls")) { 6991 if (c.default.is.BLINK || c.default.is.GECKO) return !0; 6992 } else if (c.default.is.TRIDENT || c.default.is.EDGE) return !1; 6993 if ("object" === w && (c.default.is.BLINK || c.default.is.WEBKIT)) return !1; 6994 if ("iframe" === w) return !1; 6995 if (!a.scrollable && c.default.is.GECKO) { 6996 var M = window.getComputedStyle(f, null); 6997 if ((0, d.hasCssOverflowScroll)(M)) return E; 6998 } 6999 if (c.default.is.TRIDENT || c.default.is.EDGE) { 7000 if ("area" === w) { 7001 var A = (0, u.getImageOfArea)(f); 7002 if (A && (0, s.default)(A) < 0) return !1; 7003 } 7004 var O = window.getComputedStyle(f, null); 7005 if ((0, d.isUserModifyWritable)(O)) return f.tabIndex >= 0; 7006 if (!a.flexbox && (0, d.hasCssDisplayFlex)(O)) return null !== _ ? C : v(f) && b(f); 7007 if ((0, d.isScrollableContainer)(f, w)) return !1; 7008 var P = f.parentElement; 7009 if (P) { 7010 var I = P.nodeName.toLowerCase(), L = window.getComputedStyle(P, null); 7011 if ((0, d.isScrollableContainer)(P, w, I, L)) return !1; 7012 if ((0, d.hasCssDisplayFlex)(L)) return C; 7013 } 7014 } 7015 return f.tabIndex >= 0; 7016 } 7017 g.except = function() { 7018 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = function(t) { 7019 return g({ 7020 context: t, 7021 except: e 7022 }); 7023 }; 7024 return t.rules = g, t; 7025 }; 7026 var v = a.default.rules.except({ 7027 flexbox: !0 7028 }), b = g.except({ 7029 flexbox: !0 7030 }), y = g.except({}); 7031 t.default = y, e.exports = t.default; 7032 }, function(e, t, n) { 7033 "use strict"; 7034 "undefined" != typeof window && function() { 7035 for (var e = 0, t = [ "ms", "moz", "webkit", "o" ], n = "", i = "", r = 0, o = t.length; r < o; ++r) n = window[t[r] + "RequestAnimationFrame"], 7036 i = window[t[r] + "CancelAnimationFrame"] || window[t[r] + "CancelRequestAnimationFrame"]; 7037 "function" != typeof window.requestAnimationFrame && (window.requestAnimationFrame = window[n] || function(t) { 7038 var n = (new Date).getTime(), i = Math.max(0, 16 - (n - e)), r = window.setTimeout((function() { 7039 t(n + i); 7040 }), i); 7041 return e = n + i, r; 7042 }), "function" != typeof window.cancelAnimationFrame && (window.cancelAnimationFrame = window[i] || function(e) { 7043 clearTimeout(e); 7044 }); 7045 }(); 7046 }, function(e, t, n) { 7047 "use strict"; 7048 Object.defineProperty(t, "__esModule", { 7049 value: !0 7050 }), t.default = function(e) { 7051 var t = (0, i.default)({ 7052 label: "is/shadowed", 7053 resolveDocument: !0, 7054 context: e 7055 }); 7056 return Boolean((0, r.default)({ 7057 context: t 7058 })); 7059 }; 7060 var i = o(n(9)), r = o(n(75)); 7061 function o(e) {
7062 return e && e.__esModule ? e : { 7063 default: e 7064 }; 7065 } 7066 e.exports = t.default; 7067 }, function(e, t, n) { 7068 "use strict"; 7069 Object.defineProperty(t, "__esModule", { 7070 value: !0 7071 }), t.default = function() { 7072 for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = [], o = (0, 7073 r.default)({ 7074 label: "get/shadow-host-parents", 7075 context: t 7076 }); o && (o = (0, i.default)({ 7077 context: o 7078 })); ) n.push(o); 7079 return n; 7080 }; 7081 var i = o(n(75)), r = o(n(9)); 7082 function o(e) { 7083 return e && e.__esModule ? e : { 7084 default: e 7085 }; 7086 } 7087 e.exports = t.default; 7088 }, function(e, t, n) { 7089 "use strict"; 7090 Object.defineProperty(t, "__esModule", { 7091 value: !0 7092 }), t.default = function() { 7093 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.filter; 7094 if (t = (0, i.default)({ 7095 label: "get/insignificant-branches", 7096 defaultToDocument: !0, 7097 context: t 7098 }), !(n = (0, r.default)(n)).length) throw new TypeError("get/insignificant-branches requires valid options.filter"); 7099 return l({ 7100 context: t, 7101 filter: n 7102 }); 7103 }; 7104 var i = a(n(9)), r = a(n(34)), o = n(109), s = a(n(35)); 7105 function a(e) { 7106 return e && e.__esModule ? e : { 7107 default: e 7108 }; 7109 } 7110 function l(e) { 7111 var t = e.context, n = e.filter, i = [], r = function(e) { 7112 return n.some((function(t) { 7113 return e === t; 7114 })) ? NodeFilter.FILTER_REJECT : function(e) { 7115 var t = (0, o.getParentComparator)({ 7116 parent: e 7117 }); 7118 return n.some(t); 7119 }(e) ? NodeFilter.FILTER_ACCEPT : (i.push(e), NodeFilter.FILTER_REJECT); 7120 }; 7121 r.acceptNode = r; 7122 for (var a = (0, s.default)(t).createTreeWalker(t, NodeFilter.SHOW_ELEMENT, r, !1); a.nextNode(); ) ; 7123 return i; 7124 } 7125 e.exports = t.default; 7126 }, function(e, t, n) { 7127 "use strict"; 7128 Object.defineProperty(t, "__esModule", { 7129 value: !0 7130 }); 7131 var i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 7132 return typeof e; 7133 } : function(e) { 7134 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 7135 }, r = function() { 7136 function e(e, t) { 7137 for (var n = 0; n < t.length; n++) { 7138 var i = t[n]; 7139 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 7140 Object.defineProperty(e, i.key, i); 7141 } 7142 } 7143 return function(t, n, i) { 7144 return n && e(t.prototype, n), i && e(t, i), t; 7145 }; 7146 }(); 7147 t.default = function() { 7148 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.callback, r = e.config; 7149 if ("function" != typeof n) throw new TypeError("observe/shadow-mutations requires options.callback to be a function"); 7150 if ("object" !== (void 0 === r ? "undefined" : i(r))) throw new TypeError("observe/shadow-mutations requires options.config to be an object"); 7151 if (!window.MutationObserver) return { 7152 disengage: function() {} 7153 }; 7154 var o = (0, a.default)({ 7155 label: "observe/shadow-mutations", 7156 resolveDocument: !0, 7157 defaultToDocument: !0, 7158 context: t 7159 }), s = new d({ 7160 context: o, 7161 callback: n, 7162 config: r 7163 }); 7164 return { 7165 disengage: s.disengage 7166 }; 7167 }; 7168 var o = l(n(34)), s = l(n(184)), a = l(n(9)); 7169 function l(e) {
7170 return e && e.__esModule ? e : { 7171 default: e 7172 }; 7173 } 7174 function c(e, t) { 7175 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 7176 } 7177 var u = { 7178 childList: !0, 7179 subtree: !0 7180 }, d = function() { 7181 function e() { 7182 var t = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, i = n.context, r = n.callback, o = n.config; 7183 c(this, e), this.config = o, this.disengage = this.disengage.bind(this), this.clientObserver = new MutationObserver(r), 7184 this.hostObserver = new MutationObserver((function(e) { 7185 return e.forEach(t.handleHostMutation, t); 7186 })), this.observeContext(i), this.observeShadowHosts(i); 7187 } 7188 return r(e, [ { 7189 key: "disengage", 7190 value: function() { 7191 this.clientObserver && this.clientObserver.disconnect(), this.clientObserver = null, 7192 this.hostObserver && this.hostObserver.disconnect(), this.hostObserver = null; 7193 } 7194 }, { 7195 key: "observeShadowHosts", 7196 value: function(e) { 7197 var t = this; 7198 (0, s.default)({ 7199 context: e 7200 }
7200).forEach((function(e) { 7201 return t.observeContext(e.shadowRoot); 7202 })); 7203 } 7204 }, { 7205 key: "observeContext", 7206 value: function(e) { 7207 this.clientObserver.observe(e, this.config), this.hostObserver.observe(e, u); 7208 } 7209 }, { 7210 key: "handleHostMutation", 7211 value: function(e) { 7212 "childList" === e.type && (0, o.default)(e.addedNodes).filter((function(e) { 7213 return e.nodeType === Node.ELEMENT_NODE; 7214 })).forEach(this.observeShadowHosts, this); 7215 } 7216 } ]), e; 7217 }(); 7218 e.exports = t.default; 7219 }, function(e, t, n) { 7220 "use strict"; 7221 Object.defineProperty(t, "__esModule", { 7222 value: !0 7223 }), t.default = function e() { 7224 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.context, o = (0, 7225 i.default)({ 7226 label: "query/shadow-hosts", 7227 resolveDocument: !0, 7228 defaultToDocument: !0, 7229 context: n 7230 }), a = (0, r.default)(n), l = a.createTreeWalker(o, NodeFilter.SHOW_ELEMENT, s, !1), c = []; 7231 o.shadowRoot && (c.push(o), c = c.concat(e({ 7232 context: o.shadowRoot 7233 }))); 7234 for (;l.nextNode(); ) c.push(l.currentNode), c = c.concat(e({ 7235 context: l.currentNode.shadowRoot 7236 })); 7237 return c; 7238 }; 7239 var i = o(n(9)), r = o(n(35)); 7240 function o(e) { 7241 return e && e.__esModule ? e : { 7242 default: e 7243 }; 7244 } 7245 var s = function(e) { 7246 return e.shadowRoot ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 7247 }; 7248 s.acceptNode = s, e.exports = t.default; 7249 }, function(e, t, n) { 7250 "use strict"; 7251 Object.defineProperty(t, "__esModule", { 7252 value: !0 7253 }), t.default = function() { 7254 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.includeContext, s = e.includeOnlyTabbable, l = e.strategy; 7255 d || (d = (0, c.default)()); 7256 var u = (0, r.default)(t)[0] || document.documentElement, p = (0, i.default)({ 7257 context: u, 7258 includeContext: n, 7259 includeOnlyTabbable: s, 7260 strategy: l 7261 }); 7262 return p = document.body.createShadowRoot && o.default.is.BLINK ? (0, a.default)(p, u, f) : f(p, u), 7263 n && (p = h(p, u)), p; 7264 }; 7265 var i = u(n(77)), r = u(n(34)), o = u(n(23)), s = u(n(346)), a = u(n(347)), l = u(n(348)), c = u(n(30)); 7266 function u(e) { 7267 return e && e.__esModule ? e : { 7268 default: e 7269 }; 7270 } 7271 var d = void 0; 7272 function h(e, t) { 7273 var n = e.indexOf(t); 7274 return n > 0 ? e.splice(n, 1).concat(e) : e; 7275 } 7276 function f(e, t) { 7277 return d.tabsequenceAreaAtImgPosition && (e = (0, s.default)(e, t)), e = (0, l.default)(e); 7278 } 7279 e.exports = t.default; 7280 }, function(e, t, n) { 7281 "use strict"; 7282 Object.defineProperty(t, "__esModule", { 7283 value: !0 7284 }), t.default = function() { 7285 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = {}, n = (0, 7286 r.default)(e.context)[0] || document.documentElement; 7287 delete e.context; 7288 var s = (0, r.default)(e.filter); 7289 delete e.filter; 7290 var a = Object.keys(e); 7291 if (!a.length) throw new TypeError("when/key requires at least one option key"); 7292 var l = function(e) { 7293 e.keyCodes.forEach((function(n) { 7294 t[n] || (t[n] = []), t[n].push(e); 7295 })); 7296 }; 7297 a.forEach((function(t) { 7298 if ("function" != typeof e[t]) throw new TypeError('when/key requires option["' + t + '"] to be a function'); 7299 (0, i.default)(t).map((function(n) { 7300 return n.callback = e[t], n; 7301 }
7301)).forEach(l); 7302 })); 7303 var c = function(e) { 7304 if (!e.defaultPrevented) { 7305 if (s.length) { 7306 var i = (0, o.getParentComparator)({ 7307 element: e.target, 7308 includeSelf: !0 7309 }); 7310 if (s.some(i)) return; 7311 } 7312 var r = e.keyCode || e.which; 7313 t[r] && t[r].forEach((function(t) { 7314 t.matchModifiers(e) && t.callback.call(n, e, u); 7315 })); 7316 } 7317 }; 7318 n.addEventListener("keydown", c, !1); 7319 var u = function() { 7320 n.removeEventListener("keydown", c, !1); 7321 }; 7322 return { 7323 disengage: u 7324 }; 7325 }; 7326 var i = s(n(349)), r = s(n(34)), o = n(109); 7327 function s(e) { 7328 return e && e.__esModule ? e : { 7329 default: e 7330 }; 7331 } 7332 e.exports = t.default; 7333 }, function(e, t, n) { 7334 "use strict"; 7335 Object.defineProperty(t, "__esModule", { 7336 value: !0 7337 }); 7338 for (var i = { 7339 tab: 9, 7340 left: 37, 7341 up: 38, 7342 right: 39, 7343 down: 40, 7344 pageUp: 33, 7345 "page-up": 33, 7346 pageDown: 34, 7347 "page-down": 34, 7348 end: 35, 7349 home: 36, 7350 enter: 13, 7351 escape: 27, 7352 space: 32, 7353 shift: 16, 7354 capsLock: 20, 7355 "caps-lock": 20, 7356 ctrl: 17, 7357 alt: 18, 7358 meta: 91, 7359 pause: 19, 7360 insert: 45, 7361 delete: 46, 7362 backspace: 8, 7363 _alias: { 7364 91: [ 92, 93, 224 ] 7365 } 7366 }, r = 1; r < 26; r++) i["f" + r] = r + 111; 7367 for (var o = 0; o < 10; o++) { 7368 var s = o + 48, a = o + 96; 7369 i[o] = s, i["num-" + o] = a, i._alias[s] = [ a ]; 7370 } 7371 for (var l = 0; l < 26; l++) { 7372 var c = l + 65; 7373 i[String.fromCharCode(c).toLowerCase()] = c; 7374 } 7375 t.default = i, e.exports = t.default; 7376 }, function(e, t, n) { 7377 "use strict"; 7378 Object.defineProperty(t, "__esModule", { 7379 value: !0 7380 }); 7381 var i, r = n(78), o = (i = r) && i.__esModule ? i : { 7382 default: i 7383 }; 7384 var s = 0, a = 0, l = [ "touchstart", "pointerdown", "MSPointerDown", "mousedown" ], c = [ "touchend", "touchcancel", "pointerup", "MSPointerUp", "pointercancel", "MSPointerCancel", "mouseup" ]; 7385 function u() { 7386 s = 0, a = 0; 7387 } 7388 function d(e) { 7389 !1 !== e.isPrimary && s++; 7390 } 7391 function h(e) { 7392 !1 !== e.isPrimary && (e.touches ? s = e.touches.length : (window.setImmediate || window.setTimeout)((function() { 7393 s = Math.max(s - 1, 0); 7394 }))); 7395 } 7396 function f(e) { 7397 switch (e.keyCode || e.which) { 7398 case 16: 7399 case 17: 7400 case 18: 7401 case 91: 7402 case 93: 7403 return; 7404 } 7405 a++; 7406 } 7407 function p(e) { 7408 switch (e.keyCode || e.which) { 7409 case 16: 7410 case 17: 7411 case 18: 7412 case 91: 7413 case 93: 7414 return; 7415 } 7416 (window.setImmediate || window.setTimeout)((function() { 7417 a = Math.max(a - 1, 0); 7418 })); 7419 } 7420 function m() { 7421 return { 7422 pointer: Boolean(s), 7423 key: Boolean(a) 7424 }; 7425 } 7426 t.default = (0, o.default)({ 7427 engage: function() { 7428 return window.addEventListener("blur", u, !1), document.documentElement.addEventListener("keydown", f, !0), 7429 document.documentElement.addEventListener("keyup", p, !0), l.forEach((function(e) { 7430 document.documentElement.addEventListener(e, d, !0); 7431 }
7431)), c.forEach((function(e) { 7432 document.documentElement.addEventListener(e, h, !0); 7433 })), { 7434 get: m 7435 }; 7436 }, 7437 disengage: function() { 7438 s = a = 0, window.removeEventListener("blur", u, !1), document.documentElement.removeEventListener("keydown", f, !0), 7439 document.documentElement.removeEventListener("keyup", p, !0), l.forEach((function(e) { 7440 document.documentElement.removeEventListener(e, d, !0); 7441 })), c.forEach((function(e) { 7442 document.documentElement.removeEventListener(e, h, !0); 7443 })); 7444 } 7445 }), e.exports = t.default; 7446 }, function(e, t, n) { 7447 "use strict"; 7448 function i(e, t, n) { 7449 var i = function(e) { 7450 var t = e.getAttribute && e.getAttribute("class") || ""; 7451 return "" === t ? [] : t.split(" "); 7452 }(e), r = i.indexOf(t), o = -1 !== r, s = void 0 !== n ? n : !o; 7453 s !== o && (s || i.splice(r, 1), s && i.push(t), e.setAttribute("class", i.join(" "))); 7454 } 7455 Object.defineProperty(t, "__esModule", { 7456 value: !0 7457 }), t.toggleClass = i, t.removeClass = function(e, t) { 7458 return i(e, t, !1); 7459 }, t.addClass = function(e, t) { 7460 return i(e, t, !0); 7461 }; 7462 }, function(e, t, n) { 7463 "use strict"; 7464 Object.defineProperty(t, "__esModule", { 7465 value: !0 7466 }), t.default = function() { 7467 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.callback, s = e.area; 7468 if ("function" != typeof n) throw new TypeError("when/visible-area requires options.callback to be a function"); 7469 "number" != typeof s && (s = 1); 7470 var a = (0, o.default)({ 7471 label: "when/visible-area", 7472 context: t 7473 }), l = void 0, c = null, u = function() { 7474 l && cancelAnimationFrame(l); 7475 }, d = function() { 7476 return !(0, i.default)(a) || (0, r.default)(a) < s || !1 === n(a); 7477 }, h = function() { 7478 d() ? c() : u(); 7479 }; 7480 return (c = function() { 7481 l = requestAnimationFrame(h); 7482 })(), { 7483 disengage: u 7484 }; 7485 }, n(179); 7486 var i = s(n(64)), r = s(n(360)), o = s(n(9)); 7487 function s(e) { 7488 return e && e.__esModule ? e : { 7489 default: e 7490 }; 7491 } 7492 e.exports = t.default; 7493 }, , , , , function(e, t, n) { 7494 var i = n(16), r = n(13).document, o = i(r) && i(r.createElement); 7495 e.exports = function(e) { 7496 return o ? r.createElement(e) : {}; 7497 }; 7498 }, function(e, t, n) { 7499 t.f = n(21); 7500 }, function(e, t, n) { 7501 var i = n(148)("keys"), r = n(87); 7502 e.exports = function(e) { 7503 return i[e] || (i[e] = r(e)); 7504 }; 7505 }, function(e, t) { 7506 e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); 7507 }, function(e, t, n) { 7508 var i = n(13).document; 7509 e.exports = i && i.documentElement; 7510 }, function(e, t, n) { 7511 var i = n(16), r = n(15), o = function(e, t) { 7512 if (r(e), !i(t) && null !== t) throw TypeError(t + ": can't set as prototype!"); 7513 }; 7514 e.exports = { 7515 set: Object.setPrototypeOf || ("__proto__" in {} ? function(e, t, i) { 7516 try { 7517 (i = n(55)(Function.call, n(58).f(Object.prototype, "__proto__").set, 2))(e, []), 7518 t = !(e instanceof Array); 7519 } catch (e) { 7520 t = !0; 7521 } 7522 return function(e, n) { 7523 return o(e, n), t ? e.__proto__ = n : i(e, n), e; 7524 }; 7525 }({}, !1) : void 0), 7526 check: o 7527 }; 7528 }, function(e, t) { 7529 e.exports = "\t\n\v\f\r  áá ââââââ ââââââ¯âã\u2028\u2029\ufeff"; 7530 }, function(e, t, n) { 7531 var i = n(16), r = n(200).set; 7532 e.exports = function(e, t, n) { 7533 var o, s = t.constructor; 7534 return s !== n && "function" == typeof s && (o = s.prototype) !== n.prototype && i(o) && r && r(e, o), 7535 e; 7536 }; 7537 }, function(e, t, n) { 7538 "use strict"; 7539 var i = n(57), r = n(68); 7540 e.exports = function(e) { 7541 var t = String(r(this)), n = "", o = i(e); 7542 if (o < 0 || o == 1 / 0) throw RangeError("Count can't be negative"); 7543 for (;o > 0; (o >>>= 1) && (t += t)) 1 & o && (n += t); 7544 return n; 7545 }; 7546 }, function(e, t) { 7547 e.exports = Math.sign || function(e) { 7548 return 0 == (e = +e) || e != e ? e : e < 0 ? -1 : 1; 7549 }; 7550 }, function(e, t) { 7551 var n = Math.expm1; 7552 e.exports = !n || n(10) > 22025.465794806718 || n(10) < 22025.465794806718 || -2e-17 != n(-2e-17) ? function(e) { 7553 return 0 == (e = +e) ? e : e > -1e-6 && e < 1e-6 ? e + e * e / 2 : Math.exp(e) - 1; 7554 } : n; 7555 }, function(e, t, n) { 7556 var i = n(57), r = n(68); 7557 e.exports = function(e) { 7558 return function(t, n) { 7559 var o, s, a = String(r(t)), l = i(n), c = a.length; 7560 return l < 0 || l >= c ? e ? "" : void 0 : (o = a.charCodeAt(l)) < 55296 || o > 56319 || l + 1 === c || (s = a.charCodeAt(l + 1)) < 56320 || s > 57343 ? e ? a.charAt(l) : o : e ? a.slice(l, l + 2) : s - 56320 + (o - 55296 << 10) + 65536; 7561 }; 7562 }; 7563 }, function(e, t, n) { 7564 "use strict"; 7565 var i = n(88), r = n(1), o = n(39), s = n(46), a = n(118), l = n(259), c = n(116), u = n(93), d = n(21)("iterator"), h = !([].keys && "next" in [].keys()), f = function() { 7566 return this; 7567 }; 7568 e.exports = function(e, t, n, p, m, g, v) { 7569 l(n, t, p); 7570 var b, y, x, w = function(e) { 7571 if (!h && e in C) return C[e]; 7572 switch (e) { 7573 case "keys": 7574 case "values": 7575 return function() { 7576 return new n(this, e); 7577 }; 7578 } 7579 return function() { 7580 return new n(this, e); 7581 }; 7582 }, _ = t + " Iterator", S = "values" == m, E = !1, C = e.prototype, T = C[d] || C["@@iterator"] || m && C[m], k = T || w(m), M = m ? S ? w("entries") : k : void 0, A = "Array" == t && C.entr
7582ies || T; 7583 if (A && (x = u(A.call(new e))) !== Object.prototype && x.next && (c(x, _, !0), 7584 i || "function" == typeof x[d] || s(x, d, f)), S && T && "values" !== T.name && (E = !0, 7585 k = function() { 7586 return T.call(this); 7587 }), i && !v || !h && !E && C[d] || s(C, d, k), a[t] = k, a[_] = f, m) if (b = { 7588 values: S ? k : w("values"), 7589 keys: g ? k : w("keys"), 7590 entries: M 7591 }, v) for (y in b) y in C || o(C, y, b[y]); else r(r.P + r.F * (h || E), t, b); 7592 return b; 7593 }; 7594 }, function(e, t, n) { 7595 var i = n(209), r = n(68); 7596 e.exports = function(e, t, n) { 7597 if (i(t)) throw TypeError("String#" + n + " doesn't accept regex!"); 7598 return String(r(e)); 7599 }; 7600 }, function(e, t, n) { 7601 var i = n(16), r = n(67), o = n(21)("match"); 7602 e.exports = function(e) { 7603 var t; 7604 return i(e) && (void 0 !== (t = e[o]) ? !!t : "RegExp" == r(e)); 7605 }; 7606 }, function(e, t, n) { 7607 var i = n(21)("match"); 7608 e.exports = function(e) { 7609 var t = /./; 7610 try { 7611 "/./"[e](t); 7612 } catch (n) { 7613 try { 7614 return t[i] = !1, !"/./"[e](t); 7615 } catch (e) {} 7616 } 7617 return !0; 7618 }; 7619 }, function(e, t, n) { 7620 var i = n(118), r = n(21)("iterator"), o = Array.prototype; 7621 e.exports = function(e) { 7622 return void 0 !== e && (i.Array === e || o[r] === e); 7623 }; 7624 }, function(e, t, n) { 7625 "use strict"; 7626 var i = n(28), r = n(86); 7627 e.exports = function(e, t, n) { 7628 t in e ? i.f(e, t, r(0, n)) : e[t] = n; 7629 }; 7630 }, function(e, t, n) { 7631 var i = n(132), r = n(21)("iterator"), o = n(118); 7632 e.exports = n(24).getIteratorMethod = function(e) { 7633 if (null != e) return e[r] || e["@@iterator"] || o[i(e)]; 7634 }; 7635 }, function(e, t, n) { 7636 "use strict"; 7637 var i = n(37), r = n(90), o = n(22); 7638 e.exports = function(e) { 7639 for (var t = i(this), n = o(t.length), s = arguments.length, a = r(s > 1 ? arguments[1] : void 0, n), l = s > 2 ? arguments[2] : void 0, c = void 0 === l ? n : r(l, n); c > a; ) t[a++] = e; 7640 return t; 7641 }; 7642 }, function(e, t, n) { 7643 "use strict"; 7644 var i = n(94), r = n(264), o = n(118), s = n(47); 7645 e.exports = n(207)(Array, "Array", (function(e, t) { 7646 this._t = s(e), this._i = 0, this._k = t; 7647 }), (function() { 7648 var e = this._t, t = this._k, n = this._i++; 7649 return !e || n >= e.length ? (this._t = void 0, r(1)) : r(0, "keys" == t ? n : "values" == t ? e[n] : [ n, e[n] ]); 7650 }), "values"), o.Arguments = o.Array, i("keys"), i("values"), i("entries"); 7651 }, function(e, t, n) { 7652 "use strict"; 7653 var i, r, o = n(153), s = RegExp.prototype.exec, a = String.prototype.replace, l = s, c = (i = /a/, 7654 r = /b*/g, s.call(i, "a"), s.call(r, "a"), 0 !== i.lastIndex || 0 !== r.lastIndex), u = void 0 !== /()??/.exec("")[1]; 7655 (c || u) && (l = function(e) { 7656 var t, n, i, r, l = this; 7657 return u && (n = new RegExp("^" + l.source + "$(?!\\s)", o.call(l))), c && (t = l.lastIndex), 7658 i = s.call(l, e), c && i && (l.lastIndex = l.global ? i.index + i[0].length : t), 7659 u && i && i.length > 1 && a.call(i[0], n, (function() { 7660 for (r = 1; r < arguments.length - 2; r++) void 0 === arguments[r] && (i[r] = void 0); 7661 })), i; 7662 }), e.exports = l; 7663 }, function(e, t, n) { 7664 "use strict"; 7665 var i = n(206)(!0); 7666 e.exports = function(e, t, n) { 7667 return t + (n ? i(e, t).length : 1); 7668 }; 7669 }, function(e, t, n) { 7670 var i, r, o, s = n(55), a = n(253), l = n(199), c = n(195), u = n(13), d = u.process, h = u.setImmediate, f = u.clearImmediate, p = u.MessageChannel, m = u.Dispatch, g = 0, v = {}, b = function() { 7671 var e = +this; 7672 if (v.hasOwnProperty(e)) { 7673 var t = v[e]; 7674 delete v[e], t(); 7675 } 7676 }, y = function(e) { 7677 b.call(e.data); 7678 }; 7679 h && f || (h = function(e) { 7680 for (var t = [], n = 1; arguments.length > n; ) t.push(arguments[n++]); 7681 return v[++g] = function() { 7682 a("function" == typeof e ? e : Function(e), t); 7683 }, i(g), g; 7684 }, f = function(e) { 7685 delete v[e]; 7686 }, "process" == n(67)(d) ? i = function(e) { 7687 d.nextTick(s(b, e, 1)); 7688 } : m && m.now ? i = function(e) { 7689 m.now(s(b, e, 1)); 7690 } : p ? (o = (r = new p).port2, r.port1.onmessage = y, i = s(o.postMessage, o, 1)) : u.addEventListener && "function" == typeof postMessage && !u.importScripts ? (i = function(e) { 7691 u.postMessage(e + "", "*"); 7692 }, u.addEventListener("message", y, !1)) : i = "onreadystatechange" in c("script") ? function(e) { 7693 l.appendChild(c("script")).onreadystatechange = function() { 7694 l.removeChild(this), b.call(e); 7695 }; 7696 } : function(e) {
7697 setTimeout(s(b, e, 1), 0); 7698 }), e.exports = { 7699 set: h, 7700 clear: f 7701 }; 7702 }, function(e, t, n) { 7703 "use strict"; 7704 var i = n(13), r = n(27), o = n(88), s = n(159), a = n(46), l = n(121), c = n(14), u = n(120), d = n(57), h = n(22), f = n(272), p = n(92).f, m = n(28).f, g = n(214), v = n(116), b = i.ArrayBuffer, y = i.DataView, x = i.Math, w = i.RangeError, _ = i.Infinity, S = b, E = x.abs, C = x.pow, T = x.floor, k = x.log, M = x.LN2, A = r ? "_b" : "buffer", O = r ? "_l" : "byteLength", P = r ? "_o" : "byteOffset"; 7705 function I(e, t, n) { 7706 var i, r, o, s = new Array(n), a = 8 * n - t - 1, l = (1 << a) - 1, c = l >> 1, u = 23 === t ? C(2, -24) - C(2, -77) : 0, d = 0, h = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; 7707 for ((e = E(e)) != e || e === _ ? (r = e != e ? 1 : 0, i = l) : (i = T(k(e) / M), 7708 e * (o = C(2, -i)) < 1 && (i--, o *= 2), (e += i + c >= 1 ? u / o : u * C(2, 1 - c)) * o >= 2 && (i++, 7709 o /= 2), i + c >= l ? (r = 0, i = l) : i + c >= 1 ? (r = (e * o - 1) * C(2, t), 7710 i += c) : (r = e * C(2, c - 1) * C(2, t), i = 0)); t >= 8; s[d++] = 255 & r, r /= 256, 7711 t -= 8) ; 7712 for (i = i << t | r, a += t; a > 0; s[d++] = 255 & i, i /= 256, a -= 8) ; 7713 return s[--d] |= 128 * h, s; 7714 } 7715 function L(e, t, n) { 7716 var i, r = 8 * n - t - 1, o = (1 << r) - 1, s = o >> 1, a = r - 7, l = n - 1, c = e[l--], u = 127 & c; 7717 for (c >>= 7; a > 0; u = 256 * u + e[l], l--, a -= 8) ; 7718 for (i = u & (1 << -a) - 1, u >>= -a, a += t; a > 0; i = 256 * i + e[l], l--, a -= 8) ; 7719 if (0 === u) u = 1 - s; else { 7720 if (u === o) return i ? NaN : c ? -_ : _; 7721 i += C(2, t), u -= s; 7722 } 7723 return (c ? -1 : 1) * i * C(2, u - t); 7724 } 7725 function D(e) { 7726 return e[3] << 24 | e[2] << 16 | e[1] << 8 | e[0]; 7727 } 7728 function N(e) { 7729 return [ 255 & e ]; 7730 } 7731 function F(e) { 7732 return [ 255 & e, e >> 8 & 255 ]; 7733 } 7734 function j(e) { 7735 return [ 255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255 ]; 7736 } 7737 function R(e) { 7738 return I(e, 52, 8); 7739 } 7740 function B(e) { 7741 return I(e, 23, 4); 7742 } 7743 function z(e, t, n) { 7744 m(e.prototype, t, { 7745 get: function() { 7746 return this[n]; 7747 } 7748 }); 7749 } 7750 function H(e, t, n, i) { 7751 var r = f(+n); 7752 if (r + t > e[O]) throw w("Wrong index!"); 7753 var o = e[A]._b, s = r + e[P], a = o.slice(s, s + t); 7754 return i ? a : a.reverse(); 7755 } 7756 function $(e, t, n, i, r, o) { 7757 var s = f(+n); 7758 if (s + t > e[O]) throw w("Wrong index!"); 7759 for (var a = e[A]._b, l = s + e[P], c = i(+r), u = 0; u < t; u++) a[l + u] = c[o ? u : t - u - 1]; 7760 } 7761 if (s.ABV) { 7762 if (!c((function() { 7763 b(1); 7764 })) || !c((function() { 7765 new b(-1); 7766 })) || c((function() { 7767 return new b, new b(1.5), new b(NaN), "ArrayBuffer" != b.name; 7768 }))) { 7769 for (var W, q = (b = function(e) { 7770 return u(this, b), new S(f(e)); 7771 }).prototype = S.prototype, V = p(S), Y = 0; V.length > Y; ) (W = V[Y++]) in b || a(b, W, S[W]); 7772 o || (q.constructor = b); 7773 } 7774 var G = new y(new b(2)), U = y.prototype.setInt8; 7775 G.setInt8(0, 2147483648), G.setInt8(1, 2147483649), !G.getInt8(0) && G.getInt8(1) || l(y.prototype, { 7776 setInt8: function(e, t) { 7777 U.call(this, e, t << 24 >> 24); 7778 }, 7779 setUint8: function(e, t) { 7780 U.call(this, e, t << 24 >> 24); 7781 } 7782 }, !0); 7783 } else b = function(e) { 7784 u(this, b, "ArrayBuffer"); 7785 var t = f(e); 7786 this._b = g.call(new Array(t), 0), this[O] = t; 7787 }, y = function(e, t, n) { 7788 u(this, y, "DataView"), u(e, b, "DataView"); 7789 var i = e[O], r = d(t); 7790 if (r < 0 || r > i) throw w("Wrong offset!"); 7791 if (r + (n = void 0 === n ? i - r : h(n)) > i) throw w("Wrong length!"); 7792 this[A] = e, this[P] = r, this[O] = n; 7793 }, r && (z(b, "byteLength", "_l"), z(y, "buffer", "_b"), z(y, "byteLength", "_l"), 7794 z(y, "byteOffset", "_o")), l(y.prototype, { 7795 getInt8: function(e) { 7796 return H(this, 1, e)[0] << 24 >> 24; 7797 }, 7798 getUint8: function(e) { 7799 return H(this, 1, e)[0]; 7800 }, 7801 getInt16: function(e) { 7802 var t = H(this, 2, e, arguments[1]); 7803 return (t[1] << 8 | t[0]) << 16 >> 16; 7804 }, 7805 getUint16: function(e) { 7806 var t = H(this, 2, e, arguments[1]); 7807 return t[1] << 8 | t[0]; 7808 }, 7809 getInt32: function(e) { 7810 return D(H(this, 4, e, arguments[1])); 7811 }, 7812 getUint32: function(e) { 7813 return D(H(this, 4, e, arguments[1])) >>> 0; 7814 }, 7815 getFloat32: function(e) { 7816 return L(H(this, 4, e, arguments[1]), 23, 4); 7817 }, 7818 getFloat64: function(e) { 7819 return L(H(this, 8, e, arguments[1]), 52, 8); 7820 }, 7821 setInt8: function(e, t) { 7822 $(this, 1, e, N, t); 7823 }, 7824 setUint8: function(e, t) { 7825 $(this, 1, e, N, t); 7826 }, 7827 setInt16: function(e, t) { 7828 $(this, 2, e, F, t, arguments[2]); 7829 }, 7830 setUint16: function(e, t) { 7831 $(this, 2, e, F, t, arguments[2]); 7832 }, 7833 setInt32: function(e, t) { 7834 $(this, 4, e, j, t, arguments[2]); 7835 }, 7836 setUint32: function(e, t) { 7837 $(this, 4, e, j, t, arguments[2]); 7838 }, 7839 setFloat32: function(e, t) { 7840 $(this, 4, e, B, t, arguments[2]); 7841 }, 7842 setFloat64: function(e, t) { 7843 $(this, 8, e, R, t, arguments[2]); 7844 } 7845 }); 7846 v(b, "ArrayBuffer"), v(y, "DataView"), a(y.prototype, s.VIEW, !0), t.ArrayBuffer = b, 7847 t.DataView = y; 7848 }, function(e, t, n) { 7849 (function(t, n) { 7850 var i; 7851 i = function() { 7852 "use strict"; 7853 function e(e) { 7854 return "function" == typeof e; 7855 } 7856 var i = Array.isArray ? Array.isArray : function(e) { 7857 return "[object Array]" === Object.prototype.toString.call(e); 7858 }, r = 0, o = void 0, s = void 0, a = function(e, t) { 7859 p[r] = e, p[r + 1] = t, 2 === (r += 2) && (s ? s(m) : x()); 7860 }, l = "undefined" != typeof window ? window : void 0, c = l || {}, u = c.MutationObserver || c.WebKitMutationObserver, d = "undefined" == typeof self && void 0 !== t && "[object process]" === {}.toString.call(t), h = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel; 7861 function f() { 7862 var e = setTimeout; 7863 return function() { 7864 return e(m, 1); 7865 }; 7866 } 7867 var p = new Array(1e3); 7868 function m() { 7869 for (var e = 0; e < r; e += 2) (0, p[e])(p[e + 1]), p[e] = void 0, p[e + 1] = void 0; 7870 r = 0; 7871 } 7872 var g, v, b, y, x = void 0; 7873 function w(e, t) { 7874 var n = this, i = new this.constructor(E); 7875 void 0 === i[S] && D(i); 7876 var r = n._state; 7877 if (r) { 7878 var o = arguments[r - 1]; 7879 a((function() { 7880 return I(r, i, o, n._result); 7881 })); 7882 } else O(n, i, e, t); 7883 return i; 7884 } 7885 function _(e) { 7886 if (e && "object" == typeof e && e.constructor === this) return e; 7887 var t = new this(E); 7888 return T(t, e), t; 7889 } 7890 d ? x = function() { 7891 return t.nextTick(m); 7892 } : u ? (v = 0, b = new u(m), y = document.createTextNode(""), b.observe(y, { 7893 characterData: !0 7894 }), x = function() { 7895 y.data = v = ++v % 2; 7896 }) : h ? ((g = new MessageChannel).port1.onmessage = m, x = function() { 7897 return g.port2.postMessage(0); 7898 }
7898) : x = void 0 === l ? function() { 7899 try { 7900 var e = Function("return this")().require("vertx"); 7901 return void 0 !== (o = e.runOnLoop || e.runOnContext) ? function() { 7902 o(m); 7903 } : f(); 7904 } catch (e) { 7905 return f(); 7906 } 7907 }() : f(); 7908 var S = Math.random().toString(36).substring(2); 7909 function E() {} 7910 function C(t, n, i) { 7911 n.constructor === t.constructor && i === w && n.constructor.resolve === _ ? function(e, t) { 7912 1 === t._state ? M(e, t._result) : 2 === t._state ? A(e, t._result) : O(t, void 0, (function(t) { 7913 return T(e, t); 7914 }), (function(t) { 7915 return A(e, t); 7916 })); 7917 }(t, n) : void 0 === i ? M(t, n) : e(i) ? function(e, t, n) { 7918 a((function(e) { 7919 var i = !1, r = function(e, t, n, i) { 7920 try { 7921 e.call(t, n, i); 7922 } catch (e) { 7923 return e; 7924 } 7925 }(n, t, (function(n) { 7926 i || (i = !0, t !== n ? T(e, n) : M(e, n)); 7927 }), (function(t) { 7928 i || (i = !0, A(e, t)); 7929 }), e._label); 7930 !i && r && (i = !0, A(e, r)); 7931 }), e); 7932 }(t, n, i) : M(t, n); 7933 } 7934 function T(e, t) { 7935 if (e === t) A(e, new TypeError("You cannot resolve a promise with itself")); else if (r = typeof (i = t), 7936 null === i || "object" !== r && "function" !== r) M(e, t); else { 7937 var n = void 0; 7938 try { 7939 n = t.then; 7940 } catch (t) { 7941 return void A(e, t); 7942 } 7943 C(e, t, n); 7944 } 7945 var i, r; 7946 } 7947 function k(e) { 7948 e._onerror && e._onerror(e._result), P(e); 7949 } 7950 function M(e, t) { 7951 void 0 === e._state && (e._result = t, e._state = 1, 0 !== e._subscribers.length && a(P, e)); 7952 } 7953 function A(e, t) { 7954 void 0 === e._state && (e._state = 2, e._result = t, a(k, e)); 7955 } 7956 function O(e, t, n, i) { 7957 var r = e._subscribers, o = r.length; 7958 e._onerror = null, r[o] = t, r[o + 1] = n, r[o + 2] = i, 0 === o && e._state && a(P, e); 7959 } 7960 function P(e) { 7961 var t = e._subscribers, n = e._state; 7962 if (0 !== t.length) { 7963 for (var i = void 0, r = void 0, o = e._result, s = 0; s < t.length; s += 3) i = t[s], 7964 r = t[s + n], i ? I(n, i, r, o) : r(o); 7965 e._subscribers.length = 0; 7966 } 7967 } 7968 function I(t, n, i, r) { 7969 var o = e(i), s = void 0, a = void 0, l = !0; 7970 if (o) { 7971 try { 7972 s = i(r); 7973 } catch (e) { 7974 l = !1, a = e; 7975 } 7976 if (n === s) return void A(n, new TypeError("A promises callback cannot return that same promise.")); 7977 } else s = r; 7978 void 0 !== n._state || (o && l ? T(n, s) : !1 === l ? A(n, a) : 1 === t ? M(n, s) : 2 === t && A(n, s)); 7979 } 7980 var L = 0; 7981 function D(e) { 7982 e[S] = L++, e._state = void 0, e._result = void 0, e._subscribers = []; 7983 } 7984 var N = function() { 7985 function e(e, t) { 7986 this._instanceConstructor = e, this.promise = new e(E), this.promise[S] || D(this.promise), 7987 i(t) ? (this.length = t.length, this._remaining = t.length, this._result = new Array(this.length), 7988 0 === this.length ? M(this.promise, this._result) : (this.length = this.length || 0, 7989 this._enumerate(t), 0 === this._remaining && M(this.promise, this._result))) : A(this.promise, new Error("Array Methods must be provided an Array")); 7990 } 7991 return e.prototype._enumerate = function(e) { 7992 for (var t = 0; void 0 === this._state && t < e.length; t++) this._eachEntry(e[t], t); 7993 }, e.prototype._eachEntry = function(e, t) { 7994 var n = this._instanceConstructor, i = n.resolve; 7995 if (i === _) { 7996 var r = void 0, o = void 0, s = !1; 7997 try { 7998 r = e.then; 7999 } catch (e) { 8000 s = !0, o = e; 8001 } 8002 if (r === w && void 0 !== e._state) this._settledAt(e._state, t, e._result); else if ("function" != typeof r) this._remaining--, 8003 this._result[t] = e; else if (n === F) { 8004 var a = new n(E); 8005 s ? A(a, o) : C(a, e, r), this._willSettleAt(a, t); 8006 }
8006 else this._willSettleAt(new n((function(t) { 8007 return t(e); 8008 })), t); 8009 } else this._willSettleAt(i(e), t); 8010 }, e.prototype._settledAt = function(e, t, n) { 8011 var i = this.promise; 8012 void 0 === i._state && (this._remaining--, 2 === e ? A(i, n) : this._result[t] = n), 8013 0 === this._remaining && M(i, this._result); 8014 }, e.prototype._willSettleAt = function(e, t) { 8015 var n = this; 8016 O(e, void 0, (function(e) { 8017 return n._settledAt(1, t, e); 8018 }), (function(e) { 8019 return n._settledAt(2, t, e); 8020 })); 8021 }, e; 8022 }(), F = function() { 8023 function t(e) { 8024 this[S] = L++, this._result = this._state = void 0, this._subscribers = [], E !== e && ("function" != typeof e && function() { 8025 throw new TypeError("You must pass a resolver function as the first argument to the promise constructor"); 8026 }(), this instanceof t ? function(e, t) { 8027 try { 8028 t((function(t) { 8029 T(e, t); 8030 }), (function(t) { 8031 A(e, t); 8032 })); 8033 } catch (t) { 8034 A(e, t); 8035 } 8036 }(this, e) : function() { 8037 throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
8037onstructor cannot be called as a function."); 8038 }()); 8039 } 8040 return t.prototype.catch = function(e) { 8041 return this.then(null, e); 8042 }, t.prototype.finally = function(t) { 8043 var n = this.constructor; 8044 return e(t) ? this.then((function(e) { 8045 return n.resolve(t()).then((function() { 8046 return e; 8047 })); 8048 }), (function(e) { 8049 return n.resolve(t()).then((function() { 8050 throw e; 8051 })); 8052 })) : this.then(t, t); 8053 }, t; 8054 }(); 8055 return F.prototype.then = w, F.all = function(e) { 8056 return new N(this, e).promise; 8057 }, F.race = function(e) { 8058 var t = this; 8059 return i(e) ? new t((function(n, i) { 8060 for (var r = e.length, o = 0; o < r; o++) t.resolve(e[o]).then(n, i); 8061 })) : new t((function(e, t) { 8062 return t(new TypeError("You must pass an array to race.")); 8063 })); 8064 }, F.resolve = _, F.reject = function(e) { 8065 var t = new this(E); 8066 return A(t, e), t; 8067 }, F._setScheduler = function(e) { 8068 s = e; 8069 }, F._setAsap = function(e) { 8070 a = e; 8071 }, F._asap = a, F.polyfill = function() { 8072 var e = void 0; 8073 if (void 0 !== n) e = n; else if ("undefined" != typeof self) e = self; else try { 8074 e = Function("return this")(); 8075 } catch (e) { 8076 throw new Error("polyfill failed because global object is unavailable in this environment"); 8077 } 8078 var t = e.Promise; 8079 if (t) { 8080 var i = null; 8081 try { 8082 i = Object.prototype.toString.call(t.resolve()); 8083 } catch (e) {} 8084 if ("[object Promise]" === i && !t.cast) return; 8085 } 8086 e.Promise = F; 8087 }, F.Promise = F, F; 8088 }, e.exports = i(); 8089 }).call(this, n(558), n(96)); 8090 }, function(e, t) { 8091 var n = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")(); 8092 "number" == typeof __g && (__g = n); 8093 }, function(e, t) { 8094 e.exports = function(e) { 8095 return "object" == typeof e ? null !== e : "function" == typeof e; 8096 }; 8097 }, function(e, t, n) { 8098 e.exports = !n(277)((function() { 8099 return 7 != Object.defineProperty({}, "a", { 8100 get: function() { 8101 return 7; 8102 } 8103 }).a; 8104 })); 8105 }, function(e, t, n) { 8106 "use strict"; 8107 n.d(t, "a", (function() { 8108 return s; 8109 })); 8110 var i = n(361), r = n.n(i), o = n(0); 8111 function s(e = ".js-select-autocomplete", t = {}) { 8112 const n = o.extendDefaults({ 8113 choicesOptions: {}, 8114 onSelect: e => {} 8115 }, t); 8116 let i; 8117 i = "string" == typeof e ? [ ...document.querySelectorAll(e) ] : [ e ]; 8118 i.forEach(e => { 8119 if (!o.hasClass(e, "-is-initialized")) { 8120 o.addClass(e, "-is-initialized"); 8121 const i = t.choicesOptions, s = new r.a(e, { 8122 removeItemButton: !1, 8123 itemSelectText: "", 8124 noResultsText: "Aucun résultat", 8125 noChoicesText: "Aucun choix", 8126 fuseOptions: { 8127 threshold: .1, 8128 location: 0, 8129 distance: 50 8130 }, 8131 ...i 8132 }); 8133 s.passedElement.element.addEventListener("choice", e => { 8134 n.onSelect(e); 8135 }), s.input.element.addEventListener("input", e => { 8136 var t; 8137 t = s.containerOuter.element, "" !== s.input.element.value ? setTimeout(() => { 8138 o.addClass(t, "is-input"); 8139 }, 150) : o.removeClass(t, "is-input"); 8140 }); 8141 } 8142 }); 8143 } 8144 }, , , , , , , , , , , , , , , , , , , , , function(e, t, n) { 8145 e.exports = !n(27) && !n(14)((function() { 8146 return 7 != Object.defineProperty(n(195)("div"), "a", { 8147 get: function() { 8148 return 7; 8149 } 8150 }).a; 8151 })); 8152 }, function(e, t, n) { 8153 var i = n(13), r = n(24), o = n(88), s = n(196), a = n(28).f; 8154 e.exports = function(e) { 8155 var t = r.Symbol || (r.Symbol = o ? {} : i.Symbol || {}); 8156 "_" == e.charAt(0) || e in t || a(t, e, { 8157 value: s.f(e) 8158 }); 8159 }; 8160 }, function(e, t, n) { 8161 var i = n(45), r = n(47), o = n(149)(!1), s = n(197)("IE_PROTO"); 8162 e.exports = function(e, t) { 8163 var n, a = r(e), l = 0, c = []; 8164 for (n in a) n != s && i(a, n) && c.push(n); 8165 for (;t.length > l;
8165 ) i(a, n = t[l++]) && (~o(c, n) || c.push(n)); 8166 return c; 8167 }; 8168 }, function(e, t, n) { 8169 var i = n(28), r = n(15), o = n(89); 8170 e.exports = n(27) ? Object.defineProperties : function(e, t) { 8171 r(e); 8172 for (var n, s = o(t), a = s.length, l = 0; a > l; ) i.f(e, n = s[l++], t[n]); 8173 return e; 8174 }; 8175 }, function(e, t, n) { 8176 var i = n(47), r = n(92).f, o = {}.toString, s = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; 8177 e.exports.f = function(e) { 8178 return s && "[object Window]" == o.call(e) ? function(e) { 8179 try { 8180 return r(e); 8181 } catch (e) { 8182 return s.slice(); 8183 } 8184 }(e) : r(i(e)); 8185 }; 8186 }, function(e, t, n) { 8187 "use strict"; 8188 var i = n(27), r = n(89), o = n(150), s = n(131), a = n(37), l = n(130), c = Object.assign; 8189 e.exports = !c || n(14)((function() { 8190 var e = {}, t = {}, n = Symbol(), i = "abcdefghijklmnopqrst"; 8191 return e[n] = 7, i.split("").forEach((function(e) { 8192 t[e] = e; 8193 })), 7 != c({}, e)[n] || Object.keys(c({}, t)).join("") != i; 8194 })) ? function(e, t) { 8195 for (var n = a(e), c = arguments.length, u = 1, d = o.f, h = s.f; c > u; ) for (var f, p = l(arguments[u++]), m = d ? r(p).concat(d(p)) : r(p), g = m.length, v = 0; g > v; ) f = m[v++], 8196 i && !h.call(p, f) || (n[f] = p[f]); 8197 return n; 8198 } : c; 8199 }, function(e, t) { 8200 e.exports = Object.is || function(e, t) { 8201 return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t; 8202 }; 8203 }, function(e, t, n) { 8204 "use strict"; 8205 var i = n(56), r = n(16), o = n(253), s = [].slice, a = {}, l = function(e, t, n) { 8206 if (!(t in a)) { 8207 for (var i = [], r = 0; r < t; r++) i[r] = "a[" + r + "]"; 8208 a[t] = Function("F,a", "return new F(" + i.join(",") + ")"); 8209 } 8210 return a[t](e, n); 8211 }; 8212 e.exports = Function.bind || function(e) { 8213 var t = i(this), n = s.call(arguments, 1), a = function() { 8214 var i = n.concat(s.call(arguments)); 8215 return this instanceof a ? l(t, i.length, i) : o(t, i, e); 8216 }; 8217 return r(t.prototype) && (a.prototype = t.prototype), a; 8218 }; 8219 }, function(e, t) { 8220 e.exports = function(e, t, n) { 8221 var i = void 0 === n; 8222 switch (t.length) { 8223 case 0: 8224 return i ? e() : e.call(n); 8225 8226 case 1: 8227 return i ? e(t[0]) : e.call(n, t[0]); 8228 8229 case 2: 8230 return i ? e(t[0], t[1]) : e.call(n, t[0], t[1]); 8231 8232 case 3: 8233 return i ? e(t[0], t[1], t[2]) : e.call(n, t[0], t[1], t[2]); 8234 8235 case 4: 8236 return i ? e(t[0], t[1], t[2], t[3]) : e.call(n, t[0], t[1], t[2], t[3]); 8237 } 8238 return e.apply(n, t); 8239 }; 8240 }, function(e, t, n) { 8241 var i = n(13).parseInt, r = n(117).trim, o = n(201), s = /^[-+]?0[xX]/; 8242 e.exports = 8 !== i(o + "08") || 22 !== i(o + "0x16") ? function(e, t) { 8243 var n = r(String(e), 3); 8244 return i(n, t >>> 0 || (s.test(n) ? 16 : 10)); 8245 } : i; 8246 }, function(e, t, n) { 8247 var i = n(13).parseFloat, r = n(117).trim; 8248 e.exports = 1 / i(n(201) + "-0") != -1 / 0 ? function(e) { 8249 var t = r(String(e), 3), n = i(t); 8250 return 0 === n && "-" == t.charAt(0) ? -0 : n; 8251 } : i; 8252 }, function(e, t, n) { 8253 var i = n(67); 8254 e.exports = function(e, t) { 8255 if ("number" != typeof e && "Number" != i(e)) throw TypeError(t); 8256 return +e; 8257 }; 8258 }, function(e, t, n) { 8259 var i = n(16), r = Math.floor; 8260 e.exports = function(e) { 8261 return !i(e) && isFinite(e) && r(e) === e; 8262 }; 8263 }, function(e, t) { 8264 e.exports = Math.log1p || function(e) { 8265 return (e = +e) > -1e-8 && e < 1e-8 ? e - e * e / 2 : Math.log(1 + e); 8266 }; 8267 }, function(e, t, n) { 8268 "use strict"; 8269 var i = n(91), r = n(86), o = n(116), s = {}; 8270 n(46)(s, n(21)("iterator"), (function() { 8271 return this; 8272 })), e.exports = function(e, t, n) { 8273 e.prototype = i(s, { 8274 next: r(1, n) 8275 }), o(e, t + " Iterator"); 8276 }; 8277 }, function(e, t, n) { 8278 var i = n(15); 8279 e.exports = function(e, t, n, r) { 8280 try { 8281 return r ? t(i(n)[0], n[1]) : t(n); 8282 } catch (t) { 8283 var o = e.return; 8284 throw void 0 !== o && i(o.call(e)), t; 8285 } 8286 }; 8287 }, function(e, t, n) { 8288 var i = n(479); 8289 e.exports = function(e, t) { 8290 return new (i(e))(t); 8291 }; 8292 }, function(e, t, n) { 8293 var i = n(56), r = n(37), o = n(130), s = n(22); 8294 e.exports = function(e, t, n, a, l) { 8295 i(t); 8296 var c = r(e), u = o(c), d = s(c.length), h = l ? d - 1 : 0, f = l ? -1 : 1; 8297 if (n < 2) for (;;) { 8298 if (h in u) { 8299 a = u[h], h += f; 8300 break; 8301 } 8302 if (h += f, l ? h < 0 : d <= h) throw TypeError("Reduce of empty array with
8302no initial value"); 8303 } 8304 for (;l ? h >= 0 : d > h; h += f) h in u && (a = t(a, u[h], h, c)); 8305 return a; 8306 }; 8307 }, function(e, t, n) { 8308 "use strict"; 8309 var i = n(37), r = n(90), o = n(22); 8310 e.exports = [].copyWithin || function(e, t) { 8311 var n = i(this), s = o(n.length), a = r(e, s), l = r(t, s), c = arguments.length > 2 ? arguments[2] : void 0, u = Math.min((void 0 === c ? s : r(c, s)) - l, s - a), d = 1; 8312 for (l < a && a < l + u && (d = -1, l += u - 1, a += u - 1); u-- > 0; ) l in n ? n[a] = n[l] : delete n[a], 8313 a += d, l += d; 8314 return n; 8315 }; 8316 }, function(e, t) { 8317 e.exports = function(e, t) { 8318 return { 8319 value: t, 8320 done: !!e 8321 }; 8322 }; 8323 }, function(e, t, n) { 8324 "use strict"; 8325 var i = n(216); 8326 n(1)({ 8327 target: "RegExp", 8328 proto: !0, 8329 forced: i !== /./.exec 8330 }, { 8331 exec: i 8332 }); 8333 }, function(e, t, n) { 8334 n(27) && "g" != /./g.flags && n(28).f(RegExp.prototype, "flags", { 8335 configurable: !0, 8336 get: n(153) 8337 }); 8338 }, function(e, t, n) { 8339 "use strict"; 8340 var i, r, o, s, a = n(88), l = n(13), c = n(55), u = n(132), d = n(1), h = n(16), f = n(56), p = n(120), m = n(156), g = n(133), v = n(218).set, b = n(499)(), y = n(268), x = n(500), w = n(157), _ = n(269), S = l.TypeError, E = l.process, C = E && E.versions, T = C && C.v8 || "", k = l.Promise, M = "process" == u(E), A = function() {}, O = r = y.f, P = !!function() { 8341 try { 8342 var e = k.resolve(1), t = (e.constructor = {})[n(21)("species")] = function(e) { 8343 e(A, A); 8344 }; 8345 return (M || "function" == typeof PromiseRejectionEvent) && e.then(A) instanceof t && 0 !== T.indexOf("6.6") && -1 === w.indexOf("Chrome/66"); 8346 } catch (e) {} 8347 }(), I = function(e) { 8348 var t; 8349 return !(!h(e) || "function" != typeof (t = e.then)) && t; 8350 }, L = function(e, t) { 8351 if (!e._n) { 8352 e._n = !0; 8353 var n = e._c; 8354 b((function() { 8355 for (var i = e._v, r = 1 == e._s, o = 0, s = function(t) { 8356 var n, o, s, a = r ? t.ok : t.fail, l = t.resolve, c = t.reject, u = t.domain; 8357 try { 8358 a ? (r || (2 == e._h && F(e), e._h = 1), !0 === a ? n = i : (u && u.enter(), n = a(i), 8359 u && (u.exit(), s = !0)), n === t.promise ? c(S("Promise-chain cycle")) : (o = I(n)) ? o.call(n, l, c) : l(n)) : c(i); 8360 } catch (e) { 8361 u && !s && u.exit(), c(e); 8362 } 8363 }; n.length > o; ) s(n[o++]); 8364 e._c = [], e._n = !1, t && !e._h && D(e); 8365 })); 8366 } 8367 }, D = function(e) { 8368 v.call(l, (function() { 8369 var t, n, i, r = e._v, o = N(e); 8370 if (o && (t = x((function() { 8371 M ? E.emit("unhandledRejection", r, e) : (n = l.onunhandledrejection) ? n({ 8372 promise: e, 8373 reason: r 8374 }) : (i = l.console) && i.error && i.error("Unhandled promise rejection", r); 8375 })), e._h = M || N(e) ? 2 : 1), e._a = void 0, o && t.e) throw t.v; 8376 })); 8377 }, N = function(e) { 8378 return 1 !== e._h && 0 === (e._a || e._c).length; 8379 }, F = function(e) { 8380 v.call(l, (function() { 8381 var t; 8382 M ? E.emit("rejectionHandled", e) : (t = l.onrejectionhandled) && t({ 8383 promise: e, 8384 reason: e._v 8385 }); 8386 })); 8387 }, j = function(e) { 8388 var t = this; 8389 t._d || (t._d = !0, (t = t._w || t)._v = e, t._s = 2, t._a || (t._a = t._c.slice()), 8390 L(t, !0)); 8391 }, R = function(e) { 8392 var t, n = this; 8393 if (!n._d) { 8394 n._d = !0, n = n._w || n; 8395 try { 8396 if (n === e) throw S("Promise can't be resolved
8396itself"); 8397 (t = I(e)) ? b((function() { 8398 var i = { 8399 _w: n, 8400 _d: !1 8401 }; 8402 try { 8403 t.call(e, c(R, i, 1), c(j, i, 1)); 8404 } catch (e) { 8405 j.call(i, e); 8406 } 8407 })) : (n._v = e, n._s = 1, L(n, !1)); 8408 } catch (e) { 8409 j.call({ 8410 _w: n, 8411 _d: !1 8412 }, e); 8413 } 8414 } 8415 }; 8416 P || (k = function(e) { 8417 p(this, k, "Promise", "_h"), f(e), i.call(this); 8418 try { 8419 e(c(R, this, 1), c(j, this, 1)); 8420 } catch (e) { 8421 j.call(this, e); 8422 } 8423 }, (i = function(e) { 8424 this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, 8425 this._n = !1; 8426 }).prototype = n(121)(k.prototype, { 8427 then: function(e, t) { 8428 var n = O(g(this, k)); 8429 return n.ok = "function" != typeof e || e, n.fail = "function" == typeof t && t, 8430 n.domain = M ? E.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && L(this, !1), 8431 n.promise; 8432 }, 8433 catch: function(e) { 8434 return this.then(void 0, e); 8435 } 8436 }), o = function() { 8437 var e = new i; 8438 this.promise = e, this.resolve = c(R, e, 1), this.reject = c(j, e, 1); 8439 }, y.f = O = function(e) { 8440 return e === k || e === s ? new o(e) : r(e); 8441 }), d(d.G + d.W + d.F * !P, { 8442 Promise: k 8443 }), n(116)(k, "Promise"), n(119)("Promise"), s = n(24).Promise, d(d.S + d.F * !P, "Promise", { 8444 reject: function(e) { 8445 var t = O(this); 8446 return (0, t.reject)(e), t.promise; 8447 } 8448 }), d(d.S + d.F * (a || !P), "Promise", { 8449 resolve: function(e) { 8450 return _(a && this === s ? k : this, e); 8451 } 8452 }), d(d.S + d.F * !(P && n(152)((function(e) { 8453 k.all(e).catch(A); 8454 }))), "Promise", { 8455 all: function(e) { 8456 var t = this, n = O(t), i = n.resolve, r = n.reject, o = x((function() { 8457 var n = [], o = 0, s = 1; 8458 m(e, !1, (function(e) { 8459 var a = o++, l = !1; 8460 n.push(void 0), s++, t.resolve(e).then((function(e) { 8461 l || (l = !0, n[a] = e, --s || i(n)); 8462 }), r); 8463 })), --s || i(n); 8464 })); 8465 return o.e && r(o.v), n.promise; 8466 }, 8467 race: function(e) { 8468 var t = this, n = O(t), i = n.reject, r = x((function() { 8469 m(e, !1, (function(e) { 8470 t.resolve(e).then(n.resolve, i); 8471 })); 8472 })); 8473 return r.e && i(r.v), n.promise; 8474 } 8475 }); 8476 }, function(e, t, n) { 8477 "use strict"; 8478 var i = n(56); 8479 function r(e) { 8480 var t, n; 8481 this.promise = new e((function(e, i) { 8482 if (void 0 !== t || void 0 !== n) throw TypeError("Bad Promise constructor"); 8483 t = e, n = i; 8484 })), this.resolve = i(t), this.reject = i(n); 8485 } 8486 e.exports.f = function(e) { 8487 return new r(e); 8488 }; 8489 }, function(e, t, n) { 8490 var i = n(15), r = n(16), o = n(268); 8491 e.exports = function(e, t) { 8492 if (i(e), r(t) && t.constructor === e) return t; 8493 var n = o.f(e); 8494 return (0, n.resolve)(t), n.promise; 8495 }; 8496 }, function(e, t, n) { 8497 "use strict"; 8498 var i = n(28).f, r = n(91), o = n(121), s = n(55), a = n(120), l = n(156), c = n(207), u = n(264), d = n(119), h = n(27), f = n(74).fastKey, p = n(95), m = h ? "_s" : "size", g = function(e, t) { 8499 var n, i = f(t); 8500 if ("F" !== i) return e._i[i]; 8501 for (n = e._f; n; n = n.n) if (n.k == t) return n; 8502 }; 8503 e.exports = { 8504 getConstructor: function(e, t, n, c) { 8505 var u = e((function(e, i) { 8506 a(e, u, t, "_i"), e._t = t, e._i = r(null), e._f = void 0, e._l = void 0, e[m] = 0, 8507 null != i && l(i, n, e[c], e); 8508 })); 8509 return o(u.prototype, { 8510 clear: function() { 8511 for (var e = p(this, t), n = e._i, i = e._f; i; i = i.n) i.r = !0, i.p && (i.p = i.p.n = void 0), 8512 delete n[i.i]; 8513 e._f = e._l = void 0, e[m] = 0; 8514 }, 8515 delete: function(e) { 8516 var n = p(this, t), i = g(n, e); 8517 if (i) { 8518 var r = i.n, o = i.p; 8519 delete n._i[i.i], i.r = !0, o && (o.n = r), r && (r.p = o), n._f == i && (n._f = r), 8520 n._l == i && (n._l = o), n[m]--; 8521 } 8522 return !!i; 8523 },
8524 forEach: function(e) { 8525 p(this, t); 8526 for (var n, i = s(e, arguments.length > 1 ? arguments[1] : void 0, 3); n = n ? n.n : this._f; ) for (i(n.v, n.k, this); n && n.r; ) n = n.p; 8527 }, 8528 has: function(e) { 8529 return !!g(p(this, t), e); 8530 } 8531 }), h && i(u.prototype, "size", { 8532 get: function() { 8533 return p(this, t)[m]; 8534 } 8535 }), u; 8536 }, 8537 def: function(e, t, n) { 8538 var i, r, o = g(e, t); 8539 return o ? o.v = n : (e._l = o = { 8540 i: r = f(t, !0), 8541 k: t, 8542 v: n, 8543 p: i = e._l, 8544 n: void 0, 8545 r: !1 8546 }, e._f || (e._f = o), i && (i.n = o), e[m]++, "F" !== r && (e._i[r] = o)), e; 8547 }, 8548 getEntry: g, 8549 setStrong: function(e, t, n) { 8550 c(e, t, (function(e, n) { 8551 this._t = p(e, t), this._k = n, this._l = void 0; 8552 }), (function() { 8553 for (var e = this._k, t = this._l; t && t.r; ) t = t.p; 8554 return this._t && (this._l = t = t ? t.n : this._t._f) ? u(0, "keys" == e ? t.k : "values" == e ? t.v : [ t.k, t.v ]) : (this._t = void 0, 8555 u(1)); 8556 }), n ? "entries" : "values", !n, !0), d(t); 8557 } 8558 }; 8559 }, function(e, t, n) { 8560 "use strict"; 8561 var i = n(121), r = n(74).getWeak, o = n(15), s = n(16), a = n(120), l = n(156), c = n(60), u = n(45), d = n(95), h = c(5), f = c(6), p = 0, m = function(e) { 8562 return e._l || (e._l = new g); 8563 }, g = function() { 8564 this.a = []; 8565 }, v = function(e, t) { 8566 return h(e.a, (function(e) { 8567 return e[0] === t; 8568 })); 8569 }; 8570 g.prototype = { 8571 get: function(e) { 8572 var t = v(this, e); 8573 if (t) return t[1]; 8574 }, 8575 has: function(e) { 8576 return !!v(this, e); 8577 }, 8578 set: function(e, t) { 8579 var n = v(this, e); 8580 n ? n[1] = t : this.a.push([ e, t ]); 8581 }, 8582 delete: function(e) { 8583 var t = f(this.a, (function(t) { 8584 return t[0] === e; 8585 })); 8586 return ~t && this.a.splice(t, 1), !!~t; 8587 } 8588 }, e.exports = { 8589 getConstructor: function(e, t, n, o) { 8590 var c = e((function(e, i) { 8591 a(e, c, t, "_i"), e._t = t, e._i = p++, e._l = void 0, null != i && l(i, n, e[o], e); 8592 })); 8593 return i(c.prototype, { 8594 delete: function(e) { 8595 if (!s(e)) return !1; 8596 var n = r(e); 8597 return !0 === n ? m(d(this, t)).delete(e) : n && u(n, this._i) && delete n[this._i]; 8598 }, 8599 has: function(e) { 8600 if (!s(e)) return !1; 8601 var n = r(e); 8602 return !0 === n ? m(d(this, t)).has(e) : n && u(n, this._i); 8603 } 8604 }), c; 8605 }, 8606 def: function(e, t, n) { 8607 var i = r(o(t), !0); 8608 return !0 === i ? m(e).set(t, n) : i[e._i] = n, e; 8609 }, 8610 ufstore: m 8611 }; 8612 }, function(e, t, n) { 8613 var i = n(57), r = n(22); 8614 e.exports = function(e) { 8615 if (void 0 === e) return 0; 8616 var t = i(e), n = r(t); 8617 if (t !== n) throw RangeError("Wrong length!"); 8618 return n; 8619 }; 8620 }, function(e, t, n) { 8621 var i = n(92), r = n(150), o = n(15), s = n(13).Reflect; 8622 e.exports = s && s.ownKeys || function(e) { 8623 var t = i.f(o(e)), n = r.f; 8624 return n ? t.concat(n(e)) : t; 8625 }; 8626 }, function(e, t, n) { 8627 var i = n(22), r = n(203), o = n(68); 8628 e.exports = function(e, t, n, s) { 8629 var a = String(o(e)), l = a.length, c = void 0 === n ? " " : String(n), u = i(t); 8630 if (u <= l || "" == c) return a; 8631 var d = u - l, h = r.call(c, Math.ceil(d / c.length)); 8632 return h.length > d && (h = h.slice(0, d)), s ? h + a : a + h; 8633 }; 8634 }, function(e, t, n) { 8635 var i = n(27), r = n(89), o = n(47), s = n(131).f; 8636 e.exports = function(e) { 8637 return function(t) { 8638 for (var n, a = o(t), l = r(a), c = l.length, u = 0, d = []; c > u; ) n = l[u++], 8639 i && !s.call(a, n) || d.push(e ? [ n, a[n] ] : a[n]); 8640 return d; 8641 }; 8642 }; 8643 }, function(e, t) { 8644 var n = e.exports = { 8645 version: "2.6.12" 8646 }; 8647 "number" == typeof __e && (__e = n); 8648 }, function(e, t) { 8649 e.exports = function(e) { 8650 try { 8651 return !!e(); 8652 } catch (e) { 8653 return !0; 8654 } 8655 }; 8656 }, function(e, t, n) { 8657 "use strict"; 8658 Object.defineProperty(t, "__esModule", { 8659 value: !0 8660 }); 8661 var i = s(n(279)), r = s(n(165)), o = s(n(324)); 8662 function s(e) {
8663 return e && e.__esModule ? e : { 8664 default: e 8665 }; 8666 } 8667 t.default = { 8668 blur: i.default, 8669 disabled: r.default, 8670 focus: o.default 8671 }, e.exports = t.default; 8672 }, function(e, t, n) { 8673 "use strict"; 8674 Object.defineProperty(t, "__esModule", { 8675 value: !0 8676 }), t.default = function(e) { 8677 var t = (0, r.default)({ 8678 label: "element/blur", 8679 context: e 8680 }); 8681 if (!(0, i.default)(t)) return null; 8682 if ("body" === t.nodeName.toLowerCase()) return null; 8683 if (t.blur) return t.blur(), document.activeElement; 8684 var n = (0, o.default)(t); 8685 try { 8686 n.HTMLElement.prototype.blur.call(t); 8687 } catch (e) { 8688 var s = n.document && n.document.body; 8689 if (!s) return null; 8690 var a = s.getAttribute("tabindex"); 8691 s.setAttribute("tabindex", "-1"), s.focus(), a ? s.setAttribute("tabindex", a) : s.removeAttribute("tabindex"); 8692 } 8693 return n.document.activeElement; 8694 }; 8695 var i = s(n(103)), r = s(n(9)), o = s(n(134)); 8696 function s(e) { 8697 return e && e.__esModule ? e : { 8698 default: e 8699 }; 8700 } 8701 e.exports = t.default; 8702 }, function(e, t, n) { 8703 "use strict"; 8704 Object.defineProperty(t, "__esModule", { 8705 value: !0 8706 }), t.default = function(e) { 8707 var t = function() { 8708 var e = { 8709 activeElement: document.activeElement, 8710 windowScrollTop: window.scrollTop, 8711 windowScrollLeft: window.scrollLeft, 8712 bodyScrollTop: document.body.scrollTop, 8713 bodyScrollLeft: document.body.scrollLeft 8714 }, t = document.createElement("iframe"); 8715 t.setAttribute("style", "position:absolute; position:fixed; top:0; left:-2px; width:1px; height:1px; overflow:hidden;"), 8716 t.setAttribute("aria-live", "off"), t.setAttribute("aria-busy", "true"), t.setAttribute("aria-hidden", "true"), 8717 document.body.appendChild(t); 8718 var n = t.contentWindow, i = n.document; 8719 i.open(), i.close(); 8720 var r = i.createElement("div"); 8721 return i.body.appendChild(r), e.iframe = t, e.wrapper = r, e.window = n, e.document = i, 8722 e; 8723 }(), n = {}; 8724 return Object.keys(e).map((function(i) { 8725 n[i] = function(e, t) { 8726 e.wrapper.innerHTML = ""; 8727 var n = "string" == typeof t.element ? e.document.createElement(t.element) : t.element(e.wrapper, e.document), i = t.mutate && t.mutate(n, e.wrapper, e.document); 8728 i || !1 === i || (i = n); 8729 return !n.parentNode && e.wrapper.appendChild(n), i && i.focus && i.focus(), t.validate ? t.validate(n, i, e.document) : e.document.activeElement === i; 8730 }(t, e[i]); 8731 })), function(e) { 8732 e.activeElement === document.body ? (document.activeElement && document.activeElement.blur && document.activeElement.blur(), 8733 o.default.is.IE10 && document.body.focus()) : e.activeElement && e.activeElement.focus && e.activeElement.focus(); 8734 document.body.removeChild(e.iframe), window.scrollTop = e.windowScrollTop, window.scrollLeft = e.windowScrollLeft, 8735 document.body.scrollTop = e.bodyScrollTop, document.body.scrollLeft = e.bodyScrollLeft; 8736 }(t), n; 8737 }; 8738 var i, r = n(23), o = (i = r) && i.__esModule ? i : { 8739 default: i 8740 }; 8741 e.exports = t.default; 8742 }, function(e, t, n) { 8743 (function(e, i) { 8744 var r; 8745 (function() { 8746 "use strict"; 8747 var o = { 8748 function: !0, 8749 object: !0 8750 }, s = o[typeof window] && window || this, a = s, l = o[typeof t] && t, c = o[typeof e] && e && !e.nodeType && e, u = l && c && "object" == typeof i && i; 8751 !u || u.global !== u && u.window !== u && u.self !== u || (s = u); 8752 var d = Math.pow(2, 53) - 1, h = /\bOpera/, f = this, p = Object.prototype, m = p.hasOwnProperty, g = p.toString; 8753 function v(e) { 8754 return (e = String(e)).charAt(0).toUpperCase() + e.slice(1); 8755 } 8756 function b(e) { 8757 return e = E(e), /^(?:webOS|i(?:OS|P))/.test(e) ? e : v(e); 8758 } 8759 function y(e, t) { 8760 for (var n in e) m.call(e, n) && t(e[n], n, e); 8761 } 8762 function x(e) { 8763 return null == e ? v(e) : g.call(e).slice(8, -1); 8764 } 8765 function w(e, t) { 8766 var n = null != e ? typeof e[t] : "number"; 8767 return !(/^(?:boolean|number|string|undefined)$/.test(n) || "object" == n && !e[t]); 8768 } 8769 function _(e) { 8770 return String(e).replace(/([ -])(?!$)/g, "$1?"); 8771 } 8772 function S(e, t) { 8773 var n = null; 8774 return function(e, t) { 8775 var n = -1, i = e ? e.length : 0; 8776 if ("number" == typeof i && i > -1 && i <= d) for (;++n < i; ) t(e[n], n, e); else y(e, t); 8777 }(e, (function(i, r) { 8778 n = t(n, i, r, e); 8779 })), n; 8780 } 8781 function E(e) { 8782 return String(e).replace(/^ +| +$/g, ""); 8783 } 8784 var C = function e(t) { 8785 var n = s, i = t && "object" == typeof t && "String" != x(t); 8786 i && (n = t, t = null); 8787 var r = n.navigator || {}, o = r.userAgent || ""; 8788 t || (t = o); 8789 var l, c, u = i || f == a, d = i ? !!r.likeChrome : /\bChrome\b/.test(t) && !/internal|\n/i.test(g.toString()), p = i ? "Object" : "ScriptBridgingProxyObject", m = i ? "Object" : "Environment", v = i && n.java ? "JavaPackage" : x(n.java), C = i ? "Object" : "RuntimeObject", T = /\bJava/.test(v) && n.java, k = T && x(n.environment) == m, M = T ? "a" : "α", A = T ? "b" : "β", O = n.document || {}, P = n.operamini || n.opera, I = h.test(I = i && P ? P["[[Class]]"] : x(P)) ? I : P = null, L = t, D = [], N = null, F = t == o, j = F && P && "function" == typeof P.version && P.version(), R = S([ { 8790 label: "EdgeHTML", 8791 pattern: "Edge" 8792 }, "Trident", { 8793 label: "WebKit", 8794 pattern: "AppleWebKit" 8795 }, "iCab", "Presto", "NetFront", "Tasman", "KHTML", "Gecko" ], (function(e, n) { 8796 return e || RegExp("\\b" + (n.pattern || _(n)) + "\\b", "i").exec(t) && (n.label || n); 8797 })), B = function(e) { 8798 return S(e, (function(e, n) { 8799 return e || RegExp("\\b" + (n.pattern || _(n)) + "\\b", "i").exec(t) && (n.label || n); 8800 })); 8801 }([ "Adobe AIR", "Arora", "Avant Browser", "Breach", "Camino", "Epiphany", "Fennec", "Flock", "Galeon", "GreenBrowser", "iCab", "Iceweasel", "K-Meleon", "Konqueror", "Lunascape", "Maxthon", { 8802 label: "Microsoft Edge", 8803 pattern: "Edge" 8804 }, "Midori", "Nook Browser", "PaleMoon", "PhantomJS", "Raven", "Rekonq", "RockMelt", "SeaMonkey", { 8805 label: "Silk", 8806 pattern: "(?:Cloud9|Silk-Accelerated)" 8807 }, "Sleipnir", "SlimBrowser", { 8808 label: "SRWare Iron", 8809 pattern: "Iron" 8810 }, "Sunrise", "Swiftfox", "WebPositive", "Opera Mini", { 8811 label: "Opera Mini", 8812 pattern: "OPiOS" 8813 }, "Opera", { 8814 label: "Opera", 8815 pattern: "OPR" 8816 }, "Chrome", { 8817 label: "Chrome Mobile", 8818 pattern: "(?:CriOS|CrMo)" 8819 }, { 8820 label: "Firefox", 8821 pattern: "(?:Firefox|Minefield)"
8822 }, { 8823 label: "Firefox for iOS", 8824 pattern: "FxiOS" 8825 }, { 8826 label: "IE", 8827 pattern: "IEMobile" 8828 }, { 8829 label: "IE", 8830 pattern: "MSIE" 8831 }, "Safari" ]), z = W([ { 8832 label: "BlackBerry", 8833 pattern: "BB10" 8834 }, "BlackBerry", { 8835 label: "Galaxy S", 8836 pattern: "GT-I9000" 8837 }, { 8838 label: "Galaxy S2", 8839 pattern: "GT-I9100" 8840 }, { 8841 label: "Galaxy S3", 8842 pattern: "GT-I9300" 8843 }, { 8844 label: "Galaxy S4", 8845 pattern: "GT-I9500" 8846 }, "Google TV", "Lumia", "iPad", "iPod", "iPhone", "Kindle", { 8847 label: "Kindle Fire", 8848 pattern: "(?:Cloud9|Silk-Accelerated)" 8849 }, "Nexus", "Nook", "PlayBook", "PlayStation 3", "PlayStation 4", "PlayStation Vita", "TouchPad", "Transformer", { 8850 label: "Wii U", 8851 pattern: "WiiU" 8852 }, "Wii", "Xbox One", { 8853 label: "Xbox 360", 8854 pattern: "Xbox" 8855 }, "Xoom" ]), H = function(e) { 8856 return S(e, (function(e, n, i) { 8857 return e || (n[z] || n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(z)] || RegExp("\\b" + _(i) + "(?:\\b|\\w*\\d)", "i").exec(t)) && i; 8858 })); 8859 }({ 8860 Apple: { 8861 iPad: 1, 8862 iPhone: 1, 8863 iPod: 1 8864 }, 8865 Archos: {}, 8866 Amazon: { 8867 Kindle: 1, 8868 "Kindle Fire": 1 8869 }, 8870 Asus: { 8871 Transformer: 1 8872 }, 8873 "Barnes & Noble": { 8874 Nook: 1 8875 }, 8876 BlackBerry: { 8877 PlayBook: 1 8878 }, 8879 Google: { 8880 "Google TV": 1, 8881 Nexus: 1 8882 }, 8883 HP: { 8884 TouchPad: 1 8885 }, 8886 HTC: {}, 8887 LG: {}, 8888 Microsoft: { 8889 Xbox: 1, 8890 "Xbox One": 1 8891 }, 8892 Motorola: { 8893 Xoom: 1 8894 }, 8895 Nintendo: { 8896 "Wii U": 1, 8897 Wii: 1 8898 }, 8899 Nokia: { 8900 Lumia: 1 8901 }, 8902 Samsung: { 8903 "Galaxy S": 1, 8904 "Galaxy S2": 1, 8905 "Galaxy S3": 1, 8906 "Galaxy S4": 1 8907 }, 8908 Sony: { 8909 "PlayStation 4": 1, 8910 "PlayStation 3": 1, 8911 "PlayStation Vita": 1 8912 } 8913 }), $ = function(e) { 8914 return S(e, (function(e, n) { 8915 var i = n.pattern || _(n); 8916 return !e && (e = RegExp("\\b" + i + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(t)) && (e = function(e, t, n) { 8917 var i = { 8918 "10.0": "10", 8919 6.4: "10 Technical Preview", 8920 6.3: "8.1", 8921 6.2: "8", 8922 6.1: "Server 2008 R2 / 7", 8923 "6.0": "Server 2008 / Vista", 8924 5.2: "Server 2003 / XP 64-bit", 8925 5.1: "XP", 8926 5.01: "2000 SP1", 8927 "5.0": "2000", 8928 "4.0": "NT", 8929 "4.90": "ME" 8930 }; 8931 return t && n && /^Win/i.test(e) && !/^Windows Phone /i.test(e) && (i = i[/[\d.]+$/.exec(e)]) && (e = "Windows " + i), 8932 e = String(e), t && n && (e = e.replace(RegExp(t, "i"), n)), e = b(e.replace(/ ce$/i, " CE").replace(/\bhpw/i, "web").replace(/\bMacintosh\b/, "Mac OS").replace(/_PowerPC\b/i, " OS").replace(/\b(OS X) [^ \d]+/i, "$1").replace(/\bMac (OS X)\b/, "$1").replace(/\/(\d)/, " $1").replace(/_/g, ".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i, "").replace(/\bx86\.64\b/gi, "x86_64").replace(/\b(Windows Phone) OS\b/, "$1").replace(/\b(Chrome OS \w+) [\d.]+\b/, "$1").split(" on ")[0]); 8933 }
vendor: 6,238 bytes, lines 8933-8981
8933(e, i, n.label || n)), e; 8934 })); 8935 }([ "Windows Phone", "Android", "CentOS", { 8936 label: "Chrome OS", 8937 pattern: "CrOS" 8938 }, "Debian", "Fedora", "FreeBSD", "Gentoo", "Haiku", "Kubuntu", "Linux Mint", "OpenBSD", "Red Hat", "SuSE", "Ubuntu", "Xubuntu", "Cygwin", "Symbian OS", "hpwOS", "webOS ", "webOS", "Tablet OS", "Linux", "Mac OS X", "Macintosh", "Mac", "Windows 98;", "Windows " ]); 8939 function W(e) { 8940 return S(e, (function(e, n) { 8941 var i = n.pattern || _(n); 8942 return !e && (e = RegExp("\\b" + i + " *\\d+[.\\w_]*", "i").exec(t) || RegExp("\\b" + i + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(t)) && ((e = String(n.label && !RegExp(i, "i").test(n.label) ? n.label : e).split("/"))[1] && !/[\d.]+/.test(e[0]) && (e[0] += " " + e[1]), 8943 n = n.label || n, e = b(e[0].replace(RegExp(i, "i"), n).replace(RegExp("; *(?:" + n + "[_-])?", "i"), " ").replace(RegExp("(" + n + ")[-_.]?(\\w)", "i"), "$1 $2"))), 8944 e; 8945 })); 8946 } 8947 if (R && (R = [ R ]), H && !z && (z = W([ H ])), (l = /\bGoogle TV\b/.exec(z)) && (z = l[0]), 8948 /\bSimulator\b/i.test(t) && (z = (z ? z + " " : "") + "Simulator"), "Opera Mini" == B && /\bOPiOS\b/.test(t) && D.push("running in Turbo/Uncompressed mode"), 8949 "IE" == B && /\blike iPhone OS\b/.test(t) ? (H = (l = e(t.replace(/like iPhone OS/, ""))).manufacturer, 8950 z = l.product) : /^iP/.test(z) ? (B || (B = "Safari"), $ = "iOS" + ((l = / OS ([\d_]+)/i.exec(t)) ? " " + l[1].replace(/_/g, ".") : "")) : "Konqueror" != B || /buntu/i.test($) ? H && "Google" != H && (/Chrome/.test(B) && !/\bMobile Safari\b/i.test(t) || /\bVita\b/.test(z)) || /\bAndroid\b/.test($) && /^Chrome/.test(B) && /\bVersion\//i.test(t) ? (B = "Android Browser", 8951 $ = /\bAndroid\b/.test($) ? $ : "Android") : "Silk" == B ? (/\bMobi/i.test(t) || ($ = "Android", 8952 D.unshift("desktop mode")), /Accelerated *= *true/i.test(t) && D.unshift("accelerated")) : "PaleMoon" == B && (l = /\bFirefox\/([\d.]+)\b/.exec(t)) ? D.push("identifying as Firefox " + l[1]) : "Firefox" == B && (l = /\b(Mobile|Tablet|TV)\b/i.exec(t)) ? ($ || ($ = "Firefox OS"), 8953 z || (z = l[1])) : B && !(l = !/\bMinefield\b/i.test(t) && /\b(?:Firefox|Safari)\b/.exec(B)) || (B && !z && /[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(l + "/") + 8)) && (B = null), 8954 (l = z || H || $) && (z || H || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test($)) && (B = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test($) ? $ : l) + " Browser")) : $ = "Kubuntu", 8955 j || (j = S([ "(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|Silk(?!/[\\d.]+$))", "Version", _(B), "(?:Firefox|Minefield|NetFront)" ], (function(e, n) { 8956 return e || (RegExp(n + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(t) || 0)[1] || null; 8957 }))), (l = ("iCab" == R && parseFloat(j) > 3 ? "WebKit" : /\bOpera\b/.test(B) && (/\bOPR\b/.test(t) ? "Blink" : "Presto")) || /\b(?:Midori|Nook|Safari)\b/i.test(t) && !/^(?:Trident|EdgeHTML)$/.test(R) && "WebKit" || !R && /\bMSIE\b/i.test(t) && ("Mac OS" == $ ? "Tasman" : "Trident") || "WebKit" == R && /\bPlayStation\b(?! Vita\b)/i.test(B) && "NetFront") && (R = [ l ]), 8958 "IE" == B && (l = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t) || 0)[1]) ? (B += " Mobile", 8959 $ = "Windows Phone " + (/\+$/.test(l) ? l : l + ".x"), D.unshift("desktop mode")) : /\bWPDesktop\b/i.test(t) ? (B = "IE Mobile", 8960 $ = "Windows Phone 8.x", D.unshift("desktop mode"), j || (j = (/\brv:([\d.]+)/.exec(t) || 0)[1])) : "IE" != B && "Trident" == R && (l = /\brv:([\d.]+)/.exec(t)) && (B && D.push("identifying as " + B + (j ? " " + j : "")), 8961 B = "IE", j = l[1]), F) { 8962 if (w(n, "global")) if (T && (L = (l = T.lang.System).getProperty("os.arch"), $ = $ || l.getProperty("os.name") + " " + l.getProperty("os.version")), 8963 u && w(n, "system") && (l = [ n.system ])[0]) { 8964 $ || ($ = l[0].os || null); 8965 try { 8966 l[1] = n.require("ringo/engine").version, j = l[1].join("."), B = "RingoJS"; 8967 } catch (e) { 8968 l[0].global.system == n.system && (B = "Narwhal"); 8969 } 8970 } else "object" == typeof n.process && !n.process.browser && (l = n.process) ? (B = "Node.js", 8971 L = l.arch, $ = l.platform, j = /[\d.]+/.exec(l.version)[0]) : k && (B = "Rhino"); else x(l = n.runtime) == p ? (B = "Adobe AIR", 8972 $ = l.flash.system.Capabilities.os) : x(l = n.phantom) == C ? (B = "PhantomJS", 8973 j = (l = l.version || null) && l.major + "." + l.minor + "." + l.patch) : "number" == typeof O.documentMode && (l = /\bTrident\/(\d+)/i.exec(t)) && (j = [ j, O.documentMode ], 8974 (l = +l[1] + 4) != j[1] && (D.push("IE " + j[1] + " mode"), R && (R[1] = ""), j[1] = l), 8975 j = "IE" == B ? String(j[1].toFixed(1)) : j[0]); 8976 $ = $ && b($); 8977 } 8978 j && (l = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j) || /(?:alpha|beta)(?: ?\d)?/i.exec(t + ";" + (F && r.appMinorVersion)) || /\bMinefield\b/i.test(t) && "a") && (N = /b/i.test(l) ? "beta" : "alpha", 8979 j = j.replace(RegExp(l + "\\+?$"), "") + ("beta" == N ? A : M) + (/\d+\+?/.exec(l) || "")), 8980 "Fennec" == B || "Firefox" == B && /\b(?:Android|Firefox OS)\b/.test($) ? B = "Firefox Mobile" : "Maxthon" == B && j ? j = j.replace(/\.[\d.]+/, ".x") : /\bXbox\b/i.test(z) ? ($ = null, 8981 "Xbox 360" == z && /\bIEMobile\b/.test(t) && D.unshift("mobile mode")) : !/^(?:Chrome|IE|Opera)$/.test(B
8981) && (!B || z || /Browser|Mobi/.test(B)) || "Windows CE" != $ && !/Mobi/i.test(t) ? "IE" == B && F && null === n.external ? D.unshift("platform preview") : (/\bBlackBerry\b/.test(z) || /\bBB10\b/.test(t)) && (l = (RegExp(z.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(t) || 0)[1] || j) ? ($ = ((l = [ l, /BB10/.test(t) ])[1] ? (z = null, 8982 H = "BlackBerry") : "Device Software") + " " + l[0], j = null) : this != y && "Wii" != z && (F && P || /Opera/.test(B) && /\b(?:MSIE|Firefox)\b/i.test(t) || "Firefox" == B && /\bOS X (?:\d+\.){2,}/.test($) || "IE" == B && ($ && !/^Win/.test($) && j > 5.5 || /\bWindows XP\b/.test($) && j > 8 || 8 == j && !/\bTrident\b/.test(t))) && !h.test(l = e.call(y, t.replace(h, "") + ";")) && l.name && (l = "ing as " + l.name + ((l = l.version) ? " " + l : ""), 8983 h.test(B) ? (/\bIE\b/.test(l) && "Mac OS" == $ && ($ = null), l = "identify" + l) : (l = "mask" + l, 8984 B = I ? b(I.replace(/([a-z])([A-Z])/g, "$1 $2")) : "Opera", /\bIE\b/.test(l) && ($ = null), 8985 F || (j = null)), R = [ "Presto" ], D.push(l)) : B += " Mobile", (l = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(t) || 0)[1]) && (l = [ parseFloat(l.replace(/\.(\d)$/, ".0$1")), l ], 8986 "Safari" == B && "+" == l[1].slice(-1) ? (B = "WebKit Nightly", N = "alpha", j = l[1].slice(0, -1)) : j != l[1] && j != (l[2] = (/\bSafari\/([\d.]+\+?)/i.exec(t) || 0)[1]) || (j = null), 8987 l[1] = (/\bChrome\/([\d.]+)/i.exec(t) || 0)[1], 537.36 == l[0] && 537.36 == l[2] && parseFloat(l[1]) >= 28 && "WebKit" == R && (R = [ "Blink" ]), 8988 F && (d || l[1]) ? (R && (R[1] = "like Chrome"), l = l[1] || ((l = l[0]) < 530 ? 1 : l < 532 ? 2 : l < 532.05 ? 3 : l < 533 ? 4 : l < 534.03 ? 5 : l < 534.07 ? 6 : l < 534.1 ? 7 : l < 534.13 ? 8 : l < 534.16 ? 9 : l < 534.24 ? 10 : l < 534.3 ? 11 : l < 535.01 ? 12 : l < 535.02 ? "13+" : l < 535.07 ? 15 : l < 535.11 ? 16 : l < 535.19 ? 17 : l < 536.05 ? 18 : l < 536.1 ? 19 : l < 537.01 ? 20 : l < 537.11 ? "21+" : l < 537.13 ? 23 : l < 537.18 ? 24 : l < 537.24 ? 25 : l < 537.36 ? 26 : "Blink" != R ? "27" : "28")) : (R && (R[1] = "like Safari"), 8989 l = (l = l[0]) < 400 ? 1 : l < 500 ? 2 : l < 526 ? 3 : l < 533 ? 4 : l < 534 ? "4+" : l < 535 ? 5 : l < 537 ? 6 : l < 538 ? 7 : l < 601 ? 8 : "8"), 8990 R && (R[1] += " " + (l += "number" == typeof l ? ".x" : /[.+]/.test(l) ? "" : "+")), 8991 "Safari" == B && (!j || parseInt(j) > 45) && (j = l)), "Opera" == B && (l = /\bzbov|zvav$/.exec($)) ? (B += " ", 8992 D.unshift("desktop mode"), "zvav" == l ? (B += "Mini", j = null) : B += "Mobile", 8993 $ = $.replace(RegExp(" *" + l + "$"), "")) : "Safari" == B && /\bChrome\b/.exec(R && R[1]) && (D.unshift("desktop mode"), 8994 B = "Chrome Mobile", j = null, /\bOS X\b/.test($) ? (H = "Apple", $ = "iOS 4.3+") : $ = null), 8995 j && 0 == j.indexOf(l = /[\d.]+$/.exec($)) && t.indexOf("/" + l + "-") > -1 && ($ = E($.replace(l, ""))), 8996 R && !/\b(?:Avant|Nook)\b/.test(B) && (/Browser|Lunascape|Maxthon/.test(B) || "Safari" != B && /^iOS/.test($) && /\bSafari\b/.test(R[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Sleipnir|Web)/.test(B) && R[1]) && (l = R[R.length - 1]) && D.push(l), 8997 D.length && (D = [ "(" + D.join("; ") + ")" ]), H && z && z.indexOf(H) < 0 && D.push("on " + H), 8998 z && D.push((/^on /.test(D[D.length - 1]) ? "" : "on ") + z), $ && (l = / ([\d.+]+)$/.exec($), 8999 c = l && "/" == $.charAt($.length - l[0].length - 1), $ = { 9000 architecture: 32, 9001 family: l && !c ? $.replace(l[0], "") : $, 9002 version: l ? l[1] : null, 9003 toString: function() { 9004 var e = this.version; 9005 return this.family + (e && !c ? " " + e : "") + (64 == this.architecture ? " 64-bit" : ""); 9006 } 9007 }), (l = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(L)) && !/\bi686\b/i.test(L) ? ($ && ($.architecture = 64, 9008 $.family = $.family.replace(RegExp(" *" + l), "")), B && (/\bWOW64\b/i.test(t) || F && /\w(?:86|32)$/.test(r.cpuClass || r.platform) && !/\bWin64; x64\b/i.test(t)) && D.unshift("32-bit")) : $ && /^OS X/.test($.family) && "Chrome" == B && parseFloat(j) >= 39 && ($.architecture = 64), 9009 t || (t = null); 9010 var q = {}; 9011 return q.description = t, q.layout = R && R[0], q.manufacturer = H, q.name = B, 9012 q.prerelease = N, q.product = z, q.ua = t, q.version = B && j, q.os = $ || { 9013 architecture: null, 9014 family: null, 9015 version: null, 9016 toString: function() { 9017 return "null"; 9018 } 9019 }, q.parse = e, q.toString = function() { 9020 return this.description || ""; 9021 }, q.version && D.unshift(j), q.name && D.unshift(B), $ && B && ($ != String($).split(" ")[0] || $ != B.split(" ")[0] && !z) && D.push(z ? "(" + $ + ")" : "on " + $), 9022 D.length && (q.description = D.join(" ")), q; 9023 }(); 9024 s.platform = C, void 0 === (r = function() { 9025 return C; 9026 }.call(t, n, t, e)) || (e.exports = r); 9027 }).call(this); 9028 }).call(this, n(166)(e), n(96)); 9029 }, function(e, t, n) { 9030 "use strict"; 9031 Object.defineProperty(t, "__esModule", { 9032 value: !0 9033 }); 9034 var i, r = n(167), o = (i = r) && i.__esModule ? i : { 9035 default: i 9036 }; 9037 var s = "undefined" != typeof window && window.navigator.userAgent || "", a = function(e) { 9038 var t = void 0; 9039 try { 9040 t = (t = window.localStorage && window.localStorage.getItem(e)) ? JSON.parse(t) : {}; 9041 } catch (e) { 9042 t = {}; 9043 } 9044 return t; 9045 }("ally-supports-cache"); 9046 a.userAgent === s && a.version === o.default || (a = {}), a.userAgent = s, a.version = o.default, 9047 t.default = { 9048 get: function() { 9049 return a; 9050 }, 9051 set: function(e) { 9052 Object.keys(e).forEach((function(t) { 9053 a[t] = e[t]; 9054 })), a.time = (new Date).toISOString(), function(e, t) { 9055 if (document.hasFocus()) try { 9056 window.localStorage && window.localStorage.setItem(e, JSON.stringify(t)); 9057 } catch (e) {} else try { 9058 window.localStorage && window.localStorage.removeItem(e); 9059 } catch (e) {} 9060 }("ally-supports-cache", a); 9061 } 9062 }, e.exports = t.default; 9063 }, function(e, t, n) { 9064 "use strict"; 9065 Object.defineProperty(t, "__esModule", { 9066 value: !0 9067 }); 9068 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9069 default: i 9070 }; 9071 t.default = { 9072 element: "div", 9073 mutate: function(e) { 9074 return e.innerHTML = '<map name="image-map-tabindex-test"><area shape="rect" coords="63,19,144,45"></map><img usemap="#image-map-tabindex-test" tabindex="-1" alt="" src="' + o.default + '">', 9075 e.querySelector("area"); 9076 } 9077 }, e.exports = t.default; 9078 }, function(e, t, n) { 9079 "use strict"; 9080 Object.defineProperty(t, "__esModule", { 9081 value: !0 9082 }); 9083 var i = o(n(42)), r = o(n(23)); 9084 function o(e) {
9085 return e && e.__esModule ? e : { 9086 default: e 9087 }; 9088 } 9089 t.default = { 9090 element: "div", 9091 mutate: function(e) { 9092 return e.innerHTML = '<map name="image-map-tabindex-test"><area href="#void" tabindex="-1" shape="rect" coords="63,19,144,45"></map><img usemap="#image-map-tabindex-test" alt="" src="' + i.default + '">', 9093 !1; 9094 }, 9095 validate: function(e, t, n) { 9096 if (r.default.is.GECKO) return !0; 9097 var i = e.querySelector("area"); 9098 return i.focus(), n.activeElement === i; 9099 } 9100 }, e.exports = t.default; 9101 }, function(e, t, n) { 9102 "use strict"; 9103 Object.defineProperty(t, "__esModule", { 9104 value: !0 9105 }); 9106 var i = o(n(42)), r = o(n(23)); 9107 function o(e) { 9108 return e && e.__esModule ? e : { 9109 default: e 9110 }; 9111 } 9112 t.default = { 9113 element: "div", 9114 mutate: function(e) { 9115 return e.innerHTML = '<map name="image-map-area-href-test"><area shape="rect" coords="63,19,144,45"></map><img usemap="#image-map-area-href-test" alt="" src="' + i.default + '">', 9116 e.querySelector("area"); 9117 }, 9118 validate: function(e, t, n) { 9119 return !!r.default.is.GECKO || n.activeElement === t; 9120 } 9121 }, e.exports = t.default; 9122 }, function(e, t, n) { 9123 "use strict"; 9124 Object.defineProperty(t, "__esModule", { 9125 value: !0 9126 }); 9127 var i, r = n(287), o = (i = r) && i.__esModule ? i : { 9128 default: i 9129 }; 9130 t.default = {
9131 name: "can-focus-audio-without-controls", 9132 element: "audio", 9133 mutate: function(e) { 9134 try { 9135 e.setAttribute("src", o.default); 9136 } catch (e) {} 9137 } 9138 }, e.exports = t.default; 9139 }, function(e, t, n) { 9140 "use strict"; 9141 Object.defineProperty(t, "__esModule", { 9142 value: !0 9143 }); 9144 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9145 default: i 9146 }; 9147 t.default = o.default, e.exports = t.default; 9148 }, function(e, t, n) { 9149 "use strict"; 9150 Object.defineProperty(t, "__esModule", { 9151 value: !0 9152 }); 9153 var i, r = n(289), o = (i = r) && i.__esModule ? i : { 9154 default: i 9155 }; 9156 t.default = { 9157 element: "div", 9158 mutate: function(e) { 9159 return e.innerHTML = '<map name="broken-image-map-test"><area href="#void" shape="rect" coords="63,19,144,45"></map><img usemap="#broken-image-map-test" alt="" src="' + o.default + '">', 9160 e.querySelector("area"); 9161 } 9162 }, e.exports = t.default; 9163 }, function(e, t, n) { 9164 "use strict"; 9165 Object.defineProperty(t, "__esModule", { 9166 value: !0 9167 }), t.default = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ", 9168 e.exports = t.default; 9169 }, function(e, t, n) { 9170 "use strict"; 9171 Object.defineProperty(t, "__esModule", { 9172 value: !0 9173 }), t.default = { 9174 element: "div", 9175 mutate: function(e) { 9176 return e.setAttribute("tabindex", "-1"), e.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"), 9177 e.innerHTML = '<span style="display: block;">hello</span>', e.querySelector("span"); 9178 } 9179 }, e.exports = t.default; 9180 }, function(e, t, n) { 9181 "use strict"; 9182 Object.defineProperty(t, "__esModule", { 9183 value: !0 9184 }), t.default = { 9185 element: "fieldset", 9186 mutate: function(e) { 9187 e.setAttribute("tabindex", 0), e.setAttribute("disabled", "disabled"); 9188 } 9189 }, e.exports = t.default; 9190 }, function(e, t, n) { 9191 "use strict"; 9192 Object.defineProperty(t, "__esModule", { 9193 value: !0 9194 }), t.default = { 9195 element: "fieldset", 9196 mutate: function(e) { 9197 e.innerHTML = "<legend>legend</legend><p>content</p>"; 9198 } 9199 }, e.exports = t.default; 9200 }, function(e, t, n) { 9201 "use strict"; 9202 Object.defineProperty(t, "__esModule", { 9203 value: !0 9204 }), t.default = { 9205 element: "span", 9206 mutate: function(e) { 9207 e.setAttribute("style", "display: -webkit-flex; display: -ms-flexbox; display: flex;"), 9208 e.innerHTML = '<span style="display: block;">hello</span>'; 9209 } 9210 }, e.exports = t.default; 9211 }, function(e, t, n) { 9212 "use strict"; 9213 Object.defineProperty(t, "__esModule", { 9214 value: !0 9215 }), t.default = { 9216 element: "form", 9217 mutate: function(e) { 9218 e.setAttribute("tabindex", 0), e.setAttribute("disabled", "disabled"); 9219 } 9220 }, e.exports = t.default; 9221 }, function(e, t, n) { 9222 "use strict"; 9223 Object.defineProperty(t, "__esModule", { 9224 value: !0 9225 }); 9226 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9227 default: i 9228 }; 9229 t.default = { 9230 element: "a", 9231 mutate: function(e) { 9232 return e.href = "#void", e.innerHTML = '<img ismap src="' + o.default + '" alt="">', 9233 e.querySelector("img"); 9234 } 9235 }, e.exports = t.default; 9236 }, function(e, t, n) { 9237 "use strict"; 9238 Object.defineProperty(t, "__esModule", { 9239 value: !0 9240 }); 9241 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9242 default: i 9243 }; 9244 t.default = { 9245 element: "div", 9246 mutate: function(e) { 9247 return e.innerHTML = '<map name="image-map-tabindex-test"><area href="#void" shape="rect" coords="63,19,144,45"></map><img usemap="#image-map-tabindex-test" tabindex="-1" alt="" src="' + o.default + '">', 9248 e.querySelector("img"); 9249 } 9250 }, e.exports = t.default; 9251 }, function(e, t, n) { 9252 "use strict"; 9253 Object.defineProperty(t, "__esModule", { 9254 value: !0 9255 }), t.default = { 9256 element: function(e, t) { 9257 var n = t.createElement("iframe"); 9258 e.appendChild(n); 9259 var i = n.contentWindow.document; 9260 return i.open(), i.close(), n; 9261 }, 9262 mutate: function(e) { 9263 e.style.visibility = "hidden"; 9264 var t = e.contentWindow.document, n = t.createElement("input"); 9265 return t.body.appendChild(n), n; 9266 }, 9267 validate: function(e) { 9268 var t = e.contentWindow.document, n = t.querySelector("input"); 9269 return t.activeElement === n; 9270 } 9271 }, e.exports = t.default; 9272 }, function(e, t, n) { 9273 "use strict"; 9274 Object.defineProperty(t, "__esModule", { 9275 value: !0 9276 }), t.default = function() { 9277 return o; 9278 }; 9279 var i, r = n(23); 9280 var o = !((i = r) && i.__esModule ? i : { 9281 default: i 9282 }).default.is.WEBKIT; 9283 e.exports = t.default; 9284 }, function(e, t, n) { 9285 "use strict"; 9286 Object.defineProperty(t, "__esModule", { 9287 value: !0 9288 }), t.default = { 9289 element: "div", 9290 mutate: function(e) { 9291 e.setAttribute("tabindex", "invalid-value"); 9292 } 9293 }, e.exports = t.default; 9294 }, function(e, t, n) { 9295 "use strict"; 9296 Object.defineProperty(t, "__esModule", { 9297 value: !0 9298 }), t.default = { 9299 element: "label", 9300 mutate: function(e) { 9301 e.setAttribute("tabindex", "-1"); 9302 }, 9303 validate: function(e, t, n) { 9304 e.offsetHeight; 9305 return e.focus(), n.activeElement === e; 9306 } 9307 }, e.exports = t.default; 9308 }, function(e, t, n) { 9309 "use strict"; 9310 Object.defineProperty(t, "__esModule", { 9311 value: !0 9312 }); 9313 var i, r = n(169), o = (i = r) && i.__esModule ? i : { 9314 default: i 9315 }; 9316 t.default = { 9317 element: "object", 9318 mutate: function(e) { 9319 e.setAttribute("type", "image/svg+xml"), e.setAttribute("data", o.default), e.setAttribute("width", "200"), 9320 e.setAttribute("height", "50"), e.style.visibility = "hidden"; 9321 } 9322 }, e.exports = t.default; 9323 }, function(e, t, n) { 9324 "use strict"; 9325 Object.defineProperty(t, "__esModule", { 9326 value: !0 9327 }); 9328 var i = o(n(169)), r = o(n(23)); 9329 function o(e) {
9330 return e && e.__esModule ? e : { 9331 default: e 9332 }; 9333 } 9334 t.default = { 9335 name: "can-focus-object-svg", 9336 element: "object", 9337 mutate: function(e) { 9338 e.setAttribute("type", "image/svg+xml"), e.setAttribute("data", i.default), e.setAttribute("width", "200"), 9339 e.setAttribute("height", "50"); 9340 }, 9341 validate: function(e, t, n) { 9342 return !!r.default.is.GECKO || n.activeElement === e; 9343 } 9344 }, e.exports = t.default; 9345 }, function(e, t, n) { 9346 "use strict"; 9347 Object.defineProperty(t, "__esModule", { 9348 value: !0 9349 }), t.default = function() { 9350 return o; 9351 }; 9352 var i, r = n(23); 9353 var o = !((i = r) && i.__esModule ? i : { 9354 default: i 9355 }).default.is.IE9; 9356 e.exports = t.default; 9357 }, function(e, t, n) { 9358 "use strict"; 9359 Object.defineProperty(t, "__esModule", { 9360 value: !0 9361 }); 9362 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9363 default: i 9364 }; 9365 t.default = { 9366 element: "div", 9367 mutate: function(e) { 9368 return e.innerHTML = '<map name="focus-redirect-img-usemap"><area href="#void" shape="rect" coords="63,19,144,45"></map><img usemap="#focus-redirect-img-usemap" alt="" src="' + o.default + '">', 9369 e.querySelector("img"); 9370 }, 9371 validate: function(e, t, n) { 9372 var i = e.querySelector("area"); 9373 return n.activeElement === i; 9374 } 9375 }, e.exports = t.default; 9376 }, function(e, t, n) { 9377 "use strict"; 9378 Object.defineProperty(t, "__esModule", { 9379 value: !0 9380 }), t.default = { 9381 element: "fieldset", 9382 mutate: function(e) { 9383 return e.innerHTML = '<legend>legend</legend>
9383<input tabindex="-1"><input tabindex="0">', 9384 !1; 9385 }, 9386 validate: function(e, t, n) { 9387 var i = e.querySelector('input[tabindex="-1"]'), r = e.querySelector('input[tabindex="0"]'); 9388 return e.focus(), e.querySelector("legend").focus(), (n.activeElement === i ? "focusable" : n.activeElement === r && "tabbable") || ""; 9389 } 9390 }, e.exports = t.default; 9391 }, function(e, t, n) { 9392 "use strict"; 9393 Object.defineProperty(t, "__esModule", { 9394 value: !0 9395 }), t.default = { 9396 element: "div", 9397 mutate: function(e) { 9398 return e.setAttribute("style", "width: 100px; height: 50px; overflow: auto;"), e.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>', 9399 e.querySelector("div"); 9400 } 9401 }, e.exports = t.default; 9402 }, function(e, t, n) { 9403 "use strict"; 9404 Object.defineProperty(t, "__esModule", { 9405 value: !0 9406 }), t.default = { 9407 element: "div", 9408 mutate: function(e) { 9409 e.setAttribute("style", "width: 100px; height: 50px;"), e.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>'; 9410 } 9411 }, e.exports = t.default; 9412 }, function(e, t, n) { 9413 "use strict"; 9414 Object.defineProperty(t, "__esModule", { 9415 value: !0 9416 }), t.default = { 9417 element: "div", 9418 mutate: function(e) { 9419 e.setAttribute("style", "width: 100px; height: 50px; overflow: auto;"), e.innerHTML = '<div style="width: 500px; height: 40px;">scrollable content</div>'; 9420 } 9421 }, e.exports = t.default; 9422 }, function(e, t, n) { 9423 "use strict"; 9424 Object.defineProperty(t, "__esModule", { 9425 value: !0 9426 }), t.default = { 9427 element: "details", 9428 mutate: function(e) { 9429 return e.innerHTML = "<summary>foo</summary><p>content</p>", e.firstElementChild; 9430 } 9431 }, e.exports = t.default; 9432 }, function(e, t, n) { 9433 "use strict"; 9434 Object.defineProperty(t, "__esModule", { 9435 value: !0 9436 }); 9437 var i = n(63); 9438 t.default = { 9439 element: "div", 9440 mutate: function(e) { 9441 return e.innerHTML = (0, i.generate)('<text focusable="true">a</text>'), e.querySelector("text"); 9442 }, 9443 validate: i.validate 9444 }, e.exports = t.default; 9445 }, function(e, t, n) { 9446 "use strict"; 9447 Object.defineProperty(t, "__esModule", { 9448 value: !0 9449 }); 9450 var i = n(63); 9451 t.default = { 9452 element: "div", 9453 mutate: function(e) { 9454 return e.innerHTML = (0, i.generate)('<text tabindex="0">a</text>'), e.querySelector("text"); 9455 }, 9456 validate: i.validate 9457 }, e.exports = t.default; 9458 }, function(e, t, n) { 9459 "use strict"; 9460 Object.defineProperty(t, "__esModule", { 9461 value: !0 9462 }); 9463 var i = n(63); 9464 t.default = { 9465 element: "div", 9466 mutate: function(e) { 9467 return e.innerHTML = (0, i.generate)('<text tabindex="-1">a</text>'), e.querySelector("text"); 9468 }, 9469 validate: i.validate 9470 }, e.exports = t.default; 9471 }, function(e, t, n) { 9472 "use strict"; 9473 Object.defineProperty(t, "__esModule", { 9474 value: !0 9475 }); 9476 var i = n(63); 9477 t.default = { 9478 element: "div", 9479 mutate: function(e) { 9480 return e.innerHTML = (0, i.generate)([ '<g id="ally-test-target"><a xlink:href="#void"><text>link</text></a></g>', '<use xlink:href="#ally-test-target" x="0" y="0" tabindex="-1" />' ].join("")), 9481 e.querySelector("use"); 9482 }, 9483 validate: i.validate 9484 }, e.exports = t.default; 9485 }, function(e, t, n) { 9486 "use strict"; 9487 Object.defineProperty(t, "__esModule", { 9488 value: !0 9489 }); 9490 var i = n(63); 9491 t.default = { 9492 element: "div", 9493 mutate: function(e) { 9494 return e.innerHTML = (0, i.generate)('<foreignObject tabindex="-1"><input type="text" /></foreignObject>'), 9495 e.querySelector("foreignObject") || e.getElementsByTagName("foreignObject")[0]; 9496 }, 9497 validate: i.validate 9498 }, e.exports = t.default; 9499 }, function(e, t, n) { 9500 "use strict"; 9501 Object.defineProperty(t, "__esModule", { 9502 value: !0 9503 }), t.default = function() { 9504 return s; 9505 }; 9506 var i, r = n(23), o = (i = r) && i.__esModule ? i : { 9507 default: i 9508 }; 9509 var s = Boolean(o.default.is.GECKO && "undefined" != typeof SVGElement && SVGElement.prototype.focu
9509s); 9510 e.exports = t.default; 9511 }, function(e, t, n) { 9512 "use strict"; 9513 Object.defineProperty(t, "__esModule", { 9514 value: !0 9515 }); 9516 var i = n(63); 9517 t.default = { 9518 element: "div", 9519 mutate: function(e) { 9520 return e.innerHTML = (0, i.generate)(""), e.firstChild; 9521 }, 9522 validate: i.validate 9523 }, e.exports = t.default; 9524 }, function(e, t, n) { 9525 "use strict"; 9526 Object.defineProperty(t, "__esModule", { 9527 value: !0 9528 }), t.default = { 9529 element: "div", 9530 mutate: function(e) { 9531 e.setAttribute("tabindex", "3x"); 9532 } 9533 }, e.exports = t.default; 9534 }, function(e, t, n) { 9535 "use strict"; 9536 Object.defineProperty(t, "__esModule", { 9537 value: !0 9538 }), t.default = { 9539 element: "table", 9540 mutate: function(e, t, n) { 9541 var i = n.createDocumentFragment(); 9542 i.innerHTML = "<tr><td>cell</td></tr>", e.appendChild(i); 9543 } 9544 }, e.exports = t.default; 9545 }, function(e, t, n) { 9546 "use strict"; 9547 Object.defineProperty(t, "__esModule", { 9548 value: !0 9549 }); 9550 var i, r = n(320), o = (i = r) && i.__esModule ? i : { 9551 default: i 9552 }; 9553 t.default = { 9554 element: "video", 9555 mutate: function(e) { 9556 try { 9557 e.setAttribute("src", o.default); 9558 } catch (e) {} 9559 } 9560 }, e.exports = t.default; 9561 }, function(e, t, n) { 9562 "use strict"; 9563 Object.defineProperty(t, "__esModule", { 9564 value: !0 9565 }); 9566 var i, r = n(42), o = (i = r) && i.__esModule ? i : { 9567 default: i 9568 }; 9569 t.default = o.default, e.exports = t.default; 9570 }, function(e, t, n) { 9571 "use strict"; 9572 Object.defineProperty(t, "__esModule", { 9573 value: !0 9574 }), t.default = function() { 9575 return s; 9576 }; 9577 var i, r = n(23), o = (i = r) && i.__esModule ? i : { 9578 default: i 9579 }; 9580 var s = o.default.is.GECKO || o.default.is.TRIDENT || o.default.is.EDGE; 9581 e.exports = t.default; 9582 }, function(e, t, n) { 9583 "use strict"; 9584 Object.defineProperty(t, "__esModule", { 9585 value: !0 9586 }), t.default = function(e) { 9587 var t = e.element, n = e.attribute, i = "data-cached-" + n; 9588 if (null === t.getAttribute(i)) { 9589 var r = t.getAttribute(n); 9590 if (null === r) return; 9591 t.setAttribute(i, r || ""), t.removeAttribute(n); 9592 } else { 9593 var o = t.getAttribute(i); 9594 t.removeAttribute(i), t.setAttribute(n, o); 9595 } 9596 }, e.exports = t.default; 9597 }, function(e, t, n) { 9598 "use strict"; 9599 Object.defineProperty(t, "__esModule", { 9600 value: !0 9601 }); 9602 var i = function() {}, r = { 9603 log: i, 9604 debug: i, 9605 info: i, 9606 warn: i, 9607 error: i 9608 }; 9609 t.default = "undefined" != typeof console ? console : r, e.exports = t.default; 9610 }, function(e, t, n) { 9611 "use strict"; 9612 Object.defineProperty(t, "__esModule", { 9613 value: !0 9614 }), t.default = function(e) { 9615 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = t.defaultToAncestor, i = t.undoScrolling, l = (0, 9616 a.default)({ 9617 label: "element/focus", 9618 context: e 9619 }), u = s.default.rules({ 9620 context: l, 9621 except: h 9622 }); 9623 if (!n && !u) return null; 9624 var f = (0, r.default)({ 9625 context: l, 9626 except: h 9627 }); 9628 if (!f) return null; 9629 if ((0, o.default)(f)) return f; 9630 var p = void 0; 9631 i && (p = (0, c.default)(f)); 9632 var m = d(f); 9633 return p && p(), m; 9634 }; 9635 var i = u(n(170)), r = u(n(76)), o = u(n(103)), s = u(n(43)), a = u(n(9)), l = u(n(134)), c = u(n(331)); 9636 function u(e) {
9637 return e && e.__esModule ? e : { 9638 default: e 9639 }; 9640 } 9641 function d(e) { 9642 if (e.focus) return e.focus(), (0, o.default)(e) ? e : null; 9643 var t = (0, l.default)(e); 9644 try { 9645 return t.HTMLElement.prototype.focus.call(e), (0, o.default)(e) ? e : null; 9646 } catch (t) { 9647 return (0, i.default)(e) && (0, o.default)(e) ? e : null; 9648 } 9649 } 9650 var h = { 9651 flexbox: !0, 9652 scrollable: !0, 9653 onlyTabbable: !0 9654 }; 9655 e.exports = t.default; 9656 }, function(e, t, n) { 9657 "use strict"; 9658 Object.defineProperty(t, "__esModule", { 9659 value: !0 9660 }), t.default = function(e) { 9661 try { 9662 return e.contentDocument || e.contentWindow && e.contentWindow.document || e.getSVGDocument && e.getSVGDocument() || null; 9663 } catch (e) { 9664 return null; 9665 } 9666 }, e.exports = t.default; 9667 }, function(e, t, n) { 9668 (function(t) { 9669 var n; 9670 n = void 0 !== t ? t : this, e.exports = function(e) { 9671 if (e.CSS && e.CSS.escape) return e.CSS.escape; 9672 var t = function(e) { 9673 if (0 == arguments.length) throw new TypeError("`CSS.escape` requires an argument."); 9674 for (var t, n = String(e), i = n.length, r = -1, o = "", s = n.charCodeAt(0); ++r < i; ) 0 != (t = n.charCodeAt(r)) ? o += t >= 1 && t <= 31 || 127 == t || 0 == r && t >= 48 && t <= 57 || 1 == r && t >= 48 && t <= 57 && 45 == s ? "\\" + t.toString(16) + " " : 0 == r && 1 == i && 45 == t || !(t >= 128 || 45 == t || 95 == t || t >= 48 && t <= 57 || t >= 65 && t <= 90 || t >= 97 && t <= 122) ? "\\" + n.charAt(r) : n.charAt(r) : o += "�"; 9675 return o; 9676 }; 9677 return e.CSS || (e.CSS = {}), e.CSS.escape = t, t; 9678 }(n); 9679 }).call(this, n(96)); 9680 }, function(e, t, n) { 9681 "use strict"; 9682 Object.defineProperty(t, "__esModule", { 9683 value: !0 9684 }), t.default = function e() { 9685 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.context, s = t.includeContext, c = t.includeOnlyTabbable, u = t.strategy; 9686 n || (n = document.documentElement); 9687 var d = i.default.rules.except({ 9688 onlyTabbable: c 9689 }), h = (0, o.default)(n), f = h.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, "all" === u ? l : a(d), !1), p = []; 9690 for (;f.nextNode(); ) f.currentNode.shadowRoot ? (d(f.currentNode) && p.push(f.currentNode), 9691 p = p.concat(e({ 9692 context: f.currentNode.shadowRoot, 9693 includeOnlyTabbable: c, 9694 strategy: u 9695 }))) : p.push(f.currentNode); 9696 s && ("all" === u ? (0, r.default)(n) && p.unshift(n) : d(n) && p.unshift(n)); 9697 return p; 9698 }; 9699 var i = s(n(43)), r = s(n(105)), o = s(n(35)); 9700 function s(e) { 9701 return e && e.__esModule ? e : { 9702 default: e 9703 }; 9704 } 9705 function a(e) { 9706 var t = function(t) { 9707 return t.shadowRoot || e(t) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 9708 }; 9709 return t.acceptNode = t, t; 9710 } 9711 var l = a(r.default); 9712 e.exports = t.default; 9713 }, function(e, t, n) { 9714 "use strict"; 9715 Object.defineProperty(t, "__esModule", { 9716 value: !0 9717 }), t.default = function() { 9718 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.includeContext, o = e.includeOnlyTabbable, s = (0, 9719 i.default)(), a = t.querySelectorAll(s), l = r.default.rules.except({ 9720 onlyTabbable: o 9721 }), c = [].filter.call(a, l); 9722 n && l(t) && c.unshift(t); 9723 return c; 9724 }; 9725 var i = o(n(329)), r = o(n(43)); 9726 function o(e) {
9727 return e && e.__esModule ? e : { 9728 default: e 9729 }; 9730 } 9731 e.exports = t.default; 9732 }, function(e, t, n) { 9733 "use strict"; 9734 Object.defineProperty(t, "__esModule", { 9735 value: !0 9736 }), t.default = function() { 9737 return s || (s = (0, r.default)()), "string" == typeof a ? a : (a = (s.focusTable ? "table, td," : "") + (s.focusFieldset ? "fieldset," : "") + "svg a,a[href],area[href],input, select, textarea, button,iframe, object, embed,keygen," + (s.focusAudioWithoutControls ? "audio," : "audio[controls],") + (s.focusVideoWithoutControls ? "video," : "video[controls],") + (s.focusSummary ? "summary," : "") + "[tabindex],[contenteditable]", 9738 a = (0, i.default)(a)); 9739 }; 9740 var i = o(n(137)), r = o(n(30)); 9741 function o(e) { 9742 return e && e.__esModule ? e : { 9743 default: e 9744 }; 9745 } 9746 var s = void 0, a = void 0; 9747 e.exports = t.default; 9748 }, function(e, t, n) { 9749 "use strict"; 9750 function i(e, t) { 9751 return e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1; 9752 } 9753 Object.defineProperty(t, "__esModule", { 9754 value: !0 9755 }), t.default = function(e) { 9756 return e.sort(i); 9757 }, e.exports = t.default; 9758 }, function(e, t, n) { 9759 "use strict"; 9760 Object.defineProperty(t, "__esModule", { 9761 value: !0 9762 }), t.default = function(e) { 9763 var t = (0, o.default)({ 9764 context: e 9765 }).slice(1).map((function(e) { 9766 return { 9767 element: e, 9768 scrollTop: e.scrollTop, 9769 scrollLeft: e.scrollLeft 9770 }; 9771 })); 9772 return function() { 9773 t.forEach((function(e) { 9774 e.element.scrollTop = e.scrollTop, e.element.scrollLeft = e.scrollLeft; 9775 })); 9776 }; 9777 }; 9778 var i, r = n(36), o = (i = r) && i.__esModule ? i : { 9779 default: i 9780 }; 9781 e.exports = t.default; 9782 }, function(e, t, n) { 9783 "use strict"; 9784 Object.defineProperty(t, "__esModule", { 9785 value: !0 9786 }); 9787 var i = o(n(333)), r = o(n(139)); 9788 function o(e) { 9789 return e && e.__esModule ? e : { 9790 default: e 9791 }; 9792 } 9793 t.default = { 9794 activeElement: i.default, 9795 shadowFocus: r.default 9796 }, e.exports = t.default; 9797 }, function(e, t, n) { 9798 "use strict"; 9799 Object.defineProperty(t, "__esModule", { 9800 value: !0 9801 }), n(179); 9802 var i = o(n(334)), r = o(n(78)); 9803 function o(e) { 9804 return e && e.__esModule ? e : { 9805 default: e 9806 }; 9807 } 9808 var s = void 0, a = void 0; 9809 function l() { 9810 if (document.activeElement) { 9811 if (document.activeElement !== s) { 9812 var e = new i.default("active-element", { 9813 bubbles: !1, 9814 cancelable: !1, 9815 detail: { 9816 focus: document.activeElement, 9817 blur: s 9818 } 9819 }); 9820 document.dispatchEvent(e), s = document.activeElement; 9821 } 9822 } else document.body.focus(); 9823 !1 !== a && (a = requestAnimationFrame(l)); 9824 } 9825 t.default = (0, r.default)({ 9826 engage: function() { 9827 a = !0, s = document.activeElement, l(); 9828 }, 9829 disengage: function() { 9830 cancelAnimationFrame(a), a = !1; 9831 } 9832 }), e.exports = t.default; 9833 }, function(e, t, n) { 9834 "use strict"; 9835 Object.defineProperty(t, "__esModule", { 9836 value: !0 9837 }); 9838 var i = "undefined" != typeof window && window.CustomEvent || function() {}; 9839 "function" != typeof i && ((i = function(e, t) { 9840 var n = document.createEvent("CustomEvent"); 9841 return !t && (t = { 9842 bubbles: !1, 9843 cancelable: !1, 9844 detail: void 0 9845 }), n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n; 9846 }).prototype = window.Event.prototype), t.default = i, e.exports = t.default; 9847 }, function(e, t, n) { 9848 "use strict"; 9849 Object.defineProperty(t, "__esModule", { 9850 value: !0 9851 }); 9852 var i = s(n(336)), r = s(n(337)), o = s(n(338)); 9853 function s(e) {
9854 return e && e.__esModule ? e : { 9855 default: e 9856 }; 9857 } 9858 t.default = { 9859 pointerFocusChildren: i.default, 9860 pointerFocusInput: r.default, 9861 pointerFocusParent: o.default 9862 }, e.exports = t.default; 9863 }, function(e, t, n) { 9864 "use strict"; 9865 Object.defineProperty(t, "__esModule", { 9866 value: !0 9867 }); 9868 var i = s(n(76)), r = s(n(141)), o = s(n(23)); 9869 function s(e) { 9870 return e && e.__esModule ? e : { 9871 default: e 9872 }; 9873 } 9874 var a, l = void 0, c = void 0; 9875 o.default.is.TRIDENT && (o.default.is.IE10 || o.default.is.IE11) ? (a = function(e) { 9876 var t = (0, i.default)({ 9877 context: e.target, 9878 except: { 9879 flexbox: !0, 9880 scrollable: !0 9881 } 9882 }); 9883 if (t && t !== e.target) { 9884 window.setImmediate((function() { 9885 t.focus(); 9886 })); 9887 var n = [].map.call(t.children, (function(e) { 9888 var t = e.style.visibility || "", n = e.style.transition || ""; 9889 return e.style.visibility = "hidden", e.style.transition = "none", [ e, t, n ]; 9890 })); 9891 window.setImmediate((function() { 9892 n.forEach((function(e) { 9893 e[0].style.visibility = e[1], e[0].style.transition = e[2]; 9894 })); 9895 })); 9896 } 9897 }, l = function(e) { 9898 e.addEventListener("mousedown", a, !0); 9899 }, c = function(e) { 9900 e.removeEventListener("mousedown", a, !0); 9901 }) : l = function() {}, t.default = (0, r.default)({ 9902 engage: l, 9903 disengage: c 9904 }), e.exports = t.default; 9905 }, function(e, t, n) { 9906 "use strict"; 9907 Object.defineProperty(t, "__esModule", { 9908 value: !0 9909 }); 9910 var i = a(n(76)), r = a(n(141)), o = a(n(135)), s = a(n(23)); 9911 function a(e) { 9912 return e && e.__esModule ? e : { 9913 default: e 9914 }; 9915 } 9916 var l, c, u = void 0, d = void 0; 9917 s.default.is.OSX && (s.default.is.GECKO || s.default.is.WEBKIT) ? (l = function(e) { 9918 if (!e.defaultPrevented && (0, o.default)(e.target, "input, button, button *")) { 9919 var t = (0, i.default)({ 9920 context: e.target 9921 }); 9922 (window.setImmediate || window.setTimeout)((function() { 9923 t.focus(); 9924 })); 9925 } 9926 }, c = function(e) { 9927 if (!e.defaultPrevented && (0, o.default)(e.target, "label, label *")) { 9928 var t = (0, i.default)({ 9929 context: e.target 9930 }); 9931 t && t.focus(); 9932 } 9933 }, u = function(e) { 9934 e.addEventListener("mousedown", l, !1), e.addEventListener("mouseup", c, !1); 9935 }, d = function(e) { 9936 e.removeEventListener("mousedown", l, !1), e.removeEventListener("mouseup", c, !1); 9937 }) : u = function() {}, t.default = (0, r.default)({ 9938 engage: u, 9939 disengage: d 9940 }), e.exports = t.default; 9941 }, function(e, t, n) { 9942 "use strict"; 9943 Object.defineProperty(t, "__esModule", { 9944 value: !0 9945 }); 9946 var i = a(n(76)), r = a(n(104)), o = a(n(141)), s = a(n(23)); 9947 function a(e) { 9948 return e && e.__esModule ? e : { 9949 default: e 9950 }; 9951 } 9952 var l, c = void 0, u = void 0; 9953 s.default.is.WEBKIT ? (l = function(e) { 9954 var t = (0, i.default)({ 9955 context: e.target 9956 }); 9957 !t || t.hasAttribute("tabindex") && (0, r.default)(t) || (t.setAttribute("tabindex", 0), 9958 (window.setImmediate || window.setTimeout)((function() { 9959 t.removeAttribute("tabindex"); 9960 }), 0)); 9961 }, c = function(e) { 9962 e.addEventListener("mousedown", l, !0), e.addEventListener("touchstart", l, !0); 9963 }, u = function(e) { 9964 e.removeEventListener("mousedown", l, !0), e.removeEventListener("touchstart", l, !0); 9965 }) : c = function() {}, t.default = (0, o.default)({ 9966 engage: c, 9967 disengage: u 9968 }), e.exports = t.default; 9969 }, function(e, t, n) { 9970 "use strict"; 9971 Object.defineProperty(t, "__esModule", { 9972 value: !0 9973 }); 9974 var i = d(n(340)), r = d(n(140)), o = d(n(173)), s = d(n(76)), a = d(n(182)), l = d(n(36)), c = d(n(181)), u = d(n(75)); 9975 function d(e) {
9976 return e && e.__esModule ? e : { 9977 default: e 9978 }; 9979 } 9980 t.default = { 9981 activeElement: i.default, 9982 activeElements: r.default, 9983 focusRedirectTarget: o.default, 9984 focusTarget: s.default, 9985 insignificantBranches: a.default, 9986 parents: l.default, 9987 shadowHostParents: c.default, 9988 shadowHost: u.default 9989 }, e.exports = t.default; 9990 }, function(e, t, n) { 9991 "use strict"; 9992 Object.defineProperty(t, "__esModule", { 9993 value: !0 9994 }), t.default = function() { 9995 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = (0, 9996 o.default)(t), i = void 0; 9997 try { 9998 i = n.activeElement; 9999 } catch (e) {} 10000 return i && i.nodeType || (i = n.body || n.documentElement), i; 10001 }; 10002 var i, r = n(35), o = (i = r) && i.__esModule ? i : { 10003 default: i 10004 }; 10005 e.exports = t.default; 10006 }, function(e, t, n) { 10007 "use strict"; 10008 Object.defineProperty(t, "__esModule", { 10009 value: !0 10010 }); 10011 var i = f(n(103)), r = f(n(176)), o = f(n(105)), s = f(n(43)), a = f(n(177)), l = f(n(180)), c = f(n(178)), u = f(n(175)), d = f(n(104)), h = f(n(64)); 10012 function f(e) { 10013 return e && e.__esModule ? e : { 10014 default: e 10015 }; 10016 } 10017 t.default = { 10018 activeElement: i.default, 10019 disabled: r.default, 10020 focusRelevant: o.default, 10021 focusable: s.default, 10022 onlyTabbable: a.default, 10023 shadowed: l.default, 10024 tabbable: c.default, 10025 validArea: u.default, 10026 validTabindex: d.default, 10027 visible: h.default 10028 }, e.exports = t.default; 10029 }, function(e, t, n) { 10030 "use strict"; 10031 Object.defineProperty(t, "__esModule", { 10032 value: !0 10033 }); 10034 var i = s(n(343)), r = s(n(344)), o = s(n(345)); 10035 function s(e) { 10036 return e && e.__esModule ? e : { 10037 default: e 10038 }; 10039 } 10040 t.default = { 10041 disabled: i.default, 10042 hidden: r.default, 10043 tabFocus: o.default 10044 }, e.exports = t.default; 10045 }, function(e, t, n) { 10046 "use strict"; 10047 Object.defineProperty(t, "__esModule", { 10048 value: !0 10049 }); 10050 var i = function() { 10051 function e(e, t) { 10052 for (var n = 0; n < t.length; n++) { 10053 var i = t[n]; 10054 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 10055 Object.defineProperty(e, i.key, i); 10056 } 10057 } 10058 return function(t, n, i) { 10059 return n && e(t.prototype, n), i && e(t, i), t; 10060 }; 10061 }(); 10062 t.default = function() { 10063 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.filter, i = new f({ 10064 context: t, 10065 filter: n 10066 }); 10067 return { 10068 disengage: i.disengage 10069 }; 10070 }; 10071 var r = c(n(34)), o = c(n(108)), s = c(n(165)), a = c(n(183)), l = n(109); 10072 function c(e) { 10073 return e && e.__esModule ? e : { 10074 default: e 10075 }; 10076 } 10077 function u(e, t) { 10078 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 10079 } 10080 function d(e) { 10081 return (0, s.default)(e, !1); 10082 } 10083 var h = { 10084 attributes: !0, 10085 childList: !0, 10086 subtree: !0, 10087 attributeFilter: [ "tabindex", "disabled", "data-ally-disabled" ] 10088 }, f = function() { 10089 function e() { 10090 var t = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, i = n.context, s = n.filter; 10091 u(this, e), this._context = (0, r.default)(i || document.documentElement)[0], this._filter = (0, 10092 r.default)(s), this._inertElementCache = [], this.dise
10092ngage = this.disengage.bind(this), 10093 this.handleMutation = this.handleMutation.bind(this), this.renderInert = this.renderInert.bind(this), 10094 this.filterElements = this.filterElements.bind(this), this.filterParentElements = this.filterParentElements.bind(this); 10095 var l = (0, o.default)({ 10096 context: this._context, 10097 includeContext: !0, 10098 strategy: "all" 10099 }); 10100 this.renderInert(l), this.shadowObserver = (0, a.default)({ 10101 context: this._context, 10102 config: h, 10103 callback: function(e) { 10104 return e.forEach(t.handleMutation); 10105 } 10106 }); 10107 } 10108 return i(e, [ { 10109 key: "disengage", 10110 value: function() { 10111 this._context && (d(this._context), this._inertElementCache.forEach((function(e) { 10112 return d(e); 10113 })), this._inertElementCache = null, this._filter = null, this._context = null, 10114 this.shadowObserver && this.shadowObserver.disengage(), this.shadowObserver = null); 10115 } 10116 }, { 10117 key: "listQueryFocusable", 10118 value: function(e) { 10119 return e.map((function(e) { 10120 return (0, o.default)({ 10121 context: e, 10122 includeContext: !0, 10123 strategy: "all" 10124 }); 10125 })).reduce((function(e, t) { 10126 return e.concat(t); 10127 }), []); 10128 } 10129 }, { 10130 key: "renderInert", 10131 value: function(e) { 10132 var t = this; 10133 e.filter(this.filterElements).filter(this.filterParentElements).filter((function(e) { 10134 return !(0, s.default)(e); 10135 })).forEach((function(e) { 10136 t._inertElementCache.push(e), function(e) { 10137 (0, s.default)(e, !0); 10138 }(e); 10139 })); 10140 } 10141 }, { 10142 key: "filterElements", 10143 value: function(e) { 10144 var t = (0, l.getParentComparator)({ 10145 element: e, 10146 includeSelf: !0 10147 }); 10148 return !this._filter.some(t); 10149 } 10150 }, { 10151 key: "filterParentElements", 10152 value: function(e) { 10153 var t = (0, l.getParentComparator)({ 10154 parent: e 10155 }); 10156 return !this._filter.some(t); 10157 } 10158 }, { 10159 key: "handleMutation", 10160 value: function(e) { 10161 if ("childList" === e.type) { 10162 var t = (0, r.default)(e.addedNodes).filter((function(e) { 10163 return e.nodeType === Node.ELEMENT_NODE; 10164 })); 10165 if (!t.length) return; 10166 var n = this.listQueryFocusable(t); 10167 this.renderInert(n); 10168 } else "attributes" === e.type && this.renderInert([ e.target ]); 10169 } 10170 } ]), e; 10171 }(); 10172 e.exports = t.default; 10173 }, function(e, t, n) { 10174 "use strict"; 10175 Object.defineProperty(t, "__esModule", { 10176 value: !0 10177 }); 10178 var i = function() { 10179 function e(e, t) { 10180 for (var n = 0; n < t.length; n++) { 10181 var i = t[n]; 10182 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 10183 Object.defineProperty(e, i.key, i); 10184 } 10185 } 10186 return function(t, n, i) { 10187 return n && e(t.prototype, n), i && e(t, i), t; 10188 }; 10189 }(); 10190 t.default = function() { 10191 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.filter, i = new p({ 10192 context: t, 10193 filter: n 10194 }); 10195 return { 10196 disengage: i.disengage 10197 }; 10198 }; 10199 var r = c(n(34)), o = c(n(182)), s = c(n(36)), a = c(n(172)), l = n(109); 10200 function c(e) {
10201 return e && e.__esModule ? e : { 10202 default: e 10203 }; 10204 } 10205 function u(e, t) { 10206 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 10207 } 10208 function d(e) { 10209 (0, a.default)({ 10210 element: e, 10211 attribute: "aria-hidden", 10212 temporaryValue: "true" 10213 }); 10214 } 10215 function h(e) { 10216 (0, a.default)({ 10217 element: e, 10218 attribute: "aria-hidden" 10219 }); 10220 } 10221 var f = { 10222 attributes: !1, 10223 childList: !0, 10224 subtree: !0 10225 }, p = function() { 10226 function e() { 10227 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n = t.context, i = t.filter; 10228 u(this, e), this._context = (0, r.default)(n || document.documentElement)[0], this._filter = (0, 10229 r.default)(i), this.disengage = this.disengage.bind(this), this.handleMutation = this.handleMutation.bind(this), 10230 this.isInsignificantBranch = this.isInsignificantBranch.bind(this); 10231 var s = (0, o.default)({ 10232 context: this._context, 10233 filter: this._filter 10234 }); 10235 s.forEach(d), this.startObserver(); 10236 } 10237 return i(e, [ { 10238 key: "disengage", 10239 value: function() { 10240 this._context && ([].forEach.call(this._context.querySelectorAll("[data-cached-aria-hidden]"), h), 10241 this._context = null, this._filter = null, this._observer && this._observer.disconnect(), 10242 this._observer = null); 10243 } 10244 }, { 10245 key: "startObserver", 10246 value: function() { 10247 var e = this; 10248 window.MutationObserver && (this._observer = new MutationObserver((function(t) { 10249 return t.forEach(e.handleMutation); 10250 })), this._observer.observe(this._context, f)); 10251 } 10252 }, { 10253 key: "handleMutation", 10254 value: function(e) { 10255 "childList" === e.type && (0, r.default)(e.addedNodes).filter((function(e) { 10256 return e.nodeType === Node.ELEMENT_NODE; 10257 })).filter(this.isInsignificantBranch).forEach(d); 10258 } 10259 }, { 10260 key: "isInsignificantBranch", 10261 value: function(e) { 10262 if ((0, s.default)({ 10263 context: e 10264 }).some((function(e) { 10265 return "true" === e.getAttribute("aria-hidden"); 10266 }))) return !1; 10267 var t = (0, l.getParentComparator)({ 10268 element: e 10269 }); 10270 return !this._filter.some(t); 10271 } 10272 } ]), e; 10273 }(); 10274 e.exports = t.default; 10275 }, function(e, t, n) { 10276 "use strict"; 10277 Object.defineProperty(t, "__esModule", { 10278 value: !0 10279 }), t.default = function() { 10280 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context; 10281 return t || (t = document.documentElement), (0, r.default)(), (0, o.default)({ 10282 "?alt+?shift+tab": function(e) { 10283 e.preventDefault(); 10284 var n = (0, r.default)({ 10285 context: t 10286 }), o = e.shiftKey, s = n[0], a = n[n.length - 1], l = o ? s : a, c = o ? a : s; 10287 if ((0, i.default)(l)) c.focus(); else { 10288 var u = void 0; 10289 if (n.some((function(e, t) { 10290 return !!(0, i.default)(e) && (u = t, !0); 10291 }))) n[u + (o ? -1 : 1)].focus(); else s.focus(); 10292 } 10293 } 10294 }); 10295 };
10296 var i = s(n(103)), r = s(n(185)), o = s(n(186)); 10297 function s(e) { 10298 return e && e.__esModule ? e : { 10299 default: e 10300 }; 10301 } 10302 e.exports = t.default; 10303 }, function(e, t, n) { 10304 "use strict"; 10305 Object.defineProperty(t, "__esModule", { 10306 value: !0 10307 }); 10308 var i = function() { 10309 function e(e, t) { 10310 for (var n = 0; n < t.length; n++) { 10311 var i = t[n]; 10312 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 10313 Object.defineProperty(e, i.key, i); 10314 } 10315 } 10316 return function(t, n, i) { 10317 return n && e(t.prototype, n), i && e(t, i), t; 10318 }; 10319 }(); 10320 t.default = function(e, t) { 10321 var n = t.querySelectorAll("img[usemap]"), i = new c(t), r = i.extractAreasFromList(e); 10322 return n.length ? (0, o.default)({ 10323 list: r, 10324 elements: n, 10325 resolveElement: function(e) { 10326 var t = e.getAttribute("usemap").slice(1); 10327 return i.getAreasFor(t); 10328 } 10329 }) : r; 10330 }; 10331 var r = l(n(77)), o = l(n(138)), s = l(n(35)), a = n(107); 10332 function l(e) { 10333 return e && e.__esModule ? e : { 10334 default: e 10335 }; 10336 } 10337 var c = function() { 10338 function e(t) { 10339 !function(e, t) { 10340 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 10341 }(this, e), this._document = (0, s.default)(t), this.maps = {}; 10342 } 10343 return i(e, [ { 10344 key: "getAreasFor", 10345 value: function(e) { 10346 return this.maps[e] || this.addMapByName(e), this.maps[e]; 10347 } 10348 }, { 10349 key: "addMapByName", 10350 value: function(e) { 10351 var t = (0, a.getMapByName)(e, this._document); 10352 t && (this.maps[t.name] = (0, r.default)({ 10353 context: t 10354 })); 10355 } 10356 }, { 10357 key: "extractAreasFromList", 10358 value: function(e) { 10359 return e.filter((function(e) { 10360 if ("area" !== e.nodeName.toLowerCase()) return !0; 10361 var t = e.parentNode; 10362 return this.maps[t.name] || (this.maps[t.name] = []), this.maps[t.name].push(e), 10363 !1; 10364 }), this); 10365 } 10366 } ]), e; 10367 }(); 10368 e.exports = t.default; 10369 }, function(e, t, n) { 10370 "use strict"; 10371 Object.defineProperty(t, "__esModule", { 10372 value: !0 10373 }); 10374 var i = function() { 10375 function e(e, t) { 10376 for (var n = 0; n < t.length; n++) { 10377 var i = t[n]; 10378 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 10379 Object.defineProperty(e, i.key, i); 10380 } 10381 } 10382 return function(t, n, i) { 10383 return n && e(t.prototype, n), i && e(t, i), t; 10384 }; 10385 }(); 10386 t.default = function(e, t, n) { 10387 var i = new l(t, n), r = i.extractElements(e); 10388 return r.length === e.length ? n(e) : i.sort(r); 10389 }; 10390 var r = a(n(75)), o = a(n(138)), s = a(n(51)); 10391 function a(e) { 10392 return e && e.__esModule ? e : { 10393 default: e 10394 }; 10395 } 10396 var l = function() { 10397 function e(t, n) { 10398 !function(e, t) { 10399 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 10400 }(this, e), this.context = t, this.sortElements = n, this.hostCounter = 1, this.inHost = {}, 10401 this.inDocument = [], this.hosts = {}, this.elements = {}; 10402 } 10403 return i(e, [ { 10404 key: "_registerHost", 10405 value: function(e) { 10406 if (!e._sortingId) { 10407 e._sortingId = "shadow-" + this.hostCounter++, this.hosts[e._sortingId] = e; 10408 var t = (0, r.default)({ 10409 context: e 10410 }); 10411 t ? (this._registerHost(t), this._registerHostParent(e, t)) : this.inDocument.push(e); 10412 } 10413 } 10414 }, { 10415 key: "_registerHostParent", 10416 value: function(e, t) { 10417 this.inHost[t._sortingId] || (this.inHost[t._sortingId] = []), this.inHost[t._sortingId].push(e); 10418 } 10419 }, { 10420 key: "_registerElement", 10421 value: function(e, t) { 10422 this.elements[t._sortingId] || (this.elements[t._sortingId] = []), this.elements[t._sortingId].push(e); 10423 } 10424 }, { 10425 key: "extractElements", 10426 value: function(e) { 10427 return e.filter((function(e) { 10428 var t = (0, r.default)({ 10429 context: e 10430 }); 10431 return !t || (this._registerHost(t), this._registerElement(e, t), !1); 10432 }), this); 10433 } 10434 }, { 10435 key: "sort", 10436 value: function(e) { 10437 var t = this._injectHosts(e); 10438 return t = this._replaceHosts(t), this._cleanup(), t; 10439 } 10440 }, { 10441 key: "_injectHosts", 10442 value: function(e) {
10443 return Object.keys(this.hosts).forEach((function(e) { 10444 var t = this.elements[e], n = this.inHost[e], i = this.hosts[e].shadowRoot; 10445 this.elements[e] = this._merge(t, n, i); 10446 }), this), this._merge(e, this.inDocument, this.context); 10447 } 10448 }, { 10449 key: "_merge", 10450 value: function(e, t, n) { 10451 var i = (0, o.default)({ 10452 list: e, 10453 elements: t 10454 }); 10455 return this.sortElements(i, n); 10456 } 10457 }, { 10458 key: "_replaceHosts", 10459 value: function(e) { 10460 return (0, o.default)({ 10461 list: e, 10462 elements: this.inDocument, 10463 resolveElement: this._resolveHostElement.bind(this) 10464 }); 10465 } 10466 }, { 10467 key: "_resolveHostElement", 10468 value: function(e) { 10469 var t = (0, o.default)({ 10470 list: this.elements[e._sortingId], 10471 elements: this.inHost[e._sortingId], 10472 resolveElement: this._resolveHostElement.bind(this) 10473 }), n = (0, s.default)(e); 10474 return null !== n && n > -1 ? [ e ].concat(t) : t; 10475 } 10476 }, { 10477 key: "_cleanup", 10478 value: function() { 10479 Object.keys(this.hosts).forEach((function(e) { 10480 delete this.hosts[e]._sortingId; 10481 }), this); 10482 } 10483 } ]), e; 10484 }(); 10485 e.exports = t.default; 10486 }, function(e, t, n) { 10487 "use strict"; 10488 Object.defineProperty(t, "__esModule", { 10489 value: !0 10490 }), t.default = function(e) { 10491 var t = {}, n = [], i = e.filter((function(e) { 10492 var i = e.tabIndex; 10493 return void 0 === i && (i = (0, o.default)(e)), i <= 0 || null == i || (t[i] || (t[i] = [], 10494 n.push(i)), t[i].push(e), !1); 10495 })); 10496 return n.sort().map((function(e) { 10497 return t[e]; 10498 })).reduceRight((function(e, t) { 10499 return t.concat(e); 10500 }), i); 10501 }; 10502 var i, r = n(51), o = (i = r) && i.__esModule ? i : { 10503 default: i 10504 }; 10505 e.exports = t.default; 10506 }, function(e, t, n) { 10507 "use strict"; 10508 Object.defineProperty(t, "__esModule", { 10509 value: !0 10510 }), t.default = function(e) { 10511 return e.split(/\s+/).map((function(e) { 10512 var t, n, i, r, a = e.split("+"), c = (i = a.slice(0, -1), t = -1 !== i.indexOf("*"), 10513 r = { 10514 altKey: n = !!t && null, 10515 ctrlKey: n, 10516 metaKey: n, 10517 shiftKey: n 10518 }
10518, i.forEach((function(e) { 10519 if ("*" !== e) { 10520 var t = !0, n = e.slice(0, 1); 10521 "?" === n ? t = null : "!" === n && (t = !1), !0 !== t && (e = e.slice(1)); 10522 var i = s[e]; 10523 if (!i) throw new TypeError('Unknown modifier "' + e + '"'); 10524 r[i] = t; 10525 } 10526 })), r); 10527 return { 10528 keyCodes: function(e) { 10529 var t = o.default[e] || parseInt(e, 10); 10530 if (!t || "number" != typeof t || isNaN(t)) throw new TypeError('Unknown key "' + e + '"'); 10531 return [ t ].concat(o.default._alias[t] || []); 10532 }(a.slice(-1)), 10533 modifiers: c, 10534 matchModifiers: l.bind(null, c) 10535 }; 10536 })); 10537 }; 10538 var i, r = n(187), o = (i = r) && i.__esModule ? i : { 10539 default: i 10540 }; 10541 var s = { 10542 alt: "altKey", 10543 ctrl: "ctrlKey", 10544 meta: "metaKey", 10545 shift: "shiftKey" 10546 }, a = Object.keys(s).map((function(e) { 10547 return s[e]; 10548 })); 10549 function l(e, t) { 10550 return !a.some((function(n) { 10551 return "boolean" == typeof e[n] && Boolean(t[n]) !== e[n]; 10552 })); 10553 } 10554 e.exports = t.default; 10555 }, function(e, t, n) { 10556 "use strict"; 10557 Object.defineProperty(t, "__esModule", { 10558 value: !0 10559 }); 10560 var i = o(n(351)), r = o(n(187)); 10561 function o(e) { 10562 return e && e.__esModule ? e : { 10563 default: e 10564 }; 10565 } 10566 t.default = { 10567 attribute: i.default, 10568 keycode: r.default 10569 }, e.exports = t.default; 10570 }, function(e, t, n) { 10571 "use strict"; 10572 Object.defineProperty(t, "__esModule", { 10573 value: !0 10574 }), t.default = { 10575 "aria-busy": { 10576 default: "false", 10577 values: [ "true", "false" ] 10578 }, 10579 "aria-checked": { 10580 default: void 0, 10581 values: [ "true", "false", "mixed", void 0 ] 10582 }, 10583 "aria-disabled": { 10584 default: "false", 10585 values: [ "true", "false" ] 10586 }, 10587 "aria-expanded": { 10588 default: void 0, 10589 values: [ "true", "false", void 0 ] 10590 }, 10591 "aria-grabbed": { 10592 default: void 0, 10593 values: [ "true", "false", void 0 ] 10594 }, 10595 "aria-hidden": { 10596 default: "false", 10597 values: [ "true", "false" ] 10598 }, 10599 "aria-invalid": { 10600 default: "false", 10601 values: [ "true", "false", "grammar", "spelling" ] 10602 }, 10603 "aria-pressed": { 10604 default: void 0, 10605 values: [ "true", "false", "mixed", void 0 ] 10606 }, 10607 "aria-selected": { 10608 default: void 0, 10609 values: [ "true", "false", void 0 ] 10610 }, 10611 "aria-atomic": { 10612 default: "false", 10613 values: [ "true", "false" ] 10614 }, 10615 "aria-autocomplete": { 10616 default: "none", 10617 values: [ "inline", "list", "both", "none" ] 10618 }, 10619 "aria-dropeffect": { 10620 default: "none", 10621 multiple: !0, 10622 values: [ "copy", "move", "link", "execute", "popup", "none" ] 10623 }, 10624 "aria-haspopup": { 10625 default: "false", 10626 values: [ "true", "false" ] 10627 }, 10628 "aria-live": { 10629 default: "off", 10630 values: [ "off", "polite", "assertive" ] 10631 }, 10632 "aria-multiline": { 10633 default: "false", 10634 values: [ "true", "false" ] 10635 }, 10636 "aria-multiselectable": { 10637 default: "false", 10638 values: [ "true", "false" ] 10639 }, 10640 "aria-orientation": { 10641 default: "horizontal", 10642 values: [ "vertical", "horizontal" ] 10643 }, 10644 "aria-readonly": { 10645 default: "false", 10646 values: [ "true", "false" ] 10647 }, 10648 "aria-relevant": { 10649 default: "additions text", 10650 multiple: !0, 10651 values: [ "additions", "removals", "text", "all" ] 10652 }, 10653 "aria-required": { 10654 default: "false", 10655 values: [ "true", "false" ] 10656 }, 10657 "aria-sort": { 10658 default: "none", 10659 other: !0, 10660 values: [ "ascending", "descending", "none" ] 10661 } 10662 }, e.exports = t.default; 10663 }, function(e, t, n) { 10664 "use strict"; 10665 Object.defineProperty(t, "__esModule", { 10666 value: !0 10667 }); 10668 var i = o(n(188)), r = o(n(183)); 10669 function o(e) {
10670 return e && e.__esModule ? e : { 10671 default: e 10672 }; 10673 } 10674 t.default = { 10675 interactionType: i.default, 10676 shadowMutations: r.default 10677 }, e.exports = t.default; 10678 }, function(e, t, n) { 10679 "use strict"; 10680 Object.defineProperty(t, "__esModule", { 10681 value: !0 10682 }); 10683 var i = l(n(354)), r = l(n(108)), o = l(n(184)), s = l(n(77)), a = l(n(185)); 10684 function l(e) { 10685 return e && e.__esModule ? e : { 10686 default: e 10687 }; 10688 } 10689 t.default = { 10690 firstTabbable: i.default, 10691 focusable: r.default, 10692 shadowHosts: o.default, 10693 tabbable: s.default, 10694 tabsequence: a.default 10695 }, e.exports = t.default; 10696 }, function(e, t, n) { 10697 "use strict"; 10698 Object.defineProperty(t, "__esModule", { 10699 value: !0 10700 }), t.default = function() { 10701 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.sequence, a = e.strategy, u = e.ignoreAutofocus, d = e.defaultToContext, h = e.includeOnlyTabbable, f = -1; 10702 n || (t = (0, s.default)(t || document.body)[0], n = (0, r.default)({ 10703 context: t, 10704 includeOnlyTabbable: h, 10705 strategy: a 10706 })), n.length && !u && (f = (0, i.default)(n, l)), n.length && -1 === f && (f = (0, 10707 i.default)(n, c)); 10708 var p = o.default.rules.except({ 10709 onlyTabbable: h 10710 }); 10711 return -1 === f && d && t && p(t) ? t : n[f] || null; 10712 }; 10713 var i = a(n(136)), r = a(n(77)), o = a(n(43)), s = a(n(34)); 10714 function a(e) { 10715 return e && e.__esModule ? e : { 10716 default: e 10717 }; 10718 } 10719 function l(e) { 10720 return e.hasAttribute("autofocus"); 10721 } 10722 function c(e) { 10723 return e.tabIndex <= 0; 10724 } 10725 e.exports = t.default; 10726 }, function(e, t, n) { 10727 "use strict"; 10728 Object.defineProperty(t, "__esModule", { 10729 value: !0 10730 }); 10731 var i = o(n(356)), r = o(n(357)); 10732 function o(e) { 10733 return e && e.__esModule ? e : { 10734 default: e 10735 }; 10736 } 10737 t.default = { 10738 focusSource: i.default, 10739 focusWithin: r.default 10740 }, e.exports = t.default; 10741 }, function(e, t, n) { 10742 "use strict"; 10743 Object.defineProperty(t, "__esModule", { 10744 value: !0 10745 }); 10746 var i = n(189), r = a(n(139)), o = a(n(188)), s = a(n(78)); 10747 function a(e) { 10748 return e && e.__esModule ? e : { 10749 default: e 10750 }; 10751 } 10752 var l = "undefined" != typeof document && "onfocusin" in document, c = l ? "focusin" : "focus", u = l ? "focusout" : "blur", d = void 0, h = void 0, f = null, p = null, m = { 10753 pointer: !1, 10754 key: !1, 10755 script: !1, 10756 initial: !1 10757 }; 10758 function g(e) { 10759 var t = ""; 10760 if (e.type === c || "shadow-focus" === e.type) { 10761 var n = d.get(); 10762 t = p || n.pointer && "pointer" || n.key && "key" || "script"; 10763 } else "initial" === e.type && (t = "initial"); 10764 document.documentElement.setAttribute("data-focus-source", t), e.type !== u && (m[t] || (0, 10765 i.addClass)(document.documentElement, "focus-source-" + t), m[t] = !0, f = t); 10766 } 10767 function v() { 10768 return f; 10769 } 10770 function b(e) { 10771 return m[e]; 10772 } 10773 function y(e) { 10774 p = e; 10775 } 10776 function x() { 10777 p = !1; 10778 } 10779 t.default = (0, s.default)({ 10780 engage: function() { 10781 return h = (0, r.default)(), document.addEventListener("shadow-focus", g, !0), document.documentElement.addEventListener(c, g, !0), 10782 document.documentElement.addEventListener(u, g, !0), d = (0, o.default)(), g({ 10783 type: "initial" 10784 }), { 10785 used: b, 10786 current: v, 10787 lock: y, 10788 unlock: x 10789 }; 10790 }, 10791 disengage: function() { 10792 g({ 10793 type: u 10794 }), f = p = null, Object.keys(m).forEach((function(e) { 10795 (0, i.removeClass)(document.documentElement, "focus-source-" + e), m[e] = !1; 10796 }
10796)), d.disengage(), h && h.disengage(), document.removeEventListener("shadow-focus", g, !0), 10797 document.documentElement.removeEventListener(c, g, !0), document.documentElement.removeEventListener(u, g, !0), 10798 document.documentElement.removeAttribute("data-focus-source"); 10799 } 10800 }), e.exports = t.default; 10801 }, function(e, t, n) { 10802 "use strict"; 10803 Object.defineProperty(t, "__esModule", { 10804 value: !0 10805 }); 10806 var i = n(189), r = u(n(139)), o = u(n(140)), s = u(n(36)), a = u(n(78)), l = u(n(137)), c = u(n(30)); 10807 function u(e) { 10808 return e && e.__esModule ? e : { 10809 default: e 10810 }; 10811 } 10812 var d = void 0, h = "undefined" != typeof document && "onfocusin" in document, f = h ? "focusin" : "focus", p = h ? "focusout" : "blur", m = "ally-focus-within", g = void 0, v = void 0, b = void 0; 10813 function y(e) { 10814 var t = e || (0, o.default)(); 10815 d.cssShadowPiercingDeepCombinator || (t = t.slice(-1)); 10816 var n = [].slice.call(document.querySelectorAll(g), 0), r = t.map((function(e) { 10817 return (0, s.default)({ 10818 context: e 10819 }); 10820 })).reduce((function(e, t) { 10821 return t.concat(e); 10822 }), []); 10823 n.forEach((function(e) { 10824 -1 === r.indexOf(e) && (0, i.removeClass)(e, m); 10825 })), r.forEach((function(e) { 10826 -1 === n.indexOf(e) && (0, i.addClass)(e, m); 10827 })); 10828 } 10829 function x() { 10830 v = (window.setImmediate || window.setTimeout)((function() { 10831 y(); 10832 })); 10833 } 10834 function w() { 10835 (window.clearImmediate || window.clearTimeout)(v), y(); 10836 } 10837 function _(e) { 10838 y(e.detail.elements); 10839 } 10840 t.default = (0, a.default)({ 10841 engage: function() { 10842 d || (d = (0, c.default)(), g = (0, l.default)("." + m)), b = (0, r.default)(), 10843 document.addEventListener(p, x, !0), document.addEventListener(f, w, !0), document.addEventListener("shadow-focus", _, !0), 10844 y(); 10845 }, 10846 disengage: function() { 10847 b && b.disengage(), (window.clearImmediate || window.clearTimeout)(v), document.removeEventListener(p, x, !0), 10848 document.removeEventListener(f, w, !0), document.removeEventListener("shadow-focus", _, !0), 10849 [].forEach.call(document.querySelectorAll(g), (function(e) { 10850 (0, i.removeClass)(e, m); 10851 })); 10852 } 10853 }), e.exports = t.default; 10854 }, function(e, t, n) { 10855 "use strict"; 10856 Object.defineProperty(t, "__esModule", { 10857 value: !0 10858 }); 10859 var i = s(n(359)), r = s(n(186)), o = s(n(190)); 10860 function s(e) { 10861 return e && e.__esModule ? e : { 10862 default: e 10863 }; 10864 } 10865 t.default = { 10866 focusable: i.default, 10867 key: r.default, 10868 visibleArea: o.default 10869 }, e.exports = t.default; 10870 }, function(e, t, n) { 10871 "use strict"; 10872 Object.defineProperty(t, "__esModule", { 10873 value: !0 10874 }), t.default = function() { 10875 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t = e.context, n = e.callback, a = e.area; 10876 if ("function" != typeof n) throw new TypeError("when/focusable requires options.callback to be a function"); 10877 var l = (0, o.default)({ 10878 label: "when/focusable", 10879 context: t 10880 }), c = function(e) { 10881 return !!(0, r.default)(e) && n(e); 10882 }, u = (0, s.default)(l), d = (0, i.default)({ 10883 context: l, 10884 callback: c, 10885 area: a 10886 }), h = function e() { 10887 u.removeEventListener("focus", e, !0), d && d.disengage(); 10888 }; 10889 return u.addEventListener("focus", h, !0), { 10890 disengage: h 10891 }; 10892 }; 10893 var i = a(n(190)), r = a(n(43)), o = a(n(9)), s = a(n(35)); 10894 function a(e) {
10895 return e && e.__esModule ? e : { 10896 default: e 10897 }; 10898 } 10899 e.exports = t.default; 10900 }, function(e, t, n) { 10901 "use strict"; 10902 Object.defineProperty(t, "__esModule", { 10903 value: !0 10904 }), t.default = function(e) { 10905 var t, n, i = e.getBoundingClientRect(), r = (t = window.innerWidth || document.documentElement.clientWidth, 10906 n = window.innerHeight || document.documentElement.clientHeight, { 10907 top: 0, 10908 right: t, 10909 bottom: n, 10910 left: 0, 10911 width: t, 10912 height: n 10913 }); 10914 r.area = r.width * r.height; 10915 var c = r, u = function(e) { 10916 var t = (0, o.default)({ 10917 context: e 10918 }).slice(1).filter(l); 10919 if (!t.length) return null; 10920 return t.reduce((function(e, t) { 10921 var n = a(t), i = s(n, e); 10922 return i.area = Math.min(n.area, e.area), i; 10923 }), a(t[0])); 10924 }(e); 10925 if (u) { 10926 if (!u.width || !u.height) return 0; 10927 (c = s(u, r)).area = u.area; 10928 } 10929 var d = s(i, c); 10930 if (!d.width || !d.height) return 0; 10931 var h = i.width * i.height, f = Math.min(h, c.area), p = Math.round(d.width) * Math.round(d.height) / f, m = Math.round(1e4 * p) / 1e4; 10932 return Math.min(m, 1); 10933 }; 10934 var i, r = n(36), o = (i = r) && i.__esModule ? i : { 10935 default: i 10936 }; 10937 function s(e, t) { 10938 var n = Math.max(e.top, t.top), i = Math.max(e.left, t.left), r = Math.max(Math.min(e.right, t.right), i), o = Math.max(Math.min(e.bottom, t.bottom), n); 10939 return { 10940 top: n, 10941 right: r, 10942 bottom: o, 10943 left: i, 10944 width: r - i, 10945 height: o - n 10946 }; 10947 } 10948 function a(e) { 10949 var t = e.getBoundingClientRect(), n = e.offsetWidth - e.clientWidth, i = e.offsetHeight - e.clientHeight, r = { 10950 top: t.top, 10951 left: t.left, 10952 right: t.right - n, 10953 bottom: t.bottom - i, 10954 width: t.width - n, 10955 height: t.height - i, 10956 area: 0 10957 }; 10958 return r.area = r.width * r.height, r; 10959 } 10960 function l(e) { 10961 return !!function(e) { 10962 var t = window.getComputedStyle(e, null); 10963 return "visible" !== t.getPropertyValue("overflow-x") && "visible" !== t.getPropertyValue("overflow-y"); 10964 }(e) && (e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth); 10965 } 10966 e.exports = t.default; 10967 }, function(e, t, n) { 10968 (function(t) { 10969 var n; 10970 window, n = function() { 10971 return function() { 10972 var e = { 10973 282: function(e, t, n) { 10974 "use strict"; 10975 Object.defineProperty(t, "__esModule", { 10976 value: !0 10977 }), t.clearChoices = t.activateChoices = t.filterChoices = t.addChoice = void 0; 10978 var i = n(883); 10979 t.addChoice = function(e) { 10980 var t = e.value, n = e.label, r = e.id, o = e.groupId, s = e.disabled, a = e.elementId, l = e.customProperties, c = e.placeholder, u = e.keyCode; 10981 return { 10982 type: i.ACTION_TYPES.ADD_CHOICE, 10983 value: t, 10984 label: n, 10985 id: r, 10986 groupId: o, 10987 disabled: s, 10988 elementId: a, 10989 customProperties: l, 10990 placeholder: c, 10991 keyCode: u 10992 }; 10993 }, t.filterChoices = function(e) { 10994 return { 10995 type: i.ACTION_TYPES.FILTER_CHOICES, 10996 results: e 10997 }; 10998 }, t.activateChoices = function(e) { 10999 return void 0 === e && (e = !0), { 11000 type: i.ACTION_TYPES.ACTIVATE_CHOICES, 11001 active: e 11002 }; 11003 }, t.clearChoices = function() { 11004 return { 11005 type: i.ACTION_TYPES.CLEAR_CHOICES 11006 }; 11007 }; 11008 }, 11009 783: function(e, t, n) { 11010 "use strict"; 11011 Object.defineProperty(t, "__esModule", { 11012 value: !0 11013 }), t.addGroup = void 0; 11014 var i = n(883); 11015 t.addGroup = function(e) { 11016 var t = e.value, n = e.id, r = e.active, o = e.disabled; 11017 return { 11018 type: i.ACTION_TYPES.ADD_GROUP, 11019 value: t, 11020 id: n, 11021 active: r, 11022 disabled: o 11023 }; 11024 }; 11025 }, 11026 464: function(e, t, n) { 11027 "use strict"; 11028 Object.defineProperty(t, "__esModule", { 11029 value: !0 11030 }), t.highlightItem = t.removeItem = t.addItem = void 0; 11031 var i = n(883); 11032 t.addItem = function(e) { 11033 var t = e.value, n = e.label, r = e.id, o = e.choiceId, s = e.groupId, a = e.customProperties, l = e.placeholder, c = e.keyCode; 11034 return { 11035 type: i.ACTION_TYPES.ADD_ITEM, 11036 value: t, 11037 label: n, 11038 id: r, 11039 choiceId: o, 11040 groupId: s, 11041 customProperties: a, 11042 placeholder: l, 11043 keyCode: c 11044 }; 11045 }, t.removeItem = function(e, t) { 11046 return { 11047 type: i.ACTION_TYPES.REMOVE_ITEM, 11048 id: e, 11049 choiceId: t 11050 }; 11051 }, t.highlightItem = function(e, t) { 11052 return { 11053 type: i.ACTION_TYPES.HIGHLIGHT_ITEM, 11054 id: e, 11055 highlighted: t 11056 }; 11057 }; 11058 }, 11059 137: function(e, t, n) { 11060 "use strict"; 11061 Object.defineProperty(t, "__esModule", { 11062 value: !0 11063 }), t.setIsLoading = t.resetTo = t.clearAll = void 0; 11064 var i = n(883); 11065 t.clearAll = function() { 11066 return { 11067 type: i.ACTION_TYPES.CLEAR_ALL 11068 }; 11069 }, t.resetTo = function(e) { 11070 return { 11071 type: i.ACTION_TYPES.RESET_TO, 11072 state: e 11073 }; 11074 }, t.setIsLoading = function(e) { 11075 return { 11076 type: i.ACTION_TYPES.SET_IS_LOADING, 11077 isLoading: e 11078 }; 11079 }; 11080 }, 11081 373: function(e, n, i) { 11082 "use strict"; 11083 var r = this && this.__spreadArray || function(e, t, n) { 11084 if (n || 2 === arguments.length) for (var i, r = 0, o = t.length; r < o; r++) !i && r in t || (i || (i = Array.prototype.slice.call(t, 0, r)), 11085 i[r] = t[r]); 11086 return e.concat(i || Array.prototype.slice.call(t)); 11087 }, o = this && this.__importDefault || function(e) {
11088 return e && e.__esModule ? e : { 11089 default: e 11090 }; 11091 }; 11092 Object.defineProperty(n, "__esModule", { 11093 value: !0 11094 }); 11095 var s = o(i(996)), a = o(i(70)), l = i(282), c = i(783), u = i(464), d = i(137), h = i(520), f = i(883), p = i(789), m = i(799), g = i(655), v = o(i(744)), b = o(i(686)), y = "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style, x = {}, w = function() { 11096 function e(t, n) { 11097 var i = this; 11098 void 0 === t && (t = "[data-choice]"), void 0 === n && (n = {}), this.config = s.default.all([ p.DEFAULT_CONFIG, e.defaults.options, n ], { 11099 arrayMerge: function(e, t) { 11100 return r([], t, !0); 11101 } 11102 }); 11103 var o = (0, m.diff)(this.config, p.DEFAULT_CONFIG); 11104 o.length && console.warn("Unknown config option(s) passed", o.join(", ")); 11105 var a = "string" == typeof t ? document.querySelector(t) : t; 11106 if (!(a instanceof HTMLInputElement || a instanceof HTMLSelectElement)) throw TypeError("Expected one of the following types text|select-one|select-multiple"); 11107 if (this._isTextElement = a.type === f.TEXT_TYPE, this._isSelectOneElement = a.type === f.SELECT_ONE_TYPE, 11108 this._isSelectMultipleElement = a.type === f.SELECT_MULTIPLE_TYPE, this._isSelectElement = this._isSelectOneElement || this._isSelectMultipleElement, 11109 this.config.searchEnabled = this._isSelectMultipleElement || this.config.searchEnabled, 11110 [ "auto", "always" ].includes("".concat(this.config.renderSelectedChoices)) || (this.config.renderSelectedChoices = "auto"), 11111 n.addItemFilter && "function" != typeof n.addItemFilter) { 11112 var l = n.addItemFilter instanceof RegExp ? n.addItemFilter : new RegExp(n.addItemFilter); 11113 this.config.addItemFilter = l.test.bind(l); 11114 } 11115 if (this._isTextElement ? this.passedElement = new h.WrappedInput({ 11116 element: a, 11117 classNames: this.config.classNames, 11118 delimiter: this.config.delimiter 11119 }) : this.passedElement = new h.WrappedSelect({ 11120 element: a, 11121 classNames: this.config.classNames, 11122 template: function(e) { 11123 return i._templates.option(e); 11124 } 11125 }), this.initialised = !1, this._store = new v.default, this._initialState = g.defaultState, 11126 this._currentState = g.defaultState, this._prevState = g.defaultState, this._currentValue = "", 11127 this._canSearch = !!this.config.searchEnabled, this._isScrollingOnIe = !1, this._highlightPosition = 0, 11128 this._wasTap = !0, this._placeholderValue = this._generatePlaceholderValue(), this._baseId = (0, 11129 m.generateId)(this.passedElement.element, "choices-"), this._direction = this.passedElement.dir, 11130 !this._direction) { 11131 var c = window.getComputedStyle(this.passedElement.element).direction; 11132 c !== window.getComputedStyle(document.documentElement).direction && (this._direction = c); 11133 } 11134 if (this._idNames = { 11135 itemChoice: "item-choice" 11136 }, this._isSelectElement && (this._presetGroups = this.passedElement.optionGroups, 11137 this._presetOptions = this.passedElement.options), this._presetChoices = this.config.choices, 11138 this._presetItems = this.config.items, this.passedElement.value && this._isTextElement) { 11139 var u = this.passedElement.value.split(this.config.delimiter); 11140 this._presetItems = this._presetItems.concat(u); 11141 } 11142 if (this.passedElement.options && this.passedElement.options.forEach((function(e) { 11143 i._presetChoices.push({ 11144 value: e.value, 11145 label: e.innerHTML, 11146 selected: !!e.selected, 11147 disabled: e.disabled || e.parentNode.disabled, 11148 placeholder: "" === e.value || e.hasAttribute("placeholder"), 11149 customProperties: e.dataset["custom-properties"] 11150 }); 11151 })), this._render = this._render.bind(this), this._onFocus = this._onFocus.bind(this), 11152 this._onBlur = this._onBlur.bind(this), this._onKeyUp = this._onKeyUp.bind(this), 11153 this._onKeyDown = this._onKeyDown.bind(this), this._onClick = this._onClick.bind(this), 11154 this._onTouchMove = this._onTouchMove.bind(this), this._onTouchEnd = this._onTouchEnd.bind(this), 11155 this._onMouseDown = this._onMouseDown.bind(this), this._onMouseOver = this._onMouseOver.bind(this), 11156 this._onFormReset = this._onFormReset.bind(this), this._onSelectKey = this._onSelectKey.bind(this), 11157 this._onEnterKey = this._onEnterKey.bind(this), this._onEscapeKey = this._onEscapeKey.bind(this), 11158 this._onDirectionKey = this._onDirectionKey.bind(this), this._onDeleteKey = this._onDeleteKey.bind(this), 11159 this.passedElement.isActive) return this.config.silent || console.warn("Trying to initialise Choices on element already initialised", { 11160 element: t 11161 }
11161), void (this.initialised = !0); 11162 this.init(); 11163 } 11164 return Object.defineProperty(e, "defaults", { 11165 get: function() { 11166 return Object.preventExtensions({ 11167 get options() { 11168 return x; 11169 }, 11170 get templates() { 11171 return b.default; 11172 } 11173 }); 11174 }, 11175 enumerable: !1, 11176 configurable: !0 11177 }), e.prototype.init = function() { 11178 if (!this.initialised) { 11179 this._createTemplates(), this._createElements(), this._createStructure(), this._store.subscribe(this._render), 11180 this._render(), this._addEventListeners(), (!this.config.addItems || this.passedElement.element.hasAttribute("disabled")) && this.disable(), 11181 this.initialised = !0; 11182 var e = this.config.callbackOnInit; 11183 e && "function" == typeof e && e.call(this); 11184 } 11185 }, e.prototype.destroy = function() { 11186 this.initialised && (this._removeEventListeners(), this.passedElement.reveal(), 11187 this.containerOuter.unwrap(this.passedElement.element), this.clearStore(), this._isSelectElement && (this.passedElement.options = this._presetOptions), 11188 this._templates = b.default, this.initialised = !1); 11189 }, e.prototype.enable = function() { 11190 return this.passedElement.isDisabled && this.passedElement.enable(), this.containerOuter.isDisabled && (this._addEventListeners(), 11191 this.input.enable(), this.containerOuter.enable()), this; 11192 }, e.prototype.disable = function() { 11193 return this.passedElement.isDisabled || this.passedElement.disable(), this.containerOuter.isDisabled || (this._removeEventListeners(), 11194 this.input.disable(), this.containerOuter.disable()), this; 11195 }, e.prototype.highlightItem = function(e, t) { 11196 if (void 0 === t && (t = !0), !e || !e.id) return this; 11197 var n = e.id, i = e.groupId, r = void 0 === i ? -1 : i, o = e.value, s = void 0 === o ? "" : o, a = e.label, l = void 0 === a ? "" : a, c = r >= 0 ? this._store.getGroupById(r) : null; 11198 return this._store.dispatch((0, u.highlightItem)(n, !0)), t && this.passedElement.triggerEvent(f.EVENTS.highlightItem, { 11199 id: n, 11200 value: s, 11201 label: l, 11202 groupValue: c && c.value ? c.value : null 11203 }), this; 11204 }, e.prototype.unhighlightItem = function(e) { 11205 if (!e || !e.id) return this; 11206 var t = e.id, n = e.groupId, i = void 0 === n ? -1 : n, r = e.value, o = void 0 === r ? "" : r, s = e.label, a = void 0 === s ? "" : s, l = i >= 0 ? this._store.getGroupById(i) : null; 11207 return this._store.dispatch((0, u.highlightItem)(t, !1)), this.passedElement.triggerEvent(f.EVENTS.highlightItem, { 11208 id: t, 11209 value: o, 11210 label: a, 11211 groupValue: l && l.value ? l.value : null 11212 }), this; 11213 }, e.prototype.highlightAll = function() { 11214 var e = this; 11215 return this._store.items.forEac
11215h((function(t) { 11216 return e.highlightItem(t); 11217 })), this; 11218 }, e.prototype.unhighlightAll = function() { 11219 var e = this; 11220 return this._store.items.forEach((function(t) { 11221 return e.unhighlightItem(t); 11222 })), this; 11223 }, e.prototype.removeActiveItemsByValue = function(e) { 11224 var t = this; 11225 return this._store.activeItems.filter((function(t) { 11226 return t.value === e; 11227 })).forEach((function(e) { 11228 return t._removeItem(e); 11229 })), this; 11230 }, e.prototype.removeActiveItems = function(e) { 11231 var t = this; 11232 return this._store.activeItems.filter((function(t) { 11233 return t.id !== e; 11234 })).forEach((function(e) { 11235 return t._removeItem(e); 11236 })), this; 11237 }, e.prototype.removeHighlightedItems = function(e) { 11238 var t = this; 11239 return void 0 === e && (e = !1), this._store.highlightedActiveItems.forEach((function(n) { 11240 t._removeItem(n), e && t._triggerChange(n.value); 11241 })), this; 11242 }, e.prototype.showDropdown = function(e) { 11243 var t = this; 11244 return this.dropdown.isActive || requestAnimationFrame((function() { 11245 t.dropdown.show(), t.containerOuter.open(t.dropdown.distanceFromTopWindow), !e && t._canSearch && t.input.focus(), 11246 t.passedElement.triggerEvent(f.EVENTS.showDropdown, {}); 11247 })), this; 11248 }, e.prototype.hideDropdown = function(e) { 11249 var t = this; 11250 return this.dropdown.isActive ? (requestAnimationFrame((function() { 11251 t.dropdown.hide(), t.containerOuter.close(), !e && t._canSearch && (t.input.removeActiveDescendant(), 11252 t.input.blur()), t.passedElement.triggerEvent(f.EVENTS.hideDropdown, {}); 11253 })), this) : this; 11254 }, e.prototype.getValue = function(e) { 11255 void 0 === e && (e = !1); 11256 var t = this._store.activeItems.reduce((function(t, n) { 11257 var i = e ? n.value : n; 11258 return t.push(i), t; 11259 }), []); 11260 return this._isSelectOneElement ? t[0] : t; 11261 }, e.prototype.setValue = function(e) { 11262 var t = this; 11263 return this.initialised ? (e.forEach((function(e) { 11264 return t._setChoiceOrItem(e); 11265 })), this) : this; 11266 }, e.prototype.setChoiceByValue = function(e) { 11267 var t = this; 11268 return !this.initialised || this._isTextElement || (Array.isArray(e) ? e : [ e ]).forEach((function(e) { 11269 return t._findAndSelectChoiceByValue(e); 11270 })), this; 11271 }, e.prototype.setChoices = function(e, n, i, r) { 11272 var o = this; 11273 if (void 0 === e && (e = []), void 0 === n && (n = "value"), void 0 === i && (i = "label"), 11274 void 0 === r && (r = !1), !this.initialised) throw new ReferenceError("setChoices was called on a non-initialized instance of Choices"); 11275 if (!this._isSelectElement) throw new TypeError("setChoices can't be used with INPUT based Choices"); 11276 if ("string" != typeof n || !n) throw new TypeError("value parameter must be a name of 'value' field in passed objects"); 11277 if (r && this.clearChoices(), "function" == typeof e) { 11278 var s = e(this); 11279 if ("function" == typeof t && s instanceof t) return new t((function(e) { 11280 return requestAnimationFrame(e); 11281 })).then((function() { 11282 return o._handleLoadingState(!0); 11283 })).then((function() { 11284 return s; 11285 })).then((function(e) { 11286 return o.setChoices(e, n, i, r); 11287 })).catch((function(e) { 11288 o.config.silent || console.error(e); 11289 })).then((function() { 11290 return o._handleLoadingState(!1); 11291 })).then((function() { 11292 return o; 11293 })); 11294 if (!Array.isArray(s)) throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof s)); 11295 return this.setChoices(s, n, i, !1); 11296 } 11297 if (!Array.isArray(e)) throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices"); 11298 return this.containerOuter.removeLoadingState(), this._startLoading(), e.forEach((function(e) { 11299 if (e.choices) o._addGroup({ 11300 id: e.id ? parseInt("".concat(e.id), 10) : null, 11301 group: e, 11302 valueKey: n, 11303 labelKey: i 11304 }); else { 11305 var t = e; 11306 o._addChoice({ 11307 value: t[n], 11308 label: t[i], 11309 isSelected: !!t.selected, 11310 isDisabled: !!t.disabled, 11311 placeholder: !!t.placeholder, 11312 customProperties: t.customProperties 11313 }); 11314 } 11315 })), this._stopLoading(), this; 11316 }, e.prototype.clearChoices = function() { 11317 return this._store.dispatch((0, l.clearChoices)()), this; 11318 }, e.prototype.clearStore = function() { 11319 return this._store.dispatch((0, d.clearAll)()), this; 11320 }, e.prototype.clearInput = function() { 11321 var e = !this._isSelectOneElement; 11322 return this.input.clear(e), !this._isTextElement && this._canSearch && (this._isSearching = !1, 11323 this._store.dispatch((0, l.activateChoices)(!0))), this; 11324 }, e.prototype._render = function() { 11325 if (!this._store.isLoading()) { 11326 this._currentState = this._store.state; 11327 var e = this._currentState.choices !== this._prevState.choices || this._currentState.groups !== this._prevState.groups || this._currentState.items !== this._prevState.items, t = this._isSelectElement, n = this._currentState.items !== this._prevState.items; 11328 e && (t && this._renderChoices(), n && this._renderItems(), this._prevState = this._currentState); 11329 } 11330 }, e.prototype._renderChoices = function() { 11331 var e = this, t = this._store, n = t.activeGroups, i = t.activeChoices, r = document.createDocumentFragment(); 11332 if (this.choiceList.clear(), this.config.resetScrollPosition && requestAnimationFrame((function() { 11333 return e.choiceList.scrollToTop(); 11334 })), n.length >= 1 && !this._isSearching) { 11335 var o = i.filter((function(e) { 11336 return !0 === e.placeholder && -1 === e.groupId; 11337 })); 11338 o.length >= 1 && (r = this._createChoicesFragment(o, r)), r = this._createGroupsFragment(n, i, r); 11339 } else i.length >= 1 && (r = this._createChoicesFragment(i, r)); 11340 if (r.childNodes && r.childNodes.length > 0) { 11341 var s = this._store.activeItems, a = this._canAddItem(s, this.input.value); 11342 if (a.response) this.choiceList.append(r), this._highlightChoice(); else { 11343 var l = this._getTemplate("notice", a.notice); 11344 this.choiceList.append(l); 11345 } 11346 } else { 11347 var c = void 0; 11348 l = void 0, this._isSearching ? (l = "function" == typeof this.config.noResultsText ? this.config.noResultsText() : this.config.noResultsText, 11349 c = this._getTemplate("notice", l, "no-results")) : (l = "function" == typeof this.config.noChoicesText ? this.config.noChoicesText() : this.config.noChoicesText, 11350 c = this._getTemplate("notice", l, "no-choices")), this.choiceList.append(c); 11351 } 11352 }, e.prototype._renderItems = function() { 11353 var e = this._store.activeItems || []; 11354 this.itemList.clear(); 11355 var t = this._createItemsFragment(e); 11356 t.childNodes && this.itemList.append(t); 11357 }, e.prototype._createGroupsFragment = function(e, t, n) { 11358 var i = this; 11359 return void 0 === n && (n = document.createDocumentFragment()), this.config.shouldSort && e.sort(this.config.sorter), 11360 e.forEach((function(e) { 11361 var r = function(e) { 11362 return t.filter((function(t) { 11363 return i._isSelectOneElement ? t.groupId === e.id : t.groupId === e.id && ("always" === i.config.render
vendor: 16,384 bytes, lines 11363-11547
11363SelectedChoices || !t.selected); 11364 })); 11365 }(e); 11366 if (r.length >= 1) { 11367 var o = i._getTemplate("choiceGroup", e); 11368 n.appendChild(o), i._createChoicesFragment(r, n, !0); 11369 } 11370 })), n; 11371 }, e.prototype._createChoicesFragment = function(e, t, n) { 11372 var i = this; 11373 void 0 === t && (t = document.createDocumentFragment()), void 0 === n && (n = !1); 11374 var o = this.config, s = o.renderSelectedChoices, a = o.searchResultLimit, l = o.renderChoiceLimit, c = this._isSearching ? m.sortByScore : this.config.sorter, u = function(e) { 11375 if ("auto" !== s || i._isSelectOneElement || !e.selected) { 11376 var n = i._getTemplate("choice", e, i.config.itemSelectText); 11377 t.appendChild(n); 11378 } 11379 }, d = e; 11380 "auto" !== s || this._isSelectOneElement || (d = e.filter((function(e) { 11381 return !e.selected; 11382 }))); 11383 var h = d.reduce((function(e, t) { 11384 return t.placeholder ? e.placeholderChoices.push(t) : e.normalChoices.push(t), e; 11385 }), { 11386 placeholderChoices: [], 11387 normalChoices: [] 11388 }), f = h.placeholderChoices, p = h.normalChoices; 11389 (this.config.shouldSort || this._isSearching) && p.sort(c); 11390 var g = d.length, v = this._isSelectOneElement ? r(r([], f, !0), p, !0) : p; 11391 this._isSearching ? g = a : l && l > 0 && !n && (g = l); 11392 for (var b = 0; b < g; b += 1) v[b] && u(v[b]); 11393 return t; 11394 }, e.prototype._createItemsFragment = function(e, t) { 11395 var n = this; 11396 void 0 === t && (t = document.createDocumentFragment()); 11397 var i = this.config, r = i.shouldSortItems, o = i.sorter, s = i.removeItemButton; 11398 return r && !this._isSelectOneElement && e.sort(o), this._isTextElement ? this.passedElement.value = e.map((function(e) { 11399 return e.value; 11400 })).join(this.config.delimiter) : this.passedElement.options = e, e.forEach((function(e) { 11401 var i = n._getTemplate("item", e, s); 11402 t.appendChild(i); 11403 })), t; 11404 }, e.prototype._triggerChange = function(e) { 11405 null != e && this.passedElement.triggerEvent(f.EVENTS.change, { 11406 value: e 11407 }); 11408 }, e.prototype._selectPlaceholderChoice = function(e) { 11409 this._addItem({ 11410 value: e.value, 11411 label: e.label, 11412 choiceId: e.id, 11413 groupId: e.groupId, 11414 placeholder: e.placeholder 11415 }), this._triggerChange(e.value); 11416 }, e.prototype._handleButtonAction = function(e, t) { 11417 if (e && t && this.config.removeItems && this.config.removeItemButton) { 11418 var n = t.parentNode && t.parentNode.dataset.id, i = n && e.find((function(e) { 11419 return e.id === parseInt(n, 10); 11420 })); 11421 i && (this._removeItem(i), this._triggerChange(i.value), this._isSelectOneElement && this._store.placeholderChoice && this._selectPlaceholderChoice(this._store.placeholderChoice)); 11422 } 11423 }, e.prototype._handleItemAction = function(e, t, n) { 11424 var i = this; 11425 if (void 0 === n && (n = !1), e && t && this.config.removeItems && !this._isSelectOneElement) { 11426 var r = t.dataset.id; 11427 e.forEach((function(e) { 11428 e.id !== parseInt("".concat(r), 10) || e.highlighted ? !n && e.highlighted && i.unhighlightItem(e) : i.highlightItem(e); 11429 })), this.input.focus(); 11430 } 11431 }, e.prototype._handleChoiceAction = function(e, t) { 11432 if (e && t) { 11433 var n = t.dataset.id, i = n && this._store.getChoiceById(n); 11434 if (i) { 11435 var r = e[0] && e[0].keyCode ? e[0].keyCode : void 0, o = this.dropdown.isActive; 11436 i.keyCode = r, this.passedElement.triggerEvent(f.EVENTS.choice, { 11437 choice: i 11438 }), i.selected || i.disabled || this._canAddItem(e, i.value).response && (this._addItem({ 11439 value: i.value, 11440 label: i.label, 11441 choiceId: i.id, 11442 groupId: i.groupId, 11443 customProperties: i.customProperties, 11444 placeholder: i.placeholder, 11445 keyCode: i.keyCode 11446 }), this._triggerChange(i.value)), this.clearInput(), o && this._isSelectOneElement && (this.hideDropdown(!0), 11447 this.containerOuter.focus()); 11448 } 11449 } 11450 }, e.prototype._handleBackspace = function(e) { 11451 if (this.config.removeItems && e) { 11452 var t = e[e.length - 1], n = e.some((function(e) { 11453 return e.highlighted; 11454 })); 11455 this.config.editItems && !n && t ? (this.input.value = t.value, this.input.setWidth(), 11456 this._removeItem(t), this._triggerChange(t.value)) : (n || this.highlightItem(t, !1), 11457 this.removeHighlightedItems(!0)); 11458 } 11459 }, e.prototype._startLoading = function() { 11460 this._store.dispatch((0, d.setIsLoading)(!0)); 11461 }, e.prototype._stopLoading = function() { 11462 this._store.dispatch((0, d.setIsLoading)(!1)); 11463 }, e.prototype._handleLoadingState = function(e) { 11464 void 0 === e && (e = !0); 11465 var t = this.itemList.getChild(".".concat(this.config.classNames.placeholder)); 11466 e ? (this.disable(), this.containerOuter.addLoadingState(), this._isSelectOneElement ? t ? t.innerHTML = this.config.loadingText : (t = this._getTemplate("placeholder", this.config.loadingText)) && this.itemList.append(t) : this.input.placeholder = this.config.loadingText) : (this.enable(), 11467 this.containerOuter.removeLoadingState(), this._isSelectOneElement ? t && (t.innerHTML = this._placeholderValue || "") : this.input.placeholder = this._placeholderValue || ""); 11468 }, e.prototype._handleSearch = function(e) { 11469 if (e && this.input.isFocussed) { 11470 var t = this._store.choices, n = this.config, i = n.searchFloor, r = n.searchChoices, o = t.some((function(e) { 11471 return !e.active; 11472 })); 11473 if (e && e.length >= i) { 11474 var s = r ? this._searchChoices(e) : 0; 11475 this.passedElement.triggerEvent(f.EVENTS.search, { 11476 value: e, 11477 resultCount: s 11478 }); 11479 } else o && (this._isSearching = !1, this._store.dispatch((0, l.activateChoices)(!0))); 11480 } 11481 }, e.prototype._canAddItem = function(e, t) { 11482 var n = !0, i = "function" == typeof this.config.addItemText ? this.config.addItemText(t) : this.config.addItemText; 11483 if (!this._isSelectOneElement) { 11484 var r = (0, m.existsInArray)(e, t); 11485 this.config.maxItemCount > 0 && this.config.maxItemCount <= e.length && (n = !1, 11486 i = "function" == typeof this.config.maxItemText ? this.config.maxItemText(this.config.maxItemCount) : this.config.maxItemText), 11487 !this.config.duplicateItemsAllowed && r && n && (n = !1, i = "function" == typeof this.config.uniqueItemText ? this.config.uniqueItemText(t) : this.config.uniqueItemText), 11488 this._isTextElement && this.config.addItems && n && "function" == typeof this.config.addItemFilter && !this.config.addItemFilter(t) && (n = !1, 11489 i = "function" == typeof this.config.customAddItemText ? this.config.customAddItemText(t) : this.config.customAddItemText); 11490 } 11491 return { 11492 response: n, 11493 notice: i 11494 }; 11495 }, e.prototype._searchChoices = function(e) { 11496 var t = "string" == typeof e ? e.trim() : e, n = "string" == typeof this._currentValue ? this._currentValue.trim() : this._currentValue; 11497 if (t.length < 1 && t === "".concat(n, " ")) return 0; 11498 var i = this._store.searchableChoices, o = t, s = r([], this.config.searchFields, !0), c = Object.assign(this.config.fuseOptions, { 11499 keys: s, 11500 includeMatches: !0 11501 }), u = new a.default(i, c).search(o); 11502 return this._currentValue = t, this._highlightPosition = 0, this._isSearching = !0, 11503 this._store.dispatch((0, l.filterChoices)(u)), u.length; 11504 }, e.prototype._addEventListeners = function() { 11505 var e = document.documentElement; 11506 e.addEventListener("touchend", this._onTouchEnd, !0), this.containerOuter.element.addEventListener("keydown", this._onKeyDown, !0), 11507 this.containerOuter.element.addEventListener("mousedown", this._onMouseDown, !0), 11508 e.addEventListener("click", this._onClick, { 11509 passive: !0 11510 }), e.addEventListener("touchmove", this._onTouchMove, { 11511 passive: !0 11512 }), this.dropdown.element.addEventListener("mouseover", this._onMouseOver, { 11513 passive: !0 11514 }), this._isSelectOneElement && (this.containerOuter.element.addEventListener("focus", this._onFocus, { 11515 passive: !0 11516 }), this.containerOuter.element.addEventListener("blur", this._onBlur, { 11517 passive: !0 11518 })), this.input.element.addEventListener("keyup", this._onKeyUp, { 11519 passive: !0 11520 }), this.input.element.addEventListener("focus", this._onFocus, { 11521 passive: !0 11522 }), this.input.element.addEventListener("blur", this._onBlur, { 11523 passive: !0 11524 }), this.input.element.form && this.input.element.form.addEventListener("reset", this._onFormReset, { 11525 passive: !0 11526 }), this.input.addEventListeners(); 11527 }, e.prototype._removeEventListeners = function() { 11528 var e = document.documentElement; 11529 e.removeEventListener("touchend", this._onTouchEnd, !0), this.containerOuter.element.removeEventListener("keydown", this._onKeyDown, !0), 11530 this.containerOuter.element.removeEventListener("mousedown", this._onMouseDown, !0), 11531 e.removeEventListener("click", this._onClick), e.removeEventListener("touchmove", this._onTouchMove), 11532 this.dropdown.element.removeEventListener("mouseover", this._onMouseOver), this._isSelectOneElement && (this.containerOuter.element.removeEventListener("focus", this._onFocus), 11533 this.containerOuter.element.removeEventListener("blur", this._onBlur)), this.input.element.removeEventListener("keyup", this._onKeyUp), 11534 this.input.element.removeEventListener("focus", this._onFocus), this.input.element.removeEventListener("blur", this._onBlur), 11535 this.input.element.form && this.input.element.form.removeEventListener("reset", this._onFormReset), 11536 this.input.removeEventListeners(); 11537 }, e.prototype._onKeyDown = function(e) { 11538 var t = e.keyCode, n = this._store.activeItems, i = this.input.isFocussed, r = this.dropdown.isActive, o = this.itemList.hasChildren(), s = String.fromCharCode(t), a = /[a-zA-Z0-9-_ ]/.test(s), l = f.KEY_CODES.BACK_KEY, c = f.KEY_CODES.DELETE_KEY, u = f.KEY_CODES.ENTER_KEY, d = f.KEY_CODES.A_KEY, h = f.KEY_CODES.ESC_KEY, p = f.KEY_CODES.UP_KEY, m = f.KEY_CODES.DOWN_KEY, g = f.KEY_CODES.PAGE_UP_KEY, v = f.KEY_CODES.PAGE_DOWN_KEY; 11539 switch (this._isTextElement || r || !a || (this.showDropdown(), this.input.isFocussed || (this.input.value += s.toLowerCase())), 11540 t) { 11541 case d: 11542 return this._onSelectKey(e, o); 11543 11544 case u: 11545 return this._onEnterKey(e, n, r); 11546 11547
11547 case h: 11548 return this._onEscapeKey(r); 11549 11550 case p: 11551 case g: 11552 case m: 11553 case v: 11554 return this._onDirectionKey(e, r); 11555 11556 case c: 11557 case l: 11558 return this._onDeleteKey(e, n, i); 11559 } 11560 }, e.prototype._onKeyUp = function(e) { 11561 var t = e.target, n = e.keyCode, i = this.input.value, r = this._store.activeItems, o = this._canAddItem(r, i), s = f.KEY_CODES.BACK_KEY, a = f.KEY_CODES.DELETE_KEY; 11562 if (this._isTextElement) if (o.notice && i) { 11563 var c = this._getTemplate("notice", o.notice); 11564 this.dropdown.element.innerHTML = c.outerHTML, this.showDropdown(!0); 11565 } else this.hideDropdown(!0); else { 11566 var u = (n === s || n === a) && t && !t.value, d = !this._isTextElement && this._isSearching, h = this._canSearch && o.response; 11567 u && d ? (this._isSearching = !1, this._store.dispatch((0, l.activateChoices)(!0))) : h && this._handleSearch(this.input.value); 11568 } 11569 this._canSearch = this.config.searchEnabled; 11570 }, e.prototype._onSelectKey = function(e, t) { 11571 var n = e.ctrlKey, i = e.metaKey; 11572 (n || i) && t && (this._canSearch = !1, this.config.removeItems && !this.input.value && this.input.element === document.activeElement && this.highlightAll()); 11573 }, e.prototype._onEnterKey = function(e, t, n) { 11574 var i = e.target, r = f.KEY_CODES.ENTER_KEY, o = i && i.hasAttribute("data-button"); 11575 if (this._isTextElement && i && i.value) { 11576 var s = this.input.value; 11577 this._canAddItem(t, s).response && (this.hideDropdown(!0), this._addItem({ 11578 value: s 11579 }), this._triggerChange(s), this.clearInput()); 11580 } 11581 if (o && (this._handleButtonAction(t, i), e.preventDefault()), n) { 11582 var a = this.dropdown.getChild(".".concat(this.config.classNames.highlightedState)); 11583 a && (t[0] && (t[0].keyCode = r), this._handleChoiceAction(t, a)), e.preventDefault(); 11584 } else this._isSelectOneElement && (this.showDropdown(), e.preventDefault()); 11585 }, e.prototype._onEscapeKey = function(e) { 11586 e && (this.hideDropdown(!0), this.containerOuter.focus()); 11587 }, e.prototype._onDirectionKey = function(e, t) { 11588 var n = e.keyCode, i = e.metaKey, r = f.KEY_CODES.DOWN_KEY, o = f.KEY_CODES.PAGE_UP_KEY, s = f.KEY_CODES.PAGE_DOWN_KEY; 11589 if (t || this._isSelectOneElement) { 11590 this.showDropdown(), this._canSearch = !1; 11591 var a = n === r || n === s ? 1 : -1, l = void 0; 11592 if (i || n === s || n === o) l = a > 0 ? this.dropdown.element.querySelector("".concat("[data-choice-selectable]", ":last-of-type")) : this.dropdown.element.querySelector("[data-choice-selectable]"); else { 11593 var c = this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState)); 11594 l = c ? (0, m.getAdjacentEl)(c, "[data-choice-selectable]", a) : this.dropdown.element.querySelector("[data-choice-selectable]"); 11595 } 11596 l && ((0, m.isScrolledIntoView)(l, this.choiceList.element, a) || this.choiceList.scrollToChildElement(l, a), 11597 this._highlightChoice(l)), e.preventDefault(); 11598 } 11599 }, e.prototype._onDeleteKey = function(e, t, n) { 11600 var i = e.target; 11601 this._isSelectOneElement || i.value || !n || (this._handleBackspace(t), e.preventDefault()); 11602 }, e.prototype._onTouchMove = function() { 11603 this._wasTap && (this._wasTap = !1); 11604 }, e.prototype._onTouchEnd = function(e) { 11605 var t = (e || e.touches[0]).target; 11606 this._wasTap && this.containerOuter.element.contains(t) && ((t === this.containerOuter.element || t === this.containerInner.element) && (this._isTextElement ? this.input.focus() : this._isSelectMultipleElement && this.showDropdown()), 11607 e.stopPropagation()), this._wasTap = !0; 11608 }, e.prototype._onMouseDown = function(e) { 11609 var t = e.target; 11610 if (t instanceof HTMLElement) { 11611 if (y && this.choiceList.element.contains(t)) { 11612 var n = this.choiceList.element.firstElementChild, i = "ltr" === this._direction ? e.offsetX >= n.offsetWidth : e.offsetX < n.offsetLeft; 11613 this._isScrollingOnIe = i; 11614 } 11615 if (t !== this.input.element) { 11616 var r = t.closest("[data-button],[data-item],[data-choice]"); 11617 if (r instanceof HTMLElement) { 11618 var o = e.shiftKey, s = this._store.activeItems, a = r.dataset; 11619 "button" in a ? this._handleButtonAction(s, r) : "item" in a ? this._handleItemAction(s, r, o) : "choice" in a && this._handleChoiceAction(s, r); 11620 } 11621 e.preventDefault(); 11622 } 11623 } 11624 }, e.prototype._onMouseOver = function(e) { 11625 var t = e.target; 11626 t instanceof HTMLElement && "choice" in t.dataset && this._highlightChoice(t); 11627 }, e.prototype._onClick = function(e) { 11628 var t = e.target; 11629 this.containerOuter.element.contains(t) ? this.dropdown.isActive || this.containerOuter.isDisabled ? this._isSelectOneElement && t !== this.input.element && !this.dropdown.element.contains(t) && this.hideDropdown() : this._isTextElement ? document.activeElement !== this.input.element && this.input.focus() : (this.showDropdown(), 11630 this.containerOuter.focus()) : (this._store.highlightedActiveItems.length > 0 && this.unhighlightAll(), 11631 this.containerOuter.removeFocusState(), this.hideDropdown(!0)); 11632 }, e.prototype._onFocus = function(e) { 11633 var t, n = this, i = e.target; 11634 i && this.containerOuter.element.contains(i) && ((t = {})[f.TEXT_TYPE] = function() { 11635 i === n.input.element && n.containerOuter.addFocusState(); 11636 }, t[f.SELECT_ONE_TYPE] = function() { 11637 n.containerOuter.addFocusState(), i === n.input.element && n.showDropdown(!0); 11638 }, t[f.SELECT_MULTIPLE_TYPE] = function() { 11639 i === n.input.element && (n.showDropdown(!0), n.containerOuter.addFocusState()); 11640 }, t)[this.passedElement.element.type](); 11641 }, e.prototype._onBlur = function(e) { 11642 var t, n = this, i = e.target; 11643 if (i && this.containerOuter.element.contains(i) && !this._isScrollingOnIe) { 11644 var r = this._store.activeItems.some((function(e) { 11645 return e.highlighted; 11646 })); 11647 ((t = {})[f.TEXT_TYPE] = function() { 11648 i === n.input.element && (n.containerOuter.removeFocusState(), r && n.unhighlightAll(), 11649 n.hideDropdown(!0)); 11650 }, t[f.SELECT_ONE_TYPE] = function() { 11651 n.containerOuter.removeFocusState(), (i === n.input.element || i === n.containerOuter.element && !n._canSearch) && n.hideDropdown(!0); 11652 }, t[f.SELECT_MULTIPLE_TYPE] = function() { 11653 i === n.input.element && (n.containerOuter.removeFocusState(), n.hideDropdown(!0), 11654 r && n.unhighlightAll()); 11655 }, t)[this.passedElement.element.type](); 11656 } else this._isScrollingOnIe = !1, this.input.element.focus(); 11657 }, e.prototype._onFormReset = function() { 11658 this._store.dispatch((0, d.resetTo)(this._initialState)); 11659 }, e.prototype._highlightChoice = function(e) { 11660 var t = this; 11661 void 0 === e && (e = null); 11662 var n = Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")); 11663 if (n.length) { 11664 var i = e; 11665 Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEac
vendor: 16,384 bytes, lines 11665-11869
11665h((function(e) { 11666 e.classList.remove(t.config.classNames.highlightedState), e.setAttribute("aria-selected", "false"); 11667 })), i ? this._highlightPosition = n.indexOf(i) : (i = n.length > this._highlightPosition ? n[this._highlightPosition] : n[n.length - 1]) || (i = n[0]), 11668 i.classList.add(this.config.classNames.highlightedState), i.setAttribute("aria-selected", "true"), 11669 this.passedElement.triggerEvent(f.EVENTS.highlightChoice, { 11670 el: i 11671 }), this.dropdown.isActive && (this.input.setActiveDescendant(i.id), this.containerOuter.setActiveDescendant(i.id)); 11672 } 11673 }, e.prototype._addItem = function(e) { 11674 var t = e.value, n = e.label, i = void 0 === n ? null : n, r = e.choiceId, o = void 0 === r ? -1 : r, s = e.groupId, a = void 0 === s ? -1 : s, l = e.customProperties, c = void 0 === l ? {} : l, d = e.placeholder, h = void 0 !== d && d, p = e.keyCode, m = void 0 === p ? -1 : p, g = "string" == typeof t ? t.trim() : t, v = this._store.items, b = i || g, y = o || -1, x = a >= 0 ? this._store.getGroupById(a) : null, w = v ? v.length + 1 : 1; 11675 this.config.prependValue && (g = this.config.prependValue + g.toString()), this.config.appendValue && (g += this.config.appendValue.toString()), 11676 this._store.dispatch((0, u.addItem)({ 11677 value: g, 11678 label: b, 11679 id: w, 11680 choiceId: y, 11681 groupId: a, 11682 customProperties: c, 11683 placeholder: h, 11684 keyCode: m 11685 })), this._isSelectOneElement && this.removeActiveItems(w), this.passedElement.triggerEvent(f.EVENTS.addItem, { 11686 id: w, 11687 value: g, 11688 label: b, 11689 customProperties: c, 11690 groupValue: x && x.value ? x.value : null, 11691 keyCode: m 11692 }); 11693 }, e.prototype._removeItem = function(e) { 11694 var t = e.id, n = e.value, i = e.label, r = e.customProperties, o = e.choiceId, s = e.groupId, a = s && s >= 0 ? this._store.getGroupById(s) : null; 11695 t && o && (this._store.dispatch((0, u.removeItem)(t, o)), this.passedElement.triggerEvent(f.EVENTS.removeItem, { 11696 id: t, 11697 value: n, 11698 label: i, 11699 customProperties: r, 11700 groupValue: a && a.value ? a.value : null 11701 })); 11702 }, e.prototype._addChoice = function(e) { 11703 var t = e.value, n = e.label, i = void 0 === n ? null : n, r = e.isSelected, o = void 0 !== r && r, s = e.isDisabled, a = void 0 !== s && s, c = e.groupId, u = void 0 === c ? -1 : c, d = e.customProperties, h = void 0 === d ? {} : d, f = e.placeholder, p = void 0 !== f && f, m = e.keyCode, g = void 0 === m ? -1 : m; 11704 if (null != t) { 11705 var v = this._store.choices, b = i || t, y = v ? v.length + 1 : 1, x = "".concat(this._baseId, "-").concat(this._idNames.itemChoice, "-").concat(y); 11706 this._store.dispatch((0, l.addChoice)({ 11707 id: y, 11708 groupId: u, 11709 elementId: x, 11710 value: t, 11711 label: b, 11712 disabled: a, 11713 customProperties: h, 11714 placeholder: p, 11715 keyCode: g 11716 })), o && this._addItem({ 11717 value: t, 11718 label: b, 11719 choiceId: y, 11720 customProperties: h, 11721 placeholder: p, 11722 keyCode: g 11723 }); 11724 } 11725 }, e.prototype._addGroup = function(e) { 11726 var t = this, n = e.group, i = e.id, r = e.valueKey, o = void 0 === r ? "value" : r, s = e.labelKey, a = void 0 === s ? "label" : s, l = (0, 11727 m.isType)("Object", n) ? n.choices : Array.from(n.getElementsByTagName("OPTION")), u = i || Math.floor((new Date).valueOf() * Math.random()), d = !!n.disabled && n.disabled; 11728 l ? (this._store.dispatch((0, c.addGroup)({ 11729 value: n.label, 11730 id: u, 11731 active: !0, 11732 disabled: d 11733 })), l.forEach((function(e) { 11734 var n = e.disabled || e.parentNode && e.parentNode.disabled; 11735 t._addChoice({ 11736 value: e[o], 11737 label: (0, m.isType)("Object", e) ? e[a] : e.innerHTML, 11738 isSelected: e.selected, 11739 isDisabled: n, 11740 groupId: u, 11741 customProperties: e.customProperties, 11742 placeholder: e.placeholder 11743 }); 11744 }))) : this._store.dispatch((0, c.addGroup)({ 11745 value: n.label, 11746 id: n.id, 11747 active: !1, 11748 disabled: n.disabled 11749 })); 11750 }, e.prototype._getTemplate = function(e) { 11751 for (var t, n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; 11752 var o = this.config.classNames; 11753 return (t = this._templates[e]).call.apply(t, r([ this, o ], n, !1)); 11754 }, e.prototype._createTemplates = function() { 11755 var e = this.config.callbackOnCreateTemplates, t = {}; 11756 e && "function" == typeof e && (t = e.call(this, m.strToEl)), this._templates = (0, 11757 s.default)(b.default, t); 11758 }, e.prototype._createElements = function() { 11759 this.containerOuter = new h.Container({ 11760 element: this._getTemplate("containerOuter", this._direction, this._isSelectElement, this._isSelectOneElement, this.config.searchEnabled, this.passedElement.element.type), 11761 classNames: this.config.classNames, 11762 type: this.passedElement.element.type, 11763 position: this.config.position 11764 }), this.containerInner = new h.Container({ 11765 element: this._getTemplate("containerInner"), 11766 classNames: this.config.classNames, 11767 type: this.passedElement.element.type, 11768 position: this.config.position 11769 }), this.input = new h.Input({ 11770 element: this._getTemplate("input", this._placeholderValue), 11771 classNames: this.config.classNames, 11772 type: this.passedElement.element.type, 11773 preventPaste: !this.config.paste 11774 }), this.choiceList = new h.List({ 11775 element: this._getTemplate("choiceList", this._isSelectOneElement) 11776 }), this.itemList = new h.List({ 11777 element: this._getTemplate("itemList", this._isSelectOneElement) 11778 }), this.dropdown = new h.Dropdown({ 11779 element: this._getTemplate("dropdown"), 11780 classNames: this.config.classNames, 11781 type: this.passedElement.element.type 11782 }); 11783 }, e.prototype._createStructure = function() { 11784 this.passedElement.conceal(), this.containerInner.wrap(this.passedElement.element), 11785 this.containerOuter.wrap(this.containerInner.element), this._isSelectOneElement ? this.input.placeholder = this.config.searchPlaceholderValue || "" : this._placeholderValue && (this.input.placeholder = this._placeholderValue, 11786 this.input.setWidth()), this.containerOuter.element.appendChild(this.containerInner.element), 11787 this.containerOuter.element.appendChild(this.dropdown.element), this.containerInner.element.appendChild(this.itemList.element), 11788 this._isTextElement || this.dropdown.element.appendChild(this.choiceList.element), 11789 this._isSelectOneElement ? this.config.searchEnabled && this.dropdown.element.insertBefore(this.input.element, this.dropdown.element.firstChild) : this.containerInner.element.appendChild(this.input.element), 11790 this._isSelectElement && (this._highlightPosition = 0, this._isSearching = !1, this._startLoading(), 11791 this._presetGroups.length ? this._addPredefinedGroups(this._presetGroups) : this._addPredefinedChoices(this._presetChoices), 11792 this._stopLoading()), this._isTextElement && this._addPredefinedItems(this._presetItems); 11793 }, e.prototype._addPredefinedGroups = function(e) { 11794 var t = this, n = this.passedElement.placeholderOption; 11795 n && n.parentNode && "SELECT" === n.parentNode.tagName && this._addChoice({ 11796 value: n.value, 11797 label: n.innerHTML, 11798 isSelected: n.selected, 11799 isDisabled: n.disabled, 11800 placeholder: !0 11801 }), e.forEach((function(e) { 11802 return t._addGroup({ 11803 group: e, 11804 id: e.id || null 11805 }); 11806 })); 11807 }, e.prototype._addPredefinedChoices = function(e) { 11808 var t = this; 11809 this.config.shouldSort && e.sort(this.config.sorter); 11810 var n = e.some((function(e) { 11811 return e.selected; 11812 })), i = e.findIndex((function(e) { 11813 return void 0 === e.disabled || !e.disabled; 11814 })); 11815 e.forEach((function(e, r) { 11816 var o = e.value, s = void 0 === o ? "" : o, a = e.label, l = e.customProperties, c = e.placeholder; 11817 if (t._isSelectElement) if (e.choices) t._addGroup({ 11818 group: e, 11819 id: e.id || null 11820 }); else { 11821 var u = !(!t._isSelectOneElement || n || r !== i) || e.selected, d = e.disabled; 11822 t._addChoice({ 11823 value: s, 11824 label: a, 11825 isSelected: !!u, 11826 isDisabled: !!d, 11827 placeholder: !!c, 11828 customProperties: l 11829 }); 11830 } else t._addChoice({ 11831 value: s, 11832 label: a, 11833 isSelected: !!e.selected, 11834 isDisabled: !!e.disabled, 11835 placeholder: !!e.placeholder, 11836 customProperties: l 11837 }); 11838 })); 11839 }, e.prototype._addPredefinedItems = function(e) { 11840 var t = this; 11841 e.forEach((function(e) { 11842 "object" == typeof e && e.value && t._addItem({ 11843 value: e.value, 11844 label: e.label, 11845 choiceId: e.id, 11846 customProperties: e.customProperties, 11847 placeholder: e.placeholder 11848 }), "string" == typeof e && t._addItem({ 11849 value: e 11850 }); 11851 })); 11852 }, e.prototype._setChoiceOrItem = function(e) { 11853 var t = this; 11854 ({ 11855 object: function() { 11856 e.value && (t._isTextElement ? t._addItem({ 11857 value: e.value, 11858 label: e.label, 11859 choiceId: e.id, 11860 customProperties: e.customProperties, 11861 placeholder: e.placeholder 11862 }) : t._addChoice({ 11863 value: e.value, 11864 label: e.label, 11865 isSelected: !0, 11866 isDisabled: !1, 11867 customProperties: e.customProperties, 11868 placeholder: e.placeholder 11869
11869 })); 11870 }, 11871 string: function() { 11872 t._isTextElement ? t._addItem({ 11873 value: e 11874 }) : t._addChoice({ 11875 value: e, 11876 label: e, 11877 isSelected: !0, 11878 isDisabled: !1 11879 }); 11880 } 11881 })[(0, m.getType)(e).toLowerCase()](); 11882 }, e.prototype._findAndSelectChoiceByValue = function(e) { 11883 var t = this, n = this._store.choices.find((function(n) { 11884 return t.config.valueComparer(n.value, e); 11885 })); 11886 n && !n.selected && this._addItem({ 11887 value: n.value, 11888 label: n.label, 11889 choiceId: n.id, 11890 groupId: n.groupId, 11891 customProperties: n.customProperties, 11892 placeholder: n.placeholder, 11893 keyCode: n.keyCode 11894 }); 11895 }, e.prototype._generatePlaceholderValue = function() { 11896 if (this._isSelectElement && this.passedElement.placeholderOption) { 11897 var e = this.passedElement.placeholderOption; 11898 return e ? e.text : null; 11899 } 11900 var t = this.config, n = t.placeholder, i = t.placeholderValue, r = this.passedElement.element.dataset; 11901 if (n) { 11902 if (i) return i; 11903 if (r.placeholder) return r.placeholder; 11904 } 11905 return null; 11906 }, e; 11907 }(); 11908 n.default = w; 11909 }, 11910 613: function(e, t, n) { 11911 "use strict"; 11912 Object.defineProperty(t, "__esModule", { 11913 value: !0 11914 }); 11915 var i = n(799), r = n(883), o = function() { 11916 function e(e) { 11917 var t = e.element, n = e.type, i = e.classNames, r = e.position; 11918 this.element = t, this.classNames = i, this.type = n, this.position = r, this.isOpen = !1, 11919 this.isFlipped = !1, this.isFocussed = !1, this.isDisabled = !1, this.isLoading = !1, 11920 this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this); 11921 } 11922 return e.prototype.addEventListeners = function() { 11923 this.element.addEventListener("focus", this._onFocus), this.element.addEventListener("blur", this._onBlur); 11924 }, e.prototype.removeEventListeners = function() { 11925 this.element.removeEventListener("focus", this._onFocus), this.element.removeEventListener("blur", this._onBlur); 11926 }, e.prototype.shouldFlip = function(e) { 11927 if ("number" != typeof e) return !1; 11928 var t = !1; 11929 return "auto" === this.position ? t = !window.matchMedia("(min-height: ".concat(e + 1, "px)")).matches : "top" === this.position && (t = !0), 11930 t; 11931 }, e.prototype.setActiveDescendant = function(e) { 11932 this.element.setAttribute("aria-activedescendant", e); 11933 }, e.prototype.removeActiveDescendant = function() { 11934 this.element.removeAttribute("aria-activedescendant"); 11935 }, e.prototype.open = function(e) { 11936 this.element.classList.add(this.classNames.openState), this.element.setAttribute("aria-expanded", "true"), 11937 this.isOpen = !0, this.shouldFlip(e) && (this.element.classList.add(this.classNames.flippedState), 11938 this.isFlipped = !0); 11939 }, e.prototype.close = function() { 11940 this.element.classList.remove(this.classNames.openState), this.element.setAttribute("aria-expanded", "false"), 11941 this.removeActiveDescendant(), this.isOpen = !1, this.isFlipped && (this.element.classList.remove(this.classNames.flippedState), 11942 this.isFlipped = !1); 11943 }
11943, e.prototype.focus = function() { 11944 this.isFocussed || this.element.focus(); 11945 }, e.prototype.addFocusState = function() { 11946 this.element.classList.add(this.classNames.focusState); 11947 }, e.prototype.removeFocusState = function() { 11948 this.element.classList.remove(this.classNames.focusState); 11949 }, e.prototype.enable = function() { 11950 this.element.classList.remove(this.classNames.disabledState), this.element.removeAttribute("aria-disabled"), 11951 this.type === r.SELECT_ONE_TYPE && this.element.setAttribute("tabindex", "0"), this.isDisabled = !1; 11952 }, e.prototype.disable = function() { 11953 this.element.classList.add(this.classNames.disabledState), this.element.setAttribute("aria-disabled", "true"), 11954 this.type === r.SELECT_ONE_TYPE && this.element.setAttribute("tabindex", "-1"), 11955 this.isDisabled = !0; 11956 }, e.prototype.wrap = function(e) { 11957 (0, i.wrap)(e, this.element); 11958 }, e.prototype.unwrap = function(e) { 11959 this.element.parentNode && (this.element.parentNode.insertBefore(e, this.element), 11960 this.element.parentNode.removeChild(this.element)); 11961 }, e.prototype.addLoadingState = function() { 11962 this.element.classList.add(this.classNames.loadingState), this.element.setAttribute("aria-busy", "true"), 11963 this.isLoading = !0; 11964 }, e.prototype.removeLoadingState = function() { 11965 this.element.classList.remove(this.classNames.loadingState), this.element.removeAttribute("aria-busy"), 11966 this.isLoading = !1; 11967 }, e.prototype._onFocus = function() { 11968 this.isFocussed = !0; 11969 }, e.prototype._onBlur = function() { 11970 this.isFocussed = !1; 11971 }, e; 11972 }(); 11973 t.default = o; 11974 }, 11975 217: function(e, t) { 11976 "use strict"; 11977 Object.defineProperty(t, "__esModule", { 11978 value: !0 11979 }); 11980 var n = function() { 11981 function e(e) { 11982 var t = e.element, n = e.type, i = e.classNames; 11983 this.element = t, this.classNames = i, this.type = n, this.isActive = !1; 11984 } 11985 return Object.defineProperty(e.prototype, "distanceFromTopWindow", { 11986 get: function() { 11987 return this.element.getBoundingClientRect().bottom; 11988 }, 11989 enumerable: !1, 11990 configurable: !0 11991 }), e.prototype.getChild = function(e) { 11992 return this.element.querySelector(e); 11993 }, e.prototype.show = function() { 11994 return this.element.classList.add(this.classNames.activeState), this.element.setAttribute("aria-expanded", "true"), 11995 this.isActive = !0, this; 11996 }, e.prototype.hide = function() { 11997 return this.element.classList.remove(this.classNames.activeState), this.element.setAttribute("aria-expanded", "false"), 11998 this.isActive = !1, this; 11999 }, e; 12000 }(); 12001 t.default = n; 12002 }, 12003 520: function(e, t, n) { 12004 "use strict"; 12005 var i = this && this.__importDefault || function(e) {
12006 return e && e.__esModule ? e : { 12007 default: e 12008 }; 12009 }; 12010 Object.defineProperty(t, "__esModule", { 12011 value: !0 12012 }), t.WrappedSelect = t.WrappedInput = t.List = t.Input = t.Container = t.Dropdown = void 0; 12013 var r = i(n(217)); 12014 t.Dropdown = r.default; 12015 var o = i(n(613)); 12016 t.Container = o.default; 12017 var s = i(n(11)); 12018 t.Input = s.default; 12019 var a = i(n(624)); 12020 t.List = a.default; 12021 var l = i(n(541)); 12022 t.WrappedInput = l.default; 12023 var c = i(n(982)); 12024 t.WrappedSelect = c.default; 12025 }, 12026 11: function(e, t, n) { 12027 "use strict"; 12028 Object.defineProperty(t, "__esModule", { 12029 value: !0 12030 }); 12031 var i = n(799), r = n(883), o = function() { 12032 function e(e) { 12033 var t = e.element, n = e.type, i = e.classNames, r = e.preventPaste; 12034 this.element = t, this.type = n, this.classNames = i, this.preventPaste = r, this.isFocussed = this.element.isEqualNode(document.activeElement), 12035 this.isDisabled = t.disabled, this._onPaste = this._onPaste.bind(this), this._onInput = this._onInput.bind(this), 12036 this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this); 12037 } 12038 return Object.defineProperty(e.prototype, "placeholder", { 12039 set: function(e) { 12040 this.element.placeholder = e; 12041 }, 12042 enumerable: !1, 12043 configurable: !0 12044 }), Object.defineProperty(e.prototype, "value", { 12045 get: function() { 12046 return (0, i.sanitise)(this.element.value); 12047 }, 12048 set: function(e) { 12049 this.element.value = e; 12050 }, 12051 enumerable: !1, 12052 configurable: !0 12053 }), e.prototype.addEventListeners = function() { 12054 this.element.addEventListener("paste", this._onPaste), this.element.addEventListener("input", this._onInput, { 12055 passive: !0 12056 }), this.element.addEventListener("focus", this._onFocus, { 12057 passive: !0 12058 }), this.element.addEventListener("blur", this._onBlur, { 12059 passive: !0 12060 }); 12061 }, e.prototype.removeEventListeners = function() { 12062 this.element.removeEventListener("input", this._onInput), this.element.removeEventListener("paste", this._onPaste), 12063 this.element.removeEventListener("focus", this._onFocus), this.element.removeEventListener("blur", this._onBlur); 12064 }, e.prototype.enable = function() { 12065 this.element.removeAttribute("disabled"), this.isDisabled = !1; 12066 }, e.prototype.disable = function() { 12067 this.element.setAttribute("disabled", ""), this.isDisabled = !0; 12068 }
12068, e.prototype.focus = function() { 12069 this.isFocussed || this.element.focus(); 12070 }, e.prototype.blur = function() { 12071 this.isFocussed && this.element.blur(); 12072 }, e.prototype.clear = function(e) { 12073 return void 0 === e && (e = !0), this.element.value && (this.element.value = ""), 12074 e && this.setWidth(), this; 12075 }, e.prototype.setWidth = function() { 12076 var e = this.element, t = e.style, n = e.value, i = e.placeholder; 12077 t.minWidth = "".concat(i.length + 1, "ch"), t.width = "".concat(n.length + 1, "ch"); 12078 }, e.prototype.setActiveDescendant = function(e) { 12079 this.element.setAttribute("aria-activedescendant", e); 12080 }, e.prototype.removeActiveDescendant = function() { 12081 this.element.removeAttribute("aria-activedescendant"); 12082 }, e.prototype._onInput = function() { 12083 this.type !== r.SELECT_ONE_TYPE && this.setWidth(); 12084 }, e.prototype._onPaste = function(e) { 12085 this.preventPaste && e.preventDefault(); 12086 }, e.prototype._onFocus = function() { 12087 this.isFocussed = !0; 12088 }, e.prototype._onBlur = function() { 12089 this.isFocussed = !1; 12090 }, e; 12091 }(); 12092 t.default = o; 12093 }, 12094 624: function(e, t, n) { 12095 "use strict"; 12096 Object.defineProperty(t, "__esModule", { 12097 value: !0 12098 }); 12099 var i = n(883), r = function() { 12100 function e(e) { 12101 var t = e.element; 12102 this.element = t, this.scrollPos = this.element.scrollTop, this.height = this.element.offsetHeight; 12103 } 12104 return e.prototype.clear = function() { 12105 this.element.innerHTML = ""; 12106 }, e.prototype.append = function(e) { 12107 this.element.appendChild(e); 12108 }, e.prototype.getChild = function(e) { 12109 return this.element.querySelector(e); 12110 }, e.prototype.hasChildren = function() { 12111 return this.element.hasChildNodes(); 12112 }, e.prototype.scrollToTop = function() { 12113 this.element.scrollTop = 0; 12114 }, e.prototype.scrollToChildElement = function(e, t) { 12115 var n = this; 12116 if (e) { 12117 var i = this.element.offsetHeight, r = this.element.scrollTop + i, o = e.offsetHeight, s = e.offsetTop + o, a = t > 0 ? this.element.scrollTop + s - r : e.offsetTop; 12118 requestAnimationFrame((function() { 12119 n._animateScroll(a, t); 12120 })); 12121 } 12122 }, e.prototype._scrollDown = function(e, t, n) { 12123 var i = (n - e) / t, r = i > 1 ? i : 1; 12124 this.element.scrollTop = e + r; 12125 }, e.prototype._scrollUp = function(e, t, n) { 12126 var i = (e - n) / t, r = i > 1 ? i : 1; 12127 this.element.scrollTop = e - r; 12128 }, e.prototype._animateScroll = function(e, t) { 12129 var n = this, r = i.SCROLLING_SPEED, o = this.element.scrollTop, s = !1; 12130 t > 0 ? (this._scrollDown(o, r, e), o < e && (s = !0)) : (this._scrollUp(o, r, e), 12131 o > e && (s = !0)), s && requestAnimationFrame((function() { 12132 n._animateScroll(e, t); 12133 })); 12134 }, e; 12135 }(); 12136 t.default = r; 12137 }, 12138 730: function(e, t, n) { 12139 "use strict"; 12140 Object.defineProperty(t, "__esModule", { 12141 value: !0 12142 }); 12143 var i = n(799), r = function() { 12144 function e(e) { 12145 var t = e.element, n = e.classNames; 12146 if (this.element = t, this.classNames = n, !(t instanceof HTMLInputElement || t instanceof HTMLSelectElement)) throw new TypeError("Invalid element passed"); 12147 this.isDisabled = !1; 12148 } 12149 return Object.defineProperty(e.prototype, "isActive", { 12150 get: function() { 12151 return "active" === this.element.dataset.choice; 12152 }, 12153 enumerable: !1, 12154 configurable: !0 12155 }), Object.defineProperty(e.prototype, "dir", { 12156 get: function() { 12157 return this.element.dir; 12158 }, 12159 enumerable: !1, 12160 configurable: !0 12161 }), Object.defineProperty(e.prototype, "value", { 12162 get: function() { 12163 return this.element.value; 12164 }, 12165 set: function(e) { 12166 this.element.value = e; 12167 }, 12168 enumerable: !1, 12169 configurable: !0 12170 }), e.prototype.conceal = function() { 12171 this.element.classList.add(this.classNames.input), this.element.hidden = !0, this.element.tabIndex = -1; 12172 var e = this.element.getAttribute("style"); 12173 e && this.element.setAttribute("data-choice-orig-style", e), this.element.setAttribute("data-choice", "active"); 12174 }, e.prototype.reveal = function() { 12175 this.element.classList.remove(this.classNames.input), this.element.hidden = !1, 12176 this.element.removeAttribute("tabindex"); 12177 var e = this.element.getAttribute("data-choice-orig-style"); 12178 e ? (this.element.removeAttribute("data-choice-orig-style"), this.element.setAttribute("style", e)) : this.element.removeAttribute("style"), 12179 this.element.removeAttribute("data-choice"), this.element.value = this.element.value; 12180 }, e.prototype.enable = function() { 12181 this.element.removeAttribute("disabled"), this.element.disabled = !1, this.isDisabled = !1; 12182 }, e.prototype.disable = function() { 12183 this.element.setAttribute("disabled", ""), this.element.disabled = !0, this.isDisabled = !0; 12184 }, e.prototype.triggerEvent = function(e, t) { 12185 (0, i.dispatchEvent)(this.element, e, t); 12186 }, e; 12187 }(); 12188 t.default = r; 12189 }, 12190 541: function(e, t, n) { 12191 "use strict"; 12192 var i, r = this && this.__extends || (i = function(e, t) { 12193 return (i = Object.setPrototypeOf || { 12194 __proto__: [] 12195 } instanceof Array && function(e, t) { 12196 e.__proto__ = t; 12197 } || function(e, t) { 12198 for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); 12199 })(e, t); 12200 }, function(e, t) { 12201 if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); 12202 function n() { 12203 this.constructor = e; 12204 } 12205 i(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 12206 new n); 12207 }), o = this && this.__importDefault || function(e) {
12208 return e && e.__esModule ? e : { 12209 default: e 12210 }; 12211 }; 12212 Object.defineProperty(t, "__esModule", { 12213 value: !0 12214 }); 12215 var s = function(e) { 12216 function t(t) { 12217 var n = t.element, i = t.classNames, r = t.delimiter, o = e.call(this, { 12218 element: n, 12219 classNames: i 12220 }) || this; 12221 return o.delimiter = r, o; 12222 } 12223 return r(t, e), Object.defineProperty(t.prototype, "value", { 12224 get: function() { 12225 return this.element.value; 12226 }, 12227 set: function(e) { 12228 this.element.setAttribute("value", e), this.element.value = e; 12229 }, 12230 enumerable: !1, 12231 configurable: !0 12232 }), t; 12233 }(o(n(730)).default); 12234 t.default = s; 12235 }, 12236 982: function(e, t, n) { 12237 "use strict"; 12238 var i, r = this && this.__extends || (i = function(e, t) { 12239 return (i = Object.setPrototypeOf || { 12240 __proto__: [] 12241 } instanceof Array && function(e, t) { 12242 e.__proto__ = t; 12243 } || function(e, t) { 12244 for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); 12245 })(e, t); 12246 }, function(e, t) { 12247 if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); 12248 function n() { 12249 this.constructor = e; 12250 } 12251 i(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 12252 new n); 12253 }), o = this && this.__importDefault || function(e) { 12254 return e && e.__esModule ? e : { 12255 default: e 12256 }; 12257 }; 12258 Object.defineProperty(t, "__esModule", { 12259 value: !0 12260 }); 12261 var s = function(e) { 12262 function t(t) { 12263 var n = t.element, i = t.classNames, r = t.template, o = e.call(this, { 12264 element: n, 12265 classNames: i 12266 }) || this; 12267 return o.template = r, o; 12268 } 12269 return r(t, e), Object.defineProperty(t.prototype, "placeholderOption", { 12270 get: function() { 12271 return this.element.querySelector('option[value=""]') || this.element.querySelector("option[placeholder]"); 12272 }, 12273 enumerable: !1, 12274 configurable: !0 12275 }), Object.defineProperty(t.prototype, "optionGroups", { 12276 get: function() { 12277 return Array.from(this.element.getElementsByTagName("OPTGROUP")); 12278 }, 12279 enumerable: !1, 12280 configurable: !0 12281 }), Object.defineProperty(t.prototype, "options", { 12282 get: function() { 12283 return Array.from(this.element.options); 12284 }, 12285 set: function(e) { 12286 var t = this, n = document.createDocumentFragment(); 12287 e.forEach((function(e) { 12288 return i = e, r = t.template(i), void n.appendChild(r); 12289 var i, r; 12290 })), this.appendDocFragment(n); 12291 }, 12292 enumerable: !1, 12293 configurable: !0 12294 }), t.prototype.appendDocFragment = function(e) { 12295 this.element.innerHTML = "", this.element.appendChild(e); 12296 }, t; 12297 }(o(n(730)).default); 12298 t.default = s; 12299 }, 12300 883: function(e, t) { 12301 "use strict"; 12302 Object.defineProperty(t, "__esModule", { 12303 value: !0 12304 }), t.SCROLLING_SPEED = t.SELECT_MULTIPLE_TYPE = t.SELECT_ONE_TYPE = t.TEXT_TYPE = t.KEY_CODES = t.ACTION_TYPES = t.EVENTS = void 0, 12305 t.EVENTS = { 12306 showDropdown: "showDropdown", 12307 hideDropdown: "hideDropdown", 12308 change: "change", 12309 choice: "choice", 12310 search: "search", 12311 addItem: "addItem", 12312 removeItem: "removeItem", 12313 highlightItem: "highlightItem", 12314 highlightChoice: "highlightChoice", 12315 unhighlightItem: "unhighlightItem" 12316 }, t.ACTION_TYPES = { 12317 ADD_CHOICE: "ADD_CHOICE", 12318 FILTER_CHOICES: "FILTER_CHOICES", 12319 ACTIVATE_CHOICES: "ACTIVATE_CHOICES", 12320 CLEAR_CHOICES: "CLEAR_CHOICES", 12321 ADD_GROUP: "ADD_GROUP", 12322 ADD_ITEM: "ADD_ITEM", 12323 REMOVE_ITEM: "REMOVE_ITEM", 12324 HIGHLIGHT_ITEM: "HIGHLIGHT_ITEM", 12325 CLEAR_ALL: "CLEAR_ALL", 12326 RESET_TO: "RESET_TO", 12327 SET_IS_LOADING: "SET_IS_LOADING" 12328 }, t.KEY_CODES = { 12329 BACK_KEY: 46, 12330 DELETE_KEY: 8, 12331 ENTER_KEY: 13, 12332 A_KEY: 65, 12333 ESC_KEY: 27, 12334 UP_KEY: 38, 12335 DOWN_KEY: 40, 12336 PAGE_UP_KEY: 33, 12337 PAGE_DOWN_KEY: 34 12338 }, t.TEXT_TYPE = "text", t.SELECT_ONE_TYPE = "select-one", t.SELECT_MULTIPLE_TYPE = "select-multiple", 12339 t.SCROLLING_SPEED = 4; 12340 }, 12341 789: function(e, t, n) { 12342 "use strict"; 12343 Object.defineProperty(t, "__esModule", { 12344 value: !0 12345 }), t.DEFAULT_CONFIG = t.DEFAULT_CLASSNAMES = void 0; 12346 var i = n(799); 12347 t.DEFAULT_CLASSNAMES = { 12348 containerOuter: "choices", 12349 containerInner: "choices__inner", 12350 input: "choices__input", 12351 inputCloned: "choices__input--cloned", 12352 list: "choices__list", 12353 listItems: "choices__list--multiple", 12354 listSingle: "choices__list--single", 12355 listDropdown: "choices__list--dropdown", 12356 item: "choices__item", 12357 itemSelectable: "choices__item--selectable", 12358 itemDisabled: "choices__item--disabled", 12359 itemChoice: "choices__item--choice", 12360 placeholder: "choices__placeholder", 12361 group: "choices__group", 12362 groupHeading: "choices__heading", 12363 button: "choices__button", 12364 activeState: "is-active", 12365 focusState: "is-focused", 12366 openState: "is-open", 12367 disabledState: "is-disabled",
12368 highlightedState: "is-highlighted", 12369 selectedState: "is-selected", 12370 flippedState: "is-flipped", 12371 loadingState: "is-loading", 12372 noResults: "has-no-results", 12373 noChoices: "has-no-choices" 12374 }, t.DEFAULT_CONFIG = { 12375 items: [], 12376 choices: [], 12377 silent: !1, 12378 renderChoiceLimit: -1, 12379 maxItemCount: -1, 12380 addItems: !0, 12381 addItemFilter: null, 12382 removeItems: !0, 12383 removeItemButton: !1, 12384 editItems: !1, 12385 duplicateItemsAllowed: !0, 12386 delimiter: ",", 12387 paste: !0, 12388 searchEnabled: !0, 12389 searchChoices: !0, 12390 searchFloor: 1, 12391 searchResultLimit: 4, 12392 searchFields: [ "label", "value" ], 12393 position: "auto", 12394 resetScrollPosition: !0, 12395 shouldSort: !0, 12396 shouldSortItems: !1, 12397 sorter: i.sortByAlpha, 12398 placeholder: !0, 12399 placeholderValue: null, 12400 searchPlaceholderValue: null, 12401 prependValue: null, 12402 appendValue: null, 12403 renderSelectedChoices: "auto", 12404 loadingText: "Loading...", 12405 noResultsText: "No results found", 12406 noChoicesText: "No choices to choose from", 12407 itemSelectText: "Press to select", 12408 uniqueItemText: "Only unique values can be added", 12409 customAddItemText: "Only values matching specific conditions can be added", 12410 addItemText: function(e) { 12411 return 'Press Enter to add <b>"'.concat((0, i.sanitise)(e), '"</b>'); 12412 }, 12413 maxItemText: function(e) { 12414 return "Only ".concat(e, " values can be added"); 12415 }, 12416 valueComparer: function(e, t) { 12417 return e === t; 12418 }, 12419 fuseOptions: { 12420 includeScore: !0 12421 }, 12422 callbackOnInit: null, 12423 callbackOnCreateTemplates: null, 12424 classNames: t.DEFAULT_CLASSNAMES 12425 }; 12426 }, 12427 799: function(e, t) { 12428 "use strict"; 12429 var n; 12430 Object.defineProperty(t, "__esModule", { 12431 value: !0 12432 }), t.diff = t.cloneObject = t.existsInArray = t.dispatchEvent = t.sortByScore = t.sortByAlpha = t.strToEl = t.sanitise = t.isScrolledIntoView = t.getAdjacentEl = t.wrap = t.isType = t.getType = t.generateId = t.generateChars = t.getRandomNumber = void 0, 12433 t.getRandomNumber = function(e, t) { 12434 return Math.floor(Math.random() * (t - e) + e); 12435 }, t.generateChars = function(e) { 12436 return Array.from({ 12437 length: e 12438 }, (function() { 12439 return (0, t.getRandomNumber)(0, 36).toString(36); 12440 })).join(""); 12441 }, t.generateId = function(e, n) { 12442 var i = e.id || e.name && "".concat(e.name, "-").concat((0, t.generateChars)(2)) || (0, 12443 t.generateChars)(4); 12444 return i = i.replace(/(:|\.|\[|\]|,)/g, ""), i = "".concat(n, "-").concat(i); 12445 }, t.getType = function(e) { 12446 return Object.prototype.toString.call(e).slice(8, -1); 12447 }, t.isType = function(e, n) { 12448 return null != n && (0, t.getType)(n) === e; 12449 }, t.wrap = function(e, t) { 12450 return void 0 === t && (t = document.createElement("div")), e.parentNode && (e.nextSibling ? e.parentNode.insertBefore(t, e.nextSibling) : e.parentNode.appendChild(t)), 12451 t.appendChild(e); 12452 }, t.getAdjacentEl = function(e, t, n) { 12453 void 0 === n && (n = 1); 12454 for (var i = "".concat(n > 0 ? "next" : "previous", "ElementSibling"), r = e[i]; r; ) { 12455 if (r.matches(t)) return r; 12456 r = r[i]; 12457 } 12458 return r; 12459 }, t.isScrolledIntoView = function(e, t, n) { 12460 return void 0 === n && (n = 1), !!e && (n > 0 ? t.scrollTop + t.offsetHeight >= e.offsetTop + e.offsetHeight : e.offsetTop >= t.scrollTop); 12461 }, t.sanitise = function(e) { 12462 return "string" != typeof e ? e : e.replace(/&/g, "&").replace(/>/g, "&rt;").replace(/</g, "<").replace(/"/g, """); 12463 }, t.strToEl = (n = document.createElement("div"), function(e) { 12464 var t = e.trim(); 12465 n.innerHTML = t; 12466 for (var i = n.children[0]; n.firstChild; ) n.removeChild(n.firstChild); 12467 return i; 12468 }), t.sortByAlpha = function(e, t) { 12469 var n = e.value, i = e.label, r = void 0 === i ? n : i, o = t.value, s = t.label, a = void 0 === s ? o : s; 12470 return r.localeCompare(a, [], { 12471 sensitivity: "base", 12472 ignorePunctuation: !0, 12473 numeric: !0 12474 }); 12475 }, t.sortByScore = function(e, t) { 12476 var n = e.score, i = void 0 === n ? 0 : n, r = t.score; 12477 return i - (void 0 === r ? 0 : r); 12478 }
12478, t.dispatchEvent = function(e, t, n) { 12479 void 0 === n && (n = null); 12480 var i = new CustomEvent(t, { 12481 detail: n, 12482 bubbles: !0, 12483 cancelable: !0 12484 }); 12485 return e.dispatchEvent(i); 12486 }, t.existsInArray = function(e, t, n) { 12487 return void 0 === n && (n = "value"), e.some((function(e) { 12488 return "string" == typeof t ? e[n] === t.trim() : e[n] === t; 12489 })); 12490 }, t.cloneObject = function(e) { 12491 return JSON.parse(JSON.stringify(e)); 12492 }, t.diff = function(e, t) { 12493 var n = Object.keys(e).sort(), i = Object.keys(t).sort(); 12494 return n.filter((function(e) { 12495 return i.indexOf(e) < 0; 12496 })); 12497 }; 12498 }, 12499 273: function(e, t) { 12500 "use strict"; 12501 var n = this && this.__spreadArray || function(e, t, n) { 12502 if (n || 2 === arguments.length) for (var i, r = 0, o = t.length; r < o; r++) !i && r in t || (i || (i = Array.prototype.slice.call(t, 0, r)), 12503 i[r] = t[r]); 12504 return e.concat(i || Array.prototype.slice.call(t)); 12505 }; 12506 Object.defineProperty(t, "__esModule", { 12507 value: !0 12508 }), t.defaultState = void 0, t.defaultState = [], t.default = function(e, i) { 12509 switch (void 0 === e && (e = t.defaultState), void 0 === i && (i = {}), i.type) { 12510 case "ADD_CHOICE": 12511 var r = i, o = { 12512 id: r.id, 12513 elementId: r.elementId, 12514 groupId: r.groupId, 12515 value: r.value, 12516 label: r.label || r.value, 12517 disabled: r.disabled || !1, 12518 selected: !1, 12519 active: !0, 12520 score: 9999, 12521 customProperties: r.customProperties, 12522 placeholder: r.placeholder || !1 12523 }; 12524 return n(n([], e, !0), [ o ], !1); 12525 12526 case "ADD_ITEM": 12527 var s = i; 12528 return s.choiceId > -1 ? e.map((function(e) { 12529 var t = e; 12530 return t.id === parseInt("".concat(s.choiceId), 10) && (t.selected = !0), t; 12531 })) : e; 12532 12533 case "REMOVE_ITEM": 12534 var a = i; 12535 return a.choiceId && a.choiceId > -1 ? e.map((function(e) { 12536 var t = e; 12537 return t.id === parseInt("".concat(a.choiceId), 10) && (t.selected = !1), t; 12538 })) : e; 12539 12540 case "FILTER_CHOICES": 12541 var l = i; 12542 return e.map((function(e) { 12543 var t = e; 12544 return t.active = l.results.some((function(e) { 12545 var n = e.item, i = e.score; 12546 return n.id === t.id && (t.score = i, !0); 12547 })), t; 12548 })); 12549 12550 case "ACTIVATE_CHOICES": 12551 var c = i; 12552 return e.map((function(e) { 12553 var t = e; 12554 return t.active = c.active, t; 12555 })); 12556 12557 case "CLEAR_CHOICES": 12558 return t.defaultState; 12559 12560 default: 12561 return e; 12562 } 12563 }; 12564 }, 12565 871: function(e, t) { 12566 "use strict"; 12567 var n = this && this.__spreadArray || function(e, t, n) { 12568 if (n || 2 === arguments.length) for (var i, r = 0, o = t.length; r < o; r++) !i && r in t || (i || (i = Array.prototype.slice.call(t, 0, r)), 12569 i[r] = t[r]); 12570 return e.concat(i || Array.prototype.slice.call(t)); 12571 }; 12572 Object.defineProperty(t, "__esModule", { 12573 value: !0 12574 }), t.defaultState = void 0, t.defaultState = [], t.default = function(e, i) { 12575 switch (void 0 === e && (e = t.defaultState), void 0 === i && (i = {}), i.type) { 12576 case "ADD_GROUP": 12577 var r = i; 12578 return n(n([], e, !0), [ { 12579 id: r.id, 12580 value: r.value, 12581 active: r.active, 12582 disabled: r.disabled 12583 } ], !1); 12584 12585 case "CLEAR_CHOICES": 12586 return []; 12587 12588 default: 12589 return e; 12590 } 12591 }; 12592 }, 12593 655: function(e, t, n) { 12594 "use strict"; 12595 var i = this && this.__importDefault || function(e) {
12596 return e && e.__esModule ? e : { 12597 default: e 12598 }; 12599 }; 12600 Object.defineProperty(t, "__esModule", { 12601 value: !0 12602 }), t.defaultState = void 0; 12603 var r = n(857), o = i(n(52)), s = i(n(871)), a = i(n(273)), l = i(n(502)), c = n(799); 12604 t.defaultState = { 12605 groups: [], 12606 items: [], 12607 choices: [], 12608 loading: !1 12609 }; 12610 var u = (0, r.combineReducers)({ 12611 items: o.default, 12612 groups: s.default, 12613 choices: a.default, 12614 loading: l.default 12615 }); 12616 t.default = function(e, n) { 12617 var i = e; 12618 if ("CLEAR_ALL" === n.type) i = t.defaultState; else if ("RESET_TO" === n.type) return (0, 12619 c.cloneObject)(n.state); 12620 return u(i, n); 12621 }; 12622 }, 12623 52: function(e, t) { 12624 "use strict"; 12625 var n = this && this.__spreadArray || function(e, t, n) { 12626 if (n || 2 === arguments.length) for (var i, r = 0, o = t.length; r < o; r++) !i && r in t || (i || (i = Array.prototype.slice.call(t, 0, r)), 12627 i[r] = t[r]); 12628 return e.concat(i || Array.prototype.slice.call(t)); 12629 }; 12630 Object.defineProperty(t, "__esModule", { 12631 value: !0 12632 }), t.defaultState = void 0, t.defaultState = [], t.default = function(e, i) { 12633 switch (void 0 === e && (e = t.defaultState), void 0 === i && (i = {}), i.type) { 12634 case "ADD_ITEM": 12635 var r = i; 12636 return n(n([], e, !0), [ { 12637 id: r.id, 12638 choiceId: r.choiceId, 12639 groupId: r.groupId, 12640 value: r.value, 12641 label: r.label, 12642 active: !0, 12643 highlighted: !1, 12644 customProperties: r.customProperties, 12645 placeholder: r.placeholder || !1, 12646 keyCode: null 12647 } ], !1).map((function(e) { 12648 var t = e; 12649 return t.highlighted = !1, t; 12650 })); 12651 12652 case "REMOVE_ITEM": 12653 return e.map((function(e) { 12654 var t = e; 12655 return t.id === i.id && (t.active = !1), t; 12656 })); 12657 12658 case "HIGHLIGHT_ITEM": 12659 var o = i; 12660 return e.map((function(e) { 12661 var t = e; 12662 return t.id === o.id && (t.highlighted = o.highlighted), t; 12663 })); 12664 12665 default: 12666 return e; 12667 } 12668 }; 12669 }, 12670 502: function(e, t) { 12671 "use strict"; 12672 Object.defineProperty(t, "__esModule", { 12673 value: !0 12674 }), t.defaultState = void 0, t.defaultState = !1, t.default = function(e, n) { 12675 switch (void 0 === e && (e = t.defaultState), void 0 === n && (n = {}), n.type) { 12676 case "SET_IS_LOADING": 12677 return n.isLoading; 12678 12679 default: 12680 return e; 12681 } 12682 }; 12683 }, 12684 744: function(e, t, n) { 12685 "use strict"; 12686 var i = this && this.__spreadArray || function(e, t, n) { 12687 if (n || 2 === arguments.length) for (var i, r = 0, o = t.length; r < o; r++) !i && r in t || (i || (i = Array.prototype.slice.call(t, 0, r)), 12688 i[r] = t[r]); 12689 return e.concat(i || Array.prototype.slice.call(t)); 12690 }, r = this && this.__importDefault || function(e) {
12691 return e && e.__esModule ? e : { 12692 default: e 12693 }; 12694 }; 12695 Object.defineProperty(t, "__esModule", { 12696 value: !0 12697 }); 12698 var o = n(857), s = r(n(655)), a = function() { 12699 function e() { 12700 this._store = (0, o.createStore)(s.default, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()); 12701 } 12702 return e.prototype.subscribe = function(e) { 12703 this._store.subscribe(e); 12704 }, e.prototype.dispatch = function(e) { 12705 this._store.dispatch(e); 12706 }, Object.defineProperty(e.prototype, "state", { 12707 get: function() { 12708 return this._store.getState(); 12709 }, 12710 enumerable: !1, 12711 configurable: !0 12712 }), Object.defineProperty(e.prototype, "items", { 12713 get: function() { 12714 return this.state.items; 12715 }, 12716 enumerable: !1, 12717 configurable: !0 12718 }), Object.defineProperty(e.prototype, "activeItems", { 12719 get: function() { 12720 return this.items.filter((function(e) { 12721 return !0 === e.active; 12722 })); 12723 }, 12724 enumerable: !1, 12725 configurable: !0 12726 }), Object.defineProperty(e.prototype, "highlightedActiveItems", { 12727 get: function() { 12728 return this.items.filter((function(e) { 12729 return e.active && e.highlighted; 12730 })); 12731 }, 12732 enumerable: !1, 12733 configurable: !0 12734 }), Object.defineProperty(e.prototype, "choices", { 12735 get: function() { 12736 return this.state.choices; 12737 }, 12738 enumerable: !1, 12739 configurable: !0 12740 }), Object.defineProperty(e.prototype, "activeChoices", { 12741 get: function() { 12742 return this.choices.filter((function(e) { 12743 return !0 === e.active; 12744 })); 12745 }, 12746 enumerable: !1, 12747 configurable: !0 12748 }), Object.defineProperty(e.prototype, "selectableChoices", { 12749 get: function() { 12750 return this.choices.filter((function(e) { 12751 return !0 !== e.disabled; 12752 })); 12753 }, 12754 enumerable: !1, 12755 configurable: !0 12756 }), Object.defineProperty(e.prototype, "searchableChoices", { 12757 get: function() { 12758 return this.selectableChoices.filter((function(e) { 12759 return !0 !== e.placeholder; 12760 })); 12761 }, 12762 enumerable: !1, 12763 configurable: !0 12764 }), Object.defineProperty(e.prototype, "placeholderChoice", { 12765 get: function() { 12766 return i([], this.choices, !0).reverse().find((function(e) { 12767 return !0 === e.placeholder; 12768 })); 12769 }, 12770 enumerable: !1, 12771 configurable: !0 12772 }), Object.defineProperty(e.prototype, "groups", { 12773 get: function() { 12774 return this.state.groups; 12775 }, 12776 enumerable: !1, 12777 configurable: !0 12778 }), Object.defineProperty(e.prototype, "activeGroups", { 12779 get: function() { 12780 var e = this.groups, t = this.choices; 12781 return e.filter((function(e) { 12782 var n = !0 === e.active && !1 === e.disabled, i = t.some((function(e) { 12783 return !0 === e.active && !1 === e.disabled; 12784 })); 12785 return n && i; 12786 }), []); 12787 }, 12788 enumerable: !1, 12789 configurable: !0 12790 }), e.prototype.isLoading = function() { 12791 return this.state.loading; 12792 }, e.prototype.getChoiceById = function(e) { 12793 return this.activeChoices.find((function(t) { 12794 return t.id === parseInt(e, 10); 12795 })); 12796 }, e.prototype.getGroupById = function(e) { 12797 return this.groups.find((function(t) { 12798 return t.id === e; 12799 })); 12800 }, e; 12801 }(); 12802 t.default = a; 12803 }, 12804 686: function(e, t) { 12805 "use strict"; 12806 Object.defineProperty(t, "__esModule", { 12807 value: !0 12808 }); 12809 var n = { 12810 containerOuter: function(e, t, n, i, r, o) { 12811 var s = e.containerOuter, a = Object.assign(document.createElement("div"), { 12812 className: s 12813 }); 12814 return a.dataset.type = o, t && (a.dir = t), i && (a.tabIndex = 0), n && (a.setAttribute("role", r ? "combobox" : "listbox"), 12815 r && a.setAttribute("aria-autocomplete", "list")), a.setAttribute("aria-haspopup", "true"), 12816 a.setAttribute("aria-expanded", "false"), a; 12817 }, 12818 containerInner: function(e) { 12819 var t = e.containerInner; 12820 return Object.assign(document.createElement("div"), { 12821 className: t 12822 }); 12823 }, 12824 itemList: function(e, t) { 12825 var n = e.list, i = e.listSingle, r = e.listItems; 12826 return Object.assign(document.createElement("div"), { 12827 className: "".concat(n, " ").concat(t ? i : r) 12828 }); 12829 }, 12830 placeholder: function(e, t) { 12831 var n = e.placeholder; 12832 return Object.assign(document.createElement("div"), { 12833 className: n, 12834 innerHTML: t 12835 }); 12836 }, 12837 item: function(e, t, n) { 12838 var i = e.item, r = e.button, o = e.highlightedState, s = e.itemSelectable, a = e.placeholder, l = t.id, c = t.value, u = t.label, d = t.customProperties, h = t.active, f = t.disabled, p = t.highlighted, m = t.placeholder, g = Object.assign(document.createElement("div"), { 12839 className: i, 12840 innerHTML: u 12841 }); 12842 if (Object.assign(g.dataset, { 12843 item: "", 12844 id: l, 12845 value: c, 12846 customProperties: d 12847 }), h && g.setAttribute("aria-selected", "true"), f && g.setAttribute("aria-disabled", "true"), 12848 m && g.classList.add(a), g.classList.add(p ? o : s), n) { 12849 f && g.classList.remove(s), g.dataset.deletable = ""; 12850 var v = Object.assign(document.createElement("button"), { 12851 type: "button", 12852 className: r, 12853 innerHTML: "Remove item" 12854 }); 12855 v.setAttribute("aria-label", "".concat("Remove item", ": '").concat(c, "'")), v.dataset.button = "", 12856 g.appendChild(v); 12857 } 12858 return g; 12859 }, 12860 choiceList: function(e, t) { 12861 var n = e.list, i = Object.assign(document.createElement("div"), { 12862 className: n 12863 }); 12864 return t || i.setAttribute("aria-multiselectable", "true"), i.setAttribute("role", "listbox"), 12865 i; 12866 }, 12867 choiceGroup: function(e, t) { 12868 var n = e.group, i = e.groupHeading, r = e.itemDisabled, o = t.id, s = t.value, a = t.disabled, l = Object.assign(document.createElement("div"), { 12869 className: "".concat(n, " ").concat(a ? r : "") 12870 }); 12871 return l.setAttribute("role", "group"), Object.assign(l.dataset, { 12872 group: "", 12873 id: o, 12874 value: s 12875 }), a && l.setAttribute("aria-disabled", "true"), l.appendChild(Object.assign(document.createElement("div"), { 12876 className: i, 12877 innerHTML: s 12878 })), l; 12879 }, 12880 choice: function(e, t, n) { 12881 var i = e.item, r = e.itemChoice, o = e.itemSelectable, s = e.selectedState, a = e.itemDisabled, l = e.placeholder, c = t.id, u = t.value, d = t.label, h = t.groupId, f = t.elementId, p = t.disabled, m = t.selected, g = t.placeholder, v = Object.assign(document.createElement("div"), { 12882 id: f, 12883 innerHTML: d, 12884 className: "".concat(i, " ").concat(r) 12885 }); 12886 return m && v.classList.add(s), g && v.classList.add(l), v.setAttribute("role", h && h > 0 ? "treeitem" : "option"), 12887 Object.assign(v.dataset, { 12888 choice: "", 12889 id: c, 12890 value: u, 12891 selectText: n 12892 }), p ? (v.classList.add(a), v.dataset.choiceDisabled = "", v.setAttribute("aria-disabled", "true")) : (v.classList.add(o), 12893 v.dataset.choiceSelectable = ""), v; 12894 }, 12895 input: function(e, t) { 12896 var n = e.input, i = e.inputCloned, r = Object.assign(document.createElement("input"), { 12897 type: "text", 12898 className: "".concat(n, " ").concat(i), 12899 autocomplete: "off", 12900 autocapitalize: "off", 12901 spellcheck: !1 12902 }); 12903 return r.setAttribute("role", "textbox"), r.setAttribute("aria-autocomplete", "list"), 12904 r.setAttribute("aria-label", t), r; 12905 }, 12906 dropdown: function(e) { 12907 var t = e.list, n = e.listDropdown, i = document.createElement("div"); 12908 return i.classList.add(t, n), i.setAttribute("aria-expanded", "false"), i; 12909 }, 12910 notice: function(e, t, n) { 12911 var i = e.item, r = e.itemChoice, o = e.noResults, s = e.noChoices; 12912 void 0 === n && (n = ""); 12913 var a = [ i, r ]; 12914 return "no-choices" === n ? a.push(s) : "no-results" === n && a.push(o), Object.assign(document.createElement("div"), { 12915 innerHTML: t, 12916 className: a.join(" ") 12917 }); 12918 }, 12919 option: function(e) { 12920 var t = e.label, n = e.value, i = e.customProperties, r = e.active, o = e.disabled, s = new Option(t, n, !1, r); 12921 return i && (s.dataset.customProperties = "".concat(i)), s.disabled = !!o, s; 12922 } 12923 }; 12924 t.default = n; 12925 }, 12926 996: function(e) { 12927 "use strict"; 12928 var t = function(e) { 12929 return function(e) { 12930 return !!e && "object" == typeof e; 12931 }(e) && !function(e) { 12932 var t = Object.prototype.toString.call(e); 12933 return "[object RegExp]" === t || "[object Date]" === t || function(e) { 12934 return e.$$typeof === n; 12935 }(e); 12936 }(e); 12937 }, n = "function" == typeof Symbol && Symbol.for ? Symbol.for("react.element") : 60103; 12938 function
12938i(e, t) { 12939 return !1 !== t.clone && t.isMergeableObject(e) ? l((n = e, Array.isArray(n) ? [] : {}), e, t) : e; 12940 var n; 12941 } 12942 function r(e, t, n) { 12943 return e.concat(t).map((function(e) { 12944 return i(e, n); 12945 })); 12946 } 12947 function o(e) { 12948 return Object.keys(e).concat(function(e) { 12949 return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter((function(t) { 12950 return e.propertyIsEnumerable(t); 12951 })) : []; 12952 }(e)); 12953 } 12954 function s(e, t) { 12955 try { 12956 return t in e; 12957 } catch (e) { 12958 return !1; 12959 } 12960 } 12961 function a(e, t, n) { 12962 var r = {}; 12963 return n.isMergeableObject(e) && o(e).forEach((function(t) { 12964 r[t] = i(e[t], n); 12965 })), o(t).forEach((function(o) { 12966 (function(e, t) { 12967 return s(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t)); 12968 })(e, o) || (s(e, o) && n.isMergeableObject(t[o]) ? r[o] = function(e, t) { 12969 if (!t.customMerge) return l; 12970 var n = t.customMerge(e); 12971 return "function" == typeof n ? n : l; 12972 }(o, n)(e[o], t[o], n) : r[o] = i(t[o], n)); 12973 })), r; 12974 } 12975 function l(e, n, o) { 12976 (o = o || {}).arrayMerge = o.arrayMerge || r, o.isMergeableObject = o.isMergeableObject || t, 12977 o.cloneUnlessOtherwiseSpecified = i; 12978 var s = Array.isArray(n); 12979 return s === Array.isArray(e) ? s ? o.arrayMerge(e, n, o) : a(e, n, o) : i(n, o); 12980 } 12981 l.all = function(e, t) { 12982 if (!Array.isArray(e)) throw new Error("first argument should be an array"); 12983 return e.reduce((function(e, n) { 12984 return l(e, n, t); 12985 }), {}); 12986 }; 12987 var c = l; 12988 e.exports = c; 12989 }, 12990 70: function(e) { 12991 e.exports = function(e) { 12992 var t = {}; 12993 function n(i) { 12994 if (t[i]) return t[i].exports; 12995 var r = t[i] = { 12996 i: i, 12997 l: !1, 12998 exports: {} 12999 }; 13000 return e[i].call(r.exports, r, r.exports, n), r.l = !0, r.exports; 13001 } 13002 return n.m = e, n.c = t, n.d = function(e, t, i) { 13003 n.o(e, t) || Object.defineProperty(e, t, { 13004 enumerable: !0, 13005 get: i 13006 }); 13007 }, n.r = function(e) { 13008 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { 13009 value: "Module" 13010 }), Object.defineProperty(e, "__esModule", { 13011 value: !0 13012 }); 13013 }, n.t = function(e, t) { 13014 if (1 & t && (e = n(e)), 8 & t) return e; 13015 if (4 & t && "object" == typeof e && e && e.__esMo
13015dule) return e; 13016 var i = Object.create(null); 13017 if (n.r(i), Object.defineProperty(i, "default", { 13018 enumerable: !0, 13019 value: e 13020 }), 2 & t && "string" != typeof e) for (var r in e) n.d(i, r, function(t) { 13021 return e[t]; 13022 }.bind(null, r)); 13023 return i; 13024 }, n.n = function(e) { 13025 var t = e && e.__esModule ? function() { 13026 return e.default; 13027 } : function() { 13028 return e; 13029 }; 13030 return n.d(t, "a", t), t; 13031 }, n.o = function(e, t) { 13032 return Object.prototype.hasOwnProperty.call(e, t); 13033 }, n.p = "", n(n.s = 1); 13034 }([ function(e, t) { 13035 e.exports = function(e) { 13036 return Array.isArray ? Array.isArray(e) : "[object Array]" === Object.prototype.toString.call(e); 13037 }; 13038 }, function(e, t, n) { 13039 function i(e) { 13040 return (i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { 13041 return typeof e; 13042 } : function(e) { 13043 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; 13044 })(e); 13045 } 13046 function r(e, t) { 13047 for (var n = 0; n < t.length; n++) { 13048 var i = t[n]; 13049 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 13050 Object.defineProperty(e, i.key, i); 13051 } 13052 } 13053 var o = n(2), s = n(8), a = n(0), l = function() { 13054 function e(t, n) { 13055 var i = n.location, r = void 0 === i ? 0 : i, o = n.distance, a = void 0 === o ? 100 : o, l = n.threshold, c = void 0 === l ? .6 : l, u = n.maxPatternLength, d = void 0 === u ? 32 : u, h = n.caseSensitive, f = void 0 !== h && h, p = n.tokenSeparator, m = void 0 === p ? / +/g : p, g = n.findAllMatches, v = void 0 !== g && g, b = n.minMatchCharLength, y = void 0 === b ? 1 : b, x = n.id, w = void 0 === x ? null : x, _ = n.keys, S = void 0 === _ ? [] : _, E = n.shouldSort, C = void 0 === E || E, T = n.getFn, k = void 0 === T ? s : T, M = n.sortFn, A = void 0 === M ? function(e, t) { 13056 return e.score - t.score; 13057 } : M, O = n.tokenize, P = void 0 !== O && O, I = n.matchAllTokens, L = void 0 !== I && I, D = n.includeMatches, N = void 0 !== D && D, F = n.includeScore, j = void 0 !== F && F, R = n.verbose, B = void 0 !== R && R; 13058 !function(e, t) { 13059 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 13060 }(this, e), this.options = { 13061 location: r, 13062 distance: a, 13063 threshold: c, 13064 maxPatternLength: d, 13065 isCaseSensitive: f, 13066 tokenSeparator: m, 13067 findAllMatches: v, 13068 minMatchCharLength: y, 13069 id: w, 13070 keys: S, 13071 includeMatches: N, 13072 includeScore: j, 13073 shouldSort: C, 13074 getFn: k, 13075 sortFn: A,
13076 verbose: B, 13077 tokenize: P, 13078 matchAllTokens: L 13079 }, this.setCollection(t); 13080 } 13081 var t, n; 13082 return t = e, (n = [ { 13083 key: "setCollection", 13084 value: function(e) { 13085 return this.list = e, e; 13086 } 13087 }, { 13088 key: "search", 13089 value: function(e) { 13090 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : { 13091 limit: !1 13092 }; 13093 this._log('---------\nSearch pattern: "'.concat(e, '"')); 13094 var n = this._prepareSearchers(e), i = n.tokenSearchers, r = n.fullSearcher, o = this._search(i, r), s = o.weights, a = o.results; 13095 return this._computeScore(s, a), this.options.shouldSort && this._sort(a), t.limit && "number" == typeof t.limit && (a = a.slice(0, t.limit)), 13096 this._format(a); 13097 } 13098 }, { 13099 key: "_prepareSearchers", 13100 value: function() { 13101 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = []; 13102 if (this.options.tokenize) for (var n = e.split(this.options.tokenSeparator), i = 0, r = n.length; i < r; i += 1) t.push(new o(n[i], this.options)); 13103 return { 13104 tokenSearchers: t, 13105 fullSearcher: new o(e, this.options) 13106 }; 13107 } 13108 }, { 13109 key: "_search", 13110 value: function() { 13111 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 ? arguments[1] : void 0, n = this.list, i = {}, r = []; 13112 if ("string" == typeof n[0]) { 13113 for (var o = 0, s = n.length; o < s; o += 1) this._analyze({ 13114 key: "", 13115 value: n[o], 13116 record: o, 13117 index: o 13118 }, { 13119 resultMap: i, 13120 results: r, 13121 tokenSearchers: e, 13122 fullSearcher: t 13123 }); 13124 return { 13125 weights: null, 13126 results: r 13127 }; 13128 } 13129 for (var a = {}, l = 0, c = n.length; l < c; l += 1) for (var u = n[l], d = 0, h = this.options.keys.length; d < h; d += 1) { 13130 var f = this.options.keys[d]; 13131 if ("string" != typeof f) { 13132 if (a[f.name] = { 13133 weight: 1 - f.weight || 1 13134 }, f.weight <= 0 || f.weight >
13134 1) throw new Error("Key weight has to be > 0 and <= 1"); 13135 f = f.name; 13136 } else a[f] = { 13137 weight: 1 13138 }; 13139 this._analyze({ 13140 key: f, 13141 value: this.options.getFn(u, f), 13142 record: u, 13143 index: l 13144 }, { 13145 resultMap: i, 13146 results: r, 13147 tokenSearchers: e, 13148 fullSearcher: t 13149 }); 13150 } 13151 return { 13152 weights: a, 13153 results: r 13154 }; 13155 } 13156 }, { 13157 key: "_analyze", 13158 value: function(e, t) { 13159 var n = e.key, i = e.arrayIndex, r = void 0 === i ? -1 : i, o = e.value, s = e.record, l = e.index, c = t.tokenSearchers, u = void 0 === c ? [] : c, d = t.fullSearcher, h = void 0 === d ? [] : d, f = t.resultMap, p = void 0 === f ? {} : f, m = t.results, g = void 0 === m ? [] : m; 13160 if (null != o) { 13161 var v = !1, b = -1, y = 0; 13162 if ("string" == typeof o) { 13163 this._log("\nKey: ".concat("" === n ? "-" : n)); 13164 var x = h.search(o); 13165 if (this._log('Full text: "'.concat(o, '", score: ').concat(x.score)), this.options.tokenize) { 13166 for (var w = o.split(this.options.tokenSeparator), _ = [], S = 0; S < u.length; S += 1) { 13167 var E = u[S]; 13168 this._log('\nPattern: "'.concat(E.pattern, '"')); 13169 for (var C = !1, T = 0; T < w.length; T += 1) { 13170 var k = w[T], M = E.search(k), A = {}; 13171 M.isMatch ? (A[k] = M.score, v = !0, C = !0, _.push(M.score)) : (A[k] = 1, this.options.matchAllTokens || _.push(1)), 13172 this._log('Token: "'.concat(k, '", score: ').concat(A[k])); 13173 } 13174 C && (y += 1); 13175 } 13176 b = _[0]; 13177 for (var O = _.length, P = 1; P < O; P += 1) b += _[P]; 13178 b /= O, this._log("Token score average:", b); 13179 } 13180 var I = x.score; 13181 b > -1 && (I = (I + b) / 2), this._log("Score average:", I); 13182 var L = !this.options.tokenize || !this.options.matchAllTokens || y >= u.length; 13183 if (this._log("\nCheck Matches: ".concat(L)), (v || x.isMatch) && L) { 13184 var D = p[l]; 13185 D ? D.output.push({ 13186 key: n, 13187 arrayIndex: r, 13188 value: o, 13189 score: I, 13190 matchedIndices: x.matchedIndices 13191 }) : (p[l] = { 13192 item: s, 13193 output: [ { 13194 key: n, 13195 arrayIndex: r, 13196 value: o, 13197 score: I, 13198 matchedIndices: x.matchedIndices 13199 } ] 13200 }
13200, g.push(p[l])); 13201 } 13202 } else if (a(o)) for (var N = 0, F = o.length; N < F; N += 1) this._analyze({ 13203 key: n, 13204 arrayIndex: N, 13205 value: o[N], 13206 record: s, 13207 index: l 13208 }, { 13209 resultMap: p, 13210 results: g, 13211 tokenSearchers: u, 13212 fullSearcher: h 13213 }); 13214 } 13215 } 13216 }, { 13217 key: "_computeScore", 13218 value: function(e, t) { 13219 this._log("\n\nComputing score:\n"); 13220 for (var n = 0, i = t.length; n < i; n += 1) { 13221 for (var r = t[n].output, o = r.length, s = 1, a = 1, l = 0; l < o; l += 1) { 13222 var c = e ? e[r[l].key].weight : 1, u = (1 === c ? r[l].score : r[l].score || .001) * c; 13223 1 !== c ? a = Math.min(a, u) : (r[l].nScore = u, s *= u); 13224 } 13225 t[n].score = 1 === a ? s : a, this._log(t[n]); 13226 } 13227 } 13228 }, { 13229 key: "_sort", 13230 value: function(e) { 13231 this._log("\n\nSorting...."), e.sort(this.options.sortFn); 13232 } 13233 }, { 13234 key: "_format", 13235 value: function(e) { 13236 var t = []; 13237 if (this.options.verbose) { 13238 var n = []; 13239 this._log("\n\nOutput:\n\n", JSON.stringify(e, (function(e, t) { 13240 if ("object" === i(t) && null !== t) { 13241 if (-1 !== n.indexOf(t)) return; 13242 n.push(t); 13243 } 13244 return t; 13245 }))), n = null; 13246 } 13247 var r = []; 13248 this.options.includeMatches && r.push((function(e, t) { 13249 var n = e.output; 13250 t.matches = []; 13251 for (var i = 0, r = n.length; i < r; i += 1) { 13252 var o = n[i]; 13253 if (0 !== o.matchedIndices.length) { 13254 var s = { 13255 indices: o.matchedIndices, 13256 value: o.value 13257 }; 13258 o.key && (s.key = o.key), o.hasOwnProperty("arrayIndex") && o.arrayIndex > -1 && (s.arrayIndex = o.arrayIndex), 13259 t.matches.push(s); 13260 } 13261 } 13262 })), this.options.includeScore && r.push((function(e, t) { 13263 t.score = e.score; 13264 })); 13265 for (var o = 0, s = e.length; o < s; o += 1) { 13266 var a = e[o]; 13267 if (this.options.id && (a.item = this.options.getFn(a.item, this.options.id)[0]), 13268 r.length) { 13269 for (var l = { 13270 item: a.item 13271 }, c = 0, u = r.length; c < u; c += 1) r[c](a, l); 13272 t.push(l); 13273 } else t.push(a.item); 13274 } 13275 return t; 13276 } 13277 }, { 13278 key: "_log", 13279 value: function() { 13280 var e; 13281 this.options.verbose && (e = console).log.a
13281pply(e, arguments); 13282 } 13283 } ]) && r(t.prototype, n), e; 13284 }(); 13285 e.exports = l; 13286 }, function(e, t, n) { 13287 function i(e, t) { 13288 for (var n = 0; n < t.length; n++) { 13289 var i = t[n]; 13290 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), 13291 Object.defineProperty(e, i.key, i); 13292 } 13293 } 13294 var r = n(3), o = n(4), s = n(7), a = function() { 13295 function e(t, n) { 13296 var i = n.location, r = void 0 === i ? 0 : i, o = n.distance, a = void 0 === o ? 100 : o, l = n.threshold, c = void 0 === l ? .6 : l, u = n.maxPatternLength, d = void 0 === u ? 32 : u, h = n.isCaseSensitive, f = void 0 !== h && h, p = n.tokenSeparator, m = void 0 === p ? / +/g : p, g = n.findAllMatches, v = void 0 !== g && g, b = n.minMatchCharLength, y = void 0 === b ? 1 : b; 13297 !function(e, t) { 13298 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 13299 }(this, e), this.options = { 13300 location: r, 13301 distance: a, 13302 threshold: c, 13303 maxPatternLength: d, 13304 isCaseSensitive: f, 13305 tokenSeparator: m, 13306 findAllMatches: v, 13307 minMatchCharLength: y 13308 }, this.pattern = this.options.isCaseSensitive ? t : t.toLowerCase(), this.pattern.length <= d && (this.patternAlphabet = s(this.pattern)); 13309 } 13310 var t, n; 13311 return t = e, (n = [ { 13312 key: "search", 13313 value: function(e) { 13314 if (this.options.isCaseSensitive || (e = e.toLowerCase()), this.pattern === e) return { 13315 isMatch: !0, 13316 score: 0, 13317 matchedIndices: [ [ 0, e.length - 1 ] ] 13318 }; 13319 var t = this.options, n = t.maxPatternLength, i = t.tokenSeparator; 13320 if (this.pattern.length > n) return r(e, this.pattern, i); 13321 var s = this.options, a = s.location, l = s.distance, c = s.threshold, u = s.findAllMatches, d = s.minMatchCharLength; 13322 return o(e, this.pattern, this.patternAlphabet, { 13323 location: a, 13324 distance: l, 13325 threshold: c, 13326 findAllMatches: u, 13327 minMatchCharLength: d 13328 }); 13329 } 13330 } ]) && i(t.prototype, n), e; 13331 }(); 13332 e.exports = a; 13333 }, function(e, t) { 13334 var n = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g; 13335 e.exports = function(e, t) { 13336 var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : / +/g, r = new RegExp(t.replace(n, "\\$&").replace(i, "|")), o = e.match(r), s = !!o, a = []; 13337 if (s) for (var l = 0, c = o.length; l < c; l += 1) { 13338 var u = o[l]; 13339 a.push([ e.indexOf(u), u.length - 1 ]); 13340 } 13341 return { 13342 score: s ? .5 : 1, 13343 isMatch: s, 13344 matchedIndices: a 13345 }; 13346 }; 13347 }, function(e, t, n) { 13348 var i = n(5), r = n(6); 13349 e.exports = function(e, t, n, o) { 13350 for (var s = o.location, a = void 0 === s ? 0 : s, l = o.distance, c = void 0 === l ? 100 : l, u = o.threshold, d = void 0 === u ? .6 : u, h = o.findAllMatches, f = void 0 !== h && h, p = o.minMatchCharLength, m = void 0 === p ? 1 : p, g = a, v = e.length, b = d, y = e.indexOf(t, g), x = t.length, w = [], _ = 0; _ < v; _ += 1) w[_] = 0; 13351 if (-1 !== y) { 13352 var S = i(t, { 13353 errors: 0, 13354 currentLocation: y, 13355 expectedLocation: g, 13356 distance: c 13357 }); 13358 if (b = Math.min(S, b), -1 !== (y = e.lastIndexOf(t, g + x))) { 13359 var E = i(t, { 13360 errors: 0, 13361 currentLocation: y, 13362 expectedLocation: g, 13363 distance: c 13364 }); 13365 b = Math.min(E, b); 13366 } 13367 } 13368 y = -1; 13369 for (var C = [], T = 1, k = x + v, M = 1 << (x <= 31 ? x - 1 : 30), A = 0; A < x; A += 1) { 13370 for (var O = 0, P = k; O < P; ) i(t, { 13371 errors: A, 13372 currentLocation: g + P, 13373 expectedLocation: g, 13374 distance: c 13375 }) <= b ? O = P : k = P, P = Math.floor((k - O) / 2 + O); 13376 k = P; 13377 var I = Math.max(1, g - P + 1), L = f ? v : Math.min(g + P, v) + x, D = Array(L + 2); 13378 D[L + 1] = (1 << A) - 1; 13379 for (var N = L; N >= I; N -= 1) { 13380 var F = N - 1, j = n[e.charAt(F)]; 13381 if (j && (w[F] = 1), D[N] = (D[N + 1] << 1 | 1) & j, 0 !== A && (D[N] |= (C[N + 1] | C[N]) << 1 | 1 | C[N + 1]), 13382 D[N] & M && (T = i(t, { 13383 errors: A, 13384 currentLocation: F, 13385 expectedLocation: g, 13386 distance: c 13387 })) <= b) { 13388 if (b = T, (y = F) <= g) break; 13389 I = Math.max(1, 2 * g - y); 13390 } 13391 } 13392 if (i(t, { 13393 errors: A + 1, 13394 currentLocation: g, 13395 expectedLocation: g, 13396 distance: c 13397 }) > b) break; 13398 C = D; 13399 } 13400 return { 13401 isMatch: y >= 0, 13402 score: 0 === T ? .001 : T, 13403 matchedIndices: r(w, m) 13404 }; 13405 }; 13406 }, function(e, t) { 13407 e.exports = function(e, t) { 13408 var n = t.errors, i = void 0 === n ? 0 : n, r = t.currentLocation, o = void 0 === r ? 0 : r, s = t.expectedLocation, a = void 0 === s ? 0 : s, l = t.distance, c = void 0 === l ? 100 : l, u = i / e.length, d = Math.abs(a - o); 13409 return c ? u + d / c : d ? 1 : u; 13410 }; 13411 }, function(e, t) { 13412 e.exports = function() { 13413 for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, n = [], i = -1, r = -1, o = 0, s = e.length; o < s; o += 1) { 13414 var a = e[o]; 13415 a && -1 === i ? i = o : a || -1 === i || ((r = o - 1) - i + 1 >= t && n.push([ i, r ]), 13416 i = -1); 13417 } 13418 return e[o - 1] && o - i >= t && n.push([ i, o - 1 ]), n; 13419 }; 13420 }, function(e, t) { 13421 e.exports = function(e) { 13422 for (var t = {}, n = e.length, i = 0; i < n; i += 1) t[e.charAt(i)] = 0; 13423 for (var r = 0; r < n; r += 1) t[e.charAt(r)] |= 1 << n - r - 1; 13424 return t; 13425 }; 13426 }, function(e, t, n) { 13427 var i = n(0); 13428 e.exports = function(e, t) { 13429 return function e(t, n, r) { 13430 if (n) { 13431 var o = n.indexOf("."), s = n, a = null; 13432 -1 !== o && (s = n.slice(0, o), a = n.slice(o + 1)); 13433 var l = t[s]; 13434 if (null != l) if (a || "string" != typeof l && "number" != typeof l) if (i(l)) for (var c = 0, u = l.length; c < u; c += 1) e(l[c], a, r); else a && e(l, a, r); else r.push(l.toString()); 13435 } else r.push(t); 13436 return r; 13437 }(e, t, []); 13438 }; 13439 } ]); 13440 }, 13441 857: function(e, t, n) { 13442 "use strict"; 13443 function i(e, t, n) { 13444 return t in e ? Object.defineProperty(e, t, { 13445 value: n, 13446 enumerable: !0, 13447 configurable: !0, 13448 writable: !0 13449 }) : e[t] = n, e; 13450 } 13451 function r(e, t) { 13452 var n = Object.keys(e); 13453 if (Object.getOwnPropertySymbols) { 13454 var i = Object.getOwnPropertySymbols(e); 13455 t && (i = i.filter((function(t) { 13456 return Object.getOwnPropertyDescriptor(e, t).enumerable; 13457 }))), n.push.apply(n, i); 13458 } 13459 return n; 13460 } 13461 function o(e) { 13462 for (var t = 1; t < arguments.length; t++) { 13463 var n = null != arguments[t] ? arguments[t] : {}; 13464 t % 2 ? r(Object(n), !0).forEac
13464h((function(t) { 13465 i(e, t, n[t]); 13466 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach((function(t) { 13467 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)); 13468 })); 13469 } 13470 return e; 13471 } 13472 function s(e) { 13473 return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. "; 13474 } 13475 n.r(t), n.d(t, { 13476 __DO_NOT_USE__ActionTypes: function() { 13477 return c; 13478 }, 13479 applyMiddleware: function() { 13480 return g; 13481 }, 13482 bindActionCreators: function() { 13483 return p; 13484 }, 13485 combineReducers: function() { 13486 return h; 13487 }, 13488 compose: function() { 13489 return m; 13490 }, 13491 createStore: function() { 13492 return d; 13493 } 13494 }); 13495 var a = "function" == typeof Symbol && Symbol.observable || "@@observable", l = function() { 13496 return Math.random().toString(36).substring(7).split("").join("."); 13497 }, c = { 13498 INIT: "@@redux/INIT" + l(), 13499 REPLACE: "@@redux/REPLACE" + l(), 13500 PROBE_UNKNOWN_ACTION: function() { 13501 return "@@redux/PROBE_UNKNOWN_ACTION" + l(); 13502 } 13503 }; 13504 function u(e) { 13505 if ("object" != typeof e || null === e) return !1; 13506 for (var t = e; null !== Object.getPrototypeOf(t); ) t = Object.getPrototypeOf(t); 13507 return Object.getPrototypeOf(e) === t; 13508 } 13509 function d(e, t, n) { 13510 var i; 13511 if ("function" == typeof t && "function" == typeof n || "function" == typeof n && "function" == typeof arguments[3]) throw new Error(s(0)); 13512 if ("function" == typeof t && void 0 === n && (n = t, t = void 0), void 0 !== n) { 13513 if ("function" != typeof n) throw new Error(s(1)); 13514 return n(d)(e, t); 13515 } 13516 if ("function" != typeof e) throw new Error(s(2)); 13517 var r = e, o = t, l = [], h = l, f = !1; 13518 function p() { 13519 h === l && (h = l.slice()); 13520 } 13521 function m() { 13522 if (f) throw new Error(s(3)); 13523 return o; 13524 } 13525 function g(e) { 13526 if ("function" != typeof e) throw new Error(s(4)); 13527 if (f) throw new Error(s(5)); 13528 var t = !0; 13529 return p(), h.push(e), function() { 13530 if (t) { 13531 if (f) throw new Error(s(6)); 13532 t = !1, p(); 13533 var n = h.indexOf(e); 13534 h.splice(n, 1), l = null; 13535 } 13536 }; 13537 } 13538 function v(e) { 13539 if (!u(e)) throw new Error(s(7)); 13540 if (void 0 === e.type) throw new Error(s(8)); 13541 if (f) throw new Error(s(9)); 13542 try { 13543 f = !0, o = r(o, e); 13544 } finally { 13545 f = !1; 13546 } 13547 for (var t = l = h, n = 0; n < t.length; n++) (0, t[n])(); 13548 return e; 13549 } 13550 function b(e) { 13551 if ("function" != typeof e) throw new Error(s(10)); 13552 r = e, v({ 13553 type: c.REPLACE 13554 }); 13555 } 13556 function y() { 13557 var e, t = g; 13558 return (e = { 13559 subscribe: function(e) { 13560 if ("object" != typeof e || null === e) throw new Error(s(11)); 13561 function n() { 13562 e.next && e.next(m()); 13563 } 13564 return n(), { 13565 unsubscribe: t(n) 13566 }; 13567 } 13568 })[a] = function() { 13569 return this; 13570 }, e; 13571 } 13572 return v({ 13573 type: c.INIT 13574 }), (i = { 13575 dispatch: v, 13576 subscribe: g, 13577 getState: m, 13578 replaceReducer: b 13579 })[a] = y, i; 13580 } 13581 function h(e) { 13582 for (var t = Object.keys(e), n = {}, i = 0; i < t.length; i++) { 13583 var r = t[i]; 13584 "function" == typeof e[r] && (n[r] = e[r]); 13585 } 13586 var o, a = Object.keys(n); 13587 try { 13588 !function(e) { 13589 Object.keys(e).forEach((function(t) { 13590 var n = e[t]; 13591 if (void 0 === n(void 0, { 13592 type: c.INIT 13593 })) throw new Error(s(12)); 13594 if (void 0 === n(void 0, { 13595 type: c.PROBE_UNKNOWN_ACTION() 13596 })) throw new Error(s(13)); 13597 })); 13598 }(n); 13599 } catch (e) { 13600 o = e; 13601 } 13602 return function(e, t) { 13603 if (void 0 === e && (e = {}), o) throw o; 13604 for (var i = !1, r = {}, l = 0; l < a.length; l++) { 13605 var c = a[l], u = n[c], d = e[c], h = u(d, t); 13606 if (void 0 === h) throw t && t.type, new Error(s(14)); 13607 r[c] = h, i = i || h !== d; 13608 } 13609 return (i = i || a.length !== Object.keys(e).length) ? r : e; 13610 }; 13611 } 13612 function f(e, t) { 13613 return function() { 13614 return t(e.apply(this, arguments)); 13615 }; 13616 } 13617 function p(e, t) { 13618 if ("function" == typeof e) return f(e, t); 13619 if ("object" != typeof e || null === e) throw new Error(s(16)); 13620 var n = {}; 13621 for (var i in e) { 13622 var r = e[i]; 13623 "function" == typeof r && (n[i] = f(r, t)); 13624 } 13625 return n; 13626 } 13627 function m() { 13628 for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 13629 return 0 === t.length ? function(e) { 13630 return e; 13631 } : 1 === t.length ? t[0] : t.reduce((function(e, t) { 13632 return function() { 13633 return e(t.apply(void 0, arguments)); 13634 }; 13635 })); 13636 } 13637 function g() { 13638 for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]; 13639 return function(e) { 13640 return function() { 13641 var n = e.apply(void 0, arguments), i = function() { 13642 throw new Error(s(15)); 13643 }, r = { 13644 getState: n.getState, 13645 dispatch: function() { 13646 return i.apply(void 0, arguments); 13647 } 13648 }, a = t.map((function(e) { 13649 return e(r); 13650 })); 13651 return i = m.apply(void 0, a)(n.dispatch), o(o({}, n), {}, { 13652 dispatch: i 13653 }); 13654 }; 13655 }; 13656 } 13657 } 13658 }, n = {}; 13659 function i(t) { 13660 var r = n[t];
13661 if (void 0 !== r) return r.exports; 13662 var o = n[t] = { 13663 exports: {} 13664 }; 13665 return e[t].call(o.exports, o, o.exports, i), o.exports; 13666 } 13667 i.d = function(e, t) { 13668 for (var n in t) i.o(t, n) && !i.o(e, n) && Object.defineProperty(e, n, { 13669 enumerable: !0, 13670 get: t[n] 13671 }); 13672 }, i.o = function(e, t) { 13673 return Object.prototype.hasOwnProperty.call(e, t); 13674 }, i.r = function(e) { 13675 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { 13676 value: "Module" 13677 }), Object.defineProperty(e, "__esModule", { 13678 value: !0 13679 }); 13680 }; 13681 var r = i(373); 13682 return r = r.default; 13683 }(); 13684 }, e.exports = n(); 13685 }).call(this, n(220)); 13686 }, function(e, t, n) { 13687 "use strict"; 13688 n.d(t, "a", (function() { 13689 return l; 13690 })), n.d(t, "b", (function() { 13691 return c; 13692 })); 13693 var i = n(6), r = n.n(i), o = (n(575), n(0)), s = n(79), a = n.n(s); 13694 function l() { 13695 const e = document.querySelectorAll('input[type="date"]:not(.datepicker)'), t = e => { 13696 const t = e.split(/[-/.]/); 13697 return t[0] && t[1] && t[2] ? `${t[2]}/${t[1]}/${t[0]}` : ""; 13698 }, n = e => /^[0-9]{2}[/.-][0-9]{2}[/.-][0-9]{4}$/.test(e), i = e => /^(\d{4})([/-])(\d{1,2})\2(\d{1,2})$/.test(e), r = e => { 13699 const t = e.value, n = e.parentNode.querySelector("input[type=hidden]"); 13700 n && (n.value = (e => { 13701 const t = e.split(/[-/.]/); 13702 return t[0] && t[1] && t[2] ? `${t[2]}-${t[1]}-${t[0]}` : ""; 13703 })(t)); 13704 }, s = (e, t) => { 13705 const n = e.parentNode.querySelector(".error"), i = t || " " + a.a.entryError; 13706 if (!n) { 13707 const t = e.getAttribute("id"); 13708 if (t) { 13709 const n = document.createElement("div"); 13710 n.setAttribute("id", t + "-relation"), n.classList.add("error"), n.classList.add("parsley-errors-list"), 13711 e.setAttribute("aria-describedby", t + "-relation"), o.insertAfter(n, e); 13712 const r = document.createElement("p"); 13713 r.classList.add("parsley-required"), r.innerHTML = " " + i, n.appendChild(r); 13714 } else console.error("This field has no id, it is required."); 13715 } 13716 }, l = e => { 13717 const t = e.parentNode.querySelector(".error"); 13718 t && (e.parentNode.removeChild(t), e.removeAttribute("aria-describedby")); 13719 }, c = (e, o) => { 13720 (e => { 13721 const t = e.hasAttribute("required"); 13722 return !(!t && (n(e.value) || "" === e.value) || t && "" !== e.value && n(e.value)); 13723 })(o) ? (e.preventDefault(), s(o)) : l(o), (e => { 13724 n(e.value) ? r(e) : i(e.value) && (e.value = t(e.value), r(e)); 13725 })(o); 13726 }, u = e => { 13727 const n = e.form, s = o.findAncestor(e, "ancestor"); 13728 if ((e => { 13729 const t = e.parentNode.querySelector("label"), n = t.getAttribute("for"); 13730 if (!t) return console.error("Error: label does not exist or not found"), !1; 13731 t.setAttribute("aria-live", "polite"), t.setAttribute("for", n + "-origin"), t.insertAdjacentHTML("beforeend", '<span class="helper"> (jj/mm/aaaa)</span>'); 13732 })(e), (e => { 13733 const t = e.name, n = e.id, i = e.classList.contains("dateselector"), r = document.createElement("input"); 13734 if (!n) return !1; 13735 document.getElementById(n).id = n + "-origin", r.type = "hidden", r.name = t, r.id = n, 13736 i && (e.classList.remove("dateselector"), r.classList.add("dateselector")), o.insertAfter(r, e), 13737 e.removeAttribute("name"); 13738 })(e), e.value && (e => { 13739 i(e.value) && (e.value = t(e.value), r(e)); 13740 })(e), n) n.addEventListener("submit", t => { 13741 c(t, e); 13742 }); else { 13743 if (!s) return !1; 13744 s.querySelector('button[type="submit"]').addEventListener("click", t => { 13745 c(t, e); 13746 }); 13747 } 13748 }; 13749 if ((() => { 13750 const e = document.createElement("input"); 13751 return e.setAttribute("type", "date"), e.value = "foo", "date" === e.type && "foo" !== e.value; 13752 })()) for (let t = 0; t < e.length; t++) {
13753 const n = e[t], i = n.form, r = o.findAncestor(n, "ancestor"), c = n.hasAttribute("required"); 13754 if (i) i.addEventListener("submit", e => { 13755 c && "" === n.value ? (e.preventDefault(), s(n, " " + a.a.fillFieldRequired)) : l(n); 13756 }); else if (r) { 13757 r.querySelector('button[type="submit"]').addEventListener("click", () => {}); 13758 } 13759 } else for (let t = 0; t < e.length; t++) { 13760 u(e[t]); 13761 } 13762 } 13763 function c() { 13764 r()(".time input").timepicker({ 13765 timeFormat: "H:i" 13766 }); 13767 } 13768 }, , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) { 13769 "use strict"; 13770 n(386); 13771 var i, r = (i = n(559)) && i.__esModule ? i : { 13772 default: i 13773 }; 13774 r.default._babelPolyfill && "undefined" != typeof console && console.warn && console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."), 13775 r.default._babelPolyfill = !0; 13776 }, function(e, t, n) { 13777 "use strict"; 13778 n(387), n(530), n(532), n(535), n(537), n(539), n(541), n(543), n(545), n(547), 13779 n(549), n(551), n(553), n(557); 13780 }, function(e, t, n) { 13781 n(388), n(391), n(392), n(393), n(394), n(395), n(396), n(397), n(398), n(399), 13782 n(400), n(401), n(402), n(403), n(404), n(405), n(406), n(407), n(408), n(409), 13783 n(410), n(411), n(412), n(413), n(414), n(415), n(416), n(417), n(418), n(419), 13784 n(420), n(421), n(422), n(423), n(424), n(425), n(426), n(427), n(428), n(429), 13785 n(430), n(431), n(432), n(434), n(435), n(436), n(437), n(438), n(439), n(440), 13786 n(441), n(442), n(443), n(444), n(445), n(446), n(447), n(448), n(449), n(450), 13787 n(451), n(452), n(453), n(454), n(455), n(456), n(457), n(458), n(459), n(460), 13788 n(461), n(462), n(463), n(464), n(465), n(466), n(467), n(469), n(470), n(472), 13789 n(473), n(474), n(475), n(476), n(477), n(478), n(480), n(481), n(482), n(483), 13790 n(484), n(485), n(486), n(487), n(488), n(489), n(490), n(491), n(492), n(215), 13791 n(493), n(265), n(494), n(266), n(495), n(496), n(497), n(498), n(267), n(501), 13792 n(502), n(503), n(504), n(505), n(506), n(507), n(508), n(509), n(510), n(511), 13793 n(512), n(513), n(514), n(515), n(516), n(517), n(518), n(519), n(520), n(521), 13794 n(522), n(523), n(524), n(525), n(526), n(527), n(528), n(529), e.exports = n(24); 13795 }, function(e, t, n) { 13796 "use strict"; 13797 var i = n(13), r = n(45), o = n(27), s = n(1), a = n(39), l = n(74).KEY, c = n(14), u = n(148), d = n(116), h = n(87), f = n(21), p = n(196), m = n(246), g = n(390), v = n(151), b = n(15), y = n(16), x = n(37), w = n(47), _ = n(73), S = n(86), E = n(91), C = n(249), T = n(58), k = n(150), M = n(28), A = n(89), O = T.f, P = M.f, I = C.f, L = i.Symbol, D = i.JSON, N = D && D.stringify, F = f("_hidden"), j = f("toPrimitive"), R = {}.propertyIsEnumerable, B = u("symbol-registry"), z = u("symbols"), H = u("op-symbol
13797s"), $ = Object.prototype, W = "function" == typeof L && !!k.f, q = i.QObject, V = !q || !q.prototype || !q.prototype.findChild, Y = o && c((function() { 13798 return 7 != E(P({}, "a", { 13799 get: function() { 13800 return P(this, "a", { 13801 value: 7 13802 }).a; 13803 } 13804 })).a; 13805 })) ? function(e, t, n) { 13806 var i = O($, t); 13807 i && delete $[t], P(e, t, n), i && e !== $ && P($, t, i); 13808 } : P, G = function(e) { 13809 var t = z[e] = E(L.prototype); 13810 return t._k = e, t; 13811 }, U = W && "symbol" == typeof L.iterator ? function(e) { 13812 return "symbol" == typeof e; 13813 } : function(e) { 13814 return e instanceof L; 13815 }, X = function(e, t, n) { 13816 return e === $ && X(H, t, n), b(e), t = _(t, !0), b(n), r(z, t) ? (n.enumerable ? (r(e, F) && e[F][t] && (e[F][t] = !1), 13817 n = E(n, { 13818 enumerable: S(0, !1) 13819 })) : (r(e, F) || P(e, F, S(1, {})), e[F][t] = !0), Y(e, t, n)) : P(e, t, n); 13820 }, K = function(e, t) { 13821 b(e); 13822 for (var n, i = g(t = w(t)), r = 0, o = i.length; o > r; ) X(e, n = i[r++], t[n]); 13823 return e; 13824 }, Z = function(e) { 13825 var t = R.call(this, e = _(e, !0)); 13826 return !(this === $ && r(z, e) && !r(H, e)) && (!(t || !r(this, e) || !r(z, e) || r(this, F) && this[F][e]) || t); 13827 }, J = function(e, t) { 13828 if (e = w(e), t = _(t, !0), e !== $ || !r(z, t) || r(H, t)) { 13829 var n = O(e, t); 13830 return !n || !r(z, t) || r(e, F) && e[F][t] || (n.enumerable = !0), n; 13831 } 13832 }, Q = function(e) { 13833 for (var t, n = I(w(e)), i = [], o = 0; n.length > o; ) r(z, t = n[o++]) || t == F || t == l || i.push(t); 13834 return i; 13835 }, ee = function(e) { 13836 for (var t, n = e === $, i = I(n ? H : w(e)), o = [], s = 0; i.length > s; ) !r(z, t = i[s++]) || n && !r($, t) || o.push(z[t]); 13837 return o; 13838 }; 13839 W || (a((L = function() { 13840 if (this instanceof L) throw TypeError("Symbol is not a constructor!"); 13841 var e = h(arguments.length > 0 ? arguments[0] : void 0), t = function(n) { 13842 this === $ && t.call(H, n), r(this, F) && r(this[F], e) && (this[F][e] = !1), Y(this, e, S(1, n)); 13843 }; 13844 return o && V && Y($, e, { 13845 configurable: !0, 13846 set: t 13847 }), G(e); 13848 }).prototype, "toString", (function() { 13849 return this._k; 13850 })), T.f = J, M.f = X, n(92).f = C.f = Q, n(131).f = Z, k.f = ee, o && !n(88) && a($, "propertyIsEnumerable", Z, !0), 13851 p.f = function(e) { 13852 return G(f(e)); 13853 }), s(s.G + s.W + s.F * !W, { 13854 Symbol: L 13855 }); 13856 for (var te = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), ne = 0; te.length > ne; ) f(te[ne++]); 13857 for (var ie = A(f.store), re = 0; ie.length > re; ) m(ie[re++]); 13858 s(s.S + s.F * !W, "Symbol", { 13859 for: function(e) { 13860 return r(B, e += "") ? B[e] : B[e] = L(e); 13861 }, 13862 keyFor: function(e) { 13863 if (!U(e)) throw TypeError(e + " is not a symbol!"); 13864 for (var t in B) if (B[t] === e) return t; 13865 }, 13866 useSetter: function() { 13867 V = !0; 13868 }, 13869 useSimple: function() { 13870 V = !1; 13871 } 13872 }), s(s.S + s.F * !W, "Object", { 13873 create: function(e, t) { 13874 return void 0 === t ? E(e) : K(E(e), t); 13875 }, 13876 defineProperty: X, 13877 defineProperties: K, 13878 getOwnPropertyDescriptor: J, 13879 getOwnPropertyNames: Q, 13880 getOwnPropertySymbols: ee 13881 }); 13882 var oe = c((function() { 13883 k.f(1); 13884 })); 13885 s(s.S + s.F * oe, "Object", { 13886 getOwnPropertySymbols: function(e) { 13887 return k.f(x(e)); 13888 } 13889 }), D && s(s.S + s.F * (!W || c((function() { 13890 var e = L(); 13891 return "[null]" != N([ e ]) || "{}" != N({ 13892 a: e 13893 }) || "{}" != N(Object(e)); 13894 }))), "JSON", {
13895 stringify: function(e) { 13896 for (var t, n, i = [ e ], r = 1; arguments.length > r; ) i.push(arguments[r++]); 13897 if (n = t = i[1], (y(t) || void 0 !== e) && !U(e)) return v(t) || (t = function(e, t) { 13898 if ("function" == typeof n && (t = n.call(this, e, t)), !U(t)) return t; 13899 }), i[1] = t, N.apply(D, i); 13900 } 13901 }), L.prototype[j] || n(46)(L.prototype, j, L.prototype.valueOf), d(L, "Symbol"), 13902 d(Math, "Math", !0), d(i.JSON, "JSON", !0); 13903 }, function(e, t, n) { 13904 e.exports = n(148)("native-function-to-string", Function.toString); 13905 }, function(e, t, n) { 13906 var i = n(89), r = n(150), o = n(131); 13907 e.exports = function(e) { 13908 var t = i(e), n = r.f; 13909 if (n) for (var s, a = n(e), l = o.f, c = 0; a.length > c; ) l.call(e, s = a[c++]) && t.push(s); 13910 return t; 13911 }; 13912 }, function(e, t, n) { 13913 var i = n(1); 13914 i(i.S, "Object", { 13915 create: n(91) 13916 }); 13917 }, function(e, t, n) { 13918 var i = n(1); 13919 i(i.S + i.F * !n(27), "Object", { 13920 defineProperty: n(28).f 13921 }); 13922 }, function(e, t, n) { 13923 var i = n(1); 13924 i(i.S + i.F * !n(27), "Object", { 13925 defineProperties: n(248) 13926 }); 13927 }, function(e, t, n) { 13928 var i = n(47), r = n(58).f; 13929 n(59)("getOwnPropertyDescriptor", (function() { 13930 return function(e, t) { 13931 return r(i(e), t); 13932 }; 13933 })); 13934 }, function(e, t, n) { 13935 var i = n(37), r = n(93); 13936 n(59)("getPrototypeOf", (function() { 13937 return function(e) { 13938 return r(i(e)); 13939 }; 13940 })); 13941 }, function(e, t, n) { 13942 var i = n(37), r = n(89); 13943 n(59)("keys", (function() { 13944 return function(e) { 13945 return r(i(e)); 13946 }; 13947 })); 13948 }, function(e, t, n) { 13949 n(59)("getOwnPropertyNames", (function() { 13950 return n(249).f; 13951 })); 13952 }, function(e, t, n) { 13953 var i = n(16), r = n(74).onFreeze; 13954 n(59)("freeze", (function(e) { 13955 return function(t) { 13956 return e && i(t) ? e(r(t)) : t; 13957 }; 13958 })); 13959 }, function(e, t, n) { 13960 var i = n(16), r = n(74).onFreeze; 13961 n(59)("seal", (function(e) { 13962 return function(t) { 13963 return e && i(t) ? e(r(t)) : t; 13964 }; 13965 })); 13966 }, function(e, t, n) { 13967 var i = n(16), r = n(74).onFreeze; 13968 n(59)("preventExtensions", (function(e) { 13969 return function(t) { 13970 return e && i(t) ? e(r(t)) : t; 13971 }; 13972 })); 13973 }, function(e, t, n) { 13974 var i = n(16); 13975 n(59)("isFrozen", (function(e) { 13976 return function(t) { 13977 return !i(t) || !!e && e(t); 13978 }; 13979 })); 13980 }, function(e, t, n) { 13981 var i = n(16); 13982 n(59)("isSealed", (function(e) { 13983 return function(t) { 13984 return !i(t) || !!e && e(t); 13985 }; 13986 })); 13987 }, function(e, t, n) { 13988 var i = n(16); 13989 n(59)("isExtensible", (function(e) { 13990 return function(t) { 13991 return !!i(t) && (!e || e(t)); 13992 }; 13993 })); 13994 }, function(e, t, n) { 13995 var i = n(1); 13996 i(i.S + i.F, "Object", { 13997 assign: n(250) 13998 }); 13999 }, function(e, t, n) { 14000 var i = n(1); 14001 i(i.S, "Object", { 14002 is: n(251) 14003 }); 14004 }, function(e, t, n) { 14005 var i = n(1); 14006 i(i.S, "Object", { 14007 setPrototypeOf: n(200).set 14008 }); 14009 }, function(e, t, n) { 14010 "use strict"; 14011 var i = n(132), r = {}; 14012 r[n(21)("toStringTag")] = "z", r + "" != "[object z]" && n(39)(Object.prototype, "toString", (function() { 14013 return "[object " + i(this) + "]"; 14014 }), !0); 14015 }, function(e, t, n) { 14016 var i = n(1); 14017 i(i.P, "Function", { 14018 bind: n(252) 14019 }); 14020 }, function(e, t, n) { 14021 var i = n(28).f, r = Function.prototype, o = /^\s*function ([^ (]*)/; 14022 "name" in r || n(27) && i(r, "name", { 14023 configurable: !0, 14024 get: function() { 14025 try {
14026 return ("" + this).match(o)[1]; 14027 } catch (e) { 14028 return ""; 14029 } 14030 } 14031 }); 14032 }, function(e, t, n) { 14033 "use strict"; 14034 var i = n(16), r = n(93), o = n(21)("hasInstance"), s = Function.prototype; 14035 o in s || n(28).f(s, o, { 14036 value: function(e) { 14037 if ("function" != typeof this || !i(e)) return !1; 14038 if (!i(this.prototype)) return e instanceof this; 14039 for (;e = r(e); ) if (this.prototype === e) return !0; 14040 return !1; 14041 } 14042 }); 14043 }, function(e, t, n) { 14044 var i = n(1), r = n(254); 14045 i(i.G + i.F * (parseInt != r), { 14046 parseInt: r 14047 }); 14048 }, function(e, t, n) { 14049 var i = n(1), r = n(255); 14050 i(i.G + i.F * (parseFloat != r), { 14051 parseFloat: r 14052 }); 14053 }, function(e, t, n) { 14054 "use strict"; 14055 var i = n(13), r = n(45), o = n(67), s = n(202), a = n(73), l = n(14), c = n(92).f, u = n(58).f, d = n(28).f, h = n(117).trim, f = i.Number, p = f, m = f.prototype, g = "Number" == o(n(91)(m)), v = "trim" in String.prototype, b = function(e) { 14056 var t = a(e, !1); 14057 if ("string" == typeof t && t.length > 2) { 14058 var n, i, r, o = (t = v ? t.trim() : h(t, 3)).charCodeAt(0); 14059 if (43 === o || 45 === o) { 14060 if (88 === (n = t.charCodeAt(2)) || 120 === n) return NaN; 14061 } else if (48 === o) { 14062 switch (t.charCodeAt(1)) { 14063 case 66: 14064 case 98: 14065 i = 2, r = 49; 14066 break; 14067 14068 case 79: 14069 case 111: 14070 i = 8, r = 55; 14071 break; 14072 14073 default: 14074 return +t; 14075 } 14076 for (var s, l = t.slice(2), c = 0, u = l.length; c < u; c++) if ((s = l.charCodeAt(c)) < 48 || s > r) return NaN; 14077 return parseInt(l, i); 14078 } 14079 } 14080 return +t; 14081 }; 14082 if (!f(" 0o1") || !f("0b1") || f("+0x1")) { 14083 f = function(e) { 14084 var t = arguments.length < 1 ? 0 : e, n = this; 14085 return n instanceof f && (g ? l((function() { 14086 m.valueOf.call(n); 14087 })) : "Number" != o(n)) ? s(new p(b(t)), n, f) : b(t); 14088 }; 14089 for (var y, x = n(27) ? c(p) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","), w = 0; x.length > w; w++) r(p, y = x[w]) && !r(f, y) && d(f, y, u(p, y)); 14090 f.prototype = m, m.constructor = f, n(39)(i, "Number", f); 14091 } 14092 }, function(e, t, n) { 14093 "use strict"; 14094 var i = n(1), r = n(57), o = n(256), s = n(203), a = 1..toFixed, l = Math.floor, c = [ 0, 0, 0, 0, 0, 0 ], u = "Number.toFixed: incorrect invocation!", d = function(e, t) { 14095 for (var n = -1, i = t; ++n < 6; ) i += e * c[n], c[n] = i % 1e7, i = l(i / 1e7); 14096 }, h = function(e) { 14097 for (var t = 6, n = 0; --t >= 0; ) n += c[t], c[t] = l(n / e), n = n % e * 1e7; 14098 }, f = function() { 14099 for (var e = 6, t = ""; --e >= 0; ) if ("" !== t || 0 === e || 0 !== c[e]) { 14100 var n = String(c[e]); 14101 t = "" === t ? n : t + s.call("0", 7 - n.length) + n; 14102 } 14103 return t; 14104 }, p = function(e, t, n) { 14105 return 0 === t ? n : t % 2 == 1 ? p(e, t - 1, n * e) : p(e * e, t / 2, n); 14106 }; 14107 i(i.P + i.F * (!!a && ("0.000" !== 8e-5.toFixed(3) || "1" !== .9.toFixed(0) || "1.25" !== 1.255.toFixed(2) || "1000000000000000128" !== (0xde0b6b3a7640080).toFixed(0)) || !n(14)((function() { 14108 a.call({}); 14109 }))), "Number", { 14110 toFixed: function(e) { 14111 var t, n, i, a, l = o(this, u), c = r(e), m = "", g = "0"; 14112 if (c < 0 || c > 20) throw RangeError(u); 14113 if (l != l) return "NaN"; 14114 if (l <= -1e21 || l >= 1e21) return String(l); 14115 if (l < 0 && (m = "-", l = -l), l > 1e-21) if (n = (t = function(e) { 14116 for (var t = 0, n = e; n >= 4096; ) t += 12, n /= 4096; 14117 for (;n >= 2; ) t += 1, n /= 2; 14118 return t; 14119 }(l * p(2, 69, 1)) - 69) < 0 ? l * p(2, -t, 1) : l / p(2, t, 1), n *= 4503599627370496, 14120 (t = 52 - t) > 0) { 14121 for (d(0, n), i = c; i >= 7; ) d(1e7, 0), i -= 7;
14122 for (d(p(10, i, 1), 0), i = t - 1; i >= 23; ) h(1 << 23), i -= 23; 14123 h(1 << i), d(1, 1), h(2), g = f(); 14124 } else d(0, n), d(1 << -t, 0), g = f() + s.call("0", c); 14125 return g = c > 0 ? m + ((a = g.length) <= c ? "0." + s.call("0", c - a) + g : g.slice(0, a - c) + "." + g.slice(a - c)) : m + g; 14126 } 14127 }); 14128 }, function(e, t, n) { 14129 "use strict"; 14130 var i = n(1), r = n(14), o = n(256), s = 1..toPrecision; 14131 i(i.P + i.F * (r((function() { 14132 return "1" !== s.call(1, void 0); 14133 })) || !r((function() { 14134 s.call({}); 14135 }))), "Number", { 14136 toPrecision: function(e) { 14137 var t = o(this, "Number#toPrecision: incorrect invocation!"); 14138 return void 0 === e ? s.call(t) : s.call(t, e); 14139 } 14140 }); 14141 }, function(e, t, n) { 14142 var i = n(1); 14143 i(i.S, "Number", { 14144 EPSILON: Math.pow(2, -52) 14145 }); 14146 }, function(e, t, n) { 14147 var i = n(1), r = n(13).isFinite; 14148 i(i.S, "Number", { 14149 isFinite: function(e) { 14150 return "number" == typeof e && r(e); 14151 } 14152 }); 14153 }, function(e, t, n) { 14154 var i = n(1); 14155 i(i.S, "Number", { 14156 isInteger: n(257) 14157 }); 14158 }, function(e, t, n) { 14159 var i = n(1); 14160 i(i.S, "Number", { 14161 isNaN: function(e) { 14162 return e != e; 14163 } 14164 }); 14165 }, function(e, t, n) { 14166 var i = n(1), r = n(257), o = Math.abs; 14167 i(i.S, "Number", { 14168 isSafeInteger: function(e) { 14169 return r(e) && o(e) <= 9007199254740991; 14170 } 14171 }); 14172 }, function(e, t, n) { 14173 var i = n(1); 14174 i(i.S, "Number", { 14175 MAX_SAFE_INTEGER: 9007199254740991 14176 }); 14177 }, function(e, t, n) { 14178 var i = n(1); 14179 i(i.S, "Number", { 14180 MIN_SAFE_INTEGER: -9007199254740991 14181 }); 14182 }, function(e, t, n) { 14183 var i = n(1), r = n(255); 14184 i(i.S + i.F * (Number.parseFloat != r), "Number", { 14185 parseFloat: r 14186 }); 14187 }, function(e, t, n) { 14188 var i = n(1), r = n(254); 14189 i(i.S + i.F * (Number.parseInt != r), "Number", { 14190 parseInt: r 14191 }); 14192 }, function(e, t, n) { 14193 var i = n(1), r = n(258), o = Math.sqrt, s = Math.acosh; 14194 i(i.S + i.F * !(s && 710 == Math.floor(s(Number.MAX_VALUE)) && s(1 / 0) == 1 / 0), "Math", { 14195 acosh: function(e) { 14196 return (e = +e) < 1 ? NaN : e > 94906265.62425156 ? Math.log(e) + Math.LN2 : r(e - 1 + o(e - 1) * o(e + 1)); 14197 } 14198 }); 14199 }, function(e, t, n) { 14200 var i = n(1), r = Math.asinh; 14201 i(i.S + i.F * !(r && 1 / r(0) > 0), "Math", { 14202 asinh: function e(t) { 14203 return isFinite(t = +t) && 0 != t ? t < 0 ? -e(-t) : Math.log(t + Math.sqrt(t * t + 1)) : t; 14204 } 14205 }); 14206 }, function(e, t, n) { 14207 var i = n(1), r = Math.atanh; 14208 i(i.S + i.F * !(r && 1 / r(-0) < 0), "Math", { 14209 atanh: function(e) { 14210 return 0 == (e = +e) ? e : Math.log((1 + e) / (1 - e)) / 2; 14211 } 14212 }); 14213 }, function(e, t, n) { 14214 var i = n(1), r = n(204); 14215 i(i.S, "Math", { 14216 cbrt: function(e) { 14217 return r(e = +e) * Math.pow(Math.abs(e), 1 / 3); 14218 } 14219 }); 14220 }, function(e, t, n) { 14221 var i = n(1); 14222 i(i.S, "Math", { 14223 clz32: function(e) { 14224 return (e >>>= 0) ? 31 - Math.floor(Math.log(e + .5) * Math.LOG2E) : 32; 14225 } 14226 }); 14227 }, function(e, t, n) { 14228 var i = n(1), r = Math.exp; 14229 i(i.S, "Math", { 14230 cosh: function(e) { 14231 return (r(e = +e) + r(-e)) / 2; 14232 } 14233 }); 14234 }, function(e, t, n) { 14235 var i = n(1), r = n(205); 14236 i(i.S + i.F * (r != Math.expm1), "Math", { 14237 expm1: r 14238 }); 14239 }, function(e, t, n) { 14240 var i = n(1); 14241 i(i.S, "Math", { 14242 fround: n(433) 14243 }); 14244 }, function(e, t, n) { 14245 var i = n(204), r = Math.pow, o = r(2, -52), s = r(2, -23), a = r(2, 127) * (2 - s), l = r(2, -126); 14246 e.exports = Math.fround || function(e) { 14247 var t, n, r = Math.abs(e), c = i(e); 14248 return r < l ? c * (r / l / s + 1 / o - 1 / o) * l * s : (n = (t = (1 + s / o) * r) - (t - r)) > a || n != n ? c * (1 / 0) : c * n; 14249 }; 14250 }, function(e, t, n) { 14251 var i = n(1), r = Math.abs; 14252 i(i.S, "Math", { 14253 hypot: function(e, t) { 14254 for (var n, i, o = 0, s = 0, a = arguments.length, l = 0; s < a; ) l < (n = r(arguments[s++])) ? (o = o * (i = l / n) * i + 1, 14255 l = n) : o += n > 0 ? (i = n / l) * i : n; 14256 return l === 1 / 0 ? 1 / 0 : l * Math.sqrt(o); 14257 } 14258 }); 14259 }, function(e, t, n) { 14260 var i = n(1), r = Math.imul; 14261 i(i.S + i.F * n(14)((function() { 14262 return -5 != r(4294967295, 5) || 2 != r.length; 14263 })), "Math", { 14264 imul: function(e, t) { 14265 var n = +e, i = +t, r = 65535 & n, o = 65535 & i; 14266 return 0 | r * o + ((65535 & n >>> 16) * o + r * (65535 & i >>> 16) << 16 >>> 0); 14267 } 14268 }); 14269 }, function(e, t, n) { 14270 var i = n(1); 14271 i(i.S, "Math", { 14272 log10: function(e) { 14273 return Math.log(e) * Math.LOG10E; 14274 } 14275 }); 14276 }, function(e, t, n) { 14277 var i = n(1); 14278 i(i.S, "Math", { 14279 log1p: n(258) 14280 }); 14281 }, function(e, t, n) { 14282 var i = n(1); 14283 i(i.S, "Math", { 14284 log2: function(e) { 14285 return Math.log(e) / Math.LN2; 14286 } 14287 }); 14288 }, function(e, t, n) { 14289 var i = n(1); 14290 i(i.S, "Math", { 14291 sign: n(204) 14292 }); 14293 }, function(e, t, n) { 14294 var i = n(1), r = n(205), o = Math.exp; 14295 i(i.S + i.F * n(14)((function() { 14296 return -2e-17 != !Math.sinh(-2e-17); 14297 })), "Math", { 14298 sinh: function(e) { 14299 return Math.abs(e = +e) < 1 ? (r(e) - r(-e)) / 2 : (o(e - 1) - o(-e - 1)) * (Math.E / 2); 14300 } 14301 }); 14302 }, function(e, t, n) { 14303 var i = n(1), r = n(205), o = Math.exp; 14304 i(i.S, "Math", { 14305 tanh: function(e) { 14306 var t = r(e = +e), n = r(-e); 14307 return t == 1 / 0 ? 1 : n == 1 / 0 ? -1 : (t - n) / (o(e) + o(-e)); 14308 } 14309 }); 14310 }, function(e, t, n) { 14311 var i = n(1); 14312 i(i.S, "Math", { 14313 trunc: function(e) { 14314 return (e >
14314 0 ? Math.floor : Math.ceil)(e); 14315 } 14316 }); 14317 }, function(e, t, n) { 14318 var i = n(1), r = n(90), o = String.fromCharCode, s = String.fromCodePoint; 14319 i(i.S + i.F * (!!s && 1 != s.length), "String", { 14320 fromCodePoint: function(e) { 14321 for (var t, n = [], i = arguments.length, s = 0; i > s; ) { 14322 if (t = +arguments[s++], r(t, 1114111) !== t) throw RangeError(t + " is not a valid code point"); 14323 n.push(t < 65536 ? o(t) : o(55296 + ((t -= 65536) >> 10), t % 1024 + 56320)); 14324 } 14325 return n.join(""); 14326 } 14327 }); 14328 }, function(e, t, n) { 14329 var i = n(1), r = n(47), o = n(22); 14330 i(i.S, "String", { 14331 raw: function(e) { 14332 for (var t = r(e.raw), n = o(t.length), i = arguments.length, s = [], a = 0; n > a; ) s.push(String(t[a++])), 14333 a < i && s.push(String(arguments[a])); 14334 return s.join(""); 14335 } 14336 }); 14337 }, function(e, t, n) { 14338 "use strict"; 14339 n(117)("trim", (function(e) { 14340 return function() { 14341 return e(this, 3); 14342 }; 14343 })); 14344 }, function(e, t, n) { 14345 "use strict"; 14346 var i = n(206)(!0); 14347 n(207)(String, "String", (function(e) { 14348 this._t = String(e), this._i = 0; 14349 }), (function() { 14350 var e, t = this._t, n = this._i; 14351 return n >= t.length ? { 14352 value: void 0, 14353 done: !0 14354 } : (e = i(t, n), this._i += e.length, { 14355 value: e, 14356 done: !1 14357 }); 14358 })); 14359 }, function(e, t, n) { 14360 "use strict"; 14361 var i = n(1), r = n(206)(!1); 14362 i(i.P, "String", { 14363 codePointAt: function(e) { 14364 return r(this, e); 14365 } 14366 }); 14367 }, function(e, t, n) { 14368 "use strict"; 14369 var i = n(1), r = n(22), o = n(208), s = "".endsWith; 14370 i(i.P + i.F * n(210)("endsWith"), "String", { 14371 endsWith: function(e) { 14372 var t = o(this, e, "endsWith"), n = arguments.length > 1 ? arguments[1] : void 0, i = r(t.length), a = void 0 === n ? i : Math.min(r(n), i), l = String(e); 14373 return s ? s.call(t, l, a) : t.slice(a - l.length, a) === l; 14374 } 14375 }); 14376 }, function(e, t, n) { 14377 "use strict"; 14378 var i = n(1), r = n(208); 14379 i(i.P + i.F * n(210)("includes"), "String", { 14380 includes: function(e) { 14381 return !!~r(this, e, "includes").indexOf(e, arguments.length > 1 ? arguments[1] : void 0); 14382 } 14383 }); 14384 }, function(e, t, n) { 14385 var i = n(1); 14386 i(i.P, "String", { 14387 repeat: n(203) 14388 }); 14389 }, function(e, t, n) { 14390 "use strict"; 14391 var i = n(1), r = n(22), o = n(208), s = "".startsWith; 14392 i(i.P + i.F * n(210)("startsWith"), "String", { 14393 startsWith: function(e) { 14394 var t = o(this, e, "startsWith"), n = r(Math.min(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = String(e); 14395 return s ? s.call(t, i, n) : t.slice(n, n + i.length) === i; 14396 } 14397 }); 14398 }, function(e, t, n) { 14399 "use strict"; 14400 n(40)("anchor", (function(e) { 14401 return function(t) { 14402 return e(this, "a", "name", t); 14403 }; 14404 })); 14405 }, function(e, t, n) { 14406 "use strict"; 14407 n(40)("big", (function(e) { 14408 return function() { 14409 return e(this, "big", "", ""); 14410 }; 14411 })); 14412 }, function(e, t, n) { 14413 "use strict"; 14414 n(40)("blink", (function(e) { 14415 return function() { 14416 return e(this, "blink", "", ""); 14417 }; 14418 })); 14419 }, function(e, t, n) { 14420 "use strict"; 14421 n(40)("bold", (function(e) { 14422 return function() { 14423 return e(this, "b", "", ""); 14424 }; 14425 })); 14426 }, function(e, t, n) { 14427 "use strict"; 14428 n(40)("fixed", (function(e) { 14429 return function() { 14430 return e(this, "tt", "", ""); 14431 }; 14432 })); 14433 }, function(e, t, n) { 14434 "use strict"; 14435 n(40)("fontcolor", (function(e) { 14436 return function(t) { 14437 return e(this, "font", "color", t); 14438 }; 14439 })); 14440 }, function(e, t, n) { 14441 "use strict"; 14442 n(40)("fontsize", (function(e) { 14443 return function(t) { 14444 return e(this, "font", "size", t); 14445 }; 14446 })); 14447 }, function(e, t, n) { 14448 "use strict"; 14449 n(40)("italics", (function(e) { 14450 return function() { 14451 return e(this, "i", "", ""); 14452 }; 14453 })); 14454 }, function(e, t, n) { 14455 "use strict"; 14456 n(40)("link", (function(e) { 14457 return function(t) { 14458 return e(this, "a", "href", t); 14459 }; 14460 })); 14461 }, function(e, t, n) { 14462 "use strict"; 14463 n(40)("small", (function(e) { 14464 return function() { 14465 return e(this, "small", "", ""); 14466 }; 14467 })); 14468 }, function(e, t, n) { 14469 "use strict"; 14470 n(40)("strike", (function(e) { 14471 return function() { 14472 return e(this, "strike", "", ""); 14473 }; 14474 })); 14475 }, function(e, t, n) { 14476 "use strict"; 14477 n(40)("sub", (function(e) { 14478 return function() { 14479 return e(this, "sub", "", ""); 14480 }; 14481 })); 14482 }, function(e, t, n) { 14483 "use strict"; 14484 n(40)("sup", (function(e) { 14485 return function() { 14486 return e(this, "sup", "", ""); 14487 }; 14488 })); 14489 }, function(e, t, n) { 14490 var i = n(1); 14491 i(i.S, "Date", { 14492 now: function() { 14493 return (new Date).getTime(); 14494 } 14495 }); 14496 }, function(e, t, n) { 14497 "use strict"; 14498 var i = n(1), r = n(37), o = n(73); 14499 i(i.P + i.F * n(14)((function() { 14500 return null !== new Date(NaN).toJSON() || 1 !== Date.prototype.toJSON.call({ 14501 toISOString: function() { 14502 return 1; 14503 } 14504 }); 14505 })), "Date", { 14506 toJSON: function(e) { 14507 var t = r(this), n = o(t); 14508 return "number" != typeof n || isFinite(n) ? t.toISOString() : null; 14509 } 14510 }); 14511 }, function(e, t, n) { 14512 var i = n(1), r = n(468); 14513 i(i.P + i.F * (Date.prototype.toISOString !== r), "Date", { 14514 toISOString: r 14515 }); 14516 }, function(e, t, n) { 14517 "use strict"; 14518 var i = n(14), r = Date.prototype.getTime, o = Date.prototype.toISOString, s = function(e) { 14519 return e > 9 ? e : "0" + e; 14520 }; 14521 e.exports = i((function() { 14522 return "0385-07-25T07:06:39.999Z" != o.call(new Date(-50000000000001)); 14523 })) || !i((function() { 14524 o.call(new Date(NaN)); 14525 })) ? function() { 14526 if (!isFinite(r.call(this))) throw RangeError("Invalid time value"); 14527 var e = this, t = e.getUTCFullYear(), n = e.getUTCMilliseconds(), i = t < 0 ? "-" : t > 9999 ? "+" : ""; 14528 return i + ("00000" + Math.abs(t)).slice(i ? -6 : -4) + "-" + s(e.getUTCMonth() + 1) + "-" + s(e.getUTCDate()) + "T" + s(e.getUTCHours()) + ":" + s(e.getUTCMinutes()) + ":" + s(e.getUTCSeconds()) + "." + (n > 99 ? n : "0" + s(n)) + "Z"; 14529 } : o; 14530 }, function(e, t, n) { 14531 var i = Date.prototype, r = i.toString, o = i.getTime; 14532 new Date(NaN) + "" != "Invalid Date" && n(39)(i, "toString", (function() { 14533 var e = o.call(this); 14534 return e == e ? r.call(this) : "Invalid Date"; 14535 })); 14536 }, function(e, t, n) { 14537 var i = n(21)("toPrimitive"), r = Date.prototype; 14538 i in r || n(46)(r, i, n(471)); 14539 }, function(e, t, n) { 14540 "use strict"; 14541 var i = n(15), r = n(73); 14542 e.exports = function(e) {
14543 if ("string" !== e && "number" !== e && "default" !== e) throw TypeError("Incorrect hint"); 14544 return r(i(this), "number" != e); 14545 }; 14546 }, function(e, t, n) { 14547 var i = n(1); 14548 i(i.S, "Array", { 14549 isArray: n(151) 14550 }); 14551 }, function(e, t, n) { 14552 "use strict"; 14553 var i = n(55), r = n(1), o = n(37), s = n(260), a = n(211), l = n(22), c = n(212), u = n(213); 14554 r(r.S + r.F * !n(152)((function(e) { 14555 Array.from(e); 14556 })), "Array", { 14557 from: function(e) { 14558 var t, n, r, d, h = o(e), f = "function" == typeof this ? this : Array, p = arguments.length, m = p > 1 ? arguments[1] : void 0, g = void 0 !== m, v = 0, b = u(h); 14559 if (g && (m = i(m, p > 2 ? arguments[2] : void 0, 2)), null == b || f == Array && a(b)) for (n = new f(t = l(h.length)); t > v; v++) c(n, v, g ? m(h[v], v) : h[v]); else for (d = b.call(h), 14560 n = new f; !(r = d.next()).done; v++) c(n, v, g ? s(d, m, [ r.value, v ], !0) : r.value); 14561 return n.length = v, n; 14562 } 14563 }); 14564 }, function(e, t, n) { 14565 "use strict"; 14566 var i = n(1), r = n(212); 14567 i(i.S + i.F * n(14)((function() { 14568 function e() {} 14569 return !(Array.of.call(e) instanceof e); 14570 })), "Array", { 14571 of: function() { 14572 for (var e = 0, t = arguments.length, n = new ("function" == typeof this ? this : Array)(t); t > e; ) r(n, e, arguments[e++]); 14573 return n.length = t, n; 14574 } 14575 }); 14576 }, function(e, t, n) { 14577 "use strict"; 14578 var i = n(1), r = n(47), o = [].join; 14579 i(i.P + i.F * (n(130) != Object || !n(50)(o)), "Array", { 14580 join: function(e) { 14581 return o.call(r(this), void 0 === e ? "," : e); 14582 } 14583 }); 14584 }, function(e, t, n) { 14585 "use strict"; 14586 var i = n(1), r = n(199), o = n(67), s = n(90), a = n(22), l = [].slice; 14587 i(i.P + i.F * n(14)((function() { 14588 r && l.call(r); 14589 })), "Array", { 14590 slice: function(e, t) { 14591 var n = a(this.length), i = o(this); 14592 if (t = void 0 === t ? n : t, "Array" == i) return l.call(this, e, t); 14593 for (var r = s(e, n), c = s(t, n), u = a(c - r), d = new Array(u), h = 0; h < u; h++) d[h] = "String" == i ? this.charAt(r + h) : this[r + h]; 14594 return d; 14595 } 14596 }); 14597 }, function(e, t, n) { 14598 "use strict"; 14599 var i = n(1), r = n(56), o = n(37), s = n(14), a = [].sort, l = [ 1, 2, 3 ]; 14600 i(i.P + i.F * (s((function() { 14601 l.sort(void 0); 14602 })) || !s((function() { 14603 l.sort(null); 14604 })) || !n(50)(a)), "Array", { 14605 sort: function(e) { 14606 return void 0 === e ? a.call(o(this)) : a.call(o(this), r(e)); 14607 } 14608 }); 14609 }, function(e, t, n) { 14610 "use strict"; 14611 var i = n(1), r = n(60)(0), o = n(50)([].forEach, !0); 14612 i(i.P + i.F * !o, "Array", { 14613 forEach: function(e) { 14614 return r(this, e, arguments[1]); 14615 } 14616 }); 14617 }, function(e, t, n) { 14618 var i = n(16), r = n(151), o = n(21)("species"); 14619 e.exports = function(e) { 14620 var t; 14621 return r(e) && ("function" != typeof (t = e.constructor) || t !== Array && !r(t.prototype) || (t = void 0), 14622 i(t) && null === (t = t[o]) && (t = void 0)), void 0 === t ? Array : t; 14623 }; 14624 }, function(e, t, n) { 14625 "use strict"; 14626 var i = n(1), r = n(60)(1); 14627 i(i.P + i.F * !n(50)([].map, !0), "Array", { 14628 map: function(e) { 14629 return r(this, e, arguments[1]); 14630 } 14631 }); 14632 }, function(e, t, n) { 14633 "use strict"; 14634 var i = n(1), r = n(60)(2); 14635 i(i.P + i.F * !n(50)([].filter, !0), "Array", { 14636 filter: function(e) { 14637 return r(this, e, arguments[1]); 14638 } 14639 }); 14640 }, function(e, t, n) { 14641 "use strict"; 14642 var i = n(1), r = n(60)(3); 14643 i(i.P + i.F * !n(50)([].some, !0), "Array", { 14644 some: function(e) { 14645 return r(this, e, arguments[1]); 14646 } 14647 }); 14648 }, function(e, t, n) { 14649 "use strict"; 14650 var i = n(1), r = n(60)(4); 14651 i(i.P + i.F * !n(50)([].every, !0), "Array", { 14652 every: function(e) { 14653 return r(this, e, arguments[1]); 14654 } 14655 }); 14656 }, function(e, t, n) { 14657 "use strict"; 14658 var i = n(1), r = n(262); 14659 i(i.P + i.F * !n(50)([].reduce, !0), "Array", { 14660 reduce: function(e) { 14661 return r(this, e, arguments.length, arguments[1], !1); 14662 } 14663 }); 14664 }, function(e, t, n) { 14665 "use strict"; 14666 var i = n(1), r = n(262); 14667 i(i.P + i.F * !n(50)([].reduceRight, !0), "Array", { 14668 reduceRight: function(e) { 14669 return r(this, e, arguments.length, arguments[1], !0); 14670 } 14671 }); 14672 }, function(e, t, n) { 14673 "use strict"; 14674 var i = n(1), r = n(149)(!1), o = [].indexOf, s = !!o && 1 / [ 1 ].indexOf(1, -0) < 0; 14675 i(i.P + i.F * (s || !n(50)(o)), "Array", { 14676 indexOf: function(e) { 14677 return s ? o.apply(this, arguments) || 0 : r(this, e, arguments[1]); 14678 } 14679 }); 14680 }, function(e, t, n) { 14681 "use strict"; 14682 var i = n(1), r = n(47), o = n(57), s = n(22), a = [].lastIndexOf, l = !!a && 1 / [ 1 ].lastIndexOf(1, -0) < 0;
14683 i(i.P + i.F * (l || !n(50)(a)), "Array", { 14684 lastIndexOf: function(e) { 14685 if (l) return a.apply(this, arguments) || 0; 14686 var t = r(this), n = s(t.length), i = n - 1; 14687 for (arguments.length > 1 && (i = Math.min(i, o(arguments[1]))), i < 0 && (i = n + i); i >= 0; i--) if (i in t && t[i] === e) return i || 0; 14688 return -1; 14689 } 14690 }); 14691 }, function(e, t, n) { 14692 var i = n(1); 14693 i(i.P, "Array", { 14694 copyWithin: n(263) 14695 }), n(94)("copyWithin"); 14696 }, function(e, t, n) { 14697 var i = n(1); 14698 i(i.P, "Array", { 14699 fill: n(214) 14700 }), n(94)("fill"); 14701 }, function(e, t, n) { 14702 "use strict"; 14703 var i = n(1), r = n(60)(5), o = !0; 14704 "find" in [] && Array(1).find((function() { 14705 o = !1; 14706 })), i(i.P + i.F * o, "Array", { 14707 find: function(e) { 14708 return r(this, e, arguments.length > 1 ? arguments[1] : void 0); 14709 } 14710 }), n(94)("find"); 14711 }, function(e, t, n) { 14712 "use strict"; 14713 var i = n(1), r = n(60)(6), o = "findIndex", s = !0; 14714 o in [] && Array(1)[o]((function() { 14715 s = !1; 14716 })), i(i.P + i.F * s, "Array", { 14717 findIndex: function(e) { 14718 return r(this, e, arguments.length > 1 ? arguments[1] : void 0); 14719 } 14720 }), n(94)(o); 14721 }, function(e, t, n) { 14722 n(119)("Array"); 14723 }, function(e, t, n) { 14724 var i = n(13), r = n(202), o = n(28).f, s = n(92).f, a = n(209), l = n(153), c = i.RegExp, u = c, d = c.prototype, h = /a/g, f = /a/g, p = new c(h) !== h; 14725 if (n(27) && (!p || n(14)((function() { 14726 return f[n(21)("match")] = !1, c(h) != h || c(f) == f || "/a/i" != c(h, "i"); 14727 })))) { 14728 c = function(e, t) { 14729 var n = this instanceof c, i = a(e), o = void 0 === t; 14730 return !n && i && e.constructor === c && o ? e : r(p ? new u(i && !o ? e.source : e, t) : u((i = e instanceof c) ? e.source : e, i && o ? l.call(e) : t), n ? this : d, c); 14731 }; 14732 for (var m = function(e) { 14733 e in c || o(c, e, { 14734 configurable: !0, 14735 get: function() { 14736 return u[e]; 14737 }, 14738 set: function(t) { 14739 u[e] = t; 14740 } 14741 }); 14742 }, g = s(u), v = 0; g.length > v; ) m(g[v++]); 14743 d.constructor = c, c.prototype = d, n(39)(i, "RegExp", c); 14744 } 14745 n(119)("RegExp"); 14746 }, function(e, t, n) { 14747 "use strict"; 14748 n(266); 14749 var i = n(15), r = n(153), o = n(27), s = /./.toString, a = function(e) { 14750 n(39)(RegExp.prototype, "toString", e, !0); 14751 }; 14752 n(14)((function() { 14753 return "/a/b" != s.call({ 14754 source: "a", 14755 flags: "b" 14756 }); 14757 })) ? a((function() { 14758 var e = i(this); 14759 return "/".concat(e.source, "/", "flags" in e ? e.flags : !o && e instanceof RegExp ? r.call(e) : void 0); 14760 })) : "toString" != s.name && a((function() { 14761 return s.call(this); 14762 })); 14763 }, function(e, t, n) { 14764 "use strict"; 14765 var i = n(15), r = n(22), o = n(217), s = n(154); 14766 n(155)("match", 1, (function(e, t, n, a) { 14767 return [ function(n) { 14768 var i = e(this), r = null == n ? void 0 : n[t]; 14769 return void 0 !== r ? r.call(n, i) : new RegExp(n)[t](String(i)); 14770 }, function(e) { 14771 var t = a(n, e, this); 14772 if (t.done) return t.value; 14773 var l = i(e), c = String(this); 14774 if (!l.global) return s(l, c); 14775 var u = l.unicode; 14776 l.lastIndex = 0; 14777 for (var d, h = [], f = 0; null !== (d = s(l, c)); ) { 14778 var p = String(d[0]); 14779 h[f] = p, "" === p && (l.lastIndex = o(c, r(l.lastIndex), u)), f++; 14780 } 14781 return 0 === f ? null : h; 14782 } ]; 14783 })); 14784 }, function(e, t, n) { 14785 "use strict"; 14786 var i = n(15), r = n(37), o = n(22), s = n(57), a = n(217), l = n(154), c = Math.max, u = Math.min, d = Math.floor, h = /\$([$&`']|\d\d?|<[^>]*>)/g, f = /\$([$&`']|\d\d?)/g; 14787 n(155)("replace", 2, (function(e, t, n, p) { 14788 return [ function(i, r) { 14789 var o = e(this), s = null == i ? void 0 : i[t]; 14790 return void 0 !== s ? s.call(i, o, r) : n.call(String(o), i, r); 14791 }, function(e, t) { 14792 var r = p(n, e, this, t); 14793 if (r.done) return r.value; 14794 var d = i(e), h = String(this), f = "function" == typeof t; 14795 f || (t = String(t)); 14796 var g = d.global; 14797 if (g) { 14798 var v = d.unicode; 14799 d.lastIndex = 0; 14800 } 14801 for (var b = []; ;) { 14802 var y = l(d, h); 14803 if (null === y) break; 14804 if (b.push(y), !g) break; 14805 "" === String(y[0]) && (d.lastIndex = a(h, o(d.lastIndex), v)); 14806 } 14807 for (var x, w = "", _ = 0, S = 0; S < b.length; S++) { 14808 y = b[S]; 14809 for (var E = String(y[0]), C = c(u(s(y.index), h.length), 0), T = [], k = 1; k < y.length; k++) T.push(void 0 === (x = y[k]) ? x : String(x)); 14810 var M = y.groups; 14811 if (f) { 14812 var A = [ E ].concat(T, C, h); 14813 void 0 !== M && A.push(M); 14814 var O = String(t.apply(void 0, A)); 14815 } else O = m(E, h, C, T, M, t); 14816 C >= _ && (w += h.slice(_, C) + O, _ = C + E.length); 14817 } 14818 return w + h.slice(_); 14819 } ]; 14820 function m(e, t, i, o, s, a) { 14821 var l = i + e.length, c = o.length, u = f; 14822 return void 0 !== s && (s = r(s), u = h), n.call(a, u, (function(n, r) { 14823 var a; 14824 switch (r.charAt(0)) { 14825 case "$": 14826 return "$"; 14827 14828 case "&": 14829 return e; 14830 14831 case "`": 14832 return t.slice(0, i); 14833
14834 case "'": 14835 return t.slice(l); 14836 14837 case "<": 14838 a = s[r.slice(1, -1)]; 14839 break; 14840 14841 default: 14842 var u = +r; 14843 if (0 === u) return n; 14844 if (u > c) { 14845 var h = d(u / 10); 14846 return 0 === h ? n : h <= c ? void 0 === o[h - 1] ? r.charAt(1) : o[h - 1] + r.charAt(1) : n; 14847 } 14848 a = o[u - 1]; 14849 } 14850 return void 0 === a ? "" : a; 14851 })); 14852 } 14853 })); 14854 }, function(e, t, n) { 14855 "use strict"; 14856 var i = n(15), r = n(251), o = n(154); 14857 n(155)("search", 1, (function(e, t, n, s) { 14858 return [ function(n) { 14859 var i = e(this), r = null == n ? void 0 : n[t]; 14860 return void 0 !== r ? r.call(n, i) : new RegExp(n)[t](String(i)); 14861 }, function(e) { 14862 var t = s(n, e, this); 14863 if (t.done) return t.value; 14864 var a = i(e), l = String(this), c = a.lastIndex; 14865 r(c, 0) || (a.lastIndex = 0); 14866 var u = o(a, l); 14867 return r(a.lastIndex, c) || (a.lastIndex = c), null === u ? -1 : u.index; 14868 } ]; 14869 })); 14870 }, function(e, t, n) { 14871 "use strict"; 14872 var i = n(209), r = n(15), o = n(133), s = n(217), a = n(22), l = n(154), c = n(216), u = n(14), d = Math.min, h = [].push, f = "length", p = !u((function() { 14873 RegExp(4294967295, "y"); 14874 })); 14875 n(155)("split", 2, (function(e, t, n, u) { 14876 var m; 14877 return m = "c" == "abbc".split(/(b)*/)[1] || 4 != "test".split(/(?:)/, -1)[f] || 2 != "ab".split(/(?:ab)*/)[f] || 4 != ".".split(/(.?)(.?)/)[f] || ".".split(/()()/)[f] > 1 || "".split(/.?/)[f] ? function(e, t) { 14878 var r = String(this); 14879 if (void 0 === e && 0 === t) return []; 14880 if (!i(e)) return n.call(r, e, t); 14881 for (var o, s, a, l = [], u = (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.unicode ? "u" : "") + (e.sticky ? "y" : ""), d = 0, p = void 0 === t ? 4294967295 : t >>> 0, m = new RegExp(e.source, u + "g"); (o = c.call(m, r)) && !((s = m.lastIndex) > d && (l.push(r.slice(d, o.index)), 14882 o[f] > 1 && o.index < r[f] && h.apply(l, o.slice(1)), a = o[0][f], d = s, l[f] >= p)); ) m.lastIndex === o.index && m.lastIndex++; 14883 return d === r[f] ? !a && m.test("") || l.push("") : l.push(r.slice(d)), l[f] > p ? l.slice(0, p) : l; 14884 } : "0".split(void 0, 0)[f] ? function(e, t) { 14885 return void 0 === e && 0 === t ? [] : n.call(this, e, t); 14886 } : n, [ function(n, i) { 14887 var r = e(this), o = null == n ? void 0 : n[t]; 14888 return void 0 !== o ? o.call(n, r, i) : m.call(String(r), n, i); 14889 }, function(e, t) { 14890 var i = u(m, e, this, t, m !== n); 14891 if (i.done) return i.value; 14892 var c = r(e), h = String(this), f = o(c, RegExp), g = c.unicode, v = (c.ignoreCase ? "i" : "") + (c.multiline ? "m" : "") + (c.unicode ? "u" : "") + (p ? "y" : "g"), b = new f(p ? c : "^(?:" + c.source + ")", v), y = void 0 === t ? 4294967295 : t >>> 0; 14893 if (0 === y) return []; 14894 if (0 === h.length) return null === l(b, h) ? [ h ] : []; 14895 for (var x = 0, w = 0, _ = []; w < h.length; ) { 14896 b.lastIndex = p ? w : 0; 14897 var S, E = l(b, p ? h : h.slice(w)); 14898 if (null === E || (S = d(a(b.lastIndex + (p ? 0 : w)), h.length)) === x) w = s(h, w, g); else {
14899 if (_.push(h.slice(x, w)), _.length === y) return _; 14900 for (var C = 1; C <= E.length - 1; C++) if (_.push(E[C]), _.length === y) return _; 14901 w = x = S; 14902 } 14903 } 14904 return _.push(h.slice(x)), _; 14905 } ]; 14906 })); 14907 }, function(e, t, n) { 14908 var i = n(13), r = n(218).set, o = i.MutationObserver || i.WebKitMutationObserver, s = i.process, a = i.Promise, l = "process" == n(67)(s); 14909 e.exports = function() { 14910 var e, t, n, c = function() { 14911 var i, r; 14912 for (l && (i = s.domain) && i.exit(); e; ) { 14913 r = e.fn, e = e.next; 14914 try { 14915 r(); 14916 } catch (i) { 14917 throw e ? n() : t = void 0, i; 14918 } 14919 } 14920 t = void 0, i && i.enter(); 14921 }; 14922 if (l) n = function() { 14923 s.nextTick(c); 14924 }; else if (!o || i.navigator && i.navigator.standalone) if (a && a.resolve) { 14925 var u = a.resolve(void 0); 14926 n = function() { 14927 u.then(c); 14928 }; 14929 } else n = function() { 14930 r.call(i, c); 14931 }; else { 14932 var d = !0, h = document.createTextNode(""); 14933 new o(c).observe(h, { 14934 characterData: !0 14935 }), n = function() { 14936 h.data = d = !d; 14937 }; 14938 } 14939 return function(i) { 14940 var r = { 14941 fn: i, 14942 next: void 0 14943 }; 14944 t && (t.next = r), e || (e = r, n()), t = r; 14945 }; 14946 }; 14947 }, function(e, t) { 14948 e.exports = function(e) { 14949 try { 14950 return { 14951 e: !1, 14952 v: e() 14953 }; 14954 } catch (e) { 14955 return { 14956 e: !0, 14957 v: e 14958 }; 14959 } 14960 }; 14961 }, function(e, t, n) { 14962 "use strict"; 14963 var i = n(270), r = n(95); 14964 e.exports = n(158)("Map", (function(e) { 14965 return function() { 14966 return e(this, arguments.length > 0 ? arguments[0] : void 0); 14967 }; 14968 }), { 14969 get: function(e) { 14970 var t = i.getEntry(r(this, "Map"), e); 14971 return t && t.v; 14972 }, 14973 set: function(e, t) { 14974 return i.def(r(this, "Map"), 0 === e ? 0 : e, t); 14975 } 14976 }, i, !0); 14977 }, function(e, t, n) { 14978 "use strict"; 14979 var i = n(270), r = n(95); 14980 e.exports = n(158)("Set", (function(e) { 14981 return function() { 14982 return e(this, arguments.length > 0 ? arguments[0] : void 0); 14983 }; 14984 }), { 14985 add: function(e) { 14986 return i.def(r(this, "Set"), e = 0 === e ? 0 : e, e); 14987 } 14988 }, i); 14989 }, function(e, t, n) { 14990 "use strict"; 14991 var i, r = n(13), o = n(60)(0), s = n(39), a = n(74), l = n(250), c = n(271), u = n(16), d = n(95), h = n(95), f = !r.ActiveXObject && "ActiveXObject" in r, p = a.getWeak, m = Object.isExtensible, g = c.ufstore, v = function(e) { 14992 return function() { 14993 return e(this, arguments.length > 0 ? arguments[0] : void 0); 14994 }; 14995 }, b = { 14996 get: function(e) { 14997 if (u(e)) { 14998 var t = p(e); 14999 return !0 === t ? g(d(this, "WeakMap")).get(e) : t ? t[this._i] : void 0; 15000 } 15001 }, 15002 set: function(e, t) { 15003 return c.def(d(this, "WeakMap"), e, t); 15004 } 15005 }, y = e.exports = n(158)("WeakMap", v, b, c, !0, !0); 15006 h && f && (l((i = c.getConstructor(v, "WeakMap")).prototype, b), a.NEED = !0, o([ "delete", "has", "get", "set" ], (function(e) { 15007 var t = y.prototype, n = t[e]; 15008 s(t, e, (function(t, r) { 15009 if (u(t) && !m(t)) { 15010 this._f || (this._f = new i); 15011 var o = this._f[e](t, r); 15012 return "set" == e ? this : o; 15013 } 15014 return n.call(this, t, r); 15015 })); 15016 }))); 15017 }, function(e, t, n) { 15018 "use strict"; 15019 var i = n(271), r = n(95); 15020 n(158)("WeakSet", (function(e) { 15021 return function() { 15022 return e(this, arguments.length > 0 ? arguments[0] : void 0); 15023 }; 15024 }), { 15025 add: function(e) { 15026 return i.def(r(this, "WeakSet"), e, !0); 15027 } 15028 }, i, !1, !0); 15029 }, function(e, t, n) { 15030 "use strict"; 15031 var i = n(1), r = n(159), o = n(219), s = n(15), a = n(90), l = n(22), c = n(16), u = n(13).ArrayBuffer, d = n(133), h = o.ArrayBuffer, f = o.DataView, p = r.ABV && u.isView, m = h.prototype.slice, g = r.VIEW; 15032 i(i.G + i.W + i.F * (u !== h), { 15033 ArrayBuffer: h 15034 }), i(i.S + i.F * !r.CONSTR, "ArrayBuffer", { 15035 isView: function(e) { 15036 return p && p(e) || c(e) && g in e; 15037 } 15038 }), i(i.P + i.U + i.F * n(14)((function() {
15039 return !new h(2).slice(1, void 0).byteLength; 15040 })), "ArrayBuffer", { 15041 slice: function(e, t) { 15042 if (void 0 !== m && void 0 === t) return m.call(s(this), e); 15043 for (var n = s(this).byteLength, i = a(e, n), r = a(void 0 === t ? n : t, n), o = new (d(this, h))(l(r - i)), c = new f(this), u = new f(o), p = 0; i < r; ) u.setUint8(p++, c.getUint8(i++)); 15044 return o; 15045 } 15046 }), n(119)("ArrayBuffer"); 15047 }, function(e, t, n) { 15048 var i = n(1); 15049 i(i.G + i.W + i.F * !n(159).ABV, { 15050 DataView: n(219).DataView 15051 }); 15052 }, function(e, t, n) { 15053 n(69)("Int8", 1, (function(e) { 15054 return function(t, n, i) { 15055 return e(this, t, n, i); 15056 }; 15057 })); 15058 }, function(e, t, n) { 15059 n(69)("Uint8", 1, (function(e) { 15060 return function(t, n, i) { 15061 return e(this, t, n, i); 15062 }; 15063 })); 15064 }, function(e, t, n) { 15065 n(69)("Uint8", 1, (function(e) { 15066 return function(t, n, i) { 15067 return e(this, t, n, i); 15068 }; 15069 }), !0); 15070 }, function(e, t, n) { 15071 n(69)("Int16", 2, (function(e) { 15072 return function(t, n, i) { 15073 return e(this, t, n, i); 15074 }; 15075 })); 15076 }, function(e, t, n) { 15077 n(69)("Uint16", 2, (function(e) { 15078 return function(t, n, i) { 15079 return e(this, t, n, i); 15080 }; 15081 })); 15082 }, function(e, t, n) { 15083 n(69)("Int32", 4, (function(e) { 15084 return function(t, n, i) { 15085 return e(this, t, n, i); 15086 }; 15087 })); 15088 }, function(e, t, n) { 15089 n(69)("Uint32", 4, (function(e) { 15090 return function(t, n, i) { 15091 return e(this, t, n, i); 15092 }; 15093 })); 15094 }, function(e, t, n) { 15095 n(69)("Float32", 4, (function(e) { 15096 return function(t, n, i) { 15097 return e(this, t, n, i); 15098 }; 15099 })); 15100 }, function(e, t, n) { 15101 n(69)("Float64", 8, (function(e) { 15102 return function(t, n, i) { 15103 return e(this, t, n, i); 15104 }; 15105 })); 15106 }, function(e, t, n) { 15107 var i = n(1), r = n(56), o = n(15), s = (n(13).Reflect || {}).apply, a = Function.apply; 15108 i(i.S + i.F * !n(14)((function() { 15109 s((function() {})); 15110 })), "Reflect", { 15111 apply: function(e, t, n) { 15112 var i = r(e), l = o(n); 15113 return s ? s(i, t, l) : a.call(i, t, l); 15114 } 15115 }); 15116 }, function(e, t, n) { 15117 var i = n(1), r = n(91), o = n(56), s = n(15), a = n(16), l = n(14), c = n(252), u = (n(13).Reflect || {}).construct, d = l((function() { 15118 function e() {} 15119 return !(u((function() {}), [], e) instanceof e); 15120 })), h = !l((function() { 15121 u((function() {})); 15122 })); 15123 i(i.S + i.F * (d || h), "Reflect", { 15124 construct: function(e, t) { 15125 o(e), s(t); 15126 var n = arguments.length < 3 ? e : o(arguments[2]); 15127 if (h && !d) return u(e, t, n); 15128 if (e == n) { 15129 switch (t.length) { 15130 case 0: 15131 return new e; 15132 15133 case 1: 15134 return new e(t[0]); 15135 15136 case 2: 15137 return new e(t[0], t[1]); 15138 15139 case 3: 15140 return new e(t[0], t[1], t[2]); 15141 15142 case 4: 15143 return new e(t[0], t[1], t[2], t[3]); 15144 } 15145 var i = [ null ]; 15146 return i.push.apply(i, t), new (c.apply(e, i)); 15147 } 15148 var l = n.prototype, f = r(a(l) ? l : Object.prototype), p = Function.apply.call(e, f, t); 15149 return a(p) ? p : f; 15150 } 15151 }); 15152 }, function(e, t, n) { 15153 var i = n(28), r = n(1), o = n(15), s = n(73); 15154 r(r.S + r.F * n(14)((function() { 15155 Reflect.defineProperty(i.f({}, 1, { 15156 value: 1 15157 }), 1, { 15158 value: 2 15159 }); 15160 })), "Reflect", { 15161 defineProperty: function(e, t, n) { 15162 o(e), t = s(t, !0), o(n); 15163 try { 15164 return i.f(e, t, n), !0; 15165 } catch (e) { 15166 return !1; 15167 } 15168 } 15169 }); 15170 }, function(e, t, n) { 15171 var i = n(1), r = n(58).f, o = n(15); 15172 i(i.S, "Reflect", { 15173 deleteProperty: function(e, t) { 15174 var n = r(o(e), t); 15175 return !(n && !n.configurable) && delete e[t]; 15176 } 15177 }); 15178 }, function(e, t, n) { 15179 "use strict"; 15180 var i = n(1), r = n(15), o = function(e) { 15181 this._t = r(e), this._i = 0; 15182 var t, n = this._k = []; 15183 for (t in e) n.push(t); 15184 }; 15185 n(259)(o, "Object", (function() { 15186 var e, t = this._k; 15187 do { 15188 if (this._i >= t.length) return { 15189 value: void 0, 15190 done: !0 15191 }; 15192 } while (!((e = t[this._i++]) in this._t)); 15193 return { 15194 value: e, 15195 done: !1 15196 }; 15197 })), i(i.S, "Reflect", { 15198 enumerate: function(e) { 15199 return new o(e); 15200 } 15201 }); 15202 }, function(e, t, n) { 15203 var i = n(58), r = n(93), o = n(45), s = n(1), a = n(16), l = n(15); 15204 s(s.S, "Reflect", { 15205 get: function e(t, n) { 15206 var s, c, u = arguments.length < 3 ? t : arguments[2]; 15207 return l(t) === u ? t[n] : (s = i.f(t, n)) ? o(s, "value") ? s.value : void 0 !== s.get ? s.get.call(u) : void 0 : a(c = r(t)) ? e(c, n, u) : void 0; 15208 } 15209 }); 15210 }, function(e, t, n) { 15211 var i = n(58), r = n(1), o = n(15); 15212 r(r.S, "Reflect", { 15213 getOwnPropertyDescriptor: function(e, t) { 15214 return i.f(o(e), t); 15215 } 15216 }); 15217 }, function(e, t, n) { 15218 var i = n(1), r = n(93), o = n(15); 15219 i(i.S, "Reflect", { 15220 getPrototypeOf: function(e) { 15221 return r(o(e)); 15222 } 15223 }); 15224 }, function(e, t, n) { 15225 var i = n(1); 15226 i(i.S, "Reflect", { 15227 has: function(e, t) { 15228 return t in e; 15229 } 15230 }); 15231 }, function(e, t, n) { 15232 var i = n(1), r = n(15), o = Object.isExtensible; 15233 i(i.S, "Reflect", { 15234 isExtensible: function(e) { 15235 return r(e), !o || o(e); 15236 } 15237 }); 15238 }, function(e, t, n) { 15239 var i = n(1); 15240 i(i.S, "Reflect", { 15241 ownKeys: n(273) 15242 }); 15243 }, function(e, t, n) { 15244 var i = n(1), r = n(15), o = Object.preventExtensions; 15245 i(i.S, "Reflect", { 15246 preventExtensions: function(e) { 15247 r(e); 15248 try { 15249 return o && o(e), !0; 15250 } catch (e) { 15251 return !1; 15252 } 15253 } 15254 }); 15255 }, function(e, t, n) { 15256 var i = n(28), r = n(58), o = n(93), s = n(45), a = n(1), l = n(86), c = n(15), u = n(16); 15257 a(a.S, "Reflect", { 15258 set: function e(t, n, a) { 15259 var d, h, f = arguments.length < 4 ? t : arguments[3], p = r.f(c(t), n); 15260 if (!p) { 15261 if (u(h = o(t))) return e(h, n, a, f); 15262 p = l(0); 15263 } 15264 if (s(p, "value")) { 15265 if (!1 === p.writable || !u(f)) return !1; 15266 if (d = r.f(f, n)) { 15267 if (d.get || d.set || !1 === d.writable) return !1; 15268 d.value = a, i.f(f, n, d); 15269 } else i.f(f, n, l(0, a)); 15270 return !0; 15271 } 15272 return void 0 !== p.set && (p.set.call(f, a), !0); 15273 } 15274 }); 15275 }, function(e, t, n) { 15276 var i = n(1), r = n(200); 15277 r && i(i.S, "Reflect", { 15278 setPrototypeOf: function(e, t) { 15279 r.check(e, t); 15280 try { 15281 return r.set(e, t), !0; 15282 } catch (e) { 15283 return !1; 15284 } 15285 } 15286 }); 15287 }, function(e, t, n) { 15288 n(531), e.exports = n(24).Array.includes; 15289 }, function(e, t, n) { 15290 "use strict"; 15291 var i = n(1), r = n(149)(!0); 15292 i(i.P, "Array", { 15293 includes: function(e) { 15294 return r(this, e, arguments.length > 1 ? arguments[1] : void 0); 15295 } 15296 }), n(94)("includes"); 15297 }, function(e, t, n) { 15298 n(533), e.exports = n(24).Array.flatMap; 15299 }, function(e, t, n) { 15300 "use strict"; 15301 var i = n(1), r = n(534), o = n(37), s = n(22), a = n(56), l = n(261); 15302 i(i.P, "Array", { 15303 flatMap: function(e) { 15304 var t, n, i = o(this); 15305 return a(e), t = s(i.length), n = l(i, 0), r(n, i, i, t, 0, 1, e, arguments[1]), 15306 n; 15307 } 15308 }), n(94)("flatMap"); 15309 }, function(e, t, n) { 15310 "use strict"; 15311 var i = n(151), r = n(16), o = n(22), s = n(55), a = n(21)("isConcatSpreadable"); 15312 e.exports = function e(t, n, l, c, u, d, h, f) { 15313 for (var p, m, g = u, v = 0, b = !!h && s(h, f, 3); v < c; ) { 15314 if (v in l) { 15315 if (p = b ? b(l[v], v, n) : l[v], m = !1, r(p) && (m = void 0 !== (m = p[a]) ? !!m : i(p)), 15316 m && d > 0) g = e(t, n, p, o(p.length), g, d - 1) - 1; else { 15317 if (g >= 9007199254740991) throw TypeError(); 15318 t[g] = p; 15319 } 15320 g++; 15321 } 15322 v++; 15323 } 15324 return g; 15325 }; 15326 }, function(e, t, n) { 15327 n(536), e.exports = n(24).String.padStart; 15328 }, function(e, t, n) { 15329 "use strict"; 15330 var i = n(1), r = n(274), o = n(157), s = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o); 15331 i(i.P + i.F * s, "String", { 15332 padStart: function(e) { 15333 return r(this, e, arguments.length > 1 ? arguments[1] : void 0, !0); 15334 } 15335 }); 15336 }, function(e, t, n) { 15337 n(538), e.exports = n(24).String.padEnd; 15338 }, function(e, t, n) { 15339 "use strict"; 15340 var i = n(1), r = n(274), o = n(157), s = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o); 15341 i(i.P + i.F * s, "String", { 15342 padEnd: function(e) { 15343 return r(this, e, arguments.length > 1 ? arguments[1] : void 0, !1); 15344 } 15345 }); 15346 }, function(e, t, n) { 15347 n(540), e.exports = n(24).String.trimLeft; 15348 }, function(e, t, n) { 15349 "use strict"; 15350 n(117)("trimLeft", (function(e) { 15351 return function() { 15352 return e(this, 1); 15353 }; 15354 }), "trimStart"); 15355 }, function(e, t, n) { 15356 n(542), e.exports = n(24).String.trimRight; 15357 }, function(e, t, n) { 15358 "use strict"; 15359 n(117)("trimRight", (function(e) { 15360 return function() { 15361 return e(this, 2); 15362 }; 15363 }), "trimEnd"); 15364 }, function(e, t, n) { 15365 n(544), e.exports = n(196).f("asyncIterator"); 15366 }, function(e, t, n) { 15367 n(246)("asyncIterator"); 15368 }, function(e, t, n) { 15369 n(546), e.exports = n(24).Object.getOwnPropertyDescriptors; 15370 }, function(e, t, n) { 15371 var i = n(1), r = n(273), o = n(47), s = n(58), a = n(212); 15372 i(i.S, "Object", { 15373 getOwnPropertyDescriptors: function(e) { 15374 for (var t, n, i = o(e), l = s.f, c = r(i), u = {}, d = 0; c.length > d; ) void 0 !== (n = l(i, t = c[d++])) && a(u, t, n); 15375 return u; 15376 } 15377 }); 15378 }, function(e, t, n) { 15379 n(548), e.exports = n(24).Object.values; 15380 }, function(e, t, n) {
15381 var i = n(1), r = n(275)(!1); 15382 i(i.S, "Object", { 15383 values: function(e) { 15384 return r(e); 15385 } 15386 }); 15387 }, function(e, t, n) { 15388 n(550), e.exports = n(24).Object.entries; 15389 }, function(e, t, n) { 15390 var i = n(1), r = n(275)(!0); 15391 i(i.S, "Object", { 15392 entries: function(e) { 15393 return r(e); 15394 } 15395 }); 15396 }, function(e, t, n) { 15397 "use strict"; 15398 n(267), n(552), e.exports = n(24).Promise.finally; 15399 }, function(e, t, n) { 15400 "use strict"; 15401 var i = n(1), r = n(24), o = n(13), s = n(133), a = n(269); 15402 i(i.P + i.R, "Promise", { 15403 finally: function(e) { 15404 var t = s(this, r.Promise || o.Promise), n = "function" == typeof e; 15405 return this.then(n ? function(n) { 15406 return a(t, e()).then((function() { 15407 return n; 15408 })); 15409 } : e, n ? function(n) { 15410 return a(t, e()).then((function() { 15411 throw n; 15412 })); 15413 } : e); 15414 } 15415 }); 15416 }, function(e, t, n) { 15417 n(554), n(555), n(556), e.exports = n(24); 15418 }, function(e, t, n) { 15419 var i = n(13), r = n(1), o = n(157), s = [].slice, a = /MSIE .\./.test(o), l = function(e) { 15420 return function(t, n) { 15421 var i = arguments.length > 2, r = !!i && s.call(arguments, 2); 15422 return e(i ? function() { 15423 ("function" == typeof t ? t : Function(t)).apply(this, r); 15424 } : t, n); 15425 }; 15426 }; 15427 r(r.G + r.B + r.F * a, { 15428 setTimeout: l(i.setTimeout), 15429 setInterval: l(i.setInterval) 15430 }); 15431 }, function(e, t, n) { 15432 var i = n(1), r = n(218); 15433 i(i.G + i.B, { 15434 setImmediate: r.set, 15435 clearImmediate: r.clear 15436 }); 15437 }, function(e, t, n) { 15438 for (var i = n(215), r = n(89), o = n(39), s = n(13), a = n(46), l = n(118), c = n(21), u = c("iterator"), d = c("toStringTag"), h = l.Array, f = { 15439 CSSRuleList: !0, 15440 CSSStyleDeclaration: !1, 15441 CSSValueList: !1, 15442 ClientRectList: !1, 15443 DOMRectList: !1, 15444 DOMStringList: !1, 15445 DOMTokenList: !0, 15446 DataTransferItemList: !1, 15447 FileList: !1, 15448 HTMLAllCollection: !1, 15449 HTMLCollection: !1, 15450 HTMLFormElement: !1, 15451 HTMLSelectElement: !1, 15452 MediaList: !0, 15453 MimeTypeArray: !1, 15454 NamedNodeMap: !1, 15455 NodeList: !0, 15456 PaintRequestList: !1, 15457 Plugin: !1, 15458 PluginArray: !1, 15459 SVGLengthList: !1, 15460 SVGNumberList: !1, 15461 SVGPathSegList: !1, 15462 SVGPointList: !1, 15463 SVGStringList: !1, 15464 SVGTransformList: !1, 15465 SourceBufferList: !1, 15466 StyleSheetList: !0, 15467 TextTrackCueList: !1, 15468 TextTrackList: !1, 15469 TouchList: !1 15470 }, p = r(f), m = 0; m < p.length; m++) { 15471 var g, v = p[m], b = f[v], y = s[v], x = y && y.prototype; 15472 if (x && (x[u] || a(x, u, h), x[d] || a(x, d, v), l[v] = h, b)) for (g in i) x[g] || o(x, g, i[g], !0); 15473 } 15474 }, function(e, t, n) { 15475 (function(t) { 15476 var n = function(e) { 15477 "use strict"; 15478 var n = Object.prototype, i = n.hasOwnProperty, r = Object.defineProperty || function(e, t, n) { 15479 e[t] = n.value; 15480 }, o = "function" == typeof Symbol ? Symbol : {}, s = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", l = o.toStringTag || "@@toStringTag"; 15481 function c(e, t, n) { 15482 return Object.defineProperty(e, t, { 15483 value: n, 15484 enumerable: !0, 15485 configurable: !0, 15486 writable: !0 15487 }), e[t]; 15488 } 15489 try { 15490 c({}, ""); 15491 } catch (e) { 15492 c = function(e, t, n) { 15493 return e[t] = n; 15494 }; 15495 } 15496 function u(e, t, n, i) { 15497 var o = t && t.prototype instanceof f ? t : f, s = Object.create(o.prototype), a = new T(i || []); 15498 return r(s, "_invoke", { 15499 value: _(e, n, a) 15500 }), s; 15501 } 15502 function d(e, t, n) { 15503 try { 15504 return { 15505 type: "normal", 15506 arg: e.call(t, n) 15507 }; 15508 } catch (e) { 15509 return { 15510 type: "throw", 15511 arg: e 15512 }; 15513 } 15514 }
15515 e.wrap = u; 15516 var h = {}; 15517 function f() {} 15518 function p() {} 15519 function m() {} 15520 var g = {}; 15521 c(g, s, (function() { 15522 return this; 15523 })); 15524 var v = Object.getPrototypeOf, b = v && v(v(k([]))); 15525 b && b !== n && i.call(b, s) && (g = b); 15526 var y = m.prototype = f.prototype = Object.create(g); 15527 function x(e) { 15528 [ "next", "throw", "return" ].forEach((function(t) { 15529 c(e, t, (function(e) { 15530 return this._invoke(t, e); 15531 })); 15532 })); 15533 } 15534 function w(e, t) { 15535 var n; 15536 r(this, "_invoke", { 15537 value: function(r, o) { 15538 function s() { 15539 return new t((function(n, s) { 15540 !function n(r, o, s, a) { 15541 var l = d(e[r], e, o); 15542 if ("throw" !== l.type) { 15543 var c = l.arg, u = c.value; 15544 return u && "object" == typeof u && i.call(u, "__await") ? t.resolve(u.__await).then((function(e) { 15545 n("next", e, s, a); 15546 }), (function(e) { 15547 n("throw", e, s, a); 15548 })) : t.resolve(u).then((function(e) { 15549 c.value = e, s(c); 15550 }), (function(e) { 15551 return n("throw", e, s, a); 15552 })); 15553 } 15554 a(l.arg); 15555 }(r, o, n, s); 15556 })); 15557 } 15558 return n = n ? n.then(s, s) : s(); 15559 } 15560 }); 15561 } 15562 function _(e, t, n) { 15563 var i = "suspendedStart"; 15564 return function(r, o) { 15565 if ("executing" === i) throw new Error("Generator is already running"); 15566 if ("completed" === i) { 15567 if ("throw" === r) throw o; 15568 return M(); 15569 } 15570 for (n.method = r, n.arg = o; ;) { 15571 var s = n.delegate; 15572 if (s) { 15573 var a = S(s, n); 15574 if (a) { 15575 if (a === h) continue; 15576 return a; 15577 } 15578 } 15579 if ("next" === n.method) n.sent = n._sent = n.arg; else if ("throw" === n.method) { 15580 if ("suspendedStart" === i) throw i = "completed", n.arg; 15581 n.dispatchException(n.arg); 15582 } else "return" === n.method && n.abrupt("return", n.arg); 15583 i = "executing"; 15584 var l = d(e, t, n); 15585 if ("normal" === l.type) { 15586 if (i = n.done ? "completed" : "suspendedYield", l.arg === h) continue; 15587 return { 15588 value: l.arg, 15589 done: n.done 15590 }; 15591 } 15592 "throw" === l.type && (i = "completed", n.method = "throw", n.arg = l.arg); 15593 } 15594 }; 15595 } 15596 function S(e, t) { 15597 var n = t.method, i = e.iterator[n]; 15598 if (void 0 === i) return t.delegate = null, "throw" === n && e.iterator.return && (t.method = "return", 15599 t.arg = void 0, S(e, t), "throw" === t.method) || "return" !== n && (t.method = "throw", 15600 t.arg = new TypeError("The iterator does not provide a '" + n + "' method")), h; 15601 var r = d(i, e.iterator, t.arg); 15602 if ("throw" === r.type) return t.method = "throw", t.arg = r.arg, t.delegate = null, 15603 h; 15604 var o = r.arg;
15605 return o ? o.done ? (t[e.resultName] = o.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next", 15606 t.arg = void 0), t.delegate = null, h) : o : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), 15607 t.delegate = null, h); 15608 } 15609 function E(e) { 15610 var t = { 15611 tryLoc: e[0] 15612 }; 15613 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), 15614 this.tryEntries.push(t); 15615 } 15616 function C(e) { 15617 var t = e.completion || {}; 15618 t.type = "normal", delete t.arg, e.completion = t; 15619 } 15620 function T(e) { 15621 this.tryEntries = [ { 15622 tryLoc: "root" 15623 } ], e.forEach(E, this), this.reset(!0); 15624 } 15625 function k(e) { 15626 if (e) { 15627 var t = e[s]; 15628 if (t) return t.call(e); 15629 if ("function" == typeof e.next) return e; 15630 if (!isNaN(e.length)) { 15631 var n = -1, r = function t() { 15632 for (;++n < e.length; ) if (i.call(e, n)) return t.value = e[n], t.done = !1, t; 15633 return t.value = void 0, t.done = !0, t; 15634 }; 15635 return r.next = r; 15636 } 15637 } 15638 return { 15639 next: M 15640 }; 15641 } 15642 function M() { 15643 return { 15644 value: void 0, 15645 done: !0 15646 }; 15647 } 15648 return p.prototype = m, r(y, "constructor", { 15649 value: m, 15650 configurable: !0 15651 }), r(m, "constructor", { 15652 value: p, 15653 configurable: !0 15654 }), p.displayName = c(m, l, "GeneratorFunction"), e.isGeneratorFunction = function(e) { 15655 var t = "function" == typeof e && e.constructor; 15656 return !!t && (t === p || "GeneratorFunction" === (t.displayName || t.name)); 15657 }, e.mark = function(e) { 15658 return Object.setPrototypeOf ? Object.setPrototypeOf(e, m) : (e.__proto__ = m, c(e, l, "GeneratorFunction")), 15659 e.prototype = Object.create(y), e; 15660 }, e.awrap = function(e) { 15661 return { 15662 __await: e 15663 }; 15664 }, x(w.prototype), c(w.prototype, a, (function() { 15665 return this; 15666 })), e.AsyncIterator = w, e.async = function(n, i, r, o, s) { 15667 void 0 === s && (s = t); 15668 var a = new w(u(n, i, r, o), s); 15669 return e.isGeneratorFunction(i) ? a : a.next().then((function(e) { 15670 return e.done ? e.value : a.next(); 15671 })); 15672 }, x(y), c(y, l, "Generator"), c(y, s, (function() { 15673 return this; 15674 })), c(y, "toString", (function() { 15675 return "[object Generator]"; 15676 })), e.keys = function(e) { 15677 var t = Object(e), n = []; 15678 for (var i in t) n.push(i); 15679 return n.reverse(), function e() { 15680 for (;n.length; ) { 15681 var i = n.pop(); 15682 if (i in t) return e.value = i, e.done = !1, e; 15683 } 15684 return e.done = !0, e; 15685 }; 15686 }, e.values = k, T.prototype = { 15687 constructor: T, 15688 reset: function(e) { 15689 if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, 15690 this.delegate = null, this.method = "next", this.arg = void 0, this.tryEntries.forEac
15690h(C), 15691 !e) for (var t in this) "t" === t.charAt(0) && i.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0); 15692 }, 15693 stop: function() { 15694 this.done = !0; 15695 var e = this.tryEntries[0].completion; 15696 if ("throw" === e.type) throw e.arg; 15697 return this.rval; 15698 }, 15699 dispatchException: function(e) { 15700 if (this.done) throw e; 15701 var t = this; 15702 function n(n, i) { 15703 return s.type = "throw", s.arg = e, t.next = n, i && (t.method = "next", t.arg = void 0), 15704 !!i; 15705 } 15706 for (var r = this.tryEntries.length - 1; r >= 0; --r) { 15707 var o = this.tryEntries[r], s = o.completion; 15708 if ("root" === o.tryLoc) return n("end"); 15709 if (o.tryLoc <= this.prev) { 15710 var a = i.call(o, "catchLoc"), l = i.call(o, "finallyLoc"); 15711 if (a && l) { 15712 if (this.prev < o.catchLoc) return n(o.catchLoc, !0); 15713 if (this.prev < o.finallyLoc) return n(o.finallyLoc); 15714 } else if (a) { 15715 if (this.prev < o.catchLoc) return n(o.catchLoc, !0); 15716 } else { 15717 if (!l) throw new Error("try statement without catch or finally"); 15718 if (this.prev < o.finallyLoc) return n(o.finallyLoc); 15719 } 15720 } 15721 } 15722 }, 15723 abrupt: function(e, t) { 15724 for (var n = this.tryEntries.length - 1; n >= 0; --n) { 15725 var r = this.tryEntries[n]; 15726 if (r.tryLoc <= this.prev && i.call(r, "finallyLoc") && this.prev < r.finallyLoc) { 15727 var o = r; 15728 break; 15729 } 15730 } 15731 o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null); 15732 var s = o ? o.completion : {}; 15733 return s.type = e, s.arg = t, o ? (this.method = "next", this.next = o.finallyLoc, 15734 h) : this.complete(s); 15735 }, 15736 complete: function(e, t) { 15737 if ("throw" === e.type) throw e.arg; 15738 return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, 15739 this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), 15740 h; 15741 }, 15742 finish: function(e) { 15743 for (var t = this.tryEntries.length - 1; t >= 0; --t) { 15744 var n = this.tryEntries[t]; 15745 if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), C(n), h; 15746 } 15747 }, 15748 catch: function(e) { 15749 for (var t = this.tryEntries.length - 1; t >= 0; --t) { 15750 var n = this.tryEntries[t]; 15751 if (n.tryLoc === e) { 15752 var i = n.completion; 15753 if ("throw" === i.type) { 15754 var r = i.arg; 15755 C(n); 15756 } 15757 return r; 15758 } 15759 } 15760 throw new Error("illegal catch attempt"); 15761 }, 15762 delegateYield: function(e, t, n) { 15763 return this.delegate = { 15764 iterator: k(e), 15765 resultName: t, 15766 nextLoc: n 15767 }, "next" === this.method && (this.arg = void 0), h; 15768 } 15769 }, e; 15770 }(e.exports); 15771 try { 15772 regeneratorRuntime = n; 15773 } catch (e) { 15774 "object" == typeof globalThis ? globalThis.regeneratorRuntime = n : Function("r", "regeneratorRuntime = r")(n); 15775 } 15776 }).call(this, n(220)); 15777 }, function(e, t) { 15778 var n, i, r = e.exports = {}; 15779 function o() { 15780 throw new Error("setTimeout has not been defined"); 15781 } 15782 function s() { 15783 throw new Error("clearTimeout has not been defined"); 15784 } 15785 function a(e) { 15786 if (n === setTimeout) return setTimeout(e, 0); 15787 if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(e, 0); 15788 try { 15789 return n(e, 0); 15790 } catch (t) { 15791 try { 15792 return n.call(null, e, 0); 15793 } catch (t) { 15794 return n.call(this, e, 0); 15795 } 15796 } 15797 } 15798 !function() { 15799 try { 15800 n = "function" == typeof setTimeout ? setTimeout : o; 15801 } catch (e) { 15802 n = o; 15803 } 15804 try { 15805 i = "function" == typeof clearTimeout ? clearTimeout : s; 15806 } catch (e) { 15807 i = s; 15808 } 15809 }(); 15810 var l, c = [], u = !1, d = -1; 15811 function h() { 15812 u && l && (u = !1, l.length ? c = l.concat(c) : d = -1, c.length && f()); 15813 } 15814 function f() { 15815 if (!u) { 15816 var e = a(h); 15817 u = !0; 15818 for (var t = c.length; t; ) { 15819 for (l = c, c = []; ++d < t; ) l && l[d].run(); 15820 d = -1, t = c.length; 15821 } 15822 l = null, u = !1, function(e) { 15823 if (i === clearTimeout) return clearTimeout(e);
15824 if ((i === s || !i) && clearTimeout) return i = clearTimeout, clearTimeout(e); 15825 try { 15826 i(e); 15827 } catch (t) { 15828 try { 15829 return i.call(null, e); 15830 } catch (t) { 15831 return i.call(this, e); 15832 } 15833 } 15834 }(e); 15835 } 15836 } 15837 function p(e, t) { 15838 this.fun = e, this.array = t; 15839 } 15840 function m() {} 15841 r.nextTick = function(e) { 15842 var t = new Array(arguments.length - 1); 15843 if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; 15844 c.push(new p(e, t)), 1 !== c.length || u || a(f); 15845 }, p.prototype.run = function() { 15846 this.fun.apply(null, this.array); 15847 }, r.title = "browser", r.browser = !0, r.env = {}, r.argv = [], r.version = "", 15848 r.versions = {}, r.on = m, r.addListener = m, r.once = m, r.off = m, r.removeListener = m, 15849 r.removeAllListeners = m, r.emit = m, r.prependListener = m, r.prependOnceListener = m, 15850 r.listeners = function(e) { 15851 return []; 15852 }, r.binding = function(e) { 15853 throw new Error("process.binding is not supported"); 15854 }, r.cwd = function() { 15855 return "/"; 15856 }, r.chdir = function(e) { 15857 throw new Error("process.chdir is not supported"); 15858 }, r.umask = function() { 15859 return 0; 15860 }; 15861 }, function(e, t, n) { 15862 n(560), e.exports = n(276).global; 15863 }, function(e, t, n) { 15864 var i = n(561); 15865 i(i.G, { 15866 global: n(221) 15867 }); 15868 }, function(e, t, n) { 15869 var i = n(221), r = n(276), o = n(562), s = n(564), a = n(571), l = function(e, t, n) { 15870 var c, u, d, h = e & l.F, f = e & l.G, p = e & l.S, m = e & l.P, g = e & l.B, v = e & l.W, b = f ? r : r[t] || (r[t] = {}), y = b.prototype, x = f ? i : p ? i[t] : (i[t] || {}).prototype; 15871 for (c in f && (n = t), n) (u = !h && x && void 0 !== x[c]) && a(b, c) || (d = u ? x[c] : n[c], 15872 b[c] = f && "function" != typeof x[c] ? n[c] : g && u ? o(d, i) : v && x[c] == d ? function(e) { 15873 var t = function(t, n, i) { 15874 if (this instanceof e) { 15875 switch (arguments.length) { 15876 case 0: 15877 return new e; 15878 15879 case 1: 15880 return new e(t); 15881 15882 case 2: 15883 return new e(t, n); 15884 } 15885 return new e(t, n, i); 15886 } 15887 return e.apply(this, arguments); 15888 }; 15889 return t.prototype = e.prototype, t; 15890 }(d) : m && "function" == typeof d ? o(Function.call, d) : d, m && ((b.virtual || (b.virtual = {}))[c] = d, 15891 e & l.R && y && !y[c] && s(y, c, d))); 15892 }; 15893 l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, e.exports = l; 15894 }, function(e, t, n) { 15895 var i = n(563); 15896 e.exports = function(e, t, n) { 15897 if (i(e), void 0 === t) return e; 15898 switch (n) { 15899 case 1: 15900 return function(n) { 15901 return e.call(t, n); 15902 }; 15903 15904 case 2: 15905 return function(n, i) { 15906 return e.call(t, n, i); 15907 }; 15908 15909 case 3: 15910 return function(n, i, r) { 15911 return e.call(t, n, i, r); 15912 }; 15913 } 15914 return function() { 15915 return e.apply(t, arguments); 15916 }; 15917 }; 15918 }, function(e, t) { 15919 e.exports = function(e) { 15920 if ("function" != typeof e) throw TypeError(e + " is not a function!"); 15921 return e; 15922 }; 15923 }, function(e, t, n) { 15924 var i = n(565), r = n(570); 15925 e.exports = n(223) ? function(e, t, n) { 15926 return i.f(e, t, r(1, n)); 15927 } : function(e, t, n) { 15928 return e[t] = n, e; 15929 }; 15930 }, function(e, t, n) { 15931 var i = n(566), r = n(567), o = n(569), s = Object.defineProperty; 15932 t.f = n(223) ? Object.defineProperty : function(e, t, n) { 15933 if (i(e), t = o(t, !0), i(n), r) try { 15934 return s(e, t, n); 15935 } catch (e) {} 15936 if ("get" in n || "set" in n) throw TypeError("Accessors not supported!"); 15937 return "value" in n && (e[t] = n.value), e; 15938 }; 15939 }, function(e, t, n) { 15940 var i = n(222); 15941 e.exports = function(e) { 15942 if (!i(e)) throw TypeError(e + " is not an object!"); 15943 return e; 15944 }; 15945 }, function(e, t, n) {
15946 e.exports = !n(223) && !n(277)((function() { 15947 return 7 != Object.defineProperty(n(568)("div"), "a", { 15948 get: function() { 15949 return 7; 15950 } 15951 }).a; 15952 })); 15953 }, function(e, t, n) { 15954 var i = n(222), r = n(221).document, o = i(r) && i(r.createElement); 15955 e.exports = function(e) { 15956 return o ? r.createElement(e) : {}; 15957 }; 15958 }, function(e, t, n) { 15959 var i = n(222); 15960 e.exports = function(e, t) { 15961 if (!i(e)) return e; 15962 var n, r; 15963 if (t && "function" == typeof (n = e.toString) && !i(r = n.call(e))) return r; 15964 if ("function" == typeof (n = e.valueOf) && !i(r = n.call(e))) return r; 15965 if (!t && "function" == typeof (n = e.toString) && !i(r = n.call(e))) return r; 15966 throw TypeError("Can't convert object to primitive value"); 15967 }; 15968 }, function(e, t) { 15969 e.exports = function(e, t) { 15970 return { 15971 enumerable: !(1 & e), 15972 configurable: !(2 & e), 15973 writable: !(4 & e), 15974 value: t 15975 }; 15976 }; 15977 }, function(e, t) { 15978 var n = {}.hasOwnProperty; 15979 e.exports = function(e, t) { 15980 return n.call(e, t); 15981 }; 15982 }, function(e, t, n) { 15983 (function(e) { 15984 !function(e) { 15985 var t = function() { 15986 try { 15987 return !!Symbol.iterator; 15988 } catch (e) { 15989 return !1; 15990 } 15991 }(), n = function(e) { 15992 var n = { 15993 next: function() { 15994 var t = e.shift(); 15995 return { 15996 done: void 0 === t, 15997 value: t 15998 }; 15999 } 16000 }; 16001 return t && (n[Symbol.iterator] = function() { 16002 return n; 16003 }), n; 16004 }, i = function(e) { 16005 return encodeURIComponent(e).replace(/%20/g, "+"); 16006 }, r = function(e) { 16007 return decodeURIComponent(String(e).replace(/\+/g, " ")); 16008 }; 16009 (function() { 16010 try { 16011 var t = e.URLSearchParams; 16012 return "a=1" === new t("?a=1").toString() && "function" == typeof t.prototype.set && "function" == typeof t.prototype.entries; 16013 } catch (e) { 16014 return !1; 16015 } 16016 })() || function() { 16017 var r = function(e) { 16018 Object.defineProperty(this, "_entries", { 16019 writable: !0, 16020 value: {} 16021 }); 16022 var t = typeof e; 16023 if ("undefined" === t) ; else if ("string" === t) "" !== e && this._fromString(e); else if (e instanceof r) { 16024 var n = this; 16025 e.forEach((function(e, t) { 16026 n.append(t, e); 16027 })); 16028 } else { 16029 if (null === e || "object" !== t) throw new TypeError("Unsupported input's type for URLSearchParams"); 16030 if ("[object Array]" === Object.prototype.toString.call(e)) for (var i = 0; i < e.length; i++) { 16031 var o = e[i]; 16032 if ("[object Array]" !== Object.prototype.toString.call(o) && 2 === o.length) throw new TypeError("Expected [string, any] as entry at index " + i + " of URLSearchParams's input"); 16033 this.append(o[0], o[1]); 16034 } else for (var s in e) e.hasOwnProperty(s) && this.append(s, e[s]); 16035 } 16036 }, o = r.prototype; 16037 o.append = function(e, t) { 16038 e in this._entries ? this._entries[e].push(String(t)) : this._entries[e] = [ String(t) ]; 16039 }, o.delete = function(e) { 16040 delete this._entries[e]; 16041 }, o.get = function(e) { 16042 return e in this._entries ? this._entries[e][0] : null; 16043 }, o.getAll = function(e) { 16044 return e in this._entries ? this._entries[e].slice(0) : []; 16045 }, o.has = function(e) { 16046 return e in this._entries; 16047 }, o.set = function(e, t) { 16048 this._entries[e] = [ String(t) ]; 16049 }, o.forEach = function(e, t) { 16050 var n; 16051 for (var i in this._entries) if (this._entries.hasOwnProperty(i)) { 16052 n = this._entries[i]; 16053 for (var r = 0; r < n.length; r++) e.call(t, n[r], i, this); 16054 } 16055 }, o.keys = function() { 16056 var e = []; 16057 return this.forEach((function(t, n) { 16058 e.push(n); 16059 })), n(e); 16060 }, o.values = function() { 16061 var e = []; 16062 return this.forEach((function(t) { 16063 e.push(t); 16064 })), n(e); 16065 }, o.entries = function() { 16066 var e = []; 16067 return this.forEach((function(t, n) { 16068 e.push([ n, t ]); 16069 })), n(e); 16070 }, t && (o[Symbol.iterator] = o.entries), o.toString = function() { 16071 var e = []; 16072 return this.forEach((function(t, n) { 16073 e.push(i(n) + "=" + i(t)); 16074 })), e.join("&"); 16075 }, e.URLSearchParams = r; 16076 }(); 16077 var o = e.URLSearchParams.prototype; 16078 "function" != typeof o.sort && (o.sort = function() { 16079 var e = this, t = []; 16080 this.forEach((function(n, i) { 16081 t.push([ i, n ]), e._entries || e.delete(i); 16082 })), t.sort((function(e, t) { 16083 return e[0] < t[0] ? -1 : e[0] > t[0] ? 1 : 0; 16084 })), e._entries && (e._entries = {}); 16085 for (var n = 0; n < t.length; n++) this.append(t[n][0], t[n][1]); 16086 }), "function" != typeof o._fromString && Object.defineProperty(o, "_fromString", { 16087 enumerable: !1, 16088 configurable: !1, 16089 writable: !1, 16090 value: function(e) { 16091 if (this._entries) this._entries = {}; else { 16092 var t = []; 16093 this.forEach((function(e, n) { 16094 t.push(n); 16095 })); 16096 for (var n = 0; n < t.length; n++) this.delete(t[n]); 16097 } 16098 var i, o = (e = e.replace(/^\?/, "")).split("&"); 16099 for (n = 0; n < o.length; n++) i = o[n].split("="), this.append(r(i[0]), i.length > 1 ? r(i[1]) : ""); 16100 } 16101 }); 16102 }(void 0 !== e ? e : "undefined" != typeof window ? window : "undefined" != typeof self ? self : this), 16103 function(e) { 16104 var t, n, i; 16105 if (function() { 16106 try { 16107 var t = new e.URL("b", "http://a"); 16108 return t.pathname = "c d", "http://a/c%20d" === t.href && t.searchParams; 16109 } catch (e) { 16110 return !1; 16111 } 16112 }() || (t = e.URL, i = (n = function(t, n) { 16113 "string" != typeof t && (t = String(t)), n && "string" != typeof n && (n = String(n)); 16114 var i, r = document; 16115 if (n && (void 0 === e.location || n !== e.location.href)) { 16116 n = n.toLowerCase(), (i = (r = document.implementation.createHTMLDocument("")).createElement("base")).href = n, 16117 r.head.appendChild(i); 16118 try { 16119 if (0 !== i.href.indexOf(n)) throw new Error(i.href); 16120 } catch (e) { 16121 throw new Error("URL unable to set base " + n + " due to " + e); 16122 } 16123 } 16124 var o = r.createElement("a"); 16125 o.href = t, i && (r.body.appendChild(o), o.href = o.href); 16126 var s = r.createElement("input"); 16127 if (s.type = "url", s.value = t, ":" === o.protocol || !/:/.test(o.href) || !s.checkValidity() && !n) throw new TypeError("Invalid URL"); 16128 Object.defineProperty(this, "_anchorElement", { 16129 value: o 16130 }); 16131 var a = new e.URLSearchParams(this.search), l = !0, c = !0, u = this; 16132 [ "append", "delete", "set" ].forEach((function(e) { 16133 var t = a[e]; 16134 a[e] = function() { 16135 t.apply(a, arguments), l && (c = !1, u.search = a.toString(), c = !0); 16136 }; 16137 })), Object.defineProperty(this, "searchParams", { 16138 value: a, 16139 enumerable: !0 16140 }); 16141 var d = void 0; 16142 Object.defineProperty(this, "_updateSearchParams", { 16143 enumerable: !1, 16144 configurable: !1, 16145 writable: !1, 16146 value: function() { 16147 this.search !== d && (d = this.search, c && (l = !1, this.searchParams._fromString(this.search), 16148 l = !0)); 16149 } 16150 }); 16151 }).prototype, [ "hash", "host", "hostname", "port", "protocol" ].forEach((function(e) { 16152 !function(e) { 16153 Object.defineProperty(i, e, { 16154 get: function() { 16155 return this._anchorElement[e]; 16156 }, 16157 set: function(t) { 16158 this._anchorElement[e] = t; 16159 }, 16160 enumerable: !0 16161 }); 16162 }(e); 16163 })), Object.defineProperty(i, "search", { 16164 get: function() { 16165 return this._anchorElement.search; 16166 }, 16167 set: function(e) { 16168 this._anchorElement.search = e, this._updateSearchParams(); 16169 }, 16170 enumerable: !0 16171 }), Object.defineProperties(i, { 16172 toString: { 16173 get: function() { 16174 var e = this; 16175 return function() { 16176 return e.href; 16177 }; 16178 } 16179 }, 16180 href: { 16181 get: function() { 16182 return this._anchorElement.href.replace(/\?$/, ""); 16183 }, 16184 set: function(e) { 16185 this._anchorElement.href = e, this._updateSearchParams(); 16186 }, 16187 enumerable: !0 16188 }, 16189 pathname: { 16190 get: function() { 16191 return this._anchorElement.pathname.replace(/(^\/?)/, "/"); 16192 }, 16193 set: function(e) { 16194 this._anchorElement.pathname = e; 16195 }, 16196 enumerable: !0 16197 }, 16198 origin: { 16199 get: function() { 16200 var e = { 16201 "http:": 80, 16202 "https:": 443, 16203 "ftp:": 21 16204 }[this._anchorElement.protocol], t = this._anchorElement.port != e && "" !== this._anchorElement.port; 16205 return this._anchorElement.protocol + "//" + this._anchorElement.hostname + (t ? ":" + this._anchorElement.port : ""); 16206 }, 16207 enumerable: !0 16208 }, 16209 password: { 16210 get: function() { 16211 return ""; 16212 }, 16213 set: function(e) {}, 16214 enumerable: !0 16215 }, 16216 username: { 16217 get: function() { 16218 return ""; 16219 }, 16220 set: function(e) {}, 16221 enumerable: !0 16222 } 16223 }), n.createObjectURL = function(e) { 16224 return t.createObjectURL.apply(t, arguments); 16225 }, n.revokeObjectURL = function(e) { 16226 return t.revokeObjectURL.apply(t, arguments); 16227 }, e.URL = n), void 0 !== e.location && !("origin" in e.location)) { 16228 var r = function() { 16229 return e.location.protocol + "//" + e.location.hostname + (e.location.port ? ":" + e.location.port : ""); 16230 }; 16231 try { 16232 Object.defineProperty(e.location, "origin", { 16233 get: r, 16234 enumerable: !0 16235 }); 16236 } catch (t) { 16237 setInterval((function() { 16238 e.location.origin = r(); 16239 }), 100); 16240 } 16241 } 16242 }(void 0 !== e ? e : "undefined" != typeof window ? window : "undefined" != typeof self ? self : this); 16243 }).call(this, n(96)); 16244 }, function(e, t, n) { 16245 "use strict"; 16246 n(574), n(0), n(49), n(224), n(162), n(163); 16247 }, function(e, t, n) { 16248 (function(e) { 16249 !function() { 16250 var t; 16251 function n(e) { 16252 var t = 0; 16253 return function() { 16254 return t < e.length ? { 16255 done: !1, 16256 value: e[t++] 16257 } : { 16258 done: !0 16259 }; 16260 }; 16261 } 16262 var i = "function" == typeof Object.defineProperties ? Object.defineProperty : function(e, t, n) { 16263 return e == Array.prototype || e == Object.prototype || (e[t] = n.value), e; 16264 }; 16265 var r, o = function(t) { 16266 t = [ "object" == typeof globalThis && globalThis, t, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof e && e ]; 16267 for (var n = 0; n < t.length; ++n) { 16268 var i = t[n]; 16269 if (i && i.Math == Math) return i; 16270 } 16271 throw Error("Cannot find global object"); 16272 }(this); 16273 function s(e, t) { 16274 if (t) { 16275 for (var n = o, r = e.split("."), s = 0; s < r.length - 1; s++) { 16276 var a = r[s]; 16277 a in n || (n[a] = {}), n = n[a]; 16278 } 16279 (a = t(s = n[r = r[r.length - 1]])) != s && null != a && i(n, r, { 16280 configurable: !0, 16281 writable: !0, 16282 value: a 16283 }); 16284 } 16285 } 16286 function a(e) { 16287 return
16287 (e = { 16288 next: e 16289 })[Symbol.iterator] = function() { 16290 return this; 16291 }, e; 16292 } 16293 function l(e) { 16294 var t = "undefined" != typeof Symbol && Symbol.iterator && e[Symbol.iterator]; 16295 return t ? t.call(e) : { 16296 next: n(e) 16297 }; 16298 } 16299 if (s("Symbol", (function(e) { 16300 function t(e, t) { 16301 this.o = e, i(this, "description", { 16302 configurable: !0, 16303 writable: !0, 16304 value: t 16305 }); 16306 } 16307 if (e) return e; 16308 t.prototype.toString = function() { 16309 return this.o; 16310 }; 16311 var n = 0; 16312 return function e(i) { 16313 if (this instanceof e) throw new TypeError("Symbol is not a constructor"); 16314 return new t("jscomp_symbol_" + (i || "") + "_" + n++, i); 16315 }; 16316 })), s("Symbol.iterator", (function(e) { 16317 if (e) return e; 16318 e = Symbol("Symbol.iterator"); 16319 for (var t = "Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "), r = 0; r < t.length; r++) { 16320 var s = o[t[r]]; 16321 "function" == typeof s && "function" != typeof s.prototype[e] && i(s.prototype, e, { 16322 configurable: !0, 16323 writable: !0, 16324 value: function() { 16325 return a(n(this)); 16326 } 16327 }); 16328 } 16329 return e; 16330 })), "function" == typeof Object.setPrototypeOf) r = Object.setPrototypeOf; else { 16331 var c; 16332 e: { 16333 var u = {}; 16334 try { 16335 u.__proto__ = { 16336 u: !0 16337 }, c = u.u; 16338 break e; 16339 } catch (e) {} 16340 c = !1; 16341 } 16342 r = c ? function(e, t) { 16343 if (e.__proto__ = t, e.__proto__ !== t) throw new TypeError(e + " is not extensible"); 16344 return e; 16345 } : null; 16346 } 16347 var d = r; 16348 function h() { 16349 this.h = !1, this.f = null, this.m = void 0, this.b = 1, this.l = this.v = 0, this.g = null; 16350 } 16351 function f(e) { 16352 if (e.h) throw new TypeError("Generator is already running"); 16353 e.h = !0; 16354 } 16355 function p(e, t) { 16356 return e.b = 3, { 16357 value: t 16358 }; 16359 } 16360 function m(e) { 16361 this.a = new h, this.B = e; 16362 } 16363 function g(e, t, n, i) { 16364 try { 16365 var r = t.call(e.a.f, n); 16366 if (!(r instanceof Object)) throw new TypeError("Iterator result " + r + " is not an object"); 16367 if (!r.done) return e.a.h = !1, r; 16368 var o = r.value; 16369 } catch (t) { 16370 return e.a.f = null, e.a.j(t), v(e); 16371 } 16372 return e.a.f = null, i.call(e.a, o), v(e); 16373 } 16374 function v(e) { 16375 for (;e.a.b; ) try { 16376 var t = e.B(e.a); 16377 if (t) return e.a.h = !1, { 16378 value: t.value, 16379 done: !1 16380 }; 16381 } catch (t) { 16382 e.a.m = void 0, e.a.j(t); 16383 } 16384 if (e.a.h = !1, e.a.g) { 16385 if (t = e.a.g, e.a.g = null, t.A) throw t.w; 16386 return { 16387 value: t.return, 16388 done: !0 16389 }; 16390 } 16391 return { 16392 value: void 0, 16393 done: !0 16394 }; 16395 } 16396 function b(e) { 16397 this.next = function(t) { 16398 return e.i(t); 16399 }, this.throw = function(t) { 16400 return e.j(t); 16401 }, this.return = function(t) { 16402 return function(e, t) { 16403 f(e.a); 16404 var n = e.a.f; 16405 return n ? g(e, "return" in n ? n.return : function(e) { 16406 return { 16407 value: e, 16408 done: !0 16409 }; 16410 }, t, e.a.return) : (e.a.return(t), v(e)); 16411 }(e, t); 16412 }, this[Symbol.iterator] = function() { 16413 return this; 16414 }; 16415 } 16416 function y(e, t) { 16417 var n = new b(new m(t)); 16418 return d && d(n, e.prototype), n; 16419 } 16420 if (h.prototype.i = function(e) { 16421 this.m = e; 16422 }, h.prototype.j = function(e) { 16423 this.g = { 16424 w: e, 16425 A: !0 16426 }, this.b = this.v || this.l; 16427 }, h.prototype.return = function(e) { 16428 this.g = { 16429 return: e 16430 }, this.b = this.l; 16431 }, m.prototype.i = function(e) { 16432 return f(this.a), this.a.f ? g(this, this.a.f.next, e, this.a.i) : (this.a.i(e), 16433 v(this)); 16434 }, m.prototype.j = function(e) { 16435 return f(this.a), this.a.f ? g(this, this.a.f.throw, e, this.a.i) : (this.a.j(e), 16436 v(this)); 16437 }, "undefined" != typeof Blob && ("undefined" == typeof FormData || !FormData.prototype.keys)) { 16438 var x = function(e, t) { 16439 for (var n = 0; n < e.length; n++) t(e[n]); 16440 }, w = function(e, t, n) { 16441 return t instanceof Blob ? [ String(e), t, void 0 !== n ? n + "" : "string" == typeof t.name ? t.name : "blob" ] : [ String(e), String(t) ]; 16442 }, _ = function(e, t) { 16443 if (e.length < t) throw new TypeError(t + " argument required, but only " + e.length + " present."); 16444 }, S = function(e) { 16445 var t = l(e); 16446 e = t.next().value; 16447 var n = t.next().value; 16448 return t = t.next().value, n instanceof Blob && (n = new File([ n ], t, { 16449 type: n.type, 16450 lastModified: n.lastModified 16451 })), [ e, n ]; 16452 }, E = "object" == typeof globalThis ? globalThis : "object" == typeof window ? window : "object" == typeof self ? self : this, C = E.FormData, T = E.XMLHttpRequest && E.XMLHttpRequest.prototype.send, k = E.Request && E.fetch, M = E.navigator && E.navigator.sendBeacon, A = E.Element && E.Element.prototype, O = E.Symbol && Symbol.toStringTag; 16453 O && (Blob.prototype[O] || (Blob.prototype[O] = "Blob"), "File" in E && !File.prototype[O] && (File.prototype[O] = "File")); 16454 try { 16455 new File([], ""); 16456 } catch (e) { 16457 E.File = function(e, t, n) { 16458 return e = new Blob(e, n), n = n && void 0 !== n.lastModified ? new Date(n.lastModified) : new Date, 16459 Object.defineProperties(e, { 16460 name: { 16461 value: t 16462 }, 16463 lastModifiedDate: { 16464 value: n 16465 }, 16466 lastModified: { 16467 value: +n 16468 }, 16469 toString: { 16470 value: function() { 16471 return "[object File]"; 16472 } 16473 } 16474 }), O && Object.defineProperty(e, O, { 16475 value: "File" 16476 }), e; 16477 }; 16478 } 16479 var P = function(e) { 16480 this.c = []; 16481 var t = this; 16482 e && x(e.elements, (function(e) { 16483 if (e.name && !e.disabled && "submit" !== e.type && "button" !== e.type && !e.matches("form fieldset[disabled] *")) if ("file" === e.type) { 16484 var n = e.files && e.files.length ? e.files : [ new File([], "", { 16485 type: "application/octet-stream" 16486 }) ]; 16487 x(n, (function(n) { 16488 t.append(e.name, n); 16489 })); 16490 } else "select-multiple" === e.type || "select-one" === e.type ? x(e.options, (function(n) { 16491 !n.disabled && n.selected && t.append(e.name, n.value); 16492 })) : "checkbox" === e.type || "radio" === e.type ? e.checked && t.append(e.name, e.value) : (n = "textarea" === e.type ? e.value.replace(/\r\n/g, "\n").replace(/\n/g, "\r\n") : e.value, 16493 t.append(e.name, n)); 16494 })); 16495 }; 16496 if ((t = P.prototype).append = function(e, t, n) { 16497 _(arguments, 2), this.c.push(w(e, t, n)); 16498 }, t.delete = function(e) { 16499 _(arguments, 1); 16500 var t = []; 16501 e = String(e), x(this.c, (function(n) { 16502 n[0] !== e && t.push(n); 16503 })), this.c = t; 16504 }, t.entries = function e() { 16505 var t, n = this; 16506 return y(e, (function(e) { 16507 if (1 == e.b && (t = 0), 3 != e.b) return t < n.c.length ? e = p(e, S(n.c[t])) : (e.b = 0, 16508 e = void 0), e; 16509 t++, e.b = 2; 16510 })); 16511 }, t.forEach = function(e, t) { 16512 _(arguments, 1); 16513 for (var n = l(this), i = n.next(); !i.done; i = n.next()) { 16514 var r = l(i.value); 16515 i = r.next().value, r = r.next().value, e.call(t, r, i, this); 16516 } 16517 }, t.get = function(e) { 16518 _(arguments, 1); 16519 var t = this.c; 16520 e = String(e); 16521 for (var n = 0; n < t.length; n++) if (t[n][0] === e) return S(t[n])[1]; 16522 return null; 16523 }, t.getAll = function(e) { 16524 _(arguments, 1); 16525 var t = []; 16526 return e = String(e), x(this.c, (function(n) { 16527 n[0] === e && t.push(S(n)[1]); 16528 })), t; 16529 }, t.has = function(e) { 16530 _(arguments, 1), e = String(e); 16531 for (var t = 0; t < this.c.length; t++) if (this.c[t][0] === e) return !0; 16532 return !1; 16533 }, t.keys = function e() { 16534 var t, n, i, r, o = this; 16535 return y(e, (function(e) { 16536 if (1 == e.b && (t = l(o), n = t.next()), 3 != e.b) return n.done ? void (e.b = 0) : (i = n.value, 16537 r = l(i), p(e, r.next().value)); 16538 n = t.next(), e.b = 2; 16539 })); 16540 }, t.set = function(e, t, n) { 16541 _(arguments, 2), e = String(e); 16542 var i = [], r = w(e, t, n), o = !0; 16543 x(this.c, (function(t) { 16544 t[0] === e ? o && (o = !i.push(r)) : i.push(t); 16545 })), o && i.push(r), this.c = i; 16546 }, t.values = function e() { 16547 var t, n, i, r, o = this; 16548 return y(e, (function(e) { 16549 if (1 == e.b && (t = l(o), n = t.next()), 3 != e.b) return n.done ? void (e.b = 0) : (i = n.value, 16550 (r = l(i)).next(), p(e, r.next().value)); 16551 n = t.next(), e.b = 2; 16552 })); 16553 }, P.prototype._asNative = function() { 16554 for (var e = new C, t = l(this), n = t.next(); !n.done; n = t.next()) { 16555 var i = l(n.value); 16556 n = i.next().value, i = i.next().value, e.append(n, i); 16557 } 16558 return e; 16559 }, P.prototype._blob = function() { 16560 for (var e = "----formdata-polyfill-" + Math.random(), t = [], n = l(this), i = n.next(); !i.done; i = n.next()) { 16561 var r = l(i.value); 16562 i = r.next().value, r = r.next().value, t.pu
16562sh("--" + e + "\r\n"), r instanceof Blob ? t.push('Content-Disposition: form-data; name="' + i + '"; filename="' + r.name + '"\r\nContent-Type: ' + (r.type || "application/octet-stream") + "\r\n\r\n", r, "\r\n") : t.push('Content-Disposition: form-data; name="' + i + '"\r\n\r\n' + r + "\r\n"); 16563 } 16564 return t.push("--" + e + "--"), new Blob(t, { 16565 type: "multipart/form-data; boundary=" + e 16566 }); 16567 }, P.prototype[Symbol.iterator] = function() { 16568 return this.entries(); 16569 }, P.prototype.toString = function() { 16570 return "[object FormData]"; 16571 }, A && !A.matches && (A.matches = A.matchesSelector || A.mozMatchesSelector || A.msMatchesSelector || A.oMatchesSelector || A.webkitMatchesSelector || function(e) { 16572 for (var t = (e = (this.document || this.ownerDocument).querySelectorAll(e)).length; 0 <= --t && e.item(t) !== this; ) ; 16573 return -1 < t; 16574 }), O && (P.prototype[O] = "FormData"), T) { 16575 var I = E.XMLHttpRequest.prototype.setRequestHeader; 16576 E.XMLHttpRequest.prototype.setRequestHeader = function(e, t) { 16577 I.call(this, e, t), "content-type" === e.toLowerCase() && (this.s = !0); 16578 }, E.XMLHttpRequest.prototype.send = function(e) { 16579 e instanceof P ? (e = e._blob(), this.s || this.setRequestHeader("Content-Type", e.type), 16580 T.call(this, e)) : T.call(this, e); 16581 }; 16582 } 16583 k && (E.fetch = function(e, t) { 16584 return t && t.body && t.body instanceof P && (t.body = t.body._blob()), k.call(this, e, t); 16585 }), M && (E.navigator.sendBeacon = function(e, t) { 16586 return t instanceof P && (t = t._asNative()), M.call(this, e, t); 16587 }), E.FormData = P; 16588 } 16589 }(); 16590 }).call(this, n(96)); 16591 }, function(e, t, n) { 16592 (function(e) { 16593 var i, r, o, s; 16594 s = function(e) { 16595 var t = { 16596 am: "am", 16597 pm: "pm", 16598 AM: "AM", 16599 PM: "PM", 16600 decimal: ".", 16601 mins: "mins", 16602 hr: "hr", 16603 hrs: "hrs" 16604 }, n = { 16605 init: function(i) { 16606 return this.each((function() { 16607 var s = e(this), a = []; 16608 for (var l in e.fn.timepicker.defaults) s.data(l) && (a[l] = s.data(l)); 16609 var c = e.extend({}, e.fn.timepicker.defaults, a, i); 16610 if (c.lang && (t = e.extend(t, c.lang)), c = r(c), s.data("timepicker-settings", c), 16611 s.addClass("ui-timepicker-input"), c.useSelect) o(s); else { 16612 if (s.prop("autocomplete", "off"), c.showOn) for (var u in c.showOn) s.on(c.showOn[u] + ".timepicker", n.show); 16613 s.on("change.timepicker", h), s.on("keydown.timepicker", g), s.on("keyup.timepicker", v), 16614 c.disableTextInput && s.on("keydown.timepicker", m), h.call(s.get(0), null, "initial"); 16615 } 16616 })); 16617 }, 16618 show: function(t) { 16619 var r = e(this), s = r.data("timepicker-settings"); 16620 if (t && t.preventDefault(), s.useSelect) r.data("timepicker-list").focus(); else { 16621 c(r) && r.blur(); 16622 var a = r.data("timepicker-list"); 16623 if (!r.prop("readonly") && (a && 0 !== a.length && "function" != typeof s.durationTime || (o(r), 16624 a = r.data("timepicker-list")), !i(a))) { 16625 r.data("ui-timepicker-value", r.val()), d(r, a), n.hide(), a.show(); 16626 var h = {}; 16627 s.orientation.match(/r/) ? h.left = r.offset().left + r.outerWidth() - a.outerWidth() + parseInt(a.css("marginLeft").replace("px", ""), 10) : h.left = r.offset().left + parseInt(a.css("marginLeft").replace("px", ""), 10), 16628 "t" == (s.orientation.match(/t/) ? "t" : s.orientation.match(/b/) ? "b" : r.offset().top + r.outerHeight(!0) + a.outerHeight() > e(window).height() + e(window).scrollTop() ? "t" : "b") ? (a.addClass("ui-timepicker-positioned-top"), 16629 h.top = r.offset().top - a.outerHeight() + parseInt(a.css("marginTop").replace("px", ""), 10)) : (a.removeClass("ui-timepicker-positioned-top"), 16630 h.top = r.offset().top + r.outerHeight() + parseInt(a.css("marginTop").replace("px", ""), 10)), 16631 a.offset(h); 16632 var p = a.find(".ui-timepicker-selected"); 16633 if (!p.length) { 16634 var m = w(f(r)); 16635 null !== m ? p = u(r, a, m) : s.scrollDefault && (p = u(r, a, s.scrollDefault())); 16636 } 16637 if (p && p.length) { 16638 var g = a.scrollTop() + p.position().top - p.outerHeight(); 16639 a.scrollTop(g); 16640 } else a.scrollTop(0); 16641 return s.stopScrollPropagation && e(document).on("wheel.ui-timepicker", ".ui-timepicker-wrapper", (function(t) { 16642 t.preventDefault(); 16643 var n = e(this).scrollTop(); 16644 e(this).scrollTop(n + t.originalEvent.deltaY); 16645 })), e(document).on("touchstart.ui-timepicker mousedown.ui-timepicker", l), e(window).on("resize.ui-timepicker", l), 16646 s.closeOnWindowScroll && e(document).on("scroll.ui-timepicker", l), r.trigger("showTimepicker"), 16647 this; 16648 } 16649 } 16650 }, 16651 hide: function(t) { 16652 var n = e(this), r = n.data("timepicker-settings"); 16653 return r && r.useSelect && n.blur(), e(".ui-timepicker-wrapper").each((function() { 16654 var t = e(this); 16655 if (i(t)) { 16656 var n = t.data("timepicker-input"), r = n.data("timepicker-settings"); 16657 r && r.selectOnBlur && b(n), t.hide(), n.trigger("hideTimepicker"); 16658 } 16659 })), this; 16660 }, 16661 option: function(t, n) { 16662 return "string" == typeof t && void 0 === n ? e(this).data("timepicker-settings")[t] : this.each((function() { 16663 var i = e(this), s = i.data("timepicker-settings"), a = i.data("timepicker-list"); 16664 "object" == typeof t ? s = e.extend(s, t) : "string" == typeof t && (s[t] = n), 16665 s = r(s), i.data("timepicker-settings", s), a && (a.remove(), i.data("timepicker-list", !1)), 16666 s.useSelect && o(i); 16667 })); 16668 }, 16669 getSecondsFromMidnight: function() { 16670 return w(f(this)); 16671 }, 16672 getTime: function(e) { 16673 var t = f(this); 16674 if (!t) return null; 16675 var n = w(t); 16676 if (null === n) return null; 16677 e || (e = new Date); 16678 var i = new Date(e); 16679 return i.setHours(n / 3600), i.setMinutes(n % 3600 / 60), i.setSeconds(n % 60), 16680 i.setMilliseconds(0), i; 16681 }, 16682 isVisible: function() { 16683 var e = this.data("timepicker-list"); 16684 return !(!e || !i(e)); 16685 }, 16686 setTime: function(e) { 16687 var t = this.data("timepicker-settings"); 16688 if (t.forceRoundTime) var n = a(w(e), t); else n = x(w(e), t); 16689 return e && null === n && t.noneOption && (n = e), p(this, n), this.data("timepicker-list") && d(this, this.data("timepicker-list")), 16690 this; 16691 }, 16692 remove: function() { 16693 if (this.hasClass("ui-timepicker-input")) { 16694 var e = this.data("timepicker-settings"); 16695 return this.removeAttr("autocomplete", "off"), this.removeClass("ui-timepicker-input"), 16696 this.removeData("timepicker-settings"), this.off(".timepicker"), this.data("timepicker-list") && this.data("timepicker-list").remove(), 16697 e.useSelect && this.show(), this.removeData("timepicker-list"), this; 16698 } 16699 } 16700 }; 16701 function i(e) { 16702 var t = e[0]; 16703 return t.offsetWidth > 0 && t.offsetHeight > 0; 16704 } 16705 function r(t) { 16706 if (t.minTime && (t.minTime = w(t.minTime)), t.maxTime && (t.maxTime = w(t.maxTime)), 16707 t.durationTime && "function" != typeof t.durationTime && (t.durationTime = w(t.durationTime)), 16708 "now" == t.scrollDefault) t.scrollDefault = function() { 16709 return t.roundingFunction(w(new Date), t); 16710 }; else if (t.scrollDefault && "function" != typeof t.scrollDefault) { 16711 var n = t.scrollDefault; 16712 t.scrollDefault = function() { 16713 return t.roundingFunction(w(n), t); 16714 }; 16715 } else t.minTime && (t.scrollDefault = function() { 16716 return t.roundingFunction(t.minTime, t); 16717 }); 16718 if ("string" === e.type(t.timeFormat) && t.timeFormat.match(/[gh]/) && (t._twelveHourTime = !0), 16719 !1 === t.showOnFocus && -1 != t.showOn.indexOf("focus") && t.showOn.splice(t.showOn.indexOf("focus"), 1), 16720 t.disableTimeRanges.length > 0) { 16721 for (var i in t.disableTimeRanges) t.disableTimeRanges[i] = [ w(t.disableTimeRanges[i][0]), w(t.disableTimeRanges[i][1]) ]; 16722 for (t.disableTimeRanges = t.disableTimeRanges.sort((function(e, t) { 16723 return e[0] - t[0]; 16724 })), i = t.disableTimeRanges.length - 1; i > 0; i--) t.disableTimeRanges[i][0] <= t.disableTimeRanges[i - 1][1] && (t.disableTimeRanges[i - 1] = [ Math.min(t.disableTimeRanges[i][0], t.disableTimeRanges[i - 1][0]), Math.max(t.disableTimeRanges[i][1], t.disableTimeRanges[i - 1][1]) ], 16725 t.disableTimeRanges.splice(i, 1)); 16726 } 16727 return t; 16728 } 16729 function o(t) { 16730 var i = t.data("timepicker-settings"), r = t.data("timepicker-list"); 16731 if (r && r.length && (r.remove(), t.data("timepicker-list", !1)), i.useSelect) var o = r = e("<select />", { 16732 class: "ui-timepicker-select" 16733 }); else r = e("<ul />", { 16734 class: "ui-timepicker-list" 16735 }), (o = e("<div />", { 16736 class: "ui-timepicker-wrapper", 16737 tabindex: -1 16738 })).css({ 16739 display: "none", 16740 position: "absolute" 16741 }).append(r); 16742 if (i.noneOption) if (!0 === i.noneOption && (i.noneOption = i.useSelect ? "Time..." : "None"), 16743 e.isArray(i.noneOption)) { 16744 for (var l in i.noneOption) if (parseInt(l, 10) == l) { 16745 var u = s(i.noneOption[l], i.useSelect); 16746 r.append(u); 16747 } 16748 } else u = s(i.noneOption, i.useSelect), r.append(u); 16749 i.className && o.addClass(i.className), null === i.minTime && null === i.durationTime || !i.showDuration || ("function" == typeof i.step || i.step, 16750 o.addClass("ui-timepicker-with-duration"), o.addClass("ui-timepicker-step-" + i.step)); 16751 var h = i.minTime; 16752 "function" == typeof i.durationTime ? h = w(i.durationTime()) : null !== i.durationTime && (h = i.durationTime); 16753 var f = null !== i.minTime ? i.minTime : 0, m = null !== i.maxTime ? i.maxTime : f + 86400 - 1; 16754 m < f && (m += 86400), 86399 === m && "string" === e.type(i.timeFormat) && i.show2400 && (m = 86400); 16755 var g = i.disableTimeRanges, v = 0, _ = g.length, S = i.step; 16756 "function" != typeof S && (S = function() { 16757 return i.step; 16758 }), l = f; 16759 for (var E = 0; l <= m; l += 60 * S(++E)) { 16760 var C, T = l, k = x(T, i); 16761 if (i.useSelect ? (C = e("<option />", { 16762 value: k 16763 })).text(k) : ((C = e("<li />")).addClass(T % 86400 < 43200 ? "ui-timepicker-am" : "ui-timepicker-pm"), 16764 C.data("time", T <= 86400 ? T : T % 86400), C.text(k)), (null !== i.minTime || null !== i.durationTime) && i.showDuration) { 16765 var M = y(l - h, i.step); 16766 if (i.useSelect) C.text(C.text() + " (" + M + ")"); else { 16767 var A = e("<span />", { 16768 class: "ui-timepicker-duration" 16769 }); 16770 A.text(" (" + M + ")"), C.append(A); 16771 } 16772 } 16773 v < _ && (T >= g[v][1] && (v += 1), g[v] && T >= g[v][0] && T < g[v][1] && (i.useSelect ? C.prop("disabled", !0) : C.addClass("ui-timepicker-disabled"))), 16774 r.append(C); 16775 } 16776 if (o.data("timepicker-input", t), t.data("timepicker-list", o), i.useSelect) t.val() && r.val(a(w(t.val()), i)), 16777 r.on("focus", (function() { 16778 e(this).data("timepicker-input").trigger("showTimepicker"); 16779 })), r.on("blur", (function() { 16780 e(this).data("timepicker-input").trigger("hideTimepicker"); 16781 })), r.on("change", (function() { 16782 p(t, e(this).val(), "select"); 16783 })), p(t, r.val(), "initial"), t.hide().after(r); else { 16784 var O = i.appendTo; 16785 "string" == typeof O ? O = e(O) : "function" == typeof O && (O = O(t)), O.append(o), 16786 d(t, r), r.on("mousedown click", "li", (function(i) { 16787 t.off("focus.timepicker"), t.on("focus.timepicker-ie-hack", (function() { 16788 t.off("focus.timepicker-ie-hack"), t.on("focus.timepicker", n.show); 16789 })), c(t) || t[0].focus(), r.find("li").removeClass("ui-timepicker-selected"), e(this).addClass("ui-timepicker-selected"), 16790 b(t) && (t.trigger("hideTimepicker"), r.on("mouseup.timepicker click.timepicker", "li", (function(e) { 16791 r.off("mouseup.timepicker click.timepicker"), o.hide(); 16792 }))); 16793 })); 16794 } 16795 } 16796 function s(t, n) { 16797 var i, r, o; 16798 return "object" == typeof t ? (i = t.label, r = t.className, o = t.value)
16798 : "string" == typeof t ? i = t : e.error("Invalid noneOption value"), 16799 n ? e("<option />", { 16800 value: o, 16801 class: r, 16802 text: i 16803 }) : e("<li />", { 16804 class: r, 16805 text: i 16806 }).data("time", String(o)); 16807 } 16808 function a(e, t) { 16809 if (null !== (e = t.roundingFunction(e, t))) return x(e, t); 16810 } 16811 function l(t) { 16812 if (t.target != window) { 16813 var i = e(t.target); 16814 i.closest(".ui-timepicker-input").length || i.closest(".ui-timepicker-wrapper").length || (n.hide(), 16815 e(document).unbind(".ui-timepicker"), e(window).unbind(".ui-timepicker")); 16816 } 16817 } 16818 function c(e) { 16819 var t = e.data("timepicker-settings"); 16820 return (window.navigator.msMaxTouchPoints || "ontouchstart" in document) && t.disableTouchKeyboard; 16821 } 16822 function u(t, n, i) { 16823 if (!i && 0 !== i) return !1; 16824 var r = t.data("timepicker-settings"), o = !1; 16825 return i = r.roundingFunction(i, r), n.find("li").each((function(t, n) { 16826 var r = e(n); 16827 if ("number" == typeof r.data("time")) return r.data("time") == i ? (o = r, !1) : void 0; 16828 })), o; 16829 } 16830 function d(e, t) { 16831 t.find("li").removeClass("ui-timepicker-selected"); 16832 var n = w(f(e), e.data("timepicker-settings")); 16833 if (null !== n) { 16834 var i = u(e, t, n); 16835 if (i) { 16836 var r = i.offset().top - t.offset().top; 16837 (r + i.outerHeight() > t.outerHeight() || r < 0) && t.scrollTop(t.scrollTop() + i.position().top - i.outerHeight()), 16838 i.addClass("ui-timepicker-selected"); 16839 } 16840 } 16841 } 16842 function h(t, n) { 16843 if ("" !== this.value && "timepicker" != n) { 16844 var i = e(this); 16845 if (!i.is(":focus") || t && "change" == t.type) { 16846 var r = i.data("timepicker-settings"), o = w(this.value, r); 16847 if (null !== o) { 16848 var s = !1; 16849 if (null !== r.minTime && null !== r.maxTime && (o < r.minTime || o > r.maxTime) && (s = !0), 16850 e.each(r.disableTimeRanges, (function() { 16851 if (o >= this[0] && o < this[1]) return s = !0, !1; 16852 })), r.forceRoundTime) { 16853 var a = r.roundingFunction(o, r); 16854 a != o && (o = a, n = null); 16855 } 16856 var l = x(o, r); 16857 s ? p(i, l, "error") && i.trigger("timeRangeError") : p(i, l, n); 16858 } else i.trigger("timeFormatError"); 16859 } 16860 } 16861 } 16862 function f(e) { 16863 return e.is("input") ? e.val() : e.data("ui-timepicker-value"); 16864 } 16865 function p(e, t, n) { 16866 if (e.is("input")) { 16867 e.val(t); 16868 var i = e.data("timepicker-settings"); 16869 i.useSelect && "select" != n && "initial" != n && e.data("timepicker-list").val(a(w(t), i)); 16870 } 16871 return e.data("ui-timepicker-value") != t ? (e.data("ui-timepicker-value", t), "select" == n ? e.trigger("selectTime").trigger("changeTime").trigger("change", "timepicker") : -1 == [ "error", "initial" ].indexOf(n) && e.trigger("changeTime"), 16872 !0) : (e.trigger("selectTime"), !1); 16873 } 16874 function m(e) { 16875 switch (e.keyCode) { 16876 case 13: 16877 case 9: 16878 return; 16879 16880 default: 16881 e.preventDefault(); 16882 } 16883 } 16884 function g(t) { 16885 var r = e(this), o = r.data("timepicker-list"); 16886 if (!o || !i(o)) { 16887 if (40 != t.keyCode) return !0; 16888 n.show.call(r.get(0)), o = r.data("timepicker-list"), c(r) || r.focus(); 16889 } 16890 switch (t.keyCode) { 16891 case 13: 16892 return b(r) && (h.call(r.get(0), { 16893 type: "change" 16894 }), n.hide.apply(this)), t.preventDefault(), !1; 16895 16896 case 38: 16897 var s = o.find(".ui-timepicker-selected"); 16898 return s.length ? s.is(":first-child") || (s.removeClass("ui-timepicker-selected"), 16899 s.prev().addClass("ui-timepicker-selected"), s.prev().position().top < s.outerHeight() && o.scrollTop(o.scrollTop() - s.outerHeight())) : (o.find("li").each((function(t, n) { 16900 if (e(n).position().top > 0) return s = e(n), !1; 16901 })), s.addClass("ui-timepicker-selected")), !1; 16902 16903 case 40: 16904 return 0 === (s = o.find(".ui-timepicker-selected")).length ? (o.find("li").each((function(t, n) { 16905 if (e(n).position().top > 0) return s = e(n), !1; 16906 })), s.addClass("ui-timepicker-selected")) : s.is(":last-child") || (s.removeClass("ui-timepicker-selected"), 16907 s.next().addClass("ui-timepicker-selected"), s.next().position().top + 2 * s.outerHeight() > o.outerHeight() && o.scrollTop(o.scrollTop() + s.outerHeight())), 16908 !1; 16909 16910 case 27: 16911 o.find("li").removeClass("ui-timepicker-selected"), n.hide(); 16912 break; 16913 16914 case 9: 16915 n.hide(); 16916 break; 16917 16918 default: 16919 return !0; 16920 } 16921 } 16922 function v(t) { 16923 var n = e(this), r = n.data("timepicker-list"), o = n.data("timepicker-settings"); 16924 if (!r || !i(r) || o.disableTextInput) return !0; 16925 switch (t.keyCode) { 16926 case 96: 16927 case 97: 16928 case 98: 16929 case 99: 16930 case 100: 16931 case 101: 16932 case 102: 16933 case 103: 16934 case 104: 16935 case 105: 16936 case 48: 16937 case 49: 16938 case 50: 16939 case 51: 16940 case 52: 16941 case 53: 16942 case 54: 16943 case 55: 16944 case 56: 16945 case 57: 16946 case 65: 16947 case 77: 16948 case 80: 16949 case 186: 16950 case 8: 16951 case 46: 16952 o.typeaheadHighlight ? d(n, r) : r.hide(); 16953 } 16954 } 16955 function b(e) { 16956 var t = e.data("timepicker-settings"), n = null, i = e.data("timepicker-list").find(".ui-timepicker-selected"); 16957 return !i.hasClass("ui-timepicker-disabled") && (i.length && (n = i.data("time")), 16958 null !== n && ("string" != typeof n && (n = x(n, t)), p(e, n, "select")), !0); 16959 } 16960 function y(e, n) { 16961 e = Math.abs(e); 16962 var i, r, o = Math.round(e / 60), s = []; 16963 return o < 60 ? s = [ o, t.mins ] : (i = Math.floor(o / 60), r = o % 60, 30 == n && 30 == r && (i += t.decimal + 5), 16964 s.push(i), s.push(1 == i ? t.hr : t.hrs), 30 != n && r && (s.push(r), s.push(t.mins))), 16965 s.join(" "); 16966 } 16967 function x(n, i) { 16968 if ("number" != typeof n) return null; 16969 var r = parseInt(n % 60), o = parseInt(n / 60 % 60), s = parseInt(n / 3600 % 24), a = new Date(1970, 0, 2, s, o, r, 0); 16970 if (isNaN(a.getTime())) return null; 16971 if ("function" === e.type(i.timeFormat)) return i.timeFormat(a); 16972 for (var l, c, u = "", d = 0; d < i.timeFormat.length; d++) switch (c = i.timeFormat.charAt(d)) { 16973 case "a": 16974 u += a.getHours() > 11 ? t.pm : t.am; 16975 break; 16976 16977 case "A": 16978 u += a.getHours() > 11 ? t.PM : t.AM; 16979 break; 16980 16981 case "g": 16982 u += 0 == (l = a.getHours() % 12) ? "12" : l; 16983 break; 16984 16985 case "G": 16986 l = a.getHours(), 86400 === n && (l = i.show2400 ? 24 : 0), u += l; 16987 break; 16988 16989 case "h": 16990 0 != (l = a.getHours() % 12) && l < 10 && (l = "0" + l), u += 0 === l ? "12" : l; 16991 break; 16992 16993 case "H": 16994 l = a.getHours(), 86400 === n && (l = i.show2400 ? 24 : 0), u += l > 9 ? l : "0" + l; 16995 break; 16996 16997 case "i": 16998 u += (o = a.getMinutes()) > 9 ? o : "0" + o; 16999 break; 17000 17001 case "s": 17002 u += (r = a.getSeconds()) > 9 ? r : "0" + r; 17003 break; 17004 17005 case "\\": 17006 d++, u += i.timeFormat.charAt(d); 17007 break; 17008 17009 default: 17010 u += c; 17011 } 17012 return u; 17013 } 17014 function w(e, n) { 17015 if ("" === e || null === e) return null; 17016 if ("object" == typeof e) return 3600 * e.getHours() + 60 * e.getMinutes() + e.getSeconds(); 17017 if ("string" != typeof e) return e; 17018 "a" != (e = e.toLowerCase().replace(/[\s\.]/g, "")).slice(-1) && "p" != e.slice(-1) || (e += "m"); 17019 var i = "(" + t.am.replace(".", "") + "|" + t.pm.replace(".", "") + "|" + t.AM.replace(".", "") + "|" + t.PM.replace(".", "") + ")?", r = new RegExp("^" + i + "([0-9]?[0-9])\\W?
17019([0-5][0-9])?\\W?([0-5][0-9])?" + i + "$"), o = e.match(r); 17020 if (!o) return null; 17021 var s = parseInt(1 * o[2], 10); 17022 if (s > 24) { 17023 if (n && !1 === n.wrapHours) return null; 17024 s %= 24; 17025 } 17026 var a = o[1] || o[5], l = s; 17027 if (s <= 12 && a) { 17028 var c = a == t.pm || a == t.PM; 17029 l = 12 == s ? c ? 12 : 0 : s + (c ? 12 : 0); 17030 } 17031 var u = 3600 * l + 60 * (1 * o[3] || 0) + (1 * o[4] || 0); 17032 if (s < 12 && !a && n && n._twelveHourTime && n.scrollDefault) { 17033 var d = u - n.scrollDefault(); 17034 d < 0 && d >= -43200 && (u = (u + 43200) % 86400); 17035 } 17036 return u; 17037 } 17038 e.fn.timepicker = function(t) { 17039 return this.length ? n[t] ? this.hasClass("ui-timepicker-input") ? n[t].apply(this, Array.prototype.slice.call(arguments, 1)) : this : "object" != typeof t && t ? void e.error("Method " + t + " does not exist on jQuery.timepicker") : n.init.apply(this, arguments) : this; 17040 }, e.fn.timepicker.defaults = { 17041 appendTo: "body", 17042 className: null, 17043 closeOnWindowScroll: !1, 17044 disableTextInput: !1, 17045 disableTimeRanges: [], 17046 disableTouchKeyboard: !1, 17047 durationTime: null, 17048 forceRoundTime: !1, 17049 maxTime: null, 17050 minTime: null, 17051 noneOption: !1, 17052 orientation: "l", 17053 roundingFunction: function(e, t) { 17054 if (null === e) return null; 17055 if ("number" != typeof t.step) return e; 17056 var n = e % (60 * t.step); 17057 return n >= 30 * t.step ? e += 60 * t.step - n : e -= n, 86400 == e && t.show2400 ? e : e % 86400; 17058 }, 17059 scrollDefault: null, 17060 selectOnBlur: !1, 17061 show2400: !1, 17062 showDuration: !1, 17063 showOn: [ "click", "focus" ], 17064 showOnFocus: !0, 17065 step: 30, 17066 stopScrollPropagation: !1, 17067 timeFormat: "g:ia", 17068 typeaheadHighlight: !0, 17069 useSelect: !1, 17070 wrapHours: !0 17071 }; 17072 }, t && "object" == typeof e && e && e.exports === t ? s(n(6)) : (r = [ n(6) ], 17073 void 0 === (o = "function" == typeof (i = s) ? i.apply(t, r) : i) || (e.exports = o)); 17074 }).call(this, n(166)(e)); 17075 }, , function(e, t, n) { 17076 "use strict"; 17077 (function(e, t) { 17078 var n = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== e && e || {}, i = "URLSearchParams" in n, r = "Symbol" in n && "iterator" in Symbol, o = "FileReader" in n && "Blob" in n && function() { 17079 try { 17080 return new Blob, !0; 17081 } catch (e) { 17082 return !1; 17083 } 17084 }(), s = "FormData" in n, a = "ArrayBuffer" in n; 17085 if (a) var l = [ "[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]" ], c = ArrayBuffer.isView || function(e) { 17086 return e && l.indexOf(Object.prototype.toString.call(e)) > -1; 17087 }; 17088 function u(e) { 17089 if ("string" != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || "" === e) throw new TypeError('Invalid character in header field name: "' + e + '"'); 17090 return e.toLowerCase(); 17091 } 17092 function d(e) { 17093 return "string" != typeof e && (e = String(e)), e; 17094 } 17095 function h(e) { 17096 var t = { 17097 next: function() { 17098 var t = e.shift(); 17099 return { 17100 done: void 0 === t, 17101 value: t 17102 }; 17103 } 17104 }; 17105 return r && (t[Symbol.iterator] = function() { 17106 return t; 17107 }), t; 17108 } 17109 function f(e) { 17110 this.map = {}, e instanceof f ? e.forEach((function(e, t) { 17111 this.append(t, e); 17112 }), this) : Array.isArray(e) ? e.forEach((function(e) { 17113 if (2 != e.length) throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + e.length); 17114 this.append(e[0], e[1]); 17115 }
17115), this) : e && Object.getOwnPropertyNames(e).forEach((function(t) { 17116 this.append(t, e[t]); 17117 }), this); 17118 } 17119 function p(e) { 17120 if (!e._noBody) return e.bodyUsed ? t.reject(new TypeError("Already read")) : void (e.bodyUsed = !0); 17121 } 17122 function m(e) { 17123 return new t((function(t, n) { 17124 e.onload = function() { 17125 t(e.result); 17126 }, e.onerror = function() { 17127 n(e.error); 17128 }; 17129 })); 17130 } 17131 function g(e) { 17132 var t = new FileReader, n = m(t); 17133 return t.readAsArrayBuffer(e), n; 17134 } 17135 function v(e) { 17136 if (e.slice) return e.slice(0); 17137 var t = new Uint8Array(e.byteLength); 17138 return t.set(new Uint8Array(e)), t.buffer; 17139 } 17140 function b() { 17141 return this.bodyUsed = !1, this._initBody = function(e) { 17142 var t; 17143 this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : o && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : s && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : i && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : a && o && ((t = e) && DataView.prototype.isPrototypeOf(t)) ? (this._bodyArrayBuffer = v(e.buffer), 17144 this._bodyInit = new Blob([ this._bodyArrayBuffer ])) : a && (ArrayBuffer.prototype.isPrototypeOf(e) || c(e)) ? this._bodyArrayBuffer = v(e) : this._bodyText = e = Object.prototype.toString.call(e) : (this._noBody = !0, 17145 this._bodyText = ""), this.headers.get("content-type") || ("string" == typeof e ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : i && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); 17146 }, o && (this.blob = function() { 17147 var e = p(this); 17148 if (e) return e; 17149 if (this._bodyBlob) return t.resolve(this._bodyBlob); 17150 if (this._bodyArrayBuffer) return t.resolve(new Blob([ this._bodyArrayBuffer ])); 17151 if (this._bodyFormData) throw new Error("could not read FormData body as blob"); 17152 return t.resolve(new Blob([ this._bodyText ])); 17153 }), this.arrayBuffer = function() { 17154 if (this._bodyArrayBuffer) { 17155 var e = p(this); 17156 return e || (ArrayBuffer.isView(this._bodyArrayBuffer) ? t.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : t.resolve(this._bodyArrayBuffer)); 17157 } 17158 if (o) return this.blob().then(g); 17159 throw new Error("could not read as ArrayBuffer"); 17160 }, this.text = function() { 17161 var e, n, i, r, o, s = p(this); 17162 if (s) return s; 17163 if (this._bodyBlob) return e = this._bodyBlob, n = new FileReader, i = m(n), r = /charset=([A-Za-z0-9_-]+)/.exec(e.type), 17164 o = r ? r[1] : "utf-8", n.readAsText(e, o), i; 17165 if (this._bodyArrayBuffer) return t.resolve(function(e) { 17166 for (var t = new Uint8Array(e), n = new Array(t.length), i = 0; i < t.length; i++) n[i] = String.fromCharCode(t[i]); 17167 return n.join(""); 17168 }(this._bodyArrayBuffer)); 17169 if (this._bodyFormData) throw new Error("could not read FormData body as text"); 17170 return t.resolve(this._bodyText); 17171 }, s && (this.formData = function() { 17172 return this.text().then(w); 17173 }), this.json = function() { 17174 return this.text().then(JSON.parse); 17175 }, this; 17176 } 17177 f.prototype.append = function(e, t) { 17178 e = u(e), t = d(t); 17179 var n = this.map[e]; 17180 this.map[e] = n ? n + ", " + t : t; 17181 }, f.prototype.delete = function(e) { 17182 delete this.map[u(e)]; 17183 }, f.prototype.get = function(e) { 17184 return e = u(e), this.has(e) ? this.map[e] : null; 17185 }, f.prototype.has = function(e) { 17186 return this.map.hasOwnProperty(u(e)); 17187 }, f.prototype.set = function(e, t) { 17188 this.map[u(e)] = d(t); 17189 }, f.prototype.forEach = function(e, t) { 17190 for (var n in this.map) this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this); 17191 }, f.prototype.keys = function() { 17192 var e = []; 17193 return this.forEach((function(t, n) { 17194 e.push(n); 17195 })), h(e); 17196 }, f.prototype.values = function() { 17197 var e = []; 17198 return this.forEach((function(t) { 17199 e.push(t); 17200 })), h(e); 17201 }, f.prototype.entries = function() { 17202 var e = []; 17203 return this.forEach((function(t, n) { 17204 e.push([ n, t ]); 17205 })), h(e); 17206 }, r && (f.prototype[Symbol.iterator] = f.prototype.entries); 17207 var y = [ "CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE" ]; 17208 function x(e, t) { 17209 if (!(this instanceof x)) throw new TypeError('Please use the "new" operator, this DOM object c
17209onstructor cannot be called as a function.'); 17210 var i, r, o = (t = t || {}).body; 17211 if (e instanceof x) { 17212 if (e.bodyUsed) throw new TypeError("Already read"); 17213 this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new f(e.headers)), 17214 this.method = e.method, this.mode = e.mode, this.signal = e.signal, o || null == e._bodyInit || (o = e._bodyInit, 17215 e.bodyUsed = !0); 17216 } else this.url = String(e); 17217 if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new f(t.headers)), 17218 this.method = (i = t.method || this.method || "GET", r = i.toUpperCase(), y.indexOf(r) > -1 ? r : i), 17219 this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || function() { 17220 if ("AbortController" in n) return (new AbortController).signal; 17221 }(), this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests"); 17222 if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache)) { 17223 var s = /([?&])_=[^&]*/; 17224 if (s.test(this.url)) this.url = this.url.replace(s, "$1_=" + (new Date).getTime()); else { 17225 this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (new Date).getTime(); 17226 } 17227 } 17228 } 17229 function w(e) { 17230 var t = new FormData; 17231 return e.trim().split("&").forEach((function(e) { 17232 if (e) { 17233 var n = e.split("="), i = n.shift().replace(/\+/g, " "), r = n.join("=").replace(/\+/g, " "); 17234 t.append(decodeURIComponent(i), decodeURIComponent(r)); 17235 } 17236 })), t; 17237 } 17238 function _(e, t) { 17239 if (!(this instanceof _)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); 17240 if (t || (t = {}), this.type = "default", this.status = void 0 === t.status ? 200 : t.status, 17241 this.status < 200 || this.status > 599) throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); 17242 this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, 17243 this.headers = new f(t.headers), this.url = t.url || "", this._initBody(e); 17244 } 17245 x.prototype.clone = function() { 17246 return new x(this, { 17247 body: this._bodyInit 17248 }); 17249 }, b.call(x.prototype), b.call(_.prototype), _.prototype.clone = function() { 17250 return new _(this._bodyInit, { 17251 status: this.status, 17252 statusText: this.statusText, 17253 headers: new f(this.headers), 17254 url: this.url 17255 }); 17256 }, _.error = function() { 17257 var e = new _(null, { 17258 status: 200, 17259 statusText: "" 17260 }); 17261 return e.ok = !1, e.status = 0, e.type = "error", e; 17262 }; 17263 var S = [ 301, 302, 303, 307, 308 ]; 17264 _.redirect = function(e, t) { 17265 if (-1 === S.indexOf(t)) throw new RangeError("Invalid status code"); 17266 return new _(null, { 17267 status: t, 17268 headers: { 17269 location: e 17270 } 17271 }); 17272 }; 17273 var E = n.DOMException; 17274 try { 17275 new E; 17276 } catch (e) { 17277 (E = function(e, t) { 17278 this.message = e, this.name = t; 17279 var n = Error(e); 17280 this.stack = n.stack; 17281 }).prototype = Object.create(Error.prototype), E.prototype.constructor = E; 17282 } 17283 function C(e, i) { 17284 return new t((function(t, r) { 17285 var s = new x(e, i); 17286 if (s.signal && s.signal.aborted) return r(new E("Aborted", "AbortError")); 17287 var l = new XMLHttpRequest; 17288 function c() { 17289 l.abort(); 17290 } 17291 if (l.onload = function() { 17292 var e, n, i = { 17293 statusText: l.statusText, 17294 headers: (e = l.getAllResponseHeaders() || "", n = new f, e.replace(/\r?\n[\t ]+/g, " ").split("\r").map((function(e) { 17295 return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e; 17296 }
17296)).forEach((function(e) { 17297 var t = e.split(":"), i = t.shift().trim(); 17298 if (i) { 17299 var r = t.join(":").trim(); 17300 try { 17301 n.append(i, r); 17302 } catch (e) { 17303 console.warn("Response " + e.message); 17304 } 17305 } 17306 })), n) 17307 }; 17308 0 === s.url.indexOf("file://") && (l.status < 200 || l.status > 599) ? i.status = 200 : i.status = l.status, 17309 i.url = "responseURL" in l ? l.responseURL : i.headers.get("X-Request-URL"); 17310 var r = "response" in l ? l.response : l.responseText; 17311 setTimeout((function() { 17312 t(new _(r, i)); 17313 }), 0); 17314 }, l.onerror = function() { 17315 setTimeout((function() { 17316 r(new TypeError("Network request failed")); 17317 }), 0); 17318 }, l.ontimeout = function() { 17319 setTimeout((function() { 17320 r(new TypeError("Network request timed out")); 17321 }), 0); 17322 }, l.onabort = function() { 17323 setTimeout((function() { 17324 r(new E("Aborted", "AbortError")); 17325 }), 0); 17326 }, l.open(s.method, function(e) { 17327 try { 17328 return "" === e && n.location.href ? n.location.href : e; 17329 } catch (t) { 17330 return e; 17331 } 17332 }(s.url), !0), "include" === s.credentials ? l.withCredentials = !0 : "omit" === s.credentials && (l.withCredentials = !1), 17333 "responseType" in l && (o ? l.responseType = "blob" : a && (l.responseType = "arraybuffer")), 17334 i && "object" == typeof i.headers && !(i.headers instanceof f || n.Headers && i.headers instanceof n.Headers)) { 17335 var h = []; 17336 Object.getOwnPropertyNames(i.headers).forEach((function(e) { 17337 h.push(u(e)), l.setRequestHeader(e, d(i.headers[e])); 17338 })), s.headers.forEach((function(e, t) { 17339 -1 === h.indexOf(t) && l.setRequestHeader(t, e); 17340 })); 17341 } else s.headers.forEach((function(e, t) { 17342 l.setRequestHeader(t, e); 17343 })); 17344 s.signal && (s.signal.addEventListener("abort", c), l.onreadystatechange = function() { 17345 4 === l.readyState && s.signal.removeEventListener("abort", c); 17346 }), l.send(void 0 === s._bodyInit ? null : s._bodyInit); 17347 })); 17348 } 17349 C.polyfill = !0, n.fetch || (n.fetch = C, n.Headers = f, n.Request = x, n.Response = _); 17350 }).call(this, n(96), n(220)); 17351 }, , , function(e, t, n) { 17352 e.exports = function(e) { 17353 var t = {}; 17354 function n(i) { 17355 if (t[i]) return t[i].exports; 17356 var r = t[i] = { 17357 i: i, 17358 l: !1, 17359 exports: {} 17360 }; 17361 return e[i].call(r.exports, r, r.exports, n), r.l = !0, r.exports; 17362 } 17363 return n.m = e, n.c = t, n.d = function(e, t, i) { 17364 n.o(e, t) || Object.defineProperty(e, t, { 17365 enumerable: !0, 17366 get: i 17367 }); 17368 }, n.r = function(e) { 17369 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { 17370 value: "Module" 17371 }), Object.defineProperty(e, "__esModule", { 17372 value: !0 17373 }); 17374 }, n.t = function(e, t) { 17375 if (1 & t && (e = n(e)), 8 & t) return e; 17376 if (4 & t && "object" == typeof e && e && e.__esMo
17376dule) return e; 17377 var i = Object.create(null); 17378 if (n.r(i), Object.defineProperty(i, "default", { 17379 enumerable: !0, 17380 value: e 17381 }), 2 & t && "string" != typeof e) for (var r in e) n.d(i, r, function(t) { 17382 return e[t]; 17383 }.bind(null, r)); 17384 return i; 17385 }, n.n = function(e) { 17386 var t = e && e.__esModule ? function() { 17387 return e.default; 17388 } : function() { 17389 return e; 17390 }; 17391 return n.d(t, "a", t), t; 17392 }, n.o = function(e, t) { 17393 return Object.prototype.hasOwnProperty.call(e, t); 17394 }, n.p = "dist/", n(n.s = 0); 17395 }([ function(e, t, n) { 17396 "use strict"; 17397 function i(e, t) { 17398 var n = Object.keys(e); 17399 if (Object.getOwnPropertySymbols) { 17400 var i = Object.getOwnPropertySymbols(e); 17401 t && (i = i.filter((function(t) { 17402 return Object.getOwnPropertyDescriptor(e, t).enumerable; 17403 }))), n.push.apply(n, i); 17404 } 17405 return n; 17406 } 17407 function r(e, t, n) { 17408 return t in e ? Object.defineProperty(e, t, { 17409 value: n, 17410 enumerable: !0, 17411 configurable: !0, 17412 writable: !0 17413 }) : e[t] = n, e; 17414 } 17415 n.r(t), n(1); 17416 var o = "Sal was not initialised! Probably it is used in SSR.", s = "Your browser does not support IntersectionObserver!\nGet a polyfill from here:\nhttps://github.com/w3c/IntersectionObserver/tree/master/polyfill", a = { 17417 rootMargin: "0% 50%", 17418 threshold: .5, 17419 animateClassName: "sal-animate", 17420 disabledClassName: "sal-disabled", 17421 enterEventName: "sal:in", 17422 exitEventName: "sal:out", 17423 selector: "[data-sal]", 17424 once: !0, 17425 disabled: !1 17426 }, l = [], c = null, u = function(e) { 17427 e && e !== a && (a = function(e) { 17428 for (var t = 1; t < arguments.length; t++) { 17429 var n = null != arguments[t] ? arguments[t] : {}; 17430 t % 2 ? i(Object(n), !0).forEach((function(t) { 17431 r(e, t, n[t]); 17432 })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach((function(t) { 17433 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t)); 17434 })); 17435 } 17436 return e; 17437 }({}, a, {}, e)); 17438 }, d = function(e) { 17439 e.classList.remove(a.animateClassName); 17440 }, h = function(e, t) { 17441 var n = new CustomEvent(e, { 17442 bubbles: !0, 17443 detail: t 17444 }); 17445 t.target.dispatchEvent(n); 17446 }, f = function() { 17447 document.body.classList.add(a.disabledClassName); 17448 }, p = function() { 17449 c.disconnect(), c = null; 17450 }, m = function() { 17451 return a.disabled || "function" == typeof a.disabled && a.disabled(); 17452 }, g = function(e, t) { 17453 e.forEach((function(e) { 17454 e.intersectionRatio >= a.threshold ? (function(e) { 17455 e.target.classList.add(a.animateClassName), h(a.enterEventName, e); 17456 }(e), a.once && t.unobserve(e.target)) : a.once || function(e) { 17457 d(e.target), h(a.exitEventName, e); 17458 }(e); 17459 })); 17460 }, v = function() { 17461 f(), p(); 17462 }, b = function() { 17463 document.body.classList.remove(a.disabledClassName), c = new IntersectionObserver(g, { 17464 rootMargin: a.rootMargin, 17465 threshold: a.threshold 17466 }), (l = [].filter.call(document.querySelectorAll(a.selector), (function(e) { 17467 return !function(e) { 17468 return e.classList.contains(a.animateClassName); 17469 }(e, a.animateClassName); 17470 }
17470))).forEach((function(e) { 17471 return c.observe(e); 17472 })); 17473 }, y = function() { 17474 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 17475 p(), Array.from(document.querySelectorAll(a.selector)).forEach(d), u(e), b(); 17476 }; 17477 t.default = function() { 17478 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a; 17479 if (u(e), "undefined" == typeof window) return console.warn(o), { 17480 elements: l, 17481 disable: v, 17482 enable: b, 17483 reset: y 17484 }; 17485 if (!window.IntersectionObserver) throw f(), Error(s); 17486 return m() ? f() : b(), { 17487 elements: l, 17488 disable: v, 17489 enable: b, 17490 reset: y 17491 }; 17492 }; 17493 }, function(e, t, n) {} ]).default; 17494 }, function(e, t, n) { 17495 !function() { 17496 "use strict"; 17497 e.exports = { 17498 polyfill: function() { 17499 var e = window, t = document; 17500 if (!("scrollBehavior" in t.documentElement.style) || !0 === e.__forceSmoothScrollPolyfill__) { 17501 var n, i = e.HTMLElement || e.Element, r = { 17502 scroll: e.scroll || e.scrollTo, 17503 scrollBy: e.scrollBy, 17504 elementScroll: i.prototype.scroll || a, 17505 scrollIntoView: i.prototype.scrollIntoView 17506 }, o = e.performance && e.performance.now ? e.performance.now.bind(e.performance) : Date.now, s = (n = e.navigator.userAgent, 17507 new RegExp([ "MSIE ", "Trident/", "Edge/" ].join("|")).test(n) ? 1 : 0); 17508 e.scroll = e.scrollTo = function() { 17509 void 0 !== arguments[0] && (!0 !== l(arguments[0]) ? p.call(e, t.body, void 0 !== arguments[0].left ? ~~arguments[0].left : e.scrollX || e.pageXOffset, void 0 !== arguments[0].top ? ~~arguments[0].top : e.scrollY || e.pageYOffset) : r.scroll.call(e, void 0 !== arguments[0].left ? arguments[0].left : "object" != typeof arguments[0] ? arguments[0] : e.scrollX || e.pageXOffset, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : e.scrollY || e.pageYOffset)); 17510 }, e.scrollBy = function() { 17511 void 0 !== arguments[0] && (l(arguments[0]) ? r.scrollBy.call(e, void 0 !== arguments[0].left ? arguments[0].left : "object" != typeof arguments[0] ? arguments[0] : 0, void 0 !== arguments[0].top ? arguments[0].top : void 0 !== arguments[1] ? arguments[1] : 0) : p.call(e, t.body, ~~arguments[0].left + (e.scrollX || e.pageXOffset), ~~arguments[0].top + (e.scrollY || e.pageYOffset))); 17512 }, i.prototype.scroll = i.prototype.scrollTo = function() { 17513 if (void 0 !== arguments[0]) if (!0 !== l(arguments[0])) { 17514 var e = arguments[0].left, t = arguments[0].top; 17515 p.call(this, this, void 0 === e ? this.scrollLeft : ~~e, void 0 === t ? this.scrollTop : ~~t); 17516 } else { 17517 if ("number" == typeof arguments[0] && void 0 === arguments[1]) throw new SyntaxError("Value could not be converted"); 17518 r.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left : "object" != typeof arguments[0] ? ~~arguments[0] : this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top : void 0 !== arguments[1] ? ~~arguments[1] : this.scrollTop); 17519 } 17520 }, i.prototype.scrollBy = function() { 17521 void 0 !== arguments[0] && (!0 !== l(arguments[0]) ? this.scroll({ 17522 left: ~~arguments[0].left + this.scrollLeft, 17523 top: ~~arguments[0].top + this.scrollTop, 17524 behavior: arguments[0].behavior 17525 }) : r.elementScroll.call(this, void 0 !== arguments[0].left ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft, void 0 !== arguments[0].top ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop)); 17526 }, i.prototype.scrollIntoView = function() { 17527 if (!0 !== l(arguments[0])) { 17528 var n = h(this), i = n.getBoundingClientRect(), o = this.getBoundingClientRect(); 17529 n !== t.body ? (p.call(this, n, n.scrollLeft + o.left - i.left, n.scrollTop + o.top - i.top), 17530 "fixed" !== e.getComputedStyle(n).position && e.scrollBy({ 17531 left: i.left, 17532 top: i.top, 17533 behavior: "smooth" 17534 })) : e.scrollBy({ 17535 left: o.left, 17536 top: o.top, 17537 behavior: "smooth" 17538 }); 17539 } else r.scrollIntoView.call(this, void 0 === arguments[0] || arguments[0]); 17540 }; 17541 } 17542 function a(e, t) { 17543 this.scrollLeft = e, this.scrollTop = t; 17544 } 17545 function l(e) { 17546 if (null === e || "object" != typeof e || void 0 === e.behavior || "auto" === e.behavior || "instant" === e.behavior) return !0; 17547 if ("object" == typeof e && "smooth" === e.behavior) return !1; 17548 throw new TypeError("behavior member of ScrollOptions " + e.behavior + " is not a valid value for enumeration ScrollBehavior."); 17549 } 17550 function c(e, t) { 17551 return "Y" === t ? e.clientHeight + s < e.scrollHeight : "X" === t ? e.clientWidth + s < e.scrollWidth : void 0; 17552 } 17553 function u(t, n) { 17554 var i = e.getComputedStyle(t, null)["overflow" + n]; 17555 return "auto" === i || "scroll" === i; 17556 } 17557 function d(e) { 17558 var t = c(e, "Y") && u(e, "Y"), n = c(e, "X") && u(e, "X"); 17559 return t || n; 17560 } 17561 function h(e) { 17562 for (;e !== t.body && !1 === d(e); ) e = e.parentNode || e.host; 17563 return e; 17564 } 17565 function f(t) { 17566 var n, i, r, s, a = (o() - t.startTime) / 468; 17567 s = a = a > 1 ? 1 : a, n = .5 * (1 - Math.cos(Math.PI * s)), i = t.startX + (t.x - t.startX) * n, 17568 r = t.startY + (t.y - t.startY) * n, t.method.call(t.scrollable, i, r), i === t.x && r === t.y || e.requestAnimationFrame(f.bind(e, t)); 17569 } 17570 function p(n, i, s) { 17571 var l, c, u, d, h = o(); 17572 n === t.body ? (l = e, c = e.scrollX || e.pageXOffset, u = e.scrollY || e.pageYOffset, 17573 d = r.scroll) : (l = n, c = n.scrollLeft, u = n.scrollTop, d = a), f({ 17574 scrollable: l, 17575 method: d, 17576 startTime: h,
17577 startX: c, 17578 startY: u, 17579 x: i, 17580 y: s 17581 }); 17582 } 17583 } 17584 }; 17585 }(); 17586 }, function(e, t, n) { 17587 "use strict"; 17588 var i = "bfred-it:object-fit-images", r = /(object-fit|object-position)\s*:\s*([-.\w\s%]+)/g, o = "undefined" == typeof Image ? { 17589 style: { 17590 "object-position": 1 17591 } 17592 } : new Image, s = "object-fit" in o.style, a = "object-position" in o.style, l = "background-size" in o.style, c = "string" == typeof o.currentSrc, u = o.getAttribute, d = o.setAttribute, h = !1; 17593 function f(e, t, n) { 17594 var i = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='" + (t || 1) + "' height='" + (n || 0) + "'%3E%3C/svg%3E"; 17595 u.call(e, "src") !== i && d.call(e, "src", i); 17596 } 17597 function p(e, t) { 17598 e.naturalWidth ? t(e) : setTimeout(p, 100, e, t); 17599 } 17600 function m(e) { 17601 var t = function(e) { 17602 for (var t, n = getComputedStyle(e).fontFamily, i = {}; null !== (t = r.exec(n)); ) i[t[1]] = t[2]; 17603 return i; 17604 }(e), n = e[i]; 17605 if (t["object-fit"] = t["object-fit"] || "fill", !n.img) { 17606 if ("fill" === t["object-fit"]) return; 17607 if (!n.skipTest && s && !t["object-position"]) return; 17608 } 17609 if (!n.img) { 17610 n.img = new Image(e.width, e.height), n.img.srcset = u.call(e, "data-ofi-srcset") || e.srcset, 17611 n.img.src = u.call(e, "data-ofi-src") || e.src, d.call(e, "data-ofi-src", e.src), 17612 e.srcset && d.call(e, "data-ofi-srcset", e.srcset), f(e, e.naturalWidth || e.width, e.naturalHeight || e.height), 17613 e.srcset && (e.srcset = ""); 17614 try { 17615 !function(e) { 17616 var t = { 17617 get: function(t) { 17618 return e[i].img[t || "src"]; 17619 }, 17620 set: function(t, n) { 17621 return e[i].img[n || "src"] = t, d.call(e, "data-ofi-" + n, t), m(e), t; 17622 } 17623 }; 17624 Object.defineProperty(e, "src", t), Object.defineProperty(e, "currentSrc", { 17625 get: function() { 17626 return t.get("currentSrc"); 17627 } 17628 }), Object.defineProperty(e, "srcset", { 17629 get: function() { 17630 return t.get("srcset"); 17631 }, 17632 set: function(e) { 17633 return t.set(e, "srcset"); 17634 } 17635 }); 17636 }(e); 17637 } catch (e) { 17638 window.console && console.warn("https://bit.ly/ofi-old-browser"); 17639 } 17640 } 17641 !function(e) { 17642 if (e.srcset && !c && window.picturefill) { 17643 var t = window.picturefill._; 17644 e[t.ns] && e[t.ns].evaled || t.fillImg(e, { 17645 reselect: !0 17646 }), e[t.ns].curSrc || (e[t.ns].supported = !1, t.fillImg(e, { 17647 reselect: !0 17648 })), e.currentSrc = e[t.ns].curSrc || e.src; 17649 } 17650 }(n.img), e.style.backgroundImage = 'url("' + (n.img.currentSrc || n.img.src).replace(/"/g, '\\"') + '")', 17651 e.style.backgroundPosition = t["object-position"] || "center", e.style.backgroundRepeat = "no-repeat", 17652 e.style.backgroundOrigin = "content-box", /scale-down/.test(t["object-fit"]) ? p(n.img, (function() { 17653 n.img.naturalWidth > e.width || n.img.naturalHeight > e.height ? e.style.backgroundSize = "contain" : e.style.backgroundSize = "auto"; 17654 })) : e.style.backgroundSize = t["object-fit"].replace("none", "auto").replace("fill", "100% 100%"), 17655 p(n.img, (function(t) {
17656 f(e, t.naturalWidth, t.naturalHeight); 17657 })); 17658 } 17659 function g(e, t) { 17660 var n = !h && !e; 17661 if (t = t || {}, e = e || "img", a && !t.skipTest || !l) return !1; 17662 "img" === e ? e = document.getElementsByTagName("img") : "string" == typeof e ? e = document.querySelectorAll(e) : "length" in e || (e = [ e ]); 17663 for (var r = 0; r < e.length; r++) e[r][i] = e[r][i] || { 17664 skipTest: t.skipTest 17665 }, m(e[r]); 17666 n && (document.body.addEventListener("load", (function(e) { 17667 "IMG" === e.target.tagName && g(e.target, { 17668 skipTest: t.skipTest 17669 }); 17670 }), !0), h = !0, e = "img"), t.watchMQ && window.addEventListener("resize", g.bind(null, e, { 17671 skipTest: t.skipTest 17672 })); 17673 } 17674 g.supportsObjectFit = s, g.supportsObjectPosition = a, function() { 17675 function e(e, t) { 17676 return e[i] && e[i].img && ("src" === t || "srcset" === t) ? e[i].img : e; 17677 } 17678 a || (HTMLImageElement.prototype.getAttribute = function(t) { 17679 return u.call(e(this, t), t); 17680 }, HTMLImageElement.prototype.setAttribute = function(t, n) { 17681 return d.call(e(this, t), t, String(n)); 17682 }); 17683 }(), e.exports = g; 17684 }, function(e, t, n) { 17685 e.exports = function(e) { 17686 "use strict"; 17687 e = e && e.hasOwnProperty("default") ? e.default : e; 17688 var t = { 17689 aliceblue: [ 240, 248, 255 ], 17690 antiquewhite: [ 250, 235, 215 ], 17691 aqua: [ 0, 255, 255 ], 17692 aquamarine: [ 127, 255, 212 ], 17693 azure: [ 240, 255, 255 ], 17694 beige: [ 245, 245, 220 ], 17695 bisque: [ 255, 228, 196 ], 17696 black: [ 0, 0, 0 ], 17697 blanchedalmond: [ 255, 235, 205 ], 17698 blue: [ 0, 0, 255 ], 17699 blueviolet: [ 138, 43, 226 ], 17700 brown: [ 165, 42, 42 ], 17701 burlywood: [ 222, 184, 135 ], 17702 cadetblue: [ 95, 158, 160 ], 17703 chartreuse: [ 127, 255, 0 ], 17704 chocolate: [ 210, 105, 30 ], 17705 coral: [ 255, 127, 80 ], 17706 cornflowerblue: [ 100, 149, 237 ], 17707 cornsilk: [ 255, 248, 220 ], 17708 crimson: [ 220, 20, 60 ], 17709 cyan: [ 0, 255, 255 ], 17710 darkblue: [ 0, 0, 139 ], 17711 darkcyan: [ 0, 139, 139 ], 17712 darkgoldenrod: [ 184, 134, 11 ], 17713 darkgray: [ 169, 169, 169 ], 17714 darkgreen: [ 0, 100, 0 ], 17715 darkgrey: [ 169, 169, 169 ], 17716 darkkhaki: [ 189, 183, 107 ], 17717 darkmagenta: [ 139, 0, 139 ], 17718 darkolivegreen: [ 85, 107, 47 ], 17719 darkorange: [ 255, 140, 0 ], 17720 darkorchid: [ 153, 50, 204 ], 17721 darkred: [ 139, 0, 0 ], 17722 darksalmon: [ 233, 150, 122 ], 17723 darkseagreen: [ 143, 188, 143 ], 17724 darkslateblue: [ 72, 61, 139 ], 17725 darkslategray: [ 47, 79, 79 ], 17726 darkslategrey: [ 47, 79, 79 ], 17727 darkturquoise: [ 0, 206, 209 ], 17728 darkviolet: [ 148, 0, 211 ], 17729 deeppink: [ 255, 20, 147 ], 17730 deepskyblue: [ 0, 191, 255 ], 17731 dimgray: [ 105, 105, 105 ], 17732 dimgrey: [ 105, 105, 105 ], 17733 dodgerblue: [ 30, 144, 255 ], 17734 firebrick: [ 178, 34, 34 ], 17735 floralwhite: [ 255, 250, 240 ], 17736 forestgreen: [ 34, 139, 34 ], 17737 fuchsia: [ 255, 0, 255 ], 17738 gainsboro: [ 220, 220, 220 ], 17739 ghostwhite: [ 248, 248, 255 ], 17740 gold: [ 255, 215, 0 ], 17741 goldenrod: [ 218, 165, 32 ], 17742 gray: [ 128, 128, 128 ], 17743 green: [ 0, 128, 0 ], 17744 greenyellow: [ 173, 255, 47 ], 17745 grey: [ 128, 128, 128 ], 17746 honeydew: [ 240, 255, 240 ], 17747 hotpink: [ 255, 105, 180 ], 17748 indianred: [ 205, 92, 92 ], 17749 indigo: [ 75, 0, 130 ], 17750 ivory: [ 255, 255, 240 ], 17751 khaki: [ 240, 230, 140 ], 17752 lavender: [ 230, 230, 250 ], 17753 lavenderblush: [ 255, 240, 245 ], 17754 lawngreen: [ 124, 252, 0 ], 17755 lemonchiffon: [ 255, 250, 205 ], 17756 lightblue: [ 173, 216, 230 ], 17757 lightcoral: [ 240, 128, 128 ], 17758 lightcyan: [ 224, 255, 255 ], 17759 lightgoldenrodyellow: [ 250, 250, 210 ], 17760 lightgray: [ 211, 211, 211 ], 17761 lightgreen: [ 144, 238, 144 ], 17762 lightgrey: [ 211, 211, 211 ], 17763 lightpink: [ 255, 182, 193 ], 17764 lightsalmon: [ 255, 160, 122 ], 17765 lightseagreen: [ 32, 178, 170 ], 17766 lightskyblue: [ 135, 206, 250 ], 17767 lightslategray: [ 119, 136, 153 ], 17768 lightslategrey: [ 119, 136, 153 ], 17769 lightsteelblue: [ 176, 196, 222 ], 17770 lightyellow: [ 255, 255, 224 ], 17771 lime: [ 0, 255, 0 ], 17772 limegreen: [ 50, 205, 50 ], 17773 linen: [ 250, 240, 230 ], 17774 magenta: [ 255, 0, 255 ], 17775 maroon: [ 128, 0, 0 ], 17776 mediumaquamarine: [ 102, 205, 170 ], 17777 mediumblue: [ 0, 0, 205 ], 17778 mediumorchid: [ 186, 85, 211 ], 17779 mediumpurple: [ 147, 112, 219 ], 17780 mediumseagreen: [ 60, 179, 113 ], 17781 mediumslateblue: [ 123, 104, 238 ], 17782 mediumspringgreen: [ 0, 250, 154 ], 17783 mediumturquoise: [ 72, 209, 204 ], 17784 mediumvioletred: [ 199, 21, 133 ], 17785 midnightblue: [ 25, 25, 112 ], 17786 mintcream: [ 245, 255, 250 ], 17787 mistyrose: [ 255, 228, 225 ], 17788 moccasin: [ 255, 228, 181 ], 17789 navajowhite: [ 255, 222, 173 ], 17790 navy: [ 0, 0, 128 ], 17791 oldlace: [ 253, 245, 230 ], 17792 olive: [ 128, 128, 0 ], 17793 olivedrab: [ 107, 142, 35 ], 17794 orange: [ 255, 165, 0 ], 17795 orangered: [ 255, 69, 0 ], 17796 orchid: [ 218, 112, 214 ], 17797 palegoldenrod: [ 238, 232, 170 ], 17798 palegreen: [ 152, 251, 152 ], 17799 paleturquoise: [ 175, 238, 238 ], 17800 palevioletred: [ 219, 112, 147 ], 17801 papayawhip: [ 255, 239, 213 ], 17802 peachpuff: [ 255, 218, 185 ], 17803 peru: [ 205, 133, 63 ], 17804 pink: [ 255, 192, 203 ], 17805 plum: [ 221, 160, 221 ], 17806 powderblue: [ 176, 224, 230 ],
vendor: 4,347 bytes, lines 17807-17917
17807 purple: [ 128, 0, 128 ], 17808 rebeccapurple: [ 102, 51, 153 ], 17809 red: [ 255, 0, 0 ], 17810 rosybrown: [ 188, 143, 143 ], 17811 royalblue: [ 65, 105, 225 ], 17812 saddlebrown: [ 139, 69, 19 ], 17813 salmon: [ 250, 128, 114 ], 17814 sandybrown: [ 244, 164, 96 ], 17815 seagreen: [ 46, 139, 87 ], 17816 seashell: [ 255, 245, 238 ], 17817 sienna: [ 160, 82, 45 ], 17818 silver: [ 192, 192, 192 ], 17819 skyblue: [ 135, 206, 235 ], 17820 slateblue: [ 106, 90, 205 ], 17821 slategray: [ 112, 128, 144 ], 17822 slategrey: [ 112, 128, 144 ], 17823 snow: [ 255, 250, 250 ], 17824 springgreen: [ 0, 255, 127 ], 17825 steelblue: [ 70, 130, 180 ], 17826 tan: [ 210, 180, 140 ], 17827 teal: [ 0, 128, 128 ], 17828 thistle: [ 216, 191, 216 ], 17829 tomato: [ 255, 99, 71 ], 17830 turquoise: [ 64, 224, 208 ], 17831 violet: [ 238, 130, 238 ], 17832 wheat: [ 245, 222, 179 ], 17833 white: [ 255, 255, 255 ], 17834 whitesmoke: [ 245, 245, 245 ], 17835 yellow: [ 255, 255, 0 ], 17836 yellowgreen: [ 154, 205, 50 ] 17837 }, n = function(e, t) { 17838 return e(t = { 17839 exports: {} 17840 }, t.exports), t.exports; 17841 }((function(e) { 17842 var n = {}; 17843 for (var i in t) t.hasOwnProperty(i) && (n[t[i]] = i); 17844 var r = e.exports = { 17845 rgb: { 17846 channels: 3, 17847 labels: "rgb" 17848 }, 17849 hsl: { 17850 channels: 3, 17851 labels: "hsl" 17852 }, 17853 hsv: { 17854 channels: 3, 17855 labels: "hsv" 17856 }, 17857 hwb: { 17858 channels: 3, 17859 labels: "hwb" 17860 }, 17861 cmyk: { 17862 channels: 4, 17863 labels: "cmyk" 17864 }, 17865 xyz: { 17866 channels: 3, 17867 labels: "xyz" 17868 }, 17869 lab: { 17870 channels: 3, 17871 labels: "lab" 17872 }, 17873 lch: { 17874 channels: 3, 17875 labels: "lch" 17876 }, 17877 hex: { 17878 channels: 1, 17879 labels: [ "hex" ] 17880 }, 17881 keyword: { 17882 channels: 1, 17883 labels: [ "keyword" ] 17884 }, 17885 ansi16: { 17886 channels: 1, 17887 labels: [ "ansi16" ] 17888 }, 17889 ansi256: { 17890 channels: 1, 17891 labels: [ "ansi256" ] 17892 }, 17893 hcg: { 17894 channels: 3, 17895 labels: [ "h", "c", "g" ] 17896 }, 17897 apple: { 17898 channels: 3, 17899 labels: [ "r16", "g16", "b16" ] 17900 }, 17901 gray: { 17902 channels: 1, 17903 labels: [ "gray" ] 17904 } 17905 }; 17906 for (var o in r) if (r.hasOwnProperty(o)) { 17907 if (!("channels" in r[o])) throw new Error("missing channels property: " + o); 17908 if (!("labels" in r[o])) throw new Error("missing channel labels property: " + o); 17909 if (r[o].labels.length !== r[o].channels) throw new Error("channel and label counts mismatch: " + o); 17910 var s = r[o].channels, a = r[o].labels; 17911 delete r[o].channels, delete r[o].labels, Object.defineProperty(r[o], "channels", { 17912 value: s 17913 }), Object.defineProperty(r[o], "labels", { 17914 value: a 17915 }); 17916 } 17917 r.rgb.hsl = function(e) {
vendor: 13,526 bytes, lines 17918-18130
17918 var t, n, i = e[0] / 255, r = e[1] / 255, o = e[2] / 255, s = Math.min(i, r, o), a = Math.max(i, r, o), l = a - s; 17919 return a === s ? t = 0 : i === a ? t = (r - o) / l : r === a ? t = 2 + (o - i) / l : o === a && (t = 4 + (i - r) / l), 17920 (t = Math.min(60 * t, 360)) < 0 && (t += 360), n = (s + a) / 2, [ t, 100 * (a === s ? 0 : n <= .5 ? l / (a + s) : l / (2 - a - s)), 100 * n ]; 17921 }, r.rgb.hsv = function(e) { 17922 var t, n, i, r, o, s = e[0] / 255, a = e[1] / 255, l = e[2] / 255, c = Math.max(s, a, l), u = c - Math.min(s, a, l), d = function(e) { 17923 return (c - e) / 6 / u + .5; 17924 }; 17925 return 0 === u ? r = o = 0 : (o = u / c, t = d(s), n = d(a), i = d(l), s === c ? r = i - n : a === c ? r = 1 / 3 + t - i : l === c && (r = 2 / 3 + n - t), 17926 r < 0 ? r += 1 : r > 1 && (r -= 1)), [ 360 * r, 100 * o, 100 * c ]; 17927 }, r.rgb.hwb = function(e) { 17928 var t = e[0], n = e[1], i = e[2]; 17929 return [ r.rgb.hsl(e)[0], 1 / 255 * Math.min(t, Math.min(n, i)) * 100, 100 * (i = 1 - 1 / 255 * Math.max(t, Math.max(n, i))) ]; 17930 }, r.rgb.cmyk = function(e) { 17931 var t, n = e[0] / 255, i = e[1] / 255, r = e[2] / 255; 17932 return [ 100 * ((1 - n - (t = Math.min(1 - n, 1 - i, 1 - r))) / (1 - t) || 0), 100 * ((1 - i - t) / (1 - t) || 0), 100 * ((1 - r - t) / (1 - t) || 0), 100 * t ]; 17933 }, r.rgb.keyword = function(e) { 17934 var i = n[e]; 17935 if (i) return i; 17936 var r, o, s, a = 1 / 0; 17937 for (var l in t) if (t.hasOwnProperty(l)) { 17938 var c = t[l], u = (o = e, s = c, Math.pow(o[0] - s[0], 2) + Math.pow(o[1] - s[1], 2) + Math.pow(o[2] - s[2], 2)); 17939 u < a && (a = u, r = l); 17940 } 17941 return r; 17942 }, r.keyword.rgb = function(e) { 17943 return t[e]; 17944 }, r.rgb.xyz = function(e) { 17945 var t = e[0] / 255, n = e[1] / 255, i = e[2] / 255; 17946 return [ 100 * (.4124 * (t = t > .04045 ? Math.pow((t + .055) / 1.055, 2.4) : t / 12.92) + .3576 * (n = n > .04045 ? Math.pow((n + .055) / 1.055, 2.4) : n / 12.92) + .1805 * (i = i > .04045 ? Math.pow((i + .055) / 1.055, 2.4) : i / 12.92)), 100 * (.2126 * t + .7152 * n + .0722 * i), 100 * (.0193 * t + .1192 * n + .9505 * i) ]; 17947 }, r.rgb.lab = function(e) { 17948 var t = r.rgb.xyz(e), n = t[0], i = t[1], o = t[2]; 17949 return i /= 100, o /= 108.883, n = (n /= 95.047) > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, 17950 [ 116 * (i = i > .008856 ? Math.pow(i, 1 / 3) : 7.787 * i + 16 / 116) - 16, 500 * (n - i), 200 * (i - (o = o > .008856 ? Math.pow(o, 1 / 3) : 7.787 * o + 16 / 116)) ]; 17951 }, r.hsl.rgb = function(e) { 17952 var t, n, i, r, o, s = e[0] / 360, a = e[1] / 100, l = e[2] / 100; 17953 if (0 === a) return [ o = 255 * l, o, o ]; 17954 t = 2 * l - (n = l < .5 ? l * (1 + a) : l + a - l * a), r = [ 0, 0, 0 ]; 17955 for (var c = 0; c < 3; c++) (i = s + 1 / 3 * -(c - 1)) < 0 && i++, i > 1 && i--, 17956 o = 6 * i < 1 ? t + 6 * (n - t) * i : 2 * i < 1 ? n : 3 * i < 2 ? t + (n - t) * (2 / 3 - i) * 6 : t, 17957 r[c] = 255 * o; 17958 return r; 17959 }, r.hsl.hsv = function(e) { 17960 var t = e[0], n = e[1] / 100, i = e[2] / 100, r = n, o = Math.max(i, .01); 17961 return n *= (i *= 2) <= 1 ? i : 2 - i, r *= o <= 1 ? o : 2 - o, [ t, 100 * (0 === i ? 2 * r / (o + r) : 2 * n / (i + n)), (i + n) / 2 * 100 ]; 17962 }, r.hsv.rgb = function(e) { 17963 var t = e[0] / 60, n = e[1] / 100, i = e[2] / 100, r = Math.floor(t) % 6, o = t - Math.floor(t), s = 255 * i * (1 - n), a = 255 * i * (1 - n * o), l = 255 * i * (1 - n * (1 - o)); 17964 switch (i *= 255, r) { 17965 case 0: 17966 return [ i, l, s ]; 17967 17968 case 1: 17969 return [ a, i, s ]; 17970 17971 case 2: 17972 return [ s, i, l ]; 17973 17974 case 3: 17975 return [ s, a, i ]; 17976 17977 case 4: 17978 return [ l, s, i ]; 17979 17980 case 5: 17981 return [ i, s, a ]; 17982 } 17983 }, r.hsv.hsl = function(e) { 17984 var t, n, i, r = e[0], o = e[1] / 100, s = e[2] / 100, a = Math.max(s, .01); 17985 return i = (2 - o) * s, n = o * a, [ r, 100 * (n = (n /= (t = (2 - o) * a) <= 1 ? t : 2 - t) || 0), 100 * (i /= 2) ]; 17986 }, r.hwb.rgb = function(e) { 17987 var t, n, i, r, o, s, a, l = e[0] / 360, c = e[1] / 100, u = e[2] / 100, d = c + u; 17988 switch (d > 1 && (c /= d, u /= d), i = 6 * l - (t = Math.floor(6 * l)), 0 != (1 & t) && (i = 1 - i), 17989 r = c + i * ((n = 1 - u) - c), t) { 17990 default: 17991 case 6: 17992 case 0: 17993 o = n, s = r, a = c; 17994 break; 17995 17996 case 1: 17997 o = r, s = n, a = c; 17998 break; 17999 18000 case 2: 18001 o = c, s = n, a = r; 18002 break; 18003 18004 case 3: 18005 o = c, s = r, a = n; 18006 break; 18007 18008 case 4: 18009 o = r, s = c, a = n; 18010 break; 18011 18012 case 5: 18013 o = n, s = c, a = r; 18014 } 18015 return [ 255 * o, 255 * s, 255 * a ]; 18016 }, r.cmyk.rgb = function(e) { 18017 var t = e[0] / 100, n = e[1] / 100, i = e[2] / 100, r = e[3] / 100; 18018 return [ 255 * (1 - Math.min(1, t * (1 - r) + r)), 255 * (1 - Math.min(1, n * (1 - r) + r)), 255 * (1 - Math.min(1, i * (1 - r) + r)) ]; 18019 }, r.xyz.rgb = function(e) { 18020 var t, n, i, r = e[0] / 100, o = e[1] / 100, s = e[2] / 100; 18021 return n = -.9689 * r + 1.8758 * o + .0415 * s, i = .0557 * r + -.204 * o + 1.057 * s, 18022 t = (t = 3.2406 * r + -1.5372 * o + -.4986 * s) > .0031308 ? 1.055 * Math.pow(t, 1 / 2.4) - .055 : 12.92 * t, 18023 n = n > .0031308 ? 1.055 * Math.pow(n, 1 / 2.4) - .055 : 12.92 * n, i = i > .0031308 ? 1.055 * Math.pow(i, 1 / 2.4) - .055 : 12.92 * i, 18024 [ 255 * (t = Math.min(Math.max(0, t), 1)), 255 * (n = Math.min(Math.max(0, n), 1)), 255 * (i = Math.min(Math.max(0, i), 1)) ]; 18025 }, r.xyz.lab = function(e) { 18026 var t = e[0], n = e[1], i = e[2]; 18027 return n /= 100, i /= 108.883, t = (t /= 95.047) > .008856 ? Math.pow(t, 1 / 3) : 7.787 * t + 16 / 116, 18028 [ 116 * (n = n > .008856 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116) - 16, 500 * (t - n), 200 * (n - (i = i > .008856 ? Math.pow(i, 1 / 3) : 7.787 * i + 16 / 116)) ]; 18029 }, r.lab.xyz = function(e) { 18030 var t, n, i, r = e[0]; 18031 t = e[1] / 500 + (n = (r + 16) / 116), i = n - e[2] / 200; 18032 var o = Math.pow(n, 3), s = Math.pow(t, 3), a = Math.pow(i, 3); 18033 return n = o > .008856 ? o : (n - 16 / 116) / 7.787, t = s > .008856 ? s : (t - 16 / 116) / 7.787, 18034 i = a > .008856 ? a : (i - 16 / 116) / 7.787, [ t *= 95.047, n *= 100, i *= 108.883 ]; 18035 }, r.lab.lch = function(e) { 18036 var t, n = e[0], i = e[1], r = e[2]; 18037 return (t = 360 * Math.atan2(r, i) / 2 / Math.PI) < 0 && (t += 360), [ n, Math.sqrt(i * i + r * r), t ]; 18038 }, r.lch.lab = function(e) { 18039 var t, n = e[0], i = e[1]; 18040 return t = e[2] / 360 * 2 * Math.PI, [ n, i * Math.cos(t), i * Math.sin(t) ]; 18041 }, r.rgb.ansi16 = function(e) { 18042 var t = e[0], n = e[1], i = e[2], o = 1 in arguments ? arguments[1] : r.rgb.hsv(e)[2]; 18043 if (0 === (o = Math.round(o / 50))) return 30; 18044 var s = 30 + (Math.round(i / 255) << 2 | Math.round(n / 255) << 1 | Math.round(t / 255)); 18045 return 2 === o && (s += 60), s; 18046 }, r.hsv.ansi16 = function(e) { 18047 return r.rgb.ansi16(r.hsv.rgb(e), e[2]); 18048 }, r.rgb.ansi256 = function(e) { 18049 var t = e[0], n = e[1], i = e[2]; 18050 return t === n && n === i ? t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(i / 255 * 5); 18051 }, r.ansi16.rgb = function(e) { 18052 var t = e % 10; 18053 if (0 === t || 7 === t) return e > 50 && (t += 3.5), [ t = t / 10.5 * 255, t, t ]; 18054 var n = .5 * (1 + ~~(e > 50)); 18055 return [ (1 & t) * n * 255, (t >> 1 & 1) * n * 255, (t >> 2 & 1) * n * 255 ]; 18056 }, r.ansi256.rgb = function(e) { 18057 if (e >= 232) { 18058 var t = 10 * (e - 232) + 8; 18059 return [ t, t, t ]; 18060 } 18061 var n; 18062 return e -= 16, [ Math.floor(e / 36) / 5 * 255, Math.floor((n = e % 36) / 6) / 5 * 255, n % 6 / 5 * 255 ]; 18063 }, r.rgb.hex = function(e) { 18064 var t = (((255 & Math.round(e[0])) << 16) + ((255 & Math.round(e[1])) << 8) + (255 & Math.round(e[2]))).toString(16).toUpperCase(); 18065 return "000000".substring(t.length) + t; 18066 }, r.hex.rgb = function(e) { 18067 var t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); 18068 if (!t) return [ 0, 0, 0 ]; 18069 var n = t[0]; 18070 3 === t[0].length && (n = n.split("").map((function(e) { 18071 return e + e; 18072 })).join("")); 18073 var i = parseInt(n, 16); 18074 return [ i >> 16 & 255, i >> 8 & 255, 255 & i ]; 18075 }, r.rgb.hcg = function(e) { 18076 var t, n = e[0] / 255, i = e[1] / 255, r = e[2] / 255, o = Math.max(Math.max(n, i), r), s = Math.min(Math.min(n, i), r), a = o - s; 18077 return t = a <= 0 ? 0 : o === n ? (i - r) / a % 6 : o === i ? 2 + (r - n) / a : 4 + (n - i) / a + 4, 18078 t /= 6, [ 360 * (t %= 1), 100 * a, 100 * (a < 1 ? s / (1 - a) : 0) ]; 18079 }, r.hsl.hcg = function(e) { 18080 var t = e[1] / 100, n = e[2] / 100, i = 1, r = 0; 18081 return (i = n < .5 ? 2 * t * n : 2 * t * (1 - n)) < 1 && (r = (n - .5 * i) / (1 - i)), 18082 [ e[0], 100 * i, 100 * r ]; 18083 }, r.hsv.hcg = function(e) { 18084 var t = e[1] / 100, n = e[2] / 100, i = t * n, r = 0; 18085 return i < 1 && (r = (n - i) / (1 - i)), [ e[0], 100 * i, 100 * r ]; 18086 }, r.hcg.rgb = function(e) { 18087 var t = e[0] / 360, n = e[1] / 100, i = e[2] / 100; 18088 if (0 === n) return [ 255 * i, 255 * i, 255 * i ]; 18089 var r, o = [ 0, 0, 0 ], s = t % 1 * 6, a = s % 1, l = 1 - a; 18090 switch (Math.floor(s)) { 18091 case 0: 18092 o[0] = 1, o[1] = a, o[2] = 0; 18093 break; 18094 18095 case 1: 18096 o[0] = l, o[1] = 1, o[2] = 0; 18097 break; 18098 18099 case 2: 18100 o[0] = 0, o[1] = 1, o[2] = a; 18101 break; 18102 18103 case 3: 18104 o[0] = 0, o[1] = l, o[2] = 1; 18105 break; 18106 18107 case 4: 18108 o[0] = a, o[1] = 0, o[2] = 1; 18109 break; 18110 18111 default: 18112 o[0] = 1, o[1] = 0, o[2] = l; 18113 } 18114 return r = (1 - n) * i, [ 255 * (n * o[0] + r), 255 * (n * o[1] + r), 255 * (n * o[2] + r) ]; 18115 }, r.hcg.hsv = function(e) { 18116 var t = e[1] / 100, n = t + e[2] / 100 * (1 - t), i = 0; 18117 return n > 0 && (i = t / n), [ e[0], 100 * i, 100 * n ]; 18118 }, r.hcg.hsl = function(e) { 18119 var t = e[1] / 100, n = e[2] / 100 * (1 - t) + .5 * t, i = 0; 18120 return n > 0 && n < .5 ? i = t / (2 * n) : n >= .5 && n < 1 && (i = t / (2 * (1 - n))), 18121 [ e[0], 100 * i, 100 * n ]; 18122 }, r.hcg.hwb = function(e) { 18123 var t = e[1] / 100, n = t + e[2] / 100 * (1 - t); 18124 return [ e[0], 100 * (n - t), 100 * (1 - n) ]; 18125 }, r.hwb.hcg = function(e) { 18126 var t = e[1] / 100, n = 1 - e[2] / 100, i = n - t, r = 0; 18127 return i < 1 && (r = (n - i) / (1 - i)), [ e[0], 100 * i, 100 * r ]; 18128 }, r.apple.rgb = function(e) { 18129 return [ e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255 ]; 18130 }, r.rgb.apple = function(e) {
18131 return [ e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535 ]; 18132 }, r.gray.rgb = function(e) { 18133 return [ e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255 ]; 18134 }, r.gray.hsl = r.gray.hsv = function(e) { 18135 return [ 0, 0, e[0] ]; 18136 }, r.gray.hwb = function(e) { 18137 return [ 0, 100, e[0] ]; 18138 }, r.gray.cmyk = function(e) { 18139 return [ 0, 0, 0, e[0] ]; 18140 }, r.gray.lab = function(e) { 18141 return [ e[0], 0, 0 ]; 18142 }, r.gray.hex = function(e) { 18143 var t = 255 & Math.round(e[0] / 100 * 255), n = ((t << 16) + (t << 8) + t).toString(16).toUpperCase(); 18144 return "000000".substring(n.length) + n; 18145 }, r.rgb.gray = function(e) { 18146 return [ (e[0] + e[1] + e[2]) / 3 / 255 * 100 ]; 18147 }; 18148 })); 18149 function i(e) { 18150 var t = function() { 18151 for (var e = {}, t = Object.keys(n), i = t.length, r = 0; r < i; r++) e[t[r]] = { 18152 distance: -1, 18153 parent: null 18154 }; 18155 return e; 18156 }(), i = [ e ]; 18157 for (t[e].distance = 0; i.length; ) for (var r = i.pop(), o = Object.keys(n[r]), s = o.length, a = 0; a < s; a++) { 18158 var l = o[a], c = t[l]; 18159 -1 === c.distance && (c.distance = t[r].distance + 1, c.parent = r, i.unshift(l)); 18160 } 18161 return t; 18162 } 18163 function r(e, t) { 18164 return function(n) { 18165 return t(e(n)); 18166 }; 18167 } 18168 function o(e, t) { 18169 for (var i = [ t[e].parent, e ], o = n[t[e].parent][e], s = t[e].parent; t[s].parent; ) i.unshift(t[s].parent), 18170 o = r(n[t[s].parent][s], o), s = t[s].parent; 18171 return o.conversion = i, o; 18172 } 18173 n.rgb, n.hsl, n.hsv, n.hwb, n.cmyk, n.xyz, n.lab, n.lch, n.hex, n.keyword, n.ansi16, 18174 n.ansi256, n.hcg, n.apple, n.gray; 18175 var s = {}; 18176 Object.keys(n).forEach((function(e) { 18177 s[e] = {}, Object.defineProperty(s[e], "channels", { 18178 value: n[e].channels 18179 }), Object.defineProperty(s[e], "labels", { 18180 value: n[e].labels 18181 }); 18182 var t = function(e) { 18183 for (var t = i(e), n = {}, r = Object.keys(t), s = r.length, a = 0; a < s; a++) { 18184 var l = r[a]; 18185 null !== t[l].parent && (n[l] = o(l, t)); 18186 } 18187 return n; 18188 }(e); 18189 Object.keys(t).forEach((function(n) { 18190 var i = t[n]; 18191 s[e][n] = function(e) { 18192 var t = function(t) { 18193 if (null == t) return t; 18194 arguments.length > 1 && (t = Array.prototype.slice.call(arguments)); 18195 var n = e(t); 18196 if ("object" == typeof n) for (var i = n.length, r = 0; r < i; r++) n[r] = Math.round(n[r]); 18197 return n; 18198 }; 18199 return "conversion" in e && (t.conversion = e.conversion), t; 18200 }(i), s[e][n].raw = function(e) { 18201 var t = function(t) { 18202 return null == t ? t : (arguments.length > 1 && (t = Array.prototype.slice.call(arguments)), 18203 e(t)); 18204 }; 18205 return "conversion" in e && (t.conversion = e.conversion), t; 18206 }(i); 18207 })); 18208 })); 18209 var a = s, l = { 18210 aliceblue: [ 240, 248, 255 ], 18211 antiquewhite: [ 250, 235, 215 ], 18212 aqua: [ 0, 255, 255 ], 18213 aquamarine: [ 127, 255, 212 ], 18214 azure: [ 240, 255, 255 ], 18215 beige: [ 245, 245, 220 ], 18216 bisque: [ 255, 228, 196 ], 18217 black: [ 0, 0, 0 ], 18218 blanchedalmond: [ 255, 235, 205 ], 18219 blue: [ 0, 0, 255 ], 18220 blueviolet: [ 138, 43, 226 ], 18221 brown: [ 165, 42, 42 ], 18222 burlywood: [ 222, 184, 135 ], 18223 cadetblue: [ 95, 158, 160 ], 18224 chartreuse: [ 127, 255, 0 ], 18225 chocolate: [ 210, 105, 30 ], 18226 coral: [ 255, 127, 80 ], 18227 cornflowerblue: [ 100, 149, 237 ], 18228 cornsilk: [ 255, 248, 220 ], 18229 crimson: [ 220, 20, 60 ], 18230 cyan: [ 0, 255, 255 ], 18231 darkblue: [ 0, 0, 139 ], 18232 darkcyan: [ 0, 139, 139 ], 18233 darkgoldenrod: [ 184, 134, 11 ], 18234 darkgray: [ 169, 169, 169 ], 18235 darkgreen: [ 0, 100, 0 ], 18236 darkgrey: [ 169, 169, 169 ], 18237 darkkhaki: [ 189, 183, 107 ], 18238 darkmagenta: [ 139, 0, 139 ], 18239 darkolivegreen: [ 85, 107, 47 ], 18240 darkorange: [ 255, 140, 0 ], 18241 darkorchid: [ 153, 50, 204 ], 18242 darkred: [ 139, 0, 0 ], 18243 darksalmon: [ 233, 150, 122 ], 18244 darkseagreen: [ 143, 188, 143 ], 18245 darkslateblue: [ 72, 61, 139 ], 18246 darkslategray: [ 47, 79, 79 ], 18247 darkslategrey: [ 47, 79, 79 ], 18248 darkturquoise: [ 0, 206, 209 ], 18249 darkviolet: [ 148, 0, 211 ], 18250 deeppink: [ 255, 20, 147 ], 18251 deepskyblue: [ 0, 191, 255 ], 18252 dimgray: [ 105, 105, 105 ], 18253 dimgrey: [ 105, 105, 105 ], 18254 dodgerblue: [ 30, 144, 255 ], 18255 firebrick: [ 178, 34, 34 ], 18256 floralwhite: [ 255, 250, 240 ], 18257 forestgreen: [ 34, 139, 34 ], 18258 fuchsia: [ 255, 0, 255 ], 18259 gainsboro: [ 220, 220, 220 ], 18260 ghostwhite: [ 248, 248, 255 ], 18261 gold: [ 255, 215, 0 ], 18262 goldenrod: [ 218, 165, 32 ], 18263 gray: [ 128, 128, 128 ], 18264 green: [ 0, 128, 0 ], 18265 greenyellow: [ 173, 255, 47 ], 18266 grey: [ 128, 128, 128 ], 18267 honeydew: [ 240, 255, 240 ], 18268 hotpink: [ 255, 105, 180 ], 18269 indianred: [ 205, 92, 92 ], 18270 indigo: [ 75, 0, 130 ], 18271 ivory: [ 255, 255, 240 ], 18272 khaki: [ 240, 230, 140 ], 18273 lavender: [ 230, 230, 250 ], 18274 lavenderblush: [ 255, 240, 245 ], 18275 lawngreen: [ 124, 252, 0 ], 18276 lemonchiffon: [ 255, 250, 205 ], 18277 lightblue: [ 173, 216, 230 ], 18278 lightcoral: [ 240, 128, 128 ], 18279 lightcyan: [ 224, 255, 255 ], 18280 lightgoldenrodyellow: [ 250, 250, 210 ], 18281 lightgray: [ 211, 211, 211 ], 18282 lightgreen: [ 144, 238, 144 ], 18283 lightgrey: [ 211, 211, 211 ], 18284 lightpink: [ 255, 182, 193 ], 18285 lightsalmon: [ 255, 160, 122 ], 18286 lightseagreen: [ 32, 178, 170 ], 18287 lightskyblue: [ 135, 206, 250 ], 18288 lightslategray: [ 119, 136, 153 ], 18289 lightslategrey: [ 119, 136, 153 ], 18290 lightsteelblue: [ 176, 196, 222 ], 18291 lightyellow: [ 255, 255, 224 ], 18292 lime: [ 0, 255, 0 ], 18293 limegreen: [ 50, 205, 50 ], 18294 linen: [ 250, 240, 230 ], 18295 magenta: [ 255, 0, 255 ], 18296 maroon: [ 128, 0, 0 ], 18297 mediumaquamarine: [ 102, 205, 170 ], 18298 mediumblue: [ 0, 0, 205 ], 18299 mediumorchid: [ 186, 85, 211 ], 18300 mediumpurple: [ 147, 112, 219 ], 18301 mediumseagreen: [ 60, 179, 113 ], 18302 mediumslateblue: [ 123, 104, 238 ], 18303 mediumspringgreen: [ 0, 250, 154 ], 18304 mediumturquoise: [ 72, 209, 204 ], 18305 mediumvioletred: [ 199, 21, 133 ], 18306 midnightblue: [ 25, 25, 112 ], 18307 mintcream: [ 245, 255, 250 ], 18308 mistyrose: [ 255, 228, 225 ], 18309 moccasin: [ 255, 228, 181 ], 18310 navajowhite: [ 255, 222, 173 ], 18311 navy: [ 0, 0, 128 ], 18312 oldlace: [ 253, 245, 230 ], 18313 olive: [ 128, 128, 0 ], 18314 olivedrab: [ 107, 142, 35 ], 18315 orange: [ 255, 165, 0 ], 18316 orangered: [ 255, 69, 0 ], 18317 orchid: [ 218, 112, 214 ], 18318 palegoldenrod: [ 238, 232, 170 ], 18319 palegreen: [ 152, 251, 152 ], 18320 paleturquoise: [ 175, 238, 238 ], 18321 palevioletred: [ 219, 112, 147 ], 18322 papayawhip: [ 255, 239, 213 ], 18323 peachpuff: [ 255, 218, 185 ], 18324 peru: [ 205, 133, 63 ], 18325 pink: [ 255, 192, 203 ], 18326 plum: [ 221, 160, 221 ], 18327 powderblue: [ 176, 224, 230 ],
18328 purple: [ 128, 0, 128 ], 18329 rebeccapurple: [ 102, 51, 153 ], 18330 red: [ 255, 0, 0 ], 18331 rosybrown: [ 188, 143, 143 ], 18332 royalblue: [ 65, 105, 225 ], 18333 saddlebrown: [ 139, 69, 19 ], 18334 salmon: [ 250, 128, 114 ], 18335 sandybrown: [ 244, 164, 96 ], 18336 seagreen: [ 46, 139, 87 ], 18337 seashell: [ 255, 245, 238 ], 18338 sienna: [ 160, 82, 45 ], 18339 silver: [ 192, 192, 192 ], 18340 skyblue: [ 135, 206, 235 ], 18341 slateblue: [ 106, 90, 205 ], 18342 slategray: [ 112, 128, 144 ], 18343 slategrey: [ 112, 128, 144 ], 18344 snow: [ 255, 250, 250 ], 18345 springgreen: [ 0, 255, 127 ], 18346 steelblue: [ 70, 130, 180 ], 18347 tan: [ 210, 180, 140 ], 18348 teal: [ 0, 128, 128 ], 18349 thistle: [ 216, 191, 216 ], 18350 tomato: [ 255, 99, 71 ], 18351 turquoise: [ 64, 224, 208 ], 18352 violet: [ 238, 130, 238 ], 18353 wheat: [ 245, 222, 179 ], 18354 white: [ 255, 255, 255 ], 18355 whitesmoke: [ 245, 245, 245 ], 18356 yellow: [ 255, 255, 0 ], 18357 yellowgreen: [ 154, 205, 50 ] 18358 }, c = { 18359 getRgba: u, 18360 getHsla: d, 18361 getRgb: function(e) { 18362 var t = u(e); 18363 return t && t.slice(0, 3); 18364 }, 18365 getHsl: function(e) { 18366 var t = d(e); 18367 return t && t.slice(0, 3); 18368 }, 18369 getHwb: h, 18370 getAlpha: function(e) { 18371 var t = u(e); 18372 return t || (t = d(e)) || (t = h(e)) ? t[3] : void 0; 18373 }, 18374 hexString: function(e, t) { 18375 return t = void 0 !== t && 3 === e.length ? t : e[3], "#" + v(e[0]) + v(e[1]) + v(e[2]) + (t >= 0 && t < 1 ? v(Math.round(255 * t)) : ""); 18376 }, 18377 rgbString: function(e, t) { 18378 return t < 1 || e[3] && e[3] < 1 ? f(e, t) : "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ")"; 18379 }, 18380 rgbaString: f, 18381 percentString: function(e, t) { 18382 if (t < 1 || e[3] && e[3] < 1) return p(e, t);
18383 var n = Math.round(e[0] / 255 * 100), i = Math.round(e[1] / 255 * 100), r = Math.round(e[2] / 255 * 100); 18384 return "rgb(" + n + "%, " + i + "%, " + r + "%)"; 18385 }, 18386 percentaString: p, 18387 hslString: function(e, t) { 18388 return t < 1 || e[3] && e[3] < 1 ? m(e, t) : "hsl(" + e[0] + ", " + e[1] + "%, " + e[2] + "%)"; 18389 }, 18390 hslaString: m, 18391 hwbString: function(e, t) { 18392 return void 0 === t && (t = void 0 !== e[3] ? e[3] : 1), "hwb(" + e[0] + ", " + e[1] + "%, " + e[2] + "%" + (void 0 !== t && 1 !== t ? ", " + t : "") + ")"; 18393 }, 18394 keyword: function(e) { 18395 return b[e.slice(0, 3)]; 18396 } 18397 }; 18398 function u(e) { 18399 if (e) { 18400 var t = [ 0, 0, 0 ], n = 1, i = e.match(/^#([a-fA-F0-9]{3,4})$/i), r = ""; 18401 if (i) { 18402 r = (i = i[1])[3]; 18403 for (var o = 0; o < t.length; o++) t[o] = parseInt(i[o] + i[o], 16); 18404 r && (n = Math.round(parseInt(r + r, 16) / 255 * 100) / 100); 18405 } else if (i = e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)) { 18406 for (r = i[2], i = i[1], o = 0; o < t.length; o++) t[o] = parseInt(i.slice(2 * o, 2 * o + 2), 16); 18407 r && (n = Math.round(parseInt(r, 16) / 255 * 100) / 100); 18408 } else if (i = e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)) { 18409 for (o = 0; o < t.length; o++) t[o] = parseInt(i[o + 1]); 18410 n = parseFloat(i[4]); 18411 } else if (i = e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)) { 18412 for (o = 0; o < t.length; o++) t[o] = Math.round(2.55 * parseFloat(i[o + 1])); 18413 n = parseFloat(i[4]); 18414 } else if (i = e.match(/(\w+)/)) { 18415 if ("transparent" == i[1]) return [ 0, 0, 0, 0 ]; 18416 if (!(t = l[i[1]])) return; 18417 } 18418 for (o = 0; o < t.length; o++) t[o] = g(t[o], 0, 255); 18419 return n = n || 0 == n ? g(n, 0, 1) : 1, t[3] = n, t; 18420 } 18421 } 18422 function d(e) { 18423 if (e) { 18424 var t = e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/); 18425 if (t) { 18426 var n = parseFloat(t[4]); 18427 return [ g(parseInt(t[1]), 0, 360), g(parseFloat(t[2]), 0, 100), g(parseFloat(t[3]), 0, 100), g(isNaN(n) ? 1 : n, 0, 1) ]; 18428 } 18429 } 18430 } 18431 function h(e) { 18432 if (e) { 18433 var t = e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/); 18434 if (t) { 18435 var n = parseFloat(t[4]); 18436 return [ g(parseInt(t[1]), 0, 360), g(parseFloat(t[2]), 0, 100), g(parseFloat(t[3]), 0, 100), g(isNaN(n) ? 1 : n, 0, 1) ]; 18437 } 18438 } 18439 } 18440 function f(e, t) { 18441 return void 0 === t && (t = void 0 !== e[3] ? e[3] : 1), "rgba(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + t + ")"; 18442 } 18443 function p(e, t) {
18444 return "rgba(" + Math.round(e[0] / 255 * 100) + "%, " + Math.round(e[1] / 255 * 100) + "%, " + Math.round(e[2] / 255 * 100) + "%, " + (t || e[3] || 1) + ")"; 18445 } 18446 function m(e, t) { 18447 return void 0 === t && (t = void 0 !== e[3] ? e[3] : 1), "hsla(" + e[0] + ", " + e[1] + "%, " + e[2] + "%, " + t + ")"; 18448 } 18449 function g(e, t, n) { 18450 return Math.min(Math.max(t, e), n); 18451 } 18452 function v(e) { 18453 var t = e.toString(16).toUpperCase(); 18454 return t.length < 2 ? "0" + t : t; 18455 } 18456 var b = {}; 18457 for (var y in l) b[l[y]] = y; 18458 var x = function(e) { 18459 return e instanceof x ? e : this instanceof x ? (this.valid = !1, this.values = { 18460 rgb: [ 0, 0, 0 ], 18461 hsl: [ 0, 0, 0 ], 18462 hsv: [ 0, 0, 0 ], 18463 hwb: [ 0, 0, 0 ], 18464 cmyk: [ 0, 0, 0, 0 ], 18465 alph
18465a: 1 18466 }, void ("string" == typeof e ? (t = c.getRgba(e)) ? this.setValues("rgb", t) : (t = c.getHsla(e)) ? this.setValues("hsl", t) : (t = c.getHwb(e)) && this.setValues("hwb", t) : "object" == typeof e && (void 0 !== (t = e).r || void 0 !== t.red ? this.setValues("rgb", t) : void 0 !== t.l || void 0 !== t.lightness ? this.setValues("hsl", t) : void 0 !== t.v || void 0 !== t.value ? this.setValues("hsv", t) : void 0 !== t.w || void 0 !== t.whiteness ? this.setValues("hwb", t) : void 0 === t.c && void 0 === t.cyan || this.setValues("cmyk", t)))) : new x(e); 18467 var t; 18468 }; 18469 x.prototype = { 18470 isValid: function() { 18471 return this.valid; 18472 }, 18473 rgb: function() { 18474 return this.setSpace("rgb", arguments); 18475 }, 18476 hsl: function() { 18477 return this.setSpace("hsl", arguments); 18478 }, 18479 hsv: function() { 18480 return this.setSpace("hsv", arguments); 18481 }, 18482 hwb: function() { 18483 return this.setSpace("hwb", arguments); 18484 }, 18485 cmyk: function() { 18486 return this.setSpace("cmyk", arguments); 18487 }, 18488 rgbArray: function() { 18489 return this.values.rgb; 18490 }, 18491 hslArray: function() { 18492 return this.values.hsl; 18493 }, 18494 hsvArray: function() { 18495 return this.values.hsv; 18496 }, 18497 hwbArray: function() { 18498 var e = this.values; 18499 return 1 !== e.alpha ? e.hwb.concat([ e.alpha ]) : e.hwb; 18500 }, 18501 cmykArray: function() { 18502 return this.values.cmyk; 18503 }, 18504 rgbaArray: function() { 18505 var e = this.values; 18506 return e.rgb.concat([ e.alpha ]); 18507 }, 18508 hslaArray: function() { 18509 var e = this.values; 18510 return e.hsl.concat([ e.alpha ]); 18511 }, 18512 alpha: function(e) { 18513 return void 0 === e ? this.values.alpha : (this.setValues("alpha", e), this); 18514 }, 18515 red: function(e) { 18516 return this.setChannel("rgb", 0, e); 18517 }, 18518 green: function(e) { 18519 return this.setChannel("rgb", 1, e); 18520 }, 18521 blue: function(e) { 18522 return this.setChannel("rgb", 2, e); 18523 }, 18524 hue: function(e) { 18525 return e && (e = (e %= 360) < 0 ? 360 + e : e), this.setChannel("hsl", 0, e); 18526 }, 18527 saturation: function(e) { 18528 return this.setChannel("hsl", 1, e); 18529 }, 18530 lightness: function(e) { 18531 return this.setChannel("hsl", 2, e); 18532 }, 18533 saturationv: function(e) {
18534 return this.setChannel("hsv", 1, e); 18535 }, 18536 whiteness: function(e) { 18537 return this.setChannel("hwb", 1, e); 18538 }, 18539 blackness: function(e) { 18540 return this.setChannel("hwb", 2, e); 18541 }, 18542 value: function(e) { 18543 return this.setChannel("hsv", 2, e); 18544 }, 18545 cyan: function(e) { 18546 return this.setChannel("cmyk", 0, e); 18547 }, 18548 magenta: function(e) { 18549 return this.setChannel("cmyk", 1, e); 18550 }, 18551 yellow: function(e) { 18552 return this.setChannel("cmyk", 2, e); 18553 }, 18554 black: function(e) { 18555 return this.setChannel("cmyk", 3, e); 18556 }, 18557 hexString: function() { 18558 return c.hexString(this.values.rgb); 18559 }, 18560 rgbString: function() { 18561 return c.rgbString(this.values.rgb, this.values.alpha); 18562 }, 18563 rgbaString: function() { 18564 return c.rgbaString(this.values.rgb, this.values.alpha); 18565 }, 18566 percentString: function() { 18567 return c.percentString(this.values.rgb, this.values.alpha); 18568 }, 18569 hslString: function() { 18570 return c.hslString(this.values.hsl, this.values.alpha); 18571 }, 18572 hslaString: function() { 18573 return c.hslaString(this.values.hsl, this.values.alpha); 18574 }, 18575 hwbString: function() { 18576 return c.hwbString(this.values.hwb, this.values.alpha); 18577 }, 18578 keyword: function() { 18579 return c.keyword(this.values.rgb, this.values.alpha); 18580 }, 18581 rgbNumber: function() { 18582 var e = this.values.rgb; 18583 return e[0] << 16 | e[1] << 8 | e[2]; 18584 }, 18585 luminosity: function() { 18586 for (var e = this.values.rgb, t = [], n = 0; n < e.length; n++) { 18587 var i = e[n] / 255; 18588 t[n] = i <= .03928 ? i / 12.92 : Math.pow((i + .055) / 1.055, 2.4); 18589 } 18590 return .2126 * t[0] + .7152 * t[1] + .0722 * t[2]; 18591 }, 18592 contrast: function(e) { 18593 var t = this.luminosity(), n = e.luminosity(); 18594 return t > n ? (t + .05) / (n + .05) : (n + .05) / (t + .05); 18595 }, 18596 level: function(e) { 18597 var t = this.contrast(e); 18598 return t >= 7.1 ? "AAA" : t >= 4.5 ? "AA" : ""; 18599 }, 18600 dark: function() { 18601 var e = this.values.rgb; 18602 return (299 * e[0] + 587 * e[1] + 114 * e[2]) / 1e3 < 128; 18603 }, 18604 light: function() { 18605 return !this.dark(); 18606 }, 18607 negate: function() { 18608 for (var e = [], t = 0; t < 3; t++) e[t] = 255 - this.values.rgb[t]; 18609 return this.setValues("rgb", e), this; 18610 }, 18611 lighten: function(e) { 18612 var t = this.values.hsl; 18613 return t[2] += t[2] * e, this.setValues("hsl", t), this; 18614 }, 18615 darken: function(e) { 18616 var t = this.values.hsl; 18617 return t[2] -= t[2] * e, this.setValues("hsl", t), this; 18618 }, 18619 saturate: function(e) { 18620 var t = this.values.hsl; 18621 return t[1] += t[1] * e, this.setValues("hsl", t), this; 18622 }, 18623 desaturate: function(e) { 18624 var t = this.values.hsl; 18625 return t[1] -= t[1] * e, this.setValues("hsl", t), this; 18626 }, 18627 whiten: function(e) { 18628 var t = this.values.hwb; 18629 return t[1] += t[1] * e, this.setValues("hwb", t), this; 18630 }, 18631 blacken: function(e) { 18632 var t = this.values.hwb; 18633 return t[2] += t[2] * e, this.setValues("hwb", t), this; 18634 }, 18635 greyscale: function() { 18636 var e = this.values.rgb, t = .3 * e[0] + .59 * e[1] + .11 * e[2]; 18637 return this.setValues("rgb", [ t, t, t ]), this; 18638 }, 18639 clearer: function(e) { 18640 var t = this.values.alpha;
18641 return this.setValues("alpha", t - t * e), this; 18642 }, 18643 opaquer: function(e) { 18644 var t = this.values.alpha; 18645 return this.setValues("alpha", t + t * e), this; 18646 }, 18647 rotate: function(e) { 18648 var t = this.values.hsl, n = (t[0] + e) % 360; 18649 return t[0] = n < 0 ? 360 + n : n, this.setValues("hsl", t), this; 18650 }, 18651 mix: function(e, t) { 18652 var n = e, i = void 0 === t ? .5 : t, r = 2 * i - 1, o = this.alpha() - n.alpha(), s = ((r * o == -1 ? r : (r + o) / (1 + r * o)) + 1) / 2, a = 1 - s; 18653 return this.rgb(s * this.red() + a * n.red(), s * this.green() + a * n.green(), s * this.blue() + a * n.blue()).alpha(this.alpha() * i + n.alpha() * (1 - i)); 18654 }, 18655 toJSON: function() { 18656 return this.rgb(); 18657 }, 18658 clone: function() { 18659 var e, t, n = new x, i = this.values, r = n.values; 18660 for (var o in i) i.hasOwnProperty(o) && (e = i[o], "[object Array]" === (t = {}.toString.call(e)) ? r[o] = e.slice(0) : "[object Number]" === t ? r[o] = e : console.error("unexpected color value:", e)); 18661 return n; 18662 } 18663 }, x.prototype.spaces = { 18664 rgb: [ "red", "green", "blue" ], 18665 hsl: [ "hue", "saturation", "lightness" ], 18666 hsv: [ "hue", "saturation", "value" ], 18667 hwb: [ "hue", "whiteness", "blackness" ], 18668 cmyk: [ "cyan", "magenta", "yellow", "black" ] 18669 }, x.prototype.maxes = { 18670 rgb: [ 255, 255, 255 ], 18671 hsl: [ 360, 100, 100 ], 18672 hsv: [ 360, 100, 100 ], 18673 hwb: [ 360, 100, 100 ], 18674 cmyk: [ 100, 100, 100, 100 ] 18675 }, x.prototype.getValues = function(e) { 18676 for (var t = this.values, n = {}, i = 0; i < e.length; i++) n[e.charAt(i)] = t[e][i]; 18677 return 1 !== t.alpha && (n.a = t.alpha), n; 18678 }, x.prototype.setValues = function(e, t) { 18679 var n, i, r = this.values, o = this.spaces, s = this.maxes, l = 1; 18680 if (this.valid = !0, "alpha" === e) l = t; else if (t.length) r[e] = t.slice(0, e.length), 18681 l = t[e.length]; else if (void 0 !== t[e.charAt(0)]) { 18682 for (n = 0; n < e.length; n++) r[e][n] = t[e.charAt(n)]; 18683 l = t.a; 18684 } else if (void 0 !== t[o[e][0]]) { 18685 var c = o[e]; 18686 for (n = 0; n < e.length; n++) r[e][n] = t[c[n]]; 18687 l = t.alpha; 18688 } 18689 if (r.alpha = Math.max(0, Math.min(1, void 0 === l ? r.alpha : l)), "alpha" === e) return !1; 18690 for (n = 0; n < e.length; n++) i = Math.max(0, Math.min(s[e][n], r[e][n])), r[e][n] = Math.round(i); 18691 for (var u in o) u !== e && (r[u] = a[e][u](r[e])); 18692 return !0; 18693 }, x.prototype.setSpace = function(e, t) { 18694 var n = t[0]; 18695 return void 0 === n ? this.getValues(e) : ("number" == typeof n && (n = Array.prototype.slice.call(t)), 18696 this.setValues(e, n), this); 18697 }, x.prototype.setChannel = function(e, t, n) { 18698 var i = this.values[e]; 18699 return void 0 === n ? i[t] : (n === i[t] || (i[t] = n, this.setValues(e, i)), this); 18700 }, "undefined" != typeof window && (window.Color = x); 18701 var w = x; 18702 function _(e) { 18703 return -1 === [ "__proto__", "prototype", "constructor" ].indexOf(e); 18704 } 18705 var S, E = { 18706 noop: function() {}, 18707 uid: (S = 0, function() { 18708 return S++; 18709 }), 18710 isNullOrUndef: function(e) { 18711 return null == e; 18712 }, 18713 isArray: function(e) { 18714 if (Array.isArray && Array.isArray(e)) return !0; 18715 var t = Object.prototype.toString.call(e); 18716 return "[object" === t.substr(0, 7) && "Array]" === t.substr(-6); 18717 }, 18718 isObject: function(e) { 18719 return null !== e && "[object Object]" === Object.prototype.toString.call(e); 18720 }, 18721 isFinite: function(e) { 18722 return ("number" == typeof e || e instanceof Number) && isFinite(e); 18723 }, 18724 valueOrDefault: function(e, t) { 18725 return void 0 === e ? t : e; 18726 }, 18727 valueAtIndexOrDefault: function(e, t, n) { 18728 return E.valueOrDefault(E.isArray(e) ? e[t] : e, n); 18729 }, 18730 callback: function(e, t, n) { 18731 if (e && "function" == typeof e.call) return e.apply(n, t); 18732 }, 18733 each: function(e, t, n, i) { 18734 var r, o, s; 18735 if (E.isArray(e)) if (o = e.length, i) for (r = o - 1; r >= 0; r--) t.call(n, e[r], r); else for (r = 0; r < o; r++) t.call(n, e[r], r); else if (E.isObject(e)) for (o = (s = Object.keys(e)).length, 18736 r = 0; r < o; r++) t.call(n, e[s[r]], s[r]); 18737 }, 18738 arrayEquals: function(e, t) { 18739 var n, i, r, o; 18740 if (!e || !t || e.length !== t.length) return !1; 18741 for (n = 0, i = e.length; n < i; ++n) if (r = e[n], o = t[n], r instanceof Array && o instanceof Array) { 18742 if (!E.arrayEquals(r, o)) return !1; 18743 } else if (r !== o) return !1; 18744 return !0; 18745 }, 18746 clone: function(e) { 18747 if (E.isArray(e)) return e.map(E.clone); 18748 if (E.isObject(e)) { 18749 for (var t = Object.create(e), n = Object.keys(e), i = n.length, r = 0; r < i; ++r) t[n[r]] = E.clone(e[n[r]]); 18750 return t; 18751 } 18752 return e; 18753 }, 18754 _merger: function(e, t, n, i) { 18755 if (_(e)) { 18756 var r = t[e], o = n[e]; 18757 E.isObject(r) && E.isObject(o) ? E.merge(r, o, i) : t[e] = E.clone(o); 18758 } 18759 }, 18760 _mergerIf: function(e, t, n) { 18761 if (_(e)) { 18762 var i = t[e], r = n[e]; 18763 E.isObject(i) && E.isObject(r) ? E.mergeIf(i, r) : t.hasOwnProperty(e) || (t[e] = E.clone(r)); 18764 } 18765 }, 18766 merge: function(e, t, n) { 18767 var i, r, o, s, a, l = E.isArray(t) ? t : [ t ], c = l.length; 18768 if (!E.isObject(e)) return e; 18769 for (i = (n = n || {}).merger || E._merger, r = 0; r < c; ++r) if (t = l[r], E.isObject(t)) for (a = 0, 18770 s = (o = Object.keys(t)).length; a < s; ++a) i(o[a], e, t, n); 18771 return e; 18772 }, 18773 mergeIf: function(e, t) { 18774 return E.merge(e, t, { 18775 merger: E._mergerIf 18776 }); 18777 }, 18778 extend: Object.assign || function(e) { 18779 return E.merge(e, [].slice.call(arguments, 1), { 18780 merger: function(e, t, n) { 18781 t[e] = n[e]; 18782 } 18783 }); 18784 }, 18785 inherits: function(e) { 18786 var t = this, n = e && e.hasOwnProperty("constructor") ? e.constructor : function() { 18787 return t.apply(this, arguments); 18788 }, i = function() { 18789 this.constructor = n; 18790 }; 18791 return i.prototype = t.prototype, n.prototype = new i, n.extend = E.inherits, e && E.extend(n.prototype, e), 18792 n.__super__ = t.prototype, n; 18793 }, 18794 _deprecated: function(e, t, n, i) { 18795 void 0 !== t && console.warn(e + ': "' + n + '" is deprecated. Please use "' + i + '" instead'); 18796 } 18797 }, C = E; 18798 E.callCallback = E.callback, E.indexOf = function(e, t, n) { 18799 return Array.prototype.indexOf.call(e, t, n); 18800 }, E.getValueOrDefault = E.valueOrDefault, E.getValueAtIndexOrDefault = E.valueAtIndexOrDefault; 18801 var T = { 18802 linear: function(e) { 18803 return e; 18804 }, 18805 easeInQuad: function(e) { 18806 return e * e; 18807 }, 18808 easeOutQuad: function(e) { 18809 return -e * (e - 2); 18810 }, 18811 easeInOutQuad: function(e) { 18812 return (e /= .5) < 1 ? .5 * e * e : -.5 * (--e * (e - 2) - 1); 18813 }, 18814 easeInCubic: function(e) { 18815 return e * e * e; 18816 }, 18817 easeOutCubic: function(e) { 18818 return (e -= 1) * e * e + 1; 18819 }, 18820 easeInOutCubic: function(e) { 18821 return (e /= .5) < 1 ? .5 * e * e * e : .5 * ((e -= 2) * e * e + 2); 18822 }, 18823 easeInQuart: function(e) { 18824 return e * e * e * e; 18825 }, 18826 easeOutQuart: function(e) { 18827 return -((e -= 1) * e * e * e - 1); 18828 }, 18829 easeInOutQuart: function(e) { 18830 return (e /= .5) < 1 ? .5 * e * e * e * e : -.5 * ((e -= 2) * e * e * e - 2); 18831 }, 18832 easeInQuint: function(e) { 18833 return e * e * e * e * e; 18834 }, 18835 easeOutQuint: function(e) { 18836 return (e -= 1) * e * e * e * e + 1; 18837 }, 18838 easeInOutQuint: function(e) { 18839 return (e /= .5) < 1 ? .5 * e * e * e * e * e : .5 * ((e -= 2) * e * e * e * e + 2); 18840 }, 18841 easeInSine: function(e) { 18842 return 1 - Math.cos(e * (Math.PI / 2)); 18843 }, 18844 easeOutSine: function(e) { 18845 return Math.sin(e * (Math.PI / 2)); 18846 }, 18847 easeInOutSine: function(e) { 18848 return -.5 * (Math.cos(Math.PI * e) - 1); 18849 }, 18850 easeInExpo: function(e) { 18851 return 0 === e ? 0 : Math.pow(2, 10 * (e - 1)); 18852 }, 18853 easeOutExpo: function(e) { 18854 return 1 === e ? 1 : 1 - Math.pow(2, -10 * e); 18855 }, 18856 easeInOutExpo: function(e) { 18857 return 0 === e ? 0 : 1 === e ? 1 : (e /= .5) < 1 ? .5 * Math.pow(2, 10 * (e - 1)) : .5 * (2 - Math.pow(2, -10 * --e)); 18858 }, 18859 easeInCirc: function(e) { 18860 return e >= 1 ? e : -(Math.sqrt(1 - e * e) - 1); 18861 }, 18862 easeOutCirc: function(e) { 18863 return Math.sqrt(1 - (e -= 1) * e); 18864 }, 18865 easeInOutCirc: function(e) { 18866 return (e /= .5) < 1 ? -.5 * (Math.sqrt(1 - e * e) - 1) : .5 * (Math.sqrt(1 - (e -= 2) * e) + 1); 18867 }, 18868 easeInElastic: function(e) { 18869 var t = 1.70158, n = 0, i = 1; 18870 return 0 === e ? 0 : 1 === e ? 1 : (n || (n = .3), i < 1 ? (i = 1, t = n / 4) : t = n / (2 * Math.PI) * Math.asin(1 / i), 18871 -i * Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n)); 18872 }, 18873 easeOutElastic: function(e) { 18874 var t = 1.70158, n = 0, i = 1; 18875 return 0 === e ? 0 : 1 === e ? 1 : (n || (n = .3), i < 1 ? (i = 1, t = n / 4) : t = n / (2 * Math.PI) * Math.asin(1 / i), 18876 i * Math.pow(2, -10 * e) * Math.sin((e - t) * (2 * Math.PI) / n) + 1); 18877 }, 18878 easeInOutElastic: function(e) { 18879 var t = 1.70158, n = 0, i = 1; 18880 return 0 === e ? 0 : 2 == (e /= .5) ? 1 : (n || (n = .45), i < 1 ? (i = 1, t = n / 4) : t = n / (2 * Math.PI) * Math.asin(1 / i), 18881 e < 1 ? i * Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n) * -.5 : i * Math.pow(2, -10 * (e -= 1)) * Math.sin((e - t) * (2 * Math.PI) / n) * .5 + 1); 18882 }, 18883 easeInBack: function(e) { 18884 var t = 1.70158; 18885 return e * e * ((t + 1) * e - t); 18886 }, 18887 easeOutBack: function(e) { 18888 var t = 1.70158; 18889 return (e -= 1) * e * ((t + 1) * e + t) + 1; 18890 }, 18891 easeInOutBack: function(e) { 18892 var t = 1.70158; 18893 return (e /= .5) < 1 ? e * e * ((1 + (t *= 1.525)) * e - t) * .5 : .5 * ((e -= 2) * e * ((1 + (t *= 1.525)) * e + t) + 2); 18894 }, 18895 easeInBounce: function(e) { 18896 return 1 - T.easeOutBounce(1 - e); 18897 }, 18898 easeOutBounce: function(e) { 18899 return e < 1 / 2.75 ? 7.5625 * e * e : e < 2 / 2.75 ? 7.5625 * (e -= 1.5 / 2.75) * e + .75 : e < 2.5 / 2.75 ? 7.5625 * (e -= 2.25 / 2.75) * e + .9375 : 7.5625 * (e -= 2.625 / 2.75) * e + .984375; 18900 }, 18901 easeInOutBounce: function(e) { 18902 return e < .5 ? .5 * T.easeInBounce(2 * e) : .5 * T.easeOutBounce(2 * e - 1) + .5; 18903 } 18904 }, k = { 18905 effects: T 18906 };
vendor: 4,539 bytes, lines 18907-18986
18907 C.easingEffects = T; 18908 var M = Math.PI, A = M / 180, O = 2 * M, P = M / 2, I = M / 4, L = 2 * M / 3, D = { 18909 clear: function(e) { 18910 e.ctx.clearRect(0, 0, e.width, e.height); 18911 }, 18912 roundedRect: function(e, t, n, i, r, o) { 18913 if (o) { 18914 var s = Math.min(o, r / 2, i / 2), a = t + s, l = n + s, c = t + i - s, u = n + r - s; 18915 e.moveTo(t, l), a < c && l < u ? (e.arc(a, l, s, -M, -P), e.arc(c, l, s, -P, 0), 18916 e.arc(c, u, s, 0, P), e.arc(a, u, s, P, M)) : a < c ? (e.moveTo(a, n), e.arc(c, l, s, -P, P), 18917 e.arc(a, l, s, P, M + P)) : l < u ? (e.arc(a, l, s, -M, 0), e.arc(a, u, s, 0, M)) : e.arc(a, l, s, -M, M), 18918 e.closePath(), e.moveTo(t, n); 18919 } else e.rect(t, n, i, r); 18920 }, 18921 drawPoint: function(e, t, n, i, r, o) { 18922 var s, a, l, c, u, d = (o || 0) * A; 18923 if (t && "object" == typeof t && ("[object HTMLImageElement]" === (s = t.toString()) || "[object HTMLCanvasElement]" === s)) return e.save(), 18924 e.translate(i, r), e.rotate(d), e.drawImage(t, -t.width / 2, -t.height / 2, t.width, t.height), 18925 void e.restore(); 18926 if (!(isNaN(n) || n <= 0)) { 18927 switch (e.beginPath(), t) { 18928 default: 18929 e.arc(i, r, n, 0, O), e.closePath(); 18930 break; 18931 18932 case "triangle": 18933 e.moveTo(i + Math.sin(d) * n, r - Math.cos(d) * n), d += L, e.lineTo(i + Math.sin(d) * n, r - Math.cos(d) * n), 18934 d += L, e.lineTo(i + Math.sin(d) * n, r - Math.cos(d) * n), e.closePath(); 18935 break; 18936 18937 case "rectRounded": 18938 c = n - (u = .516 * n), a = Math.cos(d + I) * c, l = Math.sin(d + I) * c, e.arc(i - a, r - l, u, d - M, d - P), 18939 e.arc(i + l, r - a, u, d - P, d), e.arc(i + a, r + l, u, d, d + P), e.arc(i - l, r + a, u, d + P, d + M), 18940 e.closePath(); 18941 break; 18942 18943 case "rect": 18944 if (!o) { 18945 c = Math.SQRT1_2 * n, e.rect(i - c, r - c, 2 * c, 2 * c); 18946 break; 18947 } 18948 d += I; 18949 18950 case "rectRot": 18951 a = Math.cos(d) * n, l = Math.sin(d) * n, e.moveTo(i - a, r - l), e.lineTo(i + l, r - a), 18952 e.lineTo(i + a, r + l), e.lineTo(i - l, r + a), e.closePath(); 18953 break; 18954 18955 case "crossRot": 18956 d += I; 18957 18958 case "cross": 18959 a = Math.cos(d) * n, l = Math.sin(d) * n, e.moveTo(i - a, r - l), e.lineTo(i + a, r + l), 18960 e.moveTo(i + l, r - a), e.lineTo(i - l, r + a); 18961 break; 18962 18963 case "star": 18964 a = Math.cos(d) * n, l = Math.sin(d) * n, e.moveTo(i - a, r - l), e.lineTo(i + a, r + l), 18965 e.moveTo(i + l, r - a), e.lineTo(i - l, r + a), d += I, a = Math.cos(d) * n, l = Math.sin(d) * n, 18966 e.moveTo(i - a, r - l), e.lineTo(i + a, r + l), e.moveTo(i + l, r - a), e.lineTo(i - l, r + a); 18967 break; 18968 18969 case "line": 18970 a = Math.cos(d) * n, l = Math.sin(d) * n, e.moveTo(i - a, r - l), e.lineTo(i + a, r + l); 18971 break; 18972 18973 case "dash": 18974 e.moveTo(i, r), e.lineTo(i + Math.cos(d) * n, r + Math.sin(d) * n); 18975 } 18976 e.fill(), e.stroke(); 18977 } 18978 }, 18979 _isPointInArea: function(e, t) { 18980 return e.x > t.left - 1e-6 && e.x < t.right + 1e-6 && e.y > t.top - 1e-6 && e.y < t.bottom + 1e-6; 18981 }, 18982 clipArea: function(e, t) { 18983 e.save(), e.beginPath(), e.rect(t.left, t.top, t.right - t.left, t.bottom - t.top), 18984 e.clip(); 18985 }, 18986 unclipArea: function(e) {
18987 e.restore(); 18988 }, 18989 lineTo: function(e, t, n, i) { 18990 var r = n.steppedLine; 18991 if (r) { 18992 if ("middle" === r) { 18993 var o = (t.x + n.x) / 2; 18994 e.lineTo(o, i ? n.y : t.y), e.lineTo(o, i ? t.y : n.y); 18995 } else "after" === r && !i || "after" !== r && i ? e.lineTo(t.x, n.y) : e.lineTo(n.x, t.y); 18996 e.lineTo(n.x, n.y); 18997 } else n.tension ? e.bezierCurveTo(i ? t.controlPointPreviousX : t.controlPointNextX, i ? t.controlPointPreviousY : t.controlPointNextY, i ? n.controlPointNextX : n.controlPointPreviousX, i ? n.controlPointNextY : n.controlPointPreviousY, n.x, n.y) : e.lineTo(n.x, n.y); 18998 } 18999 }, N = D; 19000 C.clear = D.clear, C.drawRoundedRectangle = function(e) { 19001 e.beginPath(), D.roundedRect.apply(D, arguments); 19002 }; 19003 var F = { 19004 _set: function(e, t) { 19005 return C.merge(this[e] || (this[e] = {}), t); 19006 } 19007 }; 19008 F._set("global", { 19009 defaultColor: "rgba(0,0,0,0.1)", 19010 defaultFontColor: "#666", 19011 defaultFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", 19012 defaultFontSize: 12, 19013 defaultFontStyle: "normal", 19014 defaultLineHeight: 1.2, 19015 showLines: !0 19016 }); 19017 var j = F, R = C.valueOrDefault, B = { 19018 toLineHeight: function(e, t) { 19019 var n = ("" + e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/); 19020 if (!n || "normal" === n[1]) return 1.2 * t; 19021 switch (e = +n[2], n[3]) { 19022 case "px": 19023 return e; 19024 19025 case "%": 19026 e /= 100; 19027 } 19028 return t * e; 19029 }, 19030 toPadding: function(e) { 19031 var t, n, i, r; 19032 return C.isObject(e) ? (t = +e.top || 0, n = +e.right || 0, i = +e.bottom || 0, 19033 r = +e.left || 0) : t = n = i = r = +e || 0, { 19034 top: t, 19035 right: n, 19036 bottom: i, 19037 left: r, 19038 height: t + i, 19039 width: r + n 19040 }; 19041 }, 19042 _parseFont: function(e) { 19043 var t = j.global, n = R(e.fontSize, t.defaultFontSize), i = { 19044 family: R(e.fontFamily, t.defaultFontFamily), 19045 lineHeight: C.options.toLineHeight(R(e.lineHeight, t.defaultLineHeight), n), 19046 size: n, 19047 style: R(e.fontStyle, t.defaultFontStyle), 19048 weight: null, 19049 string: "" 19050 }; 19051 return i.string = function(e) { 19052 return !e || C.isNullOrUndef(e.size) || C.isNullOrUndef(e.family) ? null : (e.style ? e.style + " " : "") + (e.weight ? e.weight + " " : "") + e.size + "px " + e.family; 19053 }(i), i; 19054 }, 19055 resolve: function(e, t, n, i) { 19056 var r, o, s, a = !0; 19057 for (r = 0, o = e.length; r < o; ++r) if (void 0 !== (s = e[r]) && (void 0 !== t && "function" == typeof s && (s = s(t), 19058 a = !1), void 0 !== n && C.isArray(s) && (s = s[n], a = !1), void 0 !== s)) return i && !a && (i.cacheable = !1), 19059 s; 19060 } 19061 }, z = { 19062 _factorize: function(e) { 19063 var t, n = [], i = Math.sqrt(e); 19064 for (t = 1; t < i; t++) e % t == 0 && (n.push(t), n.push(e / t)); 19065 return i === (0 | i) && n.push(i), n.sort((function(e, t) { 19066 return e - t; 19067 })).pop(), n; 19068 }, 19069 log10: Math.log10 || function(e) { 19070 var t = Math.log(e) * Math.LOG10E, n = Math.round(t); 19071 return e === Math.pow(10, n) ? n : t; 19072 } 19073 }, H = z; 19074 C.log10 = z.log10; 19075 var $ = C, W = k, q = N, V = B, Y = H, G = { 19076 getRtlAdapter: function(e, t, n) { 19077 return e ? function(e, t) { 19078 return { 19079 x: function(n) { 19080 return e + e + t - n; 19081 }, 19082 setWidth: function(e) { 19083 t = e; 19084 }, 19085 textAlign: function(e) { 19086 return "center" === e ? e : "right" === e ? "left" : "right"; 19087 }, 19088 xPlus: function(e, t) { 19089 return e - t; 19090 }, 19091 leftForLtr: function(e, t) { 19092 return e - t; 19093 } 19094 }; 19095 }(t, n) : { 19096 x: function(e) { 19097 return e; 19098 }, 19099 setWidth: function(e) {}, 19100 textAlign: function(e) { 19101 return e; 19102 }, 19103 xPlus: function(e, t) { 19104 return e + t; 19105 }, 19106 leftForLtr: function(e, t) { 19107 return e; 19108 } 19109 }; 19110 }, 19111 overrideTextDirection: function(e, t) { 19112 var n, i; 19113 "ltr" !== t && "rtl" !== t || (i = [ (n = e.canvas.style).getPropertyValue("direction"), n.getPropertyPriority("direction") ], 19114 n.setProperty("direction", t, "important"), e.prevTextDirection = i); 19115 }, 19116 restoreTextDirection: function(e) { 19117 var t = e.prevTextDirection; 19118 void 0 !== t && (delete e.prevTextDirection, e.canvas.style.setProperty("direction", t[0], t[1])); 19119 } 19120 }; 19121 $.easing = W, $.canvas = q, $.options = V, $.math = Y, $.rtl = G; 19122 var U = function(e) { 19123 $.extend(this, e), this.initialize.apply(this, arguments); 19124 }; 19125 $.extend(U.prototype, { 19126 _type: void 0, 19127 initialize: function() { 19128 this.hidden = !1; 19129 }, 19130 pivot: function() { 19131 var e = this; 19132 return e._view || (e._view = $.extend({}, e._model)), e._start = {}, e; 19133 }, 19134 transition: function(e) { 19135 var t = this, n = t._model, i = t._start, r = t._view; 19136 return n && 1 !== e ? (r || (r = t._view = {}), i || (i = t._start = {}), function(e, t, n, i) { 19137 var r, o, s, a, l, c, u, d, h, f = Object.keys(n); 19138 for (r = 0, o = f.length; r < o; ++r) if (c = n[s = f[r]], t.hasOwnProperty(s) || (t[s] = c), 19139 (a = t[s]) !== c && "_" !== s[0]) { 19140 if (e.hasOwnProperty(s) || (e[s] = a), (u = typeof c) == typeof (l = e[s])) if ("string" === u) {
19141 if ((d = w(l)).valid && (h = w(c)).valid) { 19142 t[s] = h.mix(d, i).rgbString(); 19143 continue; 19144 } 19145 } else if ($.isFinite(l) && $.isFinite(c)) { 19146 t[s] = l + (c - l) * i; 19147 continue; 19148 } 19149 t[s] = c; 19150 } 19151 }(i, r, n, e), t) : (t._view = $.extend({}, n), t._start = null, t); 19152 }, 19153 tooltipPosition: function() { 19154 return { 19155 x: this._model.x, 19156 y: this._model.y 19157 }; 19158 }, 19159 hasValue: function() { 19160 return $.isNumber(this._model.x) && $.isNumber(this._model.y); 19161 } 19162 }), U.extend = $.inherits; 19163 var X = U, K = X.extend({ 19164 chart: null, 19165 currentStep: 0, 19166 numSteps: 60, 19167 easing: "", 19168 render: null, 19169 onAnimationProgress: null, 19170 onAnimationComplete: null 19171 }), Z = K; 19172 Object.defineProperty(K.prototype, "animationObject", { 19173 get: function() { 19174 return this; 19175 } 19176 }), Object.defineProperty(K.prototype, "chartInstance", { 19177 get: function() { 19178 return this.chart; 19179 }, 19180 set: function(e) { 19181 this.chart = e; 19182 } 19183 }), j._set("global", { 19184 animation: { 19185 duration: 1e3, 19186 easing: "easeOutQuart", 19187 onProgress: $.noop, 19188 onComplete: $.noop 19189 } 19190 }); 19191 var J = { 19192 animations: [], 19193 request: null, 19194 addAnimation: function(e, t, n, i) { 19195 var r, o, s = this.animations; 19196 for (t.chart = e, t.startTime = Date.now(), t.duration = n, i || (e.animating = !0), 19197 r = 0, o = s.length; r < o; ++r) if (s[r].chart === e) return void (s[r] = t); 19198 s.push(t), 1 === s.length && this.requestAnimationFrame(); 19199 }, 19200 cancelAnimation: function(e) { 19201 var t = $.findIndex(this.animations, (function(t) { 19202 return t.chart === e; 19203 })); 19204 -1 !== t && (this.animations.splice(t, 1), e.animating = !1); 19205 }, 19206 requestAnimationFrame: function() { 19207 var e = this; 19208 null === e.request && (e.request = $.requestAnimFrame.call(window, (function() { 19209 e.request = null, e.startDigest(); 19210 }))); 19211 }, 19212 startDigest: function() { 19213 this.advance(), this.animations.length > 0 && this.requestAnimationFrame(); 19214 }, 19215 advance: function() { 19216 for (var e, t, n, i, r = this.animations, o = 0; o < r.length; ) t = (e = r[o]).chart, 19217 n = e.numSteps, i = Math.floor((Date.now() - e.startTime) / e.duration * n) + 1, 19218 e.currentStep = Math.min(i, n), $.callback(e.render, [ t, e ], t), $.callback(e.onAnimationProgress, [ e ], t), 19219 e.currentStep >= n ? ($.callback(e.onAnimationComplete, [ e ], t), t.animating = !1, 19220 r.splice(o, 1)) : ++o; 19221 } 19222 }, Q = $.options.resolve, ee = [ "push", "pop", "shift", "splice", "unshift" ]; 19223 function te(e, t) { 19224 var n = e._chartjs; 19225 if (n) { 19226 var i = n.listeners, r = i.indexOf(t); 19227 -1 !== r && i.splice(r, 1), i.length > 0 || (ee.forEach((function(t) { 19228 delete e[t]; 19229 })), delete e._chartjs); 19230 } 19231 } 19232 var ne = function(e, t) { 19233 this.initialize(e, t); 19234 }; 19235 $.extend(ne.prototype, { 19236 datasetElementType: null, 19237 dataElementType: null, 19238 _datasetElementOptions: [ "backgroundColor", "borderCapStyle", "borderColor", "borderDash", "borderDashOffset", "borderJoinStyle", "borderWidth" ], 19239 _dataElementOptions: [ "backgroundColor", "borderColor", "borderWidth", "pointStyle" ], 19240 initialize: function(e, t) { 19241 var n = this; 19242 n.chart = e, n.index = t, n.linkScales(), n.addElements(), n._type = n.getMeta().type; 19243 }, 19244 updateIndex: function(e) { 19245 this.index = e; 19246 }, 19247 linkScales: function() { 19248 var e = this.getMeta(), t = this.chart, n = t.scales, i = this.getDataset(), r = t.options.scales; 19249 null !== e.xAxisID && e.xAxisID in n && !i.xAxisID || (e.xAxisID = i.xAxisID || r.xAxes[0].id), 19250 null !== e.yAxisID && e.yAxisID in n && !i.yAxisID || (e.yAxisID = i.yAxisID || r.yAxes[0].id); 19251 }, 19252 getDataset: function() { 19253 return this.chart.data.datasets[this.index]; 19254 }, 19255 getMeta: function() { 19256 return this.chart.getDatasetMeta(this.index); 19257 }, 19258 getScaleForId: function(e) { 19259 return this.chart.scales[e]; 19260 }, 19261 _getValueScaleId: function() { 19262 return this.getMeta().yAxisID; 19263 }, 19264 _getIndexScaleId: function() { 19265 return this.getMeta().xAxisID; 19266 }, 19267 _getValueScale: function() {
19268 return this.getScaleForId(this._getValueScaleId()); 19269 }, 19270 _getIndexScale: function() { 19271 return this.getScaleForId(this._getIndexScaleId()); 19272 }, 19273 reset: function() { 19274 this._update(!0); 19275 }, 19276 destroy: function() { 19277 this._data && te(this._data, this); 19278 }, 19279 createMetaDataset: function() { 19280 var e = this.datasetElementType; 19281 return e && new e({ 19282 _chart: this.chart, 19283 _datasetIndex: this.index 19284 }); 19285 }, 19286 createMetaData: function(e) { 19287 var t = this.dataElementType; 19288 return t && new t({ 19289 _chart: this.chart, 19290 _datasetIndex: this.index, 19291 _index: e 19292 }); 19293 }, 19294 addElements: function() { 19295 var e, t, n = this.getMeta(), i = this.getDataset().data || [], r = n.data; 19296 for (e = 0, t = i.length; e < t; ++e) r[e] = r[e] || this.createMetaData(e); 19297 n.dataset = n.dataset || this.createMetaDataset(); 19298 }, 19299 addElementAndReset: function(e) { 19300 var t = this.createMetaData(e); 19301 this.getMeta().data.splice(e, 0, t), this.updateElement(t, e, !0); 19302 }, 19303 buildOrUpdateElements: function() { 19304 var e, t, n = this, i = n.getDataset(), r = i.data || (i.data = []); 19305 n._data !== r && (n._data && te(n._data, n), r && Object.isExtensible(r) && (t = n, 19306 (e = r)._chartjs ? e._chartjs.listeners.push(t) : (Object.defineProperty(e, "_chartjs", { 19307 configurable: !0, 19308 enumerable: !1, 19309 value: { 19310 listeners: [ t ] 19311 } 19312 }), ee.forEach((function(t) { 19313 var n = "onData" + t.charAt(0).toUpperCase() + t.slice(1), i = e[t]; 19314 Object.defineProperty(e, t, { 19315 configurable: !0, 19316 enumerable: !1, 19317 value: function() { 19318 var t = Array.prototype.slice.call(arguments), r = i.apply(this, t); 19319 return $.each(e._chartjs.listeners, (function(e) { 19320 "function" == typeof e[n] && e[n].apply(e, t); 19321 })), r; 19322 } 19323 }); 19324 })))), n._data = r), n.resyncElements(); 19325 }, 19326 _configure: function() { 19327 this._config = $.merge(Object.create(null), [ this.chart.options.datasets[this._type], this.getDataset() ], { 19328 merger: function(e, t, n) { 19329 "_meta" !== e && "data" !== e && $._merger(e, t, n); 19330 } 19331 }); 19332 }, 19333 _update: function(e) { 19334 this._configure(), this._cachedDataOpts = null, this.update(e); 19335 }, 19336 update: $.noop, 19337 transition: function(e) { 19338 for (var t = this.getMeta(), n = t.data || [], i = n.length, r = 0; r < i; ++r) n[r].transition(e); 19339 t.dataset && t.dataset.transition(e); 19340 }, 19341 draw: function() { 19342 var e = this.getMeta(), t = e.data || [], n = t.length, i = 0; 19343 for (e.dataset && e.dataset.draw(); i < n; ++i) t[i].draw(); 19344 }, 19345 getStyle: function(e) { 19346 var t, n = this.getMeta(), i = n.dataset; 19347 return this._configure(), i && void 0 === e ? t = this._resolveDatasetElementOptions(i || {}) : (e = e || 0, 19348 t = this._resolveDataElementOptions(n.data[e] || {}
19348, e)), !1 !== t.fill && null !== t.fill || (t.backgroundColor = t.borderColor), 19349 t; 19350 }, 19351 _resolveDatasetElementOptions: function(e, t) { 19352 var n, i, r, o, s = this, a = s.chart, l = s._config, c = e.custom || {}, u = a.options.elements[s.datasetElementType.prototype._type] || {}, d = s._datasetElementOptions, h = {}, f = { 19353 chart: a, 19354 dataset: s.getDataset(), 19355 datasetIndex: s.index, 19356 hover: t 19357 }; 19358 for (n = 0, i = d.length; n < i; ++n) r = d[n], o = t ? "hover" + r.charAt(0).toUpperCase() + r.slice(1) : r, 19359 h[r] = Q([ c[o], l[o], u[o] ], f); 19360 return h; 19361 }, 19362 _resolveDataElementOptions: function(e, t) { 19363 var n = this, i = e && e.custom, r = n._cachedDataOpts; 19364 if (r && !i) return r; 19365 var o, s, a, l, c = n.chart, u = n._config, d = c.options.elements[n.dataElementType.prototype._type] || {}, h = n._dataElementOptions, f = {}, p = { 19366 chart: c, 19367 dataIndex: t, 19368 dataset: n.getDataset(), 19369 datasetIndex: n.index 19370 }, m = { 19371 cacheable: !i 19372 }; 19373 if (i = i || {}, $.isArray(h)) for (s = 0, a = h.length; s < a; ++s) f[l = h[s]] = Q([ i[l], u[l], d[l] ], p, t, m); else for (s = 0, 19374 a = (o = Object.keys(h)).length; s < a; ++s) f[l = o[s]] = Q([ i[l], u[h[l]], u[l], d[l] ], p, t, m); 19375 return m.cacheable && (n._cachedDataOpts = Object.freeze(f)), f; 19376 }, 19377 removeHoverStyle: function(e) { 19378 $.merge(e._model, e.$previousStyle || {}), delete e.$previousStyle; 19379 }, 19380 setHoverStyle: function(e) { 19381 var t = this.chart.data.datasets[e._datasetIndex], n = e._index, i = e.custom || {}, r = e._model, o = $.getHoverColor; 19382 e.$previousStyle = { 19383 backgroundColor: r.backgroundColor, 19384 borderColor: r.borderColor, 19385 borderWidth: r.borderWidth 19386 }, r.backgroundColor = Q([ i.hoverBackgroundColor, t.hoverBackgroundColor, o(r.backgroundColor) ], void 0, n), 19387 r.borderColor = Q([ i.hoverBorderColor, t.hoverBorderColor, o(r.borderColor) ], void 0, n), 19388 r.borderWidth = Q([ i.hoverBorderWidth, t.hoverBorderWidth, r.borderWidth ], void 0, n); 19389 }, 19390 _removeDatasetHoverStyle: function() { 19391 var e = this.getMeta().dataset; 19392 e && this.removeHoverStyle(e); 19393 }, 19394 _setDatasetHoverStyle: function() { 19395 var e, t, n, i, r, o, s = this.getMeta().dataset, a = {}; 19396 if (s) { 19397 for (o = s._model, r = this._resolveDatasetElementOptions(s, !0), e = 0, t = (i = Object.keys(r)).length; e < t; ++e) a[n = i[e]] = o[n], 19398 o[n] = r[n]; 19399 s.$previousStyle = a; 19400 } 19401 }, 19402 resyncElements: function() { 19403 var e = this.getMeta(), t = this.getDataset().data, n = e.data.length, i = t.length; 19404 i < n ? e.data.splice(i, n - i) : i > n && this.insertElements(n, i - n); 19405 }, 19406 insertElements: function(e, t) { 19407 for (var n = 0; n < t; ++n) this.addElementAndReset(e + n); 19408 }, 19409 onDataPush: function() { 19410 var e = arguments.length; 19411 this.insertElements(this.getDataset().data.length - e, e); 19412 }, 19413 onDataPop: function() { 19414 this.getMeta().data.pop(); 19415 }, 19416 onDataShift: function() { 19417 this.getMeta().data.shift(); 19418 }, 19419 onDataSplice: function(e, t) { 19420 this.getMeta().data.splice(e, t), this.insertElements(e, arguments.length - 2); 19421 }, 19422 onDataUnshift: function() { 19423 this.insertElements(0, arguments.length); 19424 } 19425 }), ne.extend = $.inherits; 19426 var ie = ne, re = 2 * Math.PI; 19427 function oe(e, t) { 19428 var n = t.startAngle, i = t.endAngle, r = t.pixelMargin, o = r / t.outerRadius, s = t.x, a = t.y; 19429 e.beginPath(), e.arc(s, a, t.outerRadius, n - o, i + o), t.innerRadius > r ? (o = r / t.innerRadius, 19430 e.arc(s, a, t.innerRadius - r, i + o, n - o, !0)) : e.arc(s, a, r, i + Math.PI / 2, n - Math.PI / 2), 19431 e.closePath(), e.clip(); 19432 } 19433 function se(e, t, n) { 19434 var i = "inner" === t.borderAlign; 19435 i ? (e.lineWidth = 2 * t.borderWidth, e.lineJoin = "round") : (e.lineWidth = t.borderWidth, 19436 e.lineJoin = "bevel"), n.fullCircles && function(e, t, n, i) { 19437 var r, o = n.endAngle; 19438 for (i && (n.endAngle = n.startAngle + re, oe(e, n), n.endAngle = o, n.endAngle === n.startAngle && n.fullCircles && (n.endAngle += re, 19439 n.fullCircles--)), e.beginPath(), e.arc(n.x, n.y, n.innerRadius, n.startAngle + re, n.startAngle, !0), 19440 r = 0; r < n.fullCircles; ++r) e.stroke(); 19441 for (e.beginPath(), e.arc(n.x, n.y, t.outerRadius, n.startAngle, n.startAngle + re), 19442 r = 0; r < n.fullCircles; ++r) e.stroke(); 19443 }(e, t, n, i), i && oe(e, n), e.beginPath(), e.arc(n.x, n.y, t.outerRadius, n.startAngle, n.endAngle), 19444 e.arc(n.x, n.y, n.innerRadius, n.endAngle, n.startAngle, !0), e.closePath(), e.stroke(); 19445 } 19446 j._set("global", { 19447 elements: { 19448 arc: { 19449 backgroundColor: j.global.defaultColor, 19450 borderColor: "#fff", 19451 borderWidth: 2, 19452 borderAlign: "center" 19453 } 19454 } 19455 }); 19456 var ae = X.extend({ 19457 _type: "arc", 19458 inLabelRange: function(e) { 19459 var t = this._view; 19460 return !!t && Math.pow(e - t.x, 2) < Math.pow(t.radius + t.hoverRadius, 2); 19461 }, 19462 inRange: function(e, t) { 19463 var n = this._view; 19464 if (n) { 19465 for (var i = $.getAngleFromPoint(n, { 19466 x: e, 19467 y: t 19468 }), r = i.angle, o = i.distance, s = n.startAngle, a = n.endAngle; a < s; ) a += re; 19469 for (;r > a; ) r -= re; 19470 for (;r < s; ) r += re; 19471 var l = r >= s && r <= a, c = o >= n.innerRadius && o <= n.outerRadius; 19472 return l && c; 19473 } 19474 return !1; 19475 }, 19476 getCenterPoint: function() { 19477 var e = this._view, t = (e.startAngle + e.endAngle) / 2, n = (e.innerRadius + e.outerRadius) / 2; 19478 return {
19479 x: e.x + Math.cos(t) * n, 19480 y: e.y + Math.sin(t) * n 19481 }; 19482 }, 19483 getArea: function() { 19484 var e = this._view; 19485 return Math.PI * ((e.endAngle - e.startAngle) / (2 * Math.PI)) * (Math.pow(e.outerRadius, 2) - Math.pow(e.innerRadius, 2)); 19486 }, 19487 tooltipPosition: function() { 19488 var e = this._view, t = e.startAngle + (e.endAngle - e.startAngle) / 2, n = (e.outerRadius - e.innerRadius) / 2 + e.innerRadius; 19489 return { 19490 x: e.x + Math.cos(t) * n, 19491 y: e.y + Math.sin(t) * n 19492 }; 19493 }, 19494 draw: function() { 19495 var e, t = this._chart.ctx, n = this._view, i = "inner" === n.borderAlign ? .33 : 0, r = { 19496 x: n.x, 19497 y: n.y, 19498 innerRadius: n.innerRadius, 19499 outerRadius: Math.max(n.outerRadius - i, 0), 19500 pixelMargin: i, 19501 startAngle: n.startAngle, 19502 endAngle: n.endAngle, 19503 fullCircles: Math.floor(n.circumference / re) 19504 }; 19505 if (t.save(), t.fillStyle = n.backgroundColor, t.strokeStyle = n.borderColor, r.fullCircles) { 19506 for (r.endAngle = r.startAngle + re, t.beginPath(), t.arc(r.x, r.y, r.outerRadius, r.startAngle, r.endAngle), 19507 t.arc(r.x, r.y, r.innerRadius, r.endAngle, r.startAngle, !0), t.closePath(), e = 0; e < r.fullCircles; ++e) t.fill(); 19508 r.endAngle = r.startAngle + n.circumference % re; 19509 } 19510 t.beginPath(), t.arc(r.x, r.y, r.outerRadius, r.startAngle, r.endAngle), t.arc(r.x, r.y, r.innerRadius, r.endAngle, r.startAngle, !0), 19511 t.closePath(), t.fill(), n.borderWidth && se(t, n, r), t.restore(); 19512 } 19513 }), le = $.valueOrDefault, ce = j.global.defaultColor; 19514 j._set("global", { 19515 elements: { 19516 line: { 19517 tension: .4, 19518 backgroundColor: ce, 19519 borderWidth: 3, 19520 borderColor: ce, 19521 borderCapStyle: "butt", 19522 borderDash: [], 19523 borderDashOffset: 0, 19524 borderJoinStyle: "miter", 19525 capBezierPoints: !0, 19526 fill: !0 19527 } 19528 } 19529 }); 19530 var ue = X.extend({ 19531 _type: "line", 19532 draw: function() { 19533 var e, t, n, i = this, r = i._view, o = i._chart.ctx, s = r.spanGaps, a = i._children.slice(), l = j.global, c = l.elements.line, u = -1, d = i._loop; 19534 if (a.length) { 19535 if (i._loop) { 19536 for (e = 0; e < a.length; ++e) if (t = $.previousItem(a, e), !a[e]._view.skip && t._view.skip) { 19537 a = a.slice(e).concat(a.slice(0, e)), d = s; 19538 break; 19539 } 19540 d && a.push(a[0]); 19541 } 19542 for (o.save(), o.lineCap = r.borderCapStyle || c.borderCapStyle, o.setLineDash && o.setLineDash(r.borderDash || c.borderDash), 19543 o.lineDashOffset = le(r.borderDashOffset, c.borderDashOffset), o.lineJoin = r.borderJoinStyle || c.borderJoinStyle, 19544 o.lineWidth = le(r.borderWidth, c.borderWidth), o.strokeStyle = r.borderColor || l.defaultColor, 19545 o.beginPath(), (n = a[0]._view).skip || (o.moveTo(n.x, n.y), u = 0), e = 1; e < a.length; ++e) n = a[e]._view, 19546 t = -1 === u ? $.previousItem(a, e) : a[u], n.skip || (u !== e - 1 && !s || -1 === u ? o.moveTo(n.x, n.y) : $.canvas.lineTo(o, t._view, n), 19547 u = e); 19548 d && o.closePath(), o.stroke(), o.restore(
19548); 19549 } 19550 } 19551 }), de = $.valueOrDefault, he = j.global.defaultColor; 19552 function fe(e) { 19553 var t = this._view; 19554 return !!t && Math.abs(e - t.x) < t.radius + t.hitRadius; 19555 } 19556 j._set("global", { 19557 elements: { 19558 point: { 19559 radius: 3, 19560 pointStyle: "circle", 19561 backgroundColor: he, 19562 borderColor: he, 19563 borderWidth: 1, 19564 hitRadius: 1, 19565 hoverRadius: 4, 19566 hoverBorderWidth: 1 19567 } 19568 } 19569 }); 19570 var pe = X.extend({ 19571 _type: "point", 19572 inRange: function(e, t) { 19573 var n = this._view; 19574 return !!n && Math.pow(e - n.x, 2) + Math.pow(t - n.y, 2) < Math.pow(n.hitRadius + n.radius, 2); 19575 }, 19576 inLabelRange: fe, 19577 inXRange: fe, 19578 inYRange: function(e) { 19579 var t = this._view; 19580 return !!t && Math.abs(e - t.y) < t.radius + t.hitRadius; 19581 }, 19582 getCenterPoint: function() { 19583 var e = this._view; 19584 return { 19585 x: e.x, 19586 y: e.y 19587 }; 19588 }, 19589 getArea: function() { 19590 return Math.PI * Math.pow(this._view.radius, 2); 19591 }, 19592 tooltipPosition: function() { 19593 var e = this._view; 19594 return { 19595 x: e.x, 19596 y: e.y, 19597 padding: e.radius + e.borderWidth 19598 }; 19599 }, 19600 draw: function(e) { 19601 var t = this._view, n = this._chart.ctx, i = t.pointStyle, r = t.rotation, o = t.radius, s = t.x, a = t.y, l = j.global, c = l.defaultColor; 19602 t.skip || (void 0 === e || $.canvas._isPointInArea(t, e)) && (n.strokeStyle = t.borderColor || c, 19603 n.lineWidth = de(t.borderWidth, l.elements.point.borderWidth), n.fillStyle = t.backgroundColor || c, 19604 $.canvas.drawPoint(n, i, o, s, a, r)); 19605 } 19606 }), me = j.global.defaultColor; 19607 function ge(e) { 19608 return e && void 0 !== e.width; 19609 } 19610 function ve(e) { 19611 var t, n, i, r, o; 19612 return ge(e) ? (o = e.width / 2, t = e.x - o, n = e.x + o, i = Math.min(e.y, e.base), 19613 r = Math.max(e.y, e.base)) : (o = e.height / 2, t = Math.min(e.x, e.base), n = Math.max(e.x, e.base), 19614 i = e.y - o, r = e.y + o), { 19615 left: t, 19616 top: i, 19617 right: n, 19618 bottom: r 19619 }; 19620 } 19621 function be(e, t, n) { 19622 return e === t ? n : e === n ? t : e; 19623 } 19624 function ye(e, t, n) { 19625 var i, r, o, s, a = e.borderWidth, l = function(e) { 19626 var t = e.borderSkipped, n = {}; 19627 return t ? (e.horizontal ? e.base > e.x && (t = be(t, "left", "right")) : e.base < e.y && (t = be(t, "bottom", "top")), 19628 n[t] = !0, n) : n; 19629 }(e); 19630 return $.isObject(a) ? (i = +a.top || 0, r = +a.right || 0, o = +a.bottom || 0, 19631 s = +a.left || 0) : i = r = o = s = +a || 0, { 19632 t: l.top || i < 0 ? 0 : i > n ? n : i, 19633 r: l.right || r < 0 ? 0 : r > t ? t : r, 19634 b: l.bottom || o < 0 ? 0 : o > n ? n : o, 19635 l: l.left || s < 0 ? 0 : s > t ? t : s 19636 }; 19637 } 19638 function xe(e, t, n) { 19639 var i = null === t, r = null === n, o = !(!e || i && r) && ve(e); 19640 return o && (i || t >= o.left && t <= o.right) && (r || n >= o.top && n <= o.bottom); 19641 } 19642 j._set("global", { 19643 elements: { 19644 rectangle: { 19645 backgroundColor: me, 19646 borderColor: me, 19647 borderSkipped: "bottom", 19648 borderWidth: 0 19649 } 19650 } 19651 }); 19652 var we = X.extend({ 19653 _type: "rectangle", 19654 draw: function() { 19655 var e = this._chart.ctx, t = this._view, n = function(e) { 19656 var t = ve(e), n = t.right - t.left, i = t.bottom - t.top, r = ye(e, n / 2, i / 2); 19657 return { 19658 outer: { 19659 x: t.left, 19660 y: t.top, 19661 w: n, 19662 h: i 19663 }, 19664 inner: { 19665 x: t.left + r.l, 19666 y: t.top + r.t, 19667 w: n - r.l - r.r, 19668 h: i - r.t - r.b 19669 } 19670 }; 19671 }(t), i = n.outer, r = n.inner; 19672 e.fillStyle = t.backgroundColor, e.fillRect(i.x, i.y, i.w, i.h), i.w === r.w && i.h === r.h || (e.save(), 19673 e.beginPath(), e.rect(i.x, i.y, i.w, i.h), e.clip(), e.fillStyle = t.borderColor, 19674 e.rect(r.x, r.y, r.w, r.h), e.fill("evenodd"), e.restore(
19674)); 19675 }, 19676 height: function() { 19677 var e = this._view; 19678 return e.base - e.y; 19679 }, 19680 inRange: function(e, t) { 19681 return xe(this._view, e, t); 19682 }, 19683 inLabelRange: function(e, t) { 19684 var n = this._view; 19685 return ge(n) ? xe(n, e, null) : xe(n, null, t); 19686 }, 19687 inXRange: function(e) { 19688 return xe(this._view, e, null); 19689 }, 19690 inYRange: function(e) { 19691 return xe(this._view, null, e); 19692 }, 19693 getCenterPoint: function() { 19694 var e, t, n = this._view; 19695 return ge(n) ? (e = n.x, t = (n.y + n.base) / 2) : (e = (n.x + n.base) / 2, t = n.y), 19696 { 19697 x: e, 19698 y: t 19699 }; 19700 }, 19701 getArea: function() { 19702 var e = this._view; 19703 return ge(e) ? e.width * Math.abs(e.y - e.base) : e.height * Math.abs(e.x - e.base); 19704 }, 19705 tooltipPosition: function() { 19706 var e = this._view; 19707 return { 19708 x: e.x, 19709 y: e.y 19710 }; 19711 } 19712 }), _e = {}, Se = ae, Ee = ue, Ce = pe, Te = we; 19713 _e.Arc = Se, _e.Line = Ee, _e.Point = Ce, _e.Rectangle = Te; 19714 var ke = $._deprecated, Me = $.valueOrDefault; 19715 function Ae(e, t, n) { 19716 var i, r, o = n.barThickness, s = t.stackCount, a = t.pixels[e], l = $.isNullOrUndef(o) ? function(e, t) { 19717 var n, i, r, o, s = e._length; 19718 for (r = 1, o = t.length; r < o; ++r) s = Math.min(s, Math.abs(t[r] - t[r - 1])); 19719 for (r = 0, o = e.getTicks().length; r < o; ++r) i = e.getPixelForTick(r), s = r > 0 ? Math.min(s, Math.abs(i - n)) : s, 19720 n = i; 19721 return s; 19722 }(t.scale, t.pixels) : -1; 19723 return $.isNullOrUndef(o) ? (i = l * n.categoryPercentage, r = n.barPercentage) : (i = o * s, 19724 r = 1), { 19725 chunk: i / s, 19726 ratio: r, 19727 start: a - i / 2 19728 }; 19729 } 19730 j._set("bar", { 19731 hover: { 19732 mode: "label" 19733 }, 19734 scales: { 19735 xAxes: [ { 19736 type: "category", 19737 offset: !0, 19738 gridLines: { 19739 offsetGridLines: !0 19740 } 19741 } ], 19742 yAxes: [ { 19743 type: "linear" 19744 } ] 19745 } 19746 }), j._set("global", { 19747 datasets: { 19748 bar: { 19749 categoryPercentage: .8, 19750 barPercentage: .9 19751 } 19752 } 19753 }); 19754 var Oe = ie.extend({ 19755 dataElementType: _e.Rectangle, 19756 _dataElementOptions: [ "backgroundColor", "borderColor", "borderSkipped", "borderWidth", "barPercentage", "barThickness", "categoryPercentage", "maxBarThickness", "minBarLength" ], 19757 initialize: function() { 19758 var e, t, n = this; 19759 ie.prototype.initialize.apply(n, arguments), (e = n.getMeta()).stack = n.getDataset().stack, 19760 e.bar = !0, t = n._getIndexScale().options, ke("bar chart", t.barPercentage, "scales.[x/y]Axes.barPercentage", "dataset.barPercentage"), 19761 ke("bar chart", t.barThickness, "scales.[x/y]Axes.barThickness", "dataset.barThickness"), 19762 ke("bar chart", t.categoryPercentage, "scales.[x/y]Axes.categoryPercentage", "dataset.categoryPercentage"), 19763 ke("bar chart", n._getValueScale().options.minBarLength, "scales.[x/y]Axes.minBarLength", "dataset.minBarLength"), 19764 ke("bar chart", t.maxBarThickness, "scales.[x/y]Axes.maxBarThickness", "dataset.maxBarThickness"); 19765 }, 19766 update: function(e) { 19767 var t, n, i = this.getMeta().data; 19768 for (this._ruler = this.getRuler(), t = 0, n = i.length; t < n; ++t) this.updateElement(i[t], t, e); 19769 }, 19770 updateElement: function(e, t, n) { 19771 var i = this, r = i.getMeta(), o = i.getDataset(), s = i._resolveDataElementOptions(e, t); 19772 e._xScale = i.getScaleForId(r.xAxisID), e._yScale = i.getScaleForId(r.yAxisID), 19773 e._datasetIndex = i.index, e._index = t, e._model = { 19774 backgroundColor: s.backgroundColor, 19775 borderColor: s.borderColor, 19776 borderSkipped: s.borderSkipped, 19777 borderWidth: s.borderWidth, 19778 datasetLabel: o.label, 19779 label: i.chart.data.labels[t] 19780 }, $.isArray(o.data[t]) && (e._model.borderSkipped = null), i._updateElementGeometry(e, t, n, s), 19781 e.pivot(); 19782 }, 19783 _updateElementGeometry: function(e, t, n, i) { 19784 var r = this, o = e._model, s = r._getValueScale(), a = s.getBasePixel(), l = s.isHorizontal(), c = r._ruler || r.getRuler(), u = r.calculateBarValuePixels(r.index, t, i), d = r.calculateBarIndexPixels(r.index, t, c, i); 19785 o.horizontal = l, o.base = n ? a : u.base, o.x = l ? n ? a : u.head : d.center, 19786 o.y = l ? d.center : n ? a : u.head, o.height = l ? d.size : void 0, o.width = l ? void 0 : d.size; 19787 }, 19788 _getStacks: function(e) { 19789 var t, n, i = this._getIndexScale(), r = i._getMatchingVisibleMetas(this._type), o = i.options.stacked, s = r.length, a = []; 19790 for (t = 0; t < s && (n = r[t], (!1 === o || -1 === a.indexOf(n.stack) || void 0 === o && void 0 === n.stack) && a.push(n.stack), 19791 n.index !== e); ++t) ; 19792 return a; 19793 }, 19794 getStackCount: function() { 19795 return this._getStacks().length; 19796 }, 19797 getStackIndex: function(e, t) { 19798 var n = this._getStacks(e), i = void 0 !== t ? n.indexOf(t) : -1; 19799 return -1 === i ? n.length - 1 : i; 19800 }, 19801 getRuler: function() { 19802 var e, t, n = this._getIndexScale(), i = []; 19803 for (e = 0, t = this.getMeta().data.length; e < t; ++e) i.push(n.getPixelForValue(null, e, this.index)); 19804 return { 19805 pixels: i, 19806 start: n._startPixel, 19807 end: n._endPixel,
19808 stackCount: this.getStackCount(), 19809 scale: n 19810 }; 19811 }, 19812 calculateBarValuePixels: function(e, t, n) { 19813 var i, r, o, s, a, l, c, u = this.chart, d = this._getValueScale(), h = d.isHorizontal(), f = u.data.datasets, p = d._getMatchingVisibleMetas(this._type), m = d._parseValue(f[e].data[t]), g = n.minBarLength, v = d.options.stacked, b = this.getMeta().stack, y = void 0 === m.start ? 0 : m.max >= 0 && m.min >= 0 ? m.min : m.max, x = void 0 === m.start ? m.end : m.max >= 0 && m.min >= 0 ? m.max - m.min : m.min - m.max, w = p.length; 19814 if (v || void 0 === v && void 0 !== b) for (i = 0; i < w && (r = p[i]).index !== e; ++i) r.stack === b && (o = void 0 === (c = d._parseValue(f[r.index].data[t])).start ? c.end : c.min >= 0 && c.max >= 0 ? c.max : c.min, 19815 (m.min < 0 && o < 0 || m.max >= 0 && o > 0) && (y += o)); 19816 return s = d.getPixelForValue(y), l = (a = d.getPixelForValue(y + x)) - s, void 0 !== g && Math.abs(l) < g && (l = g, 19817 a = x >= 0 && !h || x < 0 && h ? s - g : s + g), { 19818 size: l, 19819 base: s, 19820 head: a, 19821 center: a + l / 2 19822 }; 19823 }, 19824 calculateBarIndexPixels: function(e, t, n, i) { 19825 var r = "flex" === i.barThickness ? function(e, t, n) { 19826 var i, r = t.pixels, o = r[e], s = e > 0 ? r[e - 1] : null, a = e < r.length - 1 ? r[e + 1] : null, l = n.categoryPercentage; 19827 return null === s && (s = o - (null === a ? t.end - t.start : a - o)), null === a && (a = o + o - s), 19828 i = o - (o - Math.min(s, a)) / 2 * l, { 19829 chunk: Math.abs(a - s) / 2 * l / t.stackCount, 19830 ratio: n.barPercentage, 19831 start: i 19832 }; 19833 }(t, n, i) : Ae(t, n, i), o = this.getStackIndex(e, this.getMeta().stack), s = r.start + r.chunk * o + r.chunk / 2, a = Math.min(Me(i.maxBarThickness, 1 / 0), r.chunk * r.ratio); 19834 return { 19835 base: s - a / 2, 19836 head: s + a / 2, 19837 center: s, 19838 size: a 19839 }; 19840 }, 19841 draw: function() { 19842 var e = this.chart, t = this._getValueScale(), n = this.getMeta().data, i = this.getDataset(), r = n.length, o = 0; 19843 for ($.canvas.clipArea(e.ctx, e.chartArea); o < r; ++o) { 19844 var s = t._parseValue(i.data[o]); 19845 isNaN(s.min) || isNaN(s.max) || n[o].draw(); 19846 } 19847 $.canvas.unclipArea(e.ctx); 19848 }, 19849 _resolveDataElementOptions: function() { 19850 var e = this, t = $.extend({}, ie.prototype._resolveDataElementOptions.apply(e, arguments)), n = e._getIndexScale().options, i = e._getValueScale().options; 19851 return t.barPercentage = Me(n.barPercentage, t.barPercentage), t.barThickness = Me(n.barThickness, t.barThickness), 19852 t.categoryPercentage = Me(n.categoryPercentage, t.categoryPercentage), t.maxBarThickness = Me(n.maxBarThickness, t.maxBarThickness), 19853 t.minBarLength = Me(i.minBarLength, t.minBarLength), t; 19854 } 19855 }), Pe = $.valueOrDefault, Ie = $.options.resolve; 19856 j._set("bubble", { 19857 hover: { 19858 mode: "single" 19859 }, 19860 scales: { 19861 xAxes: [ { 19862 type: "linear", 19863 position: "bottom", 19864 id: "x-axis-0" 19865 } ], 19866 yAxes: [ { 19867 type: "linear", 19868 position: "left", 19869 id: "y-axis-0" 19870 } ] 19871 }, 19872 tooltips: { 19873 callbacks: { 19874 title: function() { 19875 return ""; 19876 }, 19877 label: function(e, t) { 19878 var n = t.datasets[e.datasetIndex].label || "", i = t.datasets[e.datasetIndex].data[e.index]; 19879 return n + ": (" + e.xLabel + ", " + e.yLabel + ", " + i.r + ")"; 19880 } 19881 } 19882 } 19883 }); 19884 var Le = ie.extend({ 19885 dataElementType: _e.Point, 19886 _dataElementOptions: [ "backgroundColor", "borderColor", "borderWidth", "hoverBackgroun
19886dColor", "hoverBorderColor", "hoverBorderWidth", "hoverRadius", "hitRadius", "pointStyle", "rotation" ], 19887 update: function(e) { 19888 var t = this, n = t.getMeta().data; 19889 $.each(n, (function(n, i) { 19890 t.updateElement(n, i, e); 19891 })); 19892 }, 19893 updateElement: function(e, t, n) { 19894 var i = this, r = i.getMeta(), o = e.custom || {}, s = i.getScaleForId(r.xAxisID), a = i.getScaleForId(r.yAxisID), l = i._resolveDataElementOptions(e, t), c = i.getDataset().data[t], u = i.index, d = n ? s.getPixelForDecimal(.5) : s.getPixelForValue("object" == typeof c ? c : NaN, t, u), h = n ? a.getBasePixel() : a.getPixelForValue(c, t, u); 19895 e._xScale = s, e._yScale = a, e._options = l, e._datasetIndex = u, e._index = t, 19896 e._model = { 19897 backgroundColor: l.backgroundColor, 19898 borderColor: l.borderColor, 19899 borderWidth: l.borderWidth, 19900 hitRadius: l.hitRadius, 19901 pointStyle: l.pointStyle, 19902 rotation: l.rotation, 19903 radius: n ? 0 : l.radius, 19904 skip: o.skip || isNaN(d) || isNaN(h), 19905 x: d, 19906 y: h 19907 }, e.pivot(); 19908 }, 19909 setHoverStyle: function(e) { 19910 var t = e._model, n = e._options, i = $.getHoverColor; 19911 e.$previousStyle = { 19912 backgroundColor: t.backgroundColor, 19913 borderColor: t.borderColor, 19914 borderWidth: t.borderWidth, 19915 radius: t.radius 19916 }, t.backgroundColor = Pe(n.hoverBackgroundColor, i(n.backgroundColor)), t.borderColor = Pe(n.hoverBorderColor, i(n.borderColor)), 19917 t.borderWidth = Pe(n.hoverBorderWidth, n.borderWidth), t.radius = n.radius + n.hoverRadius; 19918 }, 19919 _resolveDataElementOptions: function(e, t) { 19920 var n = this, i = n.chart, r = n.getDataset(), o = e.custom || {}, s = r.data[t] || {}, a = ie.prototype._resolveDataElementOptions.apply(n, arguments), l = { 19921 chart: i, 19922 dataIndex: t, 19923 dataset: r, 19924 datasetIndex: n.index 19925 }; 19926 return n._cachedDataOpts === a && (a = $.extend({}, a)), a.radius = Ie([ o.radius, s.r, n._config.radius, i.options.elements.point.radius ], l, t), 19927 a; 19928 } 19929 }), De = $.valueOrDefault, Ne = Math.PI, Fe = 2 * Ne, je = Ne / 2; 19930 j._set("doughnut", { 19931 animation: { 19932 animateRotate: !0, 19933 animateScale: !1 19934 }, 19935 hover: { 19936 mode: "single" 19937 }, 19938 legendCallback: function(e) { 19939 var t, n, i, r = document.createElement("ul"), o = e.data, s = o.datasets, a = o.labels; 19940 if (r.setAttribute("class", e.id + "-legend"), s.length) for (t = 0, n = s[0].data.length; t < n; ++t) (i = r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor = s[0].backgroundColor[t], 19941 a[t] && i.appendChild(document.createTextNode(a[t])); 19942 return r.outerHTML; 19943 }, 19944 legend: { 19945 labels: { 19946 generateLabels: function(e) { 19947 var t = e.data; 19948 return t.labels.length && t.datasets.length ? t.labels.map((function(n, i) { 19949 var r = e.getDatasetMeta(0), o = r.controller.getStyle(i); 19950 return { 19951 text: n, 19952 fillStyle: o.backgroundColor, 19953 strokeStyle: o.borderColor, 19954 lineWidth: o.borderWidth, 19955 hidden: isNaN(t.datasets[0].data[i]) || r.data[i].hidden, 19956 index: i 19957 }; 19958 })) : []; 19959 } 19960 }, 19961 onClick: function(e, t) { 19962 var n, i, r, o = t.index, s = this.chart; 19963 for (n = 0, i = (s.data.datasets || []).length; n < i; ++n) (r = s.getDatasetMeta(n)).data[o] && (r.data[o].hidden = !r.data[o].hidden); 19964 s.update(); 19965 } 19966 }, 19967 cutoutPercentage: 50, 19968 rotation: -je, 19969 circumference: Fe, 19970 tooltips: { 19971 callbacks: { 19972 title: function() { 19973 return ""; 19974 }, 19975 label: function(e, t) { 19976 var n = t.labels[e.index], i = ": " + t.datasets[e.datasetIndex].data[e.index]; 19977 return $.isArray(n) ? (n = n.slice())[0] += i : n += i, n; 19978 } 19979 } 19980 } 19981 }); 19982 var Re = ie.extend({ 19983 dataElementType: _e.Arc, 19984 linkScales: $.noop, 19985 _dataElementOptions: [ "backgroundColor", "borderColor", "borderWidth", "borderAlign", "hoverBackgroun
19985dColor", "hoverBorderColor", "hoverBorderWidth" ], 19986 getRingIndex: function(e) { 19987 for (var t = 0, n = 0; n < e; ++n) this.chart.isDatasetVisible(n) && ++t; 19988 return t; 19989 }, 19990 update: function(e) { 19991 var t, n, i, r, o = this, s = o.chart, a = s.chartArea, l = s.options, c = 1, u = 1, d = 0, h = 0, f = o.getMeta(), p = f.data, m = l.cutoutPercentage / 100 || 0, g = l.circumference, v = o._getRingWeight(o.index); 19992 if (g < Fe) { 19993 var b = l.rotation % Fe, y = (b += b >= Ne ? -Fe : b < -Ne ? Fe : 0) + g, x = Math.cos(b), w = Math.sin(b), _ = Math.cos(y), S = Math.sin(y), E = b <= 0 && y >= 0 || y >= Fe, C = b <= je && y >= je || y >= Fe + je, T = b <= -je && y >= -je || y >= Ne + je, k = b === -Ne || y >= Ne ? -1 : Math.min(x, x * m, _, _ * m), M = T ? -1 : Math.min(w, w * m, S, S * m), A = E ? 1 : Math.max(x, x * m, _, _ * m), O = C ? 1 : Math.max(w, w * m, S, S * m); 19994 c = (A - k) / 2, u = (O - M) / 2, d = -(A + k) / 2, h = -(O + M) / 2; 19995 } 19996 for (i = 0, r = p.length; i < r; ++i) p[i]._options = o._resolveDataElementOptions(p[i], i); 19997 for (s.borderWidth = o.getMaxBorderWidth(), t = (a.right - a.left - s.borderWidth) / c, 19998 n = (a.bottom - a.top - s.borderWidth) / u, s.outerRadius = Math.max(Math.min(t, n) / 2, 0), 19999 s.innerRadius = Math.max(s.outerRadius * m, 0), s.radiusLength = (s.outerRadius - s.innerRadius) / (o._getVisibleDatasetWeightTotal() || 1), 20000 s.offsetX = d * s.outerRadius, s.offsetY = h * s.outerRadius, f.total = o.calculateTotal(), 20001 o.outerRadius = s.outerRadius - s.radiusLength * o._getRingWeightOffset(o.index), 20002 o.innerRadius = Math.max(o.outerRadius - s.radiusLength * v, 0), i = 0, r = p.length; i < r; ++i) o.updateElement(p[i], i, e); 20003 }, 20004 updateElement: function(e, t, n) { 20005 var i = this, r = i.chart, o = r.chartArea, s = r.options, a = s.animation, l = (o.left + o.right) / 2, c = (o.top + o.bottom) / 2, u = s.rotation, d = s.rotation, h = i.getDataset(), f = n && a.animateRotate || e.hidden ? 0 : i.calculateCircumference(h.data[t]) * (s.circumference / Fe), p = n && a.animateScale ? 0 : i.innerRadius, m = n && a.animateScale ? 0 : i.outerRadius, g = e._options || {}; 20006 $.extend(e, { 20007 _datasetIndex: i.index, 20008 _index: t, 20009 _model: { 20010 backgroundColor: g.backgroundColor, 20011 borderColor: g.borderColor, 20012 borderWidth: g.borderWidth, 20013 borderAlign: g.borderAlign, 20014 x: l + r.offsetX, 20015 y: c + r.offsetY, 20016 startAngle: u, 20017 endAngle: d, 20018 circumference: f, 20019 outerRadius: m, 20020 innerRadius: p, 20021 label: $.valueAtIndexOrDefault(h.label, t, r.data.labels[t]) 20022 } 20023 }); 20024 var v = e._model; 20025 n && a.animateRotate || (v.startAngle = 0 === t ? s.rotation : i.getMeta().data[t - 1]._model.endAngle, 20026 v.endAngle = v.startAngle + v.circumference), e.pivot(); 20027 }, 20028 calculateTotal: function() { 20029 var e, t = this.getDataset(), n = this.getMeta(), i = 0; 20030 return $.each(n.data, (function(n, r) { 20031 e = t.data[r], isNaN(e) || n.hidden || (i += Math.abs(e)); 20032 })), i; 20033 }, 20034 calculateCircumference: function(e) { 20035 var t = this.getMeta().total; 20036 return t > 0 && !isNaN(e) ? Fe * (Math.abs(e) / t) : 0; 20037 }, 20038 getMaxBorderWidth: function(e) { 20039 var t, n, i, r, o, s, a, l, c = 0, u = this.chart; 20040 if (!e) for (t = 0, n = u.data.datasets.length; t < n; ++t) if (u.isDatasetVisible(t)) { 20041 e = (i = u.getDatasetMeta(t)).data, t !== this.index && (o = i.controller); 20042 break; 20043 } 20044 if (!e) return 0; 20045 for (t = 0, n = e.length; t < n; ++t) r = e[t], o ? (o._configure(), s = o._resolveDataElementOptions(r, t)) : s = r._options, 20046 "inner" !== s.borderAlign && (a = s.borderWidth, c = (l = s.hoverBorderWidth) > (c = a > c ? a : c) ? l : c); 20047 return c; 20048 }, 20049 setHoverStyle: function(e) { 20050 var t = e._model, n = e._options, i = $.getHoverColor; 20051 e.$previousStyle = { 20052 backgroundColor: t.backgroundColor, 20053 borderColor: t.borderColor, 20054 borderWidth: t.borderWidth 20055 }
20055, t.backgroundColor = De(n.hoverBackgroundColor, i(n.backgroundColor)), t.borderColor = De(n.hoverBorderColor, i(n.borderColor)), 20056 t.borderWidth = De(n.hoverBorderWidth, n.borderWidth); 20057 }, 20058 _getRingWeightOffset: function(e) { 20059 for (var t = 0, n = 0; n < e; ++n) this.chart.isDatasetVisible(n) && (t += this._getRingWeight(n)); 20060 return t; 20061 }, 20062 _getRingWeight: function(e) { 20063 return Math.max(De(this.chart.data.datasets[e].weight, 1), 0); 20064 }, 20065 _getVisibleDatasetWeightTotal: function() { 20066 return this._getRingWeightOffset(this.chart.data.datasets.length); 20067 } 20068 }); 20069 j._set("horizontalBar", { 20070 hover: { 20071 mode: "index", 20072 axis: "y" 20073 }, 20074 scales: { 20075 xAxes: [ { 20076 type: "linear", 20077 position: "bottom" 20078 } ], 20079 yAxes: [ { 20080 type: "category", 20081 position: "left", 20082 offset: !0, 20083 gridLines: { 20084 offsetGridLines: !0 20085 } 20086 } ] 20087 }, 20088 elements: { 20089 rectangle: { 20090 borderSkipped: "left" 20091 } 20092 }, 20093 tooltips: { 20094 mode: "index", 20095 axis: "y" 20096 } 20097 }), j._set("global", { 20098 datasets: { 20099 horizontalBar: { 20100 categoryPercentage: .8, 20101 barPercentage: .9 20102 } 20103 } 20104 }); 20105 var Be = Oe.extend({ 20106 _getValueScaleId: function() { 20107 return this.getMeta().xAxisID; 20108 }, 20109 _getIndexScaleId: function() { 20110 return this.getMeta().yAxisID; 20111 } 20112 }), ze = $.valueOrDefault, He = $.options.resolve, $e = $.canvas._isPointInArea; 20113 function We(e, t) { 20114 var n = e && e.options.ticks || {}, i = n.reverse, r = void 0 === n.min ? t : 0, o = void 0 === n.max ? t : 0; 20115 return { 20116 start: i ? o : r, 20117 end: i ? r : o 20118 }; 20119 } 20120 function qe(e, t, n) { 20121 var i = n / 2, r = We(e, i), o = We(t, i); 20122 return { 20123 top: o.end, 20124 right: r.end, 20125 bottom: o.start, 20126 left: r.start 20127 }; 20128 } 20129 function Ve(e) { 20130 var t, n, i, r; 20131 return $.isObject(e) ? (t = e.top, n = e.right, i = e.bottom, r = e.left) : t = n = i = r = e, 20132 { 20133 top: t, 20134 right: n, 20135 bottom: i, 20136 left: r 20137 }; 20138 } 20139 j._set("line", { 20140 showLines: !0, 20141 spanGaps: !1, 20142 hover: { 20143 mode: "label" 20144 }, 20145 scales: { 20146 xAxes: [ { 20147 type: "category", 20148 id: "x-axis-0" 20149 } ], 20150 yAxes: [ { 20151 type: "linear", 20152 id: "y-axis-0" 20153 } ] 20154 } 20155 }); 20156 var Ye = ie.extend({ 20157 datasetElementType: _e.Line, 20158 dataElementType: _e.Point, 20159 _datasetElementOptions: [ "backgroundColor", "borderCapStyle", "borderColor", "borderDash", "borderDashOffset", "borderJoinStyle", "borderWidth", "cubicInterpolationMode", "fill" ], 20160 _dataElementOptions: {
vendor: 6,341 bytes, lines 20161-20247
20161 backgroundColor: "pointBackgroundColor", 20162 borderColor: "pointBorderColor", 20163 borderWidth: "pointBorderWidth", 20164 hitRadius: "pointHitRadius", 20165 hoverBackgroundColor: "pointHoverBackgroundColor", 20166 hoverBorderColor: "pointHoverBorderColor", 20167 hoverBorderWidth: "pointHoverBorderWidth", 20168 hoverRadius: "pointHoverRadius", 20169 pointStyle: "pointStyle", 20170 radius: "pointRadius", 20171 rotation: "pointRotation" 20172 }, 20173 update: function(e) { 20174 var t, n, i = this, r = i.getMeta(), o = r.dataset, s = r.data || [], a = i.chart.options, l = i._config, c = i._showLine = ze(l.showLine, a.showLines); 20175 for (i._xScale = i.getScaleForId(r.xAxisID), i._yScale = i.getScaleForId(r.yAxisID), 20176 c && (void 0 !== l.tension && void 0 === l.lineTension && (l.lineTension = l.tension), 20177 o._scale = i._yScale, o._datasetIndex = i.index, o._children = s, o._model = i._resolveDatasetElementOptions(o), 20178 o.pivot()), t = 0, n = s.length; t < n; ++t) i.updateElement(s[t], t, e); 20179 for (c && 0 !== o._model.tension && i.updateBezierControlPoints(), t = 0, n = s.length; t < n; ++t) s[t].pivot(); 20180 }, 20181 updateElement: function(e, t, n) { 20182 var i, r, o = this, s = o.getMeta(), a = e.custom || {}, l = o.getDataset(), c = o.index, u = l.data[t], d = o._xScale, h = o._yScale, f = s.dataset._model, p = o._resolveDataElementOptions(e, t); 20183 i = d.getPixelForValue("object" == typeof u ? u : NaN, t, c), r = n ? h.getBasePixel() : o.calculatePointY(u, t, c), 20184 e._xScale = d, e._yScale = h, e._options = p, e._datasetIndex = c, e._index = t, 20185 e._model = { 20186 x: i, 20187 y: r, 20188 skip: a.skip || isNaN(i) || isNaN(r), 20189 radius: p.radius, 20190 pointStyle: p.pointStyle, 20191 rotation: p.rotation, 20192 backgroundColor: p.backgroundColor, 20193 borderColor: p.borderColor, 20194 borderWidth: p.borderWidth, 20195 tension: ze(a.tension, f ? f.tension : 0), 20196 steppedLine: !!f && f.steppedLine, 20197 hitRadius: p.hitRadius 20198 }; 20199 }, 20200 _resolveDatasetElementOptions: function(e) { 20201 var t = this, n = t._config, i = e.custom || {}, r = t.chart.options, o = r.elements.line, s = ie.prototype._resolveDatasetElementOptions.apply(t, arguments); 20202 return s.spanGaps = ze(n.spanGaps, r.spanGaps), s.tension = ze(n.lineTension, o.tension), 20203 s.steppedLine = He([ i.steppedLine, n.steppedLine, o.stepped ]), s.clip = Ve(ze(n.clip, qe(t._xScale, t._yScale, s.borderWidth))), 20204 s; 20205 }, 20206 calculatePointY: function(e, t, n) { 20207 var i, r, o, s, a, l, c, u = this.chart, d = this._yScale, h = 0, f = 0; 20208 if (d.options.stacked) { 20209 for (a = +d.getRightValue(e), c = (l = u._getSortedVisibleDatasetMetas()).length, 20210 i = 0; i < c && (o = l[i]).index !== n; ++i) r = u.data.datasets[o.index], "line" === o.type && o.yAxisID === d.id && ((s = +d.getRightValue(r.data[t])) < 0 ? f += s || 0 : h += s || 0); 20211 return a < 0 ? d.getPixelForValue(f + a) : d.getPixelForValue(h + a); 20212 } 20213 return d.getPixelForValue(e); 20214 }, 20215 updateBezierControlPoints: function() { 20216 var e, t, n, i, r = this.chart, o = this.getMeta(), s = o.dataset._model, a = r.chartArea, l = o.data || []; 20217 function c(e, t, n) { 20218 return Math.max(Math.min(e, n), t); 20219 } 20220 if (s.spanGaps && (l = l.filter((function(e) { 20221 return !e._model.skip; 20222 }))), "monotone" === s.cubicInterpolationMode) $.splineCurveMonotone(l); else for (e = 0, 20223 t = l.length; e < t; ++e) n = l[e]._model, i = $.splineCurve($.previousItem(l, e)._model, n, $.nextItem(l, e)._model, s.tension), 20224 n.controlPointPreviousX = i.previous.x, n.controlPointPreviousY = i.previous.y, 20225 n.controlPointNextX = i.next.x, n.controlPointNextY = i.next.y; 20226 if (r.options.elements.line.capBezierPoints) for (e = 0, t = l.length; e < t; ++e) n = l[e]._model, 20227 $e(n, a) && (e > 0 && $e(l[e - 1]._model, a) && (n.controlPointPreviousX = c(n.controlPointPreviousX, a.left, a.right), 20228 n.controlPointPreviousY = c(n.controlPointPreviousY, a.top, a.bottom)), e < l.length - 1 && $e(l[e + 1]._model, a) && (n.controlPointNextX = c(n.controlPointNextX, a.left, a.right), 20229 n.controlPointNextY = c(n.controlPointNextY, a.top, a.bottom))); 20230 }, 20231 draw: function() { 20232 var e, t = this.chart, n = this.getMeta(), i = n.data || [], r = t.chartArea, o = t.canvas, s = 0, a = i.length; 20233 for (this._showLine && (e = n.dataset._model.clip, $.canvas.clipArea(t.ctx, { 20234 left: !1 === e.left ? 0 : r.left - e.left, 20235 right: !1 === e.right ? o.width : r.right + e.right, 20236 top: !1 === e.top ? 0 : r.top - e.top, 20237 bottom: !1 === e.bottom ? o.height : r.bottom + e.bottom 20238 }), n.dataset.draw(), $.canvas.unclipArea(t.ctx)); s < a; ++s) i[s].draw(r); 20239 }, 20240 setHoverStyle: function(e) { 20241 var t = e._model, n = e._options, i = $.getHoverColor; 20242 e.$previousStyle = { 20243 backgroundColor: t.backgroundColor, 20244 borderColor: t.borderColor, 20245 borderWidth: t.borderWidth, 20246 radius: t.radius 20247 }
20247, t.backgroundColor = ze(n.hoverBackgroundColor, i(n.backgroundColor)), t.borderColor = ze(n.hoverBorderColor, i(n.borderColor)), 20248 t.borderWidth = ze(n.hoverBorderWidth, n.borderWidth), t.radius = ze(n.hoverRadius, n.radius); 20249 } 20250 }), Ge = $.options.resolve; 20251 j._set("polarArea", { 20252 scale: { 20253 type: "radialLinear", 20254 angleLines: { 20255 display: !1 20256 }, 20257 gridLines: { 20258 circular: !0 20259 }, 20260 pointLabels: { 20261 display: !1 20262 }, 20263 ticks: { 20264 beginAtZero: !0 20265 } 20266 }, 20267 animation: { 20268 animateRotate: !0, 20269 animateScale: !0 20270 }, 20271 startAngle: -.5 * Math.PI, 20272 legendCallback: function(e) { 20273 var t, n, i, r = document.createElement("ul"), o = e.data, s = o.datasets, a = o.labels; 20274 if (r.setAttribute("class", e.id + "-legend"), s.length) for (t = 0, n = s[0].data.length; t < n; ++t) (i = r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor = s[0].backgroundColor[t], 20275 a[t] && i.appendChild(document.createTextNode(a[t])); 20276 return r.outerHTML; 20277 }, 20278 legend: { 20279 labels: { 20280 generateLabels: function(e) { 20281 var t = e.data; 20282 return t.labels.length && t.datasets.length ? t.labels.map((function(n, i) { 20283 var r = e.getDatasetMeta(0), o = r.controller.getStyle(i); 20284 return { 20285 text: n, 20286 fillStyle: o.backgroundColor, 20287 strokeStyle: o.borderColor, 20288 lineWidth: o.borderWidth, 20289 hidden: isNaN(t.datasets[0].data[i]) || r.data[i].hidden, 20290 index: i 20291 }; 20292 })) : []; 20293 } 20294 }, 20295 onClick: function(e, t) { 20296 var n, i, r, o = t.index, s = this.chart; 20297 for (n = 0, i = (s.data.datasets || []).length; n < i; ++n) (r = s.getDatasetMeta(n)).data[o].hidden = !r.data[o].hidden; 20298 s.update(); 20299 } 20300 }, 20301 tooltips: { 20302 callbacks: { 20303 title: function() { 20304 return ""; 20305 }, 20306 label: function(e, t) { 20307 return t.labels[e.index] + ": " + e.yLabel; 20308 } 20309 } 20310 } 20311 }); 20312 var Ue = ie.extend({ 20313 dataElementType: _e.Arc, 20314 linkScales: $.noop, 20315 _dataElementOptions: [ "backgroundColor", "borderColor", "borderWidth", "borderAlign", "hoverBackgroundColor", "hoverBorderColor", "hoverBorderWidth" ], 20316 _getIndexScaleId: function() { 20317 return this.chart.scale.id; 20318 }, 20319 _getValueScaleId: function() { 20320 return this.chart.scale.id; 20321 }, 20322 update: function(e) { 20323 var t, n, i, r = this, o = r.getDataset(), s = r.getMeta(), a = r.chart.options.startAngle || 0, l = r._starts = [], c = r._angles = [], u = s.data; 20324 for (r._updateRadius(), s.count = r.countVisibleElements(), t = 0, n = o.data.length; t < n; t++) l[t] = a, 20325 i = r._computeAngle(t), c[t] = i, a += i; 20326 for (t = 0, n = u.length; t < n; ++t) u[t]._options = r._resolveDataElementOptions(u[t], t), 20327 r.updateElement(u[t], t, e); 20328 }, 20329 _updateRadius: function() { 20330 var e = this, t = e.chart, n = t.chartArea, i = t.options, r = Math.min(n.right - n.left, n.bottom - n.top); 20331 t.outerRadius = Math.max(r / 2, 0), t.innerRadius = Math.max(i.cutoutPercentage ? t.outerRadius / 100 * i.cutoutPercentage : 1, 0),
20332 t.radiusLength = (t.outerRadius - t.innerRadius) / t.getVisibleDatasetCount(), e.outerRadius = t.outerRadius - t.radiusLength * e.index, 20333 e.innerRadius = e.outerRadius - t.radiusLength; 20334 }, 20335 updateElement: function(e, t, n) { 20336 var i = this, r = i.chart, o = i.getDataset(), s = r.options, a = s.animation, l = r.scale, c = r.data.labels, u = l.xCenter, d = l.yCenter, h = s.startAngle, f = e.hidden ? 0 : l.getDistanceFromCenterForValue(o.data[t]), p = i._starts[t], m = p + (e.hidden ? 0 : i._angles[t]), g = a.animateScale ? 0 : l.getDistanceFromCenterForValue(o.data[t]), v = e._options || {}; 20337 $.extend(e, { 20338 _datasetIndex: i.index, 20339 _index: t, 20340 _scale: l, 20341 _model: { 20342 backgroundColor: v.backgroundColor, 20343 borderColor: v.borderColor, 20344 borderWidth: v.borderWidth, 20345 borderAlign: v.borderAlign, 20346 x: u, 20347 y: d, 20348 innerRadius: 0, 20349 outerRadius: n ? g : f, 20350 startAngle: n && a.animateRotate ? h : p, 20351 endAngle: n && a.animateRotate ? h : m, 20352 label: $.valueAtIndexOrDefault(c, t, c[t]) 20353 } 20354 }), e.pivot(); 20355 }, 20356 countVisibleElements: function() { 20357 var e = this.getDataset(), t = this.getMeta(), n = 0; 20358 return $.each(t.data, (function(t, i) { 20359 isNaN(e.data[i]) || t.hidden || n++; 20360 })), n; 20361 }, 20362 setHoverStyle: function(e) { 20363 var t = e._model, n = e._options, i = $.getHoverColor, r = $.valueOrDefault; 20364 e.$previousStyle = { 20365 backgroundColor: t.backgroundColor, 20366 borderColor: t.borderColor, 20367 borderWidth: t.borderWidth 20368 }, t.backgroundColor = r(n.hoverBackgroundColor, i(n.backgroundColor)), t.borderColor = r(n.hoverBorderColor, i(n.borderColor)), 20369 t.borderWidth = r(n.hoverBorderWidth, n.borderWidth); 20370 }, 20371 _computeAngle: function(e) { 20372 var t = this, n = this.getMeta().count, i = t.getDataset(), r = t.getMeta(); 20373 if (isNaN(i.data[e]) || r.data[e].hidden) return 0; 20374 var o = { 20375 chart: t.chart, 20376 dataIndex: e, 20377 dataset: i, 20378 datasetIndex: t.index 20379 }; 20380 return Ge([ t.chart.options.elements.arc.angle, 2 * Math.PI / n ], o, e); 20381 } 20382 }); 20383 j._set("pie", $.clone(j.doughnut)), j._set("pie", { 20384 cutoutPercentage: 0 20385 }); 20386 var Xe = Re, Ke = $.valueOrDefault; 20387 j._set("radar", { 20388 spanGaps: !1, 20389 scale: { 20390 type: "radialLinear" 20391 }, 20392 elements: { 20393 line: { 20394 fill: "start", 20395 tension: 0 20396 } 20397 } 20398 }); 20399 var Ze = ie.extend({ 20400 datasetElementType: _e.Line, 20401 dataElementType: _e.Point, 20402 linkScales: $.noop, 20403 _datasetElementOptions: [ "backgroundColor", "borderWidth", "borderColor", "borderCapStyle", "borderDash", "borderDashOffset", "borderJoinStyle", "fill" ], 20404 _dataElementOptions: {
20405 backgroundColor: "pointBackgroundColor", 20406 borderColor: "pointBorderColor", 20407 borderWidth: "pointBorderWidth", 20408 hitRadius: "pointHitRadius", 20409 hoverBackgroundColor: "pointHoverBackgroundColor", 20410 hoverBorderColor: "pointHoverBorderColor", 20411 hoverBorderWidth: "pointHoverBorderWidth", 20412 hoverRadius: "pointHoverRadius", 20413 pointStyle: "pointStyle", 20414 radius: "pointRadius", 20415 rotation: "pointRotation" 20416 }, 20417 _getIndexScaleId: function() { 20418 return this.chart.scale.id; 20419 }, 20420 _getValueScaleId: function() { 20421 return this.chart.scale.id; 20422 }, 20423 update: function(e) { 20424 var t, n, i = this, r = i.getMeta(), o = r.dataset, s = r.data || [], a = i.chart.scale, l = i._config; 20425 for (void 0 !== l.tension && void 0 === l.lineTension && (l.lineTension = l.tension), 20426 o._scale = a, o._datasetIndex = i.index, o._children = s, o._loop = !0, o._model = i._resolveDatasetElementOptions(o), 20427 o.pivot(), t = 0, n = s.length; t < n; ++t) i.updateElement(s[t], t, e); 20428 for (i.updateBezierControlPoints(), t = 0, n = s.length; t < n; ++t) s[t].pivot(); 20429 }, 20430 updateElement: function(e, t, n) { 20431 var i = this, r = e.custom || {}, o = i.getDataset(), s = i.chart.scale, a = s.getPointPositionForValue(t, o.data[t]), l = i._resolveDataElementOptions(e, t), c = i.getMeta().dataset._model, u = n ? s.xCenter : a.x, d = n ? s.yCenter : a.y; 20432 e._scale = s, e._options = l, e._datasetIndex = i.index, e._index = t, e._model = { 20433 x: u, 20434 y: d, 20435 skip: r.skip || isNaN(u) || isNaN(d), 20436 radius: l.radius, 20437 pointStyle: l.pointStyle, 20438 rotation: l.rotation, 20439 backgroundColor: l.backgroundColor, 20440 borderColor: l.borderColor, 20441 borderWidth: l.borderWidth, 20442 tension: Ke(r.tension, c ? c.tension : 0), 20443 hitRadius: l.hitRadius 20444 }; 20445 }, 20446 _resolveDatasetElementOptions: function() { 20447 var e = this, t = e._config, n = e.chart.options, i = ie.prototype._resolveDatasetElementOptions.apply(e, arguments); 20448 return i.spanGaps = Ke(t.spanGaps, n.spanGaps), i.tension = Ke(t.lineTension, n.elements.line.tension), 20449 i; 20450 }, 20451 updateBezierControlPoints: function() { 20452 var e, t, n, i, r = this.getMeta(), o = this.chart.chartArea, s = r.data || []; 20453 function a(e, t, n) { 20454 return Math.max(Math.min(e, n), t); 20455 } 20456 for (r.dataset._model.spanGaps && (s = s.filter((function(e) { 20457 return !e._model.skip; 20458 }))), e = 0, t = s.length; e < t; ++e) n = s[e]._model, i = $.splineCurve($.previousItem(s, e, !0)._model, n, $.nextItem(s, e, !0)._model, n.tension), 20459 n.controlPointPreviousX = a(i.previous.x, o.left, o.right), n.controlPointPreviousY = a(i.previous.y, o.top, o.bottom), 20460 n.controlPointNextX = a(i.next.x, o.left, o.right), n.controlPointNextY = a(i.next.y, o.top, o.bottom); 20461 }, 20462 setHoverStyle: function(e) { 20463 var t = e._model, n = e._options, i = $.getHoverColor; 20464 e.$previousStyle = { 20465 backgroundColor: t.backgroundColor, 20466 borderColor: t.borderColor, 20467 borderWidth: t.borderWidth, 20468 radius: t.radius 20469 }
20469, t.backgroundColor = Ke(n.hoverBackgroundColor, i(n.backgroundColor)), t.borderColor = Ke(n.hoverBorderColor, i(n.borderColor)), 20470 t.borderWidth = Ke(n.hoverBorderWidth, n.borderWidth), t.radius = Ke(n.hoverRadius, n.radius); 20471 } 20472 }); 20473 j._set("scatter", { 20474 hover: { 20475 mode: "single" 20476 }, 20477 scales: { 20478 xAxes: [ { 20479 id: "x-axis-1", 20480 type: "linear", 20481 position: "bottom" 20482 } ], 20483 yAxes: [ { 20484 id: "y-axis-1", 20485 type: "linear", 20486 position: "left" 20487 } ] 20488 }, 20489 tooltips: { 20490 callbacks: { 20491 title: function() { 20492 return ""; 20493 }, 20494 label: function(e) { 20495 return "(" + e.xLabel + ", " + e.yLabel + ")"; 20496 } 20497 } 20498 } 20499 }), j._set("global", { 20500 datasets: { 20501 scatter: { 20502 showLine: !1 20503 } 20504 } 20505 }); 20506 var Je = { 20507 bar: Oe, 20508 bubble: Le, 20509 doughnut: Re, 20510 horizontalBar: Be, 20511 line: Ye, 20512 polarArea: Ue, 20513 pie: Xe, 20514 radar: Ze, 20515 scatter: Ye 20516 }; 20517 function Qe(e, t) { 20518 return e.native ? { 20519 x: e.x, 20520 y: e.y 20521 } : $.getRelativePosition(e, t); 20522 } 20523 function et(e, t) { 20524 var n, i, r, o, s, a, l = e._getSortedVisibleDatasetMetas(); 20525 for (i = 0, o = l.length; i < o; ++i) for (r = 0, s = (n = l[i].data).length; r < s; ++r) (a = n[r])._view.skip || t(a); 20526 } 20527 function tt(e, t) { 20528 var n = []; 20529 return et(e, (function(e) { 20530 e.inRange(t.x, t.y) && n.push(e); 20531 })), n; 20532 } 20533 function nt(e, t, n, i) { 20534 var r = Number.POSITIVE_INFINITY, o = []; 20535 return et(e, (function(e) { 20536 if (!n || e.inRange(t.x, t.y)) { 20537 var s = e.getCenterPoint(), a = i(t, s); 20538 a < r ? (o = [ e ], r = a) : a === r && o.push(e); 20539 } 20540 })), o; 20541 } 20542 function it(e) { 20543 var t = -1 !== e.indexOf("x"), n = -1 !== e.indexOf("y"); 20544 return function(e, i) { 20545 var r = t ? Math.abs(e.x - i.x) : 0, o = n ? Math.abs(e.y - i.y) : 0; 20546 return Math.sqrt(Math.pow(r, 2) + Math.pow(o, 2)); 20547 }; 20548 } 20549 function rt(e, t, n) { 20550 var i = Qe(t, e); 20551 n.axis = n.axis || "x"; 20552 var r = it(n.axis), o = n.intersect ? tt(e, i) : nt(e, i, !1, r), s = []; 20553 return o.length ? (e._getSortedVisibleDatasetMetas().forEach((function(e) { 20554 var t = e.data[o[0]._index]; 20555 t && !t._view.skip && s.push(t); 20556 })), s) : []; 20557 } 20558 var ot = { 20559 modes: { 20560 single: function(e, t) { 20561 var n = Qe(t, e), i = []; 20562 return et(e, (function(e) { 20563 if (e.inRange(n.x, n.y)) return i.push(e), i; 20564 })), i.slice(0, 1); 20565 }, 20566 label: rt, 20567 index: rt, 20568 dataset: function(e, t, n) { 20569 var i = Qe(t, e); 20570 n.axis = n.axis || "xy"; 20571 var r = it(n.axis), o = n.intersect ? tt(e, i) : nt(e, i, !1, r); 20572 return o.length > 0 && (o = e.getDatasetMeta(o[0]._datasetIndex).data), o; 20573 }, 20574 "x-axis": function(e, t) { 20575 return rt(e, t, { 20576 intersect: !1 20577 }); 20578 }, 20579 point: function(e, t) { 20580 return tt(e, Qe(t, e)); 20581 }, 20582 nearest: function(e, t, n) { 20583 var i = Qe(t, e); 20584 n.axis = n.axis || "xy"; 20585 var r = it(n.axis); 20586 return nt(e, i, n.intersect, r); 20587 }, 20588 x: function(e, t, n) { 20589 var i = Qe(t, e), r = [], o = !1; 20590 return et(e, (function(e) {
20591 e.inXRange(i.x) && r.push(e), e.inRange(i.x, i.y) && (o = !0); 20592 })), n.intersect && !o && (r = []), r; 20593 }, 20594 y: function(e, t, n) { 20595 var i = Qe(t, e), r = [], o = !1; 20596 return et(e, (function(e) { 20597 e.inYRange(i.y) && r.push(e), e.inRange(i.x, i.y) && (o = !0); 20598 })), n.intersect && !o && (r = []), r; 20599 } 20600 } 20601 }, st = $.extend; 20602 function at(e, t) { 20603 return $.where(e, (function(e) { 20604 return e.pos === t; 20605 })); 20606 } 20607 function lt(e, t) { 20608 return e.sort((function(e, n) { 20609 var i = t ? n : e, r = t ? e : n; 20610 return i.weight === r.weight ? i.index - r.index : i.weight - r.weight; 20611 })); 20612 } 20613 function ct(e, t, n, i) { 20614 return Math.max(e[n], t[n]) + Math.max(e[i], t[i]); 20615 } 20616 function ut(e, t, n) { 20617 var i, r, o = n.box, s = e.maxPadding; 20618 if (n.size && (e[n.pos] -= n.size), n.size = n.horizontal ? o.height : o.width, 20619 e[n.pos] += n.size, o.getPadding) { 20620 var a = o.getPadding(); 20621 s.top = Math.max(s.top, a.top), s.left = Math.max(s.left, a.left), s.bottom = Math.max(s.bottom, a.bottom), 20622 s.right = Math.max(s.right, a.right); 20623 } 20624 if (i = t.outerWidth - ct(s, e, "left", "right"), r = t.outerHeight - ct(s, e, "top", "bottom"), 20625 i !== e.w || r !== e.h) { 20626 e.w = i, e.h = r; 20627 var l = n.horizontal ? [ i, e.w ] : [ r, e.h ]; 20628 return !(l[0] === l[1] || isNaN(l[0]) && isNaN(l[1])); 20629 } 20630 } 20631 function dt(e, t) { 20632 var n = t.maxPadding; 20633 function i(e) { 20634 var i = { 20635 left: 0, 20636 top: 0, 20637 right: 0, 20638 bottom: 0 20639 }; 20640 return e.forEach((function(e) { 20641 i[e] = Math.max(t[e], n[e]); 20642 })), i; 20643 } 20644 return i(e ? [ "left", "right" ] : [ "top", "bottom" ]); 20645 } 20646 function ht(e, t, n) { 20647 var i, r, o, s, a, l, c = []; 20648 for (i = 0, r = e.length; i < r; ++i) (s = (o = e[i]).box).update(o.width || t.w, o.height || t.h, dt(o.horizontal, t)), 20649 ut(t, n, o) && (l = !0, c.length && (a = !0)), s.fullWidth || c.push(o); 20650 return a && ht(c, t, n) || l; 20651 } 20652 function ft(e, t, n) { 20653 var i, r, o, s, a = n.padding, l = t.x, c = t.y; 20654 for (i = 0, r = e.length; i < r; ++i) s = (o = e[i]).box, o.horizontal ? (s.left = s.fullWidth ? a.left : t.left, 20655 s.right = s.fullWidth ? n.outerWidth - a.right : t.left + t.w, s.top = c, s.bottom = c + s.height, 20656 s.width = s.right - s.left, c = s.bottom) : (s.left = l, s.right = l + s.width, 20657 s.top = t.top, s.bottom = t.top + t.h, s.height = s.bottom - s.top, l = s.right); 20658 t.x = l, t.y = c; 20659 } 20660 j._set("global", { 20661 layout: { 20662 padding: { 20663 top: 0, 20664 right: 0, 20665 bottom: 0, 20666 left: 0 20667 } 20668 } 20669 }); 20670 var pt, mt = { 20671 defaults: {}, 20672 addBox: function(e, t) { 20673 e.boxes || (e.boxes = []), t.fullWidth = t.fullWidth || !1, t.position = t.position || "top", 20674 t.weight = t.weight || 0, t._layers = t._layers || function() { 20675 return [ { 20676 z: 0, 20677 draw: function() { 20678 t.draw.apply(t, arguments); 20679 } 20680 } ]; 20681 }, e.boxes.push(t); 20682 }, 20683 removeBox: function(e, t) { 20684 var n = e.boxes ? e.boxes.indexOf(t) : -1; 20685 -1 !== n && e.boxes.splice(n, 1); 20686 }, 20687 configure: function(e, t, n) { 20688 for (var i, r = [ "fullWidth", "position", "weight" ], o = r.length, s = 0; s < o; ++s) i = r[s], 20689 n.hasOwnProperty(i) && (t[i] = n[i]); 20690 }, 20691 update: function(e, t, n) { 20692 if (e) { 20693 var i = e.options.layout || {}, r = $.options.toPadding(i.padding), o = t - r.width, s = n - r.height, a = function(e) { 20694 var t = function(e) { 20695 var t, n, i, r = []; 20696 for (t = 0, n = (e || []).length; t < n; ++t) i = e[t], r.push({ 20697 index: t, 20698 box: i, 20699 pos: i.position, 20700 horizontal: i.isHorizontal(), 20701 weight: i.weight 20702 }); 20703 return r; 20704 }(e), n = lt(at(t, "left"), !0), i = lt(at(t, "right")), r = lt(at(t, "top"), !0), o = lt(at(t, "bottom")); 20705 return { 20706 leftAndTop: n.concat(r), 20707 rightAndBottom: i.concat(o), 20708 chartArea: at(t, "chartArea"), 20709 vertical: n.concat(i), 20710 horizontal: r.concat(o) 20711 }; 20712 }(e.boxes), l = a.vertical, c = a.horizontal, u = Object.freeze({ 20713 outerWidth: t, 20714 outerHeight: n, 20715 padding: r, 20716 availableWidth: o, 20717 vBoxMaxWidth: o / 2 / l.length, 20718 hBoxMaxHeight: s / 2 20719 }), d = st({ 20720 maxPadding: st({}, r), 20721 w: o, 20722 h: s, 20723 x: r.left, 20724 y: r.top 20725 }, r); 20726 !function(e, t) { 20727 var n, i, r; 20728 for (n = 0, i = e.length; n < i; ++n) (r = e[n]).width = r.horizontal ? r.box.fullWidth && t.availableWidth : t.vBoxMaxWidth, 20729 r.height = r.horizontal && t.hBoxMaxHeight; 20730 }(l.concat(c), u), ht(l, d, u), ht(c, d, u) && ht(l, d, u), function(e) { 20731 var t = e.maxPadding; 20732 function n(n) { 20733 var i = Math.max(t[n] - e[n], 0); 20734 return e[n] += i, i; 20735 } 20736 e.y += n("top"), e.x += n("left"), n("right"), n("bottom"); 20737 }(d), ft(a.leftAndTop, d, u), d.x += d.w, d.y += d.h, ft(a.rightAndBottom, d, u), 20738 e.chartArea = { 20739 left: d.left, 20740 top: d.top, 20741 right: d.left + d.w, 20742 bottom: d.top + d.h 20743 }, $.each(a.chartArea, (function(t) { 20744 var n = t.box; 20745 st(n, e.chartArea), n.update(d.w, d.h); 20746 })); 20747 } 20748 } 20749 }, gt = (pt = Object.freeze({ 20750 __proto__: null, 20751 default: "/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n" 20752 })) && pt.default || pt, vt = [ "animationstart", "webkitAnimationStart" ], bt = { 20753 touchstart: "mousedown", 20754 touchmove: "mousemove", 20755 touchend: "mouseup", 20756 pointerenter: "mouseenter", 20757 pointerdown: "mousedown", 20758 pointermove: "mousemove", 20759 pointerup: "mouseup", 20760 pointerleave: "mouseout", 20761 pointerout: "mouseout" 20762 }; 20763 function yt(e, t) { 20764 var n = $.getStyle(e, t), i = n && n.match(/^(\d+)(\.\d+)?px$/); 20765 return i ? Number(i[1]) : void 0; 20766 } 20767 var xt = !!function() { 20768 var e = !1; 20769 try { 20770 var t = Object.defineProperty({}, "passive", { 20771 get: function() { 20772 e = !0; 20773 } 20774 }); 20775 window.addEventListener("e", null, t); 20776 } catch (e) {} 20777 return e; 20778 }() && { 20779 passive: !0 20780 }; 20781 function wt(e, t, n) { 20782 e.addEventListener(t, n, xt); 20783 } 20784 function _t(e, t, n) { 20785 e.removeEventListener(t, n, xt); 20786 } 20787 function St(e, t, n, i, r) { 20788 return { 20789 type: e, 20790 chart: t, 20791 native: r || null, 20792 x: void 0 !== n ? n : null, 20793 y: void 0 !== i ? i : null 20794 }; 20795 } 20796 function Et(e) { 20797 var t = document.createElement("div"); 20798 return t.className = e || "", t; 20799 } 20800 function Ct(e, t, n) { 20801 var i, r, o, s, a = e.$chartjs || (e.$chartjs = {}), l = a.resizer = function(e) { 20802 var t = Et("chartjs-size-monitor"), n = Et("chartjs-size-monitor-expand"), i = Et("chartjs-size-monitor-shrink"); 20803 n.appendChild(Et()), i.appendChild(Et()), t.appendChild(n), t.appendChild(i), t._reset = function() { 20804 n.scrollLeft = 1e6, n.scrollTop = 1e6, i.scrollLeft = 1e6, i.scrollTop = 1e6; 20805 }; 20806 var r = function() { 20807 t._reset(), e(); 20808 }; 20809 return wt(n, "scroll", r.bind(n, "expand")), wt(i, "scroll", r.bind(i, "shrink")), 20810 t; 20811 }((i = function() { 20812 if (a.resizer) { 20813 var i = n.options.maintainAspectRatio && e.parentNode, r = i ? i.clientWidth : 0; 20814 t(St("resize", n)), i && i.clientWidth < r && n.canvas && t(St("resize", n)); 20815 } 20816 }, o = !1, s = [], function() { 20817 s = Array.prototype.slice.call(arguments), r = r || this, o || (o = !0, $.requestAnimFrame.call(window, (function() { 20818 o = !1, i.apply(r, s); 20819 }))); 20820 })); 20821 !function(e, t) { 20822 var n = e.$chartjs || (e.$chartjs = {}), i = n.renderProxy = function(e) { 20823 "chartjs-render-animation" === e.animationName && t(); 20824 }; 20825 $.each(vt, (function(t) { 20826 wt(e, t, i); 20827 })), n.reflow = !!e.offsetParent, e.classList.add("chartjs-render-monitor"); 20828 }(e, (function() { 20829 if (a.resizer) { 20830 var t = e.parentNode; 20831 t && t !== l.parentNode && t.insertBefore(l, t.firstChild), l._reset(); 20832 } 20833 })); 20834 } 20835 function Tt(e) { 20836 var t = e.$chartjs || {}, n = t.resizer; 20837 delete t.resizer, function(e) { 20838 var t = e.$chartjs || {}, n = t.renderProxy; 20839 n && ($.each(vt, (function(t) { 20840 _t(e, t, n); 20841 })), delete t.renderProxy), e.classList.remove("chartjs-render-monitor"); 20842 }(e), n && n.parentNode && n.parentNode.removeChild(n); 20843 } 20844 var kt = { 20845 disableCSSInjection: !1, 20846 _enabled: "undefined" != typeof window && "undefined" != typeof document, 20847 _ensureLoaded: function(e) { 20848 if (!this.disableCSSInjection) { 20849 var t = e.getRootNode ? e.getRootNode() : document; 20850 !function(e, t) { 20851 var n = e.$chartjs || (e.$chartjs = {}); 20852 if (!n.containsStyles) { 20853 n.containsStyles = !0, t = "/* Chart.js */\n" + t; 20854 var i = document.createElement("style"); 20855 i.setAttribute("type", "text/css"), i.appendChild(document.createTextNode(t)), e.appendChild(i); 20856 } 20857 }(t.host ? t : document.head, gt); 20858 } 20859 }, 20860 acquireContext: function(e, t) { 20861 "string" == typeof e ? e = document.getElementById(e) : e.length && (e = e[0]), 20862 e && e.canvas && (e = e.canvas); 20863 var n = e && e.getContext && e.getContext("2d"); 20864 return n && n.canvas === e ? (this._ensureLoaded(e), function(e, t) { 20865 var n = e.style, i = e.getAttribute("height"), r = e.getAttribute("width"); 20866 if (e.$chartjs = { 20867 initial: { 20868 height: i, 20869 width: r, 20870 style: { 20871 display: n.display, 20872 height: n.height, 20873 width: n.width 20874 } 20875 } 20876 }, n.display = n.display || "block", null === r || "" === r) { 20877 var o = yt(e, "width"); 20878 void 0 !== o && (e.width = o); 20879 } 20880 if (null === i || "" === i) if ("" === e.style.height) e.height = e.width / (t.options.aspectRatio || 2); else { 20881 var s = yt(e, "height"); 20882 void 0 !== o && (e.height = s); 20883 } 20884 }(e, t), n) : null; 20885 }, 20886 releaseContext: function(e) { 20887 var t = e.canvas; 20888 if (t.$chartjs) { 20889 var n = t.$chartjs.initial; 20890 [ "height", "width" ].forEach((function(e) { 20891 var i = n[e]; 20892 $.isNullOrUndef(i) ? t.removeAttribute(e) : t.setAttribute(e, i); 20893 })), $.each(n.style || {}, (function(e, n) { 20894 t.style[n] = e; 20895 })), t.width = t.width, delete t.$chartjs; 20896 } 20897 }, 20898 addEventListener: function(e, t, n) { 20899 var i = e.canvas; 20900 if ("resize" !== t) { 20901 var r = n.$chartjs || (n.$chartjs = {}); 20902
20902 wt(i, t, (r.proxies || (r.proxies = {}))[e.id + "_" + t] = function(t) { 20903 n(function(e, t) { 20904 var n = bt[e.type] || e.type, i = $.getRelativePosition(e, t); 20905 return St(n, t, i.x, i.y, e); 20906 }(t, e)); 20907 }); 20908 } else Ct(i, n, e); 20909 }, 20910 removeEventListener: function(e, t, n) { 20911 var i = e.canvas; 20912 if ("resize" !== t) { 20913 var r = ((n.$chartjs || {}).proxies || {})[e.id + "_" + t]; 20914 r && _t(i, t, r); 20915 } else Tt(i); 20916 } 20917 }; 20918 $.addEvent = wt, $.removeEvent = _t; 20919 var Mt = kt._enabled ? kt : { 20920 acquireContext: function(e) { 20921 return e && e.canvas && (e = e.canvas), e && e.getContext("2d") || null; 20922 } 20923 }, At = $.extend({ 20924 initialize: function() {}, 20925 acquireContext: function() {}, 20926 releaseContext: function() {}, 20927 addEventListener: function() {}, 20928 removeEventListener: function() {} 20929 }, Mt); 20930 j._set("global", { 20931 plugins: {} 20932 }); 20933 var Ot = { 20934 _plugins: [], 20935 _cacheId: 0, 20936 register: function(e) { 20937 var t = this._plugins; 20938 [].concat(e).forEach((function(e) { 20939 -1 === t.indexOf(e) && t.push(e); 20940 })), this._cacheId++; 20941 }, 20942 unregister: function(e) { 20943 var t = this._plugins; 20944 [].concat(e).forEach((function(e) { 20945 var n = t.indexOf(e); 20946 -1 !== n && t.splice(n, 1); 20947 })), this._cacheId++; 20948 }, 20949 clear: function() { 20950 this._plugins = [], this._cacheId++; 20951 }, 20952 count: function() { 20953 return this._plugins.length; 20954 }, 20955 getAll: function() { 20956 return this._plugins; 20957 }, 20958 notify: function(e, t, n) { 20959 var i, r, o, s, a, l = this.descriptors(e), c = l.length; 20960 for (i = 0; i < c; ++i) if ("function" == typeof (a = (o = (r = l[i]).plugin)[t]) && ((s = [ e ].concat(n || [])).push(r.options), 20961 !1 === a.apply(o, s))) return !1; 20962 return !0; 20963 }, 20964 descriptors: function(e) { 20965 var t = e.$plugins || (e.$plugins = {}); 20966 if (t.id === this._cacheId) return t.descriptors; 20967 var n = [], i = [], r = e && e.config || {}, o = r.options && r.options.plugins || {}; 20968 return this._plugins.concat(r.plugins || []).forEach((function(e) { 20969 if (-1 === n.indexOf(e)) { 20970 var t = e.id, r = o[t]; 20971 !1 !== r && (!0 === r && (r = $.clone(j.global.plugins[t])), n.push(e), i.push({ 20972 plugin: e, 20973 options: r || {} 20974 })); 20975 } 20976 })), t.descriptors = i, t.id = this._cacheId, i; 20977 }, 20978 _invalidate: function(e) { 20979 delete e.$plugins; 20980 } 20981 }, Pt = { 20982 constructors: {}, 20983 defaults: {}, 20984 registerScaleType: function(e, t, n) { 20985 this.constructors[e] = t, this.defaults[e] = $.clone(n); 20986 }, 20987 getScaleConstructor: function(e) { 20988 return this.constructors.hasOwnProperty(e) ? this.constructors[e] : void 0; 20989 }, 20990 getScaleDefaults: function(e) { 20991 return this.defaults.hasOwnProperty(e) ? $.merge(Object.create(null), [ j.scale, this.defaults[e] ]) : {}; 20992 }, 20993 updateScaleDefaults: function(e, t) { 20994 this.defaults.hasOwnProperty(e) && (this.defaults[e] = $.extend(this.defaults[e], t)); 20995 }, 20996 addScalesToLayout: function(e) { 20997 $.each(e.scales, (function(t) { 20998 t.fullWidth = t.options.fullWidth, t.position = t.options.position, t.weight = t.options.weight, 20999 mt.addBox(e, t); 21000 })); 21001 } 21002 }, It = $.valueOrDefault, Lt = $.rtl.getRtlAdapter; 21003 j._set("global", { 21004 tooltips: { 21005 enabled: !0, 21006 custom: null, 21007 mode: "nearest", 21008 position: "average", 21009 intersect: !0, 21010 backgroundColor: "rgba(0,0,0,0.8)", 21011 titleFontStyle: "bold", 21012 titleSpacing: 2, 21013 titleMarginBottom: 6, 21014 titleFontColor: "#fff", 21015 titleAlign: "left", 21016 bodySpacing: 2, 21017 bodyFontColor: "#fff", 21018 bodyAlign: "left", 21019 footerFontStyle: "bold", 21020 footerSpacing: 2, 21021 footerMarginTop: 6, 21022 footerFontColor: "#fff", 21023 footerAlign: "left", 21024 yPadding: 6, 21025 xPadding: 6, 21026 caretPadding: 2, 21027 caretSize: 5, 21028 cornerRadius: 6,
21029 multiKeyBackground: "#fff", 21030 displayColors: !0, 21031 borderColor: "rgba(0,0,0,0)", 21032 borderWidth: 0, 21033 callbacks: { 21034 beforeTitle: $.noop, 21035 title: function(e, t) { 21036 var n = "", i = t.labels, r = i ? i.length : 0; 21037 if (e.length > 0) { 21038 var o = e[0]; 21039 o.label ? n = o.label : o.xLabel ? n = o.xLabel : r > 0 && o.index < r && (n = i[o.index]); 21040 } 21041 return n; 21042 }, 21043 afterTitle: $.noop, 21044 beforeBody: $.noop, 21045 beforeLabel: $.noop, 21046 label: function(e, t) { 21047 var n = t.datasets[e.datasetIndex].label || ""; 21048 return n && (n += ": "), $.isNullOrUndef(e.value) ? n += e.yLabel : n += e.value, 21049 n; 21050 }, 21051 labelColor: function(e, t) { 21052 var n = t.getDatasetMeta(e.datasetIndex).data[e.index]._view; 21053 return { 21054 borderColor: n.borderColor, 21055 backgroundColor: n.backgroundColor 21056 }; 21057 }, 21058 labelTextColor: function() { 21059 return this._options.bodyFontColor; 21060 }, 21061 afterLabel: $.noop, 21062 afterBody: $.noop, 21063 beforeFooter: $.noop, 21064 footer: $.noop, 21065 afterFooter: $.noop 21066 } 21067 } 21068 }); 21069 var Dt = { 21070 average: function(e) { 21071 if (!e.length) return !1; 21072 var t, n, i = 0, r = 0, o = 0; 21073 for (t = 0, n = e.length; t < n; ++t) { 21074 var s = e[t]; 21075 if (s && s.hasValue()) { 21076 var a = s.tooltipPosition(); 21077 i += a.x, r += a.y, ++o; 21078 } 21079 } 21080 return { 21081 x: i / o, 21082 y: r / o 21083 }; 21084 }, 21085 nearest: function(e, t) { 21086 var n, i, r, o = t.x, s = t.y, a = Number.POSITIVE_INFINITY; 21087 for (n = 0, i = e.length; n < i; ++n) { 21088 var l = e[n]; 21089 if (l && l.hasValue()) { 21090 var c = l.getCenterPoint(), u = $.distanceBetweenPoints(t, c); 21091 u < a && (a = u, r = l); 21092 } 21093 } 21094 if (r) { 21095 var d = r.tooltipPosition(); 21096 o = d.x, s = d.y; 21097 } 21098 return { 21099 x: o, 21100 y: s 21101 }; 21102 } 21103 }; 21104 function Nt(e, t) { 21105 return t && ($.isArray(t) ? Array.prototype.push.apply(e, t) : e.push(t)), e; 21106 } 21107 function Ft(e) { 21108 return ("string" == typeof e || e instanceof String) && e.indexOf("\n") > -1 ? e.split("\n") : e; 21109 } 21110 function jt(e) { 21111 var t = j.global; 21112 return { 21113 xPadding: e.xPadding, 21114 yPadding: e.yPadding, 21115 xAlign: e.xAlign, 21116 yAlign: e.yAlign, 21117 rtl: e.rtl, 21118 textDirection: e.textDirection, 21119 bodyFontColor: e.bodyFontColor, 21120 _bodyFontFamily: It(e.bodyFontFamily, t.defaultFontFamily), 21121 _bodyFontStyle: It(e.bodyFontStyle, t.defaultFontStyle), 21122 _bodyAlign: e.bodyAlign, 21123 bodyFontSize: It(e.bodyFontSize, t.defaultFontSize), 21124 bodySpacing: e.bodySpacing, 21125 titleFontColor: e.titleFontColor, 21126 _titleFontFamily: It(e.titleFontFamily, t.defaultFontFamily), 21127 _titleFontStyle: It(e.titleFontStyle, t.defaultFontStyle), 21128 titleFontSize: It(e.titleFontSize, t.defaultFontSize), 21129 _titleAlign: e.titleAlign, 21130 titleSpacing: e.titleSpacing, 21131 titleMarginBottom: e.titleMarginBottom, 21132 footerFontColor: e.footerFontColor, 21133 _footerFontFamily: It(e.footerFontFamily, t.defaultFontFamily), 21134 _footerFontStyle: It(e.footerFontStyle, t.defaultFontStyle), 21135 footerFontSize: It(e.footerFontSize, t.defaultFontSize), 21136 _footerAlign: e.footerAlign, 21137 footerSpacing: e.footerSpacing, 21138 footerMarginTop: e.footerMarginTop, 21139 caretSize: e.caretSize, 21140 cornerRadius: e.cornerRadius, 21141 backgroundColor: e.backgroundColor, 21142 opacity: 0,
21143 legendColorBackground: e.multiKeyBackground, 21144 displayColors: e.displayColors, 21145 borderColor: e.borderColor, 21146 borderWidth: e.borderWidth 21147 }; 21148 } 21149 function Rt(e, t) { 21150 return "center" === t ? e.x + e.width / 2 : "right" === t ? e.x + e.width - e.xPadding : e.x + e.xPadding; 21151 } 21152 function Bt(e) { 21153 return Nt([], Ft(e)); 21154 } 21155 var zt = X.extend({ 21156 initialize: function() { 21157 this._model = jt(this._options), this._lastActive = []; 21158 }, 21159 getTitle: function() { 21160 var e = this, t = e._options, n = t.callbacks, i = n.beforeTitle.apply(e, arguments), r = n.title.apply(e, arguments), o = n.afterTitle.apply(e, arguments), s = []; 21161 return s = Nt(s, Ft(i)), s = Nt(s, Ft(r)), s = Nt(s, Ft(o)); 21162 }, 21163 getBeforeBody: function() { 21164 return Bt(this._options.callbacks.beforeBody.apply(this, arguments)); 21165 }, 21166 getBody: function(e, t) { 21167 var n = this, i = n._options.callbacks, r = []; 21168 return $.each(e, (function(e) { 21169 var o = { 21170 before: [], 21171 lines: [], 21172 after: [] 21173 }; 21174 Nt(o.before, Ft(i.beforeLabel.call(n, e, t))), Nt(o.lines, i.label.call(n, e, t)), 21175 Nt(o.after, Ft(i.afterLabel.call(n, e, t))), r.push(o); 21176 })), r; 21177 }, 21178 getAfterBody: function() { 21179 return Bt(this._options.callbacks.afterBody.apply(this, arguments)); 21180 }, 21181 getFooter: function() { 21182 var e = this, t = e._options.callbacks, n = t.beforeFooter.apply(e, arguments), i = t.footer.apply(e, arguments), r = t.afterFooter.apply(e, arguments), o = []; 21183 return o = Nt(o, Ft(n)), o = Nt(o, Ft(i)), o = Nt(o, Ft(r)); 21184 }, 21185 update: function(e) { 21186 var t, n, i, r, o, s, a, l, c, u, d = this, h = d._options, f = d._model, p = d._model = jt(h), m = d._active, g = d._data, v = { 21187 xAlign: f.xAlign, 21188 yAlign: f.yAlign 21189 }, b = { 21190 x: f.x, 21191 y: f.y 21192 }, y = { 21193 width: f.width,
21194 height: f.height 21195 }, x = { 21196 x: f.caretX, 21197 y: f.caretY 21198 }; 21199 if (m.length) { 21200 p.opacity = 1; 21201 var w = [], _ = []; 21202 x = Dt[h.position].call(d, m, d._eventPosition); 21203 var S = []; 21204 for (t = 0, n = m.length; t < n; ++t) S.push((i = m[t], r = void 0, o = void 0, 21205 s = void 0, a = void 0, l = void 0, c = void 0, u = void 0, r = i._xScale, o = i._yScale || i._scale, 21206 s = i._index, a = i._datasetIndex, l = i._chart.getDatasetMeta(a).controller, c = l._getIndexScale(), 21207 u = l._getValueScale(), { 21208 xLabel: r ? r.getLabelForIndex(s, a) : "", 21209 yLabel: o ? o.getLabelForIndex(s, a) : "", 21210 label: c ? "" + c.getLabelForIndex(s, a) : "", 21211 value: u ? "" + u.getLabelForIndex(s, a) : "", 21212 index: s, 21213 datasetIndex: a, 21214 x: i._model.x, 21215 y: i._model.y 21216 })); 21217 h.filter && (S = S.filter((function(e) { 21218 return h.filter(e, g); 21219 }))), h.itemSort && (S = S.sort((function(e, t) { 21220 return h.itemSort(e, t, g); 21221 }))), $.each(S, (function(e) { 21222 w.push(h.callbacks.labelColor.call(d, e, d._chart)), _.push(h.callbacks.labelTextColor.call(d, e, d._chart)); 21223 })), p.title = d.getTitle(S, g), p.beforeBody = d.getBeforeBody(S, g), p.body = d.getBody(S, g), 21224 p.afterBody = d.getAfterBody(S, g), p.footer = d.getFooter(S, g), p.x = x.x, p.y = x.y, 21225 p.caretPadding = h.caretPadding, p.labelColors = w, p.labelTextColors = _, p.dataPoints = S, 21226 y = function(e, t) { 21227 var n = e._chart.ctx, i = 2 * t.yPadding, r = 0, o = t.body, s = o.reduce((function(e, t) { 21228 return e + t.before.length + t.lines.length + t.after.length; 21229 }), 0); 21230 s += t.beforeBody.length + t.afterBody.length; 21231 var a = t.title.length, l = t.footer.length, c = t.titleFontSize, u = t.bodyFontSize, d = t.footerFontSize; 21232 i += a * c, i += a ? (a - 1) * t.titleSpacing : 0, i += a ? t.titleMarginBottom : 0, 21233 i += s * u, i += s ? (s - 1) * t.bodySpacing : 0, i += l ? t.footerMarginTop : 0, 21234 i += l * d, i += l ? (l - 1) * t.footerSpacing : 0; 21235 var h = 0, f = function(e) { 21236 r = Math.max(r, n.measureText(e).width + h); 21237 }; 21238 return n.font = $.fontString(c, t._titleFontStyle, t._titleFontFamily), $.each(t.title, f), 21239 n.font = $.fontString(u, t._bodyFontStyle, t._bodyFontFamily), $.each(t.beforeBody.concat(t.afterBody), f), 21240 h = t.displayColors ? u + 2 : 0, $.each(o, (function(e) { 21241 $.each(e.before, f), $.each(e.lines, f), $.each(e.after, f); 21242 })), h = 0, n.font = $.fontString(d, t._footerFontStyle, t._footerFontFamily), $.each(t.footer, f), 21243 { 21244 width: r += 2 * t.xPadding, 21245 height: i 21246 }; 21247 }(this, p), b = function(e, t, n, i) { 21248 var r = e.x, o = e.y, s = e.caretSize, a = e.caretPadding, l = e.cornerRadius, c = n.xAlign, u = n.yAlign, d = s + a, h = l + a; 21249 return "right" === c ? r -= t.width : "center" === c && ((r -= t.width / 2) + t.width > i.width && (r = i.width - t.width), 21250 r < 0 && (r = 0)), "top" === u ? o += d : o -= "bottom" === u ? t.height + d : t.height / 2, 21251 "center" === u ? "left" === c ? r += d : "right" === c && (r -= d) : "left" === c ? r -= h : "right" === c && (r += h), 21252 { 21253 x: r, 21254 y: o 21255 }; 21256 }(p, y, v = function(e, t) { 21257 var n, i, r, o, s, a = e._model, l = e._chart, c = e._chart.chartArea, u = "center", d = "center"; 21258 a.y < t.height ? d = "top" : a.y > l.height - t.height && (d = "bottom"); 21259 var h = (c.left + c.right) / 2, f = (c.top + c.bottom) / 2; 21260 "center" === d ? (n = function(e) { 21261 return e <= h; 21262 }, i = function(e) { 21263 return e > h; 21264 }) : (n = function(e) { 21265 return e <= t.width / 2; 21266 }, i = function(e) { 21267 return e >= l.width - t.width / 2; 21268 }), r = function(e) { 21269 return e + t.width + a.caretSize + a.caretPadding > l.width; 21270 }, o = function(e) { 21271 return e - t.width - a.caretSize - a.caretPadding < 0; 21272 }, s = function(e) { 21273 return e <= f ? "top" : "bottom"; 21274 }, n(a.x) ? (u = "left", r(a.x) && (u = "center", d = s(a.y))) : i(a.x) && (u = "right", 21275 o(a.x) && (u = "center", d = s(a.y))); 21276 var p = e._options; 21277 return { 21278 xAlign: p.xAlign ? p.xAlign : u, 21279 yAlign: p.yAlign ? p.yAlign : d 21280 }; 21281 }(this, y), d._chart); 21282 } else p.opacity = 0; 21283 return p.xAlign = v.xAlign, p.yAlign = v.yAlign, p.x = b.x, p.y = b.y, p.width = y.width, 21284 p.height = y.height, p.caretX = x.x, p.caretY = x.y, d._model = p, e && h.custom && h.custom.call(d, p), 21285 d; 21286 }, 21287 drawCaret: function(e, t) { 21288 var n = this._chart.ctx, i = this._view, r = this.getCaretPosition(e, t, i); 21289 n.lineTo(r.x1, r.y1), n.lineTo(r.x2, r.y2), n.lineTo(r.x3, r.y3); 21290 }, 21291 getCaretPosition: function(e, t, n) { 21292 var i, r, o, s, a, l, c = n.caretSize, u = n.cornerRadius, d = n.xAlign, h = n.yAlign, f = e.x, p = e.y, m = t.width, g = t.height; 21293 if ("center" === h) a = p + g / 2, "left" === d ? (r = (i = f) - c, o = i, s = a + c, 21294 l = a - c) : (r = (i = f + m) + c, o = i, s = a - c, l = a + c); else if ("left" === d ? (i = (r = f + u + c) - c, 21295 o = r + c) : "right" === d ? (i = (r = f + m - u - c) - c, o = r + c) : (i = (r = n.caretX) - c, 21296 o = r + c), "top" === h) a = (s = p) - c, l = s; else { 21297 a = (s = p + g) + c, l = s; 21298 var v = o; 21299 o = i, i = v; 21300 } 21301 return { 21302 x1: i, 21303 x2: r, 21304 x3: o, 21305 y1: s, 21306 y2: a, 21307 y3: l 21308 }; 21309 }, 21310 drawTitle: function(e, t, n) { 21311 var i, r, o, s = t.title, a = s.length; 21312 if (a) { 21313 var l = Lt(t.rtl, t.x, t.width); 21314 for (e.x = Rt(t, t._titleAlign), n.textAlign = l.textAlign(t._titleAlign), n.textBaseline = "middle", 21315 i = t.titleFontSize, r = t.titleSpacing, n.fillStyle = t.titleFontColor, n.font = $.fontString(i, t._titleFontStyle, t._titleFontFamily), 21316 o = 0; o < a; ++o) n.fillText(s[o], l.x(e.x), e.y + i / 2), e.y += i + r, o + 1 === a && (e.y += t.titleMarginBottom - r); 21317 } 21318 }, 21319 drawBody: function(e, t, n) { 21320 var i, r, o, s, a, l, c, u, d = t.bodyFontSize, h = t.bodySpacing, f = t._bodyAlign, p = t.body, m = t.displayColors, g = 0, v = m ? Rt(t, "left") : 0, b = Lt(t.rtl, t.x, t.width), y = function(t) { 21321 n.fillText(t, b.x(e.x + g), e.y + d / 2), e.y += d + h; 21322 }, x = b.textAlign(f); 21323 for (n.textAlign = f, n.textBaseline = "middle", n.font = $.fontString(d, t._bodyFontStyle, t._bodyFontFamily), 21324 e.x = Rt(t, x), n.fillStyle = t.bodyFontColor, $.each(t.beforeBody, y), g = m && "right" !== x ? "center" === f ? d / 2 + 1 : d + 2 : 0, 21325 a = 0, c = p.length; a < c; ++a) { 21326 for (i = p[a], r = t.labelTextColors[a], o = t.labelColors[a], n.fillStyle = r, 21327 $.each(i.before, y), l = 0, u = (s = i.lines).length; l < u; ++l) { 21328 if (m) { 21329 var w = b.x(v); 21330 n.fillStyle = t.legendColorBackgroun
21330d, n.fillRect(b.leftForLtr(w, d), e.y, d, d), 21331 n.lineWidth = 1, n.strokeStyle = o.borderColor, n.strokeRect(b.leftForLtr(w, d), e.y, d, d), 21332 n.fillStyle = o.backgroundColor, n.fillRect(b.leftForLtr(b.xPlus(w, 1), d - 2), e.y + 1, d - 2, d - 2), 21333 n.fillStyle = r; 21334 } 21335 y(s[l]); 21336 } 21337 $.each(i.after, y); 21338 } 21339 g = 0, $.each(t.afterBody, y), e.y -= h; 21340 }, 21341 drawFooter: function(e, t, n) { 21342 var i, r, o = t.footer, s = o.length; 21343 if (s) { 21344 var a = Lt(t.rtl, t.x, t.width); 21345 for (e.x = Rt(t, t._footerAlign), e.y += t.footerMarginTop, n.textAlign = a.textAlign(t._footerAlign), 21346 n.textBaseline = "middle", i = t.footerFontSize, n.fillStyle = t.footerFontColor, 21347 n.font = $.fontString(i, t._footerFontStyle, t._footerFontFamily), r = 0; r < s; ++r) n.fillText(o[r], a.x(e.x), e.y + i / 2), 21348 e.y += i + t.footerSpacing; 21349 } 21350 }, 21351 drawBackground: function(e, t, n, i) { 21352 n.fillStyle = t.backgroundColor, n.strokeStyle = t.borderColor, n.lineWidth = t.borderWidth; 21353 var r = t.xAlign, o = t.yAlign, s = e.x, a = e.y, l = i.width, c = i.height, u = t.cornerRadius; 21354 n.beginPath(), n.moveTo(s + u, a), "top" === o && this.drawCaret(e, i), n.lineTo(s + l - u, a), 21355 n.quadraticCurveTo(s + l, a, s + l, a + u), "center" === o && "right" === r && this.drawCaret(e, i), 21356 n.lineTo(s + l, a + c - u), n.quadraticCurveTo(s + l, a + c, s + l - u, a + c), 21357 "bottom" === o && this.drawCaret(e, i), n.lineTo(s + u, a + c), n.quadraticCurveTo(s, a + c, s, a + c - u), 21358 "center" === o && "left" === r && this.drawCaret(e, i), n.lineTo(s, a + u), n.quadraticCurveTo(s, a, s + u, a), 21359 n.closePath(), n.fill(), t.borderWidth > 0 && n.stroke(); 21360 }, 21361 draw: function() { 21362 var e = this._chart.ctx, t = this._view; 21363 if (0 !== t.opacity) { 21364 var n = { 21365 width: t.width, 21366 height: t.height 21367 }, i = { 21368 x: t.x, 21369 y: t.y 21370 }, r = Math.abs(t.opacity < .001) ? 0 : t.opacity, o = t.title.length || t.beforeBody.length || t.body.length || t.afterBody.length || t.footer.length; 21371 this._options.enabled && o && (e.save(), e.globalAlpha = r, this.drawBackground(i, t, e, n), 21372 i.y += t.yPadding, $.rtl.overrideTextDirection(e, t.textDirection), this.drawTitle(i, t, e), 21373 this.drawBody(i, t, e), this.drawFooter(i, t, e), $.rtl.restoreTextDirection(e, t.textDirection), 21374 e.restore()); 21375 } 21376 }, 21377 handleEvent: function(e) { 21378 var t, n = this, i = n._options; 21379 return n._lastActive = n._lastActive || [], "mouseout" === e.type ? n._active = [] : (n._active = n._chart.getElementsAtEventForMode(e, i.mode, i), 21380 i.reverse && n._active.reverse()), (t = !$.arrayEquals(n._active, n._lastActive)) && (n._lastActive = n._active, 21381 (i.enabled || i.custom) && (n._eventPosition = { 21382 x: e.x, 21383 y: e.y 21384 }, n.update(!0), n.pivot())), t; 21385 } 21386 }), Ht = Dt, $t = zt; 21387 $t.positioners = Ht; 21388 var Wt = $.valueOrDefault; 21389 function qt() { 21390 return $.merge(Object.create(null), [].slice.call(arguments), { 21391 merger: function(e, t, n, i) { 21392 if ("xAxes" === e || "yAxes" === e) { 21393 var r, o, s, a = n[e].length; 21394 for (t[e] || (t[e] = []), r = 0; r < a; ++r) s = n[e][r], o = Wt(s.type, "xAxes" === e ? "category" : "linear"), 21395 r >= t[e].length && t[e].push({}), !t[e][r].type || s.type && s.type !== t[e][r].type ? $.merge(t[e][r], [ Pt.getScaleDefaults(o), s ]) : $.merge(t[e][r], s); 21396 } else $._merger(e, t, n, i); 21397 } 21398 }); 21399 } 21400 function Vt() { 21401 return $.merge(Object.create(null), [].slice.call(arguments), { 21402 merger: function(e, t, n, i) { 21403 var r = t[e] || Object.create(null), o = n[e]; 21404 "scales" === e ? t[e] = qt(r, o) : "scale" === e ? t[e] = $.merge(r, [ Pt.getScaleDefaults(o.type), o ]) : $._merger(e, t, n, i); 21405 } 21406 }); 21407 } 21408 function Yt(e) { 21409 var t = e.options; 21410 $.each(e.scales, (function(t) { 21411 mt.removeBox(e, t); 21412 })), t = Vt(j.global, j[e.config.type], t), e.options = e.config.options = t, e.ensureScalesHaveIDs(), 21413 e.buildOrUpdateScales(), e.tooltip._options = t.tooltips, e.tooltip.initialize(); 21414 } 21415 function Gt(e, t, n) { 21416 var i, r = function(e) { 21417 return e.id === i; 21418 }; 21419 do { 21420 i = t + n++; 21421 } while ($.findIndex(e, r) >= 0); 21422 return i; 21423 } 21424 function Ut(e) { 21425 return "top" === e || "bottom" === e; 21426 } 21427 function Xt(e, t) { 21428 return function(n, i) { 21429 return n[e] === i[e] ? n[t] - i[t] : n[e] - i[e]; 21430 }; 21431 } 21432 j._set("global", { 21433 elements: {}, 21434 events: [ "mousemove", "mouseout", "click", "touchstart", "touchmove" ], 21435 hover: { 21436 onHover: null, 21437 mode: "nearest", 21438 intersect: !0, 21439 animationDuration: 400 21440 }, 21441 onClick: null, 21442 maintainAspectRatio: !0, 21443 responsive: !0, 21444 responsiveAnimationDuration: 0 21445 }); 21446 var Kt = function(e, t) { 21447 return this.construct(e, t), this; 21448 }; 21449 $.extend(Kt.prototype, { 21450 construct: function(e, t) { 21451 var n = this; 21452 t = function(e) { 21453 var t = (e = e || Object.create(null)).data = e.data || {}; 21454 return t.datasets = t.datasets || [], t.labels = t.labels || [], e.options = Vt(j.global, j[e.type], e.options || {}), 21455 e; 21456 }(t); 21457 var i = At.acquireContext(e, t), r = i && i.canvas, o = r && r.height, s = r && r.width; 21458 n.id = $.uid(), n.ctx = i, n.canvas = r, n.config = t, n.width = s, n.height = o, 21459 n.aspectRatio = o ? s / o : null, n.options = t.options, n._bufferedRender = !1, 21460 n._layers = [], n.chart = n, n.controller = n, Kt.instances[n.id] = n, Object.defineProperty(n, "data", { 21461 get: function() { 21462 return n.config.data; 21463 }, 21464 set: function(e) { 21465 n.config.data = e; 21466 } 21467 }), i && r ? (n.initialize(), n.update()) : console.error("Failed to create chart: can't acquire context from the given item"); 21468 }, 21469 initialize: function() { 21470 var e = this; 21471 return Ot.notify(e, "beforeInit"), $.retinaScale(e, e.options.devicePixelRatio),
21472 e.bindEvents(), e.options.responsive && e.resize(!0), e.initToolTip(), Ot.notify(e, "afterInit"), 21473 e; 21474 }, 21475 clear: function() { 21476 return $.canvas.clear(this), this; 21477 }, 21478 stop: function() { 21479 return J.cancelAnimation(this), this; 21480 }, 21481 resize: function(e) { 21482 var t = this, n = t.options, i = t.canvas, r = n.maintainAspectRatio && t.aspectRatio || null, o = Math.max(0, Math.floor($.getMaximumWidth(i))), s = Math.max(0, Math.floor(r ? o / r : $.getMaximumHeight(i))); 21483 if ((t.width !== o || t.height !== s) && (i.width = t.width = o, i.height = t.height = s, 21484 i.style.width = o + "px", i.style.height = s + "px", $.retinaScale(t, n.devicePixelRatio), 21485 !e)) { 21486 var a = { 21487 width: o, 21488 height: s 21489 }; 21490 Ot.notify(t, "resize", [ a ]), n.onResize && n.onResize(t, a), t.stop(), t.update({ 21491 duration: n.responsiveAnimationDuration 21492 }); 21493 } 21494 }, 21495 ensureScalesHaveIDs: function() { 21496 var e = this.options, t = e.scales || {}, n = e.scale; 21497 $.each(t.xAxes, (function(e, n) { 21498 e.id || (e.id = Gt(t.xAxes, "x-axis-", n)); 21499 })), $.each(t.yAxes, (function(e, n) { 21500 e.id || (e.id = Gt(t.yAxes, "y-axis-", n)); 21501 })), n && (n.id = n.id || "scale"); 21502 }, 21503 buildOrUpdateScales: function() { 21504 var e = this, t = e.options, n = e.scales || {}, i = [], r = Object.keys(n).reduce((function(e, t) { 21505 return e[t] = !1, e; 21506 }), {}); 21507 t.scales && (i = i.concat((t.scales.xAxes || []).map((function(e) { 21508 return { 21509 options: e, 21510 dtype: "category", 21511 dposition: "bottom" 21512 }; 21513 })), (t.scales.yAxes || []).map((function(e) { 21514 return { 21515 options: e, 21516 dtype: "linear", 21517 dposition: "left" 21518 }; 21519 })))), t.scale && i.push({ 21520 options: t.scale, 21521 dtype: "radialLinear", 21522 isDefault: !0, 21523 dposition: "chartArea" 21524 }), $.each(i, (function(t) { 21525 var i = t.options, o = i.id, s = Wt(i.type, t.dtype); 21526 Ut(i.position) !== Ut(t.dposition) && (i.position = t.dposition), r[o] = !0; 21527 var a = null; 21528 if (o in n && n[o].type === s) (a = n[o]).options = i, a.ctx = e.ctx, a.chart = e; else { 21529 var l = Pt.getScaleConstructor(s); 21530 if (!l) return; 21531 a = new l({ 21532 id: o, 21533 type: s, 21534 options: i, 21535 ctx: e.ctx, 21536 chart: e 21537 }), n[a.id] = a; 21538 } 21539 a.mergeTicksOptions(), t.isDefault && (e.scale = a); 21540 })), $.each(r, (function(e, t) { 21541 e || delete n[t]; 21542 })), e.scales = n, Pt.addScalesToLayout(this); 21543 }, 21544 buildOrUpdateControllers: function() { 21545 var e, t, n = this, i = [], r = n.data.datasets; 21546 for (e = 0, t = r.length; e < t; e++) { 21547 var o = r[e], s = n.getDatasetMeta(e), a = o.type || n.config.type; 21548 if (s.type && s.type !== a && (n.destroyDatasetMeta(e), s = n.getDatasetMeta(e)), 21549 s.type = a, s.order = o.order || 0, s.index = e, s.controller)
21549s.controller.updateIndex(e), 21550 s.controller.linkScales(); else { 21551 var l = Je[s.type]; 21552 if (void 0 === l) throw new Error('"' + s.type + '" is not a chart type.'); 21553 s.controller = new l(n, e), i.push(s.controller); 21554 } 21555 } 21556 return i; 21557 }, 21558 resetElements: function() { 21559 var e = this; 21560 $.each(e.data.datasets, (function(t, n) { 21561 e.getDatasetMeta(n).controller.reset(); 21562 }), e); 21563 }, 21564 reset: function() { 21565 this.resetElements(), this.tooltip.initialize(); 21566 }, 21567 update: function(e) { 21568 var t, n, i = this; 21569 if (e && "object" == typeof e || (e = { 21570 duration: e, 21571 lazy: arguments[1] 21572 }), Yt(i), Ot._invalidate(i), !1 !== Ot.notify(i, "beforeUpdate")) { 21573 i.tooltip._data = i.data; 21574 var r = i.buildOrUpdateControllers(); 21575 for (t = 0, n = i.data.datasets.length; t < n; t++) i.getDatasetMeta(t).controller.buildOrUpdateElements(); 21576 i.updateLayout(), i.options.animation && i.options.animation.duration && $.each(r, (function(e) { 21577 e.reset(); 21578 })), i.updateDatasets(), i.tooltip.initialize(), i.lastActive = [], Ot.notify(i, "afterUpdate"), 21579 i._layers.sort(Xt("z", "_idx")), i._bufferedRender ? i._bufferedRequest = { 21580 duration: e.duration, 21581 easing: e.easing, 21582 lazy: e.lazy 21583 } : i.render(e); 21584 } 21585 }, 21586 updateLayout: function() { 21587 var e = this; 21588 !1 !== Ot.notify(e, "beforeLayout") && (mt.update(this, this.width, this.height), 21589 e._layers = [], $.each(e.boxes, (function(t) { 21590 t._configure && t._configure(), e._layers.push.apply(e._layers, t._layers()); 21591 }), e), e._layers.forEach((function(e, t) { 21592 e._idx = t; 21593 })), Ot.notify(e, "afterScaleUpdate"), Ot.notify(e, "afterLayout")); 21594 }, 21595 updateDatasets: function() { 21596 if (!1 !== Ot.notify(this, "beforeDatasetsUpdate")) { 21597 for (var e = 0, t = this.data.datasets.length; e < t; ++e) this.updateDataset(e); 21598 Ot.notify(this, "afterDatasetsUpdate"); 21599 } 21600 }, 21601 updateDataset: function(e) { 21602 var t = this.getDatasetMeta(e), n = { 21603 meta: t, 21604 index: e 21605 }; 21606 !1 !== Ot.notify(this, "beforeDatasetUpdate", [ n ]) && (t.controller._update(), 21607 Ot.notify(this, "afterDatasetUpdate", [ n ])); 21608 }, 21609 render: function(e) { 21610 var t = this; 21611 e && "object" == typeof e || (e = { 21612 duration: e, 21613 lazy: arguments[1] 21614 }); 21615 var n = t.options.animation, i = Wt(e.duration, n && n.duration), r = e.lazy; 21616 if (!1 !== Ot.notify(t, "beforeRender")) { 21617 var o = function(e) { 21618 Ot.notify(t, "afterRender"), $.callback(n && n.onComplete, [ e ], t); 21619 }; 21620 if (n && i) { 21621 var s = new Z({ 21622 numSteps: i / 16.66, 21623 easing: e.easing || n.easing, 21624 render: function(e, t) { 21625 var n = $.easing.effects[t.easing], i = t.currentStep, r = i / t.numSteps; 21626 e.draw(n(r), r, i); 21627 }, 21628 onAnimationProgress: n.onProgress, 21629 onAnimationComplete: o 21630 }); 21631 J.addAnimation(t, s, i, r); 21632 } else t.draw(), o(new Z({ 21633 numSteps: 0, 21634 chart: t 21635 })); 21636 return t; 21637 } 21638 }, 21639 draw: function(e) { 21640 var t, n, i = this; 21641 if (i.clear(), $.isNullOrUndef(e) && (e = 1), i.transition(e), !(i.width <= 0 || i.height <= 0) && !1 !== Ot.notify(i, "beforeDraw", [ e ])) { 21642 for (n = i._layers, t = 0; t < n.length && n[t].z <= 0; ++t) n[t].draw(i.chartArea); 21643 for (i.drawDatasets(e); t < n.length; ++t) n[t].draw(i.chartArea); 21644 i._drawTooltip(e), Ot.notify(i, "afterDraw", [ e ]); 21645 } 21646 }, 21647 transition: function(e) { 21648 for (var t = 0, n = (this.data.datasets || []).length; t < n; ++t) this.isDatasetVisible(t) && this.getDatasetMeta(t).controller.transition(e); 21649 this.tooltip.transition(e); 21650 }, 21651 _getSortedDatasetMetas: function(e) { 21652 var t, n, i = []; 21653 for (t = 0, n = (this.data.datasets || []).length; t < n; ++t) e && !this.isDatasetVisible(t) || i.push(this.getDatasetMeta(t)); 21654 return i.sort(Xt("order", "index")), i; 21655 }, 21656 _getSortedVisibleDatasetMetas: function() { 21657 return this._getSortedDatasetMetas(!0); 21658 }, 21659 drawDatasets: function(e) { 21660 var t, n; 21661 if (!1 !== Ot.notify(this, "beforeDatasetsDraw", [ e ])) { 21662 for (n = (t = this._getSortedVisibleDatasetMetas()).length - 1; n >= 0; --n) this.drawDataset(t[n], e); 21663 Ot.notify(this, "afterDatasetsDraw", [ e ]); 21664 } 21665 }, 21666 drawDataset: function(e, t) { 21667 var n = { 21668 meta: e, 21669 index: e.index, 21670 easingValue: t 21671 }; 21672 !1 !== Ot.notify(this, "beforeDatasetDraw", [ n ]) && (e.controller.draw(t), Ot.notify(this, "afterDatasetDraw", [ n ])); 21673 }, 21674 _drawTooltip: function(e) { 21675 var t = this.tooltip, n = { 21676 tooltip: t, 21677 easingValue: e 21678 }; 21679 !1 !== Ot.notify(this, "beforeTooltipDraw", [ n ]) && (t.draw(), Ot.notify(this, "afterTooltipDraw", [ n ])); 21680 }, 21681 getElementAtEvent: function(e) { 21682 return ot.modes.single(this, e); 21683 }, 21684 getElementsAtEvent: function(e) { 21685 return ot.modes.label(this, e, { 21686 intersect: !0 21687 }); 21688 }, 21689 getElementsAtXAxis: function(e) { 21690 return ot.modes["x-axis"](this, e, { 21691 intersect: !0 21692 }); 21693 }, 21694 getElementsAtEventForMode: function(e, t, n) { 21695 var i = ot.modes[t]; 21696 return "function" == typeof i ? i(this, e, n) : []; 21697 }, 21698 getDatasetAtEvent: function(e) { 21699 return ot.modes.dataset(this, e, { 21700 intersect: !0 21701 }); 21702 }, 21703 getDatasetMeta: function(e) { 21704 var t = this.data.datasets[e]; 21705 t._meta || (t._meta = {}); 21706 var n = t._meta[this.id]; 21707 return n || (n = t._meta[this.id] = { 21708 type: null, 21709 data: [], 21710 dataset: null, 21711 controller: null, 21712 hidden: null, 21713 xAxisID: null, 21714 yAxisID: null, 21715 order: t.order || 0, 21716 index: e 21717 }), n; 21718 }, 21719 getVisibleDatasetCount: function() { 21720 for (var e = 0, t = 0, n = this.data.datasets.length; t < n; ++t) this.isDatasetVisible(t) && e++; 21721 return e; 21722 }, 21723 isDatasetVisible: function(e) { 21724 var t = this.getDatasetMeta(e); 21725 return "boolean" == typeof t.hidden ? !t.hidden : !this.data.datasets[e].hidden; 21726 }, 21727 generateLegend: function() { 21728 return this.options.legendCallback(this); 21729 }, 21730 destroyDatasetMeta: function(e) { 21731 var t = this.id, n = this.data.datasets[e], i = n._meta && n._meta[t]; 21732 i && (i.controller.destroy(), delete n._meta[t]); 21733 }, 21734 destroy: function() { 21735 var e, t, n = this, i = n.canvas; 21736 for (n.stop(), e = 0, t = n.data.datasets.length; e < t; ++e) n.destroyDatasetMeta(e); 21737 i && (n.unbindEvents(), $.canvas.clear(n), At.releaseContext(n.ctx), n.canvas = null, 21738 n.ctx = null), Ot.notify(n, "destroy"), delete Kt.instances[n.id]; 21739 }, 21740 toBase64Image: function() { 21741 return this.canvas.toDataURL.apply(this.canvas, arguments); 21742 }, 21743 initToolTip: function() { 21744 var e = this; 21745 e.tooltip = new $t({ 21746 _chart: e, 21747 _chartInstance: e, 21748 _data: e.data, 21749 _options: e.options.tooltips 21750 }, e); 21751 }, 21752 bindEvents: function() { 21753 var e = this, t = e._listeners = {}, n = function() { 21754 e.eventHandler.apply(e, arguments); 21755 }; 21756 $.each(e.options.events, (function(i) { 21757 At.addEventListener(e, i, n), t[i] = n; 21758 })), e.options.responsive && (n = function() { 21759 e.resize(); 21760 }, At.addEventListener(e, "resize", n), t.resize = n); 21761 }, 21762 unbindEvents: function() { 21763 var e = this, t = e._listeners; 21764 t && (delete e._listeners, $.each(t, (function(t, n) { 21765 At.removeEventListener(e, n, t); 21766 }))); 21767 }, 21768 updateHoverStyle: function(e, t, n) { 21769 var i, r, o, s = n ? "set" : "remove"; 21770 for (r = 0, o = e.length; r < o; ++r) (i = e[r]) && this.getDatasetMeta(i._datasetIndex).controller[s + "HoverStyle"](i); 21771 "dataset" === t && this.getDatasetMeta(e[0]._datasetIndex).controller["_" + s + "DatasetHoverStyle"](); 21772 }, 21773 eventHandler: function(e) { 21774 var t = this, n = t.tooltip; 21775 if (!1 !== Ot.notify(t, "beforeEvent", [ e ])) { 21776 t._bufferedRender = !0, t._bufferedRequest = null; 21777 var i = t.handleEvent(e); 21778 n && (i = n._start ? n.handleEvent(e) : i | n.handleEvent(e)), Ot.notify(t, "afterEvent", [ e ]); 21779 var r = t._bufferedRequest; 21780 return r ? t.render(r) : i && !t.animating && (t.stop(), t.render({ 21781 duration: t.options.hover.animationDuration, 21782 lazy: !0 21783 })), t._bufferedRender = !1, t._bufferedRequest = null, t; 21784 } 21785 }, 21786 handleEvent: function(e) { 21787 var t, n = this, i = n.options || {}, r = i.hover; 21788 return n.lastActive = n.lastActive || [], "mouseout" === e.type ? n.active = [] : n.active = n.getElementsAtEventForMode(e, r.mode, r), 21789 $.callback(i.onHover || i.hover.onHover, [ e.native, n.active ], n), "mouseup" !== e.type && "click" !== e.type || i.onClick && i.onClick.call(n, e.native, n.active), 21790 n.lastActive.length && n.updateHoverStyle(n.lastActive, r.mode, !1), n.active.length && r.mode && n.updateHoverStyle(n.active, r.mode, !0), 21791 t = !$.arrayEquals(n.active, n.lastActive), n.lastActive = n.active, t; 21792 } 21793 }), Kt.instances = {}; 21794 var Zt = Kt; 21795 function Jt() { 21796 throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided."); 21797 } 21798 function Qt(e) { 21799 this.options = e || {}; 21800 } 21801 Kt.Controller = Kt, Kt.types = {}, $.configMerge = Vt, $.scaleMerge = qt, $.extend(Qt.prototype, { 21802 formats: Jt, 21803 parse: Jt, 21804 format: Jt, 21805 add: Jt, 21806 diff: Jt, 21807 startOf: Jt, 21808 endOf: Jt, 21809 _create: function(e) { 21810 return e; 21811 } 21812 }), Qt.override = function(e) { 21813 $.extend(Qt.prototype, e); 21814 }; 21815 var en = { 21816 _date: Qt 21817 }, tn = { 21818 formatters: { 21819 values: function(e) { 21820 return $.isArray(e) ? e : "" + e; 21821 }, 21822 linear: function(e, t, n) { 21823 var i = n.length >
21823 3 ? n[2] - n[1] : n[1] - n[0]; 21824 Math.abs(i) > 1 && e !== Math.floor(e) && (i = e - Math.floor(e)); 21825 var r = $.log10(Math.abs(i)), o = ""; 21826 if (0 !== e) if (Math.max(Math.abs(n[0]), Math.abs(n[n.length - 1])) < 1e-4) { 21827 var s = $.log10(Math.abs(e)), a = Math.floor(s) - Math.floor(r); 21828 a = Math.max(Math.min(a, 20), 0), o = e.toExponential(a); 21829 } else { 21830 var l = -1 * Math.floor(r); 21831 l = Math.max(Math.min(l, 20), 0), o = e.toFixed(l); 21832 } else o = "0"; 21833 return o; 21834 }, 21835 logarithmic: function(e, t, n) { 21836 var i = e / Math.pow(10, Math.floor($.log10(e))); 21837 return 0 === e ? "0" : 1 === i || 2 === i || 5 === i || 0 === t || t === n.length - 1 ? e.toExponential() : ""; 21838 } 21839 } 21840 }, nn = $.isArray, rn = $.isNullOrUndef, on = $.valueOrDefault, sn = $.valueAtIndexOrDefault; 21841 function an(e, t, n) { 21842 var i, r = e.getTicks().length, o = Math.min(t, r - 1), s = e.getPixelForTick(o), a = e._startPixel, l = e._endPixel; 21843 if (!(n && (i = 1 === r ? Math.max(s - a, l - s) : 0 === t ? (e.getPixelForTick(1) - s) / 2 : (s - e.getPixelForTick(o - 1)) / 2, 21844 (s += o < t ? i : -i) < a - 1e-6 || s > l + 1e-6))) return s; 21845 } 21846 function ln(e, t, n, i) { 21847 var r, o, s, a, l, c, u, d, h, f, p, m, g, v = n.length, b = [], y = [], x = [], w = 0, _ = 0; 21848 for (r = 0; r < v; ++r) { 21849 if (a = n[r].label, l = n[r].major ? t.major : t.minor, e.font = c = l.string, u = i[c] = i[c] || { 21850 data: {}, 21851 gc: [] 21852 }, d = l.lineHeight, h = f = 0, rn(a) || nn(a)) { 21853 if (nn(a)) for (o = 0, s = a.length; o < s; ++o) p = a[o], rn(p) || nn(p) || (h = $.measureText(e, u.data, u.gc, h, p), 21854 f += d); 21855 } else h = $.measureText(e, u.data, u.gc, h, a), f = d; 21856 b.push(h), y.push(f), x.push(d / 2), w = Math.max(h, w), _ = Math.max(f, _); 21857 } 21858 function S(e) { 21859 return { 21860 width: b[e] || 0, 21861 height: y[e] || 0, 21862 offset: x[e] || 0 21863 }; 21864 } 21865 return function(e, t) { 21866 $.each(e, (function(e) { 21867 var n, i = e.gc, r = i.length / 2; 21868 if (r > t) { 21869 for (n = 0; n < r; ++n) delete e.data[i[n]]; 21870 i.splice(0, r); 21871 } 21872 })); 21873 }(i, v), m = b.indexOf(w), g = y.indexOf(_), { 21874 first: S(0), 21875 last: S(v - 1), 21876 widest: S(m), 21877 highest: S(g) 21878 }; 21879 } 21880 function cn(e) { 21881 return e.drawTicks ? e.tickMarkLength : 0; 21882 } 21883 function un(e) { 21884 var t, n; 21885 return e.display ? (t = $.options._parseFont(e), n = $.options.toPadding(e.padding), 21886 t.lineHeight + n.height) : 0; 21887 } 21888 function dn(e, t) { 21889 return $.extend($.options._parseFont({ 21890 fontFamily: on(t.fontFamily, e.fontFamily), 21891 fontSize: on(t.fontSize, e.fontSize), 21892 fontStyle: on(t.fontStyle, e.fontStyle), 21893 lineHeight: on(t.lineHeight, e.lineHeight) 21894 }), { 21895 color: $.options.resolve([ t.fontColor, e.fontColor, j.global.defaultFontColor ]) 21896 }); 21897 } 21898 function hn(e) { 21899 var t = dn(e, e.minor); 21900 return { 21901 minor: t, 21902 major: e.major.enabled ? dn(e, e.major) : t 21903 }; 21904 } 21905 function fn(e) { 21906 var t, n, i, r = []; 21907 for (n = 0, i = e.length; n < i; ++n) void 0 !== (t = e[n])._index && r.push(t); 21908 return r; 21909 } 21910 function pn(e, t, n, i) { 21911 var r, o, s, a, l = on(n, 0), c = Math.min(on(i, e.length), e.length), u = 0;
vendor: 13,484 bytes, lines 21912-22149
21912 for (t = Math.ceil(t), i && (t = (r = i - n) / Math.floor(r / t)), a = l; a < 0; ) u++, 21913 a = Math.round(l + u * t); 21914 for (o = Math.max(l, 0); o < c; o++) s = e[o], o === a ? (s._index = o, u++, a = Math.round(l + u * t)) : delete s.label; 21915 } 21916 j._set("scale", { 21917 display: !0, 21918 position: "left", 21919 offset: !1, 21920 gridLines: { 21921 display: !0, 21922 color: "rgba(0,0,0,0.1)", 21923 lineWidth: 1, 21924 drawBorder: !0, 21925 drawOnChartArea: !0, 21926 drawTicks: !0, 21927 tickMarkLength: 10, 21928 zeroLineWidth: 1, 21929 zeroLineColor: "rgba(0,0,0,0.25)", 21930 zeroLineBorderDash: [], 21931 zeroLineBorderDashOffset: 0, 21932 offsetGridLines: !1, 21933 borderDash: [], 21934 borderDashOffset: 0 21935 }, 21936 scaleLabel: { 21937 display: !1, 21938 labelString: "", 21939 padding: { 21940 top: 4, 21941 bottom: 4 21942 } 21943 }, 21944 ticks: { 21945 beginAtZero: !1, 21946 minRotation: 0, 21947 maxRotation: 50, 21948 mirror: !1, 21949 padding: 0, 21950 reverse: !1, 21951 display: !0, 21952 autoSkip: !0, 21953 autoSkipPadding: 0, 21954 labelOffset: 0, 21955 callback: tn.formatters.values, 21956 minor: {}, 21957 major: {} 21958 } 21959 }); 21960 var mn = X.extend({ 21961 zeroLineIndex: 0, 21962 getPadding: function() { 21963 return { 21964 left: this.paddingLeft || 0, 21965 top: this.paddingTop || 0, 21966 right: this.paddingRight || 0, 21967 bottom: this.paddingBottom || 0 21968 }; 21969 }, 21970 getTicks: function() { 21971 return this._ticks; 21972 }, 21973 _getLabels: function() { 21974 var e = this.chart.data; 21975 return this.options.labels || (this.isHorizontal() ? e.xLabels : e.yLabels) || e.labels || []; 21976 }, 21977 mergeTicksOptions: function() {}, 21978 beforeUpdate: function() { 21979 $.callback(this.options.beforeUpdate, [ this ]); 21980 }, 21981 update: function(e, t, n) { 21982 var i, r, o, s, a, l = this, c = l.options.ticks, u = c.sampleSize; 21983 if (l.beforeUpdate(), l.maxWidth = e, l.maxHeight = t, l.margins = $.extend({ 21984 left: 0, 21985 right: 0, 21986 top: 0, 21987 bottom: 0 21988 }, n), l._ticks = null, l.ticks = null, l._labelSizes = null, l._maxLabelLines = 0, 21989 l.longestLabelWidth = 0, l.longestTextCache = l.longestTextCache || {}, l._gridLineItems = null, 21990 l._labelItems = null, l.beforeSetDimensions(), l.setDimensions(), l.afterSetDimensions(), 21991 l.beforeDataLimits(), l.determineDataLimits(), l.afterDataLimits(), l.beforeBuildTicks(), 21992 s = l.buildTicks() || [], (!(s = l.afterBuildTicks(s) || s) || !s.length) && l.ticks) for (s = [], 21993 i = 0, r = l.ticks.length; i < r; ++i) s.push({ 21994 value: l.ticks[i], 21995 major: !1 21996 }); 21997 return l._ticks = s, a = u < s.length, o = l._convertTicksToLabels(a ? function(e, t) { 21998 for (var n = [], i = e.length / t, r = 0, o = e.length; r < o; r += i) n.push(e[Math.floor(r)]); 21999 return n; 22000 }(s, u) : s), l._configure(), l.beforeCalculateTickRotation(), l.calculateTickRotation(), 22001 l.afterCalculateTickRotation(), l.beforeFit(), l.fit(), l.afterFit(), l._ticksToDraw = c.display && (c.autoSkip || "auto" === c.source) ? l._autoSkip(s) : s, 22002 a && (o = l._convertTicksToLabels(l._ticksToDraw)), l.ticks = o, l.afterUpdate(), 22003 l.minSize; 22004 }, 22005 _configure: function() { 22006 var e, t, n = this, i = n.options.ticks.reverse; 22007 n.isHorizontal() ? (e = n.left, t = n.right) : (e = n.top, t = n.bottom, i = !i), 22008 n._startPixel = e, n._endPixel = t, n._reversePixels = i, n._length = t - e; 22009 }, 22010 afterUpdate: function() { 22011 $.callback(this.options.afterUpdate, [ this ]); 22012 }, 22013 beforeSetDimensions: function() { 22014 $.callback(this.options.beforeSetDimensions, [ this ]); 22015 }, 22016 setDimensions: function() { 22017 var e = this; 22018 e.isHorizontal() ? (e.width = e.maxWidth, e.left = 0, e.right = e.width) : (e.height = e.maxHeight, 22019 e.top = 0, e.bottom = e.height), e.paddingLeft = 0, e.paddingTop = 0, e.paddingRight = 0, 22020 e.paddingBottom = 0; 22021 }, 22022 afterSetDimensions: function() { 22023 $.callback(this.options.afterSetDimensions, [ this ]); 22024 }, 22025 beforeDataLimits: function() { 22026 $.callback(this.options.beforeDataLimits, [ this ]); 22027 }, 22028 determineDataLimits: $.noop, 22029 afterDataLimits: function() { 22030 $.callback(this.options.afterDataLimits, [ this ]); 22031 }, 22032 beforeBuildTicks: function() { 22033 $.callback(this.options.beforeBuildTicks, [ this ]); 22034 }, 22035 buildTicks: $.noop, 22036 afterBuildTicks: function(e) { 22037 var t = this; 22038 return nn(e) && e.length ? $.callback(t.options.afterBuildTicks, [ t, e ]) : (t.ticks = $.callback(t.options.afterBuildTicks, [ t, t.ticks ]) || t.ticks, 22039 e); 22040 }, 22041 beforeTickToLabelConversion: function() { 22042 $.callback(this.options.beforeTickToLabelConversion, [ this ]); 22043 }, 22044 convertTicksToLabels: function() { 22045 var e = this.options.ticks; 22046 this.ticks = this.ticks.map(e.userCallback || e.callback, this); 22047 }, 22048 afterTickToLabelConversion: function() { 22049 $.callback(this.options.afterTickToLabelConversion, [ this ]); 22050 }, 22051 beforeCalculateTickRotation: function() { 22052 $.callback(this.options.beforeCalculateTickRotation, [ this ]); 22053 }, 22054 calculateTickRotation: function() { 22055 var e, t, n, i, r, o, s, a = this, l = a.options, c = l.ticks, u = a.getTicks().length, d = c.minRotation || 0, h = c.maxRotation, f = d; 22056 !a._isVisible() || !c.display || d >= h || u <= 1 || !a.isHorizontal() ? a.labelRotation = d : (t = (e = a._getLabelSizes()).widest.width, 22057 n = e.highest.height - e.highest.offset, i = Math.min(a.maxWidth, a.chart.width - t), 22058 t + 6 > (r = l.offset ? a.maxWidth / u : i / (u - 1)) && (r = i / (u - (l.offset ? .5 : 1)), 22059 o = a.maxHeight - cn(l.gridLines) - c.padding - un(l.scaleLabel), s = Math.sqrt(t * t + n * n), 22060 f = $.toDegrees(Math.min(Math.asin(Math.min((e.highest.height + 6) / r, 1)), Math.asin(Math.min(o / s, 1)) - Math.asin(n / s))), 22061 f = Math.max(d, Math.min(h, f))), a.labelRotation = f); 22062 }, 22063 afterCalculateTickRotation: function() { 22064 $.callback(this.options.afterCalculateTickRotation, [ this ]); 22065 }, 22066 beforeFit: function() { 22067 $.callback(this.options.beforeFit, [ this ]); 22068 }, 22069 fit: function() { 22070 var e = this, t = e.minSize = { 22071 width: 0, 22072 height: 0 22073 }, n = e.chart, i = e.options, r = i.ticks, o = i.scaleLabel, s = i.gridLines, a = e._isVisible(), l = "bottom" === i.position, c = e.isHorizontal(); 22074 if (c ? t.width = e.maxWidth : a && (t.width = cn(s) + un(o)), c ? a && (t.height = cn(s) + un(o)) : t.height = e.maxHeight, 22075 r.display && a) { 22076 var u = hn(r), d = e._getLabelSizes(), h = d.first, f = d.last, p = d.widest, m = d.highest, g = .4 * u.minor.lineHeight, v = r.padding; 22077 if (c) { 22078 var b = 0 !== e.labelRotation, y = $.toRadians(e.labelRotation), x = Math.cos(y), w = Math.sin(y), _ = w * p.width + x * (m.height - (b ? m.offset : 0)) + (b ? 0 : g); 22079 t.height = Math.min(e.maxHeight, t.height + _ + v); 22080 var S, E, C = e.getPixelForTick(0) - e.left, T = e.right - e.getPixelForTick(e.getTicks().length - 1); 22081 b ? (S = l ? x * h.width + w * h.offset : w * (h.height - h.offset), E = l ? w * (f.height - f.offset) : x * f.width + w * f.offset) : (S = h.width / 2, 22082 E = f.width / 2), e.paddingLeft = Math.max((S - C) * e.width / (e.width - C), 0) + 3, 22083 e.paddingRight = Math.max((E - T) * e.width / (e.width - T), 0) + 3; 22084 } else { 22085 var k = r.mirror ? 0 : p.width + v + g; 22086 t.width = Math.min(e.maxWidth, t.width + k), e.paddingTop = h.height / 2, e.paddingBottom = f.height / 2; 22087 } 22088 } 22089 e.handleMargins(), c ? (e.width = e._length = n.width - e.margins.left - e.margins.right, 22090 e.height = t.height) : (e.width = t.width, e.height = e._length = n.height - e.margins.top - e.margins.bottom); 22091 }, 22092 handleMargins: function() { 22093 var e = this; 22094 e.margins && (e.margins.left = Math.max(e.paddingLeft, e.margins.left), e.margins.top = Math.max(e.paddingTop, e.margins.top), 22095 e.margins.right = Math.max(e.paddingRight, e.margins.right), e.margins.bottom = Math.max(e.paddingBottom, e.margins.bottom)); 22096 }, 22097 afterFit: function() { 22098 $.callback(this.options.afterFit, [ this ]); 22099 }, 22100 isHorizontal: function() { 22101 var e = this.options.position; 22102 return "top" === e || "bottom" === e; 22103 }, 22104 isFullWidth: function() { 22105 return this.options.fullWidth; 22106 }, 22107 getRightValue: function(e) { 22108 if (rn(e)) return NaN; 22109 if (("number" == typeof e || e instanceof Number) && !isFinite(e)) return NaN; 22110 if (e) if (this.isHorizontal()) { 22111 if (void 0 !== e.x) return this.getRightValue(e.x); 22112 } else if (void 0 !== e.y) return this.getRightValue(e.y); 22113 return e; 22114 }, 22115 _convertTicksToLabels: function(e) { 22116 var t, n, i, r = this; 22117 for (r.ticks = e.map((function(e) { 22118 return e.value; 22119 })), r.beforeTickToLabelConversion(), t = r.convertTicksToLabels(e) || r.ticks, 22120 r.afterTickToLabelConversion(), n = 0, i = e.length; n < i; ++n) e[n].label = t[n]; 22121 return t; 22122 }, 22123 _getLabelSizes: function() { 22124 var e = this, t = e._labelSizes; 22125 return t || (e._labelSizes = t = ln(e.ctx, hn(e.options.ticks), e.getTicks(), e.longestTextCache), 22126 e.longestLabelWidth = t.widest.width), t; 22127 }, 22128 _parseValue: function(e) { 22129 var t, n, i, r; 22130 return nn(e) ? (t = +this.getRightValue(e[0]), n = +this.getRightValue(e[1]), i = Math.min(t, n), 22131 r = Math.max(t, n)) : (t = void 0, n = e = +this.getRightValue(e), i = e, r = e), 22132 { 22133 min: i, 22134 max: r, 22135 start: t, 22136 end: n 22137 }; 22138 }, 22139 _getScaleLabel: function(e) { 22140 var t = this._parseValue(e); 22141 return void 0 !== t.start ? "[" + t.start + ", " + t.end + "]" : +this.getRightValue(e); 22142 }, 22143 getLabelForIndex: $.noop, 22144 getPixelForValue: $.noop, 22145 getValueForPixel: $.noop, 22146 getPixelForTick: function(e) { 22147 var t = this.options.offset, n = this._ticks.length, i = 1 / Math.max(n - (t ? 0 : 1), 1); 22148 return e < 0 || e > n - 1 ? null : this.getPixelForDecimal(e * i + (t ? i / 2 : 0)); 22149 },
22150 getPixelForDecimal: function(e) { 22151 return this._reversePixels && (e = 1 - e), this._startPixel + e * this._length; 22152 }, 22153 getDecimalForPixel: function(e) { 22154 var t = (e - this._startPixel) / this._length; 22155 return this._reversePixels ? 1 - t : t; 22156 }, 22157 getBasePixel: function() { 22158 return this.getPixelForValue(this.getBaseValue()); 22159 }, 22160 getBaseValue: function() { 22161 var e = this.min, t = this.max; 22162 return this.beginAtZero ? 0 : e < 0 && t < 0 ? t : e > 0 && t > 0 ? e : 0; 22163 }, 22164 _autoSkip: function(e) { 22165 var t, n, i, r, o = this.options.ticks, s = this._length, a = o.maxTicksLimit || s / this._tickSize() + 1, l = o.major.enabled ? function(e) { 22166 var t, n, i = []; 22167 for (t = 0, n = e.length; t < n; t++) e[t].major && i.push(t); 22168 return i; 22169 }(e) : [], c = l.length, u = l[0], d = l[c - 1]; 22170 if (c > a) return function(e, t, n) { 22171 var i, r, o = 0, s = t[0]; 22172 for (n = Math.ceil(n), i = 0; i < e.length; i++) r = e[i], i === s ? (r._index = i, 22173 s = t[++o * n]) : delete r.label; 22174 }(e, l, c / a), fn(e); 22175 if (i = function(e, t, n, i) { 22176 var r, o, s, a, l = function(e) { 22177 var t, n, i = e.length; 22178 if (i < 2) return !1; 22179 for (n = e[0], t = 1; t < i; ++t) if (e[t] - e[t - 1] !== n) return !1; 22180 return n; 22181 }(e), c = (t.length - 1) / i; 22182 if (!l) return Math.max(c, 1); 22183 for (s = 0, a = (r = $.math._factorize(l)).length - 1; s < a; s++) if ((o = r[s]) > c) return o; 22184 return Math.max(c, 1); 22185 }(l, e, 0, a), c > 0) { 22186 for (t = 0, n = c - 1; t < n; t++) pn(e, i, l[t], l[t + 1]); 22187 return r = c > 1 ? (d - u) / (c - 1) : null, pn(e, i, $.isNullOrUndef(r) ? 0 : u - r, u), 22188 pn(e, i, d, $.isNullOrUndef(r) ? e.length : d + r), fn(e); 22189 } 22190 return pn(e, i), fn(e); 22191 }, 22192 _tickSize: function() { 22193 var e = this.options.ticks, t = $.toRadians(this.labelRotation), n = Math.abs(Math.cos(t)), i = Math.abs(Math.sin(t)), r = this._getLabelSizes(), o = e.autoSkipPadding || 0, s = r ? r.widest.width + o : 0, a = r ? r.highest.height + o : 0; 22194 return this.isHorizontal() ? a * n > s * i ? s / n : a / i : a * i < s * n ? a / n : s / i; 22195 }, 22196 _isVisible: function() { 22197 var e, t, n, i = this.chart, r = this.options.display; 22198 if ("auto" !== r) return !!r; 22199 for (e = 0, t = i.data.datasets.length; e < t; ++e) if (i.isDatasetVisible(e) && ((n = i.getDatasetMeta(e)).xAxisID === this.id || n.yAxisID === this.id)) return !0; 22200 return !1; 22201 }, 22202 _computeGridLineItems: function(e) { 22203 var t, n, i, r, o, s, a, l, c, u, d, h, f, p, m, g, v, b = this, y = b.chart, x = b.options, w = x.gridLines, _ = x.position, S = w.offsetGridLines, E = b.isHorizontal(), C = b._ticksToDraw, T = C.length + (S ? 1 : 0), k = cn(w), M = [], A = w.drawBorder ? sn(w.lineWidth, 0, 0) : 0, O = A / 2, P = $._alignPixel, I = function(e) { 22204 return P(y, e, A); 22205 }; 22206 for ("top" === _ ? (t = I(b.bottom), a = b.bottom - k, c = t - O, d = I(e.top) + O, 22207 f = e.bottom) : "bottom" === _ ? (t = I(b.top), d = e.top, f = I(e.bottom) - O, 22208 a = t + O, c = b.top + k) : "left" === _ ? (t = I(b.right), s = b.right - k, l = t - O, 22209 u = I(e.left) + O, h = e.right) : (t = I(b.left), u = e.left, h = I(e.right) - O, 22210 s = t + O, l = b.left + k), n = 0; n < T; ++n) i = C[n] || {}, rn(i.label) && n < C.length || (n === b.zeroLineIndex && x.offset === S ? (p = w.zeroLineWi
vendor: 4,444 bytes, lines 22210-22273
22210dth, 22211 m = w.zeroLineColor, g = w.zeroLineBorderDash || [], v = w.zeroLineBorderDashOffset || 0) : (p = sn(w.lineWidth, n, 1), 22212 m = sn(w.color, n, "rgba(0,0,0,0.1)"), g = w.borderDash || [], v = w.borderDashOffset || 0), 22213 void 0 !== (r = an(b, i._index || n, S)) && (o = P(y, r, p), E ? s = l = u = h = o : a = c = d = f = o, 22214 M.push({ 22215 tx1: s, 22216 ty1: a, 22217 tx2: l, 22218 ty2: c, 22219 x1: u, 22220 y1: d, 22221 x2: h, 22222 y2: f, 22223 width: p, 22224 color: m, 22225 borderDash: g, 22226 borderDashOffset: v 22227 }))); 22228 return M.ticksLength = T, M.borderValue = t, M; 22229 }, 22230 _computeLabelItems: function() { 22231 var e, t, n, i, r, o, s, a, l, c, u, d, h = this, f = h.options, p = f.ticks, m = f.position, g = p.mirror, v = h.isHorizontal(), b = h._ticksToDraw, y = hn(p), x = p.padding, w = cn(f.gridLines), _ = -$.toRadians(h.labelRotation), S = []; 22232 for ("top" === m ? (o = h.bottom - w - x, s = _ ? "left" : "center") : "bottom" === m ? (o = h.top + w + x, 22233 s = _ ? "right" : "center") : "left" === m ? (r = h.right - (g ? 0 : w) - x, s = g ? "left" : "right") : (r = h.left + (g ? 0 : w) + x, 22234 s = g ? "right" : "left"), e = 0, t = b.length; e < t; ++e) i = (n = b[e]).label, 22235 rn(i) || (a = h.getPixelForTick(n._index || e) + p.labelOffset, c = (l = n.major ? y.major : y.minor).lineHeight, 22236 u = nn(i) ? i.length : 1, v ? (r = a, d = "top" === m ? ((_ ? 1 : .5) - u) * c : (_ ? 0 : .5) * c) : (o = a, 22237 d = (1 - u) * c / 2), S.push({ 22238 x: r, 22239 y: o, 22240 rotation: _, 22241 label: i, 22242 font: l, 22243 textOffset: d, 22244 textAlign: s 22245 })); 22246 return S; 22247 }, 22248 _drawGrid: function(e) { 22249 var t = this, n = t.options.gridLines; 22250 if (n.display) { 22251 var i, r, o, s, a, l = t.ctx, c = t.chart, u = $._alignPixel, d = n.drawBorder ? sn(n.lineWidth, 0, 0) : 0, h = t._gridLineItems || (t._gridLineItems = t._computeGridLineItems(e)); 22252 for (o = 0, s = h.length; o < s; ++o) i = (a = h[o]).width, r = a.color, i && r && (l.save(), 22253 l.lineWidth = i, l.strokeStyle = r, l.setLineDash && (l.setLineDash(a.borderDash), 22254 l.lineDashOffset = a.borderDashOffset), l.beginPath(), n.drawTicks && (l.moveTo(a.tx1, a.ty1), 22255 l.lineTo(a.tx2, a.ty2)), n.drawOnChartArea && (l.moveTo(a.x1, a.y1), l.lineTo(a.x2, a.y2)), 22256 l.stroke(), l.restore()); 22257 if (d) { 22258 var f, p, m, g, v = d, b = sn(n.lineWidth, h.ticksLength - 1, 1), y = h.borderValue; 22259 t.isHorizontal() ? (f = u(c, t.left, v) - v / 2, p = u(c, t.right, b) + b / 2, m = g = y) : (m = u(c, t.top, v) - v / 2, 22260 g = u(c, t.bottom, b) + b / 2, f = p = y), l.lineWidth = d, l.strokeStyle = sn(n.color, 0), 22261 l.beginPath(), l.moveTo(f, m), l.lineTo(p, g), l.stroke(); 22262 } 22263 } 22264 }, 22265 _drawLabels: function() { 22266 var e = this; 22267 if (e.options.ticks.display) { 22268 var t, n, i, r, o, s, a, l, c = e.ctx, u = e._labelItems || (e._labelItems = e._computeLabelItems()); 22269 for (t = 0, i = u.length; t < i; ++t) { 22270 if (s = (o = u[t]).font, c.save(), c.translate(o.x, o.y), c.rotate(o.rotation), 22271 c.font = s.string, c.fillStyle = s.color, c.textBaseline = "middle", c.textAlign = o.textAlign, 22272 a = o.label, l = o.textOffset, nn(a)) for (n = 0, r = a.length; n < r; ++n) c.fillText("" + a[n], 0, l), 22273 l += s.lineHeight; else c.fillText(a, 0, l);
22274 c.restore(); 22275 } 22276 } 22277 }, 22278 _drawTitle: function() { 22279 var e = this, t = e.ctx, n = e.options, i = n.scaleLabel; 22280 if (i.display) { 22281 var r, o, s = on(i.fontColor, j.global.defaultFontColor), a = $.options._parseFont(i), l = $.options.toPadding(i.padding), c = a.lineHeight / 2, u = n.position, d = 0; 22282 if (e.isHorizontal()) r = e.left + e.width / 2, o = "bottom" === u ? e.bottom - c - l.bottom : e.top + c + l.top; else { 22283 var h = "left" === u; 22284 r = h ? e.left + c + l.top : e.right - c - l.top, o = e.top + e.height / 2, d = h ? -.5 * Math.PI : .5 * Math.PI; 22285 } 22286 t.save(), t.translate(r, o), t.rotate(d), t.textAlign = "center", t.textBaseline = "middle", 22287 t.fillStyle = s, t.font = a.string, t.fillText(i.labelString, 0, 0), t.restore(); 22288 } 22289 }, 22290 draw: function(e) { 22291 this._isVisible() && (this._drawGrid(e), this._drawTitle(), this._drawLabels()); 22292 }, 22293 _layers: function() { 22294 var e = this, t = e.options, n = t.ticks && t.ticks.z || 0, i = t.gridLines && t.gridLines.z || 0; 22295 return e._isVisible() && n !== i && e.draw === e._draw ? [ { 22296 z: i, 22297 draw: function() { 22298 e._drawGrid.apply(e, arguments), e._drawTitle.apply(e, arguments); 22299 } 22300 }, { 22301 z: n, 22302 draw: function() { 22303 e._drawLabels.apply(e, arguments); 22304 } 22305 } ] : [ { 22306 z: n, 22307 draw: function() { 22308 e.draw.apply(e, arguments); 22309 } 22310 } ]; 22311 }, 22312 _getMatchingVisibleMetas: function(e) { 22313 var t = this, n = t.isHorizontal(); 22314 return t.chart._getSortedVisibleDatasetMetas().filter((function(i) { 22315 return (!e || i.type === e) && (n ? i.xAxisID === t.id : i.yAxisID === t.id); 22316 })); 22317 } 22318 }); 22319 mn.prototype._draw = mn.prototype.draw; 22320 var gn = mn, vn = $.isNullOrUndef, bn = gn.extend({ 22321 determineDataLimits: function() { 22322 var e, t = this, n = t._getLabels(), i = t.options.ticks, r = i.min, o = i.max, s = 0, a = n.length - 1; 22323 void 0 !== r && (e = n.indexOf(r)) >= 0 && (s = e), void 0 !== o && (e = n.indexOf(o)) >= 0 && (a = e), 22324 t.minIndex = s, t.maxIndex = a, t.min = n[s], t.max = n[a]; 22325 }, 22326 buildTicks: function() { 22327 var e = this._getLabels(), t = this.minIndex, n = this.maxIndex; 22328 this.ticks = 0 === t && n === e.length - 1 ? e : e.slice(t, n + 1); 22329 }, 22330 getLabelForIndex: function(e, t) { 22331 var n = this.chart; 22332 return n.getDatasetMeta(t).controller._getValueScaleId() === this.id ? this.getRightValue(n.data.datasets[t].data[e]) : this._getLabels()[e]; 22333 }, 22334 _configure: function() { 22335 var e = this, t = e.options.offset, n = e.ticks; 22336 gn.prototype._configure.call(e), e.isHorizontal() || (e._reversePixels = !e._reversePixels), 22337 n && (e._startValue = e.minIndex - (t ? .5 : 0), e._valueRange = Math.max(n.length - (t ? 0 : 1), 1)); 22338 }, 22339 getPixelForValue: function(e, t, n) { 22340 var i, r, o, s = this; 22341 return vn(t) || vn(n) || (e = s.chart.data.datasets[n].data[t]), vn(e) || (i = s.isHorizontal() ? e.x : e.y), 22342 (void 0 !== i || void 0 !== e && isNaN(t)) && (r = s._getLabels(), e = $.valueOrDefault(i, e), 22343 t = -1 !== (o = r.indexOf(e)) ? o : t, isNaN(t) && (t = e)), s.getPixelForDecimal((t - s._startValue) /
vendor: 16,384 bytes, lines 22343-22619
22343s._valueRange); 22344 }, 22345 getPixelForTick: function(e) { 22346 var t = this.ticks; 22347 return e < 0 || e > t.length - 1 ? null : this.getPixelForValue(t[e], e + this.minIndex); 22348 }, 22349 getValueForPixel: function(e) { 22350 var t = Math.round(this._startValue + this.getDecimalForPixel(e) * this._valueRange); 22351 return Math.min(Math.max(t, 0), this.ticks.length - 1); 22352 }, 22353 getBasePixel: function() { 22354 return this.bottom; 22355 } 22356 }), yn = { 22357 position: "bottom" 22358 }; 22359 bn._defaults = yn; 22360 var xn = $.noop, wn = $.isNullOrUndef, _n = gn.extend({ 22361 getRightValue: function(e) { 22362 return "string" == typeof e ? +e : gn.prototype.getRightValue.call(this, e); 22363 }, 22364 handleTickRangeOptions: function() { 22365 var e = this, t = e.options.ticks; 22366 if (t.beginAtZero) { 22367 var n = $.sign(e.min), i = $.sign(e.max); 22368 n < 0 && i < 0 ? e.max = 0 : n > 0 && i > 0 && (e.min = 0); 22369 } 22370 var r = void 0 !== t.min || void 0 !== t.suggestedMin, o = void 0 !== t.max || void 0 !== t.suggestedMax; 22371 void 0 !== t.min ? e.min = t.min : void 0 !== t.suggestedMin && (null === e.min ? e.min = t.suggestedMin : e.min = Math.min(e.min, t.suggestedMin)), 22372 void 0 !== t.max ? e.max = t.max : void 0 !== t.suggestedMax && (null === e.max ? e.max = t.suggestedMax : e.max = Math.max(e.max, t.suggestedMax)), 22373 r !== o && e.min >= e.max && (r ? e.max = e.min + 1 : e.min = e.max - 1), e.min === e.max && (e.max++, 22374 t.beginAtZero || e.min--); 22375 }, 22376 getTickLimit: function() { 22377 var e, t = this.options.ticks, n = t.stepSize, i = t.maxTicksLimit; 22378 return n ? e = Math.ceil(this.max / n) - Math.floor(this.min / n) + 1 : (e = this._computeTickLimit(), 22379 i = i || 11), i && (e = Math.min(i, e)), e; 22380 }, 22381 _computeTickLimit: function() { 22382 return Number.POSITIVE_INFINITY; 22383 }, 22384 handleDirectionalChanges: xn, 22385 buildTicks: function() { 22386 var e = this, t = e.options.ticks, n = e.getTickLimit(), i = { 22387 maxTicks: n = Math.max(2, n), 22388 min: t.min, 22389 max: t.max, 22390 precision: t.precision, 22391 stepSize: $.valueOrDefault(t.fixedStepSize, t.stepSize) 22392 }, r = e.ticks = function(e, t) { 22393 var n, i, r, o, s = [], a = e.stepSize, l = a || 1, c = e.maxTicks - 1, u = e.min, d = e.max, h = e.precision, f = t.min, p = t.max, m = $.niceNum((p - f) / c / l) * l; 22394 if (m < 1e-14 && wn(u) && wn(d)) return [ f, p ]; 22395 (o = Math.ceil(p / m) - Math.floor(f / m)) > c && (m = $.niceNum(o * m / c / l) * l), 22396 a || wn(h) ? n = Math.pow(10, $._decimalPlaces(m)) : (n = Math.pow(10, h), m = Math.ceil(m * n) / n), 22397 i = Math.floor(f / m) * m, r = Math.ceil(p / m) * m, a && (!wn(u) && $.almostWhole(u / m, m / 1e3) && (i = u), 22398 !wn(d) && $.almostWhole(d / m, m / 1e3) && (r = d)), o = (r - i) / m, o = $.almostEquals(o, Math.round(o), m / 1e3) ? Math.round(o) : Math.ceil(o), 22399 i = Math.round(i * n) / n, r = Math.round(r * n) / n, s.push(wn(u) ? i : u); 22400 for (var g = 1; g < o; ++g) s.push(Math.round((i + g * m) * n) / n); 22401 return s.push(wn(d) ? r : d), s; 22402 }(i, e); 22403 e.handleDirectionalChanges(), e.max = $.max(r), e.min = $.min(r), t.reverse ? (r.reverse(), 22404 e.start = e.max, e.end = e.min) : (e.start = e.min, e.end = e.max); 22405 }, 22406 convertTicksToLabels: function() { 22407 var e = this; 22408 e.ticksAsNumbers = e.ticks.slice(), e.zeroLineIndex = e.ticks.indexOf(0), gn.prototype.convertTicksToLabels.call(e); 22409 }, 22410 _configure: function() { 22411 var e, t = this, n = t.getTicks(), i = t.min, r = t.max; 22412 gn.prototype._configure.call(t), t.options.offset && n.length && (i -= e = (r - i) / Math.max(n.length - 1, 1) / 2, 22413 r += e), t._startValue = i, t._endValue = r, t._valueRange = r - i; 22414 } 22415 }), Sn = { 22416 position: "left", 22417 ticks: { 22418 callback: tn.formatters.linear 22419 } 22420 }; 22421 function En(e, t, n, i) { 22422 var r, o, s = e.options, a = function(e, t, n) { 22423 var i = [ n.type, void 0 === t && void 0 === n.stack ? n.index : "", n.stack ].join("."); 22424 return void 0 === e[i] && (e[i] = { 22425 pos: [], 22426 neg: [] 22427 }), e[i]; 22428 }(t, s.stacked, n), l = a.pos, c = a.neg, u = i.length; 22429 for (r = 0; r < u; ++r) o = e._parseValue(i[r]), isNaN(o.min) || isNaN(o.max) || n.data[r].hidden || (l[r] = l[r] || 0, 22430 c[r] = c[r] || 0, s.relativePoints ? l[r] = 100 : o.min < 0 || o.max < 0 ? c[r] += o.min : l[r] += o.max); 22431 } 22432 function Cn(e, t, n) { 22433 var i, r, o = n.length; 22434 for (i = 0; i < o; ++i) r = e._parseValue(n[i]), isNaN(r.min) || isNaN(r.max) || t.data[i].hidden || (e.min = Math.min(e.min, r.min), 22435 e.max = Math.max(e.max, r.max)); 22436 } 22437 var Tn = _n.extend({ 22438 determineDataLimits: function() { 22439 var e, t, n, i, r = this, o = r.options, s = r.chart.data.datasets, a = r._getMatchingVisibleMetas(), l = o.stacked, c = {}, u = a.length; 22440 if (r.min = Number.POSITIVE_INFINITY, r.max = Number.NEGATIVE_INFINITY, void 0 === l) for (e = 0; !l && e < u; ++e) l = void 0 !== (t = a[e]).stack; 22441 for (e = 0; e < u; ++e) n = s[(t = a[e]).index].data, l ? En(r, c, t, n) : Cn(r, t, n); 22442 $.each(c, (function(e) { 22443 i = e.pos.concat(e.neg), r.min = Math.min(r.min, $.min(i)), r.max = Math.max(r.max, $.max(i)); 22444 })), r.min = $.isFinite(r.min) && !isNaN(r.min) ? r.min : 0, r.max = $.isFinite(r.max) && !isNaN(r.max) ? r.max : 1, 22445 r.handleTickRangeOptions(); 22446 }, 22447 _computeTickLimit: function() { 22448 var e; 22449 return this.isHorizontal() ? Math.ceil(this.width / 40) : (e = $.options._parseFont(this.options.ticks), 22450 Math.ceil(this.height / e.lineHeight)); 22451 }, 22452 handleDirectionalChanges: function() { 22453 this.isHorizontal() || this.ticks.reverse(); 22454 }, 22455 getLabelForIndex: function(e, t) { 22456 return this._getScaleLabel(this.chart.data.datasets[t].data[e]); 22457 }, 22458 getPixelForValue: function(e) { 22459 return this.getPixelForDecimal((+this.getRightValue(e) - this._startValue) / this._valueRange); 22460 }, 22461 getValueForPixel: function(e) { 22462 return this._startValue + this.getDecimalForPixel(e) * this._valueRange; 22463 }, 22464 getPixelForTick: function(e) { 22465 var t = this.ticksAsNumbers; 22466 return e < 0 || e > t.length - 1 ? null : this.getPixelForValue(t[e]); 22467 } 22468 }), kn = Sn; 22469 Tn._defaults = kn; 22470 var Mn = $.valueOrDefault, An = $.math.log10, On = { 22471 position: "left", 22472 ticks: { 22473 callback: tn.formatters.logarithmic 22474 } 22475 }; 22476 function Pn(e, t) { 22477 return $.isFinite(e) && e >= 0 ? e : t; 22478 } 22479 var In = gn.extend({ 22480 determineDataLimits: function() { 22481 var e, t, n, i, r, o, s = this, a = s.options, l = s.chart, c = l.data.datasets, u = s.isHorizontal(); 22482 function d(e) { 22483 return u ? e.xAxisID === s.id : e.yAxisID === s.id; 22484 } 22485 s.min = Number.POSITIVE_INFINITY, s.max = Number.NEGATIVE_INFINITY, s.minNotZero = Number.POSITIVE_INFINITY; 22486 var h = a.stacked; 22487 if (void 0 === h) for (e = 0; e < c.length; e++) if (t = l.getDatasetMeta(e), l.isDatasetVisible(e) && d(t) && void 0 !== t.stack) { 22488 h = !0; 22489 break; 22490 } 22491 if (a.stacked || h) { 22492 var f = {}; 22493 for (e = 0; e < c.length; e++) { 22494 var p = [ (t = l.getDatasetMeta(e)).type, void 0 === a.stacked && void 0 === t.stack ? e : "", t.stack ].join("."); 22495 if (l.isDatasetVisible(e) && d(t)) for (void 0 === f[p] && (f[p] = []), r = 0, o = (i = c[e].data).length; r < o; r++) { 22496 var m = f[p]; 22497 n = s._parseValue(i[r]), isNaN(n.min) || isNaN(n.max) || t.data[r].hidden || n.min < 0 || n.max < 0 || (m[r] = m[r] || 0, 22498 m[r] += n.max); 22499 } 22500 } 22501 $.each(f, (function(e) { 22502 if (e.length > 0) { 22503 var t = $.min(e), n = $.max(e); 22504 s.min = Math.min(s.min, t), s.max = Math.max(s.max, n); 22505 } 22506 })); 22507 } else for (e = 0; e < c.length; e++) if (t = l.getDatasetMeta(e), l.isDatasetVisible(e) && d(t)) for (r = 0, 22508 o = (i = c[e].data).length; r < o; r++) n = s._parseValue(i[r]), isNaN(n.min) || isNaN(n.max) || t.data[r].hidden || n.min < 0 || n.max < 0 || (s.min = Math.min(n.min, s.min), 22509 s.max = Math.max(n.max, s.max), 0 !== n.min && (s.minNotZero = Math.min(n.min, s.minNotZero))); 22510 s.min = $.isFinite(s.min) ? s.min : null, s.max = $.isFinite(s.max) ? s.max : null, 22511 s.minNotZero = $.isFinite(s.minNotZero) ? s.minNotZero : null, this.handleTickRangeOptions(); 22512 }, 22513 handleTickRangeOptions: function() { 22514 var e = this, t = e.options.ticks; 22515 e.min = Pn(t.min, e.min), e.max = Pn(t.max, e.max), e.min === e.max && (0 !== e.min && null !== e.min ? (e.min = Math.pow(10, Math.floor(An(e.min)) - 1), 22516 e.max = Math.pow(10, Math.floor(An(e.max)) + 1)) : (e.min = 1, e.max = 10)), null === e.min && (e.min = Math.pow(10, Math.floor(An(e.max)) - 1)), 22517 null === e.max && (e.max = 0 !== e.min ? Math.pow(10, Math.floor(An(e.min)) + 1) : 10), 22518 null === e.minNotZero && (e.min > 0 ? e.minNotZero = e.min : e.max < 1 ? e.minNotZero = Math.pow(10, Math.floor(An(e.max))) : e.minNotZero = 1); 22519 }, 22520 buildTicks: function() { 22521 var e = this, t = e.options.ticks, n = !e.isHorizontal(), i = { 22522 min: Pn(t.min), 22523 max: Pn(t.max) 22524 }, r = e.ticks = function(e, t) { 22525 var n, i, r = [], o = Mn(e.min, Math.pow(10, Math.floor(An(t.min)))), s = Math.floor(An(t.max)), a = Math.ceil(t.max / Math.pow(10, s)); 22526 0 === o ? (n = Math.floor(An(t.minNotZero)), i = Math.floor(t.minNotZero / Math.pow(10, n)), 22527 r.push(o), o = i * Math.pow(10, n)) : (n = Math.floor(An(o)), i = Math.floor(o / Math.pow(10, n))); 22528 var l = n < 0 ? Math.pow(10, Math.abs(n)) : 1; 22529 do { 22530 r.push(o), 10 == ++i && (i = 1, l = ++n >= 0 ? 1 : l), o = Math.round(i * Math.pow(10, n) * l) / l; 22531 } while (n < s || n === s && i < a); 22532 var c = Mn(e.max, o); 22533 return r.push(c), r; 22534 }(i, e); 22535 e.max = $.max(r), e.min = $.min(r), t.reverse ? (n = !n, e.start = e.max, e.end = e.min) : (e.start = e.min, 22536 e.end = e.max), n && r.reverse(); 22537 }, 22538 convertTicksToLabels: function() { 22539 this.tickValues = this.ticks.slice(), gn.prototype.convertTicksToLabels.call(this); 22540 }, 22541 getLabelForIndex: function(e, t) { 22542 return this._getScaleLabel(this.chart.data.datasets[t].data[e]); 22543 }, 22544 getPixelForTick: function(e) { 22545 var t = this.tickValues; 22546 return e < 0 || e > t.length - 1 ? null : this.getPixelForValue(t[e]); 22547 }, 22548 _getFirstTickValue: function(e) { 22549 var t = Math.floor(An(e)); 22550 return Math.floor(e / Math.pow(10, t)) * Math.pow(10, t); 22551 }, 22552 _configure: function() { 22553 var e = this, t = e.min, n = 0; 22554 gn.prototype._configure.call(e), 0 === t && (t = e._getFirstTickValue(e.minNotZero), 22555 n = Mn(e.options.ticks.fontSize, j.global.defaultFontSize) / e._length), e._startValue = An(t), 22556 e._valueOffset = n, e._valueRange = (An(e.max) - An(t)) / (1 - n); 22557 }, 22558 getPixelForValue: function(e) { 22559 var t = this, n = 0; 22560 return (e = +t.getRightValue(e)) > t.min && e > 0 && (n = (An(e) - t._startValue) / t._valueRange + t._valueOffset), 22561 t.getPixelForDecimal(n); 22562 }, 22563 getValueForPixel: function(e) { 22564 var t = this, n = t.getDecimalForPixel(e); 22565 return 0 === n && 0 === t.min ? 0 : Math.pow(10, t._startValue + (n - t._valueOffset) * t._valueRange); 22566 } 22567 }), Ln = On; 22568 In._defaults = Ln; 22569 var Dn = $.valueOrDefault, Nn = $.valueAtIndexOrDefault, Fn = $.options.resolve, jn = { 22570 display: !0, 22571 animate: !0, 22572 position: "chartArea", 22573 angleLines: { 22574 display: !0, 22575 color: "rgba(0,0,0,0.1)", 22576 lineWidth: 1, 22577 borderDash: [], 22578 borderDashOffset: 0 22579 }, 22580 gridLines: { 22581 circular: !1 22582 }, 22583 ticks: { 22584 showLabelBackdrop: !0, 22585 backdropColor: "rgba(255,255,255,0.75)", 22586 backdropPaddingY: 2, 22587 backdropPaddingX: 2, 22588 callback: tn.formatters.linear 22589 }, 22590 pointLabels: { 22591 display: !0, 22592 fontSize: 10, 22593 callback: function(e) { 22594 return e; 22595 } 22596 } 22597 }; 22598 function Rn(e) { 22599 var t = e.ticks; 22600 return t.display && e.display ? Dn(t.fontSize, j.global.defaultFontSize) + 2 * t.backdropPaddingY : 0; 22601 } 22602 function Bn(e, t, n, i, r) { 22603 return e === i || e === r ? { 22604 start: t - n / 2, 22605 end: t + n / 2 22606 } : e < i || e > r ? { 22607 start: t - n, 22608 end: t 22609 } : { 22610 start: t, 22611 end: t + n 22612 }; 22613 } 22614 function zn(e) { 22615 return 0 === e || 180 === e ? "center" : e < 180 ? "left" : "right"; 22616 } 22617 function Hn(e, t, n, i) { 22618 var r, o, s = n.y + i / 2; 22619 if ($.isArray(t)) f
22619or (r = 0, o = t.length; r < o; ++r) e.fillText(t[r], n.x, s), 22620 s += i; else e.fillText(t, n.x, s); 22621 } 22622 function $n(e, t, n) { 22623 90 === e || 270 === e ? n.y -= t.h / 2 : (e > 270 || e < 90) && (n.y -= t.h); 22624 } 22625 function Wn(e) { 22626 return $.isNumber(e) ? e : 0; 22627 } 22628 var qn = _n.extend({ 22629 setDimensions: function() { 22630 var e = this; 22631 e.width = e.maxWidth, e.height = e.maxHeight, e.paddingTop = Rn(e.options) / 2, 22632 e.xCenter = Math.floor(e.width / 2), e.yCenter = Math.floor((e.height - e.paddingTop) / 2), 22633 e.drawingArea = Math.min(e.height - e.paddingTop, e.width) / 2; 22634 }, 22635 determineDataLimits: function() { 22636 var e = this, t = e.chart, n = Number.POSITIVE_INFINITY, i = Number.NEGATIVE_INFINITY; 22637 $.each(t.data.datasets, (function(r, o) { 22638 if (t.isDatasetVisible(o)) { 22639 var s = t.getDatasetMeta(o); 22640 $.each(r.data, (function(t, r) { 22641 var o = +e.getRightValue(t); 22642 isNaN(o) || s.data[r].hidden || (n = Math.min(o, n), i = Math.max(o, i)); 22643 })); 22644 } 22645 })), e.min = n === Number.POSITIVE_INFINITY ? 0 : n, e.max = i === Number.NEGATIVE_INFINITY ? 0 : i, 22646 e.handleTickRangeOptions(); 22647 }, 22648 _computeTickLimit: function() { 22649 return Math.ceil(this.drawingArea / Rn(this.options)); 22650 }, 22651 convertTicksToLabels: function() { 22652 var e = this; 22653 _n.prototype.convertTicksToLabels.call(e), e.pointLabels = e.chart.data.labels.map((function() { 22654 var t = $.callback(e.options.pointLabels.callback, arguments, e); 22655 return t || 0 === t ? t : ""; 22656 })); 22657 }, 22658 getLabelForIndex: function(e, t) { 22659 return +this.getRightValue(this.chart.data.datasets[t].data[e]); 22660 }, 22661 fit: function() { 22662 var e = this.options; 22663 e.display && e.pointLabels.display ? function(e) { 22664 var t, n, i, r = $.options._parseFont(e.options.pointLabels), o = { 22665 l: 0, 22666 r: e.width, 22667 t: 0, 22668 b: e.height - e.paddingTop 22669 }, s = {}; 22670 e.ctx.font = r.string, e._pointLabelSizes = []; 22671 var a, l, c, u = e.chart.data.labels.length; 22672 for (t = 0; t < u; t++) { 22673 i = e.getPointPosition(t, e.drawingArea + 5), a = e.ctx, l = r.lineHeight, c = e.pointLabels[t], 22674 n = $.isArray(c) ? { 22675 w: $.longestText(a, a.font, c), 22676 h: c.length * l 22677 } : { 22678 w: a.measureText(c).width, 22679 h: l 22680 }, e._pointLabelSizes[t] = n; 22681 var d = e.getIndexAngle(t), h = $.toDegrees(d) % 360, f = Bn(h, i.x, n.w, 0, 180), p = Bn(h, i.y, n.h, 90, 270); 22682 f.start < o.l && (o.l = f.start, s.l = d), f.end > o.r && (o.r = f.end, s.r = d), 22683 p.start < o.t && (o.t = p.start, s.t = d), p.end > o.b && (o.b = p.end, s.b = d); 22684 } 22685 e.setReductions(e.drawingArea, o, s); 22686 }(this) : this.setCenterPoint(0, 0, 0, 0); 22687 }, 22688 setReductions: function(e, t, n) { 22689 var i = this, r = t.l / Math.sin(n.l), o = Math.max(t.r - i.width, 0) / Math.sin(n.r), s = -t.t / Math.cos(n.t), a = -Math.max(t.b - (i.height - i.paddingTop), 0) / Math.cos(n.b); 22690 r = Wn(r), o = Wn(o), s = Wn(s), a = Wn(a), i.drawingArea = Math.min(Math.floor(e - (r
22690+ o) / 2), Math.floor(e - (s + a) / 2)), 22691 i.setCenterPoint(r, o, s, a); 22692 }, 22693 setCenterPoint: function(e, t, n, i) { 22694 var r = this, o = r.width - t - r.drawingArea, s = e + r.drawingArea, a = n + r.drawingArea, l = r.height - r.paddingTop - i - r.drawingArea; 22695 r.xCenter = Math.floor((s + o) / 2 + r.left), r.yCenter = Math.floor((a + l) / 2 + r.top + r.paddingTop); 22696 }, 22697 getIndexAngle: function(e) { 22698 var t = this.chart, n = (e * (360 / t.data.labels.length) + ((t.options || {}).startAngle || 0)) % 360; 22699 return (n < 0 ? n + 360 : n) * Math.PI * 2 / 360; 22700 }, 22701 getDistanceFromCenterForValue: function(e) { 22702 var t = this; 22703 if ($.isNullOrUndef(e)) return NaN; 22704 var n = t.drawingArea / (t.max - t.min); 22705 return t.options.ticks.reverse ? (t.max - e) * n : (e - t.min) * n; 22706 }, 22707 getPointPosition: function(e, t) { 22708 var n = this.getIndexAngle(e) - Math.PI / 2; 22709 return { 22710 x: Math.cos(n) * t + this.xCenter, 22711 y: Math.sin(n) * t + this.yCenter 22712 }; 22713 }, 22714 getPointPositionForValue: function(e, t) { 22715 return this.getPointPosition(e, this.getDistanceFromCenterForValue(t)); 22716 }, 22717 getBasePosition: function(e) { 22718 var t = this.min, n = this.max; 22719 return this.getPointPositionForValue(e || 0, this.beginAtZero ? 0 : t < 0 && n < 0 ? n : t > 0 && n > 0 ? t : 0); 22720 }, 22721 _drawGrid: function() { 22722 var e, t, n, i = this, r = i.ctx, o = i.options, s = o.gridLines, a = o.angleLines, l = Dn(a.lineWidth, s.lineWidth), c = Dn(a.color, s.color); 22723 if (o.pointLabels.display && function(e) { 22724 var t = e.ctx, n = e.options, i = n.pointLabels, r = Rn(n), o = e.getDistanceFromCenterForValue(n.ticks.reverse ? e.min : e.max), s = $.options._parseFont(i); 22725 t.save(), t.font = s.string, t.textBaseline = "middle"; 22726 for (var a = e.chart.data.labels.length - 1; a >= 0; a--) { 22727 var l = 0 === a ? r / 2 : 0, c = e.getPointPosition(a, o + l + 5), u = Nn(i.fontColor, a, j.global.defaultFontColor); 22728 t.fillStyle = u; 22729 var d = e.getIndexAngle(a), h = $.toDegrees(d); 22730 t.textAlign = zn(h), $n(h, e._pointLabelSizes[a], c), Hn(t, e.pointLabels[a], c, s.lineHeight); 22731 } 22732 t.restore(); 22733 }(i), s.display && $.each(i.ticks, (function(e, n) { 22734 0 !== n && (t = i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]), function(e, t, n, i) { 22735 var r, o = e.ctx, s = t.circular, a = e.chart.data.labels.length, l = Nn(t.color, i - 1), c = Nn(t.lineWidth, i - 1); 22736 if ((s || a) && l && c) { 22737 if (o.save(), o.strokeStyle = l, o.lineWidth = c, o.setLineDash && (o.setLineDash(t.borderDash || []), 22738 o.lineDashOffset = t.borderDashOffset || 0), o.beginPath(), s) o.arc(e.xCenter, e.yCenter, n, 0, 2 * Math.PI); else { 22739 r = e.getPointPosition(0, n), o.moveTo(r.x, r.y); 22740 for (var u = 1; u < a; u++) r = e.getPointPosition(u, n), o.lineTo(r.x, r.y); 22741 } 22742 o.closePath(), o.stroke(), o.restore(); 22743 } 22744 }(i, s, t, n)); 22745 })), a.display && l && c) { 22746 for (r.save(), r.lineWidth = l, r.strokeStyle = c, r.setLineDash && (r.setLineDash(Fn([ a.borderDash, s.borderDash, [] ])), 22747 r.lineDashOffset = Fn([ a.borderDashOffset, s.borderDashOffset, 0 ])), e = i.chart.data.labels.length - 1; e >= 0; e--) t = i.getDistanceFromCenterForValue(o.ticks.reverse ? i.min : i.max), 22748 n = i.getPointPosition(e, t), r.beginPath(), r.moveTo(i.xCenter, i.yCenter), r.lineTo(n.x, n.y), 22749 r.stroke();
vendor: 13,634 bytes, lines 22750-22980
22750 r.restore(); 22751 } 22752 }, 22753 _drawLabels: function() { 22754 var e = this, t = e.ctx, n = e.options.ticks; 22755 if (n.display) { 22756 var i, r, o = e.getIndexAngle(0), s = $.options._parseFont(n), a = Dn(n.fontColor, j.global.defaultFontColor); 22757 t.save(), t.font = s.string, t.translate(e.xCenter, e.yCenter), t.rotate(o), t.textAlign = "center", 22758 t.textBaseline = "middle", $.each(e.ticks, (function(o, l) { 22759 (0 !== l || n.reverse) && (i = e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]), 22760 n.showLabelBackdrop && (r = t.measureText(o).width, t.fillStyle = n.backdropColor, 22761 t.fillRect(-r / 2 - n.backdropPaddingX, -i - s.size / 2 - n.backdropPaddingY, r + 2 * n.backdropPaddingX, s.size + 2 * n.backdropPaddingY)), 22762 t.fillStyle = a, t.fillText(o, 0, -i)); 22763 })), t.restore(); 22764 } 22765 }, 22766 _drawTitle: $.noop 22767 }), Vn = jn; 22768 qn._defaults = Vn; 22769 var Yn = $._deprecated, Gn = $.options.resolve, Un = $.valueOrDefault, Xn = Number.MIN_SAFE_INTEGER || -9007199254740991, Kn = Number.MAX_SAFE_INTEGER || 9007199254740991, Zn = { 22770 millisecond: { 22771 common: !0, 22772 size: 1, 22773 steps: 1e3 22774 }, 22775 second: { 22776 common: !0, 22777 size: 1e3, 22778 steps: 60 22779 }, 22780 minute: { 22781 common: !0, 22782 size: 6e4, 22783 steps: 60 22784 }, 22785 hour: { 22786 common: !0, 22787 size: 36e5, 22788 steps: 24 22789 }, 22790 day: { 22791 common: !0, 22792 size: 864e5, 22793 steps: 30 22794 }, 22795 week: { 22796 common: !1, 22797 size: 6048e5, 22798 steps: 4 22799 }, 22800 month: { 22801 common: !0, 22802 size: 2628e6, 22803 steps: 12 22804 }, 22805 quarter: { 22806 common: !1, 22807 size: 7884e6, 22808 steps: 4 22809 }, 22810 year: { 22811 common: !0, 22812 size: 3154e7 22813 } 22814 }, Jn = Object.keys(Zn); 22815 function Qn(e, t) { 22816 return e - t; 22817 } 22818 function ei(e) { 22819 return $.valueOrDefault(e.time.min, e.ticks.min); 22820 } 22821 function ti(e) { 22822 return $.valueOrDefault(e.time.max, e.ticks.max); 22823 } 22824 function ni(e, t, n, i) { 22825 var r = function(e, t, n) { 22826 for (var i, r, o, s = 0, a = e.length - 1; s >= 0 && s <= a; ) { 22827 if (r = e[(i = s + a >> 1) - 1] || null, o = e[i], !r) return { 22828 lo: null, 22829 hi: o 22830 }; 22831 if (o[t] < n) s = i + 1; else { 22832 if (!(r[t] > n)) return { 22833 lo: r, 22834 hi: o 22835 }; 22836 a = i - 1; 22837 } 22838 } 22839 return { 22840 lo: o, 22841 hi: null 22842 }; 22843 }(e, t, n), o = r.lo ? r.hi ? r.lo : e[e.length - 2] : e[0], s = r.lo ? r.hi ? r.hi : e[e.length - 1] : e[1], a = s[t] - o[t], l = a ? (n - o[t]) / a : 0, c = (s[i] - o[i]) * l; 22844 return o[i] + c; 22845 } 22846 function ii(e, t) { 22847 var n = e._adapter, i = e.options.time, r = i.parser, o = r || i.format, s = t; 22848 return "function" == typeof r && (s = r(s)), $.isFinite(s) || (s = "string" == typeof o ? n.parse(s, o) : n.parse(s)), 22849 null !== s ? +s : (r || "function" != typeof o || (s = o(t), $.isFinite(s) || (s = n.parse(s))), 22850 s); 22851 } 22852 function ri(e, t) { 22853 if ($.isNullOrUndef(t)) return null; 22854 var n = e.options.time, i = ii(e, e.getRightValue(t)); 22855 return null === i || n.round && (i = +e._adapter.startOf(i, n.round)), i; 22856 } 22857 function oi(e, t, n, i) { 22858 var r, o, s, a = Jn.length; 22859 for (r = Jn.indexOf(e); r < a - 1; ++r) if (s = (o = Zn[Jn[r]]).steps ? o.steps : Kn, 22860 o.common && Math.ceil((n - t) / (s * o.size)) <= i) return Jn[r]; 22861 return Jn[a - 1]; 22862 } 22863 function si(e, t, n) { 22864 var i, r, o = [], s = {}, a = t.length; 22865 for (i = 0; i < a; ++i) s[r = t[i]] = i, o.push({ 22866 value: r, 22867 major: !1 22868 }); 22869 return 0 !== a && n ? function(e, t, n, i) { 22870 var r, o, s = e._adapter, a = +s.startOf(t[0].value, i), l = t[t.length - 1].value; 22871 for (r = a; r <= l; r = +s.add(r, 1, i)) (o = n[r]) >= 0 && (t[o].major = !0); 22872 return t; 22873 }(e, o, s, n) : o; 22874 } 22875 var ai = gn.extend({ 22876 initialize: function() { 22877 this.mergeTicksOptions(), gn.prototype.initialize.call(this); 22878 }, 22879 update: function() { 22880 var e = this, t = e.options, n = t.time || (t.time = {}), i = e._adapter = new en._date(t.adapters.date); 22881 return Yn("time scale", n.format, "time.format", "time.parser"), Yn("time scale", n.min, "time.min", "ticks.min"), 22882 Yn("time scale", n.max, "time.max", "ticks.max"), $.mergeIf(n.displayFormats, i.formats()), 22883 gn.prototype.update.apply(e, arguments); 22884 }, 22885 getRightValue: function(e) { 22886 return e && void 0 !== e.t && (e = e.t), gn.prototype.getRightValue.call(this, e); 22887 }, 22888 determineDataLimits: function() { 22889 var e, t, n, i, r, o, s, a = this, l = a.chart, c = a._adapter, u = a.options, d = u.time.unit || "day", h = Kn, f = Xn, p = [], m = [], g = [], v = a._getLabels(); 22890 for (e = 0, n = v.length; e < n; ++e) g.push(ri(a, v[e])); 22891 for (e = 0, n = (l.data.datasets || []).length; e < n; ++e) if (l.isDatasetVisible(e)) if (r = l.data.datasets[e].data, 22892 $.isObject(r[0])) for (m[e] = [], t = 0, i = r.length; t < i; ++t) o = ri(a, r[t]), 22893 p.push(o), m[e][t] = o; else m[e] = g.slice(0), s || (p = p.concat(g), s = !0); else m[e] = []; 22894 g.length && (h = Math.min(h, g[0]), f = Math.max(f, g[g.length - 1])), p.length && (p = n > 1 ? function(e) { 22895 var t, n, i, r = {}, o = []; 22896 for (t = 0, n = e.length; t < n; ++t) r[i = e[t]] || (r[i] = !0, o.push(i)); 22897 return o; 22898 }(p).sort(Qn) : p.sort(Qn), h = Math.min(h, p[0]), f = Math.max(f, p[p.length - 1])), 22899 h = ri(a, ei(u)) || h, f = ri(a, ti(u)) || f, h = h === Kn ? +c.startOf(Date.now(), d) : h, 22900 f = f === Xn ? +c.endOf(Date.now(), d) + 1 : f, a.min = Math.min(h, f), a.max = Math.max(h + 1, f), 22901 a._table = [], a._timestamps = { 22902 data: p, 22903 datasets: m, 22904 labels: g 22905 }; 22906 }, 22907 buildTicks: function() { 22908 var e, t, n, i = this, r = i.min, o = i.max, s = i.options, a = s.ticks, l = s.time, c = i._timestamps, u = [], d = i.getLabelCapacity(r), h = a.source, f = s.distribution; 22909 for (c = "data" === h || "auto" === h && "series" === f ? c.data : "labels" === h ? c.labels : function(e, t, n, i) { 22910 var r, o = e._adapter, s = e.options, a = s.time, l = a.unit || oi(a.minUnit, t, n, i), c = Gn([ a.stepSize, a.unitStepSize, 1 ]), u = "week" === l && a.isoWeekday, d = t, h = []; 22911 if (u && (d = +o.startOf(d, "isoWeek", u)), d = +o.startOf(d, u ? "day" : l), o.diff(n, t, l) > 1e5 * c) throw t + " and " + n + " are too far apart with stepSize of " + c + " " + l; 22912 for (r = d; r < n; r = +o.add(r, c, l)) h.push(r); 22913 return r !== n && "ticks" !== s.bounds || h.push(r), h; 22914 }(i, r, o, d), "ticks" === s.bounds && c.length && (r = c[0], o = c[c.length - 1]), 22915 r = ri(i, ei(s)) || r, o = ri(i, ti(s)) || o, e = 0, t = c.length; e < t; ++e) (n = c[e]) >= r && n <= o && u.push(n); 22916 return i.min = r, i.max = o, i._unit = l.unit || (a.autoSkip ? oi(l.minUnit, i.min, i.max, d) : function(e, t, n, i, r) { 22917 var o, s; 22918 for (o = Jn.length - 1; o >= Jn.indexOf(n); o--) if (s = Jn[o], Zn[s].common && e._adapter.diff(r, i, s) >= t - 1) return s; 22919 return Jn[n ? Jn.indexOf(n) : 0]; 22920 }(i, u.length, l.minUnit, i.min, i.max)), i._majorUnit = a.major.enabled && "year" !== i._unit ? function(e) { 22921 for (var t = Jn.indexOf(e) + 1, n = Jn.length; t < n; ++t) if (Zn[Jn[t]].common) return Jn[t]; 22922 }(i._unit) : void 0, i._table = function(e, t, n, i) { 22923 if ("linear" === i || !e.length) return [ { 22924 time: t, 22925 pos: 0 22926 }, { 22927 time: n, 22928 pos: 1 22929 } ]; 22930 var r, o, s, a, l, c = [], u = [ t ]; 22931 for (r = 0, o = e.length; r < o; ++r) (a = e[r]) > t && a < n && u.push(a); 22932 for (u.push(n), r = 0, o = u.length; r < o; ++r) l = u[r + 1], s = u[r - 1], a = u[r], 22933 void 0 !== s && void 0 !== l && Math.round((l + s) / 2) === a || c.push({ 22934 time: a, 22935 pos: r / (o - 1) 22936 }); 22937 return c; 22938 }(i._timestamps.data, r, o, f), i._offsets = function(e, t, n, i, r) { 22939 var o, s, a = 0, l = 0; 22940 return r.offset && t.length && (o = ni(e, "time", t[0], "pos"), a = 1 === t.length ? 1 - o : (ni(e, "time", t[1], "pos") - o) / 2, 22941 s = ni(e, "time", t[t.length - 1], "pos"), l = 1 === t.length ? s : (s - ni(e, "time", t[t.length - 2], "pos")) / 2), 22942 { 22943 start: a, 22944 end: l, 22945 factor: 1 / (a + 1 + l) 22946 }; 22947 }(i._table, u, 0, 0, s), a.reverse && u.reverse(), si(i, u, i._majorUnit); 22948 }, 22949 getLabelForIndex: function(e, t) { 22950 var n = this, i = n._adapter, r = n.chart.data, o = n.options.time, s = r.labels && e < r.labels.length ? r.labels[e] : "", a = r.datasets[t].data[e]; 22951 return $.isObject(a) && (s = n.getRightValue(a)), o.tooltipFormat ? i.format(ii(n, s), o.tooltipFormat) : "string" == typeof s ? s : i.format(ii(n, s), o.displayFormats.datetime); 22952 }, 22953 tickFormatFunction: function(e, t, n, i) { 22954 var r = this._adapter, o = this.options, s = o.time.displayFormats, a = s[this._unit], l = this._majorUnit, c = s[l], u = n[t], d = o.ticks, h = l && c && u && u.major, f = r.format(e, i || (h ? c : a)), p = h ? d.major : d.minor, m = Gn([ p.callback, p.userCallback, d.callback, d.userCallback ]); 22955 return m ? m(f, t, n) : f; 22956 }, 22957 convertTicksToLabels: function(e) { 22958 var t, n, i = []; 22959 for (t = 0, n = e.length; t < n; ++t) i.push(this.tickFormatFunction(e[t].value, t, e)); 22960 return i; 22961 }, 22962 getPixelForOffset: function(e) { 22963 var t = this._offsets, n = ni(this._table, "time", e, "pos"); 22964 return this.getPixelForDecimal((t.start + n) * t.factor); 22965 }, 22966 getPixelForValue: function(e, t, n) { 22967 var i = null; 22968 if (void 0 !== t && void 0 !== n && (i = this._timestamps.datasets[n][t]), null === i && (i = ri(this, e)), 22969 null !== i) return this.getPixelForOffset(i); 22970 }, 22971 getPixelForTick: function(e) { 22972 var t = this.getTicks(); 22973 return e >= 0 && e < t.length ? this.getPixelForOffset(t[e].value) : null; 22974 }, 22975 getValueForPixel: function(e) { 22976 var t = this._offsets, n = this.getDecimalForPixel(e) / t.factor - t.end, i = ni(this._table, "pos", n, "time"); 22977 return this._adapter._create(i); 22978 }, 22979 _getLabelSize: function(e) { 22980 var t = this.options.ticks, n = this.ctx.measureText(e).width, i = $.toRadians(this.isHorizontal() ? t.maxRotation : t.minRotation), r = Math.
vendor: 13,663 bytes, lines 22980-23261
22980cos(i), o = Math.sin(i), s = Un(t.fontSize, j.global.defaultFontSize); 22981 return { 22982 w: n * r + s * o, 22983 h: n * o + s * r 22984 }; 22985 }, 22986 getLabelWidth: function(e) { 22987 return this._getLabelSize(e).w; 22988 }, 22989 getLabelCapacity: function(e) { 22990 var t = this, n = t.options.time, i = n.displayFormats, r = i[n.unit] || i.millisecond, o = t.tickFormatFunction(e, 0, si(t, [ e ], t._majorUnit), r), s = t._getLabelSize(o), a = Math.floor(t.isHorizontal() ? t.width / s.w : t.height / s.h); 22991 return t.options.offset && a--, a > 0 ? a : 1; 22992 } 22993 }), li = { 22994 position: "bottom", 22995 distribution: "linear", 22996 bounds: "data", 22997 adapters: {}, 22998 time: { 22999 parser: !1, 23000 unit: !1, 23001 round: !1, 23002 displayFormat: !1, 23003 isoWeekday: !1, 23004 minUnit: "millisecond", 23005 displayFormats: {} 23006 }, 23007 ticks: { 23008 autoSkip: !1, 23009 source: "auto", 23010 major: { 23011 enabled: !1 23012 } 23013 } 23014 }; 23015 ai._defaults = li; 23016 var ci = { 23017 category: bn, 23018 linear: Tn, 23019 logarithmic: In, 23020 radialLinear: qn, 23021 time: ai 23022 }, ui = { 23023 datetime: "MMM D, YYYY, h:mm:ss a", 23024 millisecond: "h:mm:ss.SSS a", 23025 second: "h:mm:ss a", 23026 minute: "h:mm a", 23027 hour: "hA", 23028 day: "MMM D", 23029 week: "ll", 23030 month: "MMM YYYY", 23031 quarter: "[Q]Q - YYYY", 23032 year: "YYYY" 23033 }; 23034 en._date.override("function" == typeof e ? { 23035 _id: "moment", 23036 formats: function() { 23037 return ui; 23038 }, 23039 parse: function(t, n) { 23040 return "string" == typeof t && "string" == typeof n ? t = e(t, n) : t instanceof e || (t = e(t)), 23041 t.isValid() ? t.valueOf() : null; 23042 }, 23043 format: function(t, n) { 23044 return e(t).format(n); 23045 }, 23046 add: function(t, n, i) { 23047 return e(t).add(n, i).valueOf(); 23048 }, 23049 diff: function(t, n, i) { 23050 return e(t).diff(e(n), i); 23051 }, 23052 startOf: function(t, n, i) { 23053 return t = e(t), "isoWeek" === n ? t.isoWeekday(i).valueOf() : t.startOf(n).valueOf(); 23054 }, 23055 endOf: function(t, n) { 23056 return e(t).endOf(n).valueOf(); 23057 }, 23058 _create: function(t) { 23059 return e(t); 23060 } 23061 } : {}), j._set("global", { 23062 plugins: { 23063 filler: { 23064 propagate: !0 23065 } 23066 } 23067 }); 23068 var di = { 23069 dataset: function(e) { 23070 var t = e.fill, n = e.chart, i = n.getDatasetMeta(t), r = i && n.isDatasetVisible(t) && i.dataset._children || [], o = r.length || 0; 23071 return o ? function(e, t) { 23072 return t < o && r[t]._view || null; 23073 } : null; 23074 }, 23075 boundary: function(e) { 23076 var t = e.boundary, n = t ? t.x : null, i = t ? t.y : null; 23077 return $.isArray(t) ? function(e, n) { 23078 return t[n]; 23079 } : function(e) { 23080 return { 23081 x: null === n ? e.x : n, 23082 y: null === i ? e.y : i 23083 }; 23084 }; 23085 } 23086 }; 23087 function hi(e, t, n) { 23088 var i, r = e._model || {}, o = r.fill; 23089 if (void 0 === o && (o = !!r.backgroundColor), !1 === o || null === o) return !1; 23090 if (!0 === o) return "origin"; 23091 if (i = parseFloat(o, 10), isFinite(i) && Math.floor(i) === i) return "-" !== o[0] && "+" !== o[0] || (i = t + i), 23092 !(i === t || i < 0 || i >= n) && i; 23093 switch (o) { 23094 case "bottom": 23095 return "start"; 23096 23097 case "top": 23098 return "end"; 23099 23100 case "zero": 23101 return "origin"; 23102 23103 case "origin": 23104 case "start": 23105 case "end": 23106 return o; 23107 23108 default: 23109 return !1; 23110 } 23111 } 23112 function fi(e) { 23113 return (e.el._scale || {}).getPointPositionForValue ? function(e) { 23114 var t, n, i, r, o, s = e.el._scale, a = s.options, l = s.chart.data.labels.length, c = e.fill, u = []; 23115 if (!l) return null; 23116 for (t = a.ticks.reverse ? s.max : s.min, n = a.ticks.reverse ? s.min : s.max, i = s.getPointPositionForValue(0, t), 23117 r = 0; r < l; ++r) o = "start" === c || "end" === c ? s.getPointPositionForValue(r, "start" === c ? t : n) : s.getBasePosition(r), 23118 a.gridLines.circular && (o.cx = i.x, o.cy = i.y, o.angle = s.getIndexAngle(r) - Math.PI / 2), 23119 u.push(o); 23120 return u; 23121 }(e) : function(e) { 23122 var t, n = e.el._model || {}, i = e.el._scale || {}, r = e.fill, o = null; 23123 if (isFinite(r)) return null; 23124 if ("start" === r ? o = void 0 === n.scaleBottom ? i.bottom : n.scaleBottom : "end" === r ? o = void 0 === n.scaleTop ? i.top : n.scaleTop : void 0 !== n.scaleZero ? o = n.scaleZero : i.getBasePixel && (o = i.getBasePixel()), 23125 null != o) { 23126 if (void 0 !== o.x && void 0 !== o.y) return o; 23127 if ($.isFinite(o)) return { 23128 x: (t = i.isHorizontal()) ? o : null, 23129 y: t ? null : o 23130 }; 23131 } 23132 return null; 23133 }(e); 23134 } 23135 function pi(e, t, n) { 23136 var i, r = e[t].fill, o = [ t ]; 23137 if (!n) return r; 23138 for (;!1 !== r && -1 === o.indexOf(r); ) { 23139 if (!isFinite(r)) return r; 23140 if (!(i = e[r])) return !1; 23141 if (i.visible) return r; 23142 o.push(r), r = i.fill; 23143 } 23144 return !1; 23145 } 23146 function mi(e) { 23147 var t = e.fill, n = "dataset"; 23148 return !1 === t ? null : (isFinite(t) || (n = "boundary"), di[n](e)); 23149 } 23150 function gi(e) { 23151 return e && !e.skip; 23152 } 23153 function vi(e, t, n, i, r) { 23154 var o, s, a, l; 23155 if (i && r) { 23156 for (e.moveTo(t[0].x, t[0].y), o = 1; o < i; ++o) $.canvas.lineTo(e, t[o - 1], t[o]); 23157 if (void 0 === n[0].angle) for (e.lineTo(n[r - 1].x, n[r - 1].y), o = r - 1; o > 0; --o) $.canvas.lineTo(e, n[o], n[o - 1], !0); else for (s = n[0].cx, 23158 a = n[0].cy, l = Math.sqrt(Math.pow(n[0].x - s, 2) + Math.pow(n[0].y - a, 2)), o = r - 1; o > 0; --o) e.arc(s, a, l, n[o].angle, n[o - 1].angle, !0); 23159 } 23160 } 23161 function bi(e, t, n, i, r, o) { 23162 var s, a, l, c, u, d, h, f, p = t.length, m = i.spanGaps, g = [], v = [], b = 0, y = 0; 23163 for (e.beginPath(), s = 0, a = p; s < a; ++s) u = n(c = t[l = s % p]._view, l, i), 23164 d = gi(c), h = gi(u), o && void 0 === f && d && (a = p + (f = s + 1)), d && h ? (b = g.push(c), 23165 y = v.push(u)) : b && y && (m ? (d && g.push(c), h && v.push(u)) : (vi(e, g, v, b, y), 23166 b = y = 0, g = [], v = [])); 23167 vi(e, g, v, b, y), e.closePath(), e.fillStyle = r, e.fill(); 23168 } 23169 var yi = { 23170 id: "filler", 23171 afterDatasetsUpdate: function(e, t) { 23172 var n, i, r, o, s = (e.data.datasets || []).length, a = t.propagate, l = []; 23173 for (i = 0; i < s; ++i) o = null, (r = (n = e.getDatasetMeta(i)).dataset) && r._model && r instanceof _e.Line && (o = { 23174 visible: e.isDatasetVisible(i), 23175 fill: hi(r, i, s), 23176 chart: e, 23177 el: r 23178 }), n.$filler = o, l.push(o); 23179 for (i = 0; i < s; ++i) (o = l[i]) && (o.fill = pi(l, i, a), o.boundary = fi(o), 23180 o.mapper = mi(o)); 23181 }, 23182 beforeDatasetsDraw: function(e) { 23183 var t, n, i, r, o, s, a, l = e._getSortedVisibleDatasetMetas(), c = e.ctx; 23184 for (n = l.length - 1; n >= 0; --n) (t = l[n].$filler) && t.visible && (r = (i = t.el)._view, 23185 o = i._children || [], s = t.mapper, a = r.backgroundColor || j.global.defaultColor, 23186 s && a && o.length && ($.canvas.clipArea(c, e.chartArea), bi(c, o, s, r, a, i._loop), 23187 $.canvas.unclipArea(c))); 23188 } 23189 }, xi = $.rtl.getRtlAdapter, wi = $.noop, _i = $.valueOrDefault; 23190 function Si(e, t) { 23191 return e.usePointStyle && e.boxWidth > t ? t : e.boxWidth; 23192 } 23193 j._set("global", { 23194 legend: { 23195 display: !0, 23196 position: "top", 23197 align: "center", 23198 fullWidth: !0, 23199 reverse: !1, 23200 weight: 1e3, 23201 onClick: function(e, t) { 23202 var n = t.datasetIndex, i = this.chart, r = i.getDatasetMeta(n); 23203 r.hidden = null === r.hidden ? !i.data.datasets[n].hidden : null, i.update(); 23204 }, 23205 onHover: null, 23206 onLeave: null, 23207 labels: { 23208 boxWidth: 40, 23209 padding: 10, 23210 generateLabels: function(e) { 23211 var t = e.data.datasets, n = e.options.legend || {}, i = n.labels && n.labels.usePointStyle; 23212 return e._getSortedDatasetMetas().map((function(n) { 23213 var r = n.controller.getStyle(i ? 0 : void 0); 23214 return { 23215 text: t[n.index].label, 23216 fillStyle: r.backgroundColor, 23217 hidden: !e.isDatasetVisible(n.index), 23218 lineCap: r.borderCapStyle, 23219 lineDash: r.borderDash, 23220 lineDashOffset: r.borderDashOffset, 23221 lineJoin: r.borderJoinStyle, 23222 lineWidth: r.borderWidth, 23223 strokeStyle: r.borderColor, 23224 pointStyle: r.pointStyle, 23225 rotation: r.rotation, 23226 datasetIndex: n.index 23227 }; 23228 }), this); 23229 } 23230 } 23231 }, 23232 legendCallback: function(e) { 23233 var t, n, i, r = document.createElement("ul"), o = e.data.datasets; 23234 for (r.setAttribute("class", e.id + "-legend"), t = 0, n = o.length; t < n; t++) (i = r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor = o[t].backgroundColor, 23235 o[t].label && i.appendChild(document.createTextNode(o[t].label)); 23236 return r.outerHTML; 23237 } 23238 }); 23239 var Ei = X.extend({ 23240 initialize: function(e) { 23241 $.extend(this, e), this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1; 23242 }, 23243 beforeUpdate: wi, 23244 update: function(e, t, n) { 23245 var i = this; 23246 return i.beforeUpdate(), i.maxWidth = e, i.maxHeight = t, i.margins = n, i.beforeSetDimensions(), 23247 i.setDimensions(), i.afterSetDimensions(), i.beforeBuildLabels(), i.buildLabels(), 23248 i.afterBuildLabels(), i.beforeFit(), i.fit(), i.afterFit(), i.afterUpdate(), i.minSize; 23249 }, 23250 afterUpdate: wi, 23251 beforeSetDimensions: wi, 23252 setDimensions: function() { 23253 var e = this; 23254 e.isHorizontal() ? (e.width = e.maxWidth, e.left = 0, e.right = e.width) : (e.height = e.maxHeight, 23255 e.top = 0, e.bottom = e.height), e.paddingLeft = 0, e.paddingTop = 0, e.paddingRight = 0, 23256 e.paddingBottom = 0, e.minSize = { 23257 width: 0, 23258 height: 0 23259 }; 23260 }, 23261 afterSetDimensions: wi,
23262 beforeBuildLabels: wi, 23263 buildLabels: function() { 23264 var e = this, t = e.options.labels || {}, n = $.callback(t.generateLabels, [ e.chart ], e) || []; 23265 t.filter && (n = n.filter((function(n) { 23266 return t.filter(n, e.chart.data); 23267 }))), e.options.reverse && n.reverse(), e.legendItems = n; 23268 }, 23269 afterBuildLabels: wi, 23270 beforeFit: wi, 23271 fit: function() { 23272 var e = this, t = e.options, n = t.labels, i = t.display, r = e.ctx, o = $.options._parseFont(n), s = o.size, a = e.legendHitBoxes = [], l = e.minSize, c = e.isHorizontal(); 23273 if (c ? (l.width = e.maxWidth, l.height = i ? 10 : 0) : (l.width = i ? 10 : 0, l.height = e.maxHeight), 23274 i) { 23275 if (r.font = o.string, c) { 23276 var u = e.lineWidths = [ 0 ], d = 0; 23277 r.textAlign = "left", r.textBaseline = "middle", $.each(e.legendItems, (function(e, t) { 23278 var i = Si(n, s) + s / 2 + r.measureText(e.text).width; 23279 (0 === t || u[u.length - 1] + i + 2 * n.padding > l.width) && (d += s + n.padding, 23280 u[u.length - (t > 0 ? 0 : 1)] = 0), a[t] = { 23281 left: 0, 23282 top: 0, 23283 width: i, 23284 height: s 23285 }, u[u.length - 1] += i + n.padding; 23286 })), l.height += d; 23287 } else { 23288 var h = n.padding, f = e.columnWidths = [], p = e.columnHeights = [], m = n.padding, g = 0, v = 0; 23289 $.each(e.legendItems, (function(e, t) { 23290 var i = Si(n, s) + s / 2 + r.measureText(e.text).width; 23291 t > 0 && v + s + 2 * h > l.height && (m += g + n.padding, f.push(g), p.push(v), 23292 g = 0, v = 0), g = Math.max(g, i), v += s + h, a[t] = { 23293 left: 0, 23294 top: 0, 23295 width: i, 23296 height: s 23297 }; 23298 })), m += g, f.push(g), p.push(v), l.width += m; 23299 } 23300 e.width = l.width, e.height = l.height; 23301 } else e.width = l.width = e.height = l.height = 0; 23302 }, 23303 afterFit: wi, 23304 isHorizontal: function() { 23305 return "top" === this.options.position || "bottom" === this.options.position; 23306 }, 23307 draw: function() { 23308 var e = this, t = e.options, n = t.labels, i = j.global, r = i.defaultColor, o = i.elements.line, s = e.height, a = e.columnHeights, l = e.width, c = e.lineWidths; 23309 if (t.display) { 23310 var u, d = xi(t.rtl, e.left, e.minSize.width), h = e.ctx, f = _i(n.fontColor, i.defaultFontColor), p
23310= $.options._parseFont(n), m = p.size; 23311 h.textAlign = d.textAlign("left"), h.textBaseline = "middle", h.lineWidth = .5, 23312 h.strokeStyle = f, h.fillStyle = f, h.font = p.string; 23313 var g = Si(n, m), v = e.legendHitBoxes, b = function(e, i) { 23314 switch (t.align) { 23315 case "start": 23316 return n.padding; 23317 23318 case "end": 23319 return e - i; 23320 23321 default: 23322 return (e - i + n.padding) / 2; 23323 } 23324 }, y = e.isHorizontal(); 23325 u = y ? { 23326 x: e.left + b(l, c[0]), 23327 y: e.top + n.padding, 23328 line: 0 23329 } : { 23330 x: e.left + n.padding, 23331 y: e.top + b(s, a[0]), 23332 line: 0 23333 }, $.rtl.overrideTextDirection(e.ctx, t.textDirection); 23334 var x = m + n.padding; 23335 $.each(e.legendItems, (function(t, i) { 23336 var f = h.measureText(t.text).width, p = g + m / 2 + f, w = u.x, _ = u.y; 23337 d.setWidth(e.minSize.width), y ? i > 0 && w + p + n.padding > e.left + e.minSize.width && (_ = u.y += x, 23338 u.line++, w = u.x = e.left + b(l, c[u.line])) : i > 0 && _ + x > e.top + e.minSize.height && (w = u.x = w + e.columnWidths[u.line] + n.padding, 23339 u.line++, _ = u.y = e.top + b(s, a[u.line])); 23340 var S = d.x(w); 23341 !function(e, t, i) { 23342 if (!(isNaN(g) || g <= 0)) { 23343 h.save(); 23344 var s = _i(i.lineWidth, o.borderWidth); 23345 if (h.fillStyle = _i(i.fillStyle, r), h.lineCap = _i(i.lineCap, o.borderCapStyle), 23346 h.lineDashOffset = _i(i.lineDashOffset, o.borderDashOffset), h.lineJoin = _i(i.lineJoin, o.borderJoinStyle), 23347 h.lineWidth = s, h.strokeStyle = _i(i.strokeStyle, r), h.setLineDash && h.setLineDash(_i(i.lineDash, o.borderDash)), 23348 n && n.usePointStyle) { 23349 var a = g * Math.SQRT2 / 2, l = d.xPlus(e, g / 2), c = t + m / 2; 23350 $.canvas.drawPoint(h, i.pointStyle, a, l, c, i.rotation); 23351 } else h.fillRect(d.leftForLtr(e, g), t, g, m), 0 !== s && h.strokeRect(d.leftForLtr(e, g), t, g, m); 23352 h.restore(); 23353 } 23354 }(S, _, t), v[i].left = d.leftForLtr(S, v[i].width), v[i].top = _, function(e, t, n, i) { 23355 var r = m / 2, o = d.xPlus(e, g + r), s = t + r; 23356 h.fillText(n.text, o, s), n.hidden && (h.beginPath(), h.lineWidth = 2, h.moveTo(o, s), 23357 h.lineTo(d.xPlus(o, i), s), h.stroke()); 23358 }(S, _, t, f), y ? u.x += p + n.padding : u.y += x; 23359 })), $.rtl.restoreTextDirection(e.ctx, t.textDirection); 23360 } 23361 }, 23362 _getLegendItemAt: function(e, t) { 23363 var n, i, r, o = this; 23364 if (e >= o.left && e <= o.right && t >= o.top && t <= o.bottom) for (r = o.legendHitBoxes, 23365 n = 0; n < r.length; ++n) if (e >= (i = r[n]).left && e <= i.left + i.width && t >= i.top && t <= i.top + i.height) return o.legendItems[n]; 23366 return null; 23367 }, 23368 handleEvent: function(e) { 23369 var t, n = this, i = n.options, r = "mouseup" === e.type ? "click" : e.type; 23370 if ("mousemove" === r) { 23371 if (!i.onHover && !i.onLeave) return; 23372 } else { 23373 if ("click" !== r) return; 23374 if (!i.onClick) return; 23375 } 23376 t = n._getLegendItemAt(e.x, e.y), "click" === r ? t && i.onClick && i.onClick.call(n, e.native, t) : (i.onLeave && t !== n._hoveredItem && (n._hoveredItem && i.onLeave.call(n, e.native, n._hoveredItem), 23377 n._hoveredItem = t), i.onHover && t && i.onHover.call(n, e.native, t)); 23378 } 23379 }); 23380 function Ci(e, t) { 23381 var n = new Ei({ 23382 ctx: e.ctx, 23383 options: t, 23384 chart: e 23385 }); 23386 mt.configure(e, n, t), mt.addBox(e, n), e.legend = n; 23387 } 23388 var Ti = { 23389 id: "legend", 23390 _element: Ei, 23391 beforeInit: function(e) { 23392 var t = e.options.legend; 23393 t && Ci(e, t); 23394 }, 23395 beforeUpdate: function(e) { 23396 var t = e.options.legend, n = e.legend; 23397 t ? ($.mergeIf(t, j.global.legend), n ? (mt.configure(e, n, t), n.options = t)
23397: Ci(e, t)) : n && (mt.removeBox(e, n), 23398 delete e.legend); 23399 }, 23400 afterEvent: function(e, t) { 23401 var n = e.legend; 23402 n && n.handleEvent(t); 23403 } 23404 }, ki = $.noop; 23405 j._set("global", { 23406 title: { 23407 display: !1, 23408 fontStyle: "bold", 23409 fullWidth: !0, 23410 padding: 10, 23411 position: "top", 23412 text: "", 23413 weight: 2e3 23414 } 23415 }); 23416 var Mi = X.extend({ 23417 initialize: function(e) { 23418 $.extend(this, e), this.legendHitBoxes = []; 23419 }, 23420 beforeUpdate: ki, 23421 update: function(e, t, n) { 23422 var i = this; 23423 return i.beforeUpdate(), i.maxWidth = e, i.maxHeight = t, i.margins = n, i.beforeSetDimensions(), 23424 i.setDimensions(), i.afterSetDimensions(), i.beforeBuildLabels(), i.buildLabels(), 23425 i.afterBuildLabels(), i.beforeFit(), i.fit(), i.afterFit(), i.afterUpdate(), i.minSize; 23426 }, 23427 afterUpdate: ki, 23428 beforeSetDimensions: ki, 23429 setDimensions: function() { 23430 var e = this; 23431 e.isHorizontal() ? (e.width = e.maxWidth, e.left = 0, e.right = e.width) : (e.height = e.maxHeight, 23432 e.top = 0, e.bottom = e.height), e.paddingLeft = 0, e.paddingTop = 0, e.paddingRight = 0, 23433 e.paddingBottom = 0, e.minSize = { 23434 width: 0, 23435 height: 0 23436 }; 23437 }, 23438 afterSetDimensions: ki, 23439 beforeBuildLabels: ki, 23440 buildLabels: ki, 23441 afterBuildLabels: ki, 23442 beforeFit: ki, 23443 fit: function() { 23444 var e, t = this, n = t.options, i = t.minSize = {}, r = t.isHorizontal(); 23445 n.display ? (e = ($.isArray(n.text) ? n.text.length : 1) * $.options._parseFont(n).lineHeight + 2 * n.padding, 23446 t.width = i.width = r ? t.maxWidth : e, t.height = i.height = r ? e : t.maxHeight) : t.width = i.width = t.height = i.height = 0; 23447 }, 23448 afterFit: ki, 23449 isHorizontal: function() { 23450 var e = this.options.position; 23451 return "top" === e || "bottom" === e; 23452 }, 23453 draw: function() { 23454 var e = this, t = e.ctx, n = e.options; 23455 if (n.display) { 23456 var i, r, o, s = $.options._parseFont(n), a = s.lineHeight, l = a / 2 + n.padding, c = 0, u = e.top, d = e.left, h = e.bottom, f = e.right; 23457 t.fillStyle = $.valueOrDefault(n.fontColor, j.global.defaultFontColor), t.font = s.string, 23458 e.isHorizontal() ? (r = d + (f - d) / 2, o = u + l, i = f - d) : (r = "left" === n.position ? d + l : f - l, 23459 o = u + (h - u) / 2, i = h - u, c = Math.PI * ("left" === n.position ? -.5 : .5)), 23460 t.save(), t.translate(r, o), t.rotate(c), t.textAlign = "center", t.textBaseline = "middle"; 23461 var p = n.text; 23462 if ($.isArray(p)) for (var m = 0, g = 0; g < p.length; ++g) t.fillText(p[g], 0, m, i), 23463 m += a; else t.fillText(p, 0, 0, i); 23464 t.restore(); 23465 } 23466 } 23467 }); 23468 function Ai(e, t) { 23469 var n = new Mi({ 23470 ctx: e.ctx, 23471 options: t, 23472 chart: e 23473 }); 23474 mt.configure(e, n, t), mt.addBox(e, n), e.titleBlock = n; 23475 } 23476 var Oi = {}, Pi = yi, Ii = Ti, Li = { 23477 id: "title", 23478 _element: Mi, 23479 beforeInit: function(e) { 23480 var t = e.options.title; 23481 t && Ai(e, t); 23482 }, 23483 beforeUpdate: function(e) { 23484 var t = e.options.title, n = e.titleBlock; 23485 t ? ($.mergeIf(t, j.global.title), n ? (mt.configure(e, n, t), n.options = t)
23485: Ai(e, t)) : n && (mt.removeBox(e, n), 23486 delete e.titleBlock); 23487 } 23488 }; 23489 for (var Di in Oi.filler = Pi, Oi.legend = Ii, Oi.title = Li, Zt.helpers = $, function() { 23490 function e(e, t, n) { 23491 var i; 23492 return "string" == typeof e ? (i = parseInt(e, 10), -1 !== e.indexOf("%") && (i = i / 100 * t.parentNode[n])) : i = e, 23493 i; 23494 } 23495 function t(e) { 23496 return null != e && "none" !== e; 23497 } 23498 function n(n, i, r) { 23499 var o = document.defaultView, s = $._getParentNode(n), a = o.getComputedStyle(n)[i], l = o.getComputedStyle(s)[i], c = t(a), u = t(l), d = Number.POSITIVE_INFINITY; 23500 return c || u ? Math.min(c ? e(a, n, r) : d, u ? e(l, s, r) : d) : "none"; 23501 } 23502 $.where = function(e, t) { 23503 if ($.isArray(e) && Array.prototype.filter) return e.filter(t); 23504 var n = []; 23505 return $.each(e, (function(e) { 23506 t(e) && n.push(e); 23507 })), n; 23508 }, $.findIndex = Array.prototype.findIndex ? function(e, t, n) { 23509 return e.findIndex(t, n); 23510 } : function(e, t, n) { 23511 n = void 0 === n ? e : n; 23512 for (var i = 0, r = e.length; i < r; ++i) if (t.call(n, e[i], i, e)) return i; 23513 return -1; 23514 }, $.findNextWhere = function(e, t, n) { 23515 $.isNullOrUndef(n) && (n = -1); 23516 for (var i = n + 1; i < e.length; i++) { 23517 var r = e[i]; 23518 if (t(r)) return r; 23519 } 23520 }, $.findPreviousWhere = function(e, t, n) { 23521 $.isNullOrUndef(n) && (n = e.length); 23522 for (var i = n - 1; i >= 0; i--) { 23523 var r = e[i]; 23524 if (t(r)) return r; 23525 } 23526 }, $.isNumber = function(e) { 23527 return !isNaN(parseFloat(e)) && isFinite(e); 23528 }, $.almostEquals = function(e, t, n) { 23529 return Math.abs(e - t) < n; 23530 }, $.almostWhole = function(e, t) { 23531 var n = Math.round(e); 23532 return n - t <= e && n + t >= e; 23533 }, $.max = function(e) { 23534 return e.reduce((function(e, t) { 23535 return isNaN(t) ? e : Math.max(e, t); 23536 }), Number.NEGATIVE_INFINITY); 23537 }, $.min = function(e) { 23538 return e.reduce((function(e, t) { 23539 return isNaN(t) ? e : Math.min(e, t); 23540 }), Number.POSITIVE_INFINITY); 23541 }, $.sign = Math.sign ? function(e) { 23542 return Math.sign(e); 23543 } : function(e) { 23544 return 0 == (e = +e) || isNaN(e) ? e : e > 0 ? 1 : -1; 23545 }, $.toRadians = function(e) { 23546 return e * (Math.PI / 180); 23547 }, $.toDegrees = function(e) { 23548 return e * (180 / Math.PI); 23549 }, $._decimalPlaces = function(e) { 23550 if ($.isFinite(e)) { 23551 for (var t = 1, n = 0; Math.round(e * t) / t !== e; ) t *= 10, n++; 23552 return n; 23553 } 23554 }, $.getAngleFromPoint = function(e, t) { 23555 var n = t.x - e.x, i = t.y - e.y, r = Math.sqrt(n * n + i * i), o = Math.atan2(i, n); 23556 return o < -.5 * Math.PI && (o += 2 * Math.PI), { 23557 angle: o, 23558 distance: r 23559 }; 23560 }, $.distanceBetweenPoints = function(e, t) { 23561 return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)); 23562 }, $.aliasPixel = function(e) { 23563 return e % 2 == 0 ? 0 : .5; 23564 }, $._alignPixel = function(e, t, n) { 23565 var i = e.currentDevicePixelRatio, r = n / 2; 23566 return Math.round((t - r) * i) / i + r; 23567 }, $.splineCurve = function(e, t, n, i) { 23568 var r = e.skip ? t : e, o = t, s = n.skip ? t : n, a = Math.sqrt(Math.pow(o.x - r.x, 2) + Math.pow(o.y - r.y, 2)), l = Math.sqrt(Math.pow(s.x - o.x, 2) + Math.pow(s.y - o.y, 2)), c = a / (a + l), u = l / (a + l), d = i * (c = isNaN(c) ? 0 : c), h = i * (u = isNaN(u) ? 0 : u); 23569 return { 23570 previous: { 23571 x: o.x - d * (s.x - r.x), 23572 y: o.y - d * (s.y - r.y) 23573 }, 23574 next: { 23575 x: o.x + h * (s.x - r.x), 23576 y: o.y + h * (s.y - r.y) 23577 } 23578 }; 23579 }, $.EPSILON = Number.EPSILON || 1e-14, $.splineCurveMonotone = function(e) { 23580 var t, n, i, r, o, s, a, l, c, u = (e || []).map((function(e) { 23581 return { 23582 model: e._model, 23583 deltaK: 0, 23584 mK: 0 23585 }; 23586 })), d = u.length; 23587 for (t = 0; t < d; ++t) if (!(i = u[t]).model.skip) { 23588 if (n = t > 0 ? u[t - 1] : null, (r = t < d - 1 ? u[t + 1] : null) && !r.model.skip) { 23589 var h = r.model.x - i.model.x; 23590 i.deltaK = 0 !== h ? (r.model.y - i.model.y) / h : 0; 23591 } 23592 !n || n.model.skip ? i.mK = i.deltaK : !r || r.model.skip ? i.mK = n.deltaK : this.sign(n.deltaK) !== this.sign(i.deltaK) ? i.mK = 0 : i.mK = (n.deltaK + i.deltaK) / 2; 23593 } 23594 for (t = 0; t < d - 1; ++t) i = u[t], r = u[t + 1], i.model.skip || r.model.skip || ($.almostEquals(i.deltaK, 0, this.EPSILON) ? i.mK = r.mK = 0 : (o = i.mK / i.deltaK, 23595 s = r.mK / i.deltaK, (l = Math.pow(o, 2) + Math.pow(s, 2)) <= 9 || (a = 3 / Math.sqrt(l), 23596 i.mK = o * a * i.deltaK, r.mK = s * a * i.deltaK))); 23597 for (t = 0; t < d; ++t) (i = u[t]).model.skip || (n = t > 0 ? u[t - 1] : null, r = t < d - 1 ? u[t + 1] : null, 23598 n && !n.model.skip && (c = (i.model.x - n.model.x) / 3, i.model.controlPointPreviousX = i.model.x - c, 23599 i.model.controlPointPreviousY = i.model.y - c * i.mK), r && !r.model.skip && (c = (r.model.x - i.model.x) / 3, 23600 i.model.controlPointNextX = i.model.x + c, i.model.controlPointNextY = i.model.y + c * i.mK)); 23601 }, $.nextItem = function(e, t, n) { 23602 return n ? t >= e.length - 1 ? e[0] : e[t + 1] : t >= e.length - 1 ? e[e.length - 1] : e[t + 1]; 23603 }, $.previousItem = function(e, t, n) { 23604 return n ? t <= 0 ? e[e.length - 1] : e[t - 1] : t <= 0 ? e[0] : e[t - 1]; 23605 }, $.niceNum = function(e, t) { 23606 var n = Math.floor($.log10(e)), i = e / Math.pow(10, n); 23607 return (t ? i < 1.5 ? 1 : i < 3 ? 2 : i < 7 ? 5 : 10 : i <= 1 ? 1 : i <= 2 ? 2 : i <= 5 ? 5 : 10) * Math.pow(10, n); 23608 }, $.requestAnimFrame = "undefined" == typeof window ? function(e) { 23609 e(); 23610 } : window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) { 23611 return window.setTimeout(e, 1e3 / 60); 23612 }, $.getRelativePosition = function(e, t) { 23613 var n, i, r = e.originalEvent || e, o = e.target || e.srcElement, s = o.getBoundingClientRect(), a = r.touches; 23614 a && a.length > 0 ? (n = a[0].clientX, i = a[0].clientY) : (n = r.clientX, i = r.clientY); 23615 var l = parseFloat($.getStyle(o, "padding-left")), c = parseFloat($.getStyle(o, "padding-top")), u = parseFloat($.getStyle(o, "padding-right")), d = parseFloat($.getStyle(o, "padding-bottom")), h = s.right - s.left - l - u, f = s.bottom - s.top - c - d; 23616 return { 23617 x: n = Math.round((n - s.left - l) / h * o.width / t.currentDevicePixelRatio), 23618 y: i = Math.round((i - s.top - c) / f * o.height / t.currentDevicePixelRatio) 23619 }; 23620 }, $.getConstraintWidth = function(e) { 23621 return n(e, "max-width", "clientWidth"); 23622 }, $.getConstraintHeight = function(e) { 23623 return n(e, "max-height", "clientHeight"); 23624 }, $._calculatePadding = function(e, t, n) { 23625 return (t = $.getStyle(e, t)).indexOf("%") > -1 ? n * parseInt(t, 10) / 100 : parseInt(t, 10); 23626 }, $._getParentNode = function(e) { 23627 var t = e.parentNode; 23628 return t && "[object ShadowRoot]" === t.toString() && (t = t.host), t; 23629 }, $.getMaximumWidth = function(e) { 23630 var t = $._getParentNode(e); 23631 if (!t) return e.clientWidth; 23632 var n = t.clientWidth, i = n - $._calculatePadding(t, "padding-left", n) - $._calculatePadding(t, "padding-right", n), r = $.getConstraintWidth(e); 23633 return isNaN(r) ? i : Math.min(i, r); 23634 }, $.getMaximumHeight = function(e) { 23635 var t = $._getParentNode(e); 23636 if (!t) return e.clientHeight; 23637 var n = t.clientHeight, i = n - $._calculatePadding(t, "padding-top", n) - $._calculatePadding(t, "padding-bottom", n), r = $.getConstraintHeight(e); 23638 return isNaN(r) ? i : Math.min(i, r); 23639 }, $.getStyle = function(e, t) { 23640 return e.currentStyle ? e.currentStyle[t] : document.defaultView.getComputedStyle(e, null).getPropertyValue(t); 23641 }, $.retinaScale = function(e, t) { 23642 var n = e.currentDevicePixelRatio = t || "undefined" != typeof window && window.devicePixelRatio || 1; 23643 if (1 !== n) { 23644 var i = e.canvas, r = e.height, o = e.width; 23645 i.height = r * n, i.width = o * n, e.ctx.scale(n, n), i.style.height || i.style.width || (i.style.height = r + "px", 23646 i.style.width = o + "px"); 23647 } 23648 }, $.fontString = function(e, t, n) { 23649 return t + " " + e + "px " + n; 23650 }, $.longestText = function(e, t, n, i) { 23651 var r = (i = i || {}).data = i.data || {}, o = i.garbageCollect = i.garbageCollect || []; 23652 i.font !== t && (r = i.data = {}, o = i.garbageCollect = [], i.font = t), e.font = t; 23653 var s, a, l, c, u, d = 0, h = n.length; 23654 for (s = 0; s < h; s++) if (null != (c = n[s]) && !0 !== $.isArray(c)) d = $.measureText(e, r, o, d, c); else if ($.isArray(c)) for (a = 0, 23655 l = c.length; a < l; a++) null == (u = c[a]) || $.isArray(u) || (d = $.measureText(e, r, o, d, u)); 23656 var f = o.length / 2; 23657 if (f > n.length) { 23658 for (s = 0; s < f; s++) delete r[o[s]]; 23659 o.splice(0, f); 23660 } 23661 return d; 23662 }, $.measureText = function(e, t, n, i, r) { 23663 var o = t[r];
23664 return o || (o = t[r] = e.measureText(r).width, n.push(r)), o > i && (i = o), i; 23665 }, $.numberOfLabelLines = function(e) { 23666 var t = 1; 23667 return $.each(e, (function(e) { 23668 $.isArray(e) && e.length > t && (t = e.length); 23669 })), t; 23670 }, $.color = w ? function(e) { 23671 return e instanceof CanvasGradient && (e = j.global.defaultColor), w(e); 23672 } : function(e) { 23673 return console.error("Color.js not found!"), e; 23674 }, $.getHoverColor = function(e) { 23675 return e instanceof CanvasPattern || e instanceof CanvasGradient ? e : $.color(e).saturate(.5).darken(.1).rgbString(); 23676 }; 23677 }(), Zt._adapters = en, Zt.Animation = Z, Zt.animationService = J, Zt.controllers = Je, 23678 Zt.DatasetController = ie, Zt.defaults = j, Zt.Element = X, Zt.elements = _e, Zt.Interaction = ot, 23679 Zt.layouts = mt, Zt.platform = At, Zt.plugins = Ot, Zt.Scale = gn, Zt.scaleService = Pt, 23680 Zt.Ticks = tn, Zt.Tooltip = $t, Zt.helpers.each(ci, (function(e, t) { 23681 Zt.scaleService.registerScaleType(t, e, e._defaults); 23682 })), Oi) Oi.hasOwnProperty(Di) && Zt.plugins.register(Oi[Di]); 23683 Zt.platform.initialize(); 23684 var Ni = Zt; 23685 return "undefined" != typeof window && (window.Chart = Zt), Zt.Chart = Zt, Zt.Legend = Oi.legend._element, 23686 Zt.Title = Oi.title._element, Zt.pluginService = Zt.plugins, Zt.PluginBase = Zt.Element.extend({}), 23687 Zt.canvasHelpers = Zt.helpers.canvas, Zt.layoutService = Zt.layouts, Zt.LinearScaleBase = _n, 23688 Zt.helpers.each([ "Bar", "Bubble", "Doughnut", "Line", "PolarArea", "Radar", "Scatter" ], (function(e) { 23689 Zt[e] = function(t, n) { 23690 return new Zt(t, Zt.helpers.merge(n || {}, { 23691 type: e.charAt(0).toLowerCase() + e.slice(1) 23692 })); 23693 }; 23694 })), Ni; 23695 }(function() { 23696 try { 23697 return n(604); 23698 } catch (e) {} 23699 }()); 23700 }, , , , , , , , , , , , , , , , , function(e, t, n) { 23701 e.exports = n(610); 23702 }, function(e, t) { 23703 !function() { 23704 "use strict"; 23705 if ("object" == typeof window) if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) "isIntersecting" in window.IntersectionObserverEntry.prototype || Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", { 23706 get: function() { 23707 return this.intersectionRatio > 0; 23708 } 23709 }); else { 23710 var e = window.document, t = []; 23711 i.prototype.THROTTLE_TIMEOUT = 100, i.prototype.POLL_INTERVAL = null, i.prototype.USE_MUTATION_OBSERVER = !0, 23712 i.prototype.observe = function(e) { 23713 if (!this._observationTargets.some((function(t) { 23714 return t.element == e; 23715 }))) { 23716 if (!e || 1 != e.nodeType) throw new Error("target must be an Element"); 23717 this._registerInstance(), this._observationTargets.push({ 23718 element: e, 23719 entry: null 23720 }), this._monitorIntersections(), this._checkForIntersections(); 23721 } 23722 }, i.prototype.unobserve = function(e) { 23723 this._observationTargets = this._observationTargets.filter((function(t) { 23724 return t.element != e; 23725 })), this._observationTargets.length || (this._unmonitorIntersections(), this._unregisterInstance()); 23726 }, i.prototype.disconnect = function() { 23727 this._observationTargets = [], this._unmonitorIntersections(), this._unregisterInstance(); 23728 }, i.prototype.takeRecords = function() { 23729 var e = this._queuedEntries.slice(); 23730 return this._queuedEntries = [], e; 23731 }, i.prototype._initThresholds = function(e) { 23732 var t = e || [ 0 ]; 23733 return Array.isArray(t) || (t = [ t ]), t.sort().filter((function(e, t, n) { 23734 if ("number" != typeof e || isNaN(e) || e < 0 || e > 1) throw new Error("threshold must be a number between 0 and 1 inclusively"); 23735 return e !== n[t - 1]; 23736 })); 23737 }, i.prototype._parseRootMargin = function(e) { 23738 var t = (e || "0px").split(/\s+/).map((function(e) { 23739 var t = /^(-?\d*\.?\d+)(px|%)$/.exec(e); 23740 if (!t) throw new Error("rootMargin must be specified in pixels or percent"); 23741 return { 23742 value: parseFloat(t[1]), 23743 unit: t[2] 23744 }; 23745 })); 23746 return t[1] = t[1] || t[0], t[2] = t[2] || t[0], t[3] = t[3] || t[1], t;
23747 }, i.prototype._monitorIntersections = function() { 23748 this._monitoringIntersections || (this._monitoringIntersections = !0, this.POLL_INTERVAL ? this._monitoringInterval = setInterval(this._checkForIntersections, this.POLL_INTERVAL) : (r(window, "resize", this._checkForIntersections, !0), 23749 r(e, "scroll", this._checkForIntersections, !0), this.USE_MUTATION_OBSERVER && "MutationObserver" in window && (this._domObserver = new MutationObserver(this._checkForIntersections), 23750 this._domObserver.observe(e, { 23751 attributes: !0, 23752 childList: !0, 23753 characterData: !0, 23754 subtree: !0 23755 })))); 23756 }, i.prototype._unmonitorIntersections = function() { 23757 this._monitoringIntersections && (this._monitoringIntersections = !1, clearInterval(this._monitoringInterval), 23758 this._monitoringInterval = null, o(window, "resize", this._checkForIntersections, !0), 23759 o(e, "scroll", this._checkForIntersections, !0), this._domObserver && (this._domObserver.disconnect(), 23760 this._domObserver = null)); 23761 }, i.prototype._checkForIntersections = function() { 23762 var e = this._rootIsInDom(), t = e ? this._getRootRect() : { 23763 top: 0, 23764 bottom: 0, 23765 left: 0, 23766 right: 0, 23767 width: 0, 23768 height: 0 23769 }; 23770 this._observationTargets.forEach((function(i) { 23771 var r = i.element, o = s(r), a = this._rootContainsTarget(r), l = i.entry, c = e && a && this._computeTargetAndRootIntersection(r, t), u = i.entry = new n({ 23772 time: window.performance && performance.now && performance.now(), 23773 target: r, 23774 boundingClientRect: o, 23775 rootBounds: t, 23776 intersectionRect: c 23777 }); 23778 l ? e && a ? this._hasCrossedThreshold(l, u) && this._queuedEntries.push(u) : l && l.isIntersecting && this._queuedEntries.push(u) : this._queuedEntries.push(u); 23779 }), this), this._queuedEntries.length && this._callback(this.takeRecords(), this); 23780 }, i.prototype._computeTargetAndRootIntersection = function(t, n) { 23781 if ("none" != window.getComputedStyle(t).display) { 23782 for (var i, r, o, a, c, u, d, h, f = s(t), p = l(t), m = !1; !m; ) { 23783 var g = null, v = 1 == p.nodeType ? window.getComputedStyle(p) : {}; 23784 if ("none" == v.display) return; 23785 if (p == this.root || p == e ? (m = !0, g = n) : p != e.body && p != e.documentElement && "visible" != v.overflow && (g = s(p)), 23786 g && (i = g, r = f, o = void 0, a = void 0, c = void 0, u = void 0, d = void 0, 23787 h = void 0, o = Math.max(i.top, r.top), a = Math.min(i.bottom, r.bottom), c = Math.max(i.left, r.left), 23788 u = Math.min(i.right, r.right), h = a - o, !(f = (d = u - c) >= 0 && h >= 0 && { 23789 top: o, 23790 bottom: a, 23791 left: c, 23792 right: u, 23793 width: d, 23794 height: h 23795 }))) break; 23796 p = l(p); 23797 } 23798 return f; 23799 } 23800 }, i.prototype._getRootRect = function() { 23801 var t; 23802 if (this.root) t = s(this.root); else { 23803 var n = e.documentElement, i = e.body; 23804 t = { 23805 top: 0, 23806 left: 0, 23807 right: n.clientWidth || i.clientWidth, 23808 width: n.clientWidth || i.clientWidth, 23809 bottom: n.clientHeight || i.clientHeight, 23810 height: n.clientHeight || i.clientHeight 23811 }; 23812 } 23813 return this._expandRectByRootMargin(t); 23814 }, i.prototype._expandRectByRootMargin = function(e) { 23815 var t = this._rootMarginValues.map((function(t, n) { 23816 return "px" == t.unit ? t.value : t.value * (n % 2 ? e.width : e.height) / 100; 23817 })), n = { 23818 top: e.top - t[0], 23819 right: e.right + t[1], 23820 bottom: e.bottom + t[2], 23821 left: e.left - t[3] 23822 }; 23823 return n.width = n.right - n.left, n.height = n.bottom - n.top, n; 23824 }, i.prototype._hasCrossedThreshold = function(e, t) { 23825 var n = e && e.isIntersecting ? e.intersectionRatio || 0 : -1, i = t.isIntersecting ? t.intersectionRatio || 0 : -1; 23826 if (n !== i) for (var r = 0; r < this.thresholds.length; r++) { 23827 var o = this.thresholds[r]; 23828 if (o == n || o == i || o < n != o < i) return !0; 23829 } 23830 }, i.prototype._rootIsInDom = function() { 23831 return !this.root || a(e, this.root); 23832 }, i.prototype._rootContainsTarget = function(t) { 23833 return a(this.root || e, t); 23834 }, i.prototype._registerInstance = function() { 23835 t.indexOf(this) < 0 && t.push(this); 23836 }, i.prototype._unregisterInstance = function() { 23837 var e = t.indexOf(this); 23838 -1 != e && t.splice(e, 1); 23839 }, window.IntersectionObserver = i, window.IntersectionObserverEntry = n; 23840 } 23841 function n(e) { 23842 this.time = e.time, this.target = e.target, this.rootBounds = e.rootBounds, this.boundingClientRect = e.boun
23842dingClientRect, 23843 this.intersectionRect = e.intersectionRect || { 23844 top: 0, 23845 bottom: 0, 23846 left: 0, 23847 right: 0, 23848 width: 0, 23849 height: 0 23850 }, this.isIntersecting = !!e.intersectionRect; 23851 var t = this.boundingClientRect, n = t.width * t.height, i = this.intersectionRect, r = i.width * i.height; 23852 this.intersectionRatio = n ? Number((r / n).toFixed(4)) : this.isIntersecting ? 1 : 0; 23853 } 23854 function i(e, t) { 23855 var n, i, r, o = t || {}; 23856 if ("function" != typeof e) throw new Error("callback must be a function"); 23857 if (o.root && 1 != o.root.nodeType) throw new Error("root must be an Element"); 23858 this._checkForIntersections = (n = this._checkForIntersections.bind(this), i = this.THROTTLE_TIMEOUT, 23859 r = null, function() { 23860 r || (r = setTimeout((function() { 23861 n(), r = null; 23862 }), i)); 23863 }), this._callback = e, this._observationTargets = [], this._queuedEntries = [], 23864 this._rootMarginValues = this._parseRootMargin(o.rootMargin), this.thresholds = this._initThresholds(o.threshold), 23865 this.root = o.root || null, this.rootMargin = this._rootMarginValues.map((function(e) { 23866 return e.value + e.unit; 23867 })).join(" "); 23868 } 23869 function r(e, t, n, i) { 23870 "function" == typeof e.addEventListener ? e.addEventListener(t, n, i || !1) : "function" == typeof e.attachEvent && e.attachEvent("on" + t, n); 23871 } 23872 function o(e, t, n, i) { 23873 "function" == typeof e.removeEventListener ? e.removeEventListener(t, n, i || !1) : "function" == typeof e.detatchEvent && e.detatchEvent("on" + t, n); 23874 } 23875 function s(e) { 23876 var t; 23877 try { 23878 t = e.getBoundingClientRect(); 23879 } catch (e) {} 23880 return t ? (t.width && t.height || (t = { 23881 top: t.top, 23882 right: t.right, 23883 bottom: t.bottom, 23884 left: t.left, 23885 width: t.right - t.left, 23886 height: t.bottom - t.top 23887 }), t) : { 23888 top: 0, 23889 bottom: 0, 23890 left: 0, 23891 right: 0, 23892 width: 0, 23893 height: 0 23894 }; 23895 } 23896 function a(e, t) { 23897 for (var n = t; n; ) { 23898 if (n == e) return !0; 23899 n = l(n); 23900 } 23901 return !1; 23902 } 23903 function l(e) { 23904 var t = e.parentNode; 23905 return t && 11 == t.nodeType && t.host ? t.host : t && t.assignedSlot ? t.assignedSlot.parentNode : t; 23906 } 23907 }(); 23908 }, function(e, t, n) { 23909 var i; 23910 window.matchMedia || (window.matchMedia = function() { 23911 "use strict"; 23912 var e = window.styleMedia || window.media; 23913 if (!e) { 23914 var t, n = document.createElement("style"), i = document.getElementsByTagName("script")[0]; 23915 n.type = "text/css", n.id = "matchmediajs-test", i.parentNode.insertBefore(n, i), 23916 t = "getComputedStyle" in window && window.getComputedStyle(n, null) || n.currentStyle, 23917 e = { 23918 matchMedium: function(e) { 23919 var i = "@media " + e + "{ #matchmediajs-test { width: 1px; } }"; 23920 return n.styleSheet ? n.styleSheet.cssText = i : n.textContent = i, "1px" === t.width; 23921 } 23922 }; 23923 } 23924 return function(t) { 23925 return { 23926 matches: e.matchMedium(t || "all"), 23927 media: t || "all" 23928 }; 23929 }; 23930 }()), function(r, o, s) { 23931 "use strict"; 23932 function a(o) { 23933 "object" == typeof e.exports ? e.exports = o : void 0 === (i = function() { 23934 return o; 23935 }.call(t, n, t, e)) || (e.exports = i), "object" == typeof r && (r.picturefill = o); 23936 } 23937 if (r.HTMLPictureElement) a((function() {})); else { 23938 o.createElement("picture"); 23939 var l, c, u, d = r.picturefill || {}, h = /\s+\+?\d+(e\d+)?w/; 23940 d.ns = "picturefill", d.srcsetSupported = "srcset" in s, d.sizesSupported = "sizes" in s, 23941 d.curSrcSupported = "currentSrc" in s, d.trim = function(e) { 23942 return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, ""); 23943 }, d.makeUrl = (l = o.createElement("a"), function(e) { 23944 return l.href = e, l.href; 23945 }), d.restrictsMixedContent = function() { 23946 return "https:" === r.location.protocol; 23947 }, d.matchesMedia = function(e) { 23948 return r.matchMedia && r.matchMedia(e).matches; 23949 }, d.getDpr = function() { 23950 return r.devicePixelRatio || 1; 23951 }, d.getWidthFromLength = function(e) { 23952 var t; 23953 if (!e || e.indexOf("%") > -1 != !1 || !(parseFloat(e) > 0 || e.indexOf("calc(") > -1)) return !1; 23954 e = e.replace("vw", "%"), d.lengthEl || (d.lengthEl = o.createElement("div"), d.lengthEl.style.cssText = "border:0;display:block;font-size:1em;
23954left:0;margin:0;padding:0;position:absolute;visibility:hidden", 23955 d.lengthEl.className = "helper-from-picturefill-js"), d.lengthEl.style.width = "0px"; 23956 try { 23957 d.lengthEl.style.width = e; 23958 } catch (e) {} 23959 return o.body.appendChild(d.lengthEl), (t = d.lengthEl.offsetWidth) <= 0 && (t = !1), 23960 o.body.removeChild(d.lengthEl), t; 23961 }, d.detectTypeSupport = function(e, t) { 23962 var n = new r.Image; 23963 return n.onerror = function() { 23964 d.types[e] = !1, f(); 23965 }, n.onload = function() { 23966 d.types[e] = 1 === n.width, f(); 23967 }, n.src = t, "pending"; 23968 }, d.types = d.types || {}, d.initTypeDetects = function() { 23969 d.types["image/jpeg"] = !0, d.types["image/gif"] = !0, d.types["image/png"] = !0, 23970 d.types["image/svg+xml"] = o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"), 23971 d.types["image/webp"] = d.detectTypeSupport("image/webp", "data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="); 23972 }, d.verifyTypeSupport = function(e) { 23973 var t = e.getAttribute("type"); 23974 if (null === t || "" === t) return !0; 23975 var n = d.types[t]; 23976 return "string" == typeof n && "pending" !== n ? (d.types[t] = d.detectTypeSupport(t, n), 23977 "pending") : "function" == typeof n ? (n(), "pending") : n; 23978 }, d.parseSize = function(e) { 23979 var t = /(\([^)]+\))?\s*(.+)/g.exec(e); 23980 return { 23981 media: t && t[1], 23982 length: t && t[2] 23983 }; 23984 }, d.findWidthFromSourceSize = function(e) { 23985 for (var t, n = d.trim(e).split(/\s*,\s*/), i = 0, s = n.length; i < s; i++) { 23986 var a = n[i], l = d.parseSize(a), c = l.length, u = l.media; 23987 if (c && ((!u || d.matchesMedia(u)) && (t = d.getWidthFromLength(c)))) break; 23988 } 23989 return t || Math.max(r.innerWidth || 0, o.documentElement.clientWidth); 23990 }, d.parseSrcset = function(e) { 23991 for (var t = []; "" !== e; ) { 23992 var n, i = (e = e.replace(/^\s+/g, "")).search(/\s/g), r = null; 23993 if (-1 !== i) { 23994 if ("," !== (n = e.slice(0, i)).slice(-1) && "" !== n || (n = n.replace(/,+$/, ""), 23995 r = ""), e = e.slice(i + 1), null === r) { 23996 var o = e.indexOf(","); 23997 -1 !== o ? (r = e.slice(0, o), e = e.slice(o + 1)) : (r = e, e = ""); 23998 } 23999 } else n = e, e = ""; 24000 (n || r) && t.push({ 24001 url: n, 24002 descriptor: r 24003 }); 24004 } 24005 return t; 24006 }, d.parseDescriptor = function(e, t) { 24007 var n, i = t || "100vw", r = e && e.replace(/(^\s+|\s+$)/g, ""), o = d.findWidthFromSourceSize(i); 24008 if (r) for (var s = r.split(" "), a = s.length - 1; a >= 0; a--) { 24009 var l = s[a], c = l && l.slice(l.length - 1); 24010 if ("h" !== c && "w" !== c || d.sizesSupported) { 24011 if ("x" === c) { 24012 var u = l && parseFloat(l, 10); 24013 n = u && !isNaN(u) ? u : 1; 24014 } 24015 } else n = parseFloat(parseInt(l, 10) / o); 24016 } 24017 return n || 1; 24018 }, d.getCandidatesFromSourceSet = function(e, t) { 24019 for (var n = d.parseSrcset(e), i = [], r = 0, o = n.length; r < o; r++) { 24020 var s = n[r]; 24021 i.push({ 24022 url: s.url, 24023 resolution: d.parseDescriptor(s.descriptor, t) 24024 }); 24025 } 24026 return i; 24027 }, d.dodgeSrcset = function(e) { 24028 e.srcset && (e[d.ns].srcset = e.srcset, e.srcset = "", e.setAttribute("data-pfsrcset", e[d.ns].srcset)); 24029 }, d.processSourceSet = function(e) { 24030 var t = e.getAttribute("srcset"), n = e.getAttribute("sizes"), i = []; 24031 return "IMG" === e.nodeName.toUpperCase() && e[d.ns] && e[d.ns].srcset && (t = e[d.ns].srcset), 24032 t && (i = d.getCandidatesFromSourceSet(t, n)), i; 24033 }, d.backfaceVisibilityFix = function(e) { 24034 var t = e.style || {}, n = "webkitBackfaceVisibility" in t, i = t.zoom; 24035 n && (t.zoom = ".999", n = e.offsetWidth, t.zoom = i); 24036 }, d.setIntrinsicSize = (c = {}, u = function(e, t, n) { 24037 t && e.setAttribute("width", parseInt(t / n, 10)); 24038 }, function(e, t) { 24039 var n; 24040 e[d.ns] && !r.pfStopIntrinsicSize && (void 0 === e[d.ns].dims && (e[d.ns].dims = e.getAttribute("width") || e.getAttribute("height")), 24041 e[d.ns].dims || (t.url in c ? u(e, c[t.url], t.resolution) : ((n = o.createElement("img")).onload = function() { 24042 if (c[t.url] = n.width, !c[t.url]) try { 24043 o.body.appendChild(n), c[t.url] = n.width || n.offsetWidth, o.body.removeChild(n); 24044 } catch (e) {} 24045 e.src === t.url && u(e, c[t.url], t.resolution), e = null, n.onload = null, n = null; 24046 }, n.src = t.url))); 24047 }), d.applyBestCandidate = function(e, t) { 24048 var n, i, r; 24049 e.sort(d.ascendingSort), r = e[(i = e.length) - 1]; 24050 for (var o = 0; o < i; o++) if ((n = e[o]).resolution >= d.getDpr()) { 24051 r = n; 24052 break; 24053 } 24054 r && (r.url = d.makeUrl(r.url), t.src !== r.url && (d.restrictsMixedContent() && "http:" === r.url.substr(0, "http:".length).toLowerCase() ? void 0 !== window.console && console.warn("Blocked mixed content image " + r.url) : (t.src = r.url, 24055 d.curSrcSupported || (t.currentSrc = t.src), d.backfaceVisibilityFix(t))), d.setIntrinsicSize(t, r)); 24056 }, d.ascendingSort = function(e, t) { 24057 return e.resolution - t.resolution; 24058 }, d.removeVideoShim = function(e) { 24059 var t = e.getElementsByTagName("video"); 24060 if (t.length) { 24061 for (var n = t[0], i = n.getElementsByTagName("source"); i.length; ) e.insertBefore(i[0], n); 24062 n.parentNode.removeChild(n); 24063 } 24064 }, d.getAllElements = function() { 24065 for (var e = [], t = o.getElementsByTagName("img"), n = 0, i = t.length; n < i; n++) { 24066 var r = t[n]; 24067 ("PICTURE" === r.parentNode.nodeName.toUpperCase() || null !== r.getAttribute("srcset") || r[d.ns] && null !== r[d.ns].srcset) && e.push(r); 24068 } 24069 return e; 24070 }, d.getMatch = function(e, t) { 24071 for (var n, i = t.childNodes, r = 0, o = i.length; r < o; r++) { 24072 var s = i[r]; 24073 if (1 === s.nodeType) { 24074 if (s === e) return n; 24075 if ("SOURCE" === s.nodeName.toUpperCase()) { 24076 null !== s.getAttribute("src") && void 0 !== typeof console && console.warn("The `src` attribute is invali
24076d on `picture` `source` element; instead, use `srcset`."); 24077 var a = s.getAttribute("media"); 24078 if (s.getAttribute("srcset") && (!a || d.matchesMedia(a))) { 24079 var l = d.verifyTypeSupport(s); 24080 if (!0 === l) { 24081 n = s; 24082 break; 24083 } 24084 if ("pending" === l) return !1; 24085 } 24086 } 24087 } 24088 } 24089 return n; 24090 }, function() { 24091 d.initTypeDetects(), f(); 24092 var e, t = setInterval((function() { 24093 f(), /^loaded|^i|^c/.test(o.readyState) && clearInterval(t); 24094 }), 250), n = function() { 24095 f({ 24096 reevaluate: !0 24097 }); 24098 }; 24099 function i() { 24100 clearTimeout(e), e = setTimeout(n, 60); 24101 } 24102 r.addEventListener ? r.addEventListener("resize", i, !1) : r.attachEvent && r.attachEvent("onresize", i); 24103 }(), f._ = d, a(f); 24104 } 24105 function f(e) { 24106 for (var t, n, i, r, o, s = e || {}, a = 0, l = (t = s.elements || d.getAllElements()).length; a < l; a++) if (i = (n = t[a]).parentNode, 24107 r = void 0, o = void 0, "IMG" === n.nodeName.toUpperCase() && (n[d.ns] || (n[d.ns] = {}), 24108 s.reevaluate || !n[d.ns].evaluated)) { 24109 if (i && "PICTURE" === i.nodeName.toUpperCase()) { 24110 if (d.removeVideoShim(i), !1 === (r = d.getMatch(n, i))) continue; 24111 } else r = void 0; 24112 (i && "PICTURE" === i.nodeName.toUpperCase() || !d.sizesSupported && n.srcset && h.test(n.srcset)) && d.dodgeSrcset(n), 24113 r ? (o = d.processSourceSet(r), d.applyBestCandidate(o, n)) : (o = d.processSourceSet(n), 24114 (void 0 === n.srcset || n[d.ns].srcset) && d.applyBestCandidate(o, n)), n[d.ns].evaluated = !0; 24115 } 24116 } 24117 }(window, window.document, new window.Image); 24118 }, function(e, t) { 24119 !function(e, t, n, i) { 24120 "use strict"; 24121 if (e.console = e.console || { 24122 info: function(e) {} 24123 }, n) if (n.fn.fancybox) console.info("fancyBox already initialized"); else { 24124 var r, o, s = { 24125 closeExisting: !1, 24126 loop: !1, 24127 gutter: 50, 24128 keyboard: !0, 24129 preventCaptionOverlap: !0, 24130 arrows: !0, 24131 infobar: !0, 24132 smallBtn: "auto", 24133 toolbar: "auto", 24134 buttons: [ "zoom", "slideShow", "thumbs", "close" ], 24135 idleTime: 3, 24136 protect: !1, 24137 modal: !1, 24138 image: { 24139 preload: !1 24140 }, 24141 ajax: { 24142 settings: { 24143 data: { 24144 fancybox: !0 24145 } 24146 } 24147 }, 24148 iframe: { 24149 tpl: '<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>', 24150 preload: !0, 24151 css: {}, 24152 attr: { 24153 scrolling: "auto" 24154 } 24155 }, 24156 video: { 24157 tpl: '<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>', 24158 format: "", 24159 autoStart: !0 24160 }, 24161 defaultType: "image", 24162 animationEffect: "zoom", 24163 animationDuration: 366, 24164 zoomOpacity: "auto", 24165 transitionEffect: "fade", 24166 transitionDuration: 366, 24167 slideClass: "", 24168 baseClass: "", 24169 baseTpl: '<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>', 24170 spinnerTpl: '<div class="fancybox-loading"></div>', 24171 errorTpl: '<div class="fancybox-error"><p>{{ERROR}}</p></div>', 24172 btnTpl: { 24173 download: '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
24173<path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>', 24174 zoom: '<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>', 24175 close: '<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>', 24176 arrowLeft: '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>', 24177 arrowRight: '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>', 24178 smallBtn: '<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>' 24179 }, 24180 parentEl: "body", 24181 hideScrollbar: !0, 24182 autoFocus: !0, 24183 backFocus: !0, 24184 trapFocus: !0, 24185 fullScreen: { 24186 autoStart: !1 24187 }, 24188 touch: { 24189 vertical: !0, 24190 momentum: !0 24191 }, 24192 hash: null, 24193 media: {}, 24194 slideShow: { 24195 autoStart: !1, 24196 speed: 3e3 24197 }, 24198 thumbs: { 24199 autoStart: !1, 24200 hideOnClose: !0, 24201 parentEl: ".fancybox-container", 24202 axis: "y" 24203 }, 24204 wheel: "auto", 24205 onInit: n.noop, 24206 beforeLoad: n.noop, 24207 afterLoad: n.noop, 24208 beforeShow: n.noop, 24209 afterShow: n.noop, 24210 beforeClose: n.noop, 24211 afterClose: n.noop, 24212 onActivate: n.noop, 24213 onDeactivate: n.noop, 24214 clickContent: function(e, t) { 24215 return "image" === e.type && "zoom"; 24216 }, 24217 clickSlide: "close", 24218 clickOutside: "close", 24219 dblclickContent: !1, 24220 dblclickSlide: !1, 24221 dblclickOutside: !1, 24222 mobile: { 24223 preventCaptionOverlap: !1, 24224 idleTime: !1, 24225 clickContent: function(e, t) { 24226 return "image" === e.type && "toggleControls"; 24227 }, 24228 clickSlide: function(e, t) { 24229 return "image" === e.type ? "toggleControls" : "close"; 24230 }, 24231 dblclickContent: function(e, t) { 24232 return "image" === e.type && "zoom"; 24233 }, 24234 dblclickSlide: function(e, t) { 24235 return "image" === e.type && "zoom"; 24236 } 24237 }, 24238 lang: "en", 24239 i18n: { 24240 en: { 24241 CLOSE: "Close", 24242 NEXT: "Next", 24243 PREV: "Previous", 24244 ERROR: "The requested content cannot be loaded. <br/> Please try again later.", 24245 PLAY_START: "Start slideshow", 24246 PLAY_STOP: "Pause slideshow", 24247 FULL_SCREEN: "Full screen", 24248 THUMBS: "Thumbnails", 24249 DOWNLOAD: "Download", 24250 SHARE: "Share", 24251 ZOOM: "Zoom" 24252 }, 24253 de: { 24254 CLOSE: "Schließen", 24255 NEXT: "Weiter", 24256 PREV: "Zurück", 24257 ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.", 24258 PLAY_START: "Diaschau starten", 24259 PLAY_STOP: "Diaschau beenden", 24260 FULL_SCREEN: "Vollbild",
24261 THUMBS: "Vorschaubilder", 24262 DOWNLOAD: "Herunterladen", 24263 SHARE: "Teilen", 24264 ZOOM: "Vergrößern" 24265 } 24266 } 24267 }, a = n(e), l = n(t), c = 0, u = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || function(t) { 24268 return e.setTimeout(t, 1e3 / 60); 24269 }, d = e.cancelAnimationFrame || e.webkitCancelAnimationFrame || e.mozCancelAnimationFrame || e.oCancelAnimationFrame || function(t) { 24270 e.clearTimeout(t); 24271 }, h = function() { 24272 var e, n = t.createElement("fakeelement"), i = { 24273 transition: "transitionend", 24274 OTransition: "oTransitionEnd", 24275 MozTransition: "transitionend", 24276 WebkitTransition: "webkitTransitionEnd" 24277 }; 24278 for (e in i) if (void 0 !== n.style[e]) return i[e]; 24279 return "transitionend"; 24280 }(), f = function(e) { 24281 return e && e.length && e[0].offsetHeight; 24282 }, p = function(e, t) { 24283 var i = n.extend(!0, {}, e, t); 24284 return n.each(t, (function(e, t) { 24285 n.isArray(t) && (i[e] = t); 24286 })), i; 24287 }, m = function(e, t, i) { 24288 this.opts = p({ 24289 index: i 24290 }, n.fancybox.defaults), n.isPlainObject(t) && (this.opts = p(this.opts, t)), n.fancybox.isMobile && (this.opts = p(this.opts, this.opts.mobile)), 24291 this.id = this.opts.id || ++c, this.currIndex = parseInt(this.opts.index, 10) || 0, 24292 this.prevIndex = null, this.prevPos = null, this.currPos = 0, this.firstRun = !0, 24293 this.group = [], this.slides = {}, this.addContent(e), this.group.length && this.init(); 24294 }; 24295 n.extend(m.prototype, { 24296 init: function() { 24297 var i, r, o = this, s = o.group[o.currIndex].opts; 24298 s.closeExisting && n.fancybox.close(!0), n("body").addClass("fancybox-active"), 24299 !n.fancybox.getInstance() && !1 !== s.hideScrollbar && !n.fancybox.isMobile && t.body.scrollHeight > e.innerHeight && (n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:' + (e.innerWidth - t.documentElement.clientWidth) + "px;}</style>"), 24300 n("body").addClass("compensate-for-scrollbar")), r = "", n.each(s.buttons, (function(e, t) { 24301 r += s.btnTpl[t] || ""; 24302 })), i = n(o.translate(o, s.baseTpl.replace("{{buttons}}", r).replace("{{arrows}}", s.btnTpl.arrowLeft + s.btnTpl.arrowRight))).attr("id", "fancybox-container-" + o.id).addClass(s.baseClass).data("FancyBox", o).appendTo(s.parentEl), 24303 o.$refs = { 24304 container: i 24305 }, [ "bg", "inner", "infobar", "toolbar", "stage", "caption", "navigation" ].forEach((function(e) { 24306 o.$refs[e] = i.find(".fancybox-" + e); 24307 })), o.trigger("onInit"), o.activate(), o.jumpTo(o.currIndex); 24308 }, 24309 translate: function(e, t) { 24310 var n = e.opts.i18n[e.opts.lang] || e.opts.i18n.en; 24311 return t.replace(/\{\{(\w+)\}\}/g, (function(e, t) { 24312 return void 0 === n[t] ? e : n[t]; 24313 })); 24314 }, 24315 addContent: function(e) { 24316 var t, i = this, r = n.makeArray(e); 24317 n.each(r, (function(e, t) { 24318 var r, o, s, a, l, c = {}, u = {}; 24319 n.isPlainObject(t) ? (c = t, u = t.opts || t) : "object" === n.type(t) && n(t).length ? (u = (r = n(t)).data() || {}, 24320 (u = n.extend(!0, {}, u, u.options)).$orig = r, c.src = i.opts.src || u.src || r.attr("href"), 24321 c.type || c.src || (c.type = "inline", c.src = t)) : c = { 24322 type: "html", 24323 src: t + "" 24324 }, c.opts = n.extend(!0, {}, i.opts, u), n.isArray(u.buttons) && (c.opts.buttons = u.buttons), 24325 n.fancybox.isMobile && c.opts.mobile && (c.opts = p(c.opts, c.opts.mobile)), o = c.type || c.opts.type, 24326 a = c.src || "", !o && a && ((s = a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)) ? (o = "video", 24327 c.opts.video.format || (c.opts.video.format = "video/" + ("ogv" === s[1] ? "ogg" : s[1]))) : a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i) ? o = "image" : a.match(/\.(pdf)((\?|#).*)?$/i) ? (o = "iframe", 24328 c = n.extend(!0, c, { 24329 contentType: "pdf", 24330 opts: { 24331 iframe: { 24332 preload: !1 24333 } 24334 } 24335 })) : "#" === a.charAt(0) && (o = "inline")), o ? c.type = o : i.trigger("objectNeedsType", c), 24336 c.contentType || (c.contentType = n.inArray(c.type, [ "html", "inline", "ajax" ]) > -1 ? "html" : c.type), 24337 c.index = i.group.length, "auto" == c.opts.smallBtn && (c.opts.smallBtn = n.inArray(c.type, [ "html", "inline", "ajax" ]) > -1), 24338 "auto" === c.opts.toolbar && (c.opts.toolbar = !c.opts.smallBtn), c.$thumb = c.opts.$thumb || null, 24339 c.opts.$trigger && c.index === i.opts.index && (c.$thumb = c.opts.$trigger.find("img:first"), 24340 c.$thumb.length && (c.opts.$orig = c.opts.$trigger)), c.$thumb && c.$thumb.length || !c.opts.$orig || (c.$thumb = c.opts.$orig.find("img:first")), 24341 c.$thumb && !c.$thumb.length && (c.$thumb = null), c.thumb = c.opts.thumb || (c.$thumb ? c.$thumb[0].src : null), 24342 "function" === n.type(c.opts.caption) && (c.opts.caption = c.opts.caption.apply(t, [ i, c ])), 24343 "function" === n.type(i.opts.caption) && (c.opts.caption = i.opts.caption.apply(t, [ i, c ])), 24344 c.opts.caption instanceof n || (c.opts.caption = void 0 === c.opts.caption ? "" : c.opts.caption + ""), 24345 "ajax" === c.type && (l = a.split(/\s+/, 2)).length > 1 && (c.src = l.shift(), c.opts.filter = l.shift()), 24346 c.opts.modal && (c.opts = n.extend(!0, c.opts, { 24347 trapFocus: !0, 24348 infobar: 0, 24349 toolbar: 0, 24350 smallBtn: 0, 24351 keyboard: 0, 24352 slideShow: 0, 24353 fullScreen: 0, 24354 thumbs: 0, 24355 touch: 0, 24356 clickContent: !1, 24357 clickSlide: !1, 24358 clickOutside: !1, 24359 dblclickContent: !1, 24360 dblclickSlide: !1, 24361 dblclickOutside: !1 24362 })), i.group.push(c); 24363 })), Object.keys(i.slides).length && (i.updateControls(), (t = i.Thumbs) && t.isActive && (t.create(), 24364 t.focus())); 24365 }, 24366 addEvents: function() { 24367 var t = this; 24368 t.removeEvents(), t.$refs.container.on("click.fb-close", "[data-fancybox-close]", (function(e) { 24369 e.stopPropagation(), e.preventDefault(), t.close(e); 24370 })).on("touchstart.fb-prev click.fb-prev", "[data-fancybox-prev]", (function(e) { 24371 e.stopPropagation(), e.preventDefault(), t.previous(); 24372 })).on("touchstart.fb-next click.fb-next", "[data-fancybox-next]", (function(e) { 24373 e.stopPropagation(), e.preventDefault(), t.next(); 24374 })).on("click.fb", "[data-fancybox-zoom]", (function(e) { 24375 t[t.isScaledDown() ? "scaleToActual" : "scaleToFit"](); 24376 })), a.on("orientationchange.fb resize.fb", (function(e) { 24377 e && e.originalEvent && "resize" === e.originalEvent.type ? (t.requestId && d(t.requestId), 24378 t.requestId = u((function() { 24379 t.update(e); 24380 }))) : (t.current && "iframe" === t.current.type && t.$refs.stage.hide(), setTimeout((function() { 24381 t.$refs.stage.show(), t.update(e); 24382 }), n.fancybox.isMobile ? 600 : 250)); 24383 }
24383)), l.on("keydown.fb", (function(e) { 24384 var i = (n.fancybox ? n.fancybox.getInstance() : null).current, r = e.keyCode || e.which; 24385 if (9 != r) { 24386 if (!(!i.opts.keyboard || e.ctrlKey || e.altKey || e.shiftKey || n(e.target).is("input,textarea,video,audio,select"))) return 8 === r || 27 === r ? (e.preventDefault(), 24387 void t.close(e)) : 37 === r || 38 === r ? (e.preventDefault(), void t.previous()) : 39 === r || 40 === r ? (e.preventDefault(), 24388 void t.next()) : void t.trigger("afterKeydown", e, r); 24389 } else i.opts.trapFocus && t.focus(e); 24390 })), t.group[t.currIndex].opts.idleTime && (t.idleSecondsCounter = 0, l.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle", (function(e) { 24391 t.idleSecondsCounter = 0, t.isIdle && t.showControls(), t.isIdle = !1; 24392 })), t.idleInterval = e.setInterval((function() { 24393 t.idleSecondsCounter++, t.idleSecondsCounter >= t.group[t.currIndex].opts.idleTime && !t.isDragging && (t.isIdle = !0, 24394 t.idleSecondsCounter = 0, t.hideControls()); 24395 }), 1e3)); 24396 }, 24397 removeEvents: function() { 24398 a.off("orientationchange.fb resize.fb"), l.off("keydown.fb .fb-idle"), this.$refs.container.off(".fb-close .fb-prev .fb-next"), 24399 this.idleInterval && (e.clearInterval(this.idleInterval), this.idleInterval = null); 24400 }, 24401 previous: function(e) { 24402 return this.jumpTo(this.currPos - 1, e); 24403 }, 24404 next: function(e) { 24405 return this.jumpTo(this.currPos + 1, e); 24406 }, 24407 jumpTo: function(e, t) { 24408 var i, r, o, s, a, l, c, u, d, h = this, p = h.group.length; 24409 if (!(h.isDragging || h.isClosing || h.isAnimating && h.firstRun)) { 24410 if (e = parseInt(e, 10), !(o = h.current ? h.current.opts.loop : h.opts.loop) && (e < 0 || e >= p)) return !1; 24411 if (i = h.firstRun = !Object.keys(h.slides).length, a = h.current, h.prevIndex = h.currIndex, 24412 h.prevPos = h.currPos, s = h.createSlide(e), p > 1 && ((o || s.index < p - 1) && h.createSlide(e + 1), 24413 (o || s.index > 0) && h.createSlide(e - 1)), h.current = s, h.currIndex = s.index, 24414 h.currPos = s.pos, h.trigger("beforeShow", i), h.updateControls(), s.forcedDuration = void 0, 24415 n.isNumeric(t) ? s.forcedDuration = t : t = s.opts[i ? "animationDuration" : "transitionDuration"], 24416 t = parseInt(t, 10), r = h.isMoved(s), s.$slide.addClass("fancybox-slide--current"), 24417 i) return s.opts.animationEffect && t && h.$refs.container.css("transition-duration", t + "ms"), 24418 h.$refs.container.addClass("fancybox-is-open").trigger("focus"), h.loadSlide(s), 24419 void h.preload("image"); 24420 l = n.fancybox.getTranslate(a.$slide), c = n.fancybox.getTranslate(h.$refs.stage), 24421 n.each(h.slides, (function(e, t) { 24422 n.fancybox.stop(t.$slide, !0); 24423 })), a.pos !== s.pos && (a.isComplete = !1), a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"), 24424 r ? (d = l.left - (a.pos * l.width + a.pos * a.opts.gutter), n.each(h.slides, (function(e, i) { 24425 i.$slide.removeClass("fancybox-animated").removeClass((function(e, t) { 24426 return (t.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" "); 24427 })); 24428 var r = i.pos * l.width + i.pos * i.opts.gutter; 24429 n.fancybox.setTranslate(i.$slide, { 24430 top: 0, 24431 left: r - c.left + d 24432 }), i.pos !== s.pos && i.$slide.addClass("fancybox-slide--" + (i.pos > s.pos ? "next" : "previous")), 24433 f(i.$slide), n.fancybox.animate(i.$slide, { 24434 top: 0, 24435 left: (i.pos - s.pos) * l.width + (i.pos - s.pos) * i.opts.gutter 24436 }, t, (function() { 24437 i.$slide.css({ 24438 transform: "", 24439 opacity: "" 24440 }).removeClass("fancybox-slide--next fancybox-slide--previous"), i.pos === h.currPos && h.complete(); 24441 })); 24442 }))) : t && s.opts.transitionEffect && (u = "fancybox-animated fancybox-fx-" + s.opts.transitionEffect, 24443 a.$slide.addClass("fancybox-slide--" + (a.pos > s.pos ? "next" : "previous")), n.fancybox.animate(a.$slide, u, t, (function() { 24444 a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous"); 24445 }), !1)), s.isLoaded ? h.revealContent(s) : h.loadSlide(s), h.preload("image"); 24446 } 24447 }, 24448 createSlide: function(e) { 24449 var t, i; 24450 return i = (i = e % this.group.length) < 0 ? this.group.length + i : i, !this.slides[e] && this.group[i] && (t = n('<div class="fancybox-slide"></div>').appendTo(this.$refs.stage), 24451 this.slides[e] = n.extend(!0, {}, this.group[i], { 24452 pos: e, 24453 $slide: t, 24454 isLoaded: !1 24455 }), this.updateSlide(this.slides[e])), this.slides[e]; 24456 }, 24457 scaleToActual: function(e, t, i) { 24458 var r, o, s, a, l, c = this, u = c.current, d = u.$content, h = n.fancybox.getTranslate(u.$slide).width, f = n.fancybox.getTranslate(u.$slide).height, p = u.width, m = u.height; 24459 c.isAnimating || c.isMoved() || !d || "image" != u.type || !u.isLoaded || u.hasError || (c.isAnimating = !0, 24460 n.fancybox.stop(d), e = void 0 === e ? .5 * h : e, t = void 0 === t ? .5 * f : t, 24461 (r = n.fancybox.getTranslate(d)).top -= n.fancybox.getTranslate(u.$slide).top, r.left -= n.fancybox.getTranslate(u.$slide).left, 24462 a = p / r.width, l = m / r.height, o = .5 * h - .5 * p, s = .5 * f - .5 * m, p > h && ((o = r.left * a - (e * a - e)) > 0 && (o = 0), 24463 o < h - p && (o = h - p)), m > f && ((s = r.top * l - (t * l - t)) > 0 && (s = 0), 24464 s < f - m && (s = f - m)), c.updateCursor(p, m), n.fancybox.animate(d, { 24465 top: s, 24466 left: o, 24467 scaleX: a, 24468 scaleY: l 24469 }, i || 366, (function() { 24470 c.isAnimating = !1; 24471 })), c.SlideShow && c.SlideShow.isActive && c.SlideShow.stop()); 24472 }, 24473 scaleToFit: function(e) { 24474 var t, i = this, r = i.current, o = r.$content; 24475 i.isAnimating || i.isMoved() || !o || "image" != r.type || !r.isLoaded || r.hasError || (i.isAnimating = !0, 24476 n.fancybox.stop(o), t = i.getFitPos(r), i.updateCursor(t.width, t.height), n.fancybox.animate(o, { 24477 top: t.top, 24478 left: t.left, 24479 scaleX: t.width / o.width(), 24480 scaleY: t.height / o.height() 24481 }, e || 366, (function() { 24482 i.isAnimating = !1; 24483 }))); 24484 }, 24485 getFitPos: function(e) { 24486 var t, i, r, o, s = e.$content, a = e.$slide, l = e.width || e.opts.width, c = e.height || e.opts.height, u = {}; 24487 return !!(e.isLoaded && s && s.length) && (t = n.fancybox.getTranslate(this.$refs.stage).width, 24488 i = n.fancybox.getTranslate(this.$refs.stage).height, t -= parseFloat(a.css("paddingLeft")) + parseFloat(a.css("paddingRight")) + parseFloat(s.css("marginLeft")) + parseFloat(s.css("marginRight")), 24489 i -= parseFloat(a.css("paddingTop")) + parseFloat(a.css("paddingBottom")) + parseFloat(s.css("marginTop")) + parseFloat(s.css("marginBottom")), 24490 l && c || (l = t, c = i), (l *= r = Math.min(1, t / l, i / c)) > t - .5 && (l = t), 24491 (c *= r) > i - .5 && (c = i), "image" === e.type ? (u.top = Math.floor(.5 * (i - c)) + parseFloat(a.css("paddingTop")), 24492 u.left = Math.floor(.5 * (t - l)) + parseFloat(a.css("paddingLeft"))) : "video" === e.contentType && (c > l / (o = e.opts.width && e.opts.height ? l / c : e.opts.ratio || 16 / 9) ? c = l / o : l > c * o && (l = c * o)), 24493 u.width = l, u.height = c, u); 24494 }, 24495 update: function(e) { 24496 var t = this; 24497 n.each(t.slides, (function(n, i) { 24498 t.updateSlide(i, e); 24499 })); 24500 }, 24501 updateSlide: function(e, t) { 24502 var i = e && e.$content, r = e.width || e.opts.width, o = e.height || e.opts.height, s = e.$slide; 24503 this.adjustCaption(e), i && (r || o || "video" === e.contentType) && !e.hasError && (n.fancybox.stop(i), 24504 n.fancybox.setTranslate(i, this.getFitPos(e)), e.pos === this.currPos && (this.isAnimating = !1,
24505 this.updateCursor())), this.adjustLayout(e), s.length && (s.trigger("refresh"), 24506 e.pos === this.currPos && this.$refs.toolbar.add(this.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar", s.get(0).scrollHeight > s.get(0).clientHeight)), 24507 this.trigger("onUpdate", e, t); 24508 }, 24509 centerSlide: function(e) { 24510 var t = this, i = t.current, r = i.$slide; 24511 !t.isClosing && i && (r.siblings().css({ 24512 transform: "", 24513 opacity: "" 24514 }), r.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"), 24515 n.fancybox.animate(r, { 24516 top: 0, 24517 left: 0, 24518 opacity: 1 24519 }, void 0 === e ? 0 : e, (function() { 24520 r.css({ 24521 transform: "", 24522 opacity: "" 24523 }), i.isComplete || t.complete(); 24524 }), !1)); 24525 }, 24526 isMoved: function(e) { 24527 var t, i, r = e || this.current; 24528 return !!r && (i = n.fancybox.getTranslate(this.$refs.stage), t = n.fancybox.getTranslate(r.$slide), 24529 !r.$slide.hasClass("fancybox-animated") && (Math.abs(t.top - i.top) > .5 || Math.abs(t.left - i.left) > .5)); 24530 }, 24531 updateCursor: function(e, t) { 24532 var i, r, o = this.current, s = this.$refs.container; 24533 o && !this.isClosing && this.Guestures && (s.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"), 24534 r = !!(i = this.canPan(e, t)) || this.isZoomable(), s.toggleClass("fancybox-is-zoomable", r), 24535 n("[data-fancybox-zoom]").prop("disabled", !r), i ? s.addClass("fancybox-can-pan") : r && ("zoom" === o.opts.clickContent || n.isFunction(o.opts.clickContent) && "zoom" == o.opts.clickContent(o)) ? s.addClass("fancybox-can-zoomIn") : o.opts.touch && (o.opts.touch.vertical || this.group.length > 1) && "video" !== o.contentType && s.addClass("fancybox-can-swipe")); 24536 }, 24537 isZoomable: function() { 24538 var e, t = this.current; 24539 if (t && !this.isClosing && "image" === t.type && !t.hasError) { 24540 if (!t.isLoaded) return !0; 24541 if ((e = this.getFitPos(t)) && (t.width > e.width || t.height > e.height)) return !0; 24542 } 24543 return !1; 24544 }, 24545 isScaledDown: function(e, t) { 24546 var i = !1, r = this.current, o = r.$content; 24547 return void 0 !== e && void 0 !== t ? i = e < r.width && t < r.height : o && (i = (i = n.fancybox.getTranslate(o)).width < r.width && i.height < r.height), 24548 i; 24549 }, 24550 canPan: function(e, t) { 24551 var i = this.current, r = null, o = !1; 24552 return "image" === i.type && (i.isComplete || e && t) && !i.hasError && (o = this.getFitPos(i), 24553 void 0 !== e && void 0 !== t ? r = { 24554 width: e, 24555 height: t 24556 } : i.isComplete && (r = n.fancybox.getTranslate(i.$content)), r && o && (o = Math.abs(r.width - o.width) > 1.5 || Math.abs(r.height - o.height) > 1.5)), 24557 o; 24558 }, 24559 loadSlide: function(e) { 24560 var t, i, r, o = this; 24561 if (!e.isLoading && !e.isLoaded) { 24562 if (e.isLoading = !0, !1 === o.trigger("beforeLoad", e)) return e.isLoading = !1, 24563 !1; 24564 switch (t = e.type, (i = e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass), 24565 t) { 24566 case "image": 24567 o.setImage(e); 24568 break; 24569 24570 case "iframe": 24571 o.setIframe(e); 24572 break; 24573 24574 case "html": 24575 o.setContent(e, e.src || e.content); 24576 break; 24577 24578 case "video": 24579 o.setContent(e, e.opts.video.tpl.replace(/\{\{src\}\}/gi, e.src).replace("{{format}}", e.opts.videoFormat || e.opts.video.format || "").replace("{{poster}}", e.thumb || "")); 24580 break; 24581 24582 case "inline": 24583 n(e.src).length ? o.setContent(e, n(e.src)) : o.setError(e); 24584 break; 24585 24586 case "ajax": 24587 o.showLoading(e), r = n.ajax(n.extend({}, e.opts.ajax.settings, { 24588 url: e.src, 24589 success: function(t, n) { 24590 "success" === n && o.setContent(e, t); 24591 }, 24592 error: function(t, n) { 24593 t && "abort" !== n && o.setError(e); 24594 } 24595 })), i.one("onReset", (function() { 24596 r.abort(); 24597 })); 24598 break; 24599 24600 default: 24601 o.setError(e); 24602 } 24603 return !0; 24604 } 24605 }, 24606 setImage: function(e) { 24607 var i, r = this; 24608 setTimeout((function() { 24609 var t = e.$image; 24610 r.isClosing || !e.isLoading || t && t.length && t[0].complete || e.hasError || r.showLoading(e); 24611 }), 50), r.checkSrcset(e), e.$content = n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),
24612 !1 !== e.opts.preload && e.opts.width && e.opts.height && e.thumb && (e.width = e.opts.width, 24613 e.height = e.opts.height, (i = t.createElement("img")).onerror = function() { 24614 n(this).remove(), e.$ghost = null; 24615 }, i.onload = function() { 24616 r.afterLoad(e); 24617 }, e.$ghost = n(i).addClass("fancybox-image").appendTo(e.$content).attr("src", e.thumb)), 24618 r.setBigImage(e); 24619 }, 24620 checkSrcset: function(t) { 24621 var n, i, r, o, s = t.opts.srcset || t.opts.image.srcset; 24622 if (s) { 24623 r = e.devicePixelRatio || 1, o = e.innerWidth * r, (i = s.split(",").map((function(e) { 24624 var t = {}; 24625 return e.trim().split(/\s+/).forEach((function(e, n) { 24626 var i = parseInt(e.substring(0, e.length - 1), 10); 24627 if (0 === n) return t.url = e; 24628 i && (t.value = i, t.postfix = e[e.length - 1]); 24629 })), t; 24630 }))).sort((function(e, t) { 24631 return e.value - t.value; 24632 })); 24633 for (var a = 0; a < i.length; a++) { 24634 var l = i[a]; 24635 if ("w" === l.postfix && l.value >= o || "x" === l.postfix && l.value >= r) { 24636 n = l; 24637 break; 24638 } 24639 } 24640 !n && i.length && (n = i[i.length - 1]), n && (t.src = n.url, t.width && t.height && "w" == n.postfix && (t.height = t.width / t.height * n.value, 24641 t.width = n.value), t.opts.srcset = s); 24642 } 24643 }, 24644 setBigImage: function(e) { 24645 var i = this, r = t.createElement("img"), o = n(r); 24646 e.$image = o.one("error", (function() { 24647 i.setError(e); 24648 })).one("load", (function() { 24649 var t; 24650 e.$ghost || (i.resolveImageSlideSize(e, this.naturalWidth, this.naturalHeight), 24651 i.afterLoad(e)), i.isClosing || (e.opts.srcset && ((t = e.opts.sizes) && "auto" !== t || (t = (e.width / e.height > 1 && a.width() / a.height() > 1 ? "100" : Math.round(e.width / e.height * 100)) + "vw"), 24652 o.attr("sizes", t).attr("srcset", e.opts.srcset)), e.$ghost && setTimeout((function() { 24653 e.$ghost && !i.isClosing && e.$ghost.hide(); 24654 }), Math.min(300, Math.max(1e3, e.height / 1600))), i.hideLoading(e)); 24655 })).addClass("fancybox-image").attr("src", e.src).appendTo(e.$content), (r.complete || "complete" == r.readyState) && o.naturalWidth && o.naturalHeight ? o.trigger("load") : r.error && o.trigger("error"); 24656 }, 24657 resolveImageSlideSize: function(e, t, n) { 24658 var i = parseInt(e.opts.width, 10), r = parseInt(e.opts.height, 10); 24659 e.width = t, e.height = n, i > 0 && (e.width = i, e.height = Math.floor(i * n / t)), 24660 r > 0 && (e.width = Math.floor(r * t / n), e.height = r); 24661 }, 24662 setIframe: function(e) { 24663 var t, i = this, r = e.opts.iframe, o = e.$slide; 24664 e.$content = n('<div class="fancybox-content' + (r.preload ? " fancybox-is-hidden" : "") + '"></div>').css(r.css).appendTo(o), 24665 o.addClass("fancybox-slide--" + e.contentType), e.$iframe = t = n(r.tpl.replace(/\{rnd\}/g, (new Date).getTime())).attr(r.attr).appendTo(e.$content), 24666 r.preload ? (i.showLoading(e), t.on("load.fb error.fb", (function(t) { 24667 this.isReady = 1, e.$slide.trigger("refresh"), i.afterLoad(e); 24668 })), o.on("refresh.fb", (function() { 24669 var n, i = e.$content, s = r.css.width, a = r.css.height; 24670 if (1 === t[0].isReady) { 24671 try { 24672 n = t.contents().find("body"); 24673 } catch (e) {} 24674 n && n.length && n.children().length && (o.css("overflow", "visible"), i.css({ 24675 width: "100%", 24676 "max-width": "100%", 24677 height: "9999px" 24678 }), void 0 === s && (s = Math.ceil(Math.max(n[0].clientWidth, n.outerWidth(!0)))), 24679 i.css("width", s || "").css("max-width", ""), void 0 === a && (a = Math.ceil(Math.max(n[0].clientHeight, n.outerHeight(!0)))), 24680 i.css("height", a || ""), o.css("overflow", "auto")), i.removeClass("fancybox-is-hidden"); 24681 } 24682 }))) : i.afterLoad(e), t.attr("src", e.src), o.one("onReset", (function() { 24683 try { 24684 n(this).find("iframe").hide().unbind().attr("src", "//about:blank"); 24685 } catch (e) {} 24686 n(this).off("refresh.fb").empty(), e.isLoaded = !1, e.isRevealed = !1; 24687 })); 24688 }, 24689 setContent: function(e, t) { 24690 var i; 24691 this.isClosing || (this.hideLoading(e), e.$content && n.fancybox.stop(e.$content), 24692 e.$slide.empty(), (i = t) && i.hasOwnProperty && i instanceof n && t.parent().length ? ((t.hasClass("fancybox-content") || t.parent().hasClass("fancybox-content")) && t.parents(".fancybox-slide").trigger("onReset"), 24693 e.$placeholder = n("<div>").hide().insertAfter(t), t.css("display", "inline-block")) : e.hasError || ("string" === n.type(t) && (t = n("<div>
24693").append(n.trim(t)).contents()), 24694 e.opts.filter && (t = n("<div>").html(t).find(e.opts.filter))), e.$slide.one("onReset", (function() { 24695 n(this).find("video,audio").trigger("pause"), e.$placeholder && (e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(), 24696 e.$placeholder = null), e.$smallBtn && (e.$smallBtn.remove(), e.$smallBtn = null), 24697 e.hasError || (n(this).empty(), e.isLoaded = !1, e.isRevealed = !1); 24698 })), n(t).appendTo(e.$slide), n(t).is("video,audio") && (n(t).addClass("fancybox-video"), 24699 n(t).wrap("<div></div>"), e.contentType = "video", e.opts.width = e.opts.width || n(t).attr("width"), 24700 e.opts.height = e.opts.height || n(t).attr("height")), e.$content = e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(), 24701 e.$content.siblings().hide(), e.$content.length || (e.$content = e.$slide.wrapInner("<div></div>").children().first()), 24702 e.$content.addClass("fancybox-content"), e.$slide.addClass("fancybox-slide--" + e.contentType), 24703 this.afterLoad(e)); 24704 }, 24705 setError: function(e) { 24706 e.hasError = !0, e.$slide.trigger("onReset").removeClass("fancybox-slide--" + e.contentType).addClass("fancybox-slide--error"), 24707 e.contentType = "html", this.setContent(e, this.translate(e, e.opts.errorTpl)), 24708 e.pos === this.currPos && (this.isAnimating = !1); 24709 }, 24710 showLoading: function(e) { 24711 (e = e || this.current) && !e.$spinner && (e.$spinner = n(this.translate(this, this.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast")); 24712 }, 24713 hideLoading: function(e) { 24714 (e = e || this.current) && e.$spinner && (e.$spinner.stop().remove(), delete e.$spinner); 24715 }, 24716 afterLoad: function(e) { 24717 this.isClosing || (e.isLoading = !1, e.isLoaded = !0, this.trigger("afterLoad", e), 24718 this.hideLoading(e), !e.opts.smallBtn || e.$smallBtn && e.$smallBtn.length || (e.$smallBtn = n(this.translate(e, e.opts.btnTpl.smallBtn)).appendTo(e.$content)), 24719 e.opts.protect && e.$content && !e.hasError && (e.$content.on("contextmenu.fb", (function(e) { 24720 return 2 == e.button && e.preventDefault(), !0; 24721 })), "image" === e.type && n('<div class="fancybox-spaceball"></div>').appendTo(e.$content)), 24722 this.adjustCaption(e), this.adjustLayout(e), e.pos === this.currPos && this.updateCursor(), 24723 this.revealContent(e)); 24724 }, 24725 adjustCaption: function(e) { 24726 var t, n = e || this.current, i = n.opts.caption, r = n.opts.preventCaptionOverlap, o = this.$refs.caption, s = !1; 24727 o.toggleClass("fancybox-caption--separate", r), r && i && i.length && (n.pos !== this.currPos ? ((t = o.clone().appendTo(o.parent())).children().eq(0).empty().html(i), 24728 s = t.outerHeight(!0), t.empty().remove()) : this.$caption && (s = this.$caption.outerHeight(!0)), 24729 n.$slide.css("padding-bottom", s || "")); 24730 }, 24731 adjustLayout: function(e) { 24732 var t, n, i, r, o = e || this.current; 24733 o.isLoaded && !0 !== o.opts.disableLayoutFix && (o.$content.css("margin-bottom", ""), 24734 o.$content.outerHeight() > o.$slide.height() + .5 && (i = o.$slide[0].style["padding-bottom"], 24735 r = o.$slide.css("padding-bottom"), parseFloat(r) > 0 && (t = o.$slide[0].scrollHeight, 24736 o.$slide.css("padding-bottom", 0), Math.abs(t - o.$slide[0].scrollHeight) < 1 && (n = r), 24737 o.$slide.css("padding-bottom", i))), o.$content.css("margin-bottom", n)); 24738 }, 24739 revealContent: function(e) { 24740 var t, i, r, o, s = this, a = e.$slide, l = !1, c = !1, u = s.isMoved(e), d = e.isRevealed; 24741 return e.isRevealed = !0, t = e.opts[s.firstRun ? "animationEffect" : "transitionEffect"], 24742 r = e.opts[s.firstRun ? "animationDuration" : "transitionDuration"], r = parseInt(void 0 === e.forcedDuration ? r : e.forcedDuration, 10), 24743 !u && e.pos === s.currPos && r || (t = !1), "zoom" === t && (e.pos === s.currPos && r && "image" === e.type && !e.hasError && (c = s.getThumbPos(e)) ? l = s.getFitPos(e) : t = "fade"), 24744 "zoom" === t ? (s.isAnimating = !0, l.scaleX = l.width / c.width, l.scaleY = l.height / c.height, 24745 "auto" == (o = e.opts.zoomOpacity) && (o = Math.abs(e.width / e.height - c.width / c.height) > .1), 24746 o && (c.opacity = .1, l.opacity = 1), n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"), c), 24747 f(e.$content), void n.fancybox.animate(e.$content, l, r, (function() { 24748 s.isAnimating = !1, s.complete(); 24749 }))) : (s.updateSlide(e), t ? (n.fancybox.stop(a), i = "fancybox-slide--" + (e.pos >= s.prevPos ? "next" : "previous") + " fancybox-animated fancybox-fx-" + t, 24750 a.addClass(i).removeClass("fancybox-slide--current"), e.$content.removeClass("fancybox-is-hidden"), 24751 f(a), "image" !== e.type && e.$content.hide().show(0), void n.fancybox.animate(a, "fancybox-slide--current", r, (function() { 24752 a.removeClass(i).css({ 24753 transform: "", 24754 opacity: "" 24755 }), e.pos === s.currPos && s.complete(); 24756 }), !0)) : (e.$content.removeClass("fancybox-is-hidden"), d || !u || "image" !== e.type || e.hasError || e.$content.hide().fadeIn("fast"), 24757 void (e.pos === s.currPos && s.complete()))); 24758 }, 24759 getThumbPos: function(e) { 24760 var i, r, o, s, a, l, c = e.$thumb; 24761 return !(!c || !function(e) { 24762 var i, r; 24763 return !(!e || e.ownerDocument !== t) && (n(".fancybox-container").css("pointer-events", "none"), 24764 i = { 24765 x: e.getBoundingClientRect().left + e.offsetWidth / 2, 24766 y: e.getBoundingClientRect().top + e.offsetHeight / 2 24767 }, r = t.elementFromPoint(i.x, i.y) === e, n(".fancybox-container").css("pointer-events", ""), 24768 r); 24769 }(c[0])) && (r = n.fancybox.getTranslate(c), o = parseFloat(c.css("border-top-width") || 0), 24770 s = parseFloat(c.css("border-right-width") || 0), a = parseFloat(c.css("border-bottom-width") || 0), 24771 l = parseFloat(c.css("border-left-width") || 0), i = { 24772 top: r.top + o, 24773 left: r.left + l, 24774 width: r.width - s - l, 24775 height: r.height - o - a, 24776 scaleX: 1, 24777 scaleY: 1 24778 }, r.width > 0 && r.height > 0 && i); 24779 }, 24780 complete: function() { 24781 var e, t = this, i = t.current, r = {}; 24782 !t.isMoved() && i.isLoaded && (i.isComplete || (i.isComplete = !0, i.$slide.siblings().trigger("onReset"), 24783 t.preload("inline"), f(i.$slide), i.$slide.addClass("fancybox-slide--complete"), 24784 n.each(t.slides, (function(e, i) { 24785 i.pos >= t.currPos - 1 && i.pos <= t.currPos + 1 ? r[i.pos] = i : i && (n.fancybox.stop(i.$slide), 24786 i.$slide.off().remove()); 24787 }
24787)), t.slides = r), t.isAnimating = !1, t.updateCursor(), t.trigger("afterShow"), 24788 i.opts.video.autoStart && i.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended", (function() { 24789 Document.exitFullscreen ? Document.exitFullscreen() : this.webkitExitFullscreen && this.webkitExitFullscreen(), 24790 t.next(); 24791 })), i.opts.autoFocus && "html" === i.contentType && ((e = i.$content.find("input[autofocus]:enabled:visible:first")).length ? e.trigger("focus") : t.focus(null, !0)), 24792 i.$slide.scrollTop(0).scrollLeft(0)); 24793 }, 24794 preload: function(e) { 24795 var t, n; 24796 this.group.length < 2 || (n = this.slides[this.currPos + 1], (t = this.slides[this.currPos - 1]) && t.type === e && this.loadSlide(t), 24797 n && n.type === e && this.loadSlide(n)); 24798 }, 24799 focus: function(e, i) { 24800 var r, o, s = [ "a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"]):not([aria-hidden])', "select:not([disabled]):not([aria-hidden])", "textarea:not([disabled]):not([aria-hidden])", "button:not([disabled]):not([aria-hidden])", "iframe", "object", "embed", "video", "audio", "[contenteditable]", '[tabindex]:not([tabindex^="-"])' ].join(","); 24801 this.isClosing || ((r = (r = !e && this.current && this.current.isComplete ? this.current.$slide.find("*:visible" + (i ? ":not(.fancybox-close-small)" : "")) : this.$refs.container.find("*:visible")).filter(s).filter((function() { 24802 return "hidden" !== n(this).css("visibility") && !n(this).hasClass("disabled"); 24803 }))).length ? (o = r.index(t.activeElement), e && e.shiftKey ? (o < 0 || 0 == o) && (e.preventDefault(), 24804 r.eq(r.length - 1).trigger("focus")) : (o < 0 || o == r.length - 1) && (e && e.preventDefault(), 24805 r.eq(0).trigger("focus"))) : this.$refs.container.trigger("focus")); 24806 }, 24807 activate: function() { 24808 var e = this; 24809 n(".fancybox-container").each((function() { 24810 var t = n(this).data("FancyBox"); 24811 t && t.id !== e.id && !t.isClosing && (t.trigger("onDeactivate"), t.removeEvents(), 24812 t.isVisible = !1); 24813 })), e.isVisible = !0, (e.current || e.isIdle) && (e.update(), e.updateControls()), 24814 e.trigger("onActivate"), e.addEvents(); 24815 }, 24816 close: function(e, t) { 24817 var i, r, o, s, a, l, c, d = this, h = d.current, p = function() { 24818 d.cleanUp(e); 24819 }; 24820 return !d.isClosing && (d.isClosing = !0, !1 === d.trigger("beforeClose", e) ? (d.isClosing = !1, 24821 u((function() { 24822 d.update(); 24823 })), !1) : (d.removeEvents(), o = h.$content, i = h.opts.animationEffect, r = n.isNumeric(t) ? t : i ? h.opts.animationDuration : 0, 24824 h.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"), 24825 !0 !== e ? n.fancybox.stop(h.$slide) : i = !1, h.$slide.siblings().trigger("onReset").remove(), 24826 r && d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration", r + "ms"), 24827 d.hideLoading(h), d.hideControls(!0), d.updateCursor(), "zoom" !== i || o && r && "image" === h.type && !d.isMoved() && !h.hasError && (c = d.getThumbPos(h)) || (i = "fade"), 24828 "zoom" === i ? (n.fancybox.stop(o), l = { 24829 top: (s = n.fancybox.getTranslate(o)).top, 24830 left: s.left, 24831 scaleX: s.width / c.width, 24832 scaleY: s.height / c.height, 24833 width: c.width, 24834 height: c.height 24835 }, "auto" == (a = h.opts.zoomOpacity) && (a = Math.abs(h.width / h.height - c.width / c.height) > .1), 24836 a && (c.opacity = 0), n.fancybox.setTranslate(o, l), f(o), n.fancybox.animate(o, c, r, p), 24837 !0) : (i && r ? n.fancybox.animate(h.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"), "fancybox-animated fancybox-fx-" + i, r, p) : !0 === e ? setTimeout(p, r) : p(), 24838 !0))); 24839 }, 24840 cleanUp: function(t) { 24841 var i, r, o, s = this.current.opts.$orig; 24842 this.current.$slide.trigger("onReset"), this.$refs.container.empty().remove(), this.trigger("afterClose", t), 24843 this.current.opts.backFocus && (s && s.length && s.is(":visible") || (s = this.$trigger), 24844 s && s.length && (r = e.scrollX, o = e.scrollY, s.trigger("focus"), n("html, body").scrollTop(o).scrollLeft(r))), 24845 this.current = null, (i = n.fancybox.getInstance()) ? i.activate() : (n("body").removeClass("fancybox-active compensate-for-scrollbar"), 24846 n("#fancybox-style-noscroll").remove()); 24847 }, 24848 trigger: function(e, t) { 24849 var i, r = Array.prototype.slice.call(arguments, 1), o = this, s = t && t.opts ? t : o.current; 24850 if (s ? r.unshift(s) : s = o, r.unshift(o), n.isFunction(s.opts[e]) && (i = s.opts[e].apply(s, r)), 24851 !1 === i) return i; 24852 "afterClose" !== e && o.$refs ? o.$refs.container.trigger(e + ".fb", r) : l.trigger(e + ".fb", r); 24853 }, 24854 updateControls: function() { 24855 var e = this.current, i = e.index, r = this.$refs.container, o = this.$refs.caption, s = e.opts.caption; 24856 e.$slide.trigger("refresh"), s && s.length ? (this.$caption = o, o.children().eq(0).html(s)) : this.$caption = null,
24857 this.hasHiddenControls || this.isIdle || this.showControls(), r.find("[data-fancybox-count]").html(this.group.length), 24858 r.find("[data-fancybox-index]").html(i + 1), r.find("[data-fancybox-prev]").prop("disabled", !e.opts.loop && i <= 0), 24859 r.find("[data-fancybox-next]").prop("disabled", !e.opts.loop && i >= this.group.length - 1), 24860 "image" === e.type ? r.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href", e.opts.image.src || e.src).show() : e.opts.toolbar && r.find("[data-fancybox-download],[data-fancybox-zoom]").hide(), 24861 n(t.activeElement).is(":hidden,[disabled]") && this.$refs.container.trigger("focus"); 24862 }, 24863 hideControls: function(e) { 24864 var t = [ "infobar", "toolbar", "nav" ]; 24865 !e && this.current.opts.preventCaptionOverlap || t.push("caption"), this.$refs.container.removeClass(t.map((function(e) { 24866 return "fancybox-show-" + e; 24867 })).join(" ")), this.hasHiddenControls = !0; 24868 }, 24869 showControls: function() { 24870 var e = this.current ? this.current.opts : this.opts, t = this.$refs.container; 24871 this.hasHiddenControls = !1, this.idleSecondsCounter = 0, t.toggleClass("fancybox-show-toolbar", !(!e.toolbar || !e.buttons)).toggleClass("fancybox-show-infobar", !!(e.infobar && this.group.length > 1)).toggleClass("fancybox-show-caption", !!this.$caption).toggleClass("fancybox-show-nav", !!(e.arrows && this.group.length > 1)).toggleClass("fancybox-is-modal", !!e.modal); 24872 }, 24873 toggleControls: function() { 24874 this.hasHiddenControls ? this.showControls() : this.hideControls(); 24875 } 24876 }), n.fancybox = { 24877 version: "3.5.7", 24878 defaults: s, 24879 getInstance: function(e) { 24880 var t = n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"), i = Array.prototype.slice.call(arguments, 1); 24881 return t instanceof m && ("string" === n.type(e) ? t[e].apply(t, i) : "function" === n.type(e) && e.apply(t, i), 24882 t); 24883 }, 24884 open: function(e, t, n) { 24885 return new m(e, t, n); 24886 }, 24887 close: function(e) { 24888 var t = this.getInstance(); 24889 t && (t.close(), !0 === e && this.close(e)); 24890 }, 24891 destroy: function() { 24892 this.close(!0), l.add("body").off("click.fb-start", "**"); 24893 }, 24894 isMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), 24895 use3d: (r = t.createElement("div"), e.getComputedStyle && e.getComputedStyle(r) && e.getComputedStyle(r).getPropertyValue("transform") && !(t.documentMode && t.documentMode < 11)), 24896 getTranslate: function(e) { 24897 var t; 24898 return !(!e || !e.length) && { 24899 top: (t = e[0].getBoundingClientRect()).top || 0, 24900 left: t.left || 0, 24901 width: t.width, 24902 height: t.height, 24903 opacity: parseFloat(e.css("opacity")) 24904 }; 24905 }, 24906 setTranslate: function(e, t) { 24907 var n = "", i = {}; 24908 if (e && t) return void 0 === t.left && void 0 === t.top || (n = (void 0 === t.left ? e.position().left : t.left) + "px, " + (void 0 === t.top ? e.position().top : t.top) + "px", 24909 n = this.use3d ? "translate3d(" + n + ", 0px)" : "translate(" + n + ")"), void 0 !== t.scaleX && void 0 !== t.scaleY ? n += " scale(" + t.scaleX + ", " + t.scaleY + ")" : void 0 !== t.scaleX && (n += " scaleX(" + t.scaleX + ")"), 24910 n.length && (i.transform = n), void 0 !== t.opacity && (i.op
24910acity = t.opacity), 24911 void 0 !== t.width && (i.width = t.width), void 0 !== t.height && (i.height = t.height), 24912 e.css(i); 24913 }, 24914 animate: function(e, t, i, r, o) { 24915 var s, a = this; 24916 n.isFunction(i) && (r = i, i = null), a.stop(e), s = a.getTranslate(e), e.on(h, (function(l) { 24917 (!l || !l.originalEvent || e.is(l.originalEvent.target) && "z-index" != l.originalEvent.propertyName) && (a.stop(e), 24918 n.isNumeric(i) && e.css("transition-duration", ""), n.isPlainObject(t) ? void 0 !== t.scaleX && void 0 !== t.scaleY && a.setTranslate(e, { 24919 top: t.top, 24920 left: t.left, 24921 width: s.width * t.scaleX, 24922 height: s.height * t.scaleY, 24923 scaleX: 1, 24924 scaleY: 1 24925 }) : !0 !== o && e.removeClass(t), n.isFunction(r) && r(l)); 24926 })), n.isNumeric(i) && e.css("transition-duration", i + "ms"), n.isPlainObject(t) ? (void 0 !== t.scaleX && void 0 !== t.scaleY && (delete t.width, 24927 delete t.height, e.parent().hasClass("fancybox-slide--image") && e.parent().addClass("fancybox-is-scaling")), 24928 n.fancybox.setTranslate(e, t)) : e.addClass(t), e.data("timer", setTimeout((function() { 24929 e.trigger(h); 24930 }), i + 33)); 24931 }, 24932 stop: function(e, t) { 24933 e && e.length && (clearTimeout(e.data("timer")), t && e.trigger(h), e.off(h).css("transition-duration", ""), 24934 e.parent().removeClass("fancybox-is-scaling")); 24935 } 24936 }, n.fn.fancybox = function(e) { 24937 var t; 24938 return (t = (e = e || {}).selector || !1) ? n("body").off("click.fb-start", t).on("click.fb-start", t, { 24939 options: e 24940 }, g) : this.off("click.fb-start").on("click.fb-start", { 24941 items: this, 24942 options: e 24943 }, g), this; 24944 }, l.on("click.fb-start", "[data-fancybox]", g), l.on("click.fb-start", "[data-fancybox-trigger]", (function(e) { 24945 n('[data-fancybox="' + n(this).attr("data-fancybox-trigger") + '"]').eq(n(this).attr("data-fancybox-index") || 0).trigger("click.fb-start", { 24946 $trigger: n(this) 24947 }); 24948 })), o = null, l.on("mousedown mouseup focus blur", ".fancybox-button", (function(e) { 24949 switch (e.type) { 24950 case "mousedown": 24951 o = n(this); 24952 break; 24953 24954 case "mouseup": 24955 o = null; 24956 break; 24957 24958 case "focusin": 24959 n(".fancybox-button").removeClass("fancybox-focus"), n(this).is(o) || n(this).is("[disabled]") || n(this).addClass("fancybox-focus"); 24960 break; 24961 24962 case "focusout": 24963 n(".fancybox-button").removeClass("fancybox-focus"); 24964 } 24965 })); 24966 } 24967 function g(e, t) { 24968 var i, r, o, s = [], a = 0; 24969 e && e.isDefaultPrevented() || (e.preventDefault(), t = t || {}, e && e.data && (t = p(e.data.options, t)), 24970 i = t.$target || n(e.currentTarget).trigger("blur"), (o = n.fancybox.getInstance()) && o.$trigger && o.$trigger.is(i) || (s = t.selector ? n(t.selector) : (r = i.attr("data-fancybox") || "") ? (s = e.data ? e.data.items : []).length ? s.filter('[data-fancybox="' + r + '"]') : n('[data-fancybox="' + r + '"]') : [ i ], 24971 (a = n(s).index(i)) < 0 && (a = 0), (o = n.fancybox.open(s, t, a)).$trigger = i)); 24972 } 24973 }(window, document, jQuery), function(e) { 24974 "use strict"; 24975 var t = { 24976 youtube: { 24977 matcher: /(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i, 24978 params: { 24979 autoplay: 1, 24980 autohide: 1, 24981 fs: 1, 24982 rel: 0, 24983 hd: 1, 24984 wmode: "transparent", 24985 enablejsapi: 1, 24986 html5: 1 24987 }, 24988 paramPlace: 8, 24989 type: "iframe", 24990 url: "https://www.youtube-nocookie.com/embed/$4", 24991 thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg" 24992 }, 24993 vimeo: { 24994 matcher: /^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/, 24995 params: { 24996 autoplay: 1, 24997 hd: 1, 24998 show_title: 1, 24999 show_byline: 1, 25000 show_portrait: 0, 25001 fullscreen: 1 25002 }, 25003 paramPlace: 3, 25004 type: "iframe", 25005 url: "//player.vimeo.com/video/$2" 25006 }, 25007 instagram: { 25008 matcher: /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i, 25009 type: "image", 25010 url: "//$1/p/$2/media/?size=l" 25011 }, 25012 gmap_place: { 25013 matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i, 25014 type: "iframe", 25015 url: function(e) { 25016 return "//maps.google." + e[2] + "/?ll=" + (e[9] ? e[9] + "&z=" + Math.floor(e[10]) + (e[12] ? e[12].replace(/^\//, "&") : "") : e[12] + "").replace(/\?/, "&") + "&output=" + (e[12] && e[12].indexOf("layer=c") > 0 ? "svembed" : "embed"); 25017 } 25018 }, 25019 gmap_search: { 25020 matcher: /(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i, 25021 type: "iframe", 25022 url: function(e) { 25023 return "//maps.google." + e[2] + "/maps?q=" + e[5].replace("query=", "q=").replace("api=1", "") + "&output=embed"; 25024 } 25025 } 25026 }, n = function(t, n, i) { 25027 if (t) return i = i || "", "object" === e.type(i) && (i = e.param(i, !0)), e.each(n, (function(e, n) { 25028 t = t.replace("$" + e, n || ""); 25029 })), i.length && (t += (t.indexOf("?") > 0 ? "&" : "?") + i), t; 25030 }; 25031 e(document).on("objectNeedsType.fb", (function(i, r, o) { 25032 var s, a, l, c, u, d, h, f = o.src || "", p = !1; 25033 s = e.extend(!0, {}, t, o.opts.media), e.each(s, (function(t, i) { 25034 if (l = f.match(i.matcher)) { 25035 if (p = i.type, h = t, d = {}, i.paramPlace && l[i.paramPlace]) { 25036 "?" == (u = l[i.paramPlace])[0] && (u = u.substring(1)), u = u.split("&"); 25037 for (var r = 0; r < u.length; ++r) { 25038 var s = u[r].split("=", 2); 25039 2 == s.length && (d[s[0]] = decodeURIComponent(s[1].replace(/\+/g, " "))); 25040 } 25041 } 25042 return c = e.extend(!0, {}, i.params, o.opts[t], d), f = "function" === e.type(i.url) ? i.url.call(this, l, c, o) : n(i.url, l, c), 25043 a = "function" === e.type(i.thumb) ? i.thumb.call(this, l, c, o) : n(i.thumb, l), 25044 "youtube" === t ? f = f.replace(/&t=((\d+)m)?(\d+)s/, (function(e, t, n, i) { 25045 return "&start=" + ((n ? 60 * parseInt(n, 10) : 0) + parseInt(i, 10)); 25046 })) : "vimeo" === t && (f = f.replace("&%23", "#")), !1; 25047 } 25048 })), p ? (o.opts.thumb || o.opts.$thumb && o.opts.$thumb.length || (o.opts.thumb = a),
25049 "iframe" === p && (o.opts = e.extend(!0, o.opts, { 25050 iframe: { 25051 preload: !1, 25052 attr: { 25053 scrolling: "no" 25054 } 25055 } 25056 })), e.extend(o, { 25057 type: p, 25058 src: f, 25059 origSrc: o.src, 25060 contentSource: h, 25061 contentType: "image" === p ? "image" : "gmap_place" == h || "gmap_search" == h ? "map" : "video" 25062 })) : f && (o.type = o.opts.defaultType); 25063 })); 25064 var i = { 25065 youtube: { 25066 src: "https://www.youtube.com/iframe_api", 25067 class: "YT", 25068 loading: !1, 25069 loaded: !1 25070 }, 25071 vimeo: { 25072 src: "https://player.vimeo.com/api/player.js", 25073 class: "Vimeo", 25074 loading: !1, 25075 loaded: !1 25076 }, 25077 load: function(e) { 25078 var t, n = this; 25079 this[e].loaded ? setTimeout((function() { 25080 n.done(e); 25081 })) : this[e].loading || (this[e].loading = !0, (t = document.createElement("script")).type = "text/javascript", 25082 t.src = this[e].src, "youtube" === e ? window.onYouTubeIframeAPIReady = function() { 25083 n[e].loaded = !0, n.done(e); 25084 } : t.onload = function() { 25085 n[e].loaded = !0, n.done(e); 25086 }, document.body.appendChild(t)); 25087 }, 25088 done: function(t) { 25089 var n, i; 25090 "youtube" === t && delete window.onYouTubeIframeAPIReady, (n = e.fancybox.getInstance()) && (i = n.current.$content.find("iframe"), 25091 "youtube" === t && void 0 !== YT && YT ? new YT.Player(i.attr("id"), { 25092 events: { 25093 onStateChange: function(e) { 25094 0 == e.data && n.next(); 25095 } 25096 } 25097 }) : "vimeo" === t && void 0 !== Vimeo && Vimeo && new Vimeo.Player(i).on("ended", (function() { 25098 n.next(); 25099 }))); 25100 } 25101 }; 25102 e(document).on({ 25103 "afterShow.fb": function(e, t, n) { 25104 t.group.length > 1 && ("youtube" === n.contentSource || "vimeo" === n.contentSource) && i.load(n.contentSource); 25105 } 25106 }); 25107 }(jQuery), function(e, t, n) { 25108 "use strict"; 25109 var i = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || function(t) { 25110 return e.setTimeout(t, 1e3 / 60); 25111 }, r = e.cancelAnimationFrame || e.webkitCancelAnimationFrame || e.mozCancelAnimationFrame || e.oCancelAnimationFrame || function(t) { 25112 e.clearTimeout(t); 25113 }, o = function(t) { 25114 var n = []; 25115 for (var i in t = (t = t.originalEvent || t || e.e).touches && t.touches.length ? t.touches : t.changedTouches && t.changedTouches.length ? t.changedTouches : [ t ]) t[i].pageX ? n.push({ 25116 x: t[i].pageX, 25117 y: t[i].pageY 25118 }) : t[i].clientX && n.push({ 25119 x: t[i].clientX, 25120 y: t[i].clientY 25121 }); 25122 return n; 25123 }, s = function(e, t, n) { 25124 return t && e ? "x" === n ? e.x - t.x : "y" === n ? e.y - t.y : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)) : 0; 25125 }, a = function(e) { 25126 if (e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe') || n.isFunction(e.get(0).onclick) || e.data("selectable")) return !0; 25127 for (var t = 0, i = e[0].attributes, r = i.length; t < r; t++) if ("data-fancybox-" === i[t].nodeName.substr(0, 14)) return !0; 25128 return !1; 25129 }, l = function(t) { 25130 for (var n, i, r, o, s, a = !1; n = t.get(0), i = void 0, r = void 0, o = void 0, 25131 s = void 0, i = e.getComputedStyle(n)["overflow-y"], r = e.getComputedStyle(n)["overflow-x"], 25132 o = ("scroll" === i || "auto" === i) && n.scrollHeight > n.clientHeight, s = ("scroll" === r || "auto" === r) && n.scrollWidth > n.clientWidth, 25133 !(a = o || s) && (t = t.parent()).length && !t.hasClass("fancybox-stage") && !t.is("body"); ) ; 25134 return a; 25135 }, c = function(e) { 25136 this.instance = e, this.$bg = e.$refs.bg, this.$stage = e.$refs.stage, this.$container = e.$refs.container, 25137 this.destroy(), this.$container.on("touchstart.fb.touch mousedown.fb.touch", n.proxy(this, "ontouchstart")); 25138 }; 25139 c.prototype.destroy = function() { 25140 this.$container.off(".fb.touch"), n(t).off(".fb.touch"), this.requestId && (r(this.requestId), 25141 this.requestId = null), this.tapped && (clearTimeout(this.tapped), this.tapped = null); 25142 }, c.prototype.ontouchstart = function(i) { 25143 var r = n(i.target), c = this.instance, u = c.current, d = u.$slide, h = u.$content, f = "touchstart" == i.type; 25144 if (f && this.$container.off("mousedown.fb.touch"), (!i.originalEvent || 2 != i.originalEvent.button) && d.length && r.length && !a(r) && !a(r.parent()) && (r.is("img") || !(i.originalEvent.clientX > r[0].clientWidth + r.offset().left))) { 25145 if (!u || c.isAnimating || u.$slide.hasClass("fancybox-animated")) return i.stopPropagation(), 25146 void i.preventDefault(); 25147 this.realPoints = this.startPoints = o(i), this.startPoints.length && (u.touch && i.stopPropagation(), 25148 this.startEvent = i, this.canTap = !0, this.$target = r, this.$content = h, this.opts = u.opts.touch, 25149 this.isPanning = !1, this.isSwiping = !1, this.isZooming = !1, this.isScrolling = !1, 25150 this.canPan = c.canPan(), this.startTime = (new Date).getTime(), this.distanceX = this.distanceY = this.distance = 0, 25151 this.canvasWidth = Math.round(d[0].clientWidth), this.canvasHeight = Math.round(d[0].clientHeight), 25152 this.contentLastPos = null, this.contentStartPos = n.fancybox.getTranslate(this.$content) || { 25153 top: 0, 25154 left: 0 25155 }, this.sliderStartPos = n.fancybox.getTranslate(d), this.stagePos = n.fancybox.getTranslate(c.$refs.stage), 25156 this.sliderStartPos.top -= this.stagePos.top, this.sliderStartPos.left -= this.stagePos.left, 25157 this.contentStartPos.top -= this.stagePos.top, this.contentStartPos.left -= this.stagePos.left, 25158 n(t).off(".fb.touch").on(f ? "touchend.fb.touch touchcancel.fb.touch" : "mouseup.fb.touch mouseleave.fb.touch", n.proxy(this, "ontouchend")).on(f ? "touchmove.fb.touch" : "mousemove.fb.touch", n.proxy(this, "ontouchmove")), 25159 n.fancybox.isMobile && t.addEventListener("scroll", this.onscroll, !0), ((this.opts || this.canPan) && (r.is(this.$stage) || this.$stage.find(r).length) || (r.is(".fancybox-image") && i.preventDefault(), 25160 n.fancybox.isMobile && r.parents(".fancybox-caption").length)) && (this.isScrollable = l(r) || l(r.parent()), 25161 n.fancybox.isMobile && this.isScrollable || i.preventDefault(), (1 === this.startPoints.length || u.hasError) && (this.canPan ? (n.fancybox.stop(this.$content), 25162 this.isPanning = !0) : this.isSwiping = !0, this.$container.addClass("fancybox-is-grabbing")), 25163 2 === this.startPoints.length && "image" === u.type && (u.isLoaded || u.$ghost) && (this.canTap = !1, 25164 this.isSwiping = !1, this.isPanning = !1, this.isZooming = !0, n.fancybox.stop(this.$content), 25165 this.centerPointStartX = .5 * (this.startPoints[0].x + this.startPoints[1].x) - n(e).scrollLeft(), 25166 this.centerPointStartY = .5 * (this.startPoints[0].y + this.startPoints[1].y) - n(e).scrollTop(), 25167 this.percentageOfImageAtPinchPointX = (this.centerPointStartX - this.contentStartPos.left) / this.contentStartPos.width, 25168 this.percentageOfImageAtPinchPointY = (this.centerPointStartY - this.contentStartPos.top) / this.contentStartPos.height, 25169 this.startDistanceBetweenFingers = s(this.startPoints[0], this.startPoints[1])))); 25170 } 25171 }, c.prototype.onscroll = function(e) { 25172 this.isScrolling = !0, t.removeEventListener("scroll", this.onscroll, !0); 25173 }, c.prototype.ontouchmove = function(e) { 25174 void 0 === e.originalEvent.buttons || 0 !== e.originalEvent.buttons ? this.isScrolling ? this.canTap = !1 : (this.newPoints = o(e), 25175 (this.opts || this.canPan) && this.newPoints.length && this.newPoints.length && (this.isSwiping && !0 === this.isSwiping || e.preventDefault(), 25176 this.distanceX = s(this.newPoints[0], this.startPoints[0], "x"), this.distanceY = s(this.newPoints[0], this.startPoints[0], "y"), 25177 this.distance = s(this.newPoints[0], this.startPoints[0]), this.distance > 0 && (this.isSwiping ? this.onSwipe(e) : this.isPanning ? this.onPan() : this.isZooming && this.onZoom()))) : this.ontouchend(e); 25178 }, c.prototype.onSwipe = function(t) { 25179 var o, s = this, a = s.instance, l = s.isSwiping, c = s.sliderStartPos.left || 0; 25180 if (!0 !== l) "x" == l && (s.distanceX > 0 && (s.instance.group.length < 2 || 0 === s.instance.current.index && !s.instance.current.opts.loop) ? c += Math.pow(s.distanceX, .8) : s.distanceX < 0 && (s.instance.group.length < 2 || s.instance.current.index === s.instance.group.length - 1 && !s.instance.current.opts.loop) ? c -= Math.pow(-s.distanceX, .8) : c += s.distanceX), 25181 s.sliderLastPos = { 25182 top: "x" == l ? 0 : s.sliderStartPos.top + s.distanceY, 25183 left: c 25184 }, s.requestId && (r(s.requestId), s.requestId = null), s.requestId = i((function() { 25185 s.sliderLastPos && (n.each(s.instance.slides, (function(e, t) { 25186 var i = t.pos - s.instance.currPos; 25187 n.fancybox.setTranslate(t.$slide, { 25188 top: s.sliderLastPos.top, 25189 left: s.sliderLastPos.left + i * s.canvasWidth + i * t.opts.gutter 25190 }); 25191 })), s.$container.addClass("fancybox-is-sliding")); 25192 })); else if (Math.abs(s.distance) > 10) { 25193 if (s.canTap = !1, a.group.length < 2 && s.opts.vertical ? s.isSwiping = "y" : a.isDragging || !1 === s.opts.vertical || "auto" === s.opts.vertical && n(e).width() > 800 ? s.isSwiping = "x" : (o = Math.abs(180 * Math.atan2(s.distanceY, s.distanceX) / Math.PI), 25194 s.isSwiping = o > 45 && o < 135 ? "y" : "x"), "y" === s.isSwiping && n.fancybox.isMobile && s.isScrollable) return void (s.isScrolling = !0); 25195 a.isDragging = s.isSwiping, s.startPoints = s.newPoints, n.each(a.slides, (function(e, t) { 25196 var i, r; 25197 n.fancybox.stop(t.$slide), i = n.fancybox.getTranslate(t.$slide), r = n.fancybox.getTranslate(a.$refs.stage), 25198 t.$slide.css({ 25199 transform: "", 25200 opacity: "", 25201 "transition-duration": "" 25202 }).removeClass("fancybox-animated").removeClass((function(e, t) { 25203 return (t.match(/(^|\s)fancybox-fx-\S+/g) || []).join(" "); 25204 })), t.pos === a.current.pos && (s.sliderStartPos.top = i.top - r.top, s.sliderStartPos.left = i.left - r.left), 25205 n.fancybox.setTranslate(t.$slide, { 25206 top: i.top - r.top, 25207 left: i.left - r.left 25208 }); 25209 })), a.SlideShow && a.SlideShow.isActive && a.SlideShow.stop(); 25210 } 25211 }, c.prototype.onPan = function() { 25212 var e = this; 25213 s(e.newPoints[0], e.realPoints[0]) < (n.fancybox.isMobile ? 10 : 5) ? e.startPoints = e.newPoints : (e.canTap = !1, 25214 e.contentLastPos = e.limitMovement(), e.requestId && r(e.requestId), e.requestId = i((function() { 25215 n.fancybox.setTranslate(e.$content, e.contentLastPos); 25216 }))); 25217 }, c.prototype.limitMovement = function() { 25218 var e, t, n, i, r, o, s = this.canvasWidth, a = this.canvasHeight, l = this.distanceX, c = this.distanceY, u = this.contentStartPos, d = u.left, h = u.top, f = u.width, p = u.height; 25219 return r = f > s ? d + l : d, o = h + c, e = Math.max(0, .5 * s - .5 * f), t = Math.max(0, .5 * a - .5 * p), 25220 n = Math.min(s - f, .5 * s - .5 * f), i = Math.min(a - p, .5 * a - .5 * p), l > 0 && r > e && (r = e - 1 + Math.pow(-e + d + l, .8) || 0), 25221 l < 0 && r < n && (r = n + 1 - Math.pow(n - d - l, .8) || 0), c > 0 && o > t && (o = t - 1 + Math.pow(-t + h + c, .8) || 0), 25222 c < 0 && o < i && (o = i + 1 - Math.pow(i - h - c, .8) || 0), { 25223 top: o, 25224 left: r 25225 }; 25226 }, c.prototype.limitPosition = function(e, t, n, i) { 25227 var r = this.canvasWidth, o = this.canvasHeight; 25228 return e = n > r ? (e = e > 0 ? 0 : e) < r - n ? r - n : e : Math.max(0, r / 2 - n / 2), 25229 { 25230 top: t = i > o ? (t = t > 0 ? 0 : t) < o - i ? o - i : t : Math.max(0, o / 2 - i / 2), 25231 left: e 25232 }; 25233 }, c.prototype.onZoom = function() { 25234 var t = this, o = t.contentStartPos, a = o.width, l = o.height, c = o.left, u = o.top, d = s(t.newPoints[0], t.newPoints[1]) / t.startDistanceBetweenFingers, h = Math.floor(a * d), f = Math.floor(l * d), p = (a - h) * t.percentageOfImageAtPinchPointX, m = (l - f) * t.percentageOfImageAtPinchPointY, g = (t.newPoints[0].x + t.newPoints[1].x) / 2 - n(e).scrollLeft(), v = (t.newPoints[0].y + t.newPoints[1].y) / 2 - n(e).scrollTop(), b = g - t.centerPointStartX, y = { 25235 top: u + (m + (v - t.centerPointStartY)), 25236 left: c + (p + b), 25237 scaleX: d, 25238 scaleY: d 25239 }; 25240 t.canTap = !1, t.newWidth = h, t.newHeight = f, t.contentLastPos = y, t.requestId && r(t.requestId), 25241 t.requestId = i((function() { 25242 n.fancybox.setTranslate(t.$content, t.contentLastPos); 25243 })); 25244 }, c.prototype.ontouchend = function(e) { 25245 var i = this.isSwiping, s = this.isPanning, a = this.isZooming, l = this.isScrolling; 25246 if (this.endPoints = o(e), this.dMs = Math.max((new Date).getTime() - this.startTime, 1), 25247 this.$container.removeClass("fancybox-is-grabbing"), n(t).off(".fb.touch"), t.removeEventListener("scroll", this.onscroll, !0), 25248 this.requestId && (r(this.requestId), this.requestId = null), this.isSwiping = !1, 25249 this.isPanning = !1, this.isZooming = !1, this.isScrolling = !1, this.instance.isDragging = !1, 25250 this.canTap) return this.onTap(e); 25251 this.speed = 100, this.velocityX = this.distanceX / this.dMs * .5, this.velocityY = this.distanceY / this.dMs * .5, 25252 s ? this.endPanning() : a ? this.endZooming() : this.endSwiping(i, l); 25253 }, c.prototype.endSwiping = function(e, t) { 25254 var i = !1, r = this.instance.group.length, o = Math.abs(this.distanceX), s = "x" == e && r > 1 && (this.dMs > 130 && o > 10 || o > 50); 25255 this.sliderLastPos = null, "y" == e && !t && Math.abs(this.distanceY) > 50 ? (n.fancybox.animate(this.instance.current.$slide,
25255 { 25256 top: this.sliderStartPos.top + this.distanceY + 150 * this.velocityY, 25257 opacity: 0 25258 }, 200), i = this.instance.close(!0, 250)) : s && this.distanceX > 0 ? i = this.instance.previous(300) : s && this.distanceX < 0 && (i = this.instance.next(300)), 25259 !1 !== i || "x" != e && "y" != e || this.instance.centerSlide(200), this.$container.removeClass("fancybox-is-sliding"); 25260 }, c.prototype.endPanning = function() { 25261 var e, t, i; 25262 this.contentLastPos && (!1 === this.opts.momentum || this.dMs > 350 ? (e = this.contentLastPos.left, 25263 t = this.contentLastPos.top) : (e = this.contentLastPos.left + 500 * this.velocityX, 25264 t = this.contentLastPos.top + 500 * this.velocityY), (i = this.limitPosition(e, t, this.contentStartPos.width, this.contentStartPos.height)).width = this.contentStartPos.width, 25265 i.height = this.contentStartPos.height, n.fancybox.animate(this.$content, i, 366)); 25266 }, c.prototype.endZooming = function() { 25267 var e, t, i, r, o = this.instance.current, s = this.newWidth, a = this.newHeight; 25268 this.contentLastPos && (e = this.contentLastPos.left, r = { 25269 top: t = this.contentLastPos.top, 25270 left: e, 25271 width: s, 25272 height: a, 25273 scaleX: 1, 25274 scaleY: 1 25275 }, n.fancybox.setTranslate(this.$content, r), s < this.canvasWidth && a < this.canvasHeight ? this.instance.scaleToFit(150) : s > o.width || a > o.height ? this.instance.scaleToActual(this.centerPointStartX, this.centerPointStartY, 150) : (i = this.limitPosition(e, t, s, a), 25276 n.fancybox.animate(this.$content, i, 150))); 25277 }, c.prototype.onTap = function(t) { 25278 var i, r = this, s = n(t.target), a = r.instance, l = a.current, c = t && o(t) || r.startPoints, u = c[0] ? c[0].x - n(e).scrollLeft() - r.stagePos.left : 0, d = c[0] ? c[0].y - n(e).scrollTop() - r.stagePos.top : 0, h = function(e) { 25279 var i = l.opts[e]; 25280 if (n.isFunction(i) && (i = i.apply(a, [ l, t ])), i) switch (i) { 25281 case "close": 25282 a.close(r.startEvent); 25283 break; 25284 25285 case "toggleControls": 25286 a.toggleControls(); 25287 break; 25288 25289 case "next": 25290 a.next(); 25291 break; 25292 25293 case "nextOrClose": 25294 a.group.length > 1 ? a.next() : a.close(r.startEvent); 25295 break; 25296 25297 case "zoom": 25298 "image" == l.type && (l.isLoaded || l.$ghost) && (a.canPan() ? a.scaleToFit() : a.isScaledDown() ? a.scaleToActual(u, d) : a.group.length < 2 && a.close(r.startEvent)); 25299 } 25300 }; 25301 if ((!t.originalEvent || 2 != t.originalEvent.button) && (s.is("img") || !(u > s[0].clientWidth + s.offset().left))) { 25302 if (s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")) i = "Outside"; else if (s.is(".fancybox-slide")) i = "Slide"; else { 25303 if (!a.current.$content || !a.current.$content.find(s).addBack().filter(s).length) return; 25304 i = "Content"; 25305 } 25306 if (r.tapped) { 25307 if (clearTimeout(r.tapped), r.tapped = null, Math.abs(u - r.tapX) > 50 || Math.abs(d - r.tapY) > 50) return this; 25308 h("dblclick" + i); 25309 } else r.tapX = u, r.tapY = d, l.opts["dblclick" + i] && l.opts["dblclick" + i] !== l.opts["click" + i] ? r.tapped = setTimeout((function() { 25310 r.tapped = null, a.isAnimating || h("click" + i); 25311 }), 500) : h("click" + i); 25312 return this; 25313 } 25314 }, n(t).on("onActivate.fb", (function(e, t) { 25315 t && !t.Guestures && (t.Guestures = new c(t)); 25316 })).on("beforeClose.fb", (function(e, t) { 25317 t && t.Guestures && t.Guestures.destroy(); 25318 })); 25319 }(window, document, jQuery), function(e, t) { 25320 "use strict"; 25321 t.extend(!0, t.fancybox.defaults, { 25322 btnTpl: { 25323 slideShow: '<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
25323<path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>' 25324 }, 25325 slideShow: { 25326 autoStart: !1, 25327 speed: 3e3, 25328 progress: !0 25329 } 25330 }); 25331 var n = function(e) { 25332 this.instance = e, this.init(); 25333 }; 25334 t.extend(n.prototype, { 25335 timer: null, 25336 isActive: !1, 25337 $button: null, 25338 init: function() { 25339 var e = this, n = e.instance, i = n.group[n.currIndex].opts.slideShow; 25340 e.$button = n.$refs.toolbar.find("[data-fancybox-play]").on("click", (function() { 25341 e.toggle(); 25342 })), n.group.length < 2 || !i ? e.$button.hide() : i.progress && (e.$progress = t('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner)); 25343 }, 25344 set: function(e) { 25345 var n = this.instance, i = n.current; 25346 i && (!0 === e || i.opts.loop || n.currIndex < n.group.length - 1) ? this.isActive && "video" !== i.contentType && (this.$progress && t.fancybox.animate(this.$progress.show(), { 25347 scaleX: 1 25348 }, i.opts.slideShow.speed), this.timer = setTimeout((function() { 25349 n.current.opts.loop || n.current.index != n.group.length - 1 ? n.next() : n.jumpTo(0); 25350 }), i.opts.slideShow.speed)) : (this.stop(), n.idleSecondsCounter = 0, n.showControls()); 25351 }, 25352 clear: function() { 25353 clearTimeout(this.timer), this.timer = null, this.$progress && this.$progress.removeAttr("style").hide(); 25354 }, 25355 start: function() { 25356 var e = this.instance.current; 25357 e && (this.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"), 25358 this.isActive = !0, e.isComplete && this.set(!0), this.instance.trigger("onSlideShowChange", !0)); 25359 }, 25360 stop: function() { 25361 var e = this.instance.current; 25362 this.clear(), this.$button.attr("title", (e.opts.i18n[e.opts.lang] || e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"), 25363 this.isActive = !1, this.instance.trigger("onSlideShowChange", !1), this.$progress && this.$progress.removeAttr("style").hide(); 25364 }, 25365 toggle: function() { 25366 this.isActive ? this.stop() : this.start(); 25367 } 25368 }), t(e).on({ 25369 "onInit.fb": function(e, t) { 25370 t && !t.SlideShow && (t.SlideShow = new n(t)); 25371 }, 25372 "beforeShow.fb": function(e, t, n, i) { 25373 var r = t && t.SlideShow; 25374 i ? r && n.opts.slideShow.autoStart && r.start() : r && r.isActive && r.clear(); 25375 }, 25376 "afterShow.fb": function(e, t, n) { 25377 var i = t && t.SlideShow; 25378 i && i.isActive && i.set(); 25379 }, 25380 "afterKeydown.fb": function(n, i, r, o, s) { 25381 var a = i && i.SlideShow; 25382 !a || !r.opts.slideShow || 80 !== s && 32 !== s || t(e.activeElement).is("button,a,input") || (o.preventDefault(), 25383 a.toggle()); 25384 }, 25385 "beforeClose.fb onDeactivate.fb": function(e, t) { 25386 var n = t && t.SlideShow; 25387 n && n.stop(); 25388 } 25389 }), t(e).on("visibilitychange", (function() { 25390 var n = t.fancybox.getInstance(), i = n && n.SlideShow; 25391 i && i.isActive && (e.hidden ? i.clear() : i.set()); 25392 })); 25393 }(document, jQuery), function(e, t) { 25394 "use strict"; 25395 var n = function() { 25396 for (var t = [ [ "requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror" ], [ "webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror" ], [ "webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror" ], [ "mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror" ], [ "msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError" ] ], n = {}, i = 0; i < t.length; i++) { 25397 var r = t[i]; 25398 if (r && r[1] in e) { 25399 for (var o = 0; o < r.length; o++) n[t[0][o]] = r[o]; 25400 return n; 25401 } 25402 } 25403 return !1; 25404 }(); 25405 if (n) { 25406 var i = { 25407 request: function(t) { 25408 (t = t || e.documentElement)[n.requestFullscreen](t.ALLOW_KEYBOARD_INPUT); 25409 }, 25410 exit: function() { 25411 e[n.exitFullscreen](); 25412 }, 25413 toggle: function(t) { 25414 t = t || e.documentElement, this.isFullscreen() ? this.exit() : this.request(t); 25415 }, 25416 isFullscreen: function() { 25417 return Boolean(e[n.fullscreenElement]); 25418 }, 25419 enabled: function() { 25420 return Boolean(e[n.fullscreenEnabled]); 25421 } 25422 }; 25423 t.extend(!0, t.fancybox.defaults, { 25424 btnTpl: { 25425 fullScreen: '<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
25425<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>' 25426 }, 25427 fullScreen: { 25428 autoStart: !1 25429 } 25430 }), t(e).on(n.fullscreenchange, (function() { 25431 var e = i.isFullscreen(), n = t.fancybox.getInstance(); 25432 n && (n.current && "image" === n.current.type && n.isAnimating && (n.isAnimating = !1, 25433 n.update(!0, !0, 0), n.isComplete || n.complete()), n.trigger("onFullscreenChange", e), 25434 n.$refs.container.toggleClass("fancybox-is-fullscreen", e), n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter", !e).toggleClass("fancybox-button--fsexit", e)); 25435 })); 25436 } 25437 t(e).on({ 25438 "onInit.fb": function(e, t) { 25439 n ? t && t.group[t.currIndex].opts.fullScreen ? (t.$refs.container.on("click.fb-fullscreen", "[data-fancybox-fullscreen]", (function(e) { 25440 e.stopPropagation(), e.preventDefault(), i.toggle(); 25441 })), t.opts.fullScreen && !0 === t.opts.fullScreen.autoStart && i.request(), t.FullScreen = i) : t && t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide() : t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove(); 25442 }, 25443 "afterKeydown.fb": function(e, t, n, i, r) { 25444 t && t.FullScreen && 70 === r && (i.preventDefault(), t.FullScreen.toggle()); 25445 }, 25446 "beforeClose.fb": function(e, t) { 25447 t && t.FullScreen && t.$refs.container.hasClass("fancybox-is-fullscreen") && i.exit(); 25448 } 25449 }); 25450 }(document, jQuery), function(e, t) { 25451 "use strict"; 25452 var n = "fancybox-thumbs"; 25453 t.fancybox.defaults = t.extend(!0, { 25454 btnTpl: { 25455 thumbs: '<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>' 25456 }, 25457 thumbs: { 25458 autoStart: !1, 25459 hideOnClose: !0, 25460 parentEl: ".fancybox-container", 25461 axis: "y" 25462 } 25463 }, t.fancybox.defaults); 25464 var i = function(e) { 25465 this.init(e); 25466 }; 25467 t.extend(i.prototype, { 25468 $button: null, 25469 $grid: null, 25470 $list: null, 25471 isVisible: !1, 25472 isActive: !1, 25473 init: function(e) { 25474 var t = this, n = e.group, i = 0; 25475 t.instance = e, t.opts = n[e.currIndex].opts.thumbs, e.Thumbs = t, t.$button = e.$refs.toolbar.find("[data-fancybox-thumbs]"); 25476 for (var r = 0, o = n.length; r < o && (n[r].thumb && i++, !(i > 1)); r++) ; 25477 i > 1 && t.opts ? (t.$button.removeAttr("style").on("click", (function() { 25478 t.toggle(); 25479 })), t.isActive = !0) : t.$button.hide(); 25480 }, 25481 create: function() { 25482 var e, i = this.instance, r = this.opts.parentEl, o = []; 25483 this.$grid || (this.$grid = t('<div class="' + n + " " + n + "-" + this.opts.axis + '"></div>').appendTo(i.$refs.container.find(r).addBack().filter(r)), 25484 this.$grid.on("click", "a", (function() { 25485 i.jumpTo(t(this).attr("data-index")); 25486 }))), this.$list || (this.$list = t('<div class="' + n + '__list">').appendTo(this.$grid)), 25487 t.each(i.group, (function(t, n) { 25488 (e = n.thumb) || "image" !== n.type || (e = n.src), o.push('<a href="javascript:;" tabindex="0" data-index="' + t + '"' + (e && e.length ? ' style="background-image:url(' + e + ')"' : 'class="fancybox-thumbs-missing"') + "></a>"); 25489 })), this.$list[0].innerHTML = o.join(""), "x" === this.opts.axis && this.$list.width(parseInt(this.$grid.css("padding-right"), 10) + i.group.length * this.$list.children().eq(0).outerWidth(!0)); 25490 }, 25491 focus: function(e) { 25492 var t, n, i = this.$list, r = this.$grid; 25493 this.instance.current && (n = (t = i.children().removeClass("fancybox-thumbs-active").filter('[data-index="' + this.instance.current.index + '"]').addClass("fancybox-thumbs-active")).position(), 25494 "y" === this.opts.axis && (n.top < 0 || n.top > i.height() - t.outerHeight()) ? i.stop().animate({ 25495 scrollTop: i.scrollTop() + n.top 25496 }, e) : "x" === this.opts.axis && (n.left < r.scrollLeft() || n.left > r.scrollLeft() + (r.width() - t.outerWidth())) && i.parent().stop().animate({ 25497 scrollLeft: n.left 25498 }, e)); 25499 }, 25500 update: function() { 25501 this.instance.$refs.container.toggleClass("fancybox-show-thumbs", this.isVisible), 25502 this.isVisible ? (this.$grid || this.create(), this.instance.trigger("onThumbsShow"), 25503 this.focus(0)) : this.$grid && this.instance.trigger("onThumbsHide"), this.instance.update(
25503); 25504 }, 25505 hide: function() { 25506 this.isVisible = !1, this.update(); 25507 }, 25508 show: function() { 25509 this.isVisible = !0, this.update(); 25510 }, 25511 toggle: function() { 25512 this.isVisible = !this.isVisible, this.update(); 25513 } 25514 }), t(e).on({ 25515 "onInit.fb": function(e, t) { 25516 var n; 25517 t && !t.Thumbs && (n = new i(t)).isActive && !0 === n.opts.autoStart && n.show(); 25518 }, 25519 "beforeShow.fb": function(e, t, n, i) { 25520 var r = t && t.Thumbs; 25521 r && r.isVisible && r.focus(i ? 0 : 250); 25522 }, 25523 "afterKeydown.fb": function(e, t, n, i, r) { 25524 var o = t && t.Thumbs; 25525 o && o.isActive && 71 === r && (i.preventDefault(), o.toggle()); 25526 }, 25527 "beforeClose.fb": function(e, t) { 25528 var n = t && t.Thumbs; 25529 n && n.isVisible && !1 !== n.opts.hideOnClose && n.$grid.hide(); 25530 } 25531 }); 25532 }(document, jQuery), function(e, t) { 25533 "use strict"; 25534 t.extend(!0, t.fancybox.defaults, { 25535 btnTpl: { 25536 share: '<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>' 25537 }, 25538 share: { 25539 url: function(e, t) { 25540 return !e.currentHash && "inline" !== t.type && "html" !== t.type && (t.origSrc || t.src) || window.location; 25541 }, 25542 tpl: '<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>' 25543 } 25544 }), t(e).on("click", "[data-fancybox-share]", (function() { 25545 var e, n, i, r, o = t.fancybox.getInstance(), s = o.current || null; 25546 s && ("function" === t.type(s.opts.share.url) && (e = s.opts.share.url.apply(s, [ o, s ])), 25547 n = s.opts.share.tpl.replace(/\{\{media\}\}/g, "image" === s.type ? encodeURIComponent(s.src) : "").replace(/\{\{url\}\}/g, encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g, (i = e, 25548 r = { 25549 "&": "&", 25550 "<": "<", 25551 ">": ">", 25552 '"': """, 25553 "'": "'", 25554 "/": "/", 25555 "`": "`", 25556 "=": "=" 25557 }, String(i).replace(/[&<>"'`=\/]/g, (function(e) { 25558 return r[e]; 25559 })))).replace(/\{\{descr\}\}/g, o.$caption ? encodeURIComponent(o.$caption.text()) : ""), 25560 t.fancybox.open({ 25561 src: o.translate(o, n), 25562 type: "html", 25563 opts: { 25564 touch: !1, 25565 animationEffect: !1, 25566 afterLoad: function(e, t) { 25567 o.$refs.container.one("beforeClose.fb", (function() { 25568 e.close(null, 0); 25569 })), t.$content.find(".fancybox-share__button").click((function() { 25570 return window.open(this.href, "Share", "width=550, height=450"), !1; 25571 })); 25572 }, 25573 mobile: { 25574 autoFocus: !1 25575 } 25576 } 25577 })); 25578 })); 25579 }(document, jQuery), function(e, t, n) { 25580 "use strict"; 25581 function i() { 25582 var t = e.location.hash.substr(1), n = t.split("-"), i = n.length > 1 && /^\+?\d+$/.test(n[n.length - 1]) && parseInt(n.pop(-1), 10) || 1; 25583 return { 25584 hash: t, 25585 index: i < 1 ? 1 : i, 25586 gallery: n.join("-") 25587 }; 25588 } 25589 function r(e) { 25590 "" !== e.gallery && n("[data-fancybox='" + n.escapeSelector(e.gallery) + "']").eq(e.index - 1).focus().trigger("click.fb-start"); 25591 } 25592 function o(e) { 25593 var t, n; 25594 return !!e && ("" !== (n = (t = e.current ? e.current.opts : e.opts).hash || (t.$orig ? t.$orig.data("fancybox") || t.$orig.data("fancybox-trigger") : "")) && n); 25595 } 25596 n.escapeSelector || (n.escapeSelector = function(e) { 25597 return (e + "").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g, (function(e, t) { 25598 return t ? "\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e; 25599 })); 25600 }), n((function() { 25601 !1 !== n.fancybox.defaults.hash && (n(t).on({ 25602 "onInit.fb": function(e, t) { 25603 var n, r; 25604 !1 !== t.group[t.currIndex].opts.hash && (n = i(), (r = o(t)) && n.gallery && r == n.gallery && (t.currIndex = n.index - 1)); 25605 }, 25606 "beforeShow.fb": function(n, i, r, s) { 25607 var a; 25608 r && !1 !== r.opts.hash && (a = o(i)) && (i.currentHash = a + (i.group.length > 1 ? "-" + (r.index + 1) : ""), 25609 e.location.hash !== "#" + i.currentHash && (s && !i.origHash && (i.origHash = e.location.hash), 25610 i.hashTimer && clearTimeout(i.hashTimer), i.hashTimer = setTimeout((function() { 25611 "replaceState" in e.history ? (e.history[s ? "pushState" : "replaceState"]({}, t.title, e.location.pathname + e.location.search + "#" + i.currentHash), 25612 s && (i.hasCreatedHistory = !0)) : e.location.hash = i.currentHash, i.hashTimer = null; 25613 }), 300))); 25614 }, 25615 "beforeClose.fb": function(n, i, r) { 25616 r && !1 !== r.opts.hash && (clearTimeout(i.hashTimer), i.currentHash && i.hasCreatedHistory ? e.history.back() : i.currentHash && ("replaceState" in e.history ? e.history.replaceState({}, t.title, e.location.pathname + e.location.search + (i.origHash || "")) : e.location.hash = i.origHash), 25617 i.currentHash = null); 25618 } 25619 }), n(e).on("hashchange.fb", (function() { 25620 var e = i(), t = null; 25621 n.each(n(".fancybox-container").get().reverse(), (function(e, i) { 25622 var r = n(i).data("FancyBox"); 25623 if (r && r.currentHash) return t = r, !1; 25624 })), t ? t.currentHash === e.gallery + "-" + e.index || 1 === e.index && t.currentHash == e.gallery || (t.currentHash = null, 25625 t.close()) : "" !== e.gallery && r(e); 25626 })), setTimeout((function() { 25627 n.fancybox.getInstance() || r(i()); 25628 }), 50)); 25629 })); 25630 }(window, document, jQuery), function(e, t) { 25631 "use strict"; 25632 var n = (new Date).getTime(); 25633 t(e).on({ 25634 "onInit.fb": function(e, t, i) { 25635 t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll", (function(e) { 25636 var i = t.current, r = (new Date).getTime(); 25637 t.group.length < 2 || !1 === i.opts.wheel || "auto" === i.opts.wheel && "image" !== i.type || (e.preventDefault(), 25638 e.stopPropagation(), i.$slide.hasClass("fancybox-animated") || (e = e.originalEvent || e, 25639 r - n < 250 || (n = r, t[(-e.deltaY || -e.deltaX || e.wheelDelta || -e.detail) < 0 ? "next" : "previous"]()))); 25640 })); 25641 } 25642 }); 25643 }(document, jQuery); 25644 }, function(e, t, n) { 25645 (function(e) { 25646 e.exports = function() { 25647 "use strict"; 25648 var t, n; 25649 function i() { 25650 return t.apply(null, arguments); 25651 } 25652 function r(e) { 25653 return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e); 25654 } 25655 function o(e) { 25656 return null != e && "[object Object]" === Object.prototype.toString.call(e); 25657 } 25658 function s(e, t) { 25659 return Object.prototype.hasOwnProperty.call(e, t); 25660 } 25661 function a(e) { 25662 if (Object.getOwnPropertyNames) return 0 === Object.getOwnPropertyNames(e).length; 25663 var t; 25664 for (t in e) if (s(e, t)) return !1; 25665 return !0; 25666 } 25667 function l(e) { 25668 return void 0 === e; 25669 } 25670 function c(e) { 25671 return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e); 25672 } 25673 function u(e) { 25674 return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e); 25675 } 25676 function d(e, t) { 25677 var n, i = [], r = e.length; 25678 for (n = 0; n < r; ++n) i.push(t(e[n], n)); 25679 return i; 25680 } 25681 function h(e, t) { 25682 for (var n in t) s(t, n) && (e[n] = t[n]); 25683 return s(t, "toString") && (e.toString = t.toString), s(t, "valueOf") && (e.valueOf = t.valueOf), 25684 e; 25685 } 25686 function f(e, t, n, i) { 25687 return Et(e, t, n, i, !0).utc(); 25688 } 25689 function p(e) { 25690 return null == e._pf && (e._pf = { 25691 empty: !1, 25692 unusedTokens: [], 25693 unusedInput: [], 25694 overflow: -2, 25695 charsLeftOver: 0, 25696 nullInput: !1, 25697 invalidEra: null, 25698 invalidMonth: null, 25699 invalidFormat: !1, 25700 userInvalidated: !1, 25701 iso: !1, 25702 parsedDateParts: [], 25703 era: null, 25704 meridiem: null, 25705 rfc2822: !1, 25706 weekdayMismatch: !1 25707 }), e._pf; 25708 } 25709 function m(e) { 25710 var t = null, i = !1, r = e._d && !isNaN(e._d.getTime()); 25711 return r && (t = p(e), i = n.call(t.parsedDateParts, (function(e) { 25712 return null != e; 25713 }
25713)), r = t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && i), 25714 e._strict && (r = r && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour)), 25715 null != Object.isFrozen && Object.isFrozen(e) ? r : (e._isValid = r, e._isValid); 25716 } 25717 function g(e) { 25718 var t = f(NaN); 25719 return null != e ? h(p(t), e) : p(t).userInvalidated = !0, t; 25720 } 25721 n = Array.prototype.some ? Array.prototype.some : function(e) { 25722 var t, n = Object(this), i = n.length >>> 0; 25723 for (t = 0; t < i; t++) if (t in n && e.call(this, n[t], t, n)) return !0; 25724 return !1; 25725 }; 25726 var v = i.momentProperties = [], b = !1; 25727 function y(e, t) { 25728 var n, i, r, o = v.length; 25729 if (l(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), l(t._i) || (e._i = t._i), 25730 l(t._f) || (e._f = t._f), l(t._l) || (e._l = t._l), l(t._strict) || (e._strict = t._strict), 25731 l(t._tzm) || (e._tzm = t._tzm), l(t._isUTC) || (e._isUTC = t._isUTC), l(t._offset) || (e._offset = t._offset), 25732 l(t._pf) || (e._pf = p(t)), l(t._locale) || (e._locale = t._locale), o > 0) for (n = 0; n < o; n++) l(r = t[i = v[n]]) || (e[i] = r); 25733 return e; 25734 } 25735 function x(e) { 25736 y(this, e), this._d = new Date(null != e._d ? e._d.getTime() : NaN), this.isValid() || (this._d = new Date(NaN)), 25737 !1 === b && (b = !0, i.updateOffset(this), b = !1); 25738 } 25739 function w(e) { 25740 return e instanceof x || null != e && null != e._isAMomentObject; 25741 } 25742 function _(e) { 25743 !1 === i.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e); 25744 } 25745 function S(e, t) { 25746 var n = !0; 25747 return h((function() { 25748 if (null != i.deprecationHandler && i.deprecationHandler(null, e), n) { 25749 var r, o, a, l = [], c = arguments.length; 25750 for (o = 0; o < c; o++) { 25751 if (r = "", "object" == typeof arguments[o]) { 25752 for (a in r += "\n[" + o + "] ", arguments[0]) s(arguments[0], a) && (r += a + ": " + arguments[0][a] + ", "); 25753 r = r.slice(0, -2); 25754 } else r = arguments[o]; 25755 l.push(r); 25756 } 25757 _(e + "\nArguments: " + Array.prototype.slice.call(l).join("") + "\n" + (new Error).stack), 25758 n = !1; 25759 } 25760 return t.apply(this, arguments); 25761 }), t); 25762 } 25763 var E, C = {}; 25764 function T(e, t) { 25765 null != i.deprecationHandler && i.deprecationHandler(e, t), C[e] || (_(t), C[e] = !0); 25766 } 25767 function k(e) { 25768 return "undefined" != typeof Function && e instanceof Function || "[object Function]" === Object.prototype.toString.call(e); 25769 } 25770 function M(e, t) { 25771 var n, i = h({}, e); 25772 for (n in t) s(t, n) && (o(e[n]) && o(t[n]) ? (i[n] = {}, h(i[n], e[n]), h(i[n], t[n])) : null != t[n] ? i[n] = t[n] : delete i[n]); 25773 for (n in e) s(e, n) && !s(t, n) && o(e[n]) && (i[n] = h({}, i[n])); 25774 return i; 25775 } 25776 function A(e) { 25777 null != e && this.set(e); 25778 } 25779 function O(e, t, n) { 25780 var i = "" + Math.abs(e), r = t - i.length; 25781 return (e >= 0 ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, r)).toString().substr(1) + i; 25782 } 25783 i.suppressDeprecationWarnings = !1, i.deprecationHandler = null, E = Object.keys ? Object.keys : function(e) { 25784 var t, n = []; 25785 for (t in e) s(e, t) && n.push(t); 25786 return n; 25787 }; 25788 var P = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
25788|x|X|zz?|ZZ?|.)/g, I = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, L = {}, D = {}; 25789 function N(e, t, n, i) { 25790 var r = i; 25791 "string" == typeof i && (r = function() { 25792 return this[i](); 25793 }), e && (D[e] = r), t && (D[t[0]] = function() { 25794 return O(r.apply(this, arguments), t[1], t[2]); 25795 }), n && (D[n] = function() { 25796 return this.localeData().ordinal(r.apply(this, arguments), e); 25797 }); 25798 } 25799 function F(e, t) { 25800 return e.isValid() ? (t = j(t, e.localeData()), L[t] = L[t] || function(e) { 25801 var t, n, i, r = e.match(P); 25802 for (t = 0, n = r.length; t < n; t++) D[r[t]] ? r[t] = D[r[t]] : r[t] = (i = r[t]).match(/\[[\s\S]/) ? i.replace(/^\[|\]$/g, "") : i.replace(/\\/g, ""); 25803 return function(t) { 25804 var i, o = ""; 25805 for (i = 0; i < n; i++) o += k(r[i]) ? r[i].call(t, e) : r[i]; 25806 return o; 25807 }; 25808 }(t), L[t](e)) : e.localeData().invalidDate(); 25809 } 25810 function j(e, t) { 25811 var n = 5; 25812 function i(e) { 25813 return t.longDateFormat(e) || e; 25814 } 25815 for (I.lastIndex = 0; n >= 0 && I.test(e); ) e = e.replace(I, i), I.lastIndex = 0, 25816 n -= 1; 25817 return e; 25818 } 25819 var R = { 25820 D: "date", 25821 dates: "date", 25822 date: "date", 25823 d: "day", 25824 days: "day", 25825 day: "day", 25826 e: "weekday", 25827 weekdays: "weekday", 25828 weekday: "weekday", 25829 E: "isoWeekday", 25830 isoweekdays: "isoWeekday", 25831 isoweekday: "isoWeekday", 25832 DDD: "dayOfYear", 25833 dayofyears: "dayOfYear", 25834 dayofyear: "dayOfYear", 25835 h: "hour", 25836 hours: "hour", 25837 hour: "hour", 25838 ms: "millisecond", 25839 milliseconds: "millisecond", 25840 millisecond: "millisecond", 25841 m: "minute", 25842 minutes: "minute", 25843 minute: "minute", 25844 M: "month", 25845 months: "month", 25846 month: "month", 25847 Q: "quarter", 25848 quarters: "quarter", 25849 quarter: "quarter", 25850 s: "second", 25851 seconds: "second", 25852 second: "second", 25853 gg: "weekYear", 25854 weekyears: "weekYear", 25855 weekyear: "weekYear", 25856 GG: "isoWeekYear", 25857 isoweekyears: "isoWeekYear", 25858 isoweekyear: "isoWeekYear", 25859 w: "week", 25860 weeks: "week", 25861 week: "week", 25862 W: "isoWeek", 25863 isoweeks: "isoWeek", 25864 isoweek: "isoWeek", 25865 y: "year", 25866 years: "year", 25867 year: "year" 25868 }; 25869 function B(e) { 25870 return "string" == typeof e ? R[e] || R[e.toLowerCase()] : void 0; 25871 } 25872 function z(e) { 25873 var t, n, i = {}; 25874 for (n in e) s(e, n) && (t = B(n)) && (i[t] = e[n]); 25875 return i; 25876 } 25877 var H, $ = { 25878 date: 9, 25879 day: 11, 25880 weekday: 11, 25881 isoWeekday: 11, 25882 dayOfYear: 4, 25883 hour: 13, 25884 millisecond: 16, 25885 minute: 14, 25886 month: 8, 25887 quarter: 7, 25888 second: 15, 25889 weekYear: 1, 25890 isoWeekYear: 1, 25891 week: 5, 25892 isoWeek: 5, 25893 year: 1 25894 }, W = /\d/, q = /\d\d/, V = /\d{3}/, Y = /\d{4}/, G = /[+-]?\d{6}/, U = /\d\d?/, X = /\d\d\d\d?/, K = /\d\d\d\d\d\d?/, Z = /\d{1,3}/, J = /\d{1,4}/, Q = /[+-]?\d{1,6}/, ee = /\d+/, te = /[+-]?\d+/, ne = /Z|[+-]\d\d:?\d\d/gi, ie = /Z|[+-]\d\d(?::?\d\d)?/gi, re = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, oe = /^[1-9]\d?/, se = /^([1-9]\d|\d)/; 25895 function ae(e, t, n) { 25896 H[e] = k(t) ? t : function(e, i) { 25897 return e && n ? n : t; 25898 }; 25899 } 25900 function le(e, t) { 25901 return s(H, e) ? H[e](t._strict, t._locale) : new RegExp(ce(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, (function(e, t, n, i, r) { 25902 return t || n || i || r; 25903 })))); 25904 } 25905 function ce(e) { 25906 return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); 25907 } 25908 function ue(e) { 25909 return e < 0 ? Math.ceil(e) || 0 : Math.floor(e); 25910 } 25911 function de(e) { 25912 var t = +e, n = 0; 25913 return 0 !== t && isFinite(t) && (n = ue(t)), n; 25914 } 25915 H = {}; 25916 var he = {}; 25917 function fe(e, t) { 25918 var n, i, r = t; 25919 for ("string" == typeof e && (e = [ e ]), c(t) && (r = function(e, n) { 25920 n[t] = de(e); 25921 }), i = e.length, n = 0; n < i; n++) he[e[n]] = r; 25922 } 25923 function pe(e, t) { 25924 fe(e, (function(e, n, i, r) { 25925 i._w = i._w || {}, t(e, i._w, i, r); 25926 })); 25927 } 25928 function me(e, t, n) { 25929 null != t && s(he, e) && he[e](t, n._a, n, e); 25930 } 25931 function ge(e) { 25932 return e % 4 == 0 && e % 100 != 0 || e % 400 == 0; 25933 } 25934 function ve(e) { 25935 return ge(e) ? 366 : 365; 25936 } 25937 N("Y", 0, 0, (function() { 25938 var e = this.year(); 25939 return e <= 9999 ? O(e, 4) : "+" + e; 25940 })), N(0, [ "YY", 2 ], 0, (function() { 25941 return this.year() % 100; 25942 })), N(0, [ "YYYY", 4 ], 0, "year"), N(0, [ "YYYYY", 5 ], 0, "year"), N(0, [ "YYYYYY", 6, !0 ], 0, "year"), 25943 ae("Y", te), ae("YY", U, q), ae("YYYY", J, Y), ae("YYYYY", Q, G), ae("YYYYYY", Q, G), 25944 fe([ "YYYYY", "YYYYYY" ], 0), fe("YYYY", (function(e, t) { 25945 t[0] = 2 === e.length ? i.parseTwoDigitYear(e) : de(e); 25946 })), fe("YY", (function(e, t) { 25947 t[0] = i.parseTwoDigitYear(e); 25948 })), fe("Y", (function(e, t) { 25949 t[0] = parseInt(e, 10); 25950 })), i.parseTwoDigitYear = function(e) { 25951 return de(e) + (de(e) > 68 ? 1900 : 2e3); 25952 }; 25953 var be, ye = xe("FullYear", !0); 25954 function xe(e, t) { 25955 return function(n) { 25956 return null != n ? (_e(this, e, n), i.updateOffset(this, t), this) : we(this, e); 25957 }; 25958 } 25959 function we(e, t) { 25960 if (!e.isValid()) return NaN; 25961 var n = e._d, i = e._isUTC; 25962 switch (t) { 25963 case "Milliseconds": 25964 return i ? n.getUTCMilliseconds() : n.getMilliseconds(); 25965 25966 case "Seconds": 25967 return i ? n.getUTCSeconds() : n.getSeconds(); 25968 25969 case "Minutes": 25970 return i ? n.getUTCMinutes() : n.getMinutes(); 25971 25972 case "Hours": 25973 return i ? n.getUTCHours() : n.getHours(); 25974 25975 case "Date": 25976 return i ? n.getUTCDate() : n.getDate(); 25977 25978 case "Day": 25979 return i ? n.getUTCDay() : n.getDay(); 25980 25981 case "Month": 25982 return i ? n.getUTCMonth() : n.getMonth(); 25983 25984 case "FullYear": 25985 return i ? n.getUTCFullYear() : n.getFullYear(); 25986 25987 default: 25988 return NaN; 25989 } 25990 } 25991 function _e(e, t, n) { 25992 var i, r, o, s, a; 25993 if (e.isValid() && !isNaN(n)) { 25994 switch (i = e._d, r = e._isUTC, t) { 25995 case "Milliseconds": 25996 return void (r ? i.setUTCMilliseconds(n) : i.setMilliseconds(n)); 25997 25998 case "Seconds": 25999 return void (r ? i.setUTCSeconds(n) : i.setSeconds(n)); 26000 26001 case "Minutes": 26002 return void (r ? i.setUTCMinutes(n) : i.setMinutes(n)); 26003 26004 case "Hours": 26005 return void (r ? i.setUTCHours(n) : i.setHours(n)); 26006 26007 case "Date": 26008 return void (r ? i.setUTCDate(n) : i.setDate(n)); 26009 26010 case "FullYear": 26011 break; 26012 26013 default: 26014 return; 26015 } 26016 o = n, s = e.month(), a = 29 !== (a = e.date()) || 1 !== s || ge(o) ? a : 28, r ? i.setUTCFullYear(o, s, a) : i.setFullYear(o, s, a); 26017 } 26018 } 26019 function Se(e, t) { 26020 if (isNaN(e) || isNaN(t)) return NaN; 26021 var n, i = (t % (n = 12) + n) % n; 26022 return e += (t - i) / 12, 1 === i ? ge(e) ? 29 : 28 : 31 - i % 7 % 2; 26023 } 26024 be = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) { 26025 var t; 26026 for (t = 0; t < this.length; ++t) if (this[t] === e) return t; 26027 return -1; 26028 }, N("M", [ "MM", 2 ], "Mo", (function() { 26029 return this.month() + 1; 26030 })), N("MMM", 0, 0, (function(e) { 26031 return this.localeData().monthsShort(this, e); 26032 })), N("MMMM", 0, 0, (function(e) { 26033 return this.localeData().months(this, e); 26034 })), ae("M", U, oe), ae("MM", U, q), ae("MMM", (function(e, t) { 26035 return t.monthsShortRegex(e); 26036 })), ae("MMMM", (function(e, t) { 26037 return t.monthsRegex(e); 26038 })), fe([ "M", "MM" ], (function(e, t) { 26039 t[1] = de(e) - 1; 26040 })), fe([ "MMM", "MMMM" ], (function(e, t, n, i) { 26041 var r = n._locale.monthsParse(e, i, n._strict); 26042 null != r ? t[1] = r : p(n).invalidMonth = e; 26043 })); 26044 var Ee = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), Ce = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), Te = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, ke = re, Me = re; 26045 function Ae(e, t, n) { 26046 var i, r, o, s = e.toLocaleLowerCase(); 26047 if (!this._monthsParse) for (this._monthsParse = [], this._longMonthsParse = [], 26048 this._shortMonthsParse = [], i = 0; i < 12; ++i) o = f([ 2e3, i ]), this._shortMonthsParse[i] = this.monthsShort(o, "").toLocaleLowerCase(), 26049 this._longMonthsParse[i] = this.months(o, "").toLocaleLowerCase(); 26050 return n ? "MMM" === t ? -1 !== (r = be.call(this._shortMonthsParse, s)) ? r : null : -1 !== (r = be.call(this._longMonthsParse, s)) ? r : null : "MMM" === t ? -1 !== (r = be.call(this._shortMonthsParse, s)) || -1 !== (r = be.call(this._longMonthsParse, s)) ? r : null : -1 !== (r = be.call(this._longMonthsParse, s)) || -1 !== (r = be.call(this._shortMonthsParse, s)) ? r : null; 26051 } 26052 function Oe(e, t) { 26053 if (!e.isValid()) return e; 26054 if ("string" == typeof t) if (/^\d+$/.test(t)) t = de(t); else if (!c(t = e.localeData().monthsParse(t))) return e; 26055 var n = t, i = e.date(); 26056 return i = i < 29 ? i : Math.min(i, Se(e.year(), n)
26056), e._isUTC ? e._d.setUTCMonth(n, i) : e._d.setMonth(n, i), 26057 e; 26058 } 26059 function Pe(e) { 26060 return null != e ? (Oe(this, e), i.updateOffset(this, !0), this) : we(this, "Month"); 26061 } 26062 function Ie() { 26063 function e(e, t) { 26064 return t.length - e.length; 26065 } 26066 var t, n, i, r, o = [], s = [], a = []; 26067 for (t = 0; t < 12; t++) n = f([ 2e3, t ]), i = ce(this.monthsShort(n, "")), r = ce(this.months(n, "")), 26068 o.push(i), s.push(r), a.push(r), a.push(i); 26069 o.sort(e), s.sort(e), a.sort(e), this._monthsRegex = new RegExp("^(" + a.join("|") + ")", "i"), 26070 this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp("^(" + s.join("|") + ")", "i"), 26071 this._monthsShortStrictRegex = new RegExp("^(" + o.join("|") + ")", "i"); 26072 } 26073 function Le(e, t, n, i, r, o, s) { 26074 var a; 26075 return e < 100 && e >= 0 ? (a = new Date(e + 400, t, n, i, r, o, s), isFinite(a.getFullYear()) && a.setFullYear(e)) : a = new Date(e, t, n, i, r, o, s), 26076 a; 26077 } 26078 function De(e) { 26079 var t, n; 26080 return e < 100 && e >= 0 ? ((n = Array.prototype.slice.call(arguments))[0] = e + 400, 26081 t = new Date(Date.UTC.apply(null, n)), isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)), 26082 t; 26083 } 26084 function Ne(e, t, n) { 26085 var i = 7 + t - n; 26086 return -(7 + De(e, 0, i).getUTCDay() - t) % 7 + i - 1; 26087 } 26088 function Fe(e, t, n, i, r) { 26089 var o, s, a = 1 + 7 * (t - 1) + (7 + n - i) % 7 + Ne(e, i, r); 26090 return a <= 0 ? s = ve(o = e - 1) + a : a > ve(e) ? (o = e + 1, s = a - ve(e)) : (o = e, 26091 s = a), { 26092 year: o, 26093 dayOfYear: s 26094 }; 26095 } 26096 function je(e, t, n) { 26097 var i, r, o = Ne(e.year(), t, n), s = Math.floor((e.dayOfYear() - o - 1) / 7) + 1; 26098 return s < 1 ? i = s + Re(r = e.year() - 1, t, n) : s > Re(e.year(), t, n) ? (i = s - Re(e.year(), t, n), 26099 r = e.year() + 1) : (r = e.year(), i = s), { 26100 week: i, 26101 year: r 26102 }; 26103 } 26104 function Re(e, t, n) { 26105 var i = Ne(e, t, n), r = Ne(e + 1, t, n); 26106 return (ve(e) - i + r) / 7; 26107 } 26108 function Be(e, t) { 26109 return e.slice(t, 7).concat(e.slice(0, t)); 26110 } 26111 N("w", [ "ww", 2 ], "wo", "week"), N("W", [ "WW", 2 ], "Wo", "isoWeek"), ae("w", U, oe), 26112 ae("ww", U, q), ae("W", U, oe), ae("WW", U, q), pe([ "w", "ww", "W", "WW" ], (function(e, t, n, i) { 26113 t[i.substr(0, 1)] = de(e); 26114 })), N("d", 0, "do", "day"), N("dd", 0, 0, (function(e) { 26115 return this.localeData().weekdaysMin(this, e); 26116 })), N("ddd", 0, 0, (function(e) { 26117 return this.localeData().weekdaysShort(this, e); 26118 })), N("dddd", 0, 0, (function(e) { 26119 return this.localeData().weekdays(this, e); 26120 })), N("e", 0, 0, "weekday"), N("E", 0, 0, "isoWeekday"), ae("d", U), ae("e", U), 26121 ae("E", U), ae("dd", (function(e, t) { 26122 return t.weekdaysMinRegex(e); 26123 })), ae("ddd", (function(e, t) { 26124 return t.weekdaysShortRegex(e); 26125 })), ae("dddd", (function(e, t) { 26126 return t.weekdaysRegex(e); 26127 })), pe([ "dd", "ddd", "dddd" ], (function(e, t, n, i) { 26128 var r = n._locale.weekdaysParse(e, i, n._strict); 26129 null != r ? t.d = r : p(n).invalidWeekday = e; 26130 })), pe([ "d", "e", "E" ], (function(e, t, n, i) { 26131 t[i] = de(e); 26132 })); 26133 var ze = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), He = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), $e = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), We = re, qe = re, Ve = re; 26134 function Ye(e, t, n) { 26135 var i, r, o, s = e.toLocaleLowerCase(); 26136 if (!this._weekdaysParse) for (this._weekdaysParse = [], this._shortWeekdaysParse = [], 26137 this._minWeekdaysParse = [], i = 0; i < 7; ++i) o = f([ 2e3, 1 ]).day(i), this._minWeekdaysParse[i] = this.weekdaysMin(o, "").toLocaleLowerCase(), 26138 this._shortWeekdaysParse[i] = this.weekdaysShort(o, "").toLocaleLowerCase(), this._weekdaysParse[i] = this.weekdays(o, "").toLocaleLowerCase(); 26139 return n ? "dddd" === t ? -1 !== (r = be.call(this._weekdaysParse, s)) ? r : null : "ddd" === t ? -1 !== (r = be.call(this._shortWeekdaysParse, s)) ? r : null : -1 !== (r = be.call(this._minWeekdaysParse, s)) ? r : null : "dddd" === t ? -1 !== (r = be.call(this._weekdaysParse, s)) || -1 !== (r = be.call(this._shortWeekdaysParse, s)) || -1 !== (r = be.call(this._minWeekdaysParse, s)) ? r : null : "ddd" === t ? -1 !== (r = be.call(this._shortWeekdaysParse, s)) || -1 !== (r = be.call(this._weekdaysParse, s)) || -1 !== (r = be.call(this._minWeekdaysParse, s)) ? r : null : -1 !== (r = be.call(this._minWeekdaysParse, s)) || -1 !== (r = be.call(this._weekdaysParse, s)) || -1 !== (r = be.call(this._shortWeekdaysParse, s)) ? r : null; 26140 } 26141 function Ge() { 26142 function e(e, t) { 26143 return t.length - e.length; 26144 } 26145 var t, n, i, r, o, s = [], a = [], l = [], c = []; 26146 for (t = 0; t < 7; t++) n = f([ 2e3, 1 ]).day(t), i = ce(this.weekdaysMin(n, "")), 26147 r = ce(this.weekdaysShort(n, "")), o = ce(this.weekdays(n, "")), s.push(i), a.push(r), 26148 l.push(o), c.push(i), c.push(r), c.push(o); 26149 s.sort(e), a.sort(e), l.sort(e), c.sort(e), this._weekdaysRegex = new RegExp("^(" + c.join("|") + ")", "i"), 26150 this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, 26151 this._weekdaysStrictRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._weekdaysShortStrictRegex = new RegExp("^(" + a.join("|") + ")", "i"), 26152 this._weekdaysMinStrictRegex = new RegExp("^(" + s.join("|") + ")", "i"); 26153 } 26154 function Ue() { 26155 return this.hours() % 12 || 12; 26156 } 26157 function Xe(e, t) { 26158 N(e, 0, 0, (function() { 26159 return this.localeData().meridiem(this.hours(), this.minutes(), t); 26160 })); 26161 } 26162 function Ke(e, t) { 26163 return t._meridiemParse; 26164 } 26165 N("H", [ "HH", 2 ], 0, "hour"), N("h", [ "hh", 2 ], 0, Ue), N("k", [ "kk", 2 ], 0, (function() { 26166 return this.hours() || 24; 26167 })), N("hmm", 0, 0, (function() { 26168 return "" + Ue.apply(this) + O(this.minutes(), 2); 26169 })), N("hmmss", 0, 0, (function() { 26170 return "" + Ue.apply(this) + O(this.minutes(), 2) + O(this.seconds(), 2); 26171 })), N("Hmm", 0, 0, (function() { 26172 return "" + this.hours() + O(this.minutes(), 2); 26173 })), N("Hmmss", 0, 0, (function() { 26174 return "" + this.hours() + O(this.minutes(), 2) + O(this.seconds(), 2); 26175 })), Xe("a", !0), Xe("A", !1), ae("a", Ke), ae("A", Ke), ae("H", U, se), ae("h", U, oe), 26176 ae("k", U, oe), ae("HH", U, q), ae("hh", U, q), ae("kk", U, q), ae("hmm", X), ae("hmmss", K), 26177 ae("Hmm", X), ae("Hmmss", K), fe([ "H", "HH" ], 3), fe([ "k", "kk" ], (function(e, t, n) { 26178 var i = de(e); 26179 t[3] = 24 === i ? 0 : i; 26180 })), fe([ "a", "A" ], (function(e, t, n) { 26181 n._isPm = n._locale.isPM(e), n._meridiem = e; 26182 })), fe([ "h", "hh" ], (function(e, t, n) { 26183 t[3] = de(e), p(n).bigHour = !0; 26184 })), fe("hmm", (function(e, t, n) { 26185 var i = e.length - 2;
26186 t[3] = de(e.substr(0, i)), t[4] = de(e.substr(i)), p(n).bigHour = !0; 26187 })), fe("hmmss", (function(e, t, n) { 26188 var i = e.length - 4, r = e.length - 2; 26189 t[3] = de(e.substr(0, i)), t[4] = de(e.substr(i, 2)), t[5] = de(e.substr(r)), p(n).bigHour = !0; 26190 })), fe("Hmm", (function(e, t, n) { 26191 var i = e.length - 2; 26192 t[3] = de(e.substr(0, i)), t[4] = de(e.substr(i)); 26193 })), fe("Hmmss", (function(e, t, n) { 26194 var i = e.length - 4, r = e.length - 2; 26195 t[3] = de(e.substr(0, i)), t[4] = de(e.substr(i, 2)), t[5] = de(e.substr(r)); 26196 })); 26197 var Ze, Je = xe("Hours", !0), Qe = { 26198 calendar: { 26199 sameDay: "[Today at] LT", 26200 nextDay: "[Tomorrow at] LT", 26201 nextWeek: "dddd [at] LT", 26202 lastDay: "[Yesterday at] LT", 26203 lastWeek: "[Last] dddd [at] LT", 26204 sameElse: "L" 26205 }, 26206 longDateFormat: { 26207 LTS: "h:mm:ss A", 26208 LT: "h:mm A", 26209 L: "MM/DD/YYYY", 26210 LL: "MMMM D, YYYY", 26211 LLL: "MMMM D, YYYY h:mm A", 26212 LLLL: "dddd, MMMM D, YYYY h:mm A" 26213 }, 26214 invalidDate: "Invalid date", 26215 ordinal: "%d", 26216 dayOfMonthOrdinalParse: /\d{1,2}/, 26217 relativeTime: { 26218 future: "in %s", 26219 past: "%s ago", 26220 s: "a few seconds", 26221 ss: "%d seconds", 26222 m: "a minute", 26223 mm: "%d minutes", 26224 h: "an hour", 26225 hh: "%d hours", 26226 d: "a day", 26227 dd: "%d days", 26228 w: "a week", 26229 ww: "%d weeks", 26230 M: "a month", 26231 MM: "%d months", 26232 y: "a year", 26233 yy: "%d years" 26234 }, 26235 months: Ee, 26236 monthsShort: Ce, 26237 week: { 26238 dow: 0, 26239 doy: 6 26240 }, 26241 weekdays: ze, 26242 weekdaysMin: $e, 26243 weekdaysShort: He, 26244 meridiemParse: /[ap]\.?m?\.?/i 26245 }, et = {}, tt = {}; 26246 function nt(e, t) { 26247 var n, i = Math.min(e.length, t.length); 26248 for (n = 0; n < i; n += 1) if (e[n] !== t[n]) return n; 26249 return i; 26250 } 26251 function it(e) { 26252 return e ? e.toLowerCase().replace("_", "-") : e; 26253 } 26254 function rt(t) { 26255 var n = null; 26256 if (void 0 === et[t] && void 0 !== e && e && e.exports && function(e) { 26257 return !(!e || !e.match("^[^/\\\\]*$")); 26258 }(t)) try { 26259 n = Ze._abbr, function() { 26260 var e = new Error("Cannot find module 'undefined'"); 26261 throw e.code = "MODULE_NOT_FOUND", e; 26262 }(), ot(n); 26263 } catch (e) { 26264 et[t] = null; 26265 } 26266 return et[t]; 26267 } 26268 function ot(e, t) { 26269 var n; 26270 return e && ((n = l(t) ? at(e) : st(e, t)) ? Ze = n : "undefined" != typeof console && console.warn && console.warn("Locale " + e + " not found. Did you forget to load it?")), 26271 Ze._abbr; 26272 } 26273 function st(e, t) { 26274 if (null !== t) { 26275 var n, i = Qe; 26276 if (t.abbr = e, null != et[e]) T("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."), 26277 i = et[e]._config; else if (null != t.parentLocale) if (null != et[t.parentLocale]) i = et[t.parentLocale]._config; else { 26278 if (null == (n = rt(t.parentLocale))) return tt[t.parentLocale] || (tt[t.parentLocale] = []), 26279 tt[t.parentLocale].push({ 26280 name: e, 26281 config: t 26282 }), null; 26283 i = n._config; 26284 } 26285 return et[e] = new A(M(i, t)), tt[e] && tt[e].forEach((function(e) { 26286 st(e.name, e.config); 26287 })), ot(e), et[e]; 26288 } 26289 return delete et[e], null; 26290 } 26291 function at(e) { 26292 var t; 26293 if (e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e) return Ze; 26294 if (!r(e)) { 26295 if (t = rt(e)) return t; 26296 e = [ e ]; 26297 } 26298 return function(e) { 26299 for (var t, n, i, r, o = 0; o < e.length; ) { 26300 for (t = (r = it(e[o]).split("-")).length, n = (n = it(e[o + 1])) ? n.split("-") : null; t > 0; ) { 26301 if (i = rt(r.slice(0, t).join("-"))) return i; 26302 if (n && n.length >
vendor: 8,532 bytes, lines 26302-26410
26302= t && nt(r, n) >= t - 1) break; 26303 t--; 26304 } 26305 o++; 26306 } 26307 return Ze; 26308 }(e); 26309 } 26310 function lt(e) { 26311 var t, n = e._a; 26312 return n && -2 === p(e).overflow && (t = n[1] < 0 || n[1] > 11 ? 1 : n[2] < 1 || n[2] > Se(n[0], n[1]) ? 2 : n[3] < 0 || n[3] > 24 || 24 === n[3] && (0 !== n[4] || 0 !== n[5] || 0 !== n[6]) ? 3 : n[4] < 0 || n[4] > 59 ? 4 : n[5] < 0 || n[5] > 59 ? 5 : n[6] < 0 || n[6] > 999 ? 6 : -1, 26313 p(e)._overflowDayOfYear && (t < 0 || t > 2) && (t = 2), p(e)._overflowWeeks && -1 === t && (t = 7), 26314 p(e)._overflowWeekday && -1 === t && (t = 8), p(e).overflow = t), e; 26315 } 26316 var ct = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ut = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, dt = /Z|[+-]\d\d(?::?\d\d)?/, ht = [ [ "YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/ ], [ "YYYY-MM-DD", /\d{4}-\d\d-\d\d/ ], [ "GGGG-[W]WW-E", /\d{4}-W\d\d-\d/ ], [ "GGGG-[W]WW", /\d{4}-W\d\d/, !1 ], [ "YYYY-DDD", /\d{4}-\d{3}/ ], [ "YYYY-MM", /\d{4}-\d\d/, !1 ], [ "YYYYYYMMDD", /[+-]\d{10}/ ], [ "YYYYMMDD", /\d{8}/ ], [ "GGGG[W]WWE", /\d{4}W\d{3}/ ], [ "GGGG[W]WW", /\d{4}W\d{2}/, !1 ], [ "YYYYDDD", /\d{7}/ ], [ "YYYYMM", /\d{6}/, !1 ], [ "YYYY", /\d{4}/, !1 ] ], ft = [ [ "HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/ ], [ "HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/ ], [ "HH:mm:ss", /\d\d:\d\d:\d\d/ ], [ "HH:mm", /\d\d:\d\d/ ], [ "HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/ ], [ "HHmmss,SSSS", /\d\d\d\d\d\d,\d+/ ], [ "HHmmss", /\d\d\d\d\d\d/ ], [ "HHmm", /\d\d\d\d/ ], [ "HH", /\d\d/ ] ], pt = /^\/?Date\((-?\d+)/i, mt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, gt = { 26317 UT: 0, 26318 GMT: 0, 26319 EDT: -240, 26320 EST: -300, 26321 CDT: -300, 26322 CST: -360, 26323 MDT: -360, 26324 MST: -420, 26325 PDT: -420, 26326 PST: -480 26327 }; 26328 function vt(e) { 26329 var t, n, i, r, o, s, a = e._i, l = ct.exec(a) || ut.exec(a), c = ht.length, u = ft.length; 26330 if (l) { 26331 for (p(e).iso = !0, t = 0, n = c; t < n; t++) if (ht[t][1].exec(l[1])) { 26332 r = ht[t][0], i = !1 !== ht[t][2]; 26333 break; 26334 } 26335 if (null == r) return void (e._isValid = !1); 26336 if (l[3]) { 26337 for (t = 0, n = u; t < n; t++) if (ft[t][1].exec(l[3])) { 26338 o = (l[2] || " ") + ft[t][0]; 26339 break; 26340 } 26341 if (null == o) return void (e._isValid = !1); 26342 } 26343 if (!i && null != o) return void (e._isValid = !1); 26344 if (l[4]) { 26345 if (!dt.exec(l[4])) return void (e._isValid = !1); 26346 s = "Z"; 26347 } 26348 e._f = r + (o || "") + (s || ""), _t(e); 26349 } else e._isValid = !1; 26350 } 26351 function bt(e) { 26352 var t = parseInt(e, 10); 26353 return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t; 26354 } 26355 function yt(e) { 26356 var t, n, i, r, o, s, a, l, c = mt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "")); 26357 if (c) { 26358 if (n = c[4], i = c[3], r = c[2], o = c[5], s = c[6], a = c[7], l = [ bt(n), Ce.indexOf(i), parseInt(r, 10), parseInt(o, 10), parseInt(s, 10) ], 26359 a && l.push(parseInt(a, 10)), t = l, !function(e, t, n) { 26360 return !e || He.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || (p(n).weekdayMismatch = !0, 26361 n._isValid = !1, !1); 26362 }(c[1], t, e)) return; 26363 e._a = t, e._tzm = function(e, t, n) { 26364 if (e) return gt[e]; 26365 if (t) return 0; 26366 var i = parseInt(n, 10), r = i % 100; 26367 return (i - r) / 100 * 60 + r; 26368 }(c[8], c[9], c[10]), e._d = De.apply(null, e._a), e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), 26369 p(e).rfc2822 = !0; 26370 } else e._isValid = !1; 26371 } 26372 function xt(e, t, n) { 26373 return null != e ? e : null != t ? t : n; 26374 } 26375 function wt(e) { 26376 var t, n, r, o, s, a = []; 26377 if (!e._d) { 26378 for (r = function(e) { 26379 var t = new Date(i.now()); 26380 return e._useUTC ? [ t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate() ] : [ t.getFullYear(), t.getMonth(), t.getDate() ]; 26381 }(e), e._w && null == e._a[2] && null == e._a[1] && function(e) { 26382 var t, n, i, r, o, s, a, l, c; 26383 null != (t = e._w).GG || null != t.W || null != t.E ? (o = 1, s = 4, n = xt(t.GG, e._a[0], je(Ct(), 1, 4).year), 26384 i = xt(t.W, 1), ((r = xt(t.E, 1)) < 1 || r > 7) && (l = !0)) : (o = e._locale._week.dow, 26385 s = e._locale._week.doy, c = je(Ct(), o, s), n = xt(t.gg, e._a[0], c.year), i = xt(t.w, c.week), 26386 null != t.d ? ((r = t.d) < 0 || r > 6) && (l = !0) : null != t.e ? (r = t.e + o, 26387 (t.e < 0 || t.e > 6) && (l = !0)) : r = o), i < 1 || i > Re(n, o, s) ? p(e)._overflowWeeks = !0 : null != l ? p(e)._overflowWeekday = !0 : (a = Fe(n, i, r, o, s), 26388 e._a[0] = a.year, e._dayOfYear = a.dayOfYear); 26389 }(e), null != e._dayOfYear && (s = xt(e._a[0], r[0]), (e._dayOfYear > ve(s) || 0 === e._dayOfYear) && (p(e)._overflowDayOfYear = !0), 26390 n = De(s, 0, e._dayOfYear), e._a[1] = n.getUTCMonth(), e._a[2] = n.getUTCDate()), 26391 t = 0; t < 3 && null == e._a[t]; ++t) e._a[t] = a[t] = r[t]; 26392 for (;t < 7; t++) e._a[t] = a[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t]; 26393 24 === e._a[3] && 0 === e._a[4] && 0 === e._a[5] && 0 === e._a[6] && (e._nextDay = !0, 26394 e._a[3] = 0), e._d = (e._useUTC ? De : Le).apply(null, a), o = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), 26395 null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[3] = 24), 26396 e._w && void 0 !== e._w.d && e._w.d !== o && (p(e).weekdayMismatch = !0); 26397 } 26398 } 26399 function _t(e) { 26400 if (e._f !== i.ISO_8601) if (e._f !== i.RFC_2822) { 26401 e._a = [], p(e).empty = !0; 26402 var t, n, r, o, s, a, l, c = "" + e._i, u = c.length, d = 0; 26403 for (l = (r = j(e._f, e._locale).match(P) || []).length, t = 0; t < l; t++) o = r[t], 26404 (n = (c.match(le(o, e)) || [])[0]) && ((s = c.substr(0, c.indexOf(n))).length > 0 && p(e).unusedInput.push(s), 26405 c = c.slice(c.indexOf(n) + n.length), d += n.length), D[o] ? (n ? p(e).empty = !1 : p(e).unusedTokens.push(o), 26406 me(o, n, e)) : e._strict && !n && p(e).unusedTokens.push(o); 26407 p(e).charsLeftOver = u - d, c.length > 0 && p(e).unusedInput.push(c), e._a[3] <= 12 && !0 === p(e).bigHour && e._a[3] > 0 && (p(e).bigHour = void 0), 26408 p(e).parsedDateParts = e._a.slice(0), p(e).meridiem = e._meridiem, e._a[3] = function(e, t, n) { 26409 var i; 26410 return null == n ? t : null != e.meri
26410diemHour ? e.meridiemHour(t, n) : null != e.isPM ? ((i = e.isPM(n)) && t < 12 && (t += 12), 26411 i || 12 !== t || (t = 0), t) : t; 26412 }(e._locale, e._a[3], e._meridiem), null !== (a = p(e).era) && (e._a[0] = e._locale.erasConvertYear(a, e._a[0])), 26413 wt(e), lt(e); 26414 } else yt(e); else vt(e); 26415 } 26416 function St(e) { 26417 var t = e._i, n = e._f; 26418 return e._locale = e._locale || at(e._l), null === t || void 0 === n && "" === t ? g({ 26419 nullInput: !0 26420 }) : ("string" == typeof t && (e._i = t = e._locale.preparse(t)), w(t) ? new x(lt(t)) : (u(t) ? e._d = t : r(n) ? function(e) { 26421 var t, n, i, r, o, s, a = !1, l = e._f.length; 26422 if (0 === l) return p(e).invalidFormat = !0, void (e._d = new Date(NaN)); 26423 for (r = 0; r < l; r++) o = 0, s = !1, t = y({}, e), null != e._useUTC && (t._useUTC = e._useUTC), 26424 t._f = e._f[r], _t(t), m(t) && (s = !0), o += p(t).charsLeftOver, o += 10 * p(t).unusedTokens.length, 26425 p(t).score = o, a ? o < i && (i = o, n = t) : (null == i || o < i || s) && (i = o, 26426 n = t, s && (a = !0)); 26427 h(e, n || t); 26428 }(e) : n ? _t(e) : function(e) { 26429 var t = e._i; 26430 l(t) ? e._d = new Date(i.now()) : u(t) ? e._d = new Date(t.valueOf()) : "string" == typeof t ? function(e) { 26431 var t = pt.exec(e._i); 26432 null === t ? (vt(e), !1 === e._isValid && (delete e._isValid, yt(e), !1 === e._isValid && (delete e._isValid, 26433 e._strict ? e._isValid = !1 : i.createFromInputFallback(e)))) : e._d = new Date(+t[1]); 26434 }(e) : r(t) ? (e._a = d(t.slice(0), (function(e) { 26435 return parseInt(e, 10); 26436 })), wt(e)) : o(t) ? function(e) { 26437 if (!e._d) { 26438 var t = z(e._i), n = void 0 === t.day ? t.date : t.day; 26439 e._a = d([ t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond ], (function(e) { 26440 return e && parseInt(e, 10); 26441 })), wt(e); 26442 } 26443 }(e) : c(t) ? e._d = new Date(t) : i.createFromInputFallback(e); 26444 }(e), m(e) || (e._d = null), e)); 26445 } 26446 function Et(e, t, n, i, s) { 26447 var l, c = {}; 26448 return !0 !== t && !1 !== t || (i = t, t = void 0), !0 !== n && !1 !== n || (i = n, 26449 n = void 0), (o(e) && a(e) || r(e) && 0 === e.length) && (e = void 0), c._isAMomentObject = !0, 26450 c._useUTC = c._isUTC = s, c._l = n, c._i = e, c._f = t, c._strict = i, (l = new x(lt(St(c))))._nextDay && (l.add(1, "d"), 26451 l._nextDay = void 0), l; 26452 } 26453 function Ct(e, t, n, i) { 26454 return Et(e, t, n, i, !1); 26455 } 26456 i.createFromInputFallback = S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", (function(e) { 26457 e._d = new Date(e._i + (e._useUTC ? " UTC" : "")); 26458 })), i.ISO_8601 = function() {}, i.RFC_2822 = function() {}; 26459 var Tt = S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", (function() { 26460 var e = Ct.apply(null, arguments); 26461 return this.isValid() && e.isValid() ? e < this ? this : e : g(); 26462 })), kt = S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", (function() { 26463 var e = Ct.apply(null, arguments); 26464 return this.isValid() && e.isValid() ? e >
26464 this ? this : e : g(); 26465 })); 26466 function Mt(e, t) { 26467 var n, i; 26468 if (1 === t.length && r(t[0]) && (t = t[0]), !t.length) return Ct(); 26469 for (n = t[0], i = 1; i < t.length; ++i) t[i].isValid() && !t[i][e](n) || (n = t[i]); 26470 return n; 26471 } 26472 var At = [ "year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond" ]; 26473 function Ot(e) { 26474 var t = z(e), n = t.year || 0, i = t.quarter || 0, r = t.month || 0, o = t.week || t.isoWeek || 0, a = t.day || 0, l = t.hour || 0, c = t.minute || 0, u = t.second || 0, d = t.millisecond || 0; 26475 this._isValid = function(e) { 26476 var t, n, i = !1, r = At.length; 26477 for (t in e) if (s(e, t) && (-1 === be.call(At, t) || null != e[t] && isNaN(e[t]))) return !1; 26478 for (n = 0; n < r; ++n) if (e[At[n]]) { 26479 if (i) return !1; 26480 parseFloat(e[At[n]]) !== de(e[At[n]]) && (i = !0); 26481 } 26482 return !0; 26483 }(t), this._milliseconds = +d + 1e3 * u + 6e4 * c + 1e3 * l * 60 * 60, this._days = +a + 7 * o, 26484 this._months = +r + 3 * i + 12 * n, this._data = {}, this._locale = at(), this._bubble(); 26485 } 26486 function Pt(e) { 26487 return e instanceof Ot; 26488 } 26489 function It(e) { 26490 return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e); 26491 } 26492 function Lt(e, t) { 26493 N(e, 0, 0, (function() { 26494 var e = this.utcOffset(), n = "+"; 26495 return e < 0 && (e = -e, n = "-"), n + O(~~(e / 60), 2) + t + O(~~e % 60, 2); 26496 })); 26497 } 26498 Lt("Z", ":"), Lt("ZZ", ""), ae("Z", ie), ae("ZZ", ie), fe([ "Z", "ZZ" ], (function(e, t, n) { 26499 n._useUTC = !0, n._tzm = Nt(ie, e); 26500 })); 26501 var Dt = /([\+\-]|\d\d)/gi; 26502 function Nt(e, t) { 26503 var n, i, r = (t || "").match(e); 26504 return null === r ? null : 0 === (i = 60 * (n = ((r[r.length - 1] || []) + "").match(Dt) || [ "-", 0, 0 ])[1] + de(n[2])) ? 0 : "+" === n[0] ? i :
vendor: 3,861 bytes, lines 26504-26569
26504-i; 26505 } 26506 function Ft(e, t) { 26507 var n, r; 26508 return t._isUTC ? (n = t.clone(), r = (w(e) || u(e) ? e.valueOf() : Ct(e).valueOf()) - n.valueOf(), 26509 n._d.setTime(n._d.valueOf() + r), i.updateOffset(n, !1), n) : Ct(e).local(); 26510 } 26511 function jt(e) { 26512 return -Math.round(e._d.getTimezoneOffset()); 26513 } 26514 function Rt() { 26515 return !!this.isValid() && this._isUTC && 0 === this._offset; 26516 } 26517 i.updateOffset = function() {}; 26518 var Bt = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, zt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; 26519 function Ht(e, t) { 26520 var n, i, r, o, a, l, u = e, d = null; 26521 return Pt(e) ? u = { 26522 ms: e._milliseconds, 26523 d: e._days, 26524 M: e._months 26525 } : c(e) || !isNaN(+e) ? (u = {}, t ? u[t] = +e : u.milliseconds = +e) : (d = Bt.exec(e)) ? (n = "-" === d[1] ? -1 : 1, 26526 u = { 26527 y: 0, 26528 d: de(d[2]) * n, 26529 h: de(d[3]) * n, 26530 m: de(d[4]) * n, 26531 s: de(d[5]) * n, 26532 ms: de(It(1e3 * d[6])) * n 26533 }) : (d = zt.exec(e)) ? (n = "-" === d[1] ? -1 : 1, u = { 26534 y: $t(d[2], n), 26535 M: $t(d[3], n), 26536 w: $t(d[4], n), 26537 d: $t(d[5], n), 26538 h: $t(d[6], n), 26539 m: $t(d[7], n), 26540 s: $t(d[8], n) 26541 }) : null == u ? u = {} : "object" == typeof u && ("from" in u || "to" in u) && (o = Ct(u.from), 26542 a = Ct(u.to), r = o.isValid() && a.isValid() ? (a = Ft(a, o), o.isBefore(a) ? l = Wt(o, a) : ((l = Wt(a, o)).milliseconds = -l.milliseconds, 26543 l.months = -l.months), l) : { 26544 milliseconds: 0, 26545 months: 0 26546 }, (u = {}).ms = r.milliseconds, u.M = r.months), i = new Ot(u), Pt(e) && s(e, "_locale") && (i._locale = e._locale), 26547 Pt(e) && s(e, "_isValid") && (i._isValid = e._isValid), i; 26548 } 26549 function $t(e, t) { 26550 var n = e && parseFloat(e.replace(",", ".")); 26551 return (isNaN(n) ? 0 : n) * t; 26552 } 26553 function Wt(e, t) { 26554 var n = {}; 26555 return n.months = t.month() - e.month() + 12 * (t.year() - e.year()), e.clone().add(n.months, "M").isAfter(t) && --n.months, 26556 n.milliseconds = +t - +e.clone().add(n.months, "M"), n; 26557 } 26558 function qt(e, t) { 26559 return function(n, i) { 26560 var r; 26561 return null === i || isNaN(+i) || (T(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."), 26562 r = n, n = i, i = r), Vt(this, Ht(n, i), e), this; 26563 }; 26564 } 26565 function Vt(e, t, n, r) { 26566 var o = t._milliseconds, s = It(t._days), a = It(t._months); 26567 e.isValid() && (r = null == r || r, a && Oe(e, we(e, "Month") + a * n), s && _e(e, "Date", we(e, "Date") + s * n), 26568 o && e._d.setTime(e._d.valueOf() + o * n), r && i.updateOffset(e, s || a)); 26569 }
26570 Ht.fn = Ot.prototype, Ht.invalid = function() { 26571 return Ht(NaN); 26572 }; 26573 var Yt = qt(1, "add"), Gt = qt(-1, "subtract"); 26574 function Ut(e) { 26575 return "string" == typeof e || e instanceof String; 26576 } 26577 function Xt(e) { 26578 return w(e) || u(e) || Ut(e) || c(e) || function(e) { 26579 var t = r(e), n = !1; 26580 return t && (n = 0 === e.filter((function(t) { 26581 return !c(t) && Ut(e); 26582 })).length), t && n; 26583 }(e) || function(e) { 26584 var t, n, i = o(e) && !a(e), r = !1, l = [ "years", "year", "y", "months", "month", "M", "days", "day", "d", "dates", "date", "D", "hours", "hour", "h", "minutes", "minute", "m", "seconds", "second", "s", "milliseconds", "millisecond", "ms" ], c = l.length; 26585 for (t = 0; t < c; t += 1) n = l[t], r = r || s(e, n); 26586 return i && r; 26587 }(e) || null == e; 26588 } 26589 function Kt(e) { 26590 var t, n = o(e) && !a(e), i = !1, r = [ "sameDay", "nextDay", "lastDay", "nextWeek", "lastWeek", "sameElse" ]; 26591 for (t = 0; t < r.length; t += 1) i = i || s(e, r[t]); 26592 return n && i; 26593 } 26594 function Zt(e, t) { 26595 if (e.date() < t.date()) return -Zt(t, e); 26596 var n = 12 * (t.year() - e.year()) + (t.month() - e.month()), i = e.clone().add(n, "months"); 26597 return -(n + (t - i < 0 ? (t - i) / (i - e.clone().add(n - 1, "months")) : (t - i) / (e.clone().add(n + 1, "months") - i))) || 0; 26598 } 26599 function Jt(e) { 26600 var t; 26601 return void 0 === e ? this._locale._abbr : (null != (t = at(e)) && (this._locale = t), 26602 this); 26603 } 26604 i.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", i.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; 26605 var Qt = S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", (function(e) { 26606 return void 0 === e ? this.localeData() : this.locale(e); 26607 })); 26608 function en() { 26609 return this._locale; 26610 } 26611 function tn(e, t) { 26612 return (e % t + t) % t; 26613 } 26614 function nn(e, t, n) { 26615 return e < 100 && e >= 0 ? new Date(e + 400, t, n) - 126227808e5 : new Date(e, t, n).valueOf(); 26616 } 26617 function rn(e, t, n) { 26618 return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - 126227808e5 : Date.UTC(e, t, n); 26619 } 26620 function on(e, t) { 26621 return t.erasAbbrRegex(e); 26622 } 26623 function sn() { 26624 var e, t, n, i, r, o = [], s = [], a = [], l = [], c = this.eras(); 26625 for (e = 0, t = c.length; e < t; ++e) n = ce(c[e].name), i = ce(c[e].abbr), r = ce(c[e].narrow), 26626 s.push(n), o.push(i), a.push(r), l.push(n), l.push(i), l.push(r); 26627 this._erasRegex = new RegExp("^(" + l.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + s.join("|") + ")", "i"), 26628 this._erasAbbrRegex = new RegExp("^(" + o.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp("^(" + a.join("|") + ")", "i"); 26629 } 26630 function an(e, t) { 26631 N(0, [ e, e.length ], 0, t); 26632 } 26633 function ln(e, t, n, i, r) { 26634 var o; 26635 return null == e ? je(this, i, r).year : (t > (o = Re(e, i, r)) && (t = o), cn.call(this, e, t, n, i, r)); 26636 } 26637 function cn(e, t, n, i, r) { 26638 var o = Fe(e, t, n, i, r), s = De(o.year, 0, o.dayOfYear); 26639 return this.year(s.getUTCFullYear()), this.month(s.getUTCMonth()), this.date(s.getUTCDate()), 26640 this; 26641 } 26642 N("N", 0, 0, "eraAbbr"), N("NN", 0, 0, "eraAbbr"), N("NNN", 0, 0, "eraAbbr"), N("NNNN", 0, 0, "eraName"), 26643 N("NNNNN", 0, 0, "eraNarrow"), N("y", [ "y", 1 ], "yo", "eraYear"), N("y", [ "yy", 2 ], 0, "eraYear"), 26644 N("y", [ "yyy", 3 ], 0, "eraYear"), N("y", [ "yyyy", 4 ], 0, "eraYear"), ae("N", on), 26645 ae("NN", on), ae("NNN", on), ae("NNNN", (function(e, t) { 26646 return t.erasNameRegex(e); 26647 })), ae("NNNNN", (function(e, t) { 26648 return t.erasNarrowRegex(e); 26649 })), fe([ "N", "NN", "NNN", "NNNN", "NNNNN" ], (function(e, t, n, i) { 26650 var r = n._locale.erasParse(e, i, n._strict); 26651 r ? p(n).era = r : p(n).invalidEra = e; 26652 })), ae("y", ee), ae("yy", ee), ae("yyy", ee), ae("yyyy", ee), ae("yo", (function(e, t) { 26653 return t._eraYearOrdinalRegex || ee; 26654 })), fe([ "y", "yy", "yyy", "yyyy" ], 0), fe([ "yo" ], (function(e, t, n, i) { 26655 var r; 26656 n._locale._eraYearOrdinalRegex && (r = e.match(n._locale._eraYearOrdinalRegex)), 26657 n._locale.eraYearOrdinalParse ? t[0] = n._locale.eraYearOrdinalParse(e, r) : t[0] = parseInt(e, 10); 26658 })), N(0, [ "gg", 2 ], 0, (function() { 26659 return this.weekYear() % 100; 26660 })), N(0, [ "GG", 2 ], 0, (function() { 26661 return this.isoWeekYear() % 100; 26662 })), an("gggg", "weekYear"), an("ggggg", "weekYear"), an("GGGG", "isoWeekYear"), 26663 an("GGGGG", "isoWeekYear"), ae("G", te), ae("g", te), ae("GG", U, q), ae("gg", U, q), 26664 ae("GGGG", J, Y), ae("gggg", J, Y), ae("GGGGG", Q, G), ae("ggggg", Q, G), pe([ "gggg", "ggggg", "GGGG", "GGGGG" ], (function(e, t, n, i) { 26665 t[i.substr(0, 2)] = de(e); 26666 })), pe([ "gg", "GG" ], (function(e, t, n, r) { 26667 t[r] = i.parseTwoDigitYear(e); 26668 })), N("Q", 0, "Qo", "quarter"), ae("Q", W), fe("Q", (function(e, t) { 26669 t[1] = 3 * (de(e) - 1); 26670 })), N("D", [ "DD", 2 ], "Do", "date"), ae("D", U, oe), ae("DD", U, q), ae("Do", (function(e, t) { 26671 return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient; 26672 })), fe([ "D", "DD" ], 2), fe("Do", (function(e, t) { 26673 t[2] = de(e.match(U)[0]); 26674 })); 26675 var un = xe("Date", !0);
26676 N("DDD", [ "DDDD", 3 ], "DDDo", "dayOfYear"), ae("DDD", Z), ae("DDDD", V), fe([ "DDD", "DDDD" ], (function(e, t, n) { 26677 n._dayOfYear = de(e); 26678 })), N("m", [ "mm", 2 ], 0, "minute"), ae("m", U, se), ae("mm", U, q), fe([ "m", "mm" ], 4); 26679 var dn = xe("Minutes", !1); 26680 N("s", [ "ss", 2 ], 0, "second"), ae("s", U, se), ae("ss", U, q), fe([ "s", "ss" ], 5); 26681 var hn, fn, pn = xe("Seconds", !1); 26682 for (N("S", 0, 0, (function() { 26683 return ~~(this.millisecond() / 100); 26684 })), N(0, [ "SS", 2 ], 0, (function() { 26685 return ~~(this.millisecond() / 10); 26686 })), N(0, [ "SSS", 3 ], 0, "millisecond"), N(0, [ "SSSS", 4 ], 0, (function() { 26687 return 10 * this.millisecond(); 26688 })), N(0, [ "SSSSS", 5 ], 0, (function() { 26689 return 100 * this.millisecond(); 26690 })), N(0, [ "SSSSSS", 6 ], 0, (function() { 26691 return 1e3 * this.millisecond(); 26692 })), N(0, [ "SSSSSSS", 7 ], 0, (function() { 26693 return 1e4 * this.millisecond(); 26694 })), N(0, [ "SSSSSSSS", 8 ], 0, (function() { 26695 return 1e5 * this.millisecond(); 26696 })), N(0, [ "SSSSSSSSS", 9 ], 0, (function() { 26697 return 1e6 * this.millisecond(); 26698 })), ae("S", Z, W), ae("SS", Z, q), ae("SSS", Z, V), hn = "SSSS"; hn.length <= 9; hn += "S") ae(hn, ee); 26699 function mn(e, t) { 26700 t[6] = de(1e3 * ("0." + e)); 26701 } 26702 for (hn = "S"; hn.length <= 9; hn += "S") fe(hn, mn); 26703 fn = xe("Milliseconds", !1), N("z", 0, 0, "zoneAbbr"), N("zz", 0, 0, "zoneName"); 26704 var gn = x.prototype; 26705 function vn(e) { 26706 return e; 26707 } 26708 gn.add = Yt, gn.calendar = function(e, t) { 26709 1 === arguments.length && (arguments[0] ? Xt(arguments[0]) ? (e = arguments[0], 26710 t = void 0) : Kt(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, 26711 t = void 0)); 26712 var n = e || Ct(), r = Ft(n, this).startOf("day"), o = i.calendarFormat(this, r) || "sameElse", s = t && (k(t[o]) ? t[o].call(this, n) : t[o]); 26713 return this.format(s || this.localeData().calendar(o, this, Ct(n))); 26714 }, gn.clone = function() { 26715 return new x(this); 26716 }, gn.diff = function(e, t, n) { 26717 var i, r, o; 26718 if (!this.isValid()) return NaN; 26719 if (!(i = Ft(e, this)).isValid()) return NaN; 26720 switch (r = 6e4 * (i.utcOffset() - this.utcOffset()), t = B(t)) { 26721 case "year": 26722 o = Zt(this, i) / 12; 26723 break; 26724 26725 case "month": 26726 o = Zt(this, i); 26727 break; 26728 26729 case "quarter": 26730 o = Zt(this, i) / 3; 26731 break; 26732 26733 case "second": 26734 o = (this - i) / 1e3; 26735 break; 26736 26737 case "minute": 26738 o = (this - i) / 6e4; 26739 break; 26740 26741 case "hour": 26742 o = (this - i) / 36e5; 26743 break; 26744 26745 case "day": 26746 o = (this - i - r) / 864e5; 26747 break; 26748 26749 case "week": 26750 o = (this - i - r) / 6048e5; 26751 break; 26752 26753 default: 26754 o = this - i; 26755 } 26756 return n ? o : ue(o); 26757 }, gn.endOf = function(e) { 26758 var t, n; 26759 if (void 0 === (e = B(e)) || "millisecond" === e || !this.isValid()) return this; 26760 switch (n = this._isUTC ? rn : nn, e) { 26761 case "year": 26762 t = n(this.year() + 1, 0, 1) - 1; 26763 break; 26764 26765 case "quarter": 26766 t = n(this.year(), this.month() - this.month() % 3 + 3, 1) - 1; 26767 break; 26768 26769 case "month": 26770 t = n(this.year(), this.month() + 1, 1) - 1; 26771 break; 26772 26773 case "week": 26774 t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1; 26775 break; 26776 26777 case "isoWeek": 26778 t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1; 26779 break; 26780 26781 case "day": 26782 case "date": 26783 t = n(this.year(), this.month(), this.date() + 1) - 1; 26784 break; 26785 26786 case "hour": 26787 t = this._d.valueOf(), t += 36e5 - tn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5) - 1; 26788 break; 26789 26790 case "minute": 26791 t = this._d.valueOf(), t += 6e4 - tn(t, 6e4) - 1; 26792 break; 26793 26794 case "second": 26795 t = this._d.valueOf(), t += 1e3 - tn(t, 1e3) - 1; 26796 } 26797 return this._d.setTime(t), i.updateOffset(this, !0), this; 26798 }, gn.format = function(e) { 26799 e || (e = this.isUtc() ? i.defaultFormatUtc : i.defaultFormat); 26800 var t = F(this, e); 26801 return this.localeData().postformat(t); 26802 }, gn.from = function(e, t) { 26803 return this.isValid() && (w(e) && e.isValid() || Ct(e).isValid()) ? Ht({ 26804 to: this, 26805 from: e 26806 }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate(); 26807 }, gn.fromNow = function(e) { 26808 return this.from(Ct(), e); 26809 }, gn.to = function(e, t) { 26810 return this.isValid() && (w(e) && e.isValid() || Ct(e).isValid()) ? Ht({ 26811 from: this, 26812 to: e 26813 }).locale(this.locale()).humanize(!t) : this.localeData().invalidDate(); 26814 }, gn.toNow = function(e) { 26815 return this.to(Ct(), e); 26816 }, gn.get = function(e) { 26817 return k(this[e = B(e)]) ? this[e]() : this; 26818 }, gn.invalidAt = function() { 26819 return p(this).overflow; 26820 }, gn.isAfter = function(e, t) { 26821 var n = w(e) ? e : Ct(e); 26822 return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = B(t) || "millisecond") ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf()); 26823 }, gn.isBefore = function(e, t) { 26824 var n = w(e) ? e : Ct(e); 26825 return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = B(t) || "millisecond") ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf()); 26826 }, gn.isBetween = function(e, t, n, i) { 26827 var r = w(e) ? e : Ct(e), o = w(t) ? t : Ct(t); 26828 return !!(this.isValid() && r.isValid() && o.isValid()) && (("(" === (i = i || "()")[0] ? this.isAfter(r, n) : !this.isBefore(r, n)) && (")" === i[1] ? this.isBefore(o, n) : !this.isAfter(o, n))); 26829 }, gn.isSame = function(e, t) { 26830 var n, i = w(e) ? e : Ct(e); 26831 return !(!this.isValid() || !i.isValid()) && ("millisecond" === (t = B(t) || "millisecond") ? this.valueOf() === i.valueOf() : (n = i.valueOf(), 26832 this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf())); 26833 }, gn.isSameOrAfter = function(e, t) { 26834 return this.isSame(e, t) || this.isAfter(e, t); 26835 }, gn.isSameOrBefore = function(e, t) { 26836 return this.isSame(e, t) || this.isBefore(e, t); 26837 }, gn.isValid = function() { 26838 return m(this); 26839 }, gn.lang = Qt, gn.locale = Jt, gn.localeData = en, gn.max = kt, gn.min = Tt, gn.parsingFlags = function() { 26840 return h({}, p(this)); 26841 }, gn.set = function(e, t) { 26842 if ("object" == typeof e) { 26843 var n, i = function(e) { 26844 var t, n = []; 26845 for (t in e) s(e, t) && n.push({ 26846 unit: t, 26847 priority: $[t] 26848 }); 26849 return n.sort((function(e, t) { 26850 return e.priority - t.priority; 26851 })), n; 26852 }(e = z(e)), r = i.length; 26853 for (n = 0; n < r; n++) this[i[n].unit](e[i[n].unit]); 26854 } else if (k(this[e = B(e)])) return this[e](t); 26855 return this; 26856 }, gn.startOf = function(e) { 26857 var t, n; 26858 if (void 0 === (e = B(e)) || "millisecond" === e || !this.isValid()) return this; 26859 switch (n = this._isUTC ? rn : nn, e) { 26860 case "year": 26861 t = n(this.year(), 0, 1); 26862 break; 26863 26864 case "quarter": 26865 t = n(this.year(), this.month() - this.month() % 3, 1); 26866 break; 26867 26868 case "month": 26869 t = n(this.year(), this.month(), 1); 26870 break; 26871 26872 case "week": 26873 t = n(this.year(), this.month(), this.date() - this.weekday()); 26874 break; 26875 26876 case "isoWeek": 26877 t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1)); 26878 break; 26879 26880 case "day": 26881 case "date": 26882 t = n(this.year(), this.month(), this.date()); 26883 break; 26884 26885 case "hour": 26886 t = this._d.valueOf(), t -= tn(t + (this._isUTC ? 0 : 6e4 * this.utcOffset()), 36e5); 26887 break; 26888 26889 case "minute": 26890 t = this._d.valueOf(), t -= tn(t, 6e4); 26891 break; 26892 26893 case "second": 26894 t = this._d.valueOf(), t -= tn(t, 1e3); 26895 } 26896 return this._d.setTime(t), i.updateOffset(this, !0), this; 26897 }, gn.subtract = Gt, gn.toArray = function() { 26898 var e = this; 26899 return [ e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond() ]; 26900 }, gn.toObject = function() { 26901 var e = this; 26902 return { 26903 years: e.year(), 26904 months: e.month(), 26905 date: e.date(), 26906 hours: e.hours(), 26907 minutes: e.minutes(), 26908 seconds: e.seconds(), 26909 milliseconds: e.milliseconds() 26910 }; 26911 }, gn.toDate = function() { 26912 return new Date(this.valueOf()); 26913 }, gn.toISOString = function(e) { 26914 if (!this.isValid()) return null; 26915 var t = !0 !== e, n = t ? this.clone().utc() : this;
26916 return n.year() < 0 || n.year() > 9999 ? F(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : k(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace("Z", F(n, "Z")) : F(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"); 26917 }, gn.inspect = function() { 26918 if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)"; 26919 var e, t, n, i = "moment", r = ""; 26920 return this.isLocal() || (i = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone", 26921 r = "Z"), e = "[" + i + '("]', t = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", 26922 n = r + '[")]', this.format(e + t + "-MM-DD[T]HH:mm:ss.SSS" + n); 26923 }, "undefined" != typeof Symbol && null != Symbol.for && (gn[Symbol.for("nodejs.util.inspect.custom")] = function() { 26924 return "Moment<" + this.format() + ">"; 26925 }), gn.toJSON = function() { 26926 return this.isValid() ? this.toISOString() : null; 26927 }, gn.toString = function() { 26928 return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); 26929 }, gn.unix = function() { 26930 return Math.floor(this.valueOf() / 1e3); 26931 }, gn.valueOf = function() { 26932 return this._d.valueOf() - 6e4 * (this._offset || 0); 26933 }, gn.creationData = function() { 26934 return { 26935 input: this._i, 26936 format: this._f, 26937 locale: this._locale, 26938 isUTC: this._isUTC, 26939 strict: this._strict 26940 }; 26941 }, gn.eraName = function() { 26942 var e, t, n, i = this.localeData().eras(); 26943 for (e = 0, t = i.length; e < t; ++e) { 26944 if (n = this.clone().startOf("day").valueOf(), i[e].since <= n && n <= i[e].until) return i[e].name; 26945 if (i[e].until <= n && n <= i[e].since) return i[e].name; 26946 } 26947 return ""; 26948 }, gn.eraNarrow = function() { 26949 var e, t, n, i = this.localeData().eras(); 26950 for (e = 0, t = i.length; e < t; ++e) { 26951 if (n = this.clone().startOf("day").valueOf(), i[e].since <= n && n <= i[e].until) return i[e].narrow; 26952 if (i[e].until <= n && n <= i[e].since) return i[e].narrow; 26953 } 26954 return ""; 26955 }, gn.eraAbbr = function() { 26956 var e, t, n, i = this.localeData().eras(); 26957 for (e = 0, t = i.length; e < t; ++e) { 26958 if (n = this.clone().startOf("day").valueOf(), i[e].since <= n && n <= i[e].until) return i[e].abbr; 26959 if (i[e].until <= n && n <= i[e].since) return i[e].abbr; 26960 } 26961 return ""; 26962 }, gn.eraYear = function() { 26963 var e, t, n, r, o = this.localeData().eras(); 26964 for (e = 0, t = o.length; e < t; ++e) if (n = o[e].since <= o[e].until ? 1 : -1, 26965 r = this.clone().startOf("day").valueOf(), o[e].since <= r && r <= o[e].until || o[e].until <= r && r <= o[e].since) return (this.year() - i(o[e].since).year()) * n + o[e].offset; 26966 return this.year(); 26967 }, gn.year = ye, gn.isLeapYear = function() { 26968 return ge(this.year()); 26969 }, gn.weekYear = function(e) { 26970 return ln.call(this, e, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy); 26971 }, gn.isoWeekYear = function(e) { 26972 return ln.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4); 26973 }, gn.quarter = gn.quarters = function(e) { 26974 return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3); 26975 }
26975, gn.month = Pe, gn.daysInMonth = function() { 26976 return Se(this.year(), this.month()); 26977 }, gn.week = gn.weeks = function(e) { 26978 var t = this.localeData().week(this); 26979 return null == e ? t : this.add(7 * (e - t), "d"); 26980 }, gn.isoWeek = gn.isoWeeks = function(e) { 26981 var t = je(this, 1, 4).week; 26982 return null == e ? t : this.add(7 * (e - t), "d"); 26983 }, gn.weeksInYear = function() { 26984 var e = this.localeData()._week; 26985 return Re(this.year(), e.dow, e.doy); 26986 }, gn.weeksInWeekYear = function() { 26987 var e = this.localeData()._week; 26988 return Re(this.weekYear(), e.dow, e.doy); 26989 }, gn.isoWeeksInYear = function() { 26990 return Re(this.year(), 1, 4); 26991 }, gn.isoWeeksInISOWeekYear = function() { 26992 return Re(this.isoWeekYear(), 1, 4); 26993 }, gn.date = un, gn.day = gn.days = function(e) { 26994 if (!this.isValid()) return null != e ? this : NaN; 26995 var t = we(this, "Day"); 26996 return null != e ? (e = function(e, t) { 26997 return "string" != typeof e ? e : isNaN(e) ? "number" == typeof (e = t.weekdaysParse(e)) ? e : null : parseInt(e, 10); 26998 }(e, this.localeData()), this.add(e - t, "d")) : t; 26999 }, gn.weekday = function(e) { 27000 if (!this.isValid()) return null != e ? this : NaN; 27001 var t = (this.day() + 7 - this.localeData()._week.dow) % 7; 27002 return null == e ? t : this.add(e - t, "d"); 27003 }, gn.isoWeekday = function(e) { 27004 if (!this.isValid()) return null != e ? this : NaN; 27005 if (null != e) { 27006 var t = function(e, t) { 27007 return "string" == typeof e ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e; 27008 }(e, this.localeData()); 27009 return this.day(this.day() % 7 ? t : t - 7); 27010 } 27011 return this.day() || 7; 27012 }, gn.dayOfYear = function(e) { 27013 var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1; 27014 return null == e ? t : this.add(e - t, "d"); 27015 }, gn.hour = gn.hours = Je, gn.minute = gn.minutes = dn, gn.second = gn.seconds = pn, 27016 gn.millisecond = gn.milliseconds = fn, gn.utcOffset = function(e, t, n) { 27017 var r, o = this._offset || 0; 27018 if (!this.isValid()) return null != e ? this : NaN; 27019 if (null != e) { 27020 if ("string" == typeof e) { 27021 if (null === (e = Nt(ie, e))) return this; 27022 } else Math.abs(e) < 16 && !n && (e *= 60); 27023 return !this._isUTC && t && (r = jt(this)), this._offset = e, this._isUTC = !0, 27024 null != r && this.add(r, "m"), o !== e && (!t || this._changeInProgress ? Vt(this, Ht(e - o, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0, 27025 i.updateOffset(this, !0), this._changeInProgress = null)), this; 27026 } 27027 return this._isUTC ? o : jt(this); 27028 }, gn.utc = function(e) { 27029 return this.utcOffset(0, e); 27030 }, gn.local = function(e) { 27031 return this._isUTC && (this.utcOffset(0, e), this._isUTC = !1, e && this.subtract(jt(this), "m")), 27032 this; 27033 }, gn.parseZone = function() { 27034 if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); else if ("string" == typeof this._i) { 27035 var e = Nt(ne, this._i); 27036 null != e ? this.utcOffset(e) : this.utcOffset(0, !0); 27037 } 27038 return this; 27039 }, gn.hasAlignedHourOffset = function(e) { 27040 return !!this.isValid() && (e = e ? Ct(e).utcOffset() : 0, (this.utcOffset() - e) % 60 == 0); 27041 }, gn.isDST = function() { 27042 return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); 27043 }, gn.isLocal = function() { 27044 return !!this.isValid() && !this._isUTC; 27045 }, gn.isUtcOffset = function() { 27046 return !!this.isValid() && this._isUTC; 27047 }, gn.isUtc = Rt, gn.isUTC = Rt, gn.zoneAbbr = function() { 27048 return this._isUTC ? "UTC" : ""; 27049 }, gn.zoneName = function() { 27050 return this._isUTC ? "Coordinated Universal Time" : ""; 27051 }, gn.dates = S("dates accessor is deprecated. Use date instead.", un), gn.months = S("months accessor is deprecated. Use month instead", Pe), 27052 gn.years = S("years accessor is deprecated. Use year instead", ye), gn.zone = S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", (function(e, t) { 27053 return null != e ? ("string" != typeof e && (e = -e), this.utcOffset(e, t), this) : -this.utcOffset(); 27054 })), gn.isDSTShifted = S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", (function() { 27055 if (!l(this._isDSTShifted)) return this._isDSTShifted; 27056 var e, t = {}; 27057 return y(t, this), (t = St(t))._a ? (e = t._isUTC ? f(t._a) : Ct(t._a), this._isDSTShifted = this.isValid() && function(e, t, n) { 27058 var i, r = Math.min(e.length, t.length), o = Math.abs(e.length - t.length), s = 0; 27059 for (i = 0; i < r; i++) (n && e[i] !== t[i] || !n && de(e[i]) !== de(t[i])) && s++; 27060 return s + o; 27061 }(t._a, e.toArray()) > 0) : this._isDSTShifted = !1, this._isDSTShifted; 27062 })); 27063 var bn = A.prototype; 27064 function yn(e, t, n, i) { 27065 var r = at(), o = f().set(i, t); 27066 return r[n](o, e); 27067 } 27068 function xn(e, t, n) { 27069 if (c(e) && (t = e, e = void 0), e = e || "", null != t) return yn(e, t, n, "month"); 27070 var i, r = []; 27071 for (i = 0; i < 12; i++) r[i] = yn(e, i, n, "month"); 27072 return r; 27073 } 27074 function wn(e, t, n, i) { 27075 "boolean" == typeof e ? (c(t) && (n = t, t = void 0), t = t || "") : (n = t = e, 27076 e = !1, c(t) && (n = t, t = void 0), t = t || ""); 27077 var r, o = at(), s = e ? o._week.dow : 0, a = []; 27078 if (null != n) return yn(t, (n + s) % 7, i, "day"); 27079 for (r = 0; r < 7; r++) a[r] = yn(t, (r + s) % 7, i, "day"); 27080 return a; 27081 } 27082 bn.calendar = function(e, t, n) { 27083 var i = this._calendar[e] || this._calendar.sameElse; 27084 return k(i) ? i.call(t, n) : i; 27085 }, bn.longDateFormat = function(e) { 27086 var t = this._longDateFormat[e], n = this._longDateFormat[e.toUpperCase()]; 27087 return t || !n ? t : (this._longDateFormat[e] = n.match(P).map((function(e) { 27088 return "MMMM" === e || "MM" === e || "DD" === e || "dddd" === e ? e.slice(1) : e; 27089 })).join(""), this._longDateFormat[e]); 27090 }, bn.invalidDate = function() { 27091 return this._invalidDate; 27092 }, bn.ordinal = function(e) { 27093 return this._ordinal.replace("%d", e); 27094 }, bn.preparse = vn, bn.postformat = vn, bn.relativeTime = function(e, t, n, i) { 27095 var r = this._relativeTime[n]; 27096 return k(r) ? r(e, t, n, i) : r.replace(/%d/i, e); 27097 }, bn.pastFuture = function(e, t) { 27098 var n = this._relativeTime[e > 0 ? "future" : "past"]; 27099 return k(n) ? n(t) : n.replace(/%s/i, t); 27100 }, bn.set = function(e) { 27101 var t, n; 27102 for (n in e) s(e, n) && (k(t = e[n]) ? this[n] = t : this["_" + n] = t); 27103 this._config = e, this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source); 27104 }, bn.eras = function(e, t) { 27105 var n, r, o, s = this._eras || at("en")._eras; 27106 for (n = 0, r = s.length; n < r; ++n) { 27107 switch (typeof s[n].since) { 27108 case "string": 27109 o = i(s[n].since).startOf("day"), s[n].since = o.valueOf(); 27110 } 27111 switch (typeof s[n].until) { 27112 case "undefined": 27113 s[n].until = 1 / 0; 27114 break; 27115 27116 case "string": 27117 o = i(s[n].until).startOf("day").valueOf(), s[n].until = o.valueOf(); 27118 } 27119 } 27120 return s; 27121 }, bn.erasParse = function(e, t, n) { 27122 var i, r, o, s, a, l = this.eras(); 27123 for (e = e.toUpperCase(), i = 0, r = l.length; i < r; ++i) if (o = l[i].name.toUpperCase(), 27124 s = l[i].abbr.toUpperCase(), a = l[i].narrow.toUpperCase(), n) switch (t) { 27125 case "N": 27126 case "NN": 27127 case "NNN": 27128 if (s === e) return l[i]; 27129 break; 27130 27131 case "NNNN": 27132 if (o === e) return l[i]; 27133 break; 27134 27135 case "NNNNN": 27136 if (a === e) return l[i]; 27137 } else if ([ o, s, a ].indexOf(e) >= 0) return l[i]; 27138 }, bn.erasConvertYear = function(e, t) { 27139 var n = e.since <= e.until ? 1 : -1; 27140 return void 0 === t ? i(e.since).year() : i(e.since).year() + (t - e.offset) * n; 27141 }, bn.erasAbbrRegex = function(e) { 27142 return s(this, "_erasAbbrRegex") || sn.call(this), e ? this._erasAbbrRegex : this._erasRegex; 27143 }, bn.erasNameRegex = function(e) { 27144 return s(this, "_erasNameRegex") || sn.call(this), e ? this._erasNameRegex : this._erasRegex; 27145 }, bn.erasNarrowRegex = function(e) { 27146 return s(this, "_erasNarrowRegex") || sn.call(this), e ? this._erasNarrowRegex : this._erasRegex; 27147 }, bn.months = function(e, t) { 27148 return e ? r(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || Te).test(t) ? "format" : "standalone"][e.month()] : r(this._months) ? this._months : this._months.standalone; 27149 }, bn.monthsShort = function(e, t) { 27150 return e ? r(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[Te.test(t) ? "format" : "standalone"][e.month()] : r(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone; 27151 }, bn.monthsParse = function(e, t, n) { 27152 var i, r, o; 27153 if (this._monthsParseExact) return Ae.call(this, e, t, n); 27154 for (this._monthsParse || (this._monthsParse = [], this._longMonthsParse = [], this._shortMonthsParse = []), 27155 i = 0; i < 12; i++) { 27156 if (r = f([ 2e3, i ]), n && !this._longMonthsParse[i] && (this._longMonthsParse[i] = new RegExp("^" + this.months(r, "").replace(".", "") + "$", "i"), 27157 this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(r, "").replace(".", "") + "$", "i")), 27158 n || this._monthsParse[i] || (o = "^" + this.months(r, "") + "|^" + this.monthsShort(r, ""), 27159 this._monthsParse[i] = new RegExp(o.replace(".", ""), "i")), n && "MMMM" === t && this._longMonthsParse[i].test(e)) return i; 27160 if (n && "MMM" === t && this._shortMonthsParse[i].test(e)) return i; 27161 if (!n && this._monthsParse[i].test(e)) return i; 27162 } 27163 }, bn.monthsRegex = function(e) { 27164 return this._monthsParseExact ? (s(this, "_monthsRegex") || Ie.call(this), e ? this._monthsStrictRegex : this._monthsRegex) : (s(this, "_monthsRegex") || (this._monthsRegex = Me), 27165 this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex); 27166 }, bn.monthsShortRegex = function(e) { 27167 return this._monthsParseExact ? (s(this, "_monthsRegex") || Ie.call(this), e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (s(this, "_monthsShortRegex") || (this._monthsShortRegex = ke), 27168 this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex); 27169 }, bn.week = function(e) { 27170 return je(e, this._week.dow, this._week.doy).week; 27171 }, bn.firstDayOfYear = function() { 27172 return this._week.doy; 27173 }, bn.firstDayOfWeek = function() { 27174 return this._week.dow; 27175 }, bn.weekdays = function(e, t) { 27176 var n = r(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(t) ? "format" : "standalone"]; 27177 return !0 === e ? Be(n, this._week.dow) : e ? n[e.day()] : n; 27178 }, bn.weekdaysMin = function(e) { 27179 return !0 === e ? Be(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin; 27180 }, bn.weekdaysShort = function(e) { 27181 return !0 === e ? Be(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort; 27182 }, bn.weekdaysParse = function(e, t, n) { 27183 var i, r, o; 27184 if (this._weekdaysParseExact) return Ye.call(this, e, t, n); 27185 for (this._weekdaysParse || (this._weekdaysParse = [], this._minWeekdaysParse = [], 27186 this._shortWeekdaysParse = [], this._fullWeekdaysParse = []), i = 0; i < 7; i++) { 27187 if (r = f([ 2e3, 1 ]).day(i), n && !this._fullWeekdaysParse[i] && (this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(r, "").replace(".", "\\.?") + "$", "i"), 27188 this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(r, "").replace(".", "\\.?") + "$", "i"), 27189 this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(r, "").replace(".", "\\.?") + "$", "i")), 27190 this._weekdaysParse[i] || (o = "^" + this.weekdays(r, "") + "|^" + this.weekdaysShort(r, "") + "|^" + this.weekdaysMin(r, ""), 27191 this._weekdaysParse[i] = new RegExp(o.replace(".", ""), "i")), n && "dddd" === t && this._fullWeekdaysParse[i].test(e)) return i; 27192 if (n && "ddd" === t && this._shortWeekdaysParse[i].test(e)) return i; 27193 if (n && "dd" === t && this._minWeekdaysParse[i].test(e)) return i; 27194 if (!n && this._weekdaysParse[i].test(e)) return i; 27195 } 27196 }, bn.weekdaysRegex = function(e) { 27197 return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || Ge.call(this), e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (s(this, "_weekdaysRegex") || (this._weekdaysRegex = We), 27198 this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex); 27199 }, bn.weekdaysShortRegex = function(e) { 27200 return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || Ge.call(this), e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (s(this, "_weekday
27200sShortRegex") || (this._weekdaysShortRegex = qe), 27201 this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex); 27202 }, bn.weekdaysMinRegex = function(e) { 27203 return this._weekdaysParseExact ? (s(this, "_weekdaysRegex") || Ge.call(this), e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (s(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = Ve), 27204 this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex); 27205 }, bn.isPM = function(e) { 27206 return "p" === (e + "").toLowerCase().charAt(0); 27207 }, bn.meridiem = function(e, t, n) { 27208 return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM"; 27209 }, ot("en", { 27210 eras: [ { 27211 since: "0001-01-01", 27212 until: 1 / 0, 27213 offset: 1, 27214 name: "Anno Domini", 27215 narrow: "AD", 27216 abbr: "AD" 27217 }, { 27218 since: "0000-12-31", 27219 until: -1 / 0, 27220 offset: 1, 27221 name: "Before Christ", 27222 narrow: "BC", 27223 abbr: "BC" 27224 } ], 27225 dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, 27226 ordinal: function(e) { 27227 var t = e % 10; 27228 return e + (1 === de(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th"); 27229 } 27230 }), i.lang = S("moment.lang is deprecated. Use moment.locale instead.", ot), i.langData = S("moment.langData is deprecated. Use moment.localeData instead.", at); 27231 var _n = Math.abs; 27232 function Sn(e, t, n, i) { 27233 var r = Ht(t, n); 27234 return e._milliseconds += i * r._milliseconds, e._days += i * r._days, e._months += i * r._months, 27235 e._bubble(); 27236 } 27237 function En(e) { 27238 return e < 0 ? Math.floor(e) : Math.ceil(e); 27239 } 27240 function Cn(e) { 27241 return 4800 * e / 146097; 27242 } 27243 function Tn(e) { 27244 return 146097 * e / 4800; 27245 } 27246 function kn(e) { 27247 return function() { 27248 return this.as(e); 27249 }; 27250 } 27251 var Mn = kn("ms"), An = kn("s"), On = kn("m"), Pn = kn("h"), In = kn("d"), Ln = kn("w"), Dn = kn("M"), Nn = kn("Q"), Fn = kn("y"), jn = Mn; 27252 function Rn(e) { 27253 return function() { 27254 return this.isValid() ? this._data[e] : NaN; 27255 }; 27256 } 27257 var Bn = Rn("milliseconds"), zn = Rn("seconds"), Hn = Rn("minutes"), $n = Rn("hours"), Wn = Rn("days"), qn = Rn("months"), Vn = Rn("years"), Yn = Math.round, Gn = { 27258 ss: 44, 27259 s: 45, 27260 m: 45, 27261 h: 22, 27262 d: 26, 27263 w: null, 27264 M: 11 27265 }; 27266 function Un(e, t, n, i, r) { 27267 return r.relativeTime(t || 1, !!n, e, i); 27268 } 27269 var Xn = Math.abs; 27270 function Kn(e) { 27271 return (e > 0) - (e < 0) || +e; 27272 } 27273 function Zn() { 27274 if (!this.isValid()) return this.localeData().invalidDate(); 27275 var e, t, n, i, r, o, s, a, l = Xn(this._milliseconds) / 1e3, c = Xn(this._days), u = Xn(this._months), d = this.asSeconds(); 27276 return d ? (e = ue(l / 60), t = ue(e / 60), l %= 60, e %= 60, n = ue(u / 12), u %= 12, 27277 i = l ? l.toFixed(3).replace(/\.?0+$/, "") : "", r = d < 0 ? "-" : "", o = Kn(this._months) !== Kn(d) ? "-" : "", 27278 s = Kn(this._days) !== Kn(d) ? "-" : "", a = Kn(this._milliseconds) !== Kn(d) ? "-" : "", 27279 r + "P" + (n ? o + n + "Y" : "") + (u ? o + u + "M" : "") + (c ? s + c + "D" : "") + (t || e || l ? "T" : "") + (t ? a + t + "H" : "") + (e ? a + e + "M" : "") + (l ? a + i + "S" : "")) : "P0D"; 27280 } 27281 var Jn = Ot.prototype; 27282 return Jn.isValid = function() { 27283 return this._isValid; 27284 }, Jn.abs = function() { 27285 var e = this._data; 27286 return this._milliseconds = _n(this._milliseconds), this._days = _n(this._days), 27287 this._months = _n(this._months), e.milliseconds = _n(e.milliseconds), e.seconds = _n(e.seconds), 27288 e.minutes = _n(e.minutes), e.hours = _n(e.hours), e.months = _n(e.months), e.years = _n(e.
27288years), 27289 this; 27290 }, Jn.add = function(e, t) { 27291 return Sn(this, e, t, 1); 27292 }, Jn.subtract = function(e, t) { 27293 return Sn(this, e, t, -1); 27294 }, Jn.as = function(e) { 27295 if (!this.isValid()) return NaN; 27296 var t, n, i = this._milliseconds; 27297 if ("month" === (e = B(e)) || "quarter" === e || "year" === e) switch (t = this._days + i / 864e5, 27298 n = this._months + Cn(t), e) { 27299 case "month": 27300 return n; 27301 27302 case "quarter": 27303 return n / 3; 27304 27305 case "year": 27306 return n / 12; 27307 } else switch (t = this._days + Math.round(Tn(this._months)), e) { 27308 case "week": 27309 return t / 7 + i / 6048e5; 27310 27311 case "day": 27312 return t + i / 864e5; 27313 27314 case "hour": 27315 return 24 * t + i / 36e5; 27316 27317 case "minute": 27318 return 1440 * t + i / 6e4; 27319 27320 case "second": 27321 return 86400 * t + i / 1e3; 27322 27323 case "millisecond": 27324 return Math.floor(864e5 * t) + i; 27325 27326 default: 27327 throw new Error("Unknown unit " + e); 27328 } 27329 }, Jn.asMilliseconds = Mn, Jn.asSeconds = An, Jn.asMinutes = On, Jn.asHours = Pn, 27330 Jn.asDays = In, Jn.asWeeks = Ln, Jn.asMonths = Dn, Jn.asQuarters = Nn, Jn.asYears = Fn, 27331 Jn.valueOf = jn, Jn._bubble = function() { 27332 var e, t, n, i, r, o = this._milliseconds, s = this._days, a = this._months, l = this._data; 27333 return o >= 0 && s >= 0 && a >= 0 || o <= 0 && s <= 0 && a <= 0 || (o += 864e5 * En(Tn(a) + s), 27334 s = 0, a = 0), l.milliseconds = o % 1e3, e = ue(o / 1e3), l.seconds = e % 60, t = ue(e / 60), 27335 l.minutes = t % 60, n = ue(t / 60), l.hours = n % 24, s += ue(n / 24), r = ue(Cn(s)), 27336 a += r, s -= En(Tn(r)), i = ue(a / 12), a %= 12, l.days = s, l.months = a, l.years = i, 27337 this; 27338 }, Jn.clone = function() { 27339 return Ht(this); 27340 }, Jn.get = function(e) { 27341 return e = B(e), this.isValid() ? this[e + "s"]() : NaN; 27342 }, Jn.milliseconds = Bn, Jn.seconds = zn, Jn.minutes = Hn, Jn.hours = $n, Jn.days = Wn, 27343 Jn.weeks = function() { 27344 return ue(this.days() / 7); 27345 }, Jn.months = qn, Jn.years = Vn, Jn.humanize = function(e, t) { 27346 if (!this.isValid()) return this.localeData().invalidDate(); 27347 var n, i, r = !1, o = Gn; 27348 return "object" == typeof e && (t = e, e = !1), "boolean" == typeof e && (r = e), 27349 "object" == typeof t && (o = Object.assign({}, Gn, t), null != t.s && null == t.ss && (o.ss = t.s - 1)), 27350 n = this.localeData(), i = function(e, t, n, i) { 27351 var r = Ht(e).abs(), o = Yn(r.as("s")), s = Yn(r.as("m")), a = Yn(r.as("h")), l = Yn(r.as("d")), c = Yn(r.as("M")), u = Yn(r.as("w")), d = Yn(r.as("y")), h = o <= n.ss && [ "s", o ] || o < n.s && [ "ss", o ] || s <= 1 && [ "m" ] || s < n.m && [ "mm", s ] || a <= 1 && [ "h" ] || a < n.h && [ "hh", a ] || l <= 1 && [ "d" ] || l < n.d && [ "dd", l ]; 27352 return null != n.w && (h = h || u <= 1 && [ "w" ] || u < n.w && [ "ww", u ]), (h = h || c <= 1 && [ "M" ] || c < n.M && [ "MM", c ] || d <= 1 && [ "y" ] || [ "yy", d ])[2] = t, 27353 h[3] = +e > 0, h[4] = i, Un.apply(null, h); 27354 }(this, !r, o, n), r && (i = n.pastFuture(+this, i)), n.postformat(i); 27355 }, Jn.toISOString = Zn, Jn.toString = Zn, Jn.toJSON = Zn, Jn.locale = Jt, Jn.localeData = en, 27356 Jn.toIsoString = S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", Zn), 27357 Jn.lang = Qt, N("X", 0, 0, "unix"), N("x", 0, 0, "valueOf"), ae("x", te), ae("X", /[+-]?\d+(\.\d{1,3})?/), 27358 fe("X", (function(e, t, n) { 27359 n._d = new Date(1e3 * parseFloat(e)); 27360 })), fe("x", (function(e, t, n) { 27361 n._d = new Date(de(e)); 27362 })), i.version = "2.30.1", t = Ct, i.fn = gn, i.min = function() { 27363 var e = [].slice.call(arguments, 0); 27364 return Mt("isBefore", e); 27365 }, i.max = function() { 27366 var e = [].slice.call(arguments, 0); 27367 return Mt("isAfter", e); 27368 }, i.now = function() { 27369 return Date.now ? Date.now() : +new Date; 27370 }, i.utc = f, i.unix = function(e) { 27371 return Ct(1e3 * e); 27372 }, i.months = function(e, t) { 27373 return xn(e, t, "months"); 27374 }, i.isDate = u, i.locale = ot, i.invalid = g, i.duration = Ht, i.isMoment = w, 27375 i.weekdays = function(e, t, n) { 27376 return wn(e, t, n, "weekdays"); 27377 }, i.parseZone = function() { 27378 return Ct.apply(null, arguments).parseZone(); 27379 }, i.localeData = at, i.isDuration = Pt, i.monthsShort = function(e, t) { 27380 return xn(e, t, "monthsShort"); 27381 }, i.weekdaysMin = function(e, t, n) { 27382 return wn(e, t, n, "weekdaysMin"); 27383 }, i.defineLocale = st, i.updateLocale = function(e, t) { 27384 if (null != t) { 27385 var n, i, r = Qe; 27386 null != et[e] && null != et[e].parentLocale ? et[e].set(M(et[e]._config, t)) : (null != (i = rt(e)) && (r = i._config), 27387 t = M(r, t), null == i && (t.abbr = e), (n = new A(t)).parentLocale = et[e], et[e] = n), 27388 ot(e); 27389 } else null != et[e] && (null != et[e].parentLocale ? (et[e] = et[e].parentLocale, 27390 e === ot() && ot(e)) : null != et[e] && delete et[e]); 27391 return et[e]; 27392 }, i.locales = function() { 27393 return E(et); 27394 }, i.weekdaysShort = function(e, t, n) { 27395 return wn(e, t, n, "weekdaysShort"); 27396 }, i.normalizeUnits = B, i.relativeTimeRounding = function(e) { 27397 return void 0 === e ? Yn : "function" == typeof e && (Yn = e, !0); 27398 }, i.relativeTimeThreshold = function(e, t) { 27399 return void 0 !== Gn[e] && (void 0 === t ? Gn[e] : (Gn[e] = t, "s" === e && (Gn.ss = t - 1), 27400 !0)); 27401 }, i.calendarFormat = function(e, t) { 27402 var n = e.diff(t, "days", !0); 27403 return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse"; 27404 }, i.prototype = gn, i.HTML5_FMT = { 27405 DATETIME_LOCAL: "YYYY-MM-DDTHH:mm", 27406 DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss", 27407 DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS", 27408 DATE: "YYYY-MM-DD", 27409 TIME: "HH:mm", 27410 TIME_SECONDS: "HH:mm:ss", 27411 TIME_MS: "HH:mm:ss.SSS", 27412 WEEK: "GGGG-[W]WW", 27413 MONTH: "YYYY-MM" 27414 }, i; 27415 }(); 27416 }).call(this, n(166)(e)); 27417 }, function(e, t, n) { 27418 var i, r, o; 27419 !function(s, a) { 27420 if (s) { 27421 a = a.bind(null, s, s.document), e.exports ? a(n(160)) : (r = [ n(160) ], void 0 === (o = "function" == typeof (i = a) ? i.apply(t, r) : i) || (e.exports = o)); 27422 } 27423 }("undefined" != typeof window ? window : 0, (function(e, t, n) { 27424 "use strict"; 27425 if (e.addEventListener) { 27426 var i = /\s+(\d+)(w|h)\s+(\d+)(w|h)/, r = /parent-fit["']*\s*:\s*["']*(contain|cover|width)/, o = /parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/, s = /^picture$/i, a = n.cfg, l = { 27427 getParent: function(t, n) { 27428 var i = t, r = t.parentNode; 27429 return n && "prev" != n || !r || !s.test(r.nodeName || "") || (r = r.parentNode), 27430 "self" != n && (i = "prev" == n ? t.previousElementSibling : n && (r.closest || e.jQuery) && (r.closest ? r.closest(n) : jQuery(r).closest(n)[0]) || r), 27431 i; 27432 }, 27433 getFit: function(e) { 27434 var t, n, i = getComputedStyle(e, null) || {}, s = i.content || i.fontFamily, a = { 27435 fit: e._lazysizesParentFit || e.getAttribute("data-parent-fit") 27436 }; 27437 return !a.fit && s && (t = s.match(r)) && (a.fit = t[1]), a.fit ? (!(n = e._lazysizesParentContainer || e.getAttribute("data-parent-container")) && s && (t = s.match(o)
27437) && (n = t[1]), 27438 a.parent = l.getParent(e, n)) : a.fit = i.objectFit, a; 27439 }, 27440 getImageRatio: function(t) { 27441 var n, r, o, l, c, u, d, h = t.parentNode, f = h && s.test(h.nodeName || "") ? h.querySelectorAll("source, img") : [ t ]; 27442 for (n = 0; n < f.length; n++) if (r = (t = f[n]).getAttribute(a.srcsetAttr) || t.getAttribute("srcset") || t.getAttribute("data-pfsrcset") || t.getAttribute("data-risrcset") || "", 27443 o = t._lsMedia || t.getAttribute("media"), o = a.customMedia[t.getAttribute("data-media") || o] || o, 27444 r && (!o || (e.matchMedia && matchMedia(o) || {}).matches)) { 27445 (l = parseFloat(t.getAttribute("data-aspectratio"))) || ((c = r.match(i)) ? "w" == c[2] ? (u = c[1], 27446 d = c[3]) : (u = c[3], d = c[1]) : (u = t.getAttribute("width"), d = t.getAttribute("height")), 27447 l = u / d); 27448 break; 27449 } 27450 return l; 27451 }, 27452 calculateSize: function(e, t) { 27453 var n, i, r, o = this.getFit(e), s = o.fit, a = o.parent; 27454 return "width" == s || ("contain" == s || "cover" == s) && (i = this.getImageRatio(e)) ? (a ? t = a.clientWidth : a = e, 27455 r = t, "width" == s ? r = t : (n = t / a.clientHeight) && ("cover" == s && n < i || "contain" == s && n > i) && (r = t * (i / n)), 27456 r) : t; 27457 } 27458 }; 27459 n.parentFit = l, t.addEventListener("lazybeforesizes", (function(e) { 27460 if (!e.defaultPrevented && e.detail.instance == n) { 27461 var t = e.target; 27462 e.detail.width = l.calculateSize(t, e.detail.width); 27463 } 27464 })); 27465 } 27466 })); 27467 }, function(e, t, n) { 27468 var i, r, o; 27469 !function(s, a) { 27470 if (s) { 27471 a = a.bind(null, s, s.document), e.exports ? a(n(160)) : (r = [ n(160) ], void 0 === (o = "function" == typeof (i = a) ? i.apply(t, r) : i) || (e.exports = o)); 27472 } 27473 }("undefined" != typeof window ? window : 0, (function(e, t, n) { 27474 "use strict"; 27475 var i, r, o, s, a, l, c, u, d, h, f, p, m, g, v, b, y = n.cfg, x = t.createElement("img"), w = "sizes" in x && "srcset" in x, _ = /\s+\d+h/g, S = (r = /\s+(\d+)(w|h)\s+(\d+)(w|h)/, 27476 o = Array.prototype.forEach, function() { 27477 var e = t.createElement("img"), i = function(e) { 27478 var t, n, i = e.getAttribute(y.srcsetAttr); 27479 i && (n = i.match(r)) && ((t = "w" == n[2] ? n[1] / n[3] : n[3] / n[1]) && e.setAttribute("data-aspectratio", t), 27480 e.setAttribute(y.srcsetAttr, i.replace(_, ""))); 27481 }, s = function(e) { 27482 if (e.detail.instance == n) { 27483 var t = e.target.parentNode; 27484 t && "PICTURE" == t.nodeName && o.call(t.getElementsByTagName("source"), i), i(e.target); 27485 } 27486 }, a = function() { 27487 e.currentSrc && t.removeEventListener("lazybeforeunveil", s); 27488 }; 27489 t.addEventListener("lazybeforeunveil", s), e.onload = a, e.onerror = a, e.srcset = "data:,a 1w 1h", 27490 e.complete && a(); 27491 }); 27492 (y.supportsType || (y.supportsType = function(e) { 27493 return !e; 27494 }), e.HTMLPictureElement && w) ? !n.hasHDescriptorFix && t.msElementsFromPoint && (n.hasHDescriptorFix = !0, 27495 S()) : e.picturefill || y.pf || (y.pf = function(t) { 27496 var n, r; 27497 if (!e.picturefill) for (n = 0, r = t.elements.length; n < r; n++) i(t.elements[n]); 27498 }, u = function(e, t) { 27499 return e.w - t.w; 27500 }, d = /^\s*\d+\.*\d*px\s*$/, a = /(([^,\s].[^\s]+)\s+(\d+)w)/g, l = /\s/, c = function(e, t, n, i) { 27501 s.push({ 27502 c: t, 27503 u: n, 27504 w: 1 * i 27505 }); 27506 }, f = function() { 27507 var e, n, r; 27508 f.init || (f.init = !0, addEventListener("resize", (n = t.getElementsByClassName("lazymatchmedia"), 27509 r = function() { 27510 var e, t; 27511 for (e = 0, t = n.length; e < t; e++) i(n[e]); 27512 }, function() { 27513 clearTimeout(e), e = setTimeout(r, 66); 27514 }))); 27515 }, p = function(t, i) { 27516 var r, o = t.getAttribute("srcset") || t.getAttribute(y.srcsetAttr); 27517 !o && i && (o = t._lazypolyfill ? t._lazypolyfill._set : t.getAttribute(y.srcAttr) || t.getAttribute("src")), 27518 t._lazypolyfill && t._lazypolyfill._set == o || (r = h(o || ""), i && t.parentNode && (r.isPicture = "PICTURE" == t.parentNode.nodeName.toUpperCase(), 27519 r.isPicture && e.matchMedia && (n.aC(t, "lazymatchmedia"), f())), r._set = o, Object.defineProperty(t, "_lazypolyfill", { 27520 value: r, 27521 writable: !0 27522 })); 27523 }, m = function(t) { 27524 return e.matchMedia ? (m = function(e) { 27525 return !e || (matchMedia(e) || {}).matches; 27526 })(t) : !t; 27527 }, g = function(t) { 27528 var i, r, o, s, a, l, c; 27529 if (p(s = t, !0), (a = s._lazypolyfill).isPicture) for (r = 0, o = (i = t.parentNode.getElementsByTagName("source")).length; r < o; r++) if (y.supportsType(i[r].getAttribute("type"), t) && m(i[r].getAttribute("media"))) { 27530 s = i[r], p(s), a = s._lazypolyfill; 27531 break; 27532 } 27533 return a.length > 1 ? (c = s.getAttribute("sizes") || "", c = d.test(c) && parseInt(c, 10) || n.gW(t, t.parentNode), 27534 a.d = function(t) { 27535 var i = e.devicePixelRatio || 1, r = n.getX && n.getX(t); 27536 return Math.min(r || i, 2.5, i); 27537 }(t), !a.src || !a.w || a.w < c ? (a.w = c, l = function(e) { 27538 for (var t, n, i = e.length, r = e[i - 1], o = 0; o < i; o++) if ((r = e[o]).d = r.w / e.w, 27539 r.d >= e.d) { 27540 !r.cached && (t = e[o - 1]) && t.d > e.d - .13 * Math.pow(e.d, 2.2) && (n = Math.pow(t.d - .6, 1.6),
27541 t.cached && (t.d += .15 * n), t.d + (r.d - e.d) * n > e.d && (r = t)); 27542 break; 27543 } 27544 return r; 27545 }(a.sort(u)), a.src = l) : l = a.src) : l = a[0], l; 27546 }, (v = function(e) { 27547 if (!w || !e.parentNode || "PICTURE" == e.parentNode.nodeName.toUpperCase()) { 27548 var t = g(e); 27549 t && t.u && e._lazypolyfill.cur != t.u && (e._lazypolyfill.cur = t.u, t.cached = !0, 27550 e.setAttribute(y.srcAttr, t.u), e.setAttribute("src", t.u)); 27551 } 27552 }).parse = h = function(e) { 27553 return s = [], (e = e.trim()).replace(_, "").replace(a, c), s.length || !e || l.test(e) || s.push({ 27554 c: e, 27555 u: e, 27556 w: 99 27557 }), s; 27558 }, i = v, y.loadedClass && y.loadingClass && (b = [], [ 'img[sizes$="px"][srcset].', "picture > img:not([srcset])." ].forEach((function(e) { 27559 b.push(e + y.loadedClass), b.push(e + y.loadingClass); 27560 })), y.pf({ 27561 elements: t.querySelectorAll(b.join(", ")) 27562 }))); 27563 })); 27564 }, function(e, t, n) { 27565 var i, r, o; 27566 !function(s, a) { 27567 a = a.bind(null, s, s.document), e.exports ? a(n(160)) : (r = [ n(160) ], void 0 === (o = "function" == typeof (i = a) ? i.apply(t, r) : i) || (e.exports = o)); 27568 }(window, (function(e, t, n) { 27569 "use strict"; 27570 var i, r; 27571 "srcset" in t.createElement("img") && (i = /^img$/i, r = function(e) { 27572 e.target.style.backgroundSize = "", e.target.style.backgroundImage = "", e.target.removeEventListener(e.type, r); 27573 }, t.addEventListener("lazybeforeunveil", (function(e) { 27574 if (e.detail.instance == n) { 27575 var t = e.target; 27576 if (i.test(t.nodeName)) { 27577 var o = t.getAttribute("src"); 27578 o && (t.style.backgroundSize = "100% 100%", t.style.backgroundImage = "url(" + o + ")", 27579 t.removeAttribute("src"), t.addEventListener("load", r)); 27580 } 27581 } 27582 }), !1)); 27583 })); 27584 }, function(e, t, n) { 27585 var i, r, o; 27586 !function(s, a) { 27587 a = a.bind(null, s, s.document), e.exports ? a(n(160)) : (r = [ n(160) ], void 0 === (o = "function" == typeof (i = a) ? i.apply(t, r) : i) || (e.exports = o)); 27588 }(window, (function(e, t, n) { 27589 "use strict"; 27590 var i, r, o, s; 27591 e.addEventListener && (i = n && n.cfg, r = i.lazyClass || "lazyload", o = function() { 27592 var e, i; 27593 if ("string" == typeof r && (r = t.getElementsByClassName(r)), n) for (e = 0, i = r.length; e < i; e++) n.loader.unveil(r[e]); 27594 }, addEventListener("beforeprint", o, !1), !("onbeforeprint" in e) && e.matchMedia && (s = matchMedia("print")) && s.addListener && s.addListener((function() { 27595 s.matches && o(); 27596 }))); 27597 })); 27598 }, , function(e, t, n) { 27599 "use strict"; 27600 n.r(t); 27601 n(385), n(601); 27602 var i = n(580), r = n.n(i), o = n(581), s = n.n(o), a = n(582), l = n.n(a); 27603 n(602); 27604 var c = function(e) { 27605 var t = e.Element.prototype; 27606 "function" != typeof t.matches && (t.matches = t.msMatchesSelector || t.mozMatchesSelector || t.webkitMatchesSelector || function(e) { 27607 for (var t = (this.document || this.ownerDocument).querySelectorAll(e), n = 0; t[n] && t[n] !== this; ) ++n; 27608 return Boolean(t[n]); 27609 }), "function" != typeof t.closest && (t.closest = function(e) { 27610 for (var t = this; t && 1 === t.nodeType; ) { 27611 if (t.matches(e)) return t; 27612 t = t.parentNode; 27613 } 27614 return null; 27615 }); 27616 }, u = n(0), d = n(162); 27617 class h { 27618 constructor(e = ".message", t = null) { 27619 this.selector = e, this.created = !1, this.options = { 27620 closeBtnClass: "message__close", 27621 closeBtnIcon: '<i class="fal fa-times"><span class="ghost">Fermer</span></i>', 27622 closeHelperClass: "-has-close-btn", 27623 obj: { 27624 class: "", 27625 modifier: "", 27626 title: "", 27627 description: "", 27628 html: null, 27629 closeBtn: !1 27630 } 27631 }, this.create(); 27632 } 27633 create() { 27634 this.created || this.init(); 27635 } 27636 init() { 27637 if ("string" == typeof this.selector) { 27638 this.created = !0; 27639 const e = [ ...document.querySelectorAll("." + this.options.closeBtnClass) ]; 27640 e && e.forEach(e => { 27641 this.btnEvents(e, e.parentNode); 27642 }); 27643 } 27644 } 27645 createCloseBtn(e) { 27646 const t = document.createElement("button"); 27647 u.addClass(t, this.options.closeBtnClass), u.addClass(e, this.options.closeHelperClass), 27648 t.innerHTML = this.options.closeBtnIcon, e.appendChild(t), this.btnEvents(t, e); 27649 } 27650 btnEvents(e, t) { 27651 e.addEventListener("click", () => { 27652 e.parentNode.parentNode.removeChild(t); 27653 }); 27654 } 27655 static createMessage(e) { 27656 const t = document.createElement("h2"), n = document.createElement("p"); 27657 e.title && (t.innerHTML = e.title), e.description && (n.innerHTML = e.description); 27658 const i = document.createElement("div"); 27659 if (e.class && u.addClass(i, e.class), e.modifier && u.addClass(i, e.modifier), 27660 i.appendChild(t), i.appendChild(n), e.html && i.appendChild(e.html), e.closeBtn) { 27661 (new h).createCloseBtn(i); 27662 } 27663 return i; 27664 } 27665 } 27666 var f = n(122), p = n.n(f); 27667 function m() { 27668 const e = new p.a(".carousel-nav", { 27669 init: !1, 27670 slidesPerView: 9, 27671 slidesPerGroup: 1, 27672 speed: 500, 27673 watchSlidesProgress: !0, 27674 touchRatio: 0, 27675 breakpoints: { 27676 1279: { 27677 slidesPerView: 6 27678 }, 27679 767: { 27680 slidesPerView: 3 27681 } 27682 } 27683 }), t = new p.a(".carousel-main", { 27684 init: !1, 27685 effect: "coverflow", 27686 grabCursor: !0, 27687 centeredSlides: !0, 27688 slidesPerView: "auto", 27689 simulateTouch: !0, 27690 loop: !0, 27691 loopedSlides: 33, 27692 coverflowEffect: { 27693 rotate: 0, 27694 stretch: 370, 27695 depth: 180, 27696 modifier: 1, 27697 slideShadows: !1 27698 }, 27699 navigation: { 27700 nextEl: ".control-main-next", 27701 prevEl: ".control-main-prev" 27702 }, 27703 breakpoints: { 27704 1279: { 27705 loopedSlides: 0, 27706 loop: !1, 27707 slidesPerView: 1, 27708 slidesPerGroup: 1, 27709 coverflowEffect: { 27710 rotate: 0, 27711 stretch: 0, 27712 depth: 0 27713 } 27714 } 27715 } 27716 }), n = e => { 27717 if (e) { 27718 const t = e.activeIndex; 27719 [ ...e.el.querySelectorAll(".js-timeline-main .swiper-slide") ].forEach(n => { 27720 n.classList.contains("swiper-slide-active") ? u.setTabindex(e.slides[t], 0) : n.classList.contains("swiper-slide-next") ? u.setTabindex(e.slides[t + 1], 0) : u.setTabindex(n, -1); 27721 }); 27722 } 27723 }, i = () => { 27724 const e = document.querySelectorAll(".timeline-control"); 27725 for (let t = 0; t < e.length; t++) { 27726 u.hasClass(e[t], "swiper-button-disabled") ? e[t].setAttribute("disabled", !0) : e[t].removeAttribute("disabled"); 27727 } 27728 }, r = document.querySelectorAll(".js-control"); 27729 let o = document.querySelectorAll(".js-timeline-main .swiper-slide"); 27730 const s = () => { 27731 [ ...document.querySelectorAll(".js-timeline-nav .swiper-slide") ].forEach(e => { 27732 u.removeClass(e, [ "swiper-slide-active", "swiper-slide-prev", "swiper-slide-next" ]); 27733 }); 27734 }, a = t => { 27735 const n = e.slides; 27736 n[n.length - 1] === t ? r[1].setAttribute("disabled", !0) : r[1].removeAttribute("disabled"), 27737 n[0] === t ? r[0].setAttribute("disabled", !0) : r[0].removeAttribute("disabled"); 27738 }, l = t => { 27739 const n = t.activeIndex, i = t.slides[n].dataset.century, r = document.querySelectorAll(".js-timeline-nav .swiper-slide"), o = document.querySelector(`.js-timeline-nav .swiper-slide[data-century="${i}"]`), l = [ ...r ].indexOf(o); 27740 [ ...r ].forEach(t => { 27741 a(o); 27742 const n = t.dataset.century; 27743 i === n && (e.slideTo(l), e.activeIndex = l, s(), t.classList.add("swiper-slide-active")); 27744 }); 27745 }, c = (e, n) => { 27746 o = Array.from(t.slides); 27747 const i = n.target.innerText, r = document.querySelector(`.js-timeline-main .swiper-slide[data-century="${i}"]:not(.swiper-slide-duplicate)`), a = document.querySelector(`.js-timeline-nav .swiper-slide[data-century="${i}"]`), l = [ ...o ].indexOf(r); 27748 [ ...o ].forEach(e => { 27749 const n = e.dataset.century; 27750 i === n && (t.slideTo(l), s(), a.classList.add("swiper-slide-active")); 27751 }); 27752 }; 27753 t.on("slideChangeTransitionStart", () => { 27754 l(t), n(t), i(); 27755 }), t.on("sliderMove", () => { 27756 l(t), n(t), i(); 27757 }), e.on("click", e => { 27758 c(0, e); 27759 }), e.on("touchStart", () => { 27760 e.allowTouchMove = !1; 27761 }), [ ...r ].forEach(n => { 27762 n.onclick = n => { 27763 ((e, n) => { 27764 o = Array.from(t.slides); 27765 const i = e.activeIndex, r = e.slides; 27766 let l; 27767 l = n.target.classList.contains("-next") ? r[i + 1] : r[i - 1]; 27768 if (l) { 27769 a(l); 27770 const e = l.dataset.century, n = document.querySelector(`.js-timeline-main .swiper-slide[data-century="${e}"]:not(.swiper-slide-duplicate)`), i = document.querySelector(`.js-timeline-nav .swiper-slide[data-century="${e}"]`), r = [ ...o ].indexOf(n); 27771 t.slideTo(r), s(), i.classList.add("swiper-slide-active"); 27772 } 27773 })(e, n); 27774 }; 27775 }), e.on("init", () => { 27776 const e = document.querySelectorAll(".js-timeline-nav .swiper-slide"); 27777 Array.prototype.forEach.call(e, e => (e => { 27778 e.addEventListener("keydown", e => { 27779 13 === e.keyCode && c(0, e); 27780 }); 27781 })(e)); 27782 }), t.on("init", () => { 27783 n(t), i(), r[0].setAttribute("disabled", !0); 27784 }), (document.querySelector(".avant") || document.querySelector(".maintenant")) && (t.init(),
27785 e.init()); 27786 } 27787 var g = n(49); 27788 class v { 27789 constructor(e) { 27790 this.selector = e, this.wrapper = null, this.list = null, this.items = null, this.itemsWithDropdown = null, 27791 this.links = null, this.toggles = null, this.submenus = null, this.dropdownWrappers = null, 27792 this.dropdownContainers = null, this.dropdownCloseButtons = null, this.closeButton = null, 27793 this.openerButton = null, this.lastClickedLink = null, this.lastEvent = null, this.menuPosition = null, 27794 this.comments = {}, this.options = { 27795 menu: { 27796 type: "aside", 27797 className: "js-mnv", 27798 listClassName: "js-mnv-list", 27799 itemClassName: "js-mnv-item", 27800 itemWithDropdownClassName: "js-mnv-item-has-dropdown", 27801 linkClassName: "js-mnv-link", 27802 wrapperClassName: "js-mnv-wrapper", 27803 dropdownWrapperClassName: "js-mnv-dropdown-wrapper", 27804 dropdownContainerClassName: "js-mnv-dropdown-container", 27805 dropdownCloseClassName: "js-mnv-dropdown-close", 27806 submenuClassName: "js-mnv-submenu", 27807 toggleClassName: "js-mnv-submenu-toggle", 27808 openedClassName: "-is-open", 27809 generatedClassName: "-is-generated", 27810 currentClassName: [ "-is-current", "is-active" ] 27811 }, 27812 overlay: { 27813 show: !0, 27814 text: "Close", 27815 className: "js-mnv-overlay" 27816 }, 27817 closeButton: { 27818 show: !0, 27819 text: "Close", 27820 className: "js-mnv-close" 27821 }, 27822 openerButton: { 27823 show: !0, 27824 text: "", 27825 className: "js-mnv-toggle" 27826 }, 27827 body: { 27828 openedClassName: "mnv-opened" 27829 }, 27830 breakpoints: [ "tablet", "smartphone" ], 27831 replaceTo: "site-header", 27832 rebuildMenu: [], 27833 initSubmenuToggles: [ "tablet", "smartphone" ], 27834 closeAllChildren: !1, 27835 submenusHandler: { 27836 closeAllBeforeOpen: !1, 27837 breakpoints: [ "desktop" ] 27838 }, 27839 emitInsideHandlerFor: "", 27840 focusTrap: { 27841 init: !0, 27842 closeOnLastElementOut: !1 27843 }, 27844 messages: { 27845 close: "Close" 27846 } 27847 }; 27848 } 27849 getMenuWrapper() { 27850 return this.selector.children[0]; 27851 } 27852 getMenuDropdownWrappers() { 27853 return this.items ? this.items.filter(e => e.querySelector("div")).map(e => e.querySelector("div")) : (this.items = this.getMenuItems(), 27854 this.items ? this.getMenuDropdownWrappers() : null); 27855 } 27856 getMenuDropdownContainers() { 27857 return this.dropdownWrappers ? this.dropdownWrappers.map(e => e.querySelector("div")) : (this.dropdownWrappers = this.getMenuDropdownWrappers(), 27858 this.dropdownWrappers ? this.getMenuDropdownContainers() : null); 27859 } 27860 getMenuDropdownCloseButtons() { 27861 return this.dropdownContainers ? this.dropdownContainers.map(e => e.querySelector("button")) : (this.dropdownContainers = this.getMenuDropdownContainers(), 27862 this.dropdownContainers ? this.getMenuDropdownCloseButtons() : null); 27863 } 27864 getMenuList() { 27865 return this.wrapper ? this.wrapper.querySelector("ul:not(.mnv-menu__quick-list)") : this.getMenuWrapper().querySelector("ul"); 27866 } 27867 getMenuItems() { 27868 return [ ...this.list.querySelectorAll("li") ]; 27869 } 27870 getMenuItemsWithDropdown() { 27871 return this.items ? this.items.filter(e => e.querySelector("ul")) : (this.items = this.getMenuItems(), 27872 this.items ? this.getMenuItemsWithDropdown() : null); 27873 } 27874 getMenuLinks() { 27875 return [ ...this.list.querySelectorAll("a") ]; 27876 } 27877 getMenuToggles() { 27878 return [ ...this.list.querySelectorAll(`button:not(.${this.options.closeButton.className})`) ]; 27879 } 27880 getMenuSubmenus() { 27881 return this.items ? this.items.filter(e => e.querySelector("ul")).map(e => e.querySelector("ul")) : (this.items = this.getMenuItems(), 27882 this.items ? this.getMenuSubmenus() : null); 27883 } 27884 getCloseButton() { 27885 return this.selector.querySelector("." + this.options.closeButton.className); 27886 } 27887 getOpenerButton() { 27888 return document.querySelector("." + this.options.openerButton.className); 27889 } 27890 getOverlay() { 27891 const e = this.selector.nextElementSibling; 27892 return e && u.hasClass(e, this.options.overlay.className) ? e : null; 27893 } 27894 getFirstLevelFocusableElements() { 27895 if (this.list) { 27896 const e = u.getFocusableElements(this.list); 27897 if (e) { 27898 let t = 1e4; 27899 return e.filter(e => { 27900 const n = v.getDepthIndex(e, this.selector); 27901 return n <= t && (t = n, e); 27902 }); 27903 } 27904 } 27905 return this.list = this.getMenuList(), this.list ? this.getFirstLevelFocusableElements() : null; 27906 } 27907 getFirstLevelLinks() { 27908 if (this.links) { 27909 let e = 1e4; 27910 return this.links.filter(t => { 27911 const n = v.getDepthIndex(t, this.selector); 27912 return n <= e && (e = n, t); 27913 }); 27914 } 27915 return this.links = this.getMenuLinks(), this.links ? this.getFirstLevelLinks() : null; 27916 } 27917 getOpenedItems() { 27918 return this.items.filter(e => u.hasClass(e, this.options.menu.openedClassName)); 27919 } 27920 getOpenedSubmenus() { 27921 return this.submenus.filter(e => u.hasClass(e.parentNode, this.options.menu.openedClassName)); 27922 } 27923 getOpenedChildren(e) { 27924 const t = [ ...e.children ]; 27925 return t ? t.filter(e => u.hasClass(e, this.options.menu.openedClassName)) : null; 27926 } 27927 setElementsClass(e, t) { 27928 e && e.forEach(e => u.addClass(e, t)); 27929 } 27930 createOverlay() { 27931 const e = document.createElement("div"); 27932 return e.innerHTML = `<span class="ghost">${this.options.overlay.text}</span>`, 27933 u.addClass(e, this.options.overlay.className), e; 27934 } 27935 createCloseButton(e) { 27936 const t = document.createElement("button"); 27937 return u.addClass(t, this.options.closeButton.className), t.setAttribute("type", "button"), 27938 t.innerHTML = e || this.options.closeButton.text, t; 27939 } 27940 addCloseButton(e, t) { 27941 this.closeButton = this.createCloseButton(), "before" === t ? e.parentNode.insertBefore(this.closeButton, e) : u.insertAfter(this.closeButton, e); 27942 } 27943 addOverlay() {
27944 return this.overlay || (this.overlay = this.createOverlay()), u.insertAfter(this.overlay, this.selector); 27945 } 27946 addToggleAfter(e) { 27947 if (e) { 27948 const t = this.createToggle(e.textContent); 27949 return u.insertAfter(t, e), t; 27950 } 27951 } 27952 addToggleBefore(e) { 27953 if (e) { 27954 const t = this.createToggle(e.textContent); 27955 return e.parentNode.insertBefore(t, e), t; 27956 } 27957 } 27958 createToggle(e) { 27959 const t = document.createElement("button"); 27960 return t.setAttribute("type", "button"), t.innerHTML = `<span class="ghost">${e}</span>`, 27961 u.addClass(t, this.options.menu.toggleClassName), u.addClass(t, this.options.menu.generatedClassName), 27962 t; 27963 } 27964 setOverlay() { 27965 this.options.overlay && this.onResponsive(this.options.overlay.show, () => { 27966 this.addOverlay(); 27967 }, () => { 27968 this.overlay = this.getOverlay(), this.removeElement(this.overlay); 27969 }); 27970 } 27971 setCloseButton() { 27972 this.options.closeButton && (this.closeButton = this.getCloseButton(), this.closeButton || this.addCloseButton(this.list, "before")); 27973 } 27974 removeElement(e) { 27975 e && e.parentNode.removeChild(e); 27976 } 27977 setElementClass(e, t) { 27978 e && u.addClass(e, t); 27979 } 27980 removeElementsClass(e, t) { 27981 e && e.forEach(e => u.removeClass(e, t)); 27982 } 27983 removeElementClass(e, t) { 27984 e && u.removeClass(e, t); 27985 } 27986 setClassNames() { 27987 this.setElementClass(this.selector, this.options.menu.className), this.wrapper = this.selector.children[0], 27988 this.setElementClass(this.wrapper, this.options.menu.wrapperClassName), this.list = this.getMenuList(), 27989 this.setElementClass(this.list, this.options.menu.listClassName), this.items = this.getMenuItems(), 27990 this.setElementsClass(this.items, this.options.menu.itemClassName), this.itemsWithDropdown = this.getMenuItemsWithDropdown(), 27991 this.setElementsClass(this.itemsWithDropdown, this.options.menu.itemWithDropdownClassName), 27992 this.links = this.getMenuLinks(), this.setElementsClass(this.links, this.options.menu.linkClassName), 27993 this.toggles = this.getMenuToggles(), this.setElementsClass(this.toggles, this.options.menu.toggleClassName), 27994 this.submenus = this.getMenuSubmenus(), this.setElementsClass(this.submenus, this.options.menu.submenuClassName), 27995 this.dropdownWrappers = this.getMenuDropdownWrappers(), this.setElementsClass(this.dropdownWrappers, this.options.menu.dropdownWrapperClassName), 27996 this.dropdownContainers = this.getMenuDropdownContainers(), this.setElementsClass(this.dropdownContainers, this.options.menu.dropdownContainerClassName), 27997 this.dropdownCloseButtons = this.getMenuDropdownCloseButtons(), this.setElementsClass(this.dropdownCloseButtons, this.options.menu.dropdownCloseClassName); 27998 } 27999 getCurrentLink() { 28000 return this.options.menu.currentClassName.map(e => this.selector.querySelector("a." + e)); 28001 } 28002 initCurrent() { 28003 const e = this.getCurrentLink()[0]; 28004 if (e) { 28005 let t = e.parentNode; 28006 for (e.setAttribute("aria-current", "page"); !u.hasClass(t, this.options.menu.wrapperClassName); ) { 28007 if (u.hasClass(t, this.options.menu.itemClassName)) { 28008 const n = t.querySelector("." + this.options.menu.linkClassName); 28009 t.querySelector("." + this.options.menu.toggleClassName); 28010 n !== e && n.setAttribute("aria-current", !0), t.setAttribute("data-has-current", !0); 28011 } 28012 t = t.parentNode; 28013 } 28014 } 28015 } 28016 openSubmenu(e) { 28017 const t = e.parentNode, n = t.querySelector("ul"), i = [ ...n.children ]; 28018 if (this.options.submenusHandler.closeAllBeforeOpen) { 28019 const e = u.getSiblings(t); 28020 this.onResponsive(this.options.submenusHandler.breakpoints, () => { 28021 e.length && e.filter(e => u.hasClass(e, this.options.menu.openedClassName)).map(e => e.querySelector("." + this.options.menu.toggleClassName)).forEac
28021h(e => this.closeSubmenu(e)); 28022 }); 28023 } 28024 this.setElementClass(t, this.options.menu.openedClassName), u.setAriaControls(e, n, "opened"), 28025 i.forEach(e => u.setChildrenTabindex(e, 0)), this.getOpenedItems().length && u.addClass(this.list, this.options.menu.openedClassName); 28026 } 28027 closeSubmenu(e) { 28028 const t = e.parentNode, n = t.querySelector("ul"), i = [ ...n.children ]; 28029 this.removeElementClass(t, this.options.menu.openedClassName), u.setAriaControls(e, n, "closed"), 28030 i.forEach(e => u.setTabindex(e, -1)), this.options.closeAllChildren && i.filter(e => u.hasClass(e, this.options.menu.openedClassName)).forEach(e => { 28031 const t = e.querySelector("." + this.options.menu.toggleClassName); 28032 return t ? this.closeSubmenu(t) : null; 28033 }), this.getOpenedItems().length || u.removeClass(this.list, this.options.menu.openedClassName); 28034 } 28035 toggleSubmenu(e) { 28036 const t = u.hasClass(e.target, this.options.menu.toggleClassName) ? e.target : u.findAncestor(e.target, this.options.menu.toggleClassName); 28037 return u.hasClass(t.parentNode, this.options.menu.openedClassName) ? this.closeSubmenu(t) : this.openSubmenu(t); 28038 } 28039 onResponsive(e, t = (() => {}), n = (() => {})) { 28040 let i = 0; 28041 if ("function" != typeof t) throw new Error(t + " should be a function"); 28042 if (e) { 28043 if ("boolean" == typeof e) return t(); 28044 if (!Array.isArray(e)) throw new Error(e + " should be an Array or Boolean"); 28045 e.forEach(e => window.responsive === e ? i += 1 : i); 28046 } 28047 return i ? t() : n(); 28048 } 28049 insertCustomElements() { 28050 u.checkExpectedParams({ 28051 array: [ this.options.rebuildMenu ] 28052 }), this.options.rebuildMenu.forEach((e, t) => { 28053 u.checkExpectedParams({ 28054 array: [ e.breakpoints ], 28055 string: [ e.selector ], 28056 function: [ e.callback ] 28057 }); 28058 const n = [].slice.call(document.querySelectorAll(e.selector)); 28059 Object.prototype.hasOwnProperty.call(this.comments, t) || (this.comments[t] = [], 28060 n.forEach(e => { 28061 const n = e.classList[0], i = document.createComment(n); 28062 u.insertAfter(i, e), this.comments[t].push(i); 28063 }
28063)), n.forEach((n, i) => { 28064 if (-1 !== e.breakpoints.indexOf(window.responsive)) this.wrapper.contains(n) || e.callback(n, this.wrapper, this); else { 28065 const e = this.comments[t][i], r = n.querySelector(".js-dropdown__toggle"); 28066 r && r.hasAttribute("tabindex") && r.removeAttribute("tabindex"), null !== e.previousSibling && e.previousSibling !== n && e.parentNode.insertBefore(n, e); 28067 } 28068 }); 28069 }); 28070 } 28071 checkIncludedElements(e) { 28072 if (this.options.emitInsideHandlerFor.length) { 28073 return [ ...document.querySelectorAll(this.options.emitInsideHandlerFor) ].filter(t => t.contains(e.target)).length > 0; 28074 } 28075 return !1; 28076 } 28077 clickOutside(e) { 28078 const t = this.selector.contains(e.target) || this.openerButton.contains(e.target) || this.checkIncludedElements(e), n = document.querySelector(".modal"); 28079 let i; 28080 n && (i = n.contains(e.target)), t || i || this.closeMenu(); 28081 } 28082 openMenu() {} 28083 closeMenu() {} 28084 toggleMenu() { 28085 return u.hasClass(this.selector, this.options.menu.openedClassName) ? this.closeMenu() : this.openMenu(); 28086 } 28087 initFocusTrap(e) { 28088 u.initFocusTrap(this.selector, e, !0); 28089 const t = this.options.focusTrap.closeOnLastElementOut ? u.getLastFocusableElement(this.selector) : null; 28090 (this.options.focusTrap.closeOnLastElementOut ? 27 === e.keyCode || e.target === t : 27 === e.keyCode) && this.closeMenu(); 28091 } 28092 extend(e, t) { 28093 if (t instanceof Object) return u.extendDefaults(e, t); 28094 } 28095 static getDepth(e) { 28096 let t = [], n = -1; 28097 for (t.push(e); t.length > 0; ) { 28098 const e = []; 28099 for (;t.length > 0; ) { 28100 const n = t.shift(); 28101 n.children.length && [ ...n.children ].forEach(t => { 28102 e.push(t); 28103 }); 28104 } 28105 n += 1, t = e; 28106 } 28107 return n; 28108 } 28109 static getDepthIndex(e, t) { 28110 let n = e, i = 0; 28111 for (;n !== t; ) { 28112 if (n === document.body) { 28113 i = null; 28114 break; 28115 } 28116 i += 1, n = n.parentNode; 28117 } 28118 return i; 28119 } 28120 } 28121 class b extends v { 28122 constructor(e, t) { 28123 super(e), this.options = t, this.create(); 28124 } 28125 initAccessibility() { 28126 const e = []; 28127 this.overlay && e.push(this.overlay), this.closeButton && e.push(this.closeButton), 28128 e.push(this.openerButton), u.initAriaControls(e, this.selector), this.toggles && this.toggles.forEach(e => { 28129 const t = e.parentNode.querySelector("." + this.options.menu.submenuClassName); 28130 u.initAriaControls(e, t); 28131 }), u.setTabindex(this.selector, -1); 28132 } 28133 create() { 28134 if (this.setClassNames(), !(this.options.openerButton || this.options.overlay || this.options.closeButton)) throw new Error("Please add opener button with class: " + this.options.openerButton.className); 28135 if (this.openerButton = this.getOpenerButton(), !this.openerButton) throw new Error("Please add opener button with class: " + this.options.openerButton.className); 28136 this.setOverlay(), this.setCloseButton(), this.initAccessibility(), this.initEvents(), 28137 this.initCurrent(), this.insertCustomElements(); 28138 } 28139 initEvents() { 28140 this.toggleMenuHandler = this.toggleMenu.bind(this), this.closeMenuHandler = this.closeMenu.bind(this), 28141 this.updateMenuHandler = this.update.bind(this), this.outsideHandler = this.clickOutside.bind(this), 28142 this.openerButton.addEventListener("click", this.toggleMenuHandler), [ this.closeButton, this.overlay ].forEach(e => { 28143 e && e.addEventListener("click", this.closeMenuHandler); 28144 }), this.toggles && (this.toggleSubmenuHandler = this.toggleSubmenu.bind(this),
28145 this.toggles.forEach(e => e.addEventListener("click", this.toggleSubmenuHandler))), 28146 this.options.focusTrap.init && (this.focusTrapHandler = this.initFocusTrap.bind(this), 28147 this.selector.addEventListener("keydown", this.focusTrapHandler)), window.addEventListener("responsive", this.updateMenuHandler), 28148 document.addEventListener("click", this.outsideHandler); 28149 } 28150 removeEvents() { 28151 this.openerButton.removeEventListener("click", this.toggleMenuHandler), [ this.closeButton, this.overlay ].forEach(e => { 28152 e && e.removeEventListener("click", this.closeMenuHandler); 28153 }), this.toggles && this.toggles.forEach(e => e.removeEventListener("click", this.toggleSubmenuHandler)), 28154 this.options.focusTrap.init && this.selector.removeEventListener("keydown", this.focusTrapHandler), 28155 window.removeEventListener("responsive", this.updateMenuHandler), document.removeEventListener("click", this.outsideHandler); 28156 } 28157 openMenu() { 28158 this.setElementClass(this.selector, this.options.menu.openedClassName), this.setElementClass(this.overlay, this.options.menu.openedClassName), 28159 this.setElementClass(document.body, this.options.body.openedClassName), this.closeButton && u.toggleTabindex(this.closeButton), 28160 u.manageBodyOverflow("hidden"), this.overlay && this.closeButton ? u.setAriaControls([ this.openerButton, this.overlay, this.closeButton ], this.selector, "opened") : this.overlay ? u.setAriaControls([ this.openerButton, this.overlay ], this.selector, "opened") : this.closeButton ? u.setAriaControls([ this.openerButton, this.closeButton ], this.selector, "opened") : u.setAriaControls(this.openerButton, this.selector, "opened"), 28161 this.setElementClass(this.openerButton, this.options.menu.openedClassName); 28162 const e = this.getFirstLevelFocusableElements(); 28163 if (e) { 28164 const t = b.getDepthIndex(e[0], this.selector); 28165 u.manageTabindex(this.selector, 0, t); 28166 const n = this.getOpenedItems(); 28167 n && n.forEach(e => { 28168 u.manageTabindex(e, 0, 3); 28169 }); 28170 } 28171 const t = this.selector.querySelector(".mnv-menu__col"); 28172 u.setTabindex(t, 0); 28173 const n = u.getFocusableElements(this.selector, !0); 28174 n && setTimeout(() => { 28175 u.setFirstElementFocus(n); 28176 }, 500); 28177 } 28178 closeMenu() { 28179 u.hasClass(this.selector, this.options.menu.openedClassName) && this.onResponsive(this.options.openerButton.show, () => { 28180 this.openerButton.focus(); 28181 }), this.removeElementClass(this.selector, this.options.menu.openedClassName), this.removeElementClass(this.overlay, this.options.menu.openedClassName), 28182 this.removeElementClass(document.body, this.options.body.openedClassName), u.manageBodyOverflow("visible"), 28183 u.setTabindex(this.selector, -1), this.overlay && this.closeButton ? u.setAriaControls([ this.openerButton, this.overlay, this.closeButton ], this.selector, "closed") : this.overlay ? u.setAriaControls([ this.openerButton, this.overlay ], this.selector, "closed") : this.closeButton ? u.setAriaControls([ this.openerButton, this.closeButton ], this.selector, "closed") : u.setAriaControls(this.openerButton, this.selector, "closed"), 28184 this.removeElementClass(this.openerButton, this.options.menu.openedClassName); 28185 } 28186 update() { 28187 this.closeMenu(), this.removeEvents(), this.setOverlay(), this.setCloseButton(), 28188 this.initAccessibility(), this.insertCustomElements(), this.initEvents(); 28189 } 28190 } 28191 class y extends v { 28192 constructor(e, t) { 28193 super(e), this.options = t, this.create(); 28194 } 28195 create() { 28196 this.setClassNames(); 28197 const e = document.createComment(this.selector.className); 28198 if (this.menuPosition = this.selector.parentNode.insertBefore(e, this.selector), 28199 !(this.options.openerButton || this.options.overlay || this.options.closeButton)) throw new Error("Please add opener button with class: " + this.options.openerButton.className); 28200 if (this.openerButton = this.getOpenerButton(), !this.openerButton) throw new Error("Please add opener button with class: " + this.options.openerButton.className); 28201 this.setOverlay(), this.setCloseButton(), this.insertCustomElements(), this.initAccessibility(), 28202 this.generateToggels(), this.initEvents(), this.initCurrent(), this.updateMenuPosition(); 28203 } 28204 initAccessibility() { 28205 const e = []; 28206 this.overlay && e.push(this.overlay), this.closeButton && e.push(this.closeButton),
28207 e.push(this.openerButton), u.initAriaControls(e, this.selector), this.onResponsive(this.options.initSubmenuToggles, () => { 28208 this.toggles && this.toggles.filter(e => !u.hasClass(e, this.options.menu.dropdownCloseClassName)).forEach(e => { 28209 const t = e.parentNode.querySelector("." + this.options.menu.submenuClassName); 28210 u.initAriaControls(e, t); 28211 }); 28212 }, () => { 28213 this.toggles && this.toggles.filter(e => !u.hasClass(e, this.options.menu.dropdownCloseClassName)).forEach(e => { 28214 const t = e.parentNode.querySelector("." + this.options.menu.submenuClassName); 28215 u.removeAriaControls(e), u.removeAriaControls(t); 28216 }); 28217 }); 28218 this.getFirstLevelLinks().forEach(e => { 28219 const t = e.parentNode.querySelector("." + this.options.menu.dropdownWrapperClassName), n = t ? t.querySelector("." + this.options.menu.dropdownCloseClassName) : null; 28220 t && n ? u.initAriaControls([ e, n ], t) : t && u.initAriaControls(e, t), this.onResponsive(this.options.breakpoints, () => {}, () => { 28221 e.removeAttribute("tabindex"); 28222 }), u.hasClass(e.parentNode, this.options.menu.itemWithDropdownClassName) && this.onResponsive(this.options.breakpoints, () => { 28223 e.removeAttribute("role"); 28224 }, () => { 28225 e.setAttribute("role", "button"); 28226 }); 28227 }), this.onResponsive(this.options.breakpoints, () => { 28228 this.selector.setAttribute("aria-hidden", !0), u.setTabindex(this.selector, -1); 28229 }, () => { 28230 this.selector.setAttribute("aria-hidden", !1), this.dropdownContainers && this.dropdownContainers.forEach(e => u.setTabindex(e, -1)); 28231 }); 28232 } 28233 initEvents() { 28234 this.toggleMenuHandler = this.toggleMenu.bind(this), this.outsideHandler = this.clickOutside.bind(this), 28235 this.toggleMobileMenuHandler = this.toggleMobileMenu.bind(this), this.updateMenuHandler = this.update.bind(this), 28236 this.toggleSubmenuHandler = this.toggleSubmenu.bind(this), this.scrollHandler = this.closeMenuOnScroll.bind(this), 28237 [ this.openerButton, this.closeButton, this.overlay ].forEach(e => { 28238 e && e.addEventListener("click", this.toggleMobileMenuHandler); 28239 }); 28240 const e = this.getFirstLevelLinks(); 28241 if (e) { 28242 e.filter(e => e.parentNode.querySelector("." + this.options.menu.dropdownWrapperClassName)).forEach(e => { 28243 [ "click", "keydown" ].forEach(t => { 28244 e.addEventListener(t, this.toggleMenuHandler); 28245 }); 28246 }); 28247 e.filter(e => e.parentNode.querySelector("." + this.options.menu.toggleClassName)).map(e => e.parentNode.querySelector("." + this.options.menu.toggleClassName)).forEach(e => e.addEventListener("click", this.toggleMenuHandler)); 28248 } 28249 if (this.toggles) { 28250 const e = this.toggles.filter(e => u.hasClass(e.nextElementSibling, this.options.menu.submenuClassName)); 28251 this.onResponsive(this.options.initSubmenuToggles, () => { 28252 e.forEach(e => e.addEventListener("click", this.toggleSubmenuHandler)); 28253 }, () => { 28254 e.forEach(e => e.removeEventListener("click", this.toggleSubmenuHandler)); 28255 }); 28256 } 28257 this.options.focusTrap.init && (this.focusTrapHandler = this.initFocusTrap.bind(this), 28258 this.onResponsive(this.options.breakpoints, () => { 28259 this.selector.addEventListener("keydown", this.focusTrapHandler); 28260 }, () => { 28261 this.selector.removeEventListener("keydown", this.focusTrapHandler); 28262 })), document.addEventListener("click", this.outsideHandler), window.addEventListener("responsive", this.updateMenuHandler), 28263 window.addEventListener("scroll", this.scrollHandler); 28264 } 28265 removeEvents() { 28266 [ this.openerButton, this.closeButton, this.overlay ].forEach(e => { 28267 e && e.removeEventListener("click", this.toggleMobileMenuHandler); 28268 }); 28269 const e = this.getFirstLevelLinks(); 28270 if (e) { 28271 e.filter(e => e.parentNode.querySelector("." + this.options.menu.dropdownWrapperClassName)).forEac
28271h(e => { 28272 [ "click", "keydown" ].forEach(t => { 28273 e.removeEventListener(t, this.toggleMenuHandler); 28274 }); 28275 }); 28276 e.filter(e => e.parentNode.querySelector("." + this.options.menu.toggleClassName)).map(e => e.parentNode.querySelector("." + this.options.menu.toggleClassName)).forEach(e => e.removeEventListener("click", this.toggleMenuHandler)); 28277 } 28278 if (this.toggles) { 28279 this.toggles.filter(e => u.hasClass(e.nextElementSibling, this.options.menu.submenuClassName)).forEach(e => e.removeEventListener("click", this.toggleSubmenuHandler)); 28280 } 28281 this.options.focusTrap.init && this.selector.removeEventListener("keydown", this.focusTrapHandler), 28282 document.removeEventListener("click", this.outsideHandler), window.removeEventListener("responsive", this.updateMenuHandler); 28283 } 28284 closeMenuOnScroll(e) { 28285 this.lastClickedLink && this.getOpenedItems().length && this.closeMenu(this.lastClickedLink.parentNode, this.lastEvent); 28286 } 28287 openMobileMenu() { 28288 this.setElementClass(this.selector, this.options.menu.openedClassName), this.setElementClass(this.overlay, this.options.menu.openedClassName), 28289 this.setElementClass(document.body, this.options.body.openedClassName), this.selector.setAttribute("aria-hidden", !1), 28290 this.closeButton && this.closeButton.setAttribute("tabindex", 0), u.manageBodyOverflow("hidden"), 28291 this.overlay && this.closeButton ? u.setAriaControls([ this.openerButton, this.overlay, this.closeButton ], this.selector, "opened") : this.overlay ? u.setAriaControls([ this.openerButton, this.overlay ], this.selector, "opened") : this.closeButton ? u.setAriaControls([ this.openerButton, this.closeButton ], this.selector, "opened") : u.setAriaControls(this.openerButton, this.selector, "opened"), 28292 this.setElementClass(this.openerButton, this.options.menu.openedClassName); 28293 const e = this.getFirstLevelFocusableElements(); 28294 if (e) { 28295 const t = b.getDepthIndex(e[0], this.selector); 28296 u.manageTabindex(this.selector, 0, t); 28297 const n = this.getOpenedItems(); 28298 n && n.forEach(e => { 28299 u.manageTabindex(e, 0, 3); 28300 }); 28301 } 28302 const t = u.getFocusableElements(this.selector, !0); 28303 t && u.setFirstElementFocus(t); 28304 } 28305 closeMobileMenu() { 28306 u.hasClass(this.selector, this.options.menu.openedClassName) && this.onResponsive(this.options.openerButton.show, () => { 28307 this.openerButton.focus(); 28308 }), this.removeElementClass(this.selector, this.options.menu.openedClassName), this.removeElementClass(this.overlay, this.options.menu.openedClassName), 28309 this.selector.setAttribute("aria-hidden", !0), u.manageBodyOverflow("visible"), 28310 u.setTabindex(this.selector, -1), this.overlay && this.closeButton ? u.setAriaControls([ this.openerButton, this.overlay, this.closeButton ], this.selector, "closed") : this.overlay ? u.setAriaControls([ this.openerButton, this.overlay ], this.selector, "closed") : this.closeButton ? u.setAriaControls([ this.openerButton, this.closeButton ], this.selector, "closed") : u.setAriaControls(this.openerButton, this.selector, "closed"), 28311 this.removeElementClass(this.openerButton, this.options.menu.openedClassName), this.onResponsive(this.options.breakpoints, () => { 28312 u.hasClass(document.body, this.options.body.openedClassName) && this.openerButton.focus(); 28313 }), this.removeElementClass(document.body, this.options.body.openedClassName); 28314 } 28315 toggleMobileMenu() { 28316 return u.hasClass(this.selector, this.options.menu.openedClassName) ? this.closeMobileMenu() : this.openMobileMenu(); 28317 } 28318 openMenu(e, t) { 28319 let n = !1; 28320 if (this.onResponsive(this.options.breakpoints, () => { 28321 n = !1; 28322 }, () => { 28323 t.preventDefault(), n = !0; 28324 }), t.target && "a" === t.target.tagName.toLowerCase() && !n) return !1; 28325 this.lastClickedLink && this.onResponsive(this.options.breakpoints, () => {}, () => { 28326 this.closeMenu(this.lastClickedLink.parentNode, t); 28327 }), this.lastClickedLink = e.querySelector("a"), this.lastEvent = t, this.setElementClass(e, this.options.menu.openedClassName), 28328 this.onResponsive(this.options.breakpoints, () => {}, () => { 28329 this.setElementClass(document.body, this.options.body.openedClassName); 28330 }); 28331 const i = e.querySelector("." + this.options.menu.dropdownWrapperClassName), r = "button" === this.lastClickedLink.nextElementSibling.tagName.toLowerCase() ? this.lastClickedLink.nextElementSibling : null, o = i ? i.querySelector("." + this.options.menu.dropdownCloseClassName) : null;
28332 i && o && r ? u.setAriaControls([ this.lastClickedLink, o, r ], i, "opened") : i && o ? u.setAriaControls([ this.lastClickedLink, o ], i, "opened") : i && u.setAriaControls(this.lastClickedLink, i, "opened"); 28333 const s = [ ...i.querySelectorAll("." + this.options.menu.submenuClassName) ]; 28334 this.onResponsive(this.options.breakpoints, () => { 28335 s.length && s.filter(e => u.hasClass(e.parentNode, this.options.menu.dropdownContainerClassName)).forEach(e => u.manageTabindex(e, 0, 3)); 28336 }, () => { 28337 s.length && s.forEach(e => e.getAttribute("aria-hidden") ? u.manageTabindex(i, 0, 3) : u.setTabindex(i, 0)), 28338 setTimeout(() => { 28339 u.setFirstElementFocus(u.getFocusableElements(i, !0)); 28340 }, 100); 28341 }); 28342 const a = this.getOpenedItems(); 28343 a && (a.filter(e => { 28344 const t = u.findAncestor(e, this.options.menu.dropdownWrapperClassName); 28345 return t && "false" === t.getAttribute("aria-hidden"); 28346 }
28346).forEach(e => u.manageTabindex(e, 0, 3)), u.addClass(this.list, this.options.menu.openedClassName)), 28347 this.onResponsive(this.options.breakpoints, () => {}, () => { 28348 this.getFirstLevelLinks().forEach(e => e.setAttribute("tabindex", -1)), this.options.focusTrap.init && i.addEventListener("keydown", this.focusTrapHandler); 28349 }); 28350 } 28351 closeMenu(e, t) { 28352 let n = !1; 28353 if (this.selector.contains(t.target) && this.onResponsive(this.options.breakpoints, () => { 28354 n = !1; 28355 }, () => { 28356 t.preventDefault(), n = !0; 28357 }), t.target && "a" === t.target.tagName.toLowerCase() && !n) return !1; 28358 this.removeElementClass(e, this.options.menu.openedClassName), this.onResponsive(this.options.breakpoints, () => {}, () => { 28359 this.removeElementClass(document.body, this.options.body.openedClassName); 28360 }); 28361 const i = e.querySelector("." + this.options.menu.dropdownWrapperClassName), r = this.lastClickedLink && this.lastClickedLink.nextElementSibling && "button" === this.lastClickedLink.nextElementSibling.tagName.toLowerCase() ? this.lastClickedLink.nextElementSibling : null, o = i ? i.querySelector("." + this.options.menu.dropdownCloseClassName) : null; 28362 u.setTabindex(i, -1); 28363 const s = [ ...e.querySelectorAll(`.${this.options.menu.itemClassName}.${this.options.menu.openedClassName}`) ]; 28364 s && s.forEach(e => { 28365 const t = e.querySelector("." + this.options.menu.toggleClassName); 28366 t && t.click(); 28367 }), this.getOpenedItems().length || u.removeClass(this.list, this.options.menu.openedClassName), 28368 i && o && r ? u.setAriaControls([ this.lastClickedLink, o, r ], i, "closed") : i && o ? u.setAriaControls([ this.lastClickedLink, o ], i, "closed") : i && u.setAriaControls(this.lastClickedLink, i, "closed"), 28369 this.onResponsive(this.options.breakpoints, () => {}, () => { 28370 this.getFirstLevelLinks().forEach(e => e.setAttribute("tabindex", 0)), this.selector.contains(t.target) && this.lastClickedLink.focus(), 28371 this.options.focusTrap.init && i.removeEventListener("keydown", this.focusTrapHandler); 28372 }); 28373 } 28374 toggleMenu(e) { 28375 if (!e.target || "button" !== e.target.getAttribute("role")) { 28376 const t = u.findAncestor(e.target, this.options.menu.itemClassName); 28377 return u.hasClass(t, this.options.menu.openedClassName) ? this.closeMenu(t, e) : this.openMenu(t, e); 28378 } 28379 if ("click" === e.type || 13 === e.keyCode || 32 === e.keyCode) { 28380 const t = u.findAncestor(e.target, this.options.menu.itemClassName); 28381 return u.hasClass(t, this.options.menu.openedClassName) ? this.closeMenu(t, e) : this.openMenu(t, e); 28382 } 28383 } 28384 clickOutside(e) { 28385 !(this.selector.contains(e.target) || this.openerButton.contains(e.target) || this.checkIncludedElements(e)) && this.lastClickedLink && this.closeMenu(this.lastClickedLink.parentNode, e); 28386 } 28387 initFocusTrap(e) { 28388 u.initFocusTrap(this.selector, e, !0); 28389 const t = this.options.focusTrap.closeOnLastElementOut ? u.getLastFocusableElement(this.selector) : null; 28390 (this.options.focusTrap.closeOnLastElementOut ? 27 === e.keyCode || e.target === t : 27 === e.keyCode) && this.closeMenu(this.lastClickedLink.parentNode, e); 28391 } 28392 updateMenuPosition() { 28393 this.onResponsive(this.options.breakpoints, () => { 28394 const e = document.querySelector("." + this.options.replaceTo); 28395 e && e.appendChild(this.selector); 28396 }, () => { 28397 u.insertAfter(this.selector, this.menuPosition); 28398 }); 28399 } 28400 generateToggels() { 28401 this.onResponsive(this.options.breakpoints, () => { 28402 this.links.forEach(e => { 28403 if (u.hasClass(e.parentNode, this.options.menu.itemWithDropdownClassName) && "button" !== e.nextElementSibling.tagName.toLocaleLowerCase() && e.getAttribute("aria-controls")) { 28404 const t = e.getAttribute("aria-controls"), n = [ ...this.selector.querySelectorAll(`[aria-controls='${t}']`) ], i = this.selector.querySelector("#" + t), r = this.addToggleAfter(e);
28405 u.initAriaControls([ ...n, r ], i); 28406 } 28407 }); 28408 }, () => { 28409 this.getMenuToggles().filter(e => !!u.hasClass(e, this.options.menu.generatedClassName) && e.parentNode.removeChild(e)); 28410 }); 28411 } 28412 update() { 28413 this.getOpenedItems().length && this.getOpenedItems().forEach(e => { 28414 y.getDepthIndex(e, this.selector) <= 3 && this.closeMenu(e, this.lastEvent); 28415 }), this.closeMobileMenu(), this.removeEvents(), this.updateMenuPosition(), this.generateToggels(), 28416 this.setOverlay(), this.setCloseButton(), this.initAccessibility(), this.initCurrent(), 28417 this.insertCustomElements(), this.initEvents(); 28418 } 28419 } 28420 class x extends v { 28421 constructor(e, t) { 28422 super(e), this.options = this.extend(this.options, t), this.checkBeforeInit(); 28423 } 28424 checkBeforeInit() { 28425 "string" == typeof this.selector ? [ ...document.querySelectorAll(this.selector) ].forEach(e => new x(e, this.options)) : this.init(); 28426 } 28427 init() { 28428 switch (this.options.menu.type) { 28429 case "aside": 28430 return new b(this.selector, this.options); 28431 28432 default: 28433 return new y(this.selector, this.options); 28434 } 28435 } 28436 } 28437 const w = { 28438 selectors: { 28439 formSelector: ".float-labels-form", 28440 fieldSelector: ".float-label", 28441 labelsSelector: "label" 28442 }, 28443 classList: { 28444 activeClass: "js-float-label-enable", 28445 labelClass: "js-float-label" 28446 } 28447 }; 28448 class _ { 28449 constructor(e = ".js-tooltip", t = {}) { 28450 this.selector = e, this.tooltipElement = null, this.timeOut = null, this.elements = [], 28451 this.options = { 28452 side: "top", 28453 placement: "center", 28454 indents: 10, 28455 delay: 200 28456 }, this.$showTooltip = this.showTooltip.bind(this), this.$hideTooltip = this.hideTooltip.bind(this), 28457 this.init(); 28458 } 28459 init() { 28460 this.elements = [ ...document.querySelectorAll(this.selector) ], this.elements = this.elements.filter(e => !e.getAttribute("data-content")), 28461 this.elements.length && (this.addHandler(), this.createTooltip()); 28462 } 28463 createTooltip() { 28464 this.tooltipElement = document.createElement("div"), this.tooltipElement.id = "access-tooltip", 28465 this.tooltipElement.style.opacity = "0", this.tooltipElement.style.display = "none", 28466 document.body.appendChild(this.tooltipElement); 28467 } 28468 addHandler() { 28469 [ ...this.elements ].forEach(e => { 28470 e.hasAttribute("title") && (e.setAttribute("data-content", e.getAttribute("title")), 28471 e.removeAttribute("title"), [ "mouseover", "focus" ].forEach(t => { 28472 e.addEventListener(t, this.$showTooltip, !1); 28473 }), [ "mouseout", "blur" ].forEach(t => { 28474 e.addEventListener(t, this.$hideTooltip, !1); 28475 })); 28476 }); 28477 } 28478 showTooltip(e) { 28479 const t = e.target; 28480 u.hasClass(t, "js-tooltip") && (this.tooltipElement.style.display = "block", this.tooltipElement.innerText = t.getAttribute("data-content"), 28481 this.positionTooltip(t, this.tooltipElement), this.timeOut = setTimeout(() => { 28482 this.tooltipElement.style.opacity = "1"; 28483 }, this.options.delay)); 28484 } 28485 hideTooltip() { 28486 this.timeOut = clearTimeout(this.timeOut), this.tooltipElement.style.opacity = "0", 28487 this.tooltipElement.style.display = "none"; 28488 } 28489 getCoords(e) { 28490 const t = e.getBoundingClientRect(); 28491 return { 28492 top: t.top + pageYOffset, 28493 bottom: t.bottom + pageYOffset, 28494 left: t.left + pageXOffset, 28495 right: t.right + pageXOffset 28496 }; 28497 } 28498 positionTooltip(e, t) { 28499 t.style.left = 0, t.style.top = 0; 28500 const n = this.getCoords(e), i = document.body.clientWidth, r = document.body.clientHeight; 28501 switch (this.options.placement) { 28502 case "center": 28503 t.style.left = n.left + (e.offsetWidth - t.offsetWidth) / 2 + "px"; 28504 break; 28505 28506 case "from-center": 28507 t.style.left = n.left + e.offsetWidth / 2 + "px"; 28508 break; 28509 28510 case "start": 28511 t.style.left = n.left + "px"; 28512 break; 28513 28514 case "end": 28515 t.style.left = n.right - t.offsetWidth + "px"; 28516 break; 28517 28518 default: 28519 t.style.left = n.left + (e.offsetWidth - t.offsetWidth) / 2 + "px"; 28520 } 28521 switch (this.options.side) { 28522 case "top": 28523 t.style.top = n.top - t.offsetHeight - +this.options.indents + "px"; 28524 break; 28525 28526 case "bottom": 28527 default: 28528 t.style.top = n.bottom + +this.options.indents + "px"; 28529 } 28530 const o = this.getCoords(t), s = document.head.appendChild(document.createElement("style")); 28531 n.left - o.left > 0 ? s.innerHTML = `#access-tooltip:before {left: ${Math.abs(n.left - o.left) + e.offsetWidth / 2}px;}` : s.innerHTML = "#access-tooltip:before {left: 50%}", 28532 o.bottom > r && (t.style.top = n.top - t.offsetHeight - +this.options.indents + "px"), 28533 o.top < 0 && (t.style.top = n.bottom + +this.options.indents + "px"), o.right > i && (t.style.left = i - t.offsetWidth + "px"), 28534 o.left < 0 && (s.innerHTML = `#access-tooltip:before {left: ${Math.abs(n.left - 0) + e.offsetWidth / 2}px;}`, 28535 t.style.left = 0); 28536 } 28537 static setDataContent(e, t) { 28538 e.hasAttribute("data-content") && e.setAttribute("data-content", t); 28539 } 28540 } 28541 var S = n(362); 28542 function E() { 28543 const e = document.querySelector(".facet-option-list.facet-type-dateRange"); 28544 if (!e) return; 28545 const t = e.getAttribute("data-facet-name"), n = e.querySelector("#start_date_" + t), i = e.querySelector("#end_date_" + t), r = e.querySelector('button[type="submit"]'), o = e.querySelector(`#${t}_url`); 28546 if (!(n && i && r && o)) return void console.warn("DateRangeController required startDateInput, endDateInput, facetUrlInput and submit button. Please add them."); 28547 r.addEventListener("click", () => { 28548 (() => { 28549 if ("" !== n.value && "" !== i.value) { 28550 let e = o.value; 28551 const t = n.value.replace(/-/g, ""), r = i.value.replace(/-/g, ""); 28552 e = e.replace(encodeURI("___FROM___"), t + "0000"), e = e.replace(encodeURI("___TO___"), r + "0000"), 28553 window.location.href = e; 28554 } 28555 })(); 28556 }); 28557 } 28558 var C = n(6), T = n.n(C); 28559 n(603); 28560 var k = n(52), M = n.n(k); 28561 function A() { 28562 const e = document.querySelector(".go-to-top"); 28563 if (null === e) return; 28564 const t = e.querySelector("a"), n = document.querySelector(".footer"); 28565 function i(t, n) { 28566 t ? (e.style.position = "fixed", e.style.bottom = n + "px") : (e.style.position = "relative", 28567 e.style.bottom = n / 2 + "px"); 28568 } 28569 function r(t) { 28570 t ? u.removeClass(e, "-is-hide") : u.addClass(e, "-is-hide"); 28571 } 28572 function o() { 28573 const e = document.body.clientHeight, o = window.pageYOffset + window.innerHeight, s = u.outerHeight(n), a = u.outerHeight(t); 28574 window.pageYOffset ? r(!0) : r(!1), i(o < e - (s - a / 2), a); 28575 } 28576 e && (window.addEventListener("scroll", u.throttle(() => { 28577 o(); 28578 }, 250)), window.addEventListener("resize", u.throttle(() => { 28579 o(); 28580 }, 250)), e.addEventListener("click", e => { 28581 e.preventDefault(), function(e) { 28582 const t = -window.pageYOffset / (e / 10), n = setInterval(() => { 28583 if (0 !== window.pageYOffset) window.scrollBy(0, t); else { 28584 clearInterval(n); 28585 const e = document.querySelector(".menu-skip"), t = e ? u.getFirstFocusableElement(e) : u.getFirstFocusableElement(document.body); 28586 t && t && "desktop" === window.responsive && M.a.element.focus(t); 28587 } 28588 }, 15); 28589 }(500); 28590 })); 28591 } 28592 function O() { 28593 const e = new p.a(".js-swiper-primary", { 28594 init: !1, 28595 speed: 500, 28596 loop: !1, 28597 watchOverflow: !0, 28598 effect: "fade", 28599 simulateTouch: !1, 28600 autoplay: { 28601 delay: 4e3 28602 }, 28603 a11y: { 28604 enabled: !1 28605 }, 28606 pagination: { 28607 el: ".swiper-pagination", 28608 type: "bullets", 28609 bulletElement: "li", 28610 clickable: !0, 28611 bulletClass: "swiper-pagination__bullet", 28612 bulletActiveClass: "-is-active", 28613 renderBullet: (e, t) => `\n <li class="${t}" role="presentation">\n <button class="swiper-pagination__bullet-btn" role="tab" aria-selected="false">
28613\n <span class="ghost">${e + 1}</span>\n </button>\n </li>\n ` 28614 } 28615 }), t = (e, t) => { 28616 const n = e.el.parentNode.querySelectorAll(".js-swiper-control"); 28617 for (let e = 0; e < n.length; e++) { 28618 t ? u.addClass(n[e], "-is-hidden") : u.removeClass(n[e], "-is-hidden"); 28619 } 28620 }, n = e => { 28621 const t = e.el.parentNode.querySelectorAll(".js-swiper-control"); 28622 for (let e = 0; e < t.length; e++) { 28623 u.hasClass(t[e], "swiper-button-disabled") ? t[e].setAttribute("disabled", !0) : t[e].removeAttribute("disabled"); 28624 } 28625 }, i = (e, t) => { 28626 const n = e.el.querySelectorAll(".swiper-slide"); 28627 let i = e.el.querySelector(`.swiper-slide-active[data-swiper-slide-index="${t}"]`); 28628 null === i && (i = e.el.querySelector(".swiper-slide-active")); 28629 for (let e = 0; e < n.length; e++) n[e].setAttribute("aria-hidden", !0), u.setTabindex(n[e], -1); 28630 i.setAttribute("aria-hidden", !1), u.setTabindex(i, 0); 28631 }, r = e => { 28632 const t = e.el.querySelector(".swiper-pagination"); 28633 if (t) { 28634 const e = t.querySelectorAll(".swiper-pagination__bullet .swiper-pagination__bullet-btn"), n = t.querySelector(".swiper-pagination__bullet.-is-active .swiper-pagination__bullet-btn"); 28635 for (let t = 0; t < e.length; t++) e[t].setAttribute("aria-selected", !1), e[t].setAttribute("tabindex", -1); 28636 n.setAttribute("aria-selected", !0), n.setAttribute("tabindex", 0); 28637 } 28638 }, o = (e, t) => { 28639 const n = e.querySelector(".swiper-pagination__bullet-btn"), i = u.getUniqId(), r = t.querySelector(".js-wiper-bullet-text"); 28640 null !== r && (n.querySelector(".ghost").innerHTML = r.innerHTML), n.id = "label-swiper-content-id-" + i, 28641 n.setAttribute("aria-controls", "swiper-content-id-" + i), t.id = n.getAttribute("aria-controls"), 28642 t.setAttribute("aria-labelledby", n.id); 28643 }, s = (e, t) => { 28644 const n = e.el.querySelector(".swiper-actions"), i = n.querySelector(".js-swiper-play"), r = n.querySelector(".js-swiper-pause"), o = e.el.querySelectorAll(".swiper-slide"), s = e.el.querySelector(".hero-item video"); 28645 o.length > 1 || null !== s ? (i.setAttribute("aria-hidden", !0), r.setAttribute("aria-hidden", !0), 28646 u.removeClass(r, "-is-active"), u.removeClass(i, "-is-active"), t ? (r.setAttribute("aria-hidden", !1), 28647 u.addClass(r, "-is-active")) : (i.setAttribute("aria-hidden", !1), u.addClass(i, "-is-active"))) : n.style.display = "none"; 28648 }, a = (e, t) => { 28649 const n = t.querySelector(".swiper-pagination"), i = t.querySelectorAll(".js-swiper-control"), r = t.querySelector(".swiper-actions"), o = t.querySelector(".swiper-slide-active img").height, s = o / 2; 28650 if (window.innerWidth <= e) { 28651 for (let e = 0; e < i.length; e++) i[e].style.top = s + "px"; 28652 n.style.bottom = "auto", r.style.bottom = "auto", n.style.top = o - 17 + "px", r.style.top = o - 26 + "px"; 28653 } else { 28654 for (let e = 0; e < i.length; e++) i[e].removeAttribute("style"); 28655 n.removeAttribute("style"), r.removeAttribute("style"); 28656 } 28657 }; 28658 [].concat(e || []).filter(e => !!e.el).forEach(e => { 28659 (e => { 28660 let t, n; 28661 "true" === e.el.dataset.outsideNavigation ? (t = e.el.parentNode.querySelector("button.-next"), 28662 n = e.el.parentNode.querySelector("button.-prev")) : (t = e.el.querySelector("button.-next"), 28663 n = e.el.querySelector("button.-prev")), e.params.navigation.nextEl = t, e.params.navigation.prevEl = n; 28664 })(e), (e => { 28665 const t = e.el; 28666 let n; 28667 for (let e = 0; e < t.children.length; e++) u.hasClass(t.children[e], "swiper-wrapper") && (n = t.children[e]); 28668 const i = n.children, r = t.parentNode.querySelectorAll("button.-prev, button.-next"); 28669 u.addClass(t, "swiper-container"); 28670 for (let e = 0; e < i.length; e++) u.addClass(i[e], "swiper-slide"); 28671 for (let e = 0; e < r.length; e++) u.addClass(r[e], "js-swiper-control"); 28672 })(e), e.on("init", () => { 28673 n(e), r(e), i(e, e.realIndex), (e => { 28674 const t = e.el.querySelectorAll(".swiper-slide:not(.swiper-slide-duplicate)"), n = e.el.querySelector(".swiper-pagination").querySelectorAll(".swiper-pagination__bullet"); 28675 for (let e = 0; e < n.length; e++) o(n[e], t[e]), n[e].addEventListener("keydown", e => { 28676 const t = e.target.parentNode, n = t.parentNode.firstElementChild, i = t.parentNode.lastElementChild; 28677 e.ctrlKey || e.shiftKey || 9 === e.keyCode || (37 === e.keyCode || 38 === e.keyCode ? t === n ? (i.click(), 28678 setTimeout(() => { 28679 i.querySelector("button").focus(); 28680 }, 0)) : (t.previousElementSibling.click(), setTimeout(() => { 28681 t.previousElementSibling.querySelector("button").focus(); 28682 }, 0)) : 39 === e.keyCode || 40 === e.keyCode ? t === i ? (n.click(), setTimeout(() => { 28683 n.querySelector("button").focus(); 28684 }, 0)) : (t.nextElementSibling.click(), setTimeout(() => { 28685 t.nextElementSibling.querySelector("button").focus(); 28686 }, 0)) : 36 === e.keyCode ? (n.click(), setTimeout(() => { 28687 n.querySelector("button").focus(); 28688 }, 0)) : 35 === e.keyCode && (i.click(), setTimeout(() => { 28689 i.querySelector("button").focus(); 28690 }, 0)), e.preventDefault()); 28691 }); 28692 })(e), (e => { 28693 const t = e.el.dataset; 28694 for (const n in t) "controlsPosition" === n && "hero" === t[n] && (a(767, e.el), 28695 window.addEventListener("resize", () => { 28696 a(767, e.el); 28697 })); 28698 })(e); 28699 }), (e => { 28700 const n = e.el.querySelectorAll(".swiper-slide").length; 28701 t(e, !0), n >
28701 e.params.slidesPerView && (t(e, !1), e.init()); 28702 })(e); 28703 }); 28704 const l = document.querySelectorAll(".hero"); 28705 for (let e = 0; e < l.length; e++) { 28706 const t = l[e].swiper, o = t.el.querySelector(".js-swiper-play"), a = t.el.querySelector(".js-swiper-pause"), c = t.el.querySelector(".hero-item video"); 28707 let d = !0, h = t.autoplay.running; 28708 t.on("slideChange", () => { 28709 r(t), n(t); 28710 }), t.on("slideChangeTransitionEnd", () => { 28711 i(t, t.realIndex), a && !t.autoplay.running && u.hasClass(a, "-is-active") && t.autoplay.start(); 28712 }), s(t, h), null !== c && (s(t, d), c.play(), c.addEventListener("ended", () => { 28713 c.play(); 28714 })), o.addEventListener("click", () => { 28715 null === c ? (t.autoplay.start(), h = t.autoplay.running, s(t, h)) : (c.play(), 28716 d = !0, s(t, d)); 28717 }), a.addEventListener("click", () => { 28718 null === c ? (t.autoplay.stop(), h = t.autoplay.running, s(t, h)) : (c.pause(), 28719 d = !1, s(t, d)); 28720 }); 28721 } 28722 } 28723 function P() { 28724 const e = document.querySelector(".modal"); 28725 if (e) { 28726 const t = e.querySelector(".modal__content"); 28727 let n = ""; 28728 if (t && (n += t.textContent.replace(/\n/g, " ").replace(/\s/g, ""), n.length < 1)) return !1; 28729 const i = document.querySelector(".modal__button-close"), r = u.generateHash(n); 28730 null === localStorage.getItem("modal") && (u.addClass(document.body, "-overflow-hidden"), 28731 e.style.display = "block"), i.addEventListener("click", () => { 28732 (t => { 28733 u.removeClass(document.body, "-overflow-hidden"), e.style.display = "none", localStorage.setItem("modal", t); 28734 })(r); 28735 }); 28736 } 28737 } 28738 function I() { 28739 const e = document.querySelector(".stratis-menu"); 28740 if (null === e) return; 28741 const t = document.querySelector(".stratis-menu-trigger"), n = e.querySelector(".stratis-menu__list"), i = [].slice.call(n.querySelectorAll(".stratis-menu__toggle")), r = document.querySelector(".a11y-report"), o = n.querySelector(".stratis-menu__toggle-report"), s = e => { 28742 const t = e.target, n = "button" === t.tagName.toLowerCase() ? t.parentElement : t.parentElement.parentElement; 28743 u.hasClass(n, "-is-active") ? (e => { 28744 const t = e.target, n = "button" === t.tagName.toLowerCase() ? t : t.parentElement, i = ("button" === t.tagName.toLowerCase() ? t.parentElement : t.parentElement.parentElement).querySelector(".stratis-menu__submenu"), r = "button" === t.tagName.toLowerCase() ? t.parentElement.parentElement.querySelectorAll(".stratis-menu__item") : t.parentElement.parentElement.parentElement.querySelectorAll(".stratis-menu__item"); 28745 for (let e = 0; e < r.length; e++) u.removeClass(r[e], "-is-active"); 28746 u.setAriaControls(n, i, "closed"); 28747 })(e) : (e => { 28748 const t = e.target, n = "button" === t.tagName.toLowerCase() ? t.parentElement : t.parentElement.parentElement, i = "button" === t.tagName.toLowerCase() ? t : t.parentElement, r = n.querySelector(".stratis-menu__submenu"), o = "button" === t.tagName.toLowerCase() ? t.parentElement.parentElement.querySelectorAll(".stratis-menu__item") : t.parentElement.parentElement.parentElement.querySelectorAll(".stratis-menu__item"); 28749 for (let e = 0; e < o.length; e++) u.removeClass(o[e], "-is-active"); 28750 u.addClass(n, "-is-active"), u.setAriaControls(i, r, "opened"); 28751 })(e); 28752 }; 28753 t.addEventListener("click", () => { 28754 u.hasClass(e, "-is-visible") ? u.removeClass(e, "-is-visible") : u.addClass(e, "-is-visible"); 28755 r && u.hasClass(r, "-is-visible") && u.removeClass(r, "-is-visible"); 28756 }
28756), i.forEach(e => { 28757 const t = e.parentElement.querySelector(".stratis-menu__submenu"); 28758 u.initAriaControls(e, t), e.addEventListener("click", e => { 28759 s(e); 28760 }); 28761 }), o && o.addEventListener("click", () => { 28762 if (r) { 28763 u.hasClass(r, "-is-visible") ? u.removeClass(r, "-is-visible") : u.addClass(r, "-is-visible"); 28764 } 28765 }), document.addEventListener("click", t => { 28766 const i = e.contains(t.target), r = n.querySelector(".stratis-menu__item.-is-active .stratis-menu__toggle"); 28767 i || null === r || r.click(); 28768 }); 28769 } 28770 class L { 28771 constructor(e = ".js-direction", t = null) { 28772 if (this.selector = e, this.options = { 28773 itemSelector: "a", 28774 animationName: "slide", 28775 enableTouch: !0, 28776 touchThreshold: 300 28777 }, this.touchStart = "", t instanceof Object && (this.options = u.extendDefaults(this.options, t)), 28778 this.translateDirection = u.switchcase({ 28779 0: "top", 28780 1: "right", 28781 2: "bottom", 28782 3: "left" 28783 })("top"), "string" != typeof this.selector) { 28784 this.nodes = [].slice.call(this.selector.querySelectorAll(this.options.itemSelector), 0), 28785 this.initEvents(); 28786 [ ...this.selector.querySelectorAll("svg") ].forEach(e => { 28787 e.setAttribute("focusable", "false"); 28788 }); 28789 } 28790 if ("string" == typeof e) { 28791 const t = document.querySelectorAll(e); 28792 for (let e = 0; e < t.length; e++) { 28793 new L(t[e], this.options); 28794 } 28795 } 28796 } 28797 getDirection(e, t) { 28798 const n = t.offsetWidth, i = t.offsetHeight, r = this.getPosition(t), o = e.pageX - r.x - n / 2 * (n > i ? i / n : 1), s = e.pageY - r.y - i / 2 * (i > n ? n / i : 1); 28799 return Math.round(Math.atan2(s, o) / 1.57079633 + 5) % 4; 28800 } 28801 getPosition(e) { 28802 let t = 0, n = 0, i = e; 28803 for (;i; ) t += i.offsetLeft + i.clientLeft, n += i.offsetTop + i.clientTop, i = i.offsetParent; 28804 return { 28805 x: t, 28806 y: n 28807 }; 28808 } 28809 addClass(e, t) { 28810 const n = e.currentTarget, i = this.getDirection(e, n), r = this.translateDirection(i), o = n.className.split(" "); 28811 n.className = o.filter(e => !e.startsWith("-" + this.options.animationName)).join(" "), 28812 n.classList.add(`-${this.options.animationName}-${t}-${r}`); 28813 } 28814 initEvents() { 28815 this.nodes.forEach(e => { 28816 this.addEventListenerMulti(e, [ "mouseenter", "focu
28816s" ], e => { 28817 this.addClass(e, "in"); 28818 }), this.addEventListenerMulti(e, [ "mouseleave", "blur" ], e => { 28819 this.addClass(e, "out"); 28820 }), this.options.enableTouch && (e.addEventListener("touchstart", e => { 28821 this.touchStart = +new Date; 28822 }, { 28823 passive: !0 28824 }), e.addEventListener("touchend", t => { 28825 +new Date - this.touchStart < this.options.touchThreshold && !e.className.includes(`-${this.options.animationName}-in`) && (t.preventDefault(), 28826 this.resetVisible(t, this.nodes)); 28827 })); 28828 }); 28829 } 28830 addEventListenerMulti(e, t, n) { 28831 t.forEach(t => e.addEventListener(t, n)); 28832 } 28833 resetVisible(e, t) { 28834 t.forEach(t => { 28835 const n = t.className; 28836 n.includes(`-${this.options.animationName}-in`) && t !== e.currentTarget && (t.className = n.replace(`-${this.options.animationName}-in`, `-${this.options.animationName}-out`)); 28837 }), this.addClass(e, "in"); 28838 } 28839 } 28840 var D = n(583), N = n.n(D); 28841 n(577), n(572); 28842 function F(e) { 28843 const t = e.querySelector("[data-chart-data]"), n = {}; 28844 if (null === t) return; 28845 const i = [ ...t.querySelectorAll(".chart-data__item") ], r = [], o = [], s = []; 28846 return i.forEach(e => { 28847 const t = getComputedStyle(e.querySelector(".chart-data__colorbox")); 28848 o.push(t.backgroundColor), r.push(e.textContent), s.push(Number(e.dataset.value)); 28849 }), n.labels = r, n.backgroundColors = o, n.values = s, n; 28850 } 28851 function j(e) { 28852 [ ...document.querySelectorAll(e) ].forEach(e => { 28853 const t = e.dataset.chartId, n = e.querySelector("canvas"); 28854 if (n) { 28855 const i = n.getContext("2d"), r = F(e), o = new N.a(i, { 28856 type: "doughnut", 28857 data: { 28858 labels: r.labels, 28859 datasets: [ { 28860 data: r.values, 28861 backgroundColor: r.backgroundColors, 28862 borderWidth: 0 28863 } ] 28864 }, 28865 options: { 28866 responsive: !0, 28867 maintainAspectRatio: !1, 28868 legend: !1, 28869 cutoutPercentage: 65, 28870 tooltips: { 28871 enabled: !1, 28872 custom(e) { 28873 let t = document.getElementById("js-chart-tooltip"); 28874 if (t || (t = document.createElement("div"), t.id = "js-chart-tooltip", document.body.appendChild(t)), 28875 0 === e.opacity) return void (t.style.opacity = "0"); 28876 if (t.classList.remove("above", "below", "no-transform"), e.yAlign ? t.classList.add(e.yAlign) : t.classList.add("no-transform"), 28877 e.body) { 28878 const n = e.body.map((function(e) { 28879 return e.lines; 28880 })); 28881 let i = ""; 28882 n.forEach((t, n) => { 28883 const r = e.labelColors[n]; 28884 i += `<span class="chart-tooltip"><span style="background-color: ${r.backgroundColor}"></span>${t}</span>`; 28885 }), t && (t.innerHTML = i); 28886 } 28887 const n = o.canvas.getBoundingClientRect(); 28888 t.style.opacity = "1", t.style.position = "absolute", t.style.left = n.left + window.pageXOffset + e.caretX + "px", 28889 t.style.top = n.top + window.pageYOffset + e.caretY + "px", t.style.pointerEvents = "none", 28890 t.style.zIndex = "100", t.style.transition = "500ms"; 28891 } 28892 } 28893 } 28894 }); 28895 t && function(e, t) { 28896 const n = document.querySelector(`[data-chart-form-id="${e}"]`), i = document.querySelector(`[data-chart-id="${e}"]`); 28897 let r = null;
28898 null !== n && (i && (r = u.findAncestor(i, "interests-block__results")), n.addEventListener("submit", e => { 28899 e.preventDefault(); 28900 const i = n.dataset.url, o = u.serializeForm(n); 28901 fetch(`${i}?${o}`, { 28902 method: "GET" 28903 }).then(e => { 28904 if (e.status >= 200 && e.status < 300) return e; 28905 const t = new Error(e.statusText); 28906 throw t.response = e, t; 28907 }).then(e => e.text()).then(e => { 28908 if (r) { 28909 const i = r.querySelector(".interests-results__chart-data"); 28910 if (u.hasClass(r, "-is-hidden")) { 28911 u.removeClass(r, "-is-hidden"); 28912 const e = u.findAncestor(n, "interests-block__vote"); 28913 e && u.addClass(e, "-is-hidden"); 28914 } 28915 i.innerHTML = e; 28916 const o = F(r); 28917 t.data = { 28918 labels: o.labels, 28919 datasets: [ { 28920 data: o.values, 28921 backgroundColor: o.backgroundColors, 28922 borderWidth: 0 28923 } ] 28924 }, t.update(); 28925 } 28926 }); 28927 })); 28928 }(t, o); 28929 } 28930 }); 28931 } 28932 var R = n(161); 28933 class B { 28934 constructor(e = ".tabs", t = null, n = "tabs") { 28935 this.selector = e, this.prefix = n, this.options = { 28936 class: { 28937 trigger: this.prefix + "__trigger", 28938 panel: this.prefix + "__panel", 28939 list: this.prefix + "__list", 28940 listItem: this.prefix + "__list-item", 28941 typeAccordion: "-type-accordion", 28942 typeTab: "-type-tabs", 28943 stateActive: "-current", 28944 stateHidden: "ghost" 28945 }, 28946 onlyState: null, 28947 titleSelector: "h2", 28948 initIndex: 0, 28949 eq: 0, 28950 breakpoint: 768, 28951 slideDuration: 300, 28952 beforeInit: () => {}, 28953 afterInit: () => {}, 28954 onInit: () => {}, 28955 preCreateTrigger: e => { 28956 const t = e.children; 28957 let n = null; 28958 return t.length && t[0] instanceof HTMLElement && "BUTTON" === t[0].nodeName ? n = t[0] : (n = document.createElement("button"), 28959 n.innerHTML = e.innerHTML), n; 28960 } 28961 }, t instanceof Object && (this.options = u.extendDefaults(this.options, t)), this.checkBeforeInit(); 28962 } 28963 checkBeforeInit() { 28964 if ("string" == typeof this.selector) { 28965 const e = document.querySelectorAll(this.selector); 28966 for (let t = 0; t < e.length; t++) { 28967 new B(e[t], this.options); 28968 } 28969 } else this.options.beforeInit(this.selector), this.init(), this.options.afterInit(this.selector); 28970 } 28971 init() { 28972 this.options.onInit(this.selector), this.create(this.isTabs()), this.initEvents(); 28973 } 28974 getState() { 28975 return this.options.onlyState ? this.options.onlyState : window.innerWidth < this.options.breakpoint ? "accordion" : "tabs"; 28976 } 28977 isTabs() {
28978 return "tabs" === this.getState(); 28979 } 28980 get current() { 28981 return this.selector.getAttribute("data-current"); 28982 } 28983 set current(e) { 28984 return this.selector.setAttribute("data-current", e); 28985 } 28986 create(e, t = this.options.eq) { 28987 u.addClass(this.selector, this.options.class[e ? "typeTab" : "typeAccordion"]); 28988 const n = document.createElement("ul"), i = Array.prototype.slice.call(this.selector.querySelectorAll(this.options.titleSelector)); 28989 e ? (u.addClass(n, this.options.class.list), n.setAttribute("role", "tablist")) : u.setAttributes(this.selector, { 28990 role: "tablist" 28991 }), i.forEach((i, r) => { 28992 const o = i.parentNode, s = o.dataset.id || u.getUniqId(), a = s === t || r === parseInt(t, 10), l = this.createTrigger(s, i, e); 28993 if (u.addClass(i, this.options.class.stateHidden), u.setAttributes(o, { 28994 "data-id": s, 28995 id: "control-" + s, 28996 "aria-labelledby": "labled-" + s, 28997 role: "tabpanel", 28998 "aria-hidden": !0 28999 }), e || o.slideToggler || (o.slideToggler = new R.a(o)), a && (this.activateTrigger(l, e), 29000 this.activatePanel(o, e), this.current = s), e) { 29001 const e = document.createElement("li"); 29002 u.addClass(e, this.options.class.listItem), n.setAttribute("role", "presentation"), 29003 e.innerHTML = l.outerHTML, n.appendChild(e); 29004 } else o.parentNode.insertBefore(l, o); 29005 }), e && this.selector.insertBefore(n, this.selector.children[0]); 29006 } 29007 createTrigger(e, t, n) { 29008 const i = this.options.preCreateTrigger(t); 29009 return u.setAttributes(i, { 29010 id: "labled-" + e, 29011 "aria-controls": "control-" + e, 29012 type: "button", 29013 role: "tab", 29014 "aria-selected": !1 29015 }), u.addClass(i, this.options.class.trigger), n || u.setAttributes(i, { 29016 "aria-expanded": !1 29017 }), i; 29018 } 29019 activatePanel(e, t) { 29020 !t && e.slideToggler && e.slideToggler.open(), u.addClass(e, this.options.class.stateActive), 29021 u.removeAttributes(e, [ "aria-hidden" ]); 29022 } 29023 deactivatePanel(e, t) { 29024 !t && e.slideToggler && e.slideToggler.close(), u.removeClass(e, this.options.class.stateActive), 29025 u.setAttributes(e, { 29026 "aria-hidden": !0 29027 }); 29028 } 29029 activateTrigger(e, t) { 29030 e.focus(), u.addClass(e, this.options.class.stateActive), u.setAttributes(e, { 29031 "aria-selected": !0 29032 }), t || u.setAttributes(e, { 29033 "aria-expanded": !0 29034 }); 29035 } 29036 deactivateTrigger(e, t) { 29037 u.removeClass(e, this.options.class.stateActive), u.setAttributes(e, { 29038 "aria-selected": !1 29039 }), t || u.setAttributes(e, { 29040 "aria-expanded": !1 29041 }); 29042 } 29043 switchTab(e) { 29044 const t = this.isTabs(), n = this.current, i = document.getElementById("labled-" + n), r = document.getElementById("control-" + n), o = document.getElementById(e.getAttribute("aria-controls")); 29045 e && i && o && r && (this.current = e.id.replace("labled-", ""), this.deactivateTrigger(i, t), 29046 this.deactivatePanel(r, t), this.activateTrigger(e, t), this.activatePanel(o, t)); 29047 } 29048 destroy() { 29049 u.removeAttributes(this.selector, [ "role" ]), u.removeClass(this.selector, this.options.class.typeAccordion), 29050 u.removeClass(this.selector, this.options.class.typeTab); 29051 const e = this.selector.querySelector("." + this.options.class.list); 29052 e && this.selector.removeChild(e); 29053 let t = Array.prototype.slice.call(this.selector.childNodes); 29054 t = t.filter(e => "#text" !== e.nodeName), t.forEach(e => {
29055 if ("BUTTON" === e.nodeName) e.removeEventListener("click", this.onTogglerClick.bind(this)), 29056 e.parentNode.removeChild(e); else { 29057 u.removeAttributes(e, [ "id", "aria-labelledby", "role", "aria-hidden", "style" ]), 29058 u.removeClass(e, this.options.class.stateActive); 29059 const t = e.querySelector(this.options.titleSelector); 29060 t && u.removeClass(t, this.options.class.stateHidden); 29061 } 29062 }); 29063 } 29064 initEvents() { 29065 this.initEventsTriggers(), window.addEventListener("responsive", () => { 29066 const e = this.isTabs(); 29067 e !== u.hasClass(this.selector, this.options.class.typeTab) && (this.destroy(), 29068 this.create(e, this.current), this.initEventsTriggers()); 29069 }); 29070 } 29071 initEventsTriggers() { 29072 const e = Array.prototype.slice.call(this.selector.querySelectorAll("." + this.options.class.trigger)); 29073 e.forEach(t => { 29074 t.addEventListener("click", this.onTogglerClick.bind(this)), t.addEventListener("keydown", t => this.onTogglerKeyDown.call(this, t, e)); 29075 }); 29076 } 29077 onTogglerClick(e) { 29078 const t = e.target; 29079 t.id.replace("labled-", "") !== this.current && this.switchTab(t); 29080 } 29081 onTogglerKeyDown(e, t) { 29082 const n = document.getElementById("labled-" + this.current), i = t.indexOf(n), r = t[0], o = t[t.length - 1]; 29083 36 === e.keyCode ? (n !== r && this.switchTab(r), e.preventDefault()) : 35 === e.keyCode ? (n !== o && this.switchTab(o), 29084 e.preventDefault()) : 37 !== e.keyCode || e.ctrlKey ? 39 !== e.keyCode || e.ctrlKey || (n === o ? this.switchTab(r) : this.switchTab(t[i + 1]), 29085 e.preventDefault()) : (n === r ? this.switchTab(o) : this.switchTab(t[i - 1]), e.preventDefault()); 29086 } 29087 } 29088 const z = (e, t) => { 29089 -1 === e.indexOf(t) && e.push(t); 29090 }, H = (e, t) => { 29091 let n = e.indexOf(t); 29092 for (;-1 !== n; ) e.splice(n, 1), n = e.indexOf(t); 29093 }, W = e => [].slice.call(e.parentElement.lastElementChild.querySelectorAll('input[type="checkbox"]')), q = (e, t) => { 29094 const n = (e => { 29095 const t = u.findAncestor(e, "checkbox-group"); 29096 return null !== t ? t.querySelector('input[type="checkbox"]') : t; 29097 })(e); 29098 if (console.log(n), null === n) return; 29099 const i = (e => e.parentElement.querySelectorAll('input[type="checkbox"]').length)(n), r = (e => { 29100 let t = 1; 29101 return e.forEach(e => { 29102 t = e.checked ? t + 1 : t; 29103 }), t; 29104 })(W(n)); 29105 console.log(n, r, i), n.checked = r === i, n.checked ? z(t, n.value) : H(t, n.value), 29106 q(n.parentElement.parentElement, t); 29107 }; 29108 function V() { 29109 const e = document.querySelector(".js-get-categories"), t = [].slice.call(document.querySelectorAll(".js-set-categories")); 29110 if (null === e || null === t) return; 29111 const n = []; 29112 t.forEach(t => { 29113 [].slice.call(t.querySelectorAll('input[type="checkbox"]')).forEach(t => { 29114 t.addEventListener("click", () => { 29115 ((e, t) => { 29116 e.checked ? (z(t, e.value), W(e).length && W(e).forEach(e => { 29117 e.checked = !0, z(t, e.value); 29118 })) : (H(t, e.value), W(e).length && W(e).forEach(e => { 29119 e.checked = !1, H(t, e.value); 29120 })), q(e, t); 29121 })(t, n), console.log(n), e.value = n.join(","); 29122 }); 29123 }); 29124 }); 29125 } 29126 function Y() { 29127 const e = new p.a(".js-swiper", { 29128 init: !1, 29129 simulateTouch: !1, 29130 watchOverflow: !0, 29131 loop: !1, 29132 autoplay: !1, 29133 speed: 500, 29134 a11y: { 29135 enabled: !1 29136 }, 29137 pagination: { 29138 type: "bullets", 29139 bulletElement: "li", 29140 clickable: !0, 29141 bulletClass: "swiper-pagination__bullet", 29142 bulletActiveClass: "-is-active", 29143 renderBullet: (e, t) => `\n <li class="${t}" role="presentation">\n <button class="swiper-pagination__bullet-btn" role="tab" aria-selected="false">
29143\n <span class="ghost">${e + 1}</span>\n </button>\n </li>\n ` 29144 } 29145 }), t = (e, t) => { 29146 const n = e.el.parentNode.querySelectorAll(".js-swiper-control"); 29147 for (let e = 0; e < n.length; e++) { 29148 t ? u.addClass(n[e], "-is-hidden") : u.removeClass(n[e], "-is-hidden"); 29149 } 29150 }, n = e => { 29151 if (e && e.el && e.el.parentNode) { 29152 const t = e.el.parentNode.querySelectorAll(".js-swiper-control"); 29153 for (let e = 0; e < t.length; e++) { 29154 u.hasClass(t[e], "swiper-button-disabled") ? t[e].setAttribute("disabled", !0) : t[e].removeAttribute("disabled"); 29155 } 29156 } 29157 }, i = e => { 29158 const t = e.el.parentNode.querySelector(".swiper-pagination"), n = t.querySelectorAll(".swiper-pagination__bullet .swiper-pagination__bullet-btn"), i = t.querySelector(".swiper-pagination__bullet.-is-active .swiper-pagination__bullet-btn"); 29159 if (null !== n) { 29160 for (let e = 0; e < n.length; e++) n[e].setAttribute("aria-selected", !1), n[e].setAttribute("tabindex", -1); 29161 null !== i && (i.setAttribute("aria-selected", !0), i.setAttribute("tabindex", 0)); 29162 } 29163 }, r = e => { 29164 e.addEventListener("keydown", e => { 29165 const t = e.target.parentNode, n = t.parentNode.firstElementChild, i = t.parentNode.lastElementChild; 29166 e.ctrlKey || e.shiftKey || 9 === e.keyCode || (37 === e.keyCode || 38 === e.keyCode ? t === n ? (i.click(), 29167 setTimeout(() => { 29168 i.querySelector("button").focus(); 29169 }, 0)) : (t.previousElementSibling.click(), setTimeout(() => { 29170 t.previousElementSibling.querySelector("button").focus(); 29171 }, 0)) : 39 === e.keyCode || 40 === e.keyCode ? t === i ? (n.click(), setTimeout(() => { 29172 n.querySelector("button").focus(); 29173 }, 0)) : (t.nextElementSibling.click(), setTimeout(() => { 29174 t.nextElementSibling.querySelector("button").focus(); 29175 }, 0)) : 36 === e.keyCode ? (n.click(), setTimeout(() => { 29176 n.querySelector("button").focus(); 29177 }, 0)) : 35 === e.keyCode && (i.click(), setTimeout(() => { 29178 i.querySelector("button").focus(); 29179 }, 0)), e.preventDefault()); 29180 }); 29181 }, o = e => { 29182 const t = e.el.dataset, n = {}; 29183 let o, s; 29184 for (const a in t) { 29185 if ("autoplay" === a && ("false" === t[a] ? e.params.autoplay = !1 : (e.params.autoplay.enabled = !0, 29186 e.params.autoplay.delay = isNaN(Number(t[a])) ? 0 : Number(t[a]))), "loop" === a && (e.params.loop = "false" !== t[a]), 29187 "items" === a && (o = t[a].split(", ")), "slideByOne" === a && (s = !0 === t[a]), 29188 "pagination" === a) { 29189 let n; 29190 n = "outside" === t[a] ? e.el.parentNode.querySelector(".swiper-pagination") : e.el.querySelector(".swiper-pagination"), 29191 null !== n && (e.params.pagination.el = n, e.pagination.render(), setTimeout(() => { 29192 const t = [].slice.call(n.querySelectorAll(".swiper-pagination__bullet")); 29193 i(e), t.forEach(e => r(e)); 29194 }, 100)); 29195 } 29196 if (void 0 === o) n[4e3] = { 29197 slidesPerView: 1, 29198 slidesPerGroup: 1 29199 }; else switch (o.length) { 29200 case 1: 29201 n[4e3] = { 29202 slidesPerView: o[0], 29203 slidesPerGroup: void 0 === s ? o[0] : 1 29204 }; 29205 break; 29206 29207 case 2: 29208 n[1279] = { 29209 slidesPerView: o[1], 29210 slidesPerGroup: void 0 === s ? o[1] : 1 29211 }, n[4e3] = { 29212 slidesPerView: o[0], 29213 slidesPerGroup: void 0 === s ? o[0] : 1 29214 }; 29215 break; 29216 29217 case 3: 29218 n[767] = { 29219 slidesPerView: o[2], 29220 slidesPerGroup: void 0 === s ? o[2] : 1 29221 }, n[1279] = { 29222 slidesPerView: o[1], 29223 slidesPerGroup: void 0 === s ? o[1] : 1 29224 }, n[4e3] = { 29225 slidesPerView: o[0], 29226 slidesPerGroup: void 0 === s ? o[0] : 1 29227 }; 29228 break; 29229 29230 default: 29231 n[4e3] = { 29232 slidesPerView: 1, 29233 slidesPerGroup: 1 29234 }; 29235 } 29236 } 29237 return n; 29238 }, s = (e, t) => { 29239 const n = e.el.querySelectorAll(".swiper-slide"), i = e.params.breakpoints, r = window.innerWidth, o = e.params.loop; 29240 let s = e.el.querySelector(`.swiper-slide-active[data-swiper-slide-index="${t}"]`), a = !0; 29241 null === s && o && (s = e.el.querySelector('.swiper-slide-active[data-swiper-slide-index="0"]')); 29242 for (const e in i) if (r <= Number(e) && n.length > i[e].slidesPerView && a) { 29243 a = !1; 29244 for (let e = 0; e < n.length; e++) n[e].setAttribute("aria-hidden", !0), u.setTabindex(n[e], -1); 29245 const r = i[e].slidesPerView; 29246 for (let e = 0; e < r; e++) if (o) { 29247 const t = [].slice.call(n), i = t.indexOf(s); 29248 s.setAttribute("aria-hidden", !1), t[i + e].setAttribute("aria-hidden", !1), u.setTabindex(s, 0), 29249 u.setTabindex(t[i + e], 0); 29250 } else n[t].setAttribute("aria-hidden", !1), n[t + e].setAttribute("aria-hidden", !1), 29251 u.setTabindex(n[t], 0), u.setTabindex(n[t + e], 0); 29252 } 29253 }, a = (e, t) => { 29254 const n = e.el.parentNode.querySelector(".swiper-actions"), i = n.querySelector(".js-swiper-play"), r = n.querySelector(".js-swiper-pause"); 29255 i.setAttribute("aria-hidden", !0), r.setAttribute("aria-hidden", !0), u.removeClass(r, "-is-active"), 29256 u.removeClass(i, "-is-active"), t ? (r.setAttribute("aria-hidden", !1), u.addClass(r, "-is-active")) : (i.setAttribute("aria-hidden", !1), 29257 u.addClass(i, "-is-active")); 29258 }, l = (e, i) => { 29259 const r = window.innerWidth, o = e.el.querySelectorAll(".swiper-slide").length; 29260 t(e, !0), u.hasClass(e.el, "swiper-container-horizontal") || e.init(
29260); 29261 for (const s in i) r <= Number(s) && o > i[s].slidesPerView && (t(e, !1), n(e)); 29262 }; 29263 [].concat(e || []).filter(e => !!e.el).forEach(e => { 29264 e.params.breakpoints = o(e), (e => { 29265 let t, n; 29266 "true" === e.el.dataset.outsideNavigation ? (t = e.el.parentNode.querySelector("button.-next"), 29267 n = e.el.parentNode.querySelector("button.-prev")) : (t = e.el.querySelector("button.-next"), 29268 n = e.el.querySelector("button.-prev")), e.params.navigation.nextEl = t, e.params.navigation.prevEl = n; 29269 })(e), (e => { 29270 const t = e.el; 29271 let n; 29272 for (let e = 0; e < t.children.length; e++) u.hasClass(t.children[e], "swiper-wrapper") && (n = t.children[e]); 29273 const i = n.children, r = t.parentNode.querySelectorAll("button.-prev, button.-next"); 29274 u.addClass(t, "swiper-container"); 29275 for (let e = 0; e < i.length; e++) u.addClass(i[e], "swiper-slide"); 29276 for (let e = 0; e < r.length; e++) u.addClass(r[e], "js-swiper-control"); 29277 })(e), e.on("init", () => { 29278 s(e, e.realIndex), n(e); 29279 }), l(e, o(e)), window.addEventListener("resize", () => { 29280 s(e, e.realIndex), l(e, o(e)); 29281 }); 29282 }); 29283 const c = document.querySelectorAll(".js-swiper"); 29284 for (let e = 0; e < c.length; e++) { 29285 const t = c[e].swiper, i = t.el.parentNode.querySelector(".js-swiper-play"), r = t.el.parentNode.querySelector(".js-swiper-pause"); 29286 let o = t.autoplay.running; 29287 t.on("slideChange", () => { 29288 n(t); 29289 }), t.on("slideChangeTransitionEnd", () => { 29290 s(t, t.realIndex), r && !t.autoplay.running && u.hasClass(r, "-is-active") && t.autoplay.start(); 29291 }), null !== i && null !== r && (a(t, o), i.addEventListener("click", () => { 29292 t.autoplay.start(), o = t.autoplay.running, a(t, o); 29293 }), r.addEventListener("click", () => { 29294 t.autoplay.stop(), o = t.autoplay.running, a(t, o); 29295 })); 29296 } 29297 } 29298 var G = n(224), U = n(163); 29299 const X = e => [].slice.call(e.parentElement.querySelectorAll(`input[type="checkbox"]:not([id=${e.id}])`)), K = e => { 29300 const t = (e => { 29301 const t = []; 29302 let n = e.parentElement.parentElement; 29303 for (;!u.hasClass(n, "checkbox"); ) t.push(n.querySelector('input[type="checkbox"]')), 29304 n = n.parentElement; 29305 return t; 29306 })(e), n = (e => X(e).length > 0)(e) ? X(e) : null; 29307 e.setAttribute("aria-checked", e.checked), null !== n && n.forEach(t => { 29308 t.checked = e.checked; 29309 }), t.length && t.forEach(e => { 29310 ((e, t) => { 29311 switch (t) { 29312 case "checked": 29313 e.checked = !0, e.indeterminate = !1, e.setAttribute("aria-checked", !0); 29314 break; 29315 29316 case "indeterminate": 29317 e.checked = !1, e.indeterminate = !0, e.setAttribute("aria-checked", "mixed"); 29318 break; 29319 29320 default: 29321 e.indeterminate = !1, e.checked = !1, e.setAttribute("aria-checked", !1); 29322 } 29323 })(e, (e => { 29324 const t = X(e), n = t.length; 29325 let i = 0, r = "unchecked"; 29326 return n > 0 ? (t.forEach(e => { 29327 i = e.checked ? i + 1 : i; 29328 }), i === n ? r = "checked" : i > 0 && i < n && (r = "indeterminate")) : e.checked && (r = "checked"), 29329 r; 29330 })(e)); 29331 }); 29332 }, Z = e => { 29333 const t = e.querySelector(".multiselect__toggle"), n = e.getAttribute("data-relations"), i = document.getElementById(n); 29334 void 0 !== n ? null !== i ? (i.value = (e => [].slice.call(e.querySelectorAll('input[type="checkbox"]:checked')).map(e => e.value).join(","))(e), 29335 t.innerHTML = (e => { 29336 const t = [].slice.call(e.querySelectorAll('input[type="checkbox"]:checked + label')), n = e.getAttribute("data-placeholder") || "Toutes les categories", i = e.getAttribute("data-prefix") || "selected", r = e.getAttribute("data-suffix") || "categories", o = e.getAttribute("data-show-count") || !0; 29337 let s = n; 29338 return t.length && (s = o && 1 === t.length ? t[0].innerHTML : o && t.length > 1 ? `${i} ${t.length} ${r}` : t.map(e => e.innerHTML).join(", ")), 29339 s; 29340 })(e)) : console.error("relation input missed, please add it") : console.error("data-relations attribute missed, please add it"); 29341 }; 29342 function J(e) { 29343 if (!u.hasClass(e, "float-label-multiselect")) return; 29344 const t = e.parentElement.querySelector('input[type="hidden"]'); 29345 t.value && "" !== t.value || u.removeClass(e.parentElement, "js-float-label-enable"); 29346 } 29347 function Q(e, t) { 29348 const n = [].slice.call(e), i = n.filter(e => e.checked);
29349 Z(t), i.forEach(e => K(e)), n.forEach(e => { 29350 e.addEventListener("change", () => { 29351 K(e), Z(t), J(t); 29352 }); 29353 }); 29354 } 29355 function ee(e) { 29356 u.hasClass(e, "float-label-multiselect") && u.addClass(e.parentElement, "js-float-label-enable"); 29357 } 29358 function te() { 29359 const e = document.querySelectorAll(".multiselect"); 29360 if (null !== e) for (let t = 0; t < e.length; t++) { 29361 const n = e[t]; 29362 Q(n.querySelectorAll('input[type="checkbox"]'), n); 29363 } 29364 } 29365 function ne() { 29366 if (null !== document.querySelectorAll(".multiselect")) { 29367 new g.a(".multiselect:not(.-group)", { 29368 wrapperClass: "multiselect", 29369 dropdownClass: "multiselect__dropdown", 29370 btnClass: "multiselect__toggle", 29371 onInit: te, 29372 afterOpen: ee, 29373 afterClose: J 29374 }), new g.a(".multiselect.-group", { 29375 wrapperClass: "multiselect", 29376 dropdownClass: "multiselect__dropdown", 29377 btnClass: "multiselect__toggle", 29378 closeOnOutsideClick: !1, 29379 focusTrap: !1, 29380 onInit: te 29381 }); 29382 } 29383 } 29384 var ie = n(79), re = n.n(ie); 29385 const oe = (e, t) => { 29386 const n = t.querySelector(`[name="${e}"]`); 29387 null !== n && ("0" !== n.value && "" !== n.value || n.removeAttribute("name")); 29388 }; 29389 let se; 29390 const ae = e => { 29391 const t = e.target.form; 29392 if (t) { 29393 t.querySelector('[type="submit"]').removeAttribute("disabled"); 29394 const e = t.querySelector("p.required"); 29395 e && e.remove(), se(t, !1); 29396 } 29397 }, le = (e, t) => { 29398 e.addEventListener(t, ae); 29399 }, ce = (e, t) => { 29400 e.removeEventListener(t, ae); 29401 }; 29402 function ue() { 29403 const e = [].slice.call(document.querySelectorAll("form")); 29404 T()('button[type="reset"]').click((function() { 29405 const e = T()(this).parents("form").find(".multiselect"); 29406 T()(this).parents("form").find('[type="submit"]').attr("disabled", !1), T()(this).parents("form").find("p.required").remove(), 29407 T()(this).parents("form").find(":radio, :checkbox").prop("indeterminate", !1), T()(this).parents("form").find(":radio, :checkbox").prop("checked", !1), 29408 T()(this).parents("form").find("textarea:enabled, input:enabled:not([readonly])").val(""); 29409 if (T()(this).parents("form").find("select:enabled").each((e, t) => { 29410 t.value = t.options[0].value; 29411 }), T()(this).parents("form").find(":radio, :checkbox").each((e, t) => { 29412 t.dispatchEvent(new Event("change", { 29413 bubbles: !0 29414 })); 29415 }), T()(this).parents("form").find("textarea:enabled, input:enabled:not([readonly]), select:enabled").each((e, t) => { 29416 t.dispatchEvent(new Event("input", { 29417 bubbles: !0 29418 })); 29419 }), e.length > 0) { 29420 const t = e.attr("data-placeholder"); 29421 e.find(".multiselect__toggle").text(t); 29422 } 29423 return !1; 29424 })), e.forEach(e => { 29425 e.addEventListener("submit", t => { 29426 const n = e.querySelector('[type="submit"]'), i = e.querySelector('[type="file"]'); 29427 n.setAttribute("disabled", "true"), i && "" !== i.value && n.insertAdjacentHTML("afterEnd", `<span class="required">${re.a.pleaseWaitForFile}</span>`); 29428 const r = document.getElementById("input-date-hidden"); 29429 null !== r && (e => { 29430 if (e.value.length > 0) { 29431 const t = e.value.split("-"), n = document.getElementById("date-day"), i = document.getElementById("date-month"), r = document.getElementById("date-year"); 29432 n.value = t[2], i.value = t[1], r.value = t[0]; 29433 } 29434 })(r), se(e, !0); 29435 const o = document.getElementById("tx_news_year"); 29436 null !== o && (e => { 29437 const t = e.parentNode.querySelector("select"); 29438 if (!t) return; 29439 const n = t.querySelector(`option[value="${t.value}"]`); 29440 if (!n) return; 29441 const i = n.parentNode; 29442 i && "OPTGROUP" === i.nodeName && i.hasAttribute("label") && e.setAttribute("value", i.getAttribute("label")); 29443 })(o);
29444 [ "tx_news_pi1[overwriteDemand][period]", "tx_news_pi1[overwriteDemand][related]", "tx_news_pi1[overwriteDemand][categories]", "tx_news_pi1[overwriteDemand][day]", "tx_news_pi1[overwriteDemand][month]", "tx_news_pi1[overwriteDemand][year]", "tx_news_pi1[overwriteDemand][keywords]", "tx_news_pi1[overwriteDemand][datecomplete]", "tx_news_pi1[search][subject]", "tx_news_pi1[overwriteDemand][tags]", "tx_news_pi1[overwriteDemand][relatedLinks]", "tx_news_pi1[overwriteDemand][related]", "tx_news_pi1[overwriteDemand][relatedLocations]", "tx_news_pi1[overwriteDemand][relatedAreas]", "tx_simplepoll_polllisting[category]", "tx_simplepoll_polllisting[status]", "tx_stratismap_location[search][keywords]", "tx_stratismap_location[search][categories][]" ].forEach(t => { 29445 ((e, t) => { 29446 let n = []; 29447 "tx_news_pi1[search][subject]" === e && (n = n.concat([ "tx_news_pi1[__referrer][@request]", "tx_news_pi1[__referrer][@extension]", "tx_news_pi1[__referrer][@vendor]", "tx_news_pi1[__referrer][@controller]", "tx_news_pi1[__referrer][@action]", "tx_news_pi1[__referrer][arguments]", "tx_news_pi1[__trustedProperties]" ])), 29448 "tx_news_pi1[overwriteDemand][datecomplete]" === e && (n = n.concat([ "tx_news_pi1[overwriteDemand][startFromThisDate]" ])), 29449 "tx_stratismap_location[keyword]" === e && (n = n.concat([ "tx_stratismap_location[__referrer][@extension]", "tx_stratismap_location[__referrer][@vendor]", "tx_stratismap_location[__referrer][@controller]", "tx_stratismap_location[__referrer][@action]", "tx_stratismap_location[__referrer][arguments]", "tx_stratismap_location[__referrer][@request]", "tx_stratismap_location[__trustedProperties]" ])), 29450 oe(e, t), n.forEach(e => { 29451 oe(e, t); 29452 }); 29453 })(t, e); 29454 }); 29455 }); 29456 }); 29457 } 29458 se = (e, t) => { 29459 const n = [ ...e.querySelectorAll("input"), ...e.querySelectorAll("textarea"), ...e.querySelectorAll("select") ], i = [ ...e.querySelectorAll("radio"), ...e.querySelectorAll("checkbox") ]; 29460 n.forEach(e => { 29461 t ? le(e, "input") : ce(e, "input"); 29462 }), i.forEach(e => { 29463 t ? le(e, "click") : ce(e, "click"); 29464 }); 29465 }; 29466 n(573); 29467 class de { 29468 constructor(e = "[data-geocode]", t) { 29469 this.selector = e, this.input = null, this.geolocationSettings = { 29470 maximumAge: 5e4, 29471 timeout: 2e4, 29472 enableHighAccuracy: !0 29473 }, this.options = { 29474 useOSMGeocoder: !0, 29475 osmZoom: 18, 29476 useGoogleGeocoder: !1, 29477 googleKey: -1 !== window.location.origin.indexOf("stratis.fr") || -1 !== window.location.origin.indexOf("localhost") ? "AIzaSyC6c3QpD7OJ-cREM-y8rDDzKCSQXbk5PS4" : null 29478 }, t instanceof Object && (this.options = u.extendDefaults(this.options, t)), this.checkBeforeInit(); 29479 } 29480 checkBeforeInit() { 29481 if ("string" == typeof this.selector) { 29482 [].slice.call(document.querySelectorAll(this.selector)).forEach(e => { 29483 new de(e); 29484 }); 29485 } else { 29486 if (!(this.selector instanceof Element)) throw new Error(this.selector + " should be a DOM Object or string"); 29487 this.init(); 29488 } 29489 } 29490 init() { 29491 this.input = this.selector.parentNode.querySelector("[data-geocode-field]"), this.geocodeButtonHandler(); 29492 } 29493 tryGeolocation() { 29494 navigator.geolocation ? navigator.geolocation.getCurrentPosition(this.handleSuccess.bind(this), this.handleError.bind(this), this.geolocationSettings) : alert("Votre navigateur ne prend pas en charge la géolocalisation. Veuillez le mettre à jour ou utiliser un navigateur plus récent."); 29495 } 29496 getGeolocationAddress(e) { 29497 if (this.options.useGoogleGeocoder) { 29498 if (null === this.options.googleKey) throw new Error("Your google API key is invali
29498d"); 29499 fetch(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${e.lat},${e.lng}&key=${this.options.googleKey}`, { 29500 method: "GET" 29501 }).then(e => { 29502 if (e.status >= 200 && e.status < 300) return e.text(); 29503 throw new Error(e.statusText); 29504 }).then(e => { 29505 const t = JSON.parse(e); 29506 if ("OK" !== t.status || !t.results.length) throw new Error(t.error_message); 29507 return t.results[0]; 29508 }).then(e => { 29509 if (null === this.input) throw new Error("Can't find input with [data-geocode-field] parameter, it shoud be in one wrapper with data-geocode button"); 29510 this.input.value = e.formatted_address; 29511 }); 29512 } 29513 this.options.useOSMGeocoder && fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${e.lat}&lon=${e.lng}&zoom=${this.options.osmZoom}&addressdetails=1`, { 29514 method: "GET" 29515 }).then(e => { 29516 if (e.status >= 200 && e.status < 300) return e.json(); 29517 throw new Error(e.statusText || "Invalid query URL"); 29518 }).then(e => { 29519 if (null === this.input) throw new Error("Can't find input with [data-geocode-field] parameter, it shoud be in one wrapper with data-geocode button"); 29520 this.input.value = e.display_name; 29521 }); 29522 } 29523 handleSuccess(e) { 29524 this.getGeolocationAddress({ 29525 lat: e.coords.latitude, 29526 lng: e.coords.longitude 29527 }); 29528 } 29529 handleError(e) { 29530 switch (e.code) { 29531 case e.TIMEOUT: 29532 alert("Votre géolocalisation prend trop de temps. Veuillez recommencer ultérieurement."); 29533 break; 29534 29535 case e.POSITION_UNAVAILABLE: 29536 alert("La géolocalisation n'est pas disponible sur votre navigateur. Rechargez la page et autorisez la géolocalisation lorsqu'elle vous sera demandées."); 29537 break; 29538 29539 default: 29540 console.warn(`ERROR(${e.code}): ${e.message}`); 29541 } 29542 } 29543 geocodeButtonHandler() { 29544 this.selector.addEventListener("click", this.tryGeolocation.bind(this)); 29545 } 29546 } 29547 class he { 29548 constructor(e, t = null) { 29549 this.selector = e, this.config = { 29550 search: null, 29551 searchButton: null, 29552 item: null 29553 }, t instanceof Object && (this.config = u.extendDefaults(this.config, t)), this.config.search && this.config.searchButton && this.config.item ? (this.button = document.querySelector(this.config.searchButton), 29554 this.items = document.querySelectorAll(this.config.item), this.checkBeforeInit()) : console.log("Not all config are filled in this object"); 29555 } 29556 checkBeforeInit() { 29557 if ("string" != typeof this.selector) return null !== this.selector && this.init(); 29558 if ("string" == typeof this.selector) { 29559 const e = document.querySelectorAll(this.selector); 29560 if (null === e) return; 29561 for (let t = 0; t < e.length; t++) { 29562 new he(e[t], this.config); 29563 } 29564 } 29565 } 29566 init() { 29567 const e = []; 29568 this.button && (this.button.addEventListener("click", t => { 29569 t.preventDefault(); 29570 let n = 0; 29571 for (let t = 0; t < this.config.search.length; t++) { 29572 const n = document.querySelector(this.config.search[t]); 29573 e[t] = n; 29574 } 29575 for (let t = 0; t < this.items.length; t++) { 29576 const i = Array.from(this.items[t].querySelectorAll(".js-terme"), e => e.textContent.toUpperCase()); 29577 e[0].value.length > 0 && e[1].value.length > 0 ? void 0 !== i[0] && i[0].indexOf(e[0].value.toUpperCase()) >= 0 && (void 0 !== i[1] && i[1].indexOf(e[1].value.toUpperCase()) >= 0 || void 0 !== i[2] && i[2].indexOf(e[1].value.toUpperCase()) >= 0 || void 0 !== i[3] && i[3].indexOf(e[1].value.toUpperCase()) >= 0 || "0" === e[1].value) ? (this.showElement(this.items[t]), 29578 n += 1) : this.hideElement(this.items[t]) : 0 === e[0].value.length && e[1].value.length > 0 ? void 0 !== i[1] && i[1].indexOf(e[1].value.toUpperCase()) >= 0 || void 0 !== i[2] && i[2].indexOf(e[1].value.toUpperCase()) >= 0 || void 0 !== i[3] && i[3].indexOf(e[1].value.toUpperCase()) >= 0 || "0" === e[1].value ? (this.showElement(this.items[t]), 29579 n += 1) : this.hideElement(this.items[t]) : e[0].value.length > 0 && 0 === e[1].value.length ? void 0 !== i[0] && i[0].indexOf(e[0].value.toUpperCase()) >= 0 ? (this.showElement(this.items[t]), 29580 n += 1) : this.hideElement(this.items[t]) : 0 === e[0].value.length && 0 === e[1].value.length && (this.showElement(this.items[t]), 29581 n += 1); 29582 } 29583 this.updateListResults(n); 29584 }), this.initlistResults()); 29585 } 29586 hideElement(e) { 29587 e.classList.add("-hide"); 29588 } 29589 showElement(e) { 29590 e.classList.remove("-hide"); 29591 } 29592 results(e) { 29593 let t = ""; 29594 return e > 1 && (t = "s"), 0 === e ? "" + re.a.noResult : `${re.a.displaying} ${e} ${re.a.result}${t} ${re.a.of} ${this.items.length}`; 29595 } 29596 initlistResults() { 29597 const e = this.selector.querySelector(".js-number-articles"), t = this.items.length; 29598 if (!e) { 29599 const e = this.selector, n = e.parentNode, i = document.createElement("p"); 29600 u.addClass(i, [ "js-number-articles", "number-articles" ]), i.setAttribute("aria-live", "polite"), 29601 n.insertBefore(i, e), document.querySelector(".js-number-articles").innerHTML = this.results(t); 29602 } 29603 } 29604 updateListResults(e) { 29605 document.querySelector(".js-number-articles").innerHTML = this.results(e), this.noResults(); 29606 } 29607 noResults() { 29608 const e = this.selector.querySelectorAll(".contact .title"); 29609 for (let t = 0; t < e.length; t++) { 29610 const n = e[t]; 29611 for (let e = 0; e < n.nextElementSibling.children.length; e++) { 29612 if (!n.nextElementSibling.children[e].classList.contains("-hide")) { 29613 n.classList.remove("-hide"); 29614 break; 29615 } 29616 n.classList.add("-hide"); 29617 } 29618 } 29619 } 29620 } 29621 class fe { 29622 constructor() { 29623 this.carousels = new p.a(".js-swiper-break", { 29624 init: !1, 29625 simulateTouch: !0, 29626 loop: !1, 29627 slidesPerView: "auto", 29628 autoplay: !1, 29629 spaceBetween: 20, 29630 speed: 500, 29631 a11y: { 29632 enabled: !1 29633 }, 29634 pagination: { 29635 type: "bullets", 29636 bulletElement: "li", 29637 clickable: !0, 29638 bulletClass: "swiper-pagination__bullet", 29639 bulletActiveClass: "-is-active", 29640 renderBullet: (e, t) => `\n <li class="${t}" role="presentation">\n <button class="swiper-pagination__bullet-btn" role="tab" aria-selected="false">
29640\n <span class="ghost">${e + 1}</span>\n </button>\n </li>\n ` 29641 } 29642 }), this.init(); 29643 } 29644 setCarouselWraps(e) { 29645 const t = e.el; 29646 let n; 29647 for (let e = 0; e < t.children.length; e++) u.hasClass(t.children[e], "swiper-wrapper") && (n = t.children[e]); 29648 const i = n.children, r = t.parentNode.querySelectorAll("button.-prev, button.-next"); 29649 u.addClass(t, "swiper-container"); 29650 for (let e = 0; e < i.length; e++) u.addClass(i[e], "swiper-slide"); 29651 for (let e = 0; e < r.length; e++) u.addClass(r[e], "js-swiper-control"); 29652 } 29653 setControlsDisplay(e, t) { 29654 const n = e.el.parentNode.querySelectorAll(".js-swiper-control"); 29655 for (let e = 0; e < n.length; e++) { 29656 t ? u.addClass(n[e], "-is-hidden") : u.removeClass(n[e], "-is-hidden"); 29657 } 29658 } 29659 setControlsState(e, t) { 29660 const n = e.navigation.prevEl, i = e.navigation.nextEl, r = e && e.$wrapperEl[0] && e.$wrapperEl[0].parentElement && e.$wrapperEl[0].parentElement.parentElement; 29661 n && i && ("begin" === t && (n.setAttribute("disabled", !0), i.removeAttribute("disabled"), 29662 u.addClass(r, "-decor-next"), u.removeClass(r, "-decor-prev")), "end" === t && (i.setAttribute("disabled", !0), 29663 n.removeAttribute("disabled"), u.addClass(r, "-decor-prev"), u.removeClass(r, "-decor-next")), 29664 "edge" === t && (i.removeAttribute("disabled"), n.removeAttribute("disabled"), u.addClass(r, "-decor-next"), 29665 u.addClass(r, "-decor-prev"))), r && ("begin" === t && (u.addClass(r, "-decor-next"), 29666 u.removeClass(r, "-decor-prev")), "end" === t && (u.addClass(r, "-decor-prev"), 29667 u.removeClass(r, "-decor-next")), "edge" === t && (u.addClass(r, "-decor-next"), 29668 u.addClass(r, "-decor-prev"))); 29669 } 29670 setNavigation(e) { 29671 let t, n; 29672 "true" === e.el.dataset.outsideNavigation ? (t = e.el.parentNode.querySelector("button.-next"), 29673 n = e.el.parentNode.querySelector("button.-prev")) : (t = e.el.querySelector("button.-next"), 29674 n = e.el.querySelector("button.-prev")), e.params.navigation.nextEl = t, e.params.navigation.prevEl = n; 29675 } 29676 setBulletsAccessibility(e) { 29677 const t = e.el.parentNode.querySelector(".swiper-pagination"), n = t.querySelectorAll(".swiper-pagination__bullet .swiper-pagination__bullet-btn"), i = t.querySelector(".swiper-pagination__bullet.-is-active .swiper-pagination__bullet-btn"); 29678 if (null !== n) { 29679 for (let e = 0; e < n.length; e++) n[e].setAttribute("aria-selected", !1), n[e].setAttribute("tabindex", -1); 29680 null !== i && (i.setAttribute("aria-selected", !0), i.setAttribute("tabindex", 0)); 29681 } 29682 } 29683 setBulletEvent(e) { 29684 e.addEventListener("keydown", e => { 29685 const t = e.target.parentNode, n = t.parentNode.firstElementChild, i = t.parentNode.lastElementChild; 29686 e.ctrlKey || e.shiftKey || 9 === e.keyCode || (37 === e.keyCode || 38 === e.keyCode ? t === n ? (i.click(), 29687 setTimeout(() => { 29688 i.querySelector("button").focus(); 29689 }, 0)) : (t.previousElementSibling.click(), setTimeout(() => { 29690 t.previousElementSibling.querySelector("button").focus(); 29691 }, 0)) : 39 === e.keyCode || 40 === e.keyCode ? t === i ? (n.click(), setTimeout(() => { 29692 n.querySelector("button").focus(); 29693 }, 0)) : (t.nextElementSibling.click(), setTimeout(() => { 29694 t.nextElementSibling.querySelector("button").focus(); 29695 }, 0)) : 36 === e.keyCode ? (n.click(), setTimeout(() => { 29696 n.querySelector("button").focus(); 29697 }, 0)) : 35 === e.keyCode && (i.click(), setTimeout(() => { 29698 i.querySelector("button").focus(); 29699 }, 0)), e.preventDefault()); 29700 }); 29701 } 29702 setBreakpoints(e) { 29703 const t = e.el.dataset, n = {}; 29704 let i, r; 29705 for (const o in t) if (o) { 29706 if ("autoplay" === o && ("false" === t[o] ? e.params.autoplay = !1 : (e.params.autoplay.enabled = !0, 29707 e.params.autoplay.delay = isNaN(Number(t[o])) ? 0 : Number(t[o]))), "perView" === o && (e.params.slidesPerView = "auto"), 29708 "loop" === o && (e.params.loop = "false" !== t[o]), "items" === o && (i = t[o].split(", ")), 29709 "slideByOne" === o && (r = !0 === t[o]), "pagination" === o) { 29710 let n; 29711 n = "outside" === t[o] ? e.el.parentNode.querySelector(".swiper-pagination") : e.el.querySelector(".swiper-pagination"), 29712 null !== n && (e.params.pagination.el = n, e.pagination.render(), setTimeout(() => { 29713 const t = [].slice.call(n.querySelectorAll(".swiper-pagination__bullet")); 29714 this.setBulletsAccessibility(e), t.forEach(e => this.setBulletEvent(e)); 29715 }, 100)); 29716 } 29717 if (void 0 === i) u.hasClass(e.wrapperEl, "albums-block") ? n[1279] = { 29718 spaceBetween: 0 29719 } : n[767] = { 29720 spaceBetween: 20 29721 }; else switch (i.length) { 29722 case 1: 29723 n[1980] = { 29724 slidesPerView: i[0], 29725 slidesPerGroup: void 0 === r ? i[0] : 1 29726 }; 29727 break; 29728 29729 case 2: 29730 n[1279] = { 29731 slidesPerView: i[1], 29732 slidesPerGroup: void 0 === r ? i[1] : 1 29733 }, n[1980] = { 29734 slidesPerView: i[0], 29735 slidesPerGroup: void 0 === r ? i[0] : 1 29736 }; 29737 break; 29738 29739 case 3: 29740 n[767] = { 29741 slidesPerView: i[2], 29742 slidesPerGroup: void 0 === r ? i[2] : 1 29743 }, n[1279] = { 29744 slidesPerView: i[1], 29745 slidesPerGroup: void 0 === r ? i[1] : 1 29746 }, n[1980] = { 29747 slidesPerView: i[0], 29748 slidesPerGroup: void 0 === r ? i[0] : 1 29749 }; 29750 break; 29751 29752 default: 29753 n[1980] = { 29754 slidesPerView: 1, 29755 slidesPerGroup: 1 29756 }; 29757 } 29758 } 29759 return n; 29760 } 29761 setSlidesAccessibility(e, t) { 29762 const n = e.el.querySelectorAll(".swiper-slide"), i = e.params.breakpoints, r = window.innerWidth, o = e.params.loop; 29763 let s = e.el.querySelector(`.swiper-slide-active[data-swiper-slide-index="${t}"]`), a = !0; 29764 null === s && o && (s = e.el.querySelector('.swiper-slide-active[data-swiper-slide-index="0"]')); 29765 for (const e in i) if (r <= Number(e) && n.length > i[e].slidesPerView && a) { 29766 a = !1; 29767 for (let e = 0; e < n.length; e++) n[e].setAttribute("aria-hidden", !0), u.setTabindex(n[e], -1); 29768 const r = i[e].slidesPerView; 29769 for (let e = 0; e < r; e++) if (o) { 29770 const t = [].slice.call(n), i = t.indexOf(s); 29771 s.setAttribute("aria-hidden", !1), t[i + e].setAttribute("aria-hidden", !1), u.setTabindex(s, 0), 29772 u.setTabindex(t[i + e], 0); 29773 } else n[t].setAttribute("aria-hidden", !1), n[t + e].setAttribute("aria-hidden", !1), 29774 u.setTabindex(n[t], 0), u.setTabindex(n[t + e], 0); 29775 } 29776 } 29777 manageAutoplayState(e, t) { 29778 const n = e.el.parentNode.querySelector(".swiper-actions"), i = n.querySelector(".js-swiper-play"), r = n.querySelector(".js-swiper-pause"); 29779 i.setAttribute("aria-hidden", !0), r.setAttribute("aria-hidden", !0), u.removeClass(r, "-is-active"), 29780 u.removeClass(i, "-is-active"), t ? (r.setAttribute("aria-hidden", !1), u.addClass(r, "-is-active")) : (i.setAttribute("aria-hidden", !1), 29781 u.addClass(i, "-is-active")); 29782 } 29783 checkCarouselBeforeInit(e, t) { 29784 if (window.innerWidth <= 1279) { 29785 this.setControlsDisplay(e, !0), this.setSlidesAccessibility(e, e.realIndex), this.setCarouselWraps(e),
29786 e.init(), e.destroyed = !1; 29787 for (const n in t) n && (this.setControlsDisplay(e, !1), this.setControlsState(e, e.isBeginning ? "begin" : "edge")); 29788 const n = e.el.querySelectorAll(".swiper-slide"); 29789 let i = 0, r = 0; 29790 n.forEach(e => { 29791 r = e.parentNode.offsetWidth, i += e.offsetWidth + 10; 29792 }), i < r && this.destroy(e); 29793 } else this.destroy(e); 29794 } 29795 init() { 29796 [].concat(this.carousels || []).filter(e => !!e.el).forEach(e => { 29797 e.params.breakpoints = this.setBreakpoints(e), this.setNavigation(e), e.on("init", () => { 29798 this.setSlidesAccessibility(e, e.realIndex), this.setControlsState(e); 29799 }), e.on("reachBeginning", () => { 29800 this.setControlsState(e, "begin"); 29801 }), e.on("reachEnd", () => { 29802 this.setControlsState(e, "end"); 29803 }), e.on("fromEdge", () => { 29804 this.setControlsState(e, "edge"); 29805 }), this.checkCarouselBeforeInit(e, this.setBreakpoints(e)), window.addEventListener("resize", () => { 29806 this.checkCarouselBeforeInit(e, this.setBreakpoints(e)); 29807 }); 29808 }); 29809 } 29810 destroy(e) { 29811 if (e.initialized && !e.destroyed) { 29812 const t = e.$el[0].querySelectorAll(".swiper-slide"); 29813 e.destroy(!1, !0), [].forEach.call(t, e => { 29814 u.removeClass(e, "swiper-slide"); 29815 }); 29816 } 29817 } 29818 } 29819 function pe() { 29820 const e = document.querySelector(".location"); 29821 if (!e) return; 29822 const t = e.querySelector(".location__map"), n = Array.prototype.slice.call(e.querySelectorAll(".location__map-region")), i = e.querySelector(".tooltip-map"), r = e => { 29823 let n; 29824 n = "focus" === e.type ? ((e, t) => { 29825 const n = e.getBoundingClientRect(), i = t.target.getBoundingClientRect(); 29826 return { 29827 top: i.top - n.top + (i.bottom - i.top) / 2, 29828 left: i.left - n.left + (i.right - i.left) / 2 29829 }; 29830 })(t, e) : ((e, t) => { 29831 const n = e.getBoundingClientRect(); 29832 return { 29833 top: t.pageY - (n.top + (window.scrollY || window.pageYOffset)), 29834 left: t.pageX - (n.left + (window.scrollX || window.pageXOffset)) 29835 }; 29836 })(t, e); 29837 const r = n.left, o = n.top; 29838 i.style.top = Math.floor(o) - 25 + "px", i.style.left = Math.floor(r) + "px"; 29839 }, o = (e, t = !1) => { 29840 const n = t || e.target; 29841 path && (i.innerHTML = n.getAttribute("aria-label"), r(e)); 29842 }; 29843 n.forEach(t => { 29844 t.addEventListener("mousemove", u.debounce(r, 10)), t.addEventListener("mouseenter", e => { 29845 e.target.getAttribute("data-area-id"); 29846 i.style.display = "block", o(e); 29847 }), t.addEventListener("mouseleave", () => { 29848 i.style.display = "none"; 29849 }), t.addEventListener("focus", t => { 29850 u.addClass(e, "focus"), i.style.display = "block", o(t); 29851 }), t.addEventListener("blur", () => { 29852 u.removeClass(e, "focus"), i.style.display = "none"; 29853 }); 29854 }); 29855 } 29856 n(160), n(605), n(606), n(607), n(608); 29857 class me { 29858 constructor() { 29859 window.db || (window.db = {}); 29860 } 29861 static save(e, t) { 29862 t.setProp("dbCollection", e), window.db[e] ? window.db[e].push(t) : window.db[e] = [ t ]; 29863 } 29864 static get(e, t = null) { 29865 if (t) return window.db[t].find(t => t._id === e); 29866 const n = Object.keys(window.db); 29867 for (let t = 0; t < n.length; t++) return window.db[n[t]].find(t => t._id === e); 29868 } 29869 static delete(e, t = null) { 29870 const n = me.get(e, t); 29871 if (n) { 29872 const e = n.getProp("dbCollection"); 29873 window.db[e] = window.db[e].filter(e => e._id !== n._id); 29874 } 29875 } 29876 static clear() { 29877 window.db = {}; 29878 } 29879 } 29880 new me; 29881 var ge = me; 29882 class ve extends class { 29883 constructor(e) { 29884 this.element = e, this._id = Object(u.getUniqId)(), this._created = !1, this.options = {}, 29885 this.element.setAttribute("data-db-id", this._id), ge.save(this.constructor.name, this); 29886 } 29887 setOptions(...e) { 29888 this.options = Object(u.extendDefaults)(this.options, ...e); 29889 } 29890 setProp(e, t) { 29891 this[e] = t; 29892 } 29893 getProp(e) { 29894 return this[e]; 29895 } 29896 delete() { 29897 ge.delete(this._id, this.constructor.name); 29898 } 29899 } { 29900 constructor(e = ".js-fixed-element", t = {}) { 29901 super(e), this.options = { 29902 addPlaceholderElement: !0, 29903 mode: "up", 29904 offset: 0, 29905 stickDelay: 300, 29906 classList: { 29907 onPlaceholderRender: "js-fixed-el-abs", 29908 onScroll: "js-fixed-el", 29909 onScrollUp: "js-fixed-el-up", 29910 onScrollUpHide: "js-fixed-el-up-hide", 29911 onScrollDown: "js-fixed-el-down" 29912 }, 29913 onInit: e => {}, 29914 onScroll: e => {}, 29915 onStick: e => {}, 29916 onUnstick: e => {}, 29917 onResize: e => {} 29918 }, this._placeholder = null, this.lastScrollPosition = 0, this.height = this.element.offsetHeight, 29919 this.fixPoint = window.pageYOffset + this.element.getBoundingClientRect().top, this._onScrollHandler = this._onScroll.bind(this), 29920 this._onResizeHandler = this._onResize.bind(this), t instanceof Object && this.setOptions(t), 29921 this.init(); 29922 } 29923 _onScroll() { 29924 const e = window.pageYOffset, {mode: t, classList: n, onScroll: i, onStick: r, onUnstick: o} = this.options; 29925 if (e >= this.fixPoint) switch (u.removeClass(this.element, n.onPlaceholderRender), 29926 t) { 29927 case "down": 29928 u.addClass(this.element, [ n.onScroll, n.onScrollDown ]), r(this); 29929 break; 29930 29931 case "offset": 29932 case "down-bottom": 29933 u.addClass(this.element, n.onScroll), setTimeout(() => { 29934 u.hasClass(this.element, n.onScroll) && u.addClass(this.element, n.onScrollDown), 29935 r(this); 29936 }, this.options.stickDelay); 29937 break; 29938 29939 case "up": 29940 u.addClass(this.element, n.onScroll), e < this.lastScrollPosition ? (u.removeClass(this.element, n.onScrollUpHide), 29941 u.addClass(this.element, [ n.onScroll, n.onScrollUp ]), r(this)) : (u.hasClass(this.element, n.onScrollUp) && u.addClass(this.element, n.onScrollUpHide), 29942 u.removeClass(this.element, n.onScrollUp)); 29943 break; 29944 29945 default: 29946 u.addClass(this.element, n.onScroll); 29947 } else u.removeClass(this.element, [ n.onScroll, n.onScrollDown, n.onScrollUp ]), 29948 u.addClass(this.element, n.onPlaceholderRender), o(this); 29949 i(this), this.lastScrollPosition = e; 29950 } 29951 _onResize() { 29952 this.height = this.element.offsetHeight, this._placeholder && (this._placeholder.style.height = this.height + "px"), 29953 this.options.onResize(this); 29954 } 29955 _addHandlers() { 29956 window.addEventListener("scroll", this._onScrollHandler), window.addEventListener("resize", this._onResizeHandler); 29957 } 29958 _removeHandlers() { 29959 window.removeEventListener("scroll", this._onScrollHandler), window.removeEventListener("resize", this._onResizeHandler); 29960 } 29961 _addPlaceholderElement() { 29962 const e = document.createElement("div"); 29963 e.style.height = this.height + "px", u.insertAfter(e, this.element), this._placeholder = e, 29964 u.addClass(this.element, this.options.classList.onPlaceholderRender); 29965 } 29966 init() { 29967 "offset" === this.options.mode ? this.fixPoint = this.options.offset : "down-bottom" !== this.options.mode && "up" !== this.options.mode || (this.fixPoint += this.height + this.options.offset), 29968 this.options.addPlaceholderElement && "absolute" !== this.getElementPosition() && "fixed" !== this.getElementPosition() && this._addPlaceholderElement(), 29969 this._addHandlers(), this.options.onInit(this); 29970 } 29971 getElementPosition() { 29972 return getComputedStyle(this.element).position; 29973 } 29974 destroy() { 29975 this._removeHandlers(), this.placeholder && this.placeholder.parentElement.removeChild(this.placeholder); 29976 } 29977 update() { 29978 this.destroy(), this.init(); 29979 } 29980 static create(e, t) { 29981 return class { 29982 static create(e, t, n) { 29983 if ("string" == typeof e) { 29984 const i = [ ...document.querySelectorAll(e) ]; 29985 if (!i.length) return; 29986 return i.map(e => new n(e, t)); 29987 } 29988 } 29989 }.create(e, t, ve); 29990 } 29991 } 29992 new class { 29993 constructor(e = null) { 29994 this.options = { 29995 sizes: { 29996 0: "smartphone", 29997 767: "tablet", 29998 1279: "desktop" 29999 }, 30000 eventName: "responsive" 30001 }, e instanceof Object && (this.options = u.extendDefaults(this.options, e)), this.event = null, 30002 this.init(); 30003 } 30004 init() {
30005 const e = this.getSize(window.innerWidth); 30006 this.IEPolyfill(), this.event = new CustomEvent(this.options.eventName, { 30007 bubbles: !0, 30008 cancelable: !1, 30009 detail: { 30010 [this.options.eventName]: e 30011 } 30012 }), window[this.options.eventName] = e, window.addEventListener("load", this.checkView.bind(this, !0)), 30013 window.addEventListener("resize", u.debounce(this.checkView.bind(this), 50)); 30014 } 30015 getSize(e) { 30016 const t = Object.keys(this.options.sizes).reduce((t, n) => e > n ? n : t); 30017 return this.options.sizes[t]; 30018 } 30019 checkView(e = !1) { 30020 const t = this.getSize(window.innerWidth); 30021 (e || t !== window[this.options.eventName]) && (window[this.options.eventName] = t, 30022 this.event.detail[this.options.eventName] = t, window.dispatchEvent(this.event)); 30023 } 30024 IEPolyfill() { 30025 try { 30026 new CustomEvent("IE has CustomEvent, but doesn't support constructor"); 30027 } catch (e) { 30028 window.CustomEvent = (e, t = { 30029 bubbles: !1, 30030 cancelable: !1, 30031 detail: void 0 30032 }) => { 30033 const n = document.createEvent("CustomEvent"); 30034 return n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n; 30035 }, CustomEvent.prototype = Object.create(window.Event.prototype); 30036 } 30037 } 30038 }; 30039 document.addEventListener("DOMContentLoaded", () => { 30040 r()({ 30041 threshold: .1 30042 }), O(), Y(), I(), l()("img"), A(), function() { 30043 let e = Array.prototype.slice.call(document.querySelectorAll("body a")); 30044 const t = new RegExp("(tel:|mailto:|facebook.com|instagram.com|linkedin.com|youtube.com|twitter.com)"); 30045 e = e.filter(e => !u.hasClass(e, [ "new-window-off", "tooltip-svg", "no-external" ])), 30046 e = e.filter(e => !e.hasAttribute("data-fancybox")); 30047 const n = e => { 30048 const t = e.hasAttribute("rel") && e.getAttribute("rel"); 30049 t ? t.split(" ").indexOf("noopener") < 0 && e.setAttribute("rel", t + " noopener") : e.setAttribute("rel", "noopener"); 30050 }, i = e => { 30051 const t = e.getAttribute("title"), n = e.getAttribute("aria-label"); 30052 let i; 30053 if (t) i = t, e.removeAttribute("title"); else if (n) i = n; else { 30054 const t = []; 30055 Array.prototype.slice.call(e.childNodes).forEach(e => { 30056 if ("IMG" === e.nodeName) t.push(e.alt); else if ("PICTURE" === e.nodeName) { 30057 [].slice.call(e.querySelectorAll("*")).forEach(e => { 30058 "IMG" === e.nodeName && t.push(e.alt); 30059 }); 30060 } else "#text" === e.nodeName ? t.push(e.textContent.trim().toLowerCase()) : "svg" === e.nodeName ? t.push(e.getAttribute("aria-label")) : t.push(e.textContent.trim().toLowerCase()); 30061 }), i = t.join(" "); 30062 } 30063 return i; 30064 }; 30065 document.querySelector(".location__map-figure") || e.forEach(e => { 30066 e.hostname !== location.hostname && "_blank" !== e.getAttribute("target") ? (e.setAttribute("title", `${i(e)} (${l10n.linkExternalLink})`), 30067 u.addClass(e, "link-external"), e.setAttribute("target", "_blank")) : e.hostname !== location.hostname && "_blank" === e.getAttribute("target") ? (e.setAttribute("title", `${i(e)} (${l10n.linkNewWindow} ${l10n.linkExternalLink})`), 30068 n(e), u.addClass(e, "link-external")) : e.hostname === location.hostname && "_blank" === e.getAttribute("target") && (e.setAttribute("title", `${i(e)} (${l10n.linkNewWindow})`), 30069 n(e)), t.test(e.getAttribute("href")) && u.addClass(e, "no-external-icon"); 30070 }); 30071 }(), function() { 30072 const e = document.querySelector(".flash-info"); 30073 if (null === e) return; 30074 const t = e.querySelectorAll(".flash-info__item"); 30075 let n = ""; 30076 for (let e = 0; e < t.length; e++) { 30077 const i = t[e].querySelector(".flash-info__content"); 30078 null !== i && (n += i.textContent.replace(/\n/g, " ").replace(/\s/g, "")); 30079 } 30080 if (n.length < 1) return; 30081 const i = document.querySelector(".flash-info__button.-close"), r = u.generateHash(n), o = document.querySelector(".flash-info__modal"); 30082 if (null !== localStorage.getItem("flash") && Number(localStorage.getItem("flash")) === r || (e.style.display = "block"), 30083 o) { 30084 const t = o.getElementsByTagName("input")[0]; 30085 o.querySelector(".flash-info__modal-btn").addEventListener("click", () => { 30086 document.querySelector(".fancybox-close-small").click(), e.style.display = "none", 30087 t.checked && localStorage.setItem("flash", r); 30088 }); 30089 } else i.addEventListener("click", () => { 30090 e.style.display = "none", localStorage.setItem("flash", r); 30091 }); 30092 }(), P(), Object(S.a)(), E(), Object(S.b)(), function() { 30093 const e = document.querySelector(".site-header"); 30094 if (null === e) return; 30095 const t = e.querySelector(".page-image"); 30096 e.querySelector(".header-bar"), null !== t && u.addClass(e, "-has-image"); 30097 }(), function() { 30098 const e = () => { 30099 T.a.fancybox.defaults.i18n.fr = { 30100 CLOSE: "Fermer", 30101 NEXT: "Suivant", 30102 PREV: "Précédent", 30103 ERROR: "Le contenu demandé ne peut être chargé. <br/> Veuillez réessayer plus tard.", 30104 PLAY_START: "Démarrer le diaporama", 30105 PLAY_STOP: "Pause", 30106 FULL_SCREEN: "Plein écran", 30107 THUMBS: "Vignettes", 30108 DOWNLOAD: "Télécharger", 30109 SHARE: "Partager", 30110 ZOOM: "Zoom" 30111 }, T.a.fancybox.defaults.lang = "fr"; 30112 const e = [ ...document.querySelectorAll("[data-fancybox]") ]; 30113 T()(e).fancybox({ 30114 animationEffect: "zoom", 30115 autoFocus: !0, 30116 backFocus: !0, 30117 trapFocus: !0, 30118 clickOutside: "close", 30119 idleTime: !1, 30120 buttons: [ "thumbs", "close" ], 30121 btnTpl: { 30122 arrowLeft: '\n <button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">\n <div>\n <svg role="img" aria-label="{{PREV}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <title>{{PREV}}</title>\n <path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/>\n </svg>\n </div>\n </button>\n ', 30123 arrowRight: '\n <button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">\n <div>\n <svg role="img" aria-label="{{NEXT}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <title>{{NEXT}}</title>\n <path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/>\n </svg>\n </div>\n </button>\n ', 30124 thumbs: '\n <button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}">\n <svg role="img" aria-label="{{THUMBS}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <title>{{THUMBS}}</title>\n <path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/>\n </svg>\n </button>\n ', 30125 close: '\n <button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">\n <svg role="img" aria-label="{{CLOSE}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <title>
30125{{CLOSE}}</title>\n <path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/>\n </svg>\n </button>\n ' 30126 }, 30127 afterShow(e) { 30128 const t = u.getFocusableElements(e.$refs.toolbar[0], !1); 30129 e.currIndex === e.group.length - 1 && t.length && t[0].focus(); 30130 }, 30131 beforeLoad(e) { 30132 const t = e.$refs.container[0]; 30133 t && t.addEventListener("keydown", u.initFocusTrap.bind(null, t)); 30134 }, 30135 afterLoad(e, t) { 30136 const n = t.opts.alt; 30137 setTimeout(() => { 30138 void 0 !== t.$iframe && e.$trigger[0] && e.$trigger[0].hasAttribute("data-title") && t.$iframe[0].setAttribute("title", e.$trigger[0].getAttribute("data-title")), 30139 t.$image && t.$image.attr && (n ? t.$image.attr("alt", n) : t.$image.attr("alt", "")); 30140 }, 500); 30141 } 30142 }); 30143 const t = [ ...document.querySelectorAll(".gallery__list") ]; 30144 t.length && t.forEach(e => { 30145 e.setAttribute("data-items", e.children.length); 30146 }); 30147 }; 30148 tarteaucitron ? document.addEventListener("fancybox_added", () => { 30149 e(); 30150 }) : e(); 30151 }(), j(".chart"), function(e = {}) { 30152 const t = u.extendDefaults(w, e); 30153 [ ...document.querySelectorAll(t.selectors.formSelector) ].forEach(e => { 30154 if (u.hasClass(e, "-is-float-label-initialized")) return; 30155 u.addClass([ e ], "-is-float-label-initialized"); 30156 const n = [ ...e.querySelectorAll(t.selectors.fieldSelector) ], i = e => { 30157 const n = e.target; 30158 (e => "SELECT" === e.nodeName ? e.value !== e.options[0].value : e.value)(n) ? u.addClassToSingleEl(n, t.classList.activeClass) : (u.removeClassFromSingleEl(n, t.classList.activeClass), 30159 "SELECT" === n.nodeName && document.activeElement !== n && (n.options[0].text = "")); 30160 }; 30161 e.addEventListener("input", i.bind(this)), e.addEventListener("change", i.bind(this)); 30162 n.filter(e => "SELECT" === e.nodeName).forEach(e => { 30163 const t = e.options[0], n = { 30164 text: t.text, 30165 value: t.value 30166 }; 30167 t.text = "", e.addEventListener("focus", e => { 30168 t.text = n.text; 30169 }), e.addEventListener("blur", i => { 30170 e.value === n.value && (t.text = ""); 30171 }); 30172 }), n.forEach(e => { 30173 const n = e.parentElement.querySelector(t.selectors.labelsSelector); 30174 u.addClass(n, t.classList.labelClass), i({ 30175 target: e 30176 }); 30177 }), e.addEventListener("submit", e => { 30178 n.forEach(e => { 30179 e.dispatchEvent(new Event("input", { 30180 bubbles: !0 30181 })); 30182 }); 30183 }); 30184 }); 30185 }(), pe(), Object(G.a)(), c(window), Object(U.a)(), V(), ne(), ue(), function() { 30186 const e = [].slice.call(document.querySelectorAll("[data-toggle-icon]")), t = [].slice.call(document.querySelectorAll("[data-toggle-text]")); 30187 null !== e && e.forEach(e => { 30188 const t = e.className, n = e.getAttribute("data-toggle-class"); 30189 n && u.hasClass(e, n) && (e.innerText = e.getAttribute("data-toggle-icon"), e.setAttribute("data-toggle-icon", t)), 30190 e.addEventListener("click", () => { 30191 const t = e.className; 30192 e.className = e.getAttribute("data-toggle-icon"), e.setAttribute("data-toggle-icon", t); 30193 }); 30194 }), null !== t && t.forEach(e => { 30195 const t = e.innerText, n = e.getAttribute("data-toggle-class"); 30196 n && u.hasClass(e, n) && (e.innerText = e.getAttribute("data-toggle-text"), e.setAttribute("data-toggle-text", t)), 30197 e.addEventListener("click", () => { 30198 const t = e.innerText; 30199 e.innerText = e.getAttribute("data-toggle-text"), e.setAttribute("data-toggle-text", t); 30200 }); 30201 }); 30202 }(), function() { 30203 if (null === document.querySelector(".alire__container")) return; 30204 [ ...document.querySelectorAll(".alire__carousel") ].forEach(e => {
30205 const t = u.findAncestor(e, "alire"); 30206 if (t) { 30207 const n = t.querySelector(".alire__control.-next"), i = t.querySelector(".alire__control.-prev"); 30208 if (u.hasClass(t, "-coverflow-left")) { 30209 new p.a(e, { 30210 effect: "coverflow", 30211 grabCursor: !0, 30212 centeredSlides: !0, 30213 slidesPerView: "auto", 30214 loop: !0, 30215 simulateTouch: !0, 30216 coverflowEffect: { 30217 rotate: 16, 30218 stretch: 30, 30219 depth: 200, 30220 modifier: 1, 30221 slideShadows: !1 30222 }, 30223 navigation: { 30224 nextEl: n, 30225 prevEl: i 30226 }, 30227 breakpoints: { 30228 1279: { 30229 slidesPerView: 1, 30230 coverflowEffect: { 30231 rotate: 0, 30232 stretch: 0, 30233 depth: 0 30234 } 30235 } 30236 } 30237 }); 30238 } else if (u.hasClass(t, "-coverflow-right")) { 30239 const r = new p.a(e, { 30240 init: !1, 30241 effect: "coverflow", 30242 grabCursor: !0, 30243 centeredSlides: !0, 30244 slidesPerView: "auto", 30245 loop: !0, 30246 simulateTouch: !0, 30247 coverflowEffect: { 30248 rotate: 0, 30249 stretch: 220, 30250 depth: 150, 30251 modifier: 1, 30252 slideShadows: !1 30253 }, 30254 navigation: { 30255 nextEl: n, 30256 prevEl: i 30257 }, 30258 breakpoints: { 30259 1279: { 30260 coverflowEffect: { 30261 rotate: 0, 30262 stretch: 120, 30263 depth: 100 30264 } 30265 }, 30266 767: { 30267 coverflowEffect: { 30268 rotate: 0, 30269 stretch: 0, 30270 depth: 0 30271 } 30272 } 30273 } 30274 }), o = () => { 30275 const e = [ ...t.querySelectorAll(".publications__image img") ], n = r.activeIndex - 1; 30276 if (e) { 30277 let e = 1; 30278 for (let t = n; t >= 0; t--) window.innerWidth > 1279 ? r.slides[t].getElementsByTagName("img")[0].style.top = -30 * e + "px" : window.innerWidth < 1279 && window.innerWidth > 767 ? r.slides[t].getElementsByTagName("img")[0].style.top = -15 * e + "px" : r.slides[t].getElementsByTagName("img")[0].style.top = "0", 30279 e += 1; 30280 } 30281 }; 30282 [ "init", "slideNextTransitionStart", "slidePrevTransitionStart", "slideChange" ].forEach(e => { 30283 r.on(e, () => { 30284 o(); 30285 }); 30286 }), r.init(), window.addEventListener("resize", () => { 30287 o(); 30288 }); 30289 } else { 30290 new p.a(e, { 30291 effect: "coverflow", 30292 grabCursor: !0, 30293 centeredSlides: !0, 30294 slidesPerView: "auto", 30295 loop: !0, 30296 simulateTouch: !0, 30297 coverflowEffect: { 30298 rotate: 27, 30299 stretch: 70, 30300 depth: 230, 30301 modifier: 1, 30302 slideShadows: !1 30303 }, 30304 navigation: { 30305 nextEl: n, 30306 prevEl: i 30307 }, 30308 breakpoints: { 30309 767: { 30310 slidesPerView: 1, 30311 coverflowEffect: { 30312 rotate: 0, 30313 stretch: 0, 30314 depth: 0 30315 } 30316 } 30317 } 30318 }); 30319 } 30320 const r = t.querySelectorAll(".alire__control"); 30321 if (u.hasClass(e, "swiper-container-horizontal")) for (let e = 0; e < r.length; e++) r[e].style.display = "block"; 30322 } 30323 }); 30324 }(), s.a.polyfill(), function() { 30325 if (null === document.querySelector(".projects__focus-video")) return; 30326 const e = document.querySelector(".projects__focus-video video"), t = document.querySelector(".projects__focus-actions"), n = t.querySelector(".projects__focus-action.-play"), i = t.querySelector(".projects__focus-action.-pause"); 30327 e.addEventListener("ended", () => { 30328 e.play(); 30329 }); 30330 const r = e => { 30331 n.setAttribute("aria-hidden", !0), i.setAttribute("aria-hidden", !0), u.removeClass(i, "-is-active"), 30332 u.removeClass(n, "-is-active"), e ? (i.setAttribute("aria-hidden", !1), u.addClass(i, "-is-active")) : (n.setAttribute("aria-hidden", !1), 30333 u.addClass(n, "-is-active")); 30334 }; 30335 r(!0), n.addEventListener("click", () => { 30336 e.play(), r(!1); 30337 }), i.addEventListener("click", () => { 30338 e.pause(), r(!0); 30339 }); 30340 }(); 30341 new de, new he(".contact-elected", { 30342 search: [ "#keyword1", "#select1" ], 30343 searchButton: ".filters__buttons .filters__button.-submit", 30344 item: ".contact__item" 30345 }); 30346 window.addEventListener("openPopup", () => { 30347 new g.a(".click-roll", { 30348 wrapperClass: "click-roll", 30349 dropdownClass: "click-roll__block", 30350 btnClass: "click-roll__toggle", 30351 closeOnOutsideClick: !1, 30352 openTypeSlide: !0, 30353 isWrapContent: !0 30354 }); 30355 }), document.createElement("picture"); 30356 new g.a, new x(".mnv-menu", { 30357 menu: { 30358 type: "aside" 30359 }, 30360 rebuildMenu: [ { 30361 breakpoints: [ "smartphone", "tablet" ], 30362 selector: ".header-bar__service", 30363 callback: (e, t) => u.insertAfter(e, t.children[1]) 30364 }, { 30365 breakpoints: [ "smartphone", "tablet" ], 30366 selector: ".infobar__service", 30367 callback: (e, t) => u.insertAfter(e, t.children[1]) 30368 }, { 30369 breakpoints: [ "smartphone" ], 30370 selector: ".header-bar__links", 30371 callback: (e, t) => u.insertAfter(e, t.children[1]) 30372 }, { 30373 breakpoints: [ "smartphone", "tablet" ], 30374 selector: ".infobar__air-wrap", 30375 callback: (e, t) => u.insertAfter(e, t.children[1]) 30376 }, { 30377 breakpoints: [ "smartphone", "tablet" ], 30378 selector: ".infobar__lang-wrap", 30379 callback: (e, t) => u.insertAfter(e, t.querySelector(".mnv-menu__close")) 30380 }, { 30381 breakpoints: [ "smartphone", "tablet" ], 30382 selector: ".header-bar__socials-wrap", 30383 callback: (e, t) => u.insertAfter(e, t.querySelector(".mnv-menu__close")) 30384 } ] 30385 }), ve.create(".header:not(.-map) .header-bar", { 30386 onScroll: () => { 30387 Object.values(window.dropdownList).forEach(e => { 30388 if (e.selector) { 30389 const t = document.querySelector(".header-bar"); 30390 t && t.contains(e.selector) && u.hasClass(e.selector, "-is-open") && e.close(); 30391 } 30392 }); 30393 } 30394 }), new L(".js-direction"), document.querySelector(".search-form"); 30395 const e = e => { 30396 const t = u.hasClass(e.target.parentElement, "search-form__input") ? e.target.parentElement : e.target.parentElement.parentElement; 30397 u[e.target.value ? "addClass" : "removeClass"](t, "-has-value"), u[e.target === document.activeElement ? "addClass" : "removeClass"](t, "-is-focused"); 30398 }; 30399 [ ...document.querySelectorAll(".has-placeholder") ].forEach(t => {
30400 [ "blur", "focus", "change" ].forEach(n => t.addEventListener(n, e)), t.value = ""; 30401 }); 30402 new g.a(".checkbox-dropdown", { 30403 wrapperClass: "checkbox-dropdown", 30404 dropdownClass: "checkbox-dropdown__block", 30405 btnClass: "checkbox-dropdown__toggle", 30406 closeOnOutsideClick: !1, 30407 focusTrap: !1, 30408 onInit(e) {}, 30409 afterOpen(e) {} 30410 }); 30411 [ ...document.querySelectorAll("[data-sd-content]") ].forEach(e => { 30412 const t = e.dataset.sdContent, n = [ ...document.querySelectorAll(`[data-sd-trigger="${t}"]`) ], i = n.length > 0 && new R.a(e); 30413 i && n.forEach(e => { 30414 const t = e.getAttribute("data-sd-action") || "toggle"; 30415 e.addEventListener("click", () => u.executeIfFunction(i[t].bind(i))); 30416 }); 30417 }); 30418 [].slice.call(document.querySelectorAll("[data-add-ancestor]")).forEach(e => { 30419 const [t, n] = e.getAttribute("data-add-ancestor").split(",", 2), i = u.findAncestor(e, t); 30420 i && u.addClass(i, n); 30421 }); 30422 [].slice.call(document.querySelectorAll("[data-remove-section]")).forEach(e => { 30423 const t = e.getAttribute("data-remove-section"), n = u.findAncestor(e, t); 30424 n && n.parentNode.removeChild(n); 30425 }); 30426 new B(".tabs", { 30427 onlyState: "tabs", 30428 titleSelector: ".tabs__title", 30429 onInit: () => { 30430 ne(); 30431 } 30432 }); 30433 const t = document.querySelector(".comments-button"), n = document.querySelector(".comments"); 30434 t && !n && (t.style.display = "none"); 30435 }), window.addEventListener("load", () => { 30436 !function() { 30437 const e = document.getElementById("preloader"); 30438 null !== e && setTimeout(() => { 30439 u.addClass(e, "-is-hidden"), e.setAttribute("aria-hidden", !0); 30440 }, 500); 30441 }(), Object(d.a)(), m(), window.addEventListener("resize", () => { 30442 m(); 30443 }); 30444 new _, new fe; 30445 $.fancybox.defaults.beforeLoad = e => { 30446 "iframe" === e.current.type && e.current.opts.$orig[0].hasAttribute("title") && (e.current.opts.iframe.attr.title = e.current.opts.$orig[0].getAttribute("title")); 30447 }, window.addEventListener("responsive", () => { 30448 console.log("current breakpoint: ", window.responsive); 30449 }); 30450 new g.a(".click-roll", { 30451 wrapperClass: "click-roll", 30452 dropdownClass: "click-roll__block", 30453 btnClass: "click-roll__toggle", 30454 closeOnOutsideClick: !1, 30455 openTypeSlide: !0, 30456 isWrapContent: !0, 30457 clickRoll: !0 30458 }), new h(".message"); 30459 [ ...window.dropdownList ].forEach(e => { 30460 e.toggler && u.hasClass(e.toggler.parentElement, "-is-open") && e.open(); 30461 }); 30462 const e = document.querySelector(".comments-button"), t = document.querySelector(".comments"); 30463 e && t && e.addEventListener("click", t => { 30464 t.preventDefault(); 30465 const n = e.getAttribute("href").substr(1); 30466 document.getElementById(n).scrollIntoView({ 30467 behavior: "smooth", 30468 block: "start" 30469 }); 30470 }); 30471 const n = document.querySelector(".hero-single:not(.-has-video)"); 30472 if (n) { 30473 const e = n.querySelectorAll(".hero-single__wrapper"); 30474 if ([ ...e ].length) { 30475 const t = Math.round(Math.random() * ([ ...e ].length - 1)); 30476 u.removeClass([ ...e ][t], "is-hidden"); 30477 } 30478 } 30479 }); 30480 } ]); 30481}));})(jQuery, Drupal, drupalSettings);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.