1!(function (t, e) { 2 "object" == typeof exports && "object" == typeof module ? (module.exports = e()) : "function" == typeof define && define.amd ? define("material-components-web", [], e) : "object" == typeof exports ? (exports.mdc = e()) : (t.mdc = e()); 3})(this, function () { 4 return ( 5 (i = {}), 6 (r.m = n = [ 7 function (t, e, n) { 8 "use strict"; 9 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCFoundation = void 0); 10 var i = 11 (Object.defineProperty(r, "cssClasses", { 12 get: function () { 13 return {}; 14 }, 15 enumerable: !1, 16 configurable: !0, 17 }), 18 Object.defineProperty(r, "strings", { 19 get: function () { 20 return {}; 21 }, 22 enumerable: !1, 23 configurable: !0, 24 }), 25 Object.defineProperty(r, "numbers", { 26 get: function () { 27 return {}; 28 }, 29 enumerable: !1, 30 configurable: !0, 31 }), 32 Object.defineProperty(r, "defaultAdapter", { 33 get: function () { 34 return {}; 35 }, 36 enumerable: !1, 37 configurable: !0, 38 }), 39 (r.prototype.init = function () {}), 40 (r.prototype.destroy = function () {}), 41 r); 42 function r(t) { 43 void 0 === t && (t = {}), (this.adapter = t); 44 } 45 (e.MDCFoundation = i), (e.default = i); 46 }, 47 function (t, e, n) { 48 "use strict"; 49 var r = 50 (this && this.__read) || 51 function (t, e) { 52 var n = "function" == typeof Symbol && t[Symbol.iterator]; 53 if (!n) return t; 54 var i, 55 r, 56 o = n.call(t), 57 s = []; 58 try { 59 for (; (void 0 === e || 0 < e--) && !(i = o.next()).done; ) s.push(i.value); 60 } catch (t) { 61 r = { error: t }; 62 } finally { 63 try { 64 i && !i.done && (n = o.return) && n.call(o); 65 } finally { 66 if (r) throw r.error; 67 } 68 } 69 return s; 70 }, 71 o = 72 (this && this.__spreadArray) || 73 function (t, e) { 74 for (var n = 0, i = e.length, r = t.length; n < i; n++, r++) t[r] = e[n]; 75 return t; 76 }; 77 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCComponent = void 0); 78 var i = n(0), 79 s = 80 ((a.attachTo = function (t) { 81 return new a(t, new i.MDCFoundation({})); 82 }), 83 (a.prototype.initialize = function () { 84 for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; 85 }), 86 (a.prototype.getDefaultFoundation = function () { 87 throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class"); 88 }), 89 (a.prototype.initialSyncWithDOM = function () {}), 90 (a.prototype.destroy = function () { 91 this.foundation.destroy(); 92 }), 93 (a.prototype.listen = function (t, e, n) { 94 this.root.addEventListener(t, e, n); 95 }), 96 (a.prototype.unlisten = function (t, e, n) { 97 this.root.removeEventListener(t, e, n); 98 }), 99 (a.prototype.emit = function (t, e, n) { 100 var i; 101 void 0 === n && (n = !1), 102 "function" == typeof CustomEvent ? (i = new CustomEvent(t, { bubbles: n, detail: e })) : (i = document.createEvent("CustomEvent")).initCustomEvent(t, n, !1, e), 103 this.root.dispatchEvent(i); 104 }), 105 a); 106 function a(t, e) { 107 for (var n = [], i = 2; i < arguments.length; i++) n[i - 2] = arguments[i]; 108 (this.root = t), this.initialize.apply(this, o([], r(n))), (this.foundation = void 0 === e ? this.getDefaultFoundation() : e), this.foundation.init(), this.initialSyncWithDOM(); 109 } 110 (e.MDCComponent = s), (e.default = s); 111 }, 112 function (t, e, n) { 113 "use strict"; 114 var i, 115 r = 116 (this && this.__extends) || 117 ((i = function (t, e) { 118 return (i = 119 Object.setPrototypeOf || 120 ({ __proto__: [] } instanceof Array && 121 function (t, e) { 122 t.__proto__ = e; 123 }) || 124 function (t, e) { 125 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 126 })(t, e); 127 }), 128 function (t, e) { 129 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 130 function n() { 131 this.constructor = t; 132 } 133 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 134 }), 135 o = 136 (this && this.__createBinding) || 137 (Object.create 138 ? function (t, e, n, i) { 139 void 0 === i && (i = n), 140 Object.defineProperty(t, i, { 141 enumerable: !0, 142 get: function () { 143 return e[n]; 144 }, 145 }); 146 } 147 : function (t, e, n, i) { 148 void 0 === i && (i = n), (t[i] = e[n]); 149 }), 150 s = 151 (this && this.__setModuleDefault) || 152 (Object.create 153 ? function (t, e) { 154 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 155 } 156 : function (t, e) { 157 t.default = e; 158 }), 159 a = 160 (this && this.__importStar) || 161 function (t) { 162 if (t && t.__esModule) return t; 163 var e = {}; 164 if (null != t) for (var n in t) "default"
164!== n && Object.prototype.hasOwnProperty.call(t, n) && o(e, t, n); 165 return s(e, t), e; 166 }; 167 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCRipple = void 0); 168 var c, 169 u = n(1), 170 l = n(5), 171 d = n(3), 172 p = n(4), 173 h = a(n(19)), 174 f = 175 ((c = u.MDCComponent), 176 r(y, c), 177 (y.attachTo = function (t, e) { 178 void 0 === e && (e = { isUnbounded: void 0 }); 179 var n = new y(t); 180 return void 0 !== e.isUnbounded && (n.unbounded = e.isUnbounded), n; 181 }), 182 (y.createAdapter = function (n) { 183 return { 184 addClass: function (t) { 185 return n.root.classList.add(t); 186 }, 187 browserSupportsCssVars: function () { 188 return h.supportsCssVariables(window); 189 }, 190 computeBoundingRect: function () { 191 return n.root.getBoundingClientRect(); 192 }, 193 containsEventTarget: function (t) { 194 return n.root.contains(t); 195 }, 196 deregisterDocumentInteractionHandler: function (t, e) { 197 return document.documentElement.removeEventListener(t, e, l.applyPassive()); 198 }, 199 deregisterInteractionHandler: function (t, e) { 200 return n.root.removeEventListener(t, e, l.applyPassive()); 201 }, 202 deregisterResizeHandler: function (t) { 203 return window.removeEventListener("resize", t); 204 }, 205 getWindowPageOffset: function () { 206 return { x: window.pageXOffset, y: window.pageYOffset }; 207 }, 208 isSurfaceActive: function () { 209 return d.matches(n.root, ":active"); 210 }, 211 isSurfaceDisabled: function () { 212 return Boolean(n.disabled); 213 }, 214 isUnbounded: function () { 215 return Boolean(n.unbounded); 216 }, 217 registerDocumentInteractionHandler: function (t, e) { 218 return document.documentElement.addEventListener(t, e, l.applyPassive()); 219 }, 220 registerInteractionHandler: function (t, e) { 221 return n.root.addEventListener(t, e, l.applyPassive()); 222 }, 223 registerResizeHandler: function (t) { 224 return window.addEventListener("resize", t); 225 }, 226 removeClass: function (t) { 227 return n.root.classList.remove(t); 228 }, 229 updateCssVariable: function (t, e) { 230 return n.root.style.setProperty(t, e); 231 }, 232 }; 233 }), 234 Object.defineProperty(y.prototype, "unbounded", { 235 get: function () { 236 return Boolean(this.isUnbounded); 237 }, 238 set: function (t) { 239 (this.isUnbounded = Boolean(t)), this.setUnbounded(); 240 }, 241 enumerable: !1, 242 configurable: !0, 243 }), 244 (y.prototype.activate = function () { 245 this.foundation.activate(); 246 }), 247 (y.prototype.deactivate = function () { 248 this.foundation.deactivate(); 249 }), 250 (y.prototype.layout = function () { 251 this.foundation.layout(); 252 }), 253 (y.prototype.getDefaultFoundation = function () { 254 return new p.MDCRippleFoundation(y.createAdapter(this)); 255 }), 256 (y.prototype.initialSyncWithDOM = function () { 257 var t = this.root; 258 this.isUnbounded = "mdcRippleIsUnbounded" in t.dataset; 259 }), 260 (y.prototype.setUnbounded = function () { 261 this.foundation.setUnbounded(Boolean(this.isUnbounded)); 262 }), 263 y); 264 function y() { 265 var t = (null !== c && c.apply(this, arguments)) || this; 266 return (t.disabled = !1), t; 267 } 268 e.MDCRipple = f; 269 }, 270 function (t, e, n) { 271 "use strict"; 272 function i(t, e) { 273 return (t.matches || t.webkitMatchesSelector || t.msMatchesSelector).call(t, e); 274 } 275 Object.defineProperty(e, "__esModule", { value: !0 }), 276 (e.estimateScrollWidth = e.matches = e.closest = void 0), 277 (e.closest = function (t, e) { 278 if (t.closest) return t.closest(e); 279 for (var n = t; n; ) { 280 if (i(n, e)) return n; 281 n = n.parentElement; 282 } 283 return null; 284 }), 285 (e.matches = i), 286 (e.estimateScrollWidth = function (t) { 287 var e = t; 288 if (null !== e.offsetParent) return e.scrollWidth; 289 var n = e.cloneNode(!0); 290 n.style.setProperty("position", "absolute"), n.style.setProperty("transform", "translate(-9999px, -9999px)"), document.documentElement.appendChild(n); 291 var i = n.scrollWidth; 292 return document.documentElement.removeChild(n), i; 293 }); 294 }, 295 function (t, e, n) { 296 "use strict"; 297 var i, 298 r = 299 (this && this.__extends) || 300 ((i = function (t, e) { 301 return (i = 302 Object.setPrototypeOf || 303 ({ __proto__: [] } instanceof Array && 304 function (t, e) { 305 t.__proto__ = e; 306 }) || 307 function (t, e) { 308 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 309 })(t, e); 310 }), 311 function (t, e) { 312 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 313 function n() { 314 this.constructor = t; 315 } 316 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 317 }), 318 o = 319 (this && this.__assign) || 320 function () { 321 return (o = 322 Object.assign || 323 function (t) { 324 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 325 return t; 326 }).apply(this, arguments); 327 }, 328 s = 329 (this && this.__values) || 330 function (t) { 331 var e = "function" == typeof Symbol && Symbol.iterator, 332 n = e && t[e], 333 i = 0; 334 if (n) return n.call(t); 335 if (t && "number" == typeof t.length) 336 return { 337 next: function () { 338 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 339 }, 340 }; 341 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 342 }; 343 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCRippleFoundation = void 0); 344 var a, 345 c = n(0), 346 u = n(47), 347 l = n(19), 348 d = ["touchstart", "pointerdown", "mousedown", "keydown"], 349 p = ["touchend", "pointerup", "mouseup", "contextmenu"], 350 h = [], 351 f = 352 ((a = c.MDCFoundation), 353 r(y, a),
354 Object.defineProperty(y, "cssClasses", { 355 get: function () { 356 return u.cssClasses; 357 }, 358 enumerable: !1, 359 configurable: !0, 360 }), 361 Object.defineProperty(y, "strings", { 362 get: function () { 363 return u.strings; 364 }, 365 enumerable: !1, 366 configurable: !0, 367 }), 368 Object.defineProperty(y, "numbers", { 369 get: function () { 370 return u.numbers; 371 }, 372 enumerable: !1, 373 configurable: !0, 374 }), 375 Object.defineProperty(y, "defaultAdapter", { 376 get: function () { 377 return { 378 addClass: function () {}, 379 browserSupportsCssVars: function () { 380 return !0; 381 }, 382 computeBoundingRect: function () { 383 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 384 }, 385 containsEventTarget: function () { 386 return !0; 387 }, 388 deregisterDocumentInteractionHandler: function () {}, 389 deregisterInteractionHandler: function () {}, 390 deregisterResizeHandler: function () {}, 391 getWindowPageOffset: function () { 392 return { x: 0, y: 0 }; 393 }, 394 isSurfaceActive: function () { 395 return !0; 396 }, 397 isSurfaceDisabled: function () { 398 return !0; 399 }, 400 isUnbounded: function () { 401 return !0; 402 }, 403 registerDocumentInteractionHandler: function () {}, 404 registerInteractionHandler: function () {}, 405 registerResizeHandler: function () {}, 406 removeClass: function () {}, 407 updateCssVariable: function () {}, 408 }; 409 }, 410 enumerable: !1, 411 configurable: !0, 412 }), 413 (y.prototype.init = function () { 414 var t = this, 415 e = this.supportsPressRipple(); 416 if ((this.registerRootHandlers(e), e)) { 417 var n = y.cssClasses, 418 i = n.ROOT, 419 r = n.UNBOUNDED; 420 requestAnimationFrame(function () { 421 t.adapter.addClass(i), t.adapter.isUnbounded() && (t.adapter.addClass(r), t.layoutInternal()); 422 }); 423 } 424 }), 425 (y.prototype.destroy = function () { 426 var t = this; 427 if (this.supportsPressRipple()) { 428 this.activationTimer && (clearTimeout(this.activationTimer), (this.activationTimer = 0), this.adapter.removeClass(y.cssClasse
428s.FG_ACTIVATION)), 429 this.fgDeactivationRemovalTimer && (clearTimeout(this.fgDeactivationRemovalTimer), (this.fgDeactivationRemovalTimer = 0), this.adapter.removeClass(y.cssClasses.FG_DEACTIVATION)); 430 var e = y.cssClasses, 431 n = e.ROOT, 432 i = e.UNBOUNDED; 433 requestAnimationFrame(function () { 434 t.adapter.removeClass(n), t.adapter.removeClass(i), t.removeCssVars(); 435 }); 436 } 437 this.deregisterRootHandlers(), this.deregisterDeactivationHandlers(); 438 }), 439 (y.prototype.activate = function (t) { 440 this.activateImpl(t); 441 }), 442 (y.prototype.deactivate = function () { 443 this.deactivateImpl(); 444 }), 445 (y.prototype.layout = function () { 446 var t = this; 447 this.layoutFrame && cancelAnimationFrame(this.layoutFrame), 448 (this.layoutFrame = requestAnimationFrame(function () { 449 t.layoutInternal(), (t.layoutFrame = 0); 450 })); 451 }), 452 (y.prototype.setUnbounded = function (t) { 453 var e = y.cssClasses.UNBOUNDED; 454 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 455 }), 456 (y.prototype.handleFocus = function () { 457 var t = this; 458 requestAnimationFrame(function () { 459 return t.adapter.addClass(y.cssClasses.BG_FOCUSED); 460 }); 461 }), 462 (y.prototype.handleBlur = function () { 463 var t = this; 464 requestAnimationFrame(function () { 465 return t.adapter.removeClass(y.cssClasses.BG_FOCUSED); 466 }); 467 }), 468 (y.prototype.supportsPressRipple = function () { 469 return this.adapter.browserSupportsCssVars(); 470 }), 471 (y.prototype.defaultActivationState = function () { 472 return { activationEvent: void 0, hasDeactivationUXRun: !1, isActivated: !1, isProgrammatic: !1, wasActivatedByPointer: !1, wasElementMadeActive: !1 }; 473 }), 474 (y.prototype.registerRootHandlers = function (t) { 475 var e, n; 476 if (t) { 477 try { 478 for (var i = s(d), r = i.next(); !r.done; r = i.next()) { 479 var o = r.value; 480 this.adapter.registerInteractionHandler(o, this.activateHandler); 481 } 482 } catch (t) { 483 e = { error: t }; 484 } finally { 485 try { 486 r && !r.done && (n = i.return) && n.call(i); 487 } finally { 488 if (e) throw e.error; 489 } 490 } 491 this.adapter.isUnbounded() && this.adapter.registerResizeHandler(this.resizeHandler); 492 } 493 this.adapter.registerInteractionHandler("focus", this.focusHandler), this.adapter.registerInteractionHandler("blur", this.blurHandler); 494 }), 495 (y.prototype.registerDeactivationHandlers = function (t) { 496 var e, n; 497 if ("keydown" === t.type) this.adapter.registerInteractionHandler("keyup", this.deactivateHandler); 498 else 499 try { 500 for (var i = s(p), r = i.next(); !r.done; r = i.next()) { 501 var o = r.value; 502 this.adapter.registerDocumentInteractionHandler(o, this.deactivateHandler); 503 } 504 } catch (t) { 505 e = { error: t }; 506 } finally { 507 try { 508 r && !r.done && (n = i.return) && n.call(i); 509 } finally { 510 if (e) throw e.error; 511 } 512 } 513 }), 514 (y.prototype.deregisterRootHandlers = function () { 515 var e, t; 516 try { 517 for (var n = s(d), i = n.next(); !i.done; i = n.next()) { 518 var r = i.value; 519 this.adapter.deregisterInteractionHandler(r, this.activateHandler); 520 } 521 } catch (t) { 522 e = { error: t }; 523 } finally { 524 try { 525 i && !i.done && (t = n.return) && t.call(n); 526 } finally { 527 if (e) throw e.error; 528 } 529 } 530 this.adapter.deregisterInteractionHandler("focus", this.focusHandler), 531 this.adapter.deregisterInteractionHandler("blur", this.blurHandler), 532 this.adapter.isUnbounded() && this.adapter.deregisterResizeHandler(this.resizeHandler); 533 }), 534 (y.prototype.deregisterDeactivationHandlers = function () { 535 var e, t; 536 this.adapter.deregisterInteractionHandler("keyup", this.deactivateHandler); 537 try { 538 for (var n = s(p), i = n.next(); !i.done; i = n.next()) { 539 var r = i.value; 540 this.adapter.deregisterDocumentInteractionHandler(r, this.deactivateHandler); 541 } 542 } catch (t) { 543 e = { error: t }; 544 } finally { 545 try { 546 i && !i.done && (t = n.return) && t.call(n); 547 } finally { 548 if (e) throw e.error; 549 } 550 } 551 }), 552 (y.prototype.removeCssVars = function () { 553 var e = this, 554 n = y.strings;
555 Object.keys(n).forEach(function (t) { 556 0 === t.indexOf("VAR_") && e.adapter.updateCssVariable(n[t], null); 557 }); 558 }), 559 (y.prototype.activateImpl = function (t) { 560 var e = this; 561 if (!this.adapter.isSurfaceDisabled()) { 562 var n = this.activationState; 563 if (!n.isActivated) { 564 var i = this.previousActivationEvent; 565 (i && void 0 !== t && i.type !== t.type) || 566 ((n.isActivated = !0), 567 (n.isProgrammatic = void 0 === t), 568 (n.activationEvent = t), 569 (n.wasActivatedByPointer = !n.isProgrammatic && void 0 !== t && ("mousedown" === t.type || "touchstart" === t.type || "pointerdown" === t.type)), 570 void 0 !== t && 571 0 < h.length && 572 h.some(function (t) { 573 return e.adapter.containsEventTarget(t); 574 }) 575 ? this.resetActivationState() 576 : (void 0 !== t && (h.push(t.target), this.registerDeactivationHandlers(t)), 577 (n.wasElementMadeActive = this.checkElementMadeActive(t)), 578 n.wasElementMadeActive && this.animateActivation(), 579 requestAnimationFrame(function () { 580 (h = []), 581 n.wasElementMadeActive || 582 void 0 === t || 583 (" " !== t.key && 32 !== t.keyCode) || 584 ((n.wasElementMadeActive = e.checkElementMadeActive(t)), n.wasElementMadeActive && e.animateActivation()), 585 n.wasElementMadeActive || (e.activationState = e.defaultActivationState()); 586 }))); 587 } 588 } 589 }), 590 (y.prototype.checkElementMadeActive = function (t) { 591 return void 0 === t || "keydown" !== t.type || this.adapter.isSurfaceActive(); 592 }), 593 (y.prototype.animateActivation = function () { 594 var t = this, 595 e = y.strings, 596 n = e.VAR_FG_TRANSLATE_START, 597 i = e.VAR_FG_TRANSLATE_END, 598 r = y.cssClasses, 599 o = r.FG_DEACTIVATION, 600 s = r.FG_ACTIVATION, 601 a = y.numbers.DEACTIVATION_TIMEOUT_MS; 602 this.layoutInternal(); 603 var c = "", 604 u = ""; 605 if (!this.adapter.isUnbounded()) { 606 var l = this.getFgTranslationCoordinates(), 607 d = l.startPoint, 608 p = l.endPoint; 609 (c = d.x + "px, " + d.y + "px"), (u = p.x + "px, " + p.y + "px"); 610 } 611 this.adapter.updateCssVariable(n, c), 612 this.adapter.updateCssVariable(i, u),
613 clearTimeout(this.activationTimer), 614 clearTimeout(this.fgDeactivationRemovalTimer), 615 this.rmBoundedActivationClasses(), 616 this.adapter.removeClass(o), 617 this.adapter.computeBoundingRect(), 618 this.adapter.addClass(s), 619 (this.activationTimer = setTimeout(function () { 620 t.activationTimerCallback(); 621 }, a)); 622 }), 623 (y.prototype.getFgTranslationCoordinates = function () { 624 var t, 625 e = this.activationState, 626 n = e.activationEvent; 627 return { 628 startPoint: (t = { 629 x: 630 (t = e.wasActivatedByPointer ? l.getNormalizedEventCoords(n, this.adapter.getWindowPageOffset(), this.adapter.computeBoundingRect()) : { x: this.frame.width / 2, y: this.frame.height / 2 }).x - 631 this.initialSize / 2, 632 y: t.y - this.initialSize / 2, 633 }), 634 endPoint: { x: this.frame.width / 2 - this.initialSize / 2, y: this.frame.height / 2 - this.initialSize / 2 }, 635 }; 636 }), 637 (y.prototype.runDeactivationUXLogicIfReady = function () { 638 var t = this, 639 e = y.cssClasses.FG_DEACTIVATION, 640 n = this.activationState, 641 i = n.hasDeactivationUXRun, 642 r = n.isActivated; 643 (!i && r) || 644 !this.activationAnimationHasEnded || 645 (this.rmBoundedActivationClasses(), 646 this.adapter.addClass(e), 647 (this.fgDeactivationRemovalTimer = setTimeout(function () { 648 t.adapter.removeClass(e); 649 }, u.numbers.FG_DEACTIVATION_MS))); 650 }), 651 (y.prototype.rmBoundedActivationClasses = function () { 652 var t = y.cssClasses.FG_ACTIVATION; 653 this.adapter.removeClass(t), (this.activationAnimationHasEnded = !1), this.adapter.computeBoundingRect(); 654 }), 655 (y.prototype.resetActivationState = function () { 656 var t = this; 657 (this.previousActivationEvent = this.activationState.activationEvent), 658 (this.activationState = this.defaultActivationState()), 659 setTimeout(function () { 660 return (t.previousActivationEvent = void 0); 661 }, y.numbers.TAP_DELAY_MS); 662 }), 663 (y.prototype.deactivateImpl = function () { 664 var t = this, 665 e = this.activationState; 666 if (e.isActivated) { 667 var n = o({}, e); 668 e.isProgrammatic 669 ? (requestAnimationFrame(function () { 670 t.animateDeactivation(n); 671 }), 672 this.resetActivationState()) 673 : (this.deregisterDeactivationHandlers(), 674 requestAnimationFrame(function () { 675 (t.activationState.hasDeactivationUXRun = !0), t.animateDeactivation(n), t.resetActivationState(); 676 })); 677 } 678 }), 679 (y.prototype.animateDeactivation = function (t) { 680 var e = t.wasActivatedByPointer, 681 n = t.wasElementMadeActive; 682 (e || n) && this.runDeactivationUXLogicIfReady(); 683 }), 684 (y.prototype.layoutInternal = function () { 685 var t = this; 686 this.frame = this.adapter.computeBoundingRect
686(); 687 var e = Math.max(this.frame.height, this.frame.width); 688 this.maxRadius = this.adapter.isUnbounded() ? e : Math.sqrt(Math.pow(t.frame.width, 2) + Math.pow(t.frame.height, 2)) + y.numbers.PADDING; 689 var n = Math.floor(e * y.numbers.INITIAL_ORIGIN_SCALE); 690 this.adapter.isUnbounded() && n % 2 != 0 ? (this.initialSize = n - 1) : (this.initialSize = n), (this.fgScale = "" + this.maxRadius / this.initialSize), this.updateLayoutCssVars(); 691 }), 692 (y.prototype.updateLayoutCssVars = function () { 693 var t = y.strings, 694 e = t.VAR_FG_SIZE, 695 n = t.VAR_LEFT, 696 i = t.VAR_TOP, 697 r = t.VAR_FG_SCALE; 698 this.adapter.updateCssVariable(e, this.initialSize + "px"), 699 this.adapter.updateCssVariable(r, this.fgScale), 700 this.adapter.isUnbounded() && 701 ((this.unboundedCoords = { left: Math.round(this.frame.width / 2 - this.initialSize / 2), top: Math.round(this.frame.height / 2 - this.initialSize / 2) }), 702 this.adapter.updateCssVariable(n, this.unboundedCoords.left + "px"), 703 this.adapter.updateCssVariable(i, this.unboundedCoords.top + "px")); 704 }), 705 y); 706 function y(t) { 707 var e = a.call(this, o(o({}, y.defaultAdapter), t)) || this; 708 return ( 709 (e.activationAnimationHasEnded = !1), 710 (e.activationTimer = 0), 711 (e.fgDeactivationRemovalTimer = 0), 712 (e.fgScale = "0"), 713 (e.frame = { width: 0, height: 0 }), 714 (e.initialSize = 0), 715 (e.layoutFrame = 0), 716 (e.maxRadius = 0), 717 (e.unboundedCoords = { left: 0, top: 0 }), 718 (e.activationState = e.defaultActivationState()), 719 (e.activationTimerCallback = function () { 720 (e.activationAnimationHasEnded = !0), e.runDeactivationUXLogicIfReady(); 721 }), 722 (e.activateHandler = function (t) { 723 e.activateImpl(t); 724 }), 725 (e.deactivateHandler = function () { 726 e.deactivateImpl(); 727 }), 728 (e.focusHandler = function () { 729 e.handleFocus(); 730 }), 731 (e.blurHandler = function () { 732 e.handleBlur(); 733 }), 734 (e.resizeHandler = function () { 735 e.layout(); 736 }), 737 e 738 ); 739 } 740 (e.MDCRippleFoundation = f), (e.default = f); 741 }, 742 function (t, e, n) { 743 "use strict"; 744 Object.defineProperty(e, "__esModule", { value: !0 }), 745 (e.applyPassive = void 0), 746 (e.applyPassive = function (t) { 747 return ( 748 void 0 === t && (t = window), 749 !!(function (t) { 750 void 0 === t && (t = window); 751 var e = !1; 752 try { 753 var n = { 754 get passive() { 755 return !(e = !0); 756 }, 757 }, 758 i = function () {}; 759 t.document.addEventListener("test", i, n), t.document.removeEventListener("test", i, n); 760 } catch (t) { 761 e = !1; 762 } 763 return e; 764 })(t) && { passive: !0 } 765 ); 766 }); 767 }, 768 function (t, i, e) { 769 "use strict"; 770 Object.defineProperty(i, "__esModule", { value: !0 }), 771 (i.isNavigationEvent = i.normalizeKey = i.KEY = void 0), 772 (i.KEY = { 773 UNKNOWN: "Unknown", 774 BACKSPACE: "Backspace", 775 ENTER: "Enter", 776 SPACEBAR: "Spacebar", 777 PAGE_UP: "PageUp", 778 PAGE_DOWN: "PageDown", 779 END: "End", 780 HOME: "Home", 781 ARROW_LEFT: "ArrowLeft", 782 ARROW_UP: "ArrowUp", 783 ARROW_RIGHT: "ArrowRight", 784 ARROW_DOWN: "ArrowDown", 785 DELETE: "Delete", 786 ESCAPE: "Escape", 787 TAB: "Tab", 788 }); 789 var r = new Set(); 790 r.add(i.KEY.BACKSPACE), 791 r.add(i.KEY.ENTER), 792 r.add(i.KEY.SPACEBAR), 793 r.add(i.KEY.PAGE_UP), 794 r.add(i.KEY.PAGE_DOWN), 795 r.add(i.KEY.END), 796 r.add(i.KEY.HOME), 797 r.add(i.KEY.ARROW_LEFT), 798 r.add(i.KEY.ARROW_UP), 799 r.add(i.KEY.ARROW_RIGHT), 800 r.add(i.KEY.ARROW_DOWN), 801 r.add(i.KEY.DELETE), 802 r.add(i.KEY.ESCAPE), 803 r.add(i.KEY.TAB); 804 var n = 8, 805 o = 13, 806 s = 32, 807 a = 33, 808 c = 34, 809 u = 35, 810 l = 36, 811 d = 37, 812 p = 38, 813 h = 39, 814 f = 40, 815 y = 46, 816 C = 27, 817 E = 9, 818 g = new Map(); 819 g.set(n, i.KEY.BACKSPACE), 820 g.set(o, i.KEY.ENTER), 821 g.set(s, i.KEY.SPACEBAR), 822 g.set(a, i.KEY.PAGE_UP), 823 g.set(c, i.KEY.PAGE_DOWN), 824 g.set(u, i.KEY.END), 825 g.set(l, i.KEY.HOME), 826 g.set(d, i.KEY.ARROW_LEFT), 827 g.set(p, i.KEY.ARROW_UP), 828 g.set(h, i.KEY.ARROW_RIGHT), 829 g.set(f, i.KEY.ARROW_DOWN), 830 g.set(y, i.KEY.DELETE), 831 g.set(C, i.KEY.ESCAPE), 832 g.set(E, i.KEY.TAB); 833 var _ = new Set(); 834 function m(t) {
835 var e = t.key; 836 if (r.has(e)) return e; 837 var n = g.get(t.keyCode); 838 return n || i.KEY.UNKNOWN; 839 } 840 _.add(i.KEY.PAGE_UP), 841 _.add(i.KEY.PAGE_DOWN), 842 _.add(i.KEY.END), 843 _.add(i.KEY.HOME), 844 _.add(i.KEY.ARROW_LEFT), 845 _.add(i.KEY.ARROW_UP), 846 _.add(i.KEY.ARROW_RIGHT), 847 _.add(i.KEY.ARROW_DOWN), 848 (i.normalizeKey = m), 849 (i.isNavigationEvent = function (t) { 850 return _.has(m(t)); 851 }); 852 }, 853 function (t, e, n) { 854 "use strict"; 855 var i, r; 856 Object.defineProperty(e, "__esModule", { value: !0 }), (e.evolutionClassNameMap = e.evolutionAttribute = e.deprecatedClassNameMap = e.numbers = e.cssClasses = e.strings = void 0); 857 var o = { 858 LIST_ITEM_ACTIVATED_CLASS: "mdc-list-item--activated", 859 LIST_ITEM_CLASS: "mdc-list-item", 860 LIST_ITEM_DISABLED_CLASS: "mdc-list-item--disabled", 861 LIST_ITEM_SELECTED_CLASS: "mdc-list-item--selected", 862 LIST_ITEM_TEXT_CLASS: "mdc-list-item__text", 863 LIST_ITEM_PRIMARY_TEXT_CLASS: "mdc-list-item__primary-text", 864 ROOT: "mdc-list", 865 }, 866 s = 867 (((i = {})["" + (e.cssClasses = o).LIST_ITEM_ACTIVATED_CLASS] = "mdc-list-item--activated"), 868 (i["" + o.LIST_ITEM_CLASS] = "mdc-list-item"), 869 (i["" + o.LIST_ITEM_DISABLED_CLASS] = "mdc-list-item--disabled"), 870 (i["" + o.LIST_ITEM_SELECTED_CLASS] = "mdc-list-item--selected"), 871 (i["" + o.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-list-item__primary-text"), 872 (i["" + o.ROOT] = "mdc-list"), 873 i); 874 e.evolutionClassNameMap = s; 875 var a = 876 (((r = {})["" + o.LIST_ITEM_ACTIVATED_CLASS] = "mdc-deprecated-list-item--activated"), 877 (r["" + o.LIST_ITEM_CLASS] = "mdc-deprecated-list-item"), 878 (r["" + o.LIST_ITEM_DISABLED_CLASS] = "mdc-deprecated-list-item--disabled"), 879 (r["" + o.LIST_ITEM_SELECTED_CLASS] = "mdc-deprecated-list-item--selected"), 880 (r["" + o.LIST_ITEM_TEXT_CLASS] = "mdc-deprecated-list-item__text"), 881 (r["" + o.LIST_ITEM_PRIMARY_TEXT_CLASS] = "mdc-deprecated-list-item__primary-text"), 882 (r["" + o.ROOT] = "mdc-deprecated-list"), 883 r); 884 e.deprecatedClassNameMap = a; 885 var c = { 886 ACTION_EVENT: "MDCList:action", 887 ARIA_CHECKED: "aria-checked", 888 ARIA_CHECKED_CHECKBOX_SELECTOR: '[role="checkbox"][aria-checked="true"]', 889 ARIA_CHECKED_RADIO_SELECTOR: '[role="radio"][aria-checked="true"]', 890 ARIA_CURRENT: "aria-current", 891 ARIA_DISABLED: "aria-disabled", 892 ARIA_ORIENTATION: "aria-orientation", 893 ARIA_ORIENTATION_HORIZONTAL: "horizontal", 894 ARIA_ROLE_CHECKBOX_SELECTOR: '[role="checkbox"]', 895 ARIA_SELECTED: "aria-selected", 896 ARIA_INTERACTIVE_ROLES_SELECTOR: '[role="listbox"], [role="menu"]', 897 ARIA_MULTI_SELECTABLE_SELECTOR: '[aria-multiselectable="true"]', 898 CHECKBOX_RADIO_SELECTOR: 'input[type="checkbox"], input[type="radio"]', 899 CHECKBOX_SELECTOR: 'input[type="checkbox"]', 900 CHILD_ELEMENTS_TO_TOGGLE_TABINDEX: 901 "\n ." + o.LIST_ITEM_CLASS + " button:not(:disabled),\n ." + o.LIST_ITEM_CLASS + " a,\n ." + a[o.LIST_ITEM_CLASS] + " button:not(:disabled),\n ." + a[o.LIST_ITEM_CLASS] + " a\n ", 902 DEPRECATED_SELECTOR: ".mdc-deprecated-list", 903 FOCUSABLE_CHILD_ELEMENTS: 904 "\n ." + 905 o.LIST_ITEM_CLASS + 906 " button:not(:disabled),\n ." + 907 o.LIST_ITEM_CLASS + 908 " a,\n ." + 909 o.LIST_ITEM_CLASS + 910 ' input[type="radio"]:not(:disabled),\n .' + 911 o.LIST_ITEM_CLASS + 912 ' input[type="checkbox"]:not(:disabled),\n .' + 913 a[o.LIST_ITEM_CLASS] + 914 " button:not(:disabled),\n ." + 915 a[o.LIST_ITEM_CLASS] + 916 " a,\n ." + 917 a[o.LIST_ITEM_CLASS] + 918 ' input[type="radio"]:not(:disabled),\n .' + 919 a[o.LIST_ITEM_CLASS] + 920 ' input[type="checkbox"]:not(:disabled)\n ', 921 RADIO_SELECTOR: 'input[type="radio"]', 922 SELECTED_ITEM_SELECTOR: '[aria-selected="true"], [aria-current="true"]', 923 }; 924 e.strings = c; 925 e.numbers = { UNSET_INDEX: -1, TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS: 300 }; 926 e.evolutionAttribute = "evolution"; 927 }, 928 function (t, e, n) { 929 "use strict"; 930 Object.defineProperty(e, "__esModule", { value: !0 }), (e.Corner = e.CornerBit = e.numbers = e.strings = e.cssClasse
930s = void 0); 931 e.cssClasses = { 932 ANCHOR: "mdc-menu-surface--anchor", 933 ANIMATING_CLOSED: "mdc-menu-surface--animating-closed", 934 ANIMATING_OPEN: "mdc-menu-surface--animating-open", 935 FIXED: "mdc-menu-surface--fixed", 936 IS_OPEN_BELOW: "mdc-menu-surface--is-open-below", 937 OPEN: "mdc-menu-surface--open", 938 ROOT: "mdc-menu-surface", 939 }; 940 var i = { 941 CLOSED_EVENT: "MDCMenuSurface:closed", 942 CLOSING_EVENT: "MDCMenuSurface:closing", 943 OPENED_EVENT: "MDCMenuSurface:opened", 944 FOCUSABLE_ELEMENTS: [ 945 "button:not(:disabled)", 946 '[href]:not([aria-disabled="true"])', 947 "input:not(:disabled)", 948 "select:not(:disabled)", 949 "textarea:not(:disabled)", 950 '[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])', 951 ].join(", "), 952 }; 953 e.strings = i; 954 var r, o, s, a; 955 (e.numbers = { TRANSITION_OPEN_DURATION: 120, TRANSITION_CLOSE_DURATION: 75, MARGIN_TO_EDGE: 32, ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO: 0.67, TOUCH_EVENT_WAIT_MS: 30 }), 956 ((o = r = r || {})[(o.BOTTOM = 1)] = "BOTTOM"), 957 (o[(o.CENTER = 2)] = "CENTER"), 958 (o[(o.RIGHT = 4)] = "RIGHT"), 959 (o[(o.FLIP_RTL = 8)] = "FLIP_RTL"), 960 (e.CornerBit = r), 961 ((a = s = s || {})[(a.TOP_LEFT = 0)] = "TOP_LEFT"), 962 (a[(a.TOP_RIGHT = 4)] = "TOP_RIGHT"), 963 (a[(a.BOTTOM_LEFT = 1)] = "BOTTOM_LEFT"), 964 (a[(a.BOTTOM_RIGHT = 5)] = "BOTTOM_RIGHT"), 965 (a[(a.TOP_START = 8)] = "TOP_START"), 966 (a[(a.TOP_END = 12)] = "TOP_END"), 967 (a[(a.BOTTOM_START = 9)] = "BOTTOM_START"), 968 (a[(a.BOTTOM_END = 13)] = "BOTTOM_END"), 969 (e.Corner = s); 970 }, 971 function (t, e, n) { 972 "use strict"; 973 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.numbers = e.cssClasses = void 0); 974 e.cssClasses = { 975 FIXED_CLASS: "mdc-top-app-bar--fixed", 976 FIXED_SCROLLED_CLASS: "mdc-top-app-bar--fixed-scrolled", 977 SHORT_CLASS: "mdc-top-app-bar--short", 978 SHORT_COLLAPSED_CLASS: "mdc-top-app-bar--short-collapsed", 979 SHORT_HAS_ACTION_ITEM_CLASS: "mdc-top-app-bar--short-has-action-item", 980 }; 981 e.numbers = { DEBOUNCE_THROTTLE_RESIZE_TIME_MS: 100, MAX_TOP_APP_BAR_HEIGHT: 128 }; 982 e.strings = { 983 ACTION_ITEM_SELECTOR: ".mdc-top-app-bar__action-item", 984 NAVIGATION_EVENT: "MDCTopAppBar:nav", 985 NAVIGATION_ICON_SELECTOR: ".mdc-top-app-bar__navigation-icon", 986 ROOT_SELECTOR: ".mdc-top-app-bar", 987 TITLE_SELECTOR: ".mdc-top-app-bar__title", 988 }; 989 }, 990 function (t, e, n) { 991 "use strict"; 992 Object.defineProperty(e, "__esModule", { value: !0 }), (e.getCorrectEventName = e.getCorrectPropertyName = void 0); 993 var s = { animation: { prefixed: "-webkit-animation", standard: "animation" }, transform: { prefixed: "-webkit-transform", standard: "transform" }, transition: { prefixed: "-webkit-transition", standard: "transition" } }, 994 a = { 995 animationend: { cssProperty: "animation", prefixed: "webkitAnimationEnd", standard: "animationend" }, 996 animationiteration: { cssProperty: "animation", prefixed: "webkitAnimationIteration", standard: "animationiteration" }, 997 animationstart: { cssProperty: "animation", prefixed: "webkitAnimationStart", standard: "animationstart" }, 998 transitionend: { cssProperty: "transition", prefixed: "webkitTransitionEnd", standard: "transitionend" }, 999 }; 1000 function c(t) { 1001 return Boolean(t.document) && "function" == typeof t.document.createElement; 1002 } 1003 (e.getCorrectPropertyName = function (t, e) { 1004 if (c(t) && e in s) { 1005 var n = t.document.createElement("div"), 1006 i = s[e], 1007 r = i.standard, 1008 o = i.prefixed; 1009 return r in n.style ? r : o; 1010 } 1011 return e; 1012 }), 1013 (e.getCorrectEventName = function (t, e) { 1014 if (c(t) && e in a) { 1015 var n = t.document.createElement("div"), 1016 i = a[e], 1017 r = i.standard, 1018 o = i.prefixed; 1019 return i.cssProperty in n.style ? r : o; 1020 } 1021 return e; 1022 }); 1023 }, 1024 function (t, e, n) { 1025 "use strict"; 1026 Object.defineProperty(e, "__esModule", { value: !0 }), (e.FocusTrap = void 0); 1027 var o = "mdc-dom-focus-sentinel", 1028 i = 1029 ((r.prototype.trapFocus = function () { 1030 var t = this.getFocusableElements(this.root); 1031 if (0 === t.length) throw new Error("FocusTrap: Element must have at least one focusable child."); 1032 (this.elFocusedBeforeTrapFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null),
1033 this.wrapTabFocus(this.root), 1034 this.options.skipInitialFocus || this.focusInitialElement(t, this.options.initialFocusEl); 1035 }), 1036 (r.prototype.releaseFocus = function () { 1037 [].slice.call(this.root.querySelectorAll("." + o)).forEach(function (t) { 1038 t.parentElement.removeChild(t); 1039 }), 1040 !this.options.skipRestoreFocus && this.elFocusedBeforeTrapFocus && this.elFocusedBeforeTrapFocus.focus(); 1041 }), 1042 (r.prototype.wrapTabFocus = function (e) { 1043 var n = this, 1044 t = this.createSentinel(), 1045 i = this.createSentinel(); 1046 t.addEventListener("focus", function () { 1047 var t = n.getFocusableElements(e); 1048 0 < t.length && t[t.length - 1].focus(); 1049 }), 1050 i.addEventListener("focus", function () { 1051 var t = n.getFocusableElements(e); 1052 0 < t.length && t[0].focus(); 1053 }), 1054 e.insertBefore(t, e.children[0]), 1055 e.appendChild(i); 1056 }), 1057 (r.prototype.focusInitialElement = function (t, e) { 1058 var n = 0; 1059 e && (n = Math.max(t.indexOf(e), 0)), t[n].focus(); 1060 }), 1061 (r.prototype.getFocusableElements = function (t) { 1062 return [].slice.call(t.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter(function (t) { 1063 var e = "true" === t.getAttribute("aria-disabled") || null != t.getAttribute("disabled") || null != t.getAttribute("hidden") || "true" === t.getAttribute("aria-hidden"), 1064 n = 0 <= t.tabIndex && 0 < t.getBoundingClientRect().width && !t.classList.contains(o) && !e, 1065 i = !1; 1066 if (n) { 1067 var r = getComputedStyle(t); 1068 i = "none" === r.display || "hidden" === r.visibility; 1069 } 1070 return n && !i; 1071 }); 1072 }), 1073 (r.prototype.createSentinel = function () { 1074 var t = document.createElement("div"); 1075 return t.setAttribute("tabindex", "0"), t.setAttribute("aria-hidden", "true"), t.classList.add(o), t; 1076 }), 1077 r); 1078 function r(t, e) { 1079 void 0 === e && (e = {}), (this.root = t), (this.options = e), (this.elFocusedBeforeTrapFocus = null); 1080 } 1081 e.FocusTrap = i; 1082 }, 1083 function (t, e, n) { 1084 "use strict"; 1085 var i; 1086 Object.defineProperty(e, "__esModule", { value: !0 }), 1087 (e.strings = e.InteractionTrigger = void 0), 1088 ((i = e.InteractionTrigger || (e.InteractionTrigger = {}))[(i.UNSPECIFIED = 0)] = "UNSPECIFIED"), 1089 (i[(i.CLICK = 1)] = "CLICK"), 1090 (i[(i.BACKSPACE_KEY = 2)] = "BACKSPACE_KEY"), 1091 (i[(i.DELETE_KEY = 3)] = "DELETE_KEY"), 1092 (i[(i.SPACEBAR_KEY = 4)] = "SPACEBAR_KEY"), 1093 (i[(i.ENTER_KEY = 5)] = "ENTER_KEY"), 1094 (e.strings = { ARIA_HIDDEN: "aria-hidden", INTERACTION_EVENT: "MDCChipTrailingAction:interaction", NAVIGATION_EVENT: "MDCChipTrailingAction:navigation", TAB_INDEX: "tabindex" }); 1095 }, 1096 function (t, e, n) { 1097 "use strict"; 1098 var i, r; 1099 Object.defineProperty(e, "__esModule", { value: !0 }), 1100 (e.jumpChipKeys = e.navigationKeys = e.cssClasse
1100s = e.strings = e.EventSource = e.Direction = void 0), 1101 ((i = e.Direction || (e.Direction = {})).LEFT = "left"), 1102 (i.RIGHT = "right"), 1103 ((r = e.EventSource || (e.EventSource = {})).PRIMARY = "primary"), 1104 (r.TRAILING = "trailing"), 1105 (r.NONE = "none"), 1106 (e.strings = { 1107 ADDED_ANNOUNCEMENT_ATTRIBUTE: "data-mdc-chip-added-announcement", 1108 ARIA_CHECKED: "aria-checked", 1109 ARROW_DOWN_KEY: "ArrowDown", 1110 ARROW_LEFT_KEY: "ArrowLeft", 1111 ARROW_RIGHT_KEY: "ArrowRight", 1112 ARROW_UP_KEY: "ArrowUp", 1113 BACKSPACE_KEY: "Backspace", 1114 CHECKMARK_SELECTOR: ".mdc-chip__checkmark", 1115 DELETE_KEY: "Delete", 1116 END_KEY: "End", 1117 ENTER_KEY: "Enter", 1118 ENTRY_ANIMATION_NAME: "mdc-chip-entry", 1119 HOME_KEY: "Home", 1120 IE_ARROW_DOWN_KEY: "Down", 1121 IE_ARROW_LEFT_KEY: "Left", 1122 IE_ARROW_RIGHT_KEY: "Right", 1123 IE_ARROW_UP_KEY: "Up", 1124 IE_DELETE_KEY: "Del", 1125 INTERACTION_EVENT: "MDCChip:interaction", 1126 LEADING_ICON_SELECTOR: ".mdc-chip__icon--leading", 1127 NAVIGATION_EVENT: "MDCChip:navigation", 1128 PRIMARY_ACTION_SELECTOR: ".mdc-chip__primary-action", 1129 REMOVED_ANNOUNCEMENT_ATTRIBUTE: "data-mdc-chip-removed-announcement", 1130 REMOVAL_EVENT: "MDCChip:removal", 1131 SELECTION_EVENT: "MDCChip:selection", 1132 SPACEBAR_KEY: " ", 1133 TAB_INDEX: "tabindex", 1134 TRAILING_ACTION_SELECTOR: ".mdc-chip-trailing-action", 1135 TRAILING_ICON_INTERACTION_EVENT: "MDCChip:trailingIconInteraction", 1136 TRAILING_ICON_SELECTOR: ".mdc-chip__icon--trailing", 1137 }), 1138 (e.cssClasses = { 1139 CHECKMARK: "mdc-chip__checkmark", 1140 CHIP_EXIT: "mdc-chip--exit", 1141 DELETABLE: "mdc-chip--deletable", 1142 EDITABLE: "mdc-chip--editable", 1143 EDITING: "mdc-chip--editing", 1144 HIDDEN_LEADING_ICON: "mdc-chip__icon--leading-hidden", 1145 LEADING_ICON: "mdc-chip__icon--leading", 1146 PRIMARY_ACTION: "mdc-chip__primary-action", 1147 PRIMARY_ACTION_FOCUSED: "mdc-chip--primary-action-focused", 1148 SELECTED: "mdc-chip--selected", 1149 TEXT: "mdc-chip__text", 1150 TRAILING_ACTION: "mdc-chip__trailing-action", 1151 TRAILING_ICON: "mdc-chip__icon--trailing", 1152 }), 1153 (e.navigationKeys = new Set()), 1154 e.navigationKeys.add(e.strings.ARROW_LEFT_KEY), 1155 e.navigationKeys.add(e.strings.ARROW_RIGHT_KEY), 1156 e.navigationKeys.add(e.strings.ARROW_DOWN_KEY), 1157 e.navigationKeys.add(e.strings.ARROW_UP_KEY), 1158 e.navigationKeys.add(e.strings.END_KEY), 1159 e.navigationKeys.add(e.strings.HOME_KEY), 1160 e.navigationKeys.add(e.strings.IE_ARROW_LEFT_KEY), 1161 e.navigationKeys.add(e.strings.IE_ARROW_RIGHT_KEY), 1162 e.navigationKeys.add(e.strings.IE_ARROW_DOWN_KEY), 1163 e.navigationKeys.add(e.strings.IE_ARROW_UP_KEY), 1164 (e.jumpChipKeys = new Set()), 1165 e.jumpChipKeys.add(e.strings.ARROW_UP_KEY), 1166 e.jumpChipKeys.add(e.strings.ARROW_DOWN_KEY), 1167 e.jumpChipKeys.add(e.strings.HOME_KEY), 1168 e.jumpChipKeys.add(e.strings.END_KEY), 1169 e.jumpChipKeys.add(e.strings.IE_ARROW_UP_KEY), 1170 e.jumpChipKeys.add(e.strings.IE_ARROW_DOWN_KEY); 1171 }, 1172 function (t, e, n) { 1173 "use strict"; 1174 var i, 1175 r = 1176 (this && this.__extends) || 1177 ((i = function (t, e) { 1178 return (i = 1179 Object.setPrototypeOf || 1180 ({ __proto__: [] } instanceof Array && 1181 function (t, e) { 1182 t.__proto__ = e; 1183 }) || 1184 function (t, e) { 1185 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 1186 })(t, e); 1187 }), 1188 function (t, e) { 1189 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 1190 function n() { 1191 this.constructor = t; 1192 } 1193 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 1194 }), 1195 o = 1196 (this && this.__assign) || 1197 function () { 1198 return (o = 1199 Object.assign || 1200 function (t) { 1201 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 1202 return t; 1203 }).apply(this, arguments); 1204 }, 1205 h = 1206 (this && this.__values) || 1207 function (t) { 1208 var e = "function" == typeof Symbol && Symbol.iterator, 1209 n = e && t[e], 1210 i = 0; 1211 if (n) return n.call(t); 1212 if (t && "number" == typeof t.length) 1213 return { 1214 next: function () { 1215 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 1216 }, 1217 }; 1218 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 1219 }; 1220 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCMenuSurfaceFoundation = void 0); 1221 var s, 1222 a = n(0), 1223 E = n(8), 1224 c = 1225 ((s = a.MDCFoundation), 1226 r(g, s),
1227 Object.defineProperty(g, "cssClasses", { 1228 get: function () { 1229 return E.cssClasses; 1230 }, 1231 enumerable: !1, 1232 configurable: !0, 1233 }), 1234 Object.defineProperty(g, "strings", { 1235 get: function () { 1236 return E.strings; 1237 }, 1238 enumerable: !1, 1239 configurable: !0, 1240 }), 1241 Object.defineProperty(g, "numbers", { 1242 get: function () { 1243 return E.numbers; 1244 }, 1245 enumerable: !1, 1246 configurable: !0, 1247 }), 1248 Object.defineProperty(g, "Corner", { 1249 get: function () { 1250 return E.Corner; 1251 }, 1252 enumerable: !1, 1253 configurable: !0, 1254 }), 1255 Object.defineProperty(g, "defaultAdapter", { 1256 get: function () { 1257 return { 1258 addClass: function () {}, 1259 removeClass: function () {}, 1260 hasClass: function () { 1261 return !1; 1262 }, 1263 hasAnchor: function () { 1264 return !1; 1265 }, 1266 isElementInContainer: function () { 1267 return !1; 1268 }, 1269 isFocused: function () { 1270 return !1; 1271 }, 1272 isRtl: function () { 1273 return !1; 1274 }, 1275 getInnerDimensions: function () { 1276 return { height: 0, width: 0 }; 1277 }, 1278 getAnchorDimensions: function () { 1279 return null; 1280 }, 1281 getWindowDimensions: function () { 1282 return { height: 0, width: 0 }; 1283 }, 1284 getBodyDimensions: function () { 1285 return { height: 0, width: 0 }; 1286 }, 1287 getWindowScroll: function () { 1288 return { x: 0, y: 0 }; 1289 }, 1290 setPosition: function () {}, 1291 setMaxHeight: function () {}, 1292 setTransformOrigin: function () {}, 1293 saveFocus: function () {}, 1294 restoreFocus: function () {}, 1295 notifyClose: function () {}, 1296 notifyOpen: function () {}, 1297 notifyClosing: function () {}, 1298 }; 1299 }, 1300 enumerable: !1, 1301 configurable: !0, 1302 }), 1303 (g.prototype.init = function () { 1304 var t = g.cssClasses, 1305 e = t.ROOT, 1306 n = t.OPEN; 1307 if (!this.adapter.hasClass(e)) throw new Error(e + " class required in root element."); 1308 this.adapter.hasClass(n) && (this.isSurfaceOpen = !0); 1309 }), 1310 (g.prototype.destroy = function () { 1311 clearTimeout(this.openAnimationEndTimerId), clearTimeout(this.closeAnimationEndTimerId), cancelAnimationFrame(this.animationRequestId); 1312 }),
1313 (g.prototype.setAnchorCorner = function (t) { 1314 this.anchorCorner = t; 1315 }), 1316 (g.prototype.flipCornerHorizontally = function () { 1317 this.originCorner = this.originCorner ^ E.CornerBit.RIGHT; 1318 }), 1319 (g.prototype.setAnchorMargin = function (t) { 1320 (this.anchorMargin.top = t.top || 0), (this.anchorMargin.right = t.right || 0), (this.anchorMargin.bottom = t.bottom || 0), (this.anchorMargin.left = t.left || 0); 1321 }), 1322 (g.prototype.setIsHoisted = function (t) { 1323 this.isHoistedElement = t; 1324 }), 1325 (g.prototype.setFixedPosition = function (t) { 1326 this.isFixedPosition = t; 1327 }), 1328 (g.prototype.isFixed = function () { 1329 return this.isFixedPosition; 1330 }), 1331 (g.prototype.setAbsolutePosition = function (t, e) { 1332 (this.position.x = this.isFinite(t) ? t : 0), (this.position.y = this.isFinite(e) ? e : 0); 1333 }), 1334 (g.prototype.setIsHorizontallyCenteredOnViewport = function (t) { 1335 this.isHorizontallyCenteredOnViewport = t; 1336 }), 1337 (g.prototype.setQuickOpen = function (t) { 1338 this.isQuickOpen = t; 1339 }), 1340 (g.prototype.setMaxHeight = function (t) { 1341 this.maxHeight = t; 1342 }), 1343 (g.prototype.isOpen = function () { 1344 return this.isSurfaceOpen; 1345 }), 1346 (g.prototype.open = function () { 1347 var t = this; 1348 this.isSurfaceOpen || 1349 (this.adapter.saveFocus(), 1350 this.isQuickOpen 1351 ? ((this.isSurfaceOpen = !0), this.adapter.addClass(g.cssClasses.OPEN), (this.dimensions = this.adapter.getInnerDimensions()), this.autoposition(), this.adapter.notifyOpen()) 1352 : (this.adapter.addClass(g.cssClasses.ANIMATING_OPEN), 1353 (this.animationRequestId = requestAnimationFrame(function () { 1354 (t.dimensions = t.adapter.getInnerDimensions()), 1355 t.autoposition(), 1356 t.adapter.addClass(g.cssClasses.OPEN), 1357 (t.openAnimationEndTimerId = setTimeout(function () { 1358 (t.openAnimationEndTimerId = 0), t.adapter.removeClass(g.cssClasses.ANIMATING_OPEN), t.adapter.notifyOpen(); 1359 }, E.numbers.TRANSITION_OPEN_DURATION)); 1360 })), 1361 (this.isSurfaceOpen = !0))); 1362 }), 1363 (g.prototype.close = function (t) { 1364 var e = this; 1365 if ((void 0 === t && (t = !1), this.isSurfaceOpen)) { 1366 if ((this.adapter.notifyClosing(), this.isQuickOpen)) 1367 return (this.isSurfaceOpen = !1), t || this.maybeRestoreFocus(), this.adapter.removeClass(g.cssClasses.OPEN), this.adapter.removeClass(g.cssClasses.IS_OPEN_BELOW), void this.adapter.notifyClose(); 1368 this.adapter.addClass(g.cssClasses.ANIMATING_CLOSED), 1369 requestAnimationFrame(function () { 1370 e.adapter.removeClass(g.cssClasses.OPEN), 1371 e.adapter.removeClass(g.cssClasse
1371s.IS_OPEN_BELOW), 1372 (e.closeAnimationEndTimerId = setTimeout(function () { 1373 (e.closeAnimationEndTimerId = 0), e.adapter.removeClass(g.cssClasses.ANIMATING_CLOSED), e.adapter.notifyClose(); 1374 }, E.numbers.TRANSITION_CLOSE_DURATION)); 1375 }), 1376 (this.isSurfaceOpen = !1), 1377 t || this.maybeRestoreFocus(); 1378 } 1379 }), 1380 (g.prototype.handleBodyClick = function (t) { 1381 var e = t.target; 1382 this.adapter.isElementInContainer(e) || this.close(); 1383 }), 1384 (g.prototype.handleKeydown = function (t) { 1385 var e = t.keyCode; 1386 ("Escape" !== t.key && 27 !== e) || this.close(); 1387 }), 1388 (g.prototype.autoposition = function () { 1389 var t; 1390 this.measurements = this.getAutoLayoutmeasurements(); 1391 var e = this.getoriginCorner(), 1392 n = this.getMenuSurfaceMaxHeight(e), 1393 i = this.hasBit(e, E.CornerBit.BOTTOM) ? "bottom" : "top", 1394 r = this.hasBit(e, E.CornerBit.RIGHT) ? "right" : "left", 1395 o = this.getHorizontalOriginOffset(e), 1396 s = this.getVerticalOriginOffset(e), 1397 a = this.measurements, 1398 c = a.anchorSize, 1399 u = a.surfaceSize, 1400 l = (((t = {})[r] = o), (t[i] = s), t); 1401 c.width / u.width > E.numbers.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO && (r = "center"), 1402 (this.isHoistedElement || this.isFixedPosition) && this.adjustPositionForHoistedElement(l), 1403 this.adapter.setTransformOrigin(r + " " + i), 1404 this.adapter.setPosition(l), 1405 this.adapter.setMaxHeight(n ? n + "px" : ""), 1406 this.hasBit(e, E.CornerBit.BOTTOM) || this.adapter.addClass(g.cssClasses.IS_OPEN_BELOW); 1407 }), 1408 (g.prototype.getAutoLayoutmeasurements = function () { 1409 var t = this.adapter.getAnchorDimensions(), 1410 e = this.adapter.getBodyDimensions(), 1411 n = this.adapter.getWindowDimensions(), 1412 i = this.adapter.getWindowScroll(); 1413 return { 1414 anchorSize: (t = t || { top: this.position.y, right: this.position.x, bottom: this.position.y, left: this.position.x, width: 0, height: 0 }), 1415 bodySize: e, 1416 surfaceSize: this.dimensions, 1417 viewportDistance: { top: t.top, right: n.width - t.right, bottom: n.height - t.bottom, left: t.left }, 1418 viewportSize: n, 1419 windowScroll: i, 1420 }; 1421 }), 1422 (g.prototype.getoriginCorner = function () { 1423 var t, 1424 e, 1425 n = this.originCorner, 1426 i = this.measurements, 1427 r = i.viewportDistance, 1428 o = i.anchorSize, 1429 s = i.surfaceSize, 1430 a = g.numbers.MARGIN_TO_EDGE; 1431 !( 1432 0 < 1433 (e = this.hasBit(this.anchorCorner, E.CornerBit.BOTTOM) 1434 ? ((t = r.top - a + this.anchorMargin.bottom), r.bottom - a - this.anchorMargin.bottom) 1435 : ((t = r.top - a + this.anchorMargin.top), r.bottom - a + o.height - this.anchorMargin.top)) - 1436 s.height 1437 ) && 1438 e < t && 1439 (n = this.setBit(n, E.CornerBit.BOTTOM)); 1440 var c, 1441 u, 1442 l = this.adapter.isRtl(), 1443 d = this.hasBit(this.anchorCorner, E.CornerBit.FLIP_RT
1443L), 1444 p = this.hasBit(this.anchorCorner, E.CornerBit.RIGHT) || this.hasBit(n, E.CornerBit.RIGHT), 1445 h = !1; 1446 u = (h = l && d ? !p : p) ? ((c = r.left + o.width + this.anchorMargin.right), r.right - this.anchorMargin.right) : ((c = r.left + this.anchorMargin.left), r.right + o.width - this.anchorMargin.left); 1447 var f = 0 < c - s.width, 1448 y = 0 < u - s.width, 1449 C = this.hasBit(n, E.CornerBit.FLIP_RTL) && this.hasBit(n, E.CornerBit.RIGHT); 1450 return (y && C && l) || (!f && C) ? (n = this.unsetBit(n, E.CornerBit.RIGHT)) : ((f && h && l) || (f && !h && p) || (!y && u <= c)) && (n = this.setBit(n, E.CornerBit.RIGHT)), n; 1451 }), 1452 (g.prototype.getMenuSurfaceMaxHeight = function (t) { 1453 if (0 < this.maxHeight) return this.maxHeight; 1454 var e = this.measurements.viewportDistance, 1455 n = 0, 1456 i = this.hasBit(t, E.CornerBit.BOTTOM), 1457 r = this.hasBit(this.anchorCorner, E.CornerBit.BOTTOM), 1458 o = g.numbers.MARGIN_TO_EDGE; 1459 return ( 1460 i 1461 ? ((n = e.top + this.anchorMargin.top - o), r || (n += this.measurements.anchorSize.height)) 1462 : ((n = e.bottom - this.anchorMargin.bottom + this.measurements.anchorSize.height - o), r && (n -= this.measurements.anchorSize.height)), 1463 n 1464 ); 1465 }), 1466 (g.prototype.getHorizontalOriginOffset = function (t) { 1467 var e = this.measurements.anchorSize, 1468 n = this.hasBit(t, E.CornerBit.RIGHT), 1469 i = this.hasBit(this.anchorCorner, E.CornerBit.RIGHT); 1470 if (n) { 1471 var r = i ? e.width - this.anchorMargin.left : this.anchorMargin.right; 1472 return this.isHoistedElement || this.isFixedPosition ? r - (this.measurements.viewportSize.width - this.measurements.bodySize.width) : r; 1473 } 1474 return i ? e.width - this.anchorMargin.right : this.anchorMargin.left; 1475 }), 1476 (g.prototype.getVerticalOriginOffset = function (t) { 1477 var e = this.measurements.anchorSize, 1478 n = this.hasBit(t, E.CornerBit.BOTTOM), 1479 i = this.hasBit(this.anchorCorner, E.CornerBit.BOTTOM); 1480 return n ? (i ? e.height - this.anchorMargin.top : -this.anchorMargin.bottom) : i ? e.height + this.anchorMargin.bottom : this.anchorMargin.top; 1481 }), 1482 (g.prototype.adjustPositionForHoistedElement = function (t) { 1483 var e, 1484 n, 1485 i = this.measurements, 1486 r = i.windowScroll, 1487 o = i.viewportDistance, 1488 s = i.surfaceSize, 1489 a = i.viewportSize, 1490 c = Object.keys(t); 1491 try { 1492 for (var u = h(c), l = u.next(); !l.done; l = u.next()) { 1493 var d = l.value, 1494 p = t[d] || 0; 1495 !this.isHorizontallyCenteredOnViewport || ("left" !== d && "right" !== d) 1496 ? ((p += o[d]), this.isFixedPosition || ("top" === d ? (p += r.y) : "bottom" === d ? (p -= r.y) : "left" === d ? (p += r.x) : (p -= r.x)), (t[d] = p)) 1497 : (t[d] = (a.width - s.width) / 2); 1498 } 1499 } catch (t) { 1500 e = { error: t }; 1501 } finally { 1502 try { 1503 l && !l.done && (n = u.return) && n.call(u); 1504 } finally { 1505 if (e) throw e.error; 1506 } 1507 } 1508 }), 1509 (g.prototype.maybeRestoreFocus = function () { 1510 var t = this, 1511 e = this.adapter.isFocused(), 1512 n = document.activeElement && this.adapter.isElementInContainer(document.activeElement); 1513 (e || n) && 1514 setTimeout(function () { 1515 t.adapter.restoreFocus(); 1516 }, E.numbers.TOUCH_EVENT_WAIT_MS); 1517 }), 1518 (g.prototype.hasBit = function (t, e) { 1519 return Boolean(t & e); 1520 }), 1521 (g.prototype.setBit = function (t, e) { 1522 return t | e; 1523 }), 1524 (g.prototype.unsetBit = function (t, e) { 1525 return t ^ e; 1526 }), 1527 (g.prototype.isFinite = function (t) { 1528 return "number" == typeof t && isFinite(t); 1529 }), 1530 g); 1531 function g(t) { 1532 var e = s.call(this, o(o({}, g.defaultAdapter), t)) || this; 1533 return ( 1534 (e.isSurfaceOpen = !1), 1535 (e.isQuickOpen = !1), 1536 (e.isHoistedElement = !1), 1537 (e.isFixedPosition = !1), 1538 (e.isHorizontallyCenteredOnViewport = !1), 1539 (e.maxHeight = 0), 1540 (e.openAnimationEndTimerId = 0), 1541 (e.closeAnimationEndTimerId = 0), 1542 (e.animationRequestId = 0), 1543 (e.anchorCorner = E.Corner.TOP_START), 1544 (e.originCorner = E.Corner.TOP_START), 1545 (e.anchorMargin = { top: 0, right: 0, bottom: 0, left: 0 }), 1546 (e.position = { x: 0, y: 0 }), 1547 e 1548 ); 1549 } 1550 (e.MDCMenuSurfaceFoundation = c), (e.default = c); 1551 }, 1552 function (t, e, n) { 1553 "use strict"; 1554 Object.defineProperty(e, "__esModule", { value: !0 }
1554), (e.DefaultFocusState = e.numbers = e.strings = e.cssClasses = void 0); 1555 e.cssClasses = { MENU_SELECTED_LIST_ITEM: "mdc-menu-item--selected", MENU_SELECTION_GROUP: "mdc-menu__selection-group", ROOT: "mdc-menu" }; 1556 e.strings = { 1557 ARIA_CHECKED_ATTR: "aria-checked", 1558 ARIA_DISABLED_ATTR: "aria-disabled", 1559 CHECKBOX_SELECTOR: 'input[type="checkbox"]', 1560 LIST_SELECTOR: ".mdc-list,.mdc-deprecated-list", 1561 SELECTED_EVENT: "MDCMenu:selected", 1562 SKIP_RESTORE_FOCUS: "data-menu-item-skip-restore-focus", 1563 }; 1564 var i, r; 1565 (e.numbers = { FOCUS_ROOT_INDEX: -1 }), 1566 ((r = i = i || {})[(r.NONE = 0)] = "NONE"), 1567 (r[(r.LIST_ROOT = 1)] = "LIST_ROOT"), 1568 (r[(r.FIRST_ITEM = 2)] = "FIRST_ITEM"), 1569 (r[(r.LAST_ITEM = 3)] = "LAST_ITEM"), 1570 (e.DefaultFocusState = i); 1571 }, 1572 function (t, e, n) { 1573 "use strict"; 1574 Object.defineProperty(e, "__esModule", { value: !0 }), (e.numbers = e.strings = e.cssClasses = void 0); 1575 e.cssClasses = { CLOSING: "mdc-snackbar--closing", OPEN: "mdc-snackbar--open", OPENING: "mdc-snackbar--opening" }; 1576 e.strings = { 1577 ACTION_SELECTOR: ".mdc-snackbar__action", 1578 ARIA_LIVE_LABEL_TEXT_ATTR: "data-mdc-snackbar-label-text", 1579 CLOSED_EVENT: "MDCSnackbar:closed", 1580 CLOSING_EVENT: "MDCSnackbar:closing", 1581 DISMISS_SELECTOR: ".mdc-snackbar__dismiss", 1582 LABEL_SELECTOR: ".mdc-snackbar__label", 1583 OPENED_EVENT: "MDCSnackbar:opened", 1584 OPENING_EVENT: "MDCSnackbar:opening", 1585 REASON_ACTION: "action", 1586 REASON_DISMISS: "dismiss", 1587 SURFACE_SELECTOR: ".mdc-snackbar__surface", 1588 }; 1589 e.numbers = { 1590 DEFAULT_AUTO_DISMISS_TIMEOUT_MS: 5e3, 1591 INDETERMINATE: -1, 1592 MAX_AUTO_DISMISS_TIMEOUT_MS: 1e4, 1593 MIN_AUTO_DISMISS_TIMEOUT_MS: 4e3, 1594 SNACKBAR_ANIMATION_CLOSE_TIME_MS: 75, 1595 SNACKBAR_ANIMATION_OPEN_TIME_MS: 150, 1596 ARIA_LIVE_DELAY_MS: 1e3, 1597 }; 1598 }, 1599 function (t, e, n) { 1600 "use strict"; 1601 var i, 1602 r = 1603 (this && this.__extends) || 1604 ((i = function (t, e) { 1605 return (i = 1606 Object.setPrototypeOf || 1607 ({ __proto__: [] } instanceof Array && 1608 function (t, e) { 1609 t.__proto__ = e; 1610 }) || 1611 function (t, e) { 1612 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 1613 })(t, e); 1614 }), 1615 function (t, e) { 1616 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 1617 function n() { 1618 this.constructor = t; 1619 } 1620 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 1621 }), 1622 o = 1623 (this && this.__assign) || 1624 function () { 1625 return (o = 1626 Object.assign || 1627 function (t) { 1628 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 1629 return t; 1630 }).apply(this, arguments); 1631 }; 1632 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabIndicatorFoundation = void 0); 1633 var s, 1634 a = n(0), 1635 c = n(104), 1636 u = 1637 ((s = a.MDCFoundation), 1638 r(l, s),
1639 Object.defineProperty(l, "cssClasses", { 1640 get: function () { 1641 return c.cssClasses; 1642 }, 1643 enumerable: !1, 1644 configurable: !0, 1645 }), 1646 Object.defineProperty(l, "strings", { 1647 get: function () { 1648 return c.strings; 1649 }, 1650 enumerable: !1, 1651 configurable: !0, 1652 }), 1653 Object.defineProperty(l, "defaultAdapter", { 1654 get: function () { 1655 return { 1656 addClass: function () {}, 1657 removeClass: function () {}, 1658 computeContentClientRect: function () { 1659 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 1660 }, 1661 setContentStyleProperty: function () {}, 1662 }; 1663 }, 1664 enumerable: !1, 1665 configurable: !0, 1666 }), 1667 (l.prototype.computeContentClientRect = function () { 1668 return this.adapter.computeContentClientRect(); 1669 }), 1670 l); 1671 function l(t) { 1672 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 1673 } 1674 (e.MDCTabIndicatorFoundation = u), (e.default = u); 1675 }, 1676 function (t, e, n) { 1677 "use strict"; 1678 var i; 1679 Object.defineProperty(e, "__esModule", { value: !0 }), 1680 (e.CloseReason = e.selectors = e.events = e.numbers = e.cssClasses = void 0), 1681 (e.cssClasses = { CLOSING: "mdc-banner--closing", OPEN: "mdc-banner--open", OPENING: "mdc-banner--opening" }), 1682 (e.numbers = { BANNER_ANIMATION_CLOSE_TIME_MS: 250, BANNER_ANIMATION_OPEN_TIME_MS: 300 }), 1683 (e.events = { CLOSED: "MDCBanner:closed", CLOSING: "MDCBanner:closing", OPENED: "MDCBanner:opened", OPENING: "MDCBanner:opening" }), 1684 (e.selectors = { CONTENT: ".mdc-banner__content", PRIMARY_ACTION: ".mdc-banner__primary-action", SECONDARY_ACTION: ".mdc-banner__secondary-action", TEXT: ".mdc-banner__text" }), 1685 ((i = e.CloseReason || (e.CloseReason = {}))[(i.PRIMARY = 0)] = "PRIMARY"), 1686 (i[(i.SECONDARY = 1)] = "SECONDARY"), 1687 (i[(i.UNSPECIFIED = 2)] = "UNSPECIFIED"); 1688 }, 1689 function (t, e, n) { 1690 "use strict"; 1691 var s; 1692 Object.defineProperty(e, "__esModule", { value: !0 }), 1693 (e.getNormalizedEventCoords = e.supportsCssVariables = void 0), 1694 (e.supportsCssVariables = function (t, e) { 1695 void 0 === e && (e = !1); 1696 var n, 1697 i = t.CSS; 1698 if ("boolean" == typeof s && !e) return s; 1699 if (!(i && "function" == typeof i.supports)) return !1; 1700 var r = i.supports("--css-vars", "yes"), 1701 o = i.supports("(--css-vars: yes)") && i.supports("color", "#00000000"); 1702 return (n = r || o), e || (s = n), n; 1703 }), 1704 (e.getNormalizedEventCoords = function (t, e, n) { 1705 if (!t) return { x: 0, y: 0 }; 1706 var i, 1707 r, 1708 o = e.x, 1709 s = e.y, 1710 a = o + n.left, 1711 c = s + n.top; 1712 if ("touchstart" === t.type) { 1713 var u = t; 1714 (i = u.changedTouches[0].pageX - a), (r = u.changedTouches[0].pageY - c); 1715 } else { 1716 var l = t; 1717 (i = l.pageX - a), (r = l.pageY - c); 1718 } 1719 return { x: i, y: r }; 1720 }); 1721 }, 1722 function (t, e, n) { 1723 "use strict"; 1724 Object.defineProperty(e, "__esModule", { value: !0 }),
1725 (e.numbers = e.strings = e.cssClasses = void 0), 1726 (e.cssClasses = { 1727 ANIM_CHECKED_INDETERMINATE: "mdc-checkbox--anim-checked-indeterminate", 1728 ANIM_CHECKED_UNCHECKED: "mdc-checkbox--anim-checked-unchecked", 1729 ANIM_INDETERMINATE_CHECKED: "mdc-checkbox--anim-indeterminate-checked", 1730 ANIM_INDETERMINATE_UNCHECKED: "mdc-checkbox--anim-indeterminate-unchecked", 1731 ANIM_UNCHECKED_CHECKED: "mdc-checkbox--anim-unchecked-checked", 1732 ANIM_UNCHECKED_INDETERMINATE: "mdc-checkbox--anim-unchecked-indeterminate", 1733 BACKGROUND: "mdc-checkbox__background", 1734 CHECKED: "mdc-checkbox--checked", 1735 CHECKMARK: "mdc-checkbox__checkmark", 1736 CHECKMARK_PATH: "mdc-checkbox__checkmark-path", 1737 DISABLED: "mdc-checkbox--disabled", 1738 INDETERMINATE: "mdc-checkbox--indeterminate", 1739 MIXEDMARK: "mdc-checkbox__mixedmark", 1740 NATIVE_CONTROL: "mdc-checkbox__native-control", 1741 ROOT: "mdc-checkbox", 1742 SELECTED: "mdc-checkbox--selected", 1743 UPGRADED: "mdc-checkbox--upgraded", 1744 }), 1745 (e.strings = { 1746 ARIA_CHECKED_ATTR: "aria-checked", 1747 ARIA_CHECKED_INDETERMINATE_VALUE: "mixed", 1748 DATA_INDETERMINATE_ATTR: "data-indeterminate", 1749 NATIVE_CONTROL_SELECTOR: ".mdc-checkbox__native-control", 1750 TRANSITION_STATE_CHECKED: "checked", 1751 TRANSITION_STATE_INDETERMINATE: "indeterminate", 1752 TRANSITION_STATE_INIT: "init", 1753 TRANSITION_STATE_UNCHECKED: "unchecked", 1754 }), 1755 (e.numbers = { ANIM_END_LATCH_MS: 250 }); 1756 }, 1757 function (t, e, n) { 1758 "use strict"; 1759 var i, 1760 r = 1761 (this && this.__extends) || 1762 ((i = function (t, e) { 1763 return (i = 1764 Object.setPrototypeOf || 1765 ({ __proto__: [] } instanceof Array && 1766 function (t, e) { 1767 t.__proto__ = e; 1768 }) || 1769 function (t, e) { 1770 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 1771 })(t, e); 1772 }), 1773 function (t, e) { 1774 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 1775 function n() { 1776 this.constructor = t; 1777 } 1778 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 1779 }), 1780 o = 1781 (this && this.__assign) || 1782 function () { 1783 return (o = 1784 Object.assign || 1785 function (t) { 1786 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 1787 return t; 1788 }).apply(this, arguments); 1789 }; 1790 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChipFoundation = void 0); 1791 var s, 1792 a, 1793 c = n(0), 1794 u = n(13), 1795 l = { bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 0 }; 1796 ((a = s = s || {})[(a.SHOULD_FOCUS = 0)] = "SHOULD_FOCUS"), (a[(a.SHOULD_NOT_FOCUS = 1)] = "SHOULD_NOT_FOCUS"); 1797 var d, 1798 p = 1799 ((d = c.MDCFoundation), 1800 r(h, d), 1801 Object.defineProperty(h, "strings", { 1802 get: function () { 1803 return u.strings; 1804 }, 1805 enumerable: !1, 1806 configurable: !0, 1807 }),
1808 Object.defineProperty(h, "cssClasses", { 1809 get: function () { 1810 return u.cssClasses; 1811 }, 1812 enumerable: !1, 1813 configurable: !0, 1814 }), 1815 Object.defineProperty(h, "defaultAdapter", { 1816 get: function () { 1817 return { 1818 addClass: function () {}, 1819 addClassToLeadingIcon: function () {}, 1820 eventTargetHasClass: function () { 1821 return !1; 1822 }, 1823 focusPrimaryAction: function () {}, 1824 focusTrailingAction: function () {}, 1825 getAttribute: function () { 1826 return null; 1827 }, 1828 getCheckmarkBoundingClientRect: function () { 1829 return l; 1830 }, 1831 getComputedStyleValue: function () { 1832 return ""; 1833 }, 1834 getRootBoundingClientRect: function () { 1835 return l; 1836 }, 1837 hasClass: function () { 1838 return !1; 1839 }, 1840 hasLeadingIcon: function () { 1841 return !1; 1842 }, 1843 isRTL: function () { 1844 return !1; 1845 }, 1846 isTrailingActionNavigable: function () { 1847 return !1; 1848 }, 1849 notifyEditFinish: function () {}, 1850 notifyEditStart: function () {}, 1851 notifyInteraction: function () {}, 1852 notifyNavigation: function () {}, 1853 notifyRemoval: function () {}, 1854 notifySelection: function () {}, 1855 notifyTrailingIconInteraction: function () {}, 1856 removeClass: function () {}, 1857 removeClassFromLeadingIcon: function () {}, 1858 removeTrailingActionFocus: function () {}, 1859 setPrimaryActionAttr: function () {}, 1860 setStyleProperty: function () {}, 1861 }; 1862 }, 1863 enumerable: !1, 1864 configurable: !0, 1865 }), 1866 (h.prototype.isSelected = function () { 1867 return this.adapter.hasClass(u.cssClasses.SELECTED); 1868 }), 1869 (h.prototype.isEditable = function () { 1870 return this.adapter.hasClass(u.cssClasses.EDITABLE); 1871 }), 1872 (h.prototype.isEditing = function () { 1873 return this.adapter.hasClass(u.cssClasses.EDITING); 1874 }), 1875 (h.prototype.setSelected = function (t) { 1876 this.setSelectedImpl(t), this.notifySelection(t); 1877 }), 1878 (h.prototype.setSelectedFromChipSet = function (t, e) { 1879 this.setSelectedImpl(t), e && this.notifyIgnoredSelection(t); 1880 }), 1881 (h.prototype.getShouldRemoveOnTrailingIconClick = function () { 1882 return this.shouldRemoveOnTrailingIconClick; 1883 }), 1884 (h.prototype.setShouldRemoveOnTrailingIconClick = function (t) { 1885 this.shouldRemoveOnTrailingIconClick = t; 1886 }), 1887 (h.prototype.setShouldFocusPrimaryActionOnClick = function (t) { 1888 this.shouldFocusPrimaryActionOnClick = t; 1889 }), 1890 (h.prototype.getDimensions = function () { 1891 function t() { 1892 return e.adapter.getRootBoundingClientRect(); 1893 } 1894 var e = this; 1895 if (!this.adapter.hasLeadingIcon()) { 1896 var n = e.adapter.getCheckmarkBoundingClientRect(); 1897 if (n) { 1898 var i = t(); 1899 return { bottom: i.bottom, height: i.height, left: i.left, right: i.right, top: i.top, width: i.width + n.height }; 1900 } 1901 } 1902 return t(); 1903 }), 1904 (h.prototype.beginExit = function () {
1905 this.adapter.addClass(u.cssClasses.CHIP_EXIT); 1906 }), 1907 (h.prototype.handleClick = function () { 1908 this.adapter.notifyInteraction(), this.setPrimaryActionFocusable(this.getFocusBehavior()); 1909 }), 1910 (h.prototype.handleDoubleClick = function () { 1911 this.isEditable() && this.startEditing(); 1912 }), 1913 (h.prototype.handleTransitionEnd = function (t) { 1914 var e = this, 1915 n = this.adapter.eventTargetHasClass(t.target, u.cssClasses.CHIP_EXIT), 1916 i = "width" === t.propertyName, 1917 r = "opacity" === t.propertyName; 1918 if (n && r) { 1919 var o = this.adapter.getComputedStyleValue("width"); 1920 requestAnimationFrame(function () { 1921 e.adapter.setStyleProperty("width", o), 1922 e.adapter.setStyleProperty("padding", "0"), 1923 e.adapter.setStyleProperty("margin", "0"), 1924 requestAnimationFrame(function () { 1925 e.adapter.setStyleProperty("width", "0"); 1926 }); 1927 }); 1928 } else { 1929 if (n && i) { 1930 this.removeFocus(); 1931 var s = this.adapter.getAttribute(u.strings.REMOVED_ANNOUNCEMENT_ATTRIBUTE); 1932 this.adapter.notifyRemoval(s); 1933 } 1934 if (r) { 1935 var a = this.adapter.eventTargetHasClass(t.target, u.cssClasses.LEADING_ICON) && this.adapter.hasClass(u.cssClasses.SELECTED), 1936 c = this.adapter.eventTargetHasClass(t.target, u.cssClasses.CHECKMARK) && !this.adapter.hasClass(u.cssClasses.SELECTED); 1937 a ? this.adapter.addClassToLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON) : c && this.adapter.removeClassFromLeadingIcon(u.cssClasses.HIDDEN_LEADING_ICON); 1938 } 1939 } 1940 }), 1941 (h.prototype.handleFocusIn = function (t) { 1942 this.eventFromPrimaryAction(t) && this.adapter.addClass(u.cssClasses.PRIMARY_ACTION_FOCUSED); 1943 }), 1944 (h.prototype.handleFocusOut = function (t) { 1945 this.eventFromPrimaryAction(t) && (this.isEditing() && this.finishEditing(), this.adapter.removeClass(u.cssClasses.PRIMARY_ACTION_FOCUSED)); 1946 }), 1947 (h.prototype.handleTrailingActionInteraction = function () { 1948 this.adapter.notifyTrailingIconInteraction(), this.removeChip(); 1949 }), 1950 (h.prototype.handleKeydown = function (t) { 1951 if (!this.isEditing()) 1952 return ( 1953 this.isEditable() && this.shouldStartEditing(t) && (t.preventDefault(), this.startEditing()), 1954 this.shouldNotifyInteraction(t) 1955 ? (this.adapter.notifyInteraction(), void this.setPrimaryActionFocusable(this.getFocusBehavior())) 1956 : this.isDeleteAction(t) 1957 ? (t.preventDefault(), void this.removeChip()) 1958 : void (u.navigationKeys.has(t.key) && (t.preventDefault(), this.focusNextAction(t.key, u.EventSource.PRIMARY))) 1959 ); 1960 this.shouldFinishEditing(t) && (t.preventDefault(), this.finishEditing()); 1961 }), 1962 (h.prototype.handleTrailingActionNavigation = function (t) {
1963 this.focusNextAction(t.detail.key, u.EventSource.TRAILING); 1964 }), 1965 (h.prototype.removeFocus = function () { 1966 this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX, "-1"), this.adapter.removeTrailingActionFocus(); 1967 }), 1968 (h.prototype.focusPrimaryAction = function () { 1969 this.setPrimaryActionFocusable(s.SHOULD_FOCUS); 1970 }), 1971 (h.prototype.focusTrailingAction = function () { 1972 if (this.adapter.isTrailingActionNavigable()) return this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX, "-1"), void this.adapter.focusTrailingAction(); 1973 this.focusPrimaryAction(); 1974 }), 1975 (h.prototype.setPrimaryActionFocusable = function (t) { 1976 this.adapter.setPrimaryActionAttr(u.strings.TAB_INDEX, "0"), t === s.SHOULD_FOCUS && this.adapter.focusPrimaryAction(), this.adapter.removeTrailingActionFocus(); 1977 }), 1978 (h.prototype.getFocusBehavior = function () { 1979 return this.shouldFocusPrimaryActionOnClick ? s.SHOULD_FOCUS : s.SHOULD_NOT_FOCUS; 1980 }), 1981 (h.prototype.focusNextAction = function (t, e) { 1982 var n = this.adapter.isTrailingActionNavigable(), 1983 i = this.getDirection(t); 1984 !u.jumpChipKeys.has(t) && n 1985 ? e !== u.EventSource.PRIMARY || i !== u.Direction.RIGHT 1986 ? e !== u.EventSource.TRAILING || i !== u.Direction.LEFT 1987 ? this.adapter.notifyNavigation(t, u.EventSource.NONE) 1988 : this.focusPrimaryAction() 1989 : this.focusTrailingAction() 1990 : this.adapter.notifyNavigation(t, e); 1991 }), 1992 (h.prototype.getDirection = function (t) { 1993 var e = this.adapter.isRTL(), 1994 n = t === u.strings.ARROW_LEFT_KEY || t === u.strings.IE_ARROW_LEFT_KEY, 1995 i = t === u.strings.ARROW_RIGHT_KEY || t === u.strings.IE_ARROW_RIGHT_KEY; 1996 return (!e && n) || (e && i) ? u.Direction.LEFT : u.Direction.RIGHT; 1997 }), 1998 (h.prototype.removeChip = function () { 1999 this.shouldRemoveOnTrailingIconClick && this.beginExit(); 2000 }), 2001 (h.prototype.shouldStartEditing = function (t) { 2002 return this.eventFromPrimaryAction(t) && t.key === u.strings.ENTER_KEY; 2003 }), 2004 (h.prototype.shouldFinishEditing = function (t) { 2005 return t.key === u.strings.ENTER_KEY; 2006 }), 2007 (h.prototype.shouldNotifyInteraction = function (t) { 2008 return t.key === u.strings.ENTER_KEY || t.key === u.strings.SPACEBAR_KEY; 2009 }), 2010 (h.prototype.isDeleteAction = function (t) { 2011 return this.adapter.hasClass(u.cssClasses.DELETABLE) && (t.key === u.strings.BACKSPACE_KEY || t.key === u.strings.DELETE_KEY || t.key === u.strings.IE_DELETE_KEY); 2012 }), 2013 (h.prototype.setSelectedImpl = function (t) { 2014 t 2015 ? (this.adapter.addClass(u.cssClasses.SELECTED), this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED, "true")) 2016 : (this.adapter.removeClass(u.cssClasses.SELECTED), this.adapter.setPrimaryActionAttr(u.strings.ARIA_CHECKED, "false")); 2017 }), 2018 (h.prototype.notifySelection = function (t) { 2019 this.adapter.notifySelection(t, !1); 2020 }), 2021 (h.prototype.notifyIgnoredSelection = function (t) { 2022 this.adapter.notifySelection(t, !0); 2023 }), 2024 (h.prototype.eventFromPrimaryAction = function (t) { 2025 return this.adapter.eventTargetHasClass(t.target, u.cssClasse
2025s.PRIMARY_ACTION); 2026 }), 2027 (h.prototype.startEditing = function () { 2028 this.adapter.addClass(u.cssClasses.EDITING), this.adapter.notifyEditStart(); 2029 }), 2030 (h.prototype.finishEditing = function () { 2031 this.adapter.removeClass(u.cssClasses.EDITING), this.adapter.notifyEditFinish(); 2032 }), 2033 h); 2034 function h(t) { 2035 var e = d.call(this, o(o({}, h.defaultAdapter), t)) || this; 2036 return (e.shouldRemoveOnTrailingIconClick = !0), (e.shouldFocusPrimaryActionOnClick = !0), e; 2037 } 2038 (e.MDCChipFoundation = p), (e.default = p); 2039 }, 2040 function (t, e, n) { 2041 "use strict"; 2042 var i; 2043 Object.defineProperty(e, "__esModule", { value: !0 }), 2044 (e.events = e.SortValue = e.strings = e.messages = e.selectors = e.dataAttributes = e.attributes = e.cssClasses = void 0), 2045 (e.cssClasses = { 2046 CELL: "mdc-data-table__cell", 2047 CELL_NUMERIC: "mdc-data-table__cell--numeric", 2048 CONTENT: "mdc-data-table__content", 2049 HEADER_CELL: "mdc-data-table__header-cell", 2050 HEADER_CELL_LABEL: "mdc-data-table__header-cell-label", 2051 HEADER_CELL_SORTED: "mdc-data-table__header-cell--sorted", 2052 HEADER_CELL_SORTED_DESCENDING: "mdc-data-table__header-cell--sorted-descending", 2053 HEADER_CELL_WITH_SORT: "mdc-data-table__header-cell--with-sort", 2054 HEADER_CELL_WRAPPER: "mdc-data-table__header-cell-wrapper", 2055 HEADER_ROW: "mdc-data-table__header-row", 2056 HEADER_ROW_CHECKBOX: "mdc-data-table__header-row-checkbox", 2057 IN_PROGRESS: "mdc-data-table--in-progress", 2058 LINEAR_PROGRESS: "mdc-data-table__linear-progress", 2059 PAGINATION_ROWS_PER_PAGE_LABEL: "mdc-data-table__pagination-rows-per-page-label", 2060 PAGINATION_ROWS_PER_PAGE_SELECT: "mdc-data-table__pagination-rows-per-page-select", 2061 PROGRESS_INDICATOR: "mdc-data-table__progress-indicator", 2062 ROOT: "mdc-data-table", 2063 ROW: "mdc-data-table__row", 2064 ROW_CHECKBOX: "mdc-data-table__row-checkbox", 2065 ROW_SELECTED: "mdc-data-table__row--selected", 2066 SORT_ICON_BUTTON: "mdc-data-table__sort-icon-button", 2067 SORT_STATUS_LABEL: "mdc-data-table__sort-status-label", 2068 TABLE_CONTAINER: "mdc-data-table__table-container", 2069 }), 2070 (e.attributes = { ARIA_SELECTED: "aria-selected", ARIA_SORT: "aria-sort" }), 2071 (e.dataAttributes = { COLUMN_ID: "data-column-id", ROW_ID: "data-row-id" }), 2072 (e.selectors = { 2073 CONTENT: "." + e.cssClasses.CONTENT, 2074 HEADER_CELL: "." + e.cssClasses.HEADER_CELL, 2075 HEADER_CELL_WITH_SORT: "." + e.cssClasses.HEADER_CELL_WITH_SORT, 2076 HEADER_ROW: "." + e.cssClasses.HEADER_ROW, 2077 HEADER_ROW_CHECKBOX: "." + e.cssClasses.HEADER_ROW_CHECKBOX, 2078 PROGRESS_INDICATOR: "." + e.cssClasses.PROGRESS_INDICATOR, 2079 ROW: "." + e.cssClasses.ROW, 2080 ROW_CHECKBOX: "." + e.cssClasses.ROW_CHECKBOX, 2081 ROW_SELECTED: "." + e.cssClasses.ROW_SELECTED, 2082 SORT_ICON_BUTTON: "." + e.cssClasses.SORT_ICON_BUTTON, 2083 SORT_STATUS_LABEL: "." + e.cssClasses.SORT_STATUS_LABEL, 2084 }), 2085 (e.messages = { SORTED_IN_DESCENDING: "Sorted in descending order", SORTED_IN_ASCENDING: "Sorted in ascending order" }), 2086 (e.strings = { 2087 ARIA_SELECTED: e.attributes.ARIA_SELECTED, 2088 ARIA_SORT: e.attributes.ARIA_SORT, 2089 DATA_ROW_ID_ATTR: e.dataAttributes.ROW_ID, 2090 HEADER_ROW_CHECKBOX_SELECTOR: e.selectors.HEADER_ROW_CHECKBOX, 2091 ROW_CHECKBOX_SELECTOR: e.selectors.ROW_CHECKBOX, 2092 ROW_SELECTED_SELECTOR: e.selectors.ROW_SELECTED, 2093 ROW_SELECTOR: e.selectors.ROW, 2094 }), 2095 ((i = e.SortValue || (e.SortValue = {})).ASCENDING = "ascending"), 2096 (i.DESCENDING = "descending"), 2097 (i.NONE = "none"), 2098 (i.OTHER = "other"), 2099 (e.events = { 2100 ROW_CLICK: "MDCDataTable:rowClick", 2101 ROW_SELECTION_CHANGED: "MDCDataTable:rowSelectionChanged", 2102 SELECTED_ALL: "MDCDataTable:selectedAll", 2103 SORTED: "MDCDataTable:sorted", 2104 UNSELECTED_ALL: "MDCDataTable:unselectedAll", 2105 }); 2106 }, 2107 function (t, e, n) { 2108 "use strict"; 2109 Object.defineProperty(e, "__esModule", { value: !0 }), (e.AnimationFrame = void 0); 2110 var i = 2111 ((r.prototype.request = function (e, n) { 2112 var i = this; 2113 this.cancel(e); 2114 var t = requestAnimationFrame(function (t) { 2115 i.rafIDs.delete(e), n(t); 2116 }); 2117 this.rafIDs.set(e, t); 2118 }), 2119 (r.prototype.cancel = function (t) { 2120 var e = this.rafIDs.get(t); 2121 e && (cancelAnimationFrame(e), this.rafIDs.delete(t)); 2122 }), 2123 (r.prototype.cancelAll = function () { 2124 var n = this; 2125 this.rafIDs.forEach(function (t, e) { 2126 n.cancel(e); 2127 }); 2128 }), 2129 (r.prototype.getQueue = function () { 2130 var n = []; 2131 return ( 2132 this.rafIDs.forEach(function (t, e) { 2133 n.push(e); 2134 }), 2135 n 2136 ); 2137 }), 2138 r); 2139 function r() { 2140 this.rafIDs = new Map(); 2141 } 2142 e.AnimationFrame = i; 2143 }, 2144 function (t, e, n) { 2145 "use strict"; 2146 var i, 2147 r = 2148 (this && this.__extends) || 2149 ((i = function (t, e) { 2150 return (i = 2151 Object.setPrototypeOf || 2152 ({ __proto__: [] } instanceof Array && 2153 function (t, e) { 2154 t.__proto__ = e; 2155 }) || 2156 function (t, e) { 2157 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 2158 })(t, e); 2159 }), 2160 function (t, e) { 2161 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 2162 function n() { 2163 this.constructor = t; 2164 } 2165 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 2166 }); 2167 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCList = void 0); 2168 var o, 2169 s = n(1), 2170 a = n(3), 2171 c = n(7), 2172 u = n(25), 2173 l = 2174 ((o = s.MDCComponent), 2175 r(d, o), 2176 Object.defineProperty(d.prototype, "vertical", { 2177 set: function (t) { 2178 this.foundation.setVerticalOrientation(t); 2179 }, 2180 enumerable: !1, 2181 configurable: !0, 2182 }), 2183 Object.defineProperty(d.prototype, "listElements", { 2184 get: function () { 2185 return Array.from(this.root.querySelectorAll("." + this.classNameMap[c.cssClasse
2185s.LIST_ITEM_CLASS])); 2186 }, 2187 enumerable: !1, 2188 configurable: !0, 2189 }), 2190 Object.defineProperty(d.prototype, "wrapFocus", { 2191 set: function (t) { 2192 this.foundation.setWrapFocus(t); 2193 }, 2194 enumerable: !1, 2195 configurable: !0, 2196 }), 2197 Object.defineProperty(d.prototype, "typeaheadInProgress", { 2198 get: function () { 2199 return this.foundation.isTypeaheadInProgress(); 2200 }, 2201 enumerable: !1, 2202 configurable: !0, 2203 }), 2204 Object.defineProperty(d.prototype, "hasTypeahead", { 2205 set: function (t) { 2206 this.foundation.setHasTypeahead(t); 2207 }, 2208 enumerable: !1, 2209 configurable: !0, 2210 }), 2211 Object.defineProperty(d.prototype, "singleSelection", { 2212 set: function (t) { 2213 this.foundation.setSingleSelection(t); 2214 }, 2215 enumerable: !1, 2216 configurable: !0, 2217 }), 2218 Object.defineProperty(d.prototype, "selectedIndex", { 2219 get: function () { 2220 return this.foundation.getSelectedIndex(); 2221 }, 2222 set: function (t) { 2223 this.foundation.setSelectedIndex(t); 2224 }, 2225 enumerable: !1, 2226 configurable: !0, 2227 }), 2228 (d.attachTo = function (t) { 2229 return new d(t); 2230 }), 2231 (d.prototype.initialSyncWithDOM = function () { 2232 (this.isEvolutionEnabled = c.evolutionAttribute in this.root.dataset), 2233 this.isEvolutionEnabled 2234 ? (this.classNameMap = c.evolutionClassNameMap) 2235 : a.matches(this.root, c.strings.DEPRECATED_SELECTOR) 2236 ? (this.classNameMap = c.deprecatedClassNameMap) 2237 : (this.classNameMap = Object.values(c.cssClasses).reduce(function (t, e) { 2238 return (t[e] = e), t; 2239 }, {})), 2240 (this.handleClick = this.handleClickEvent.bind(this)), 2241 (this.handleKeydown = this.handleKeydownEvent.bind(this)), 2242 (this.focusInEventListener = this.handleFocusInEvent.bind(this)), 2243 (this.focusOutEventListener = this.handleFocusOutEvent.bind(this)), 2244 this.listen("keydown", this.handleKeydown), 2245 this.listen("click", this.handleClick), 2246 this.listen("focusin", this.focusInEventListener), 2247 this.listen("focusout", this.focusOutEventListener), 2248 this.layout(), 2249 this.initializeListType(), 2250 this.ensureFocusable(); 2251 }), 2252 (d.prototype.destroy = function () { 2253 this.unlisten("keydown", this.handleKeydown), this.unlisten("click", this.handleClick), this.unlisten("focusin", this.focusInEventListener), this.unlisten("focusout", this.focusOutEventListener); 2254 }), 2255 (d.prototype.layout = function () { 2256 var t = this.root.getAttribute(c.strings.ARIA_ORIENTATION); 2257 this.vertical = t !== c.strings.ARIA_ORIENTATION_HORIZONTAL; 2258 var e = "." + this.classNameMap[c.cssClasse
2258s.LIST_ITEM_CLASS] + ":not([tabindex])", 2259 n = c.strings.FOCUSABLE_CHILD_ELEMENTS, 2260 i = this.root.querySelectorAll(e); 2261 i.length && 2262 Array.prototype.forEach.call(i, function (t) { 2263 t.setAttribute("tabindex", "-1"); 2264 }); 2265 var r = this.root.querySelectorAll(n); 2266 r.length && 2267 Array.prototype.forEach.call(r, function (t) { 2268 t.setAttribute("tabindex", "-1"); 2269 }), 2270 this.isEvolutionEnabled && this.foundation.setUseSelectedAttribute(!0), 2271 this.foundation.layout(); 2272 }), 2273 (d.prototype.getPrimaryText = function (t) { 2274 var e, 2275 n = t.querySelector("." + this.classNameMap[c.cssClasses.LIST_ITEM_PRIMARY_TEXT_CLASS]); 2276 if (this.isEvolutionEnabled || n) return null !== (e = null == n ? void 0 : n.textContent) && void 0 !== e ? e : ""; 2277 var i = t.querySelector("." + this.classNameMap[c.cssClasses.LIST_ITEM_TEXT_CLASS]); 2278 return (i && i.textContent) || ""; 2279 }), 2280 (d.prototype.initializeListType = function () { 2281 var e = this; 2282 if (((this.isInteractive = a.matches(this.root, c.strings.ARIA_INTERACTIVE_ROLES_SELECTOR)), this.isEvolutionEnabled && this.isInteractive)) { 2283 var t = Array.from(this.root.querySelectorAll(c.strings.SELECTED_ITEM_SELECTOR), function (t) { 2284 return e.listElements.indexOf(t); 2285 }); 2286 a.matches(this.root, c.strings.ARIA_MULTI_SELECTABLE_SELECTOR) ? (this.selectedIndex = t) : 0 < t.length && (this.selectedIndex = t[0]); 2287 } else { 2288 var n = this.root.querySelectorAll(c.strings.ARIA_ROLE_CHECKBOX_SELECTOR), 2289 i = this.root.querySelector(c.strings.ARIA_CHECKED_RADIO_SELECTOR); 2290 if (n.length) { 2291 var r = this.root.querySelectorAll(c.strings.ARIA_CHECKED_CHECKBOX_SELECTOR); 2292 this.selectedIndex = Array.from(r, function (t) { 2293 return e.listElements.indexOf(t); 2294 }); 2295 } else i && (this.selectedIndex = this.listElements.indexOf(i)); 2296 } 2297 }), 2298 (d.prototype.setEnabled = function (t, e) { 2299 this.foundation.setEnabled(t, e); 2300 }), 2301 (d.prototype.typeaheadMatchItem = function (t, e) { 2302 return this.foundation.typeaheadMatchItem(t, e, !0); 2303 }), 2304 (d.prototype.getDefaultFoundation = function () { 2305 var r = this, 2306 t = { 2307 addClassForElementIndex: function (t, e) { 2308 var n = r.listElements[t]; 2309 n && n.classList.add(r.classNameMap[e]); 2310 }, 2311 focusItemAtIndex: function (t) { 2312 var e = r.listElements[t]; 2313 e && e.focus(); 2314 }, 2315 getAttributeForElementIndex: function (t, e) { 2316 return r.listElements[t].getAttribute(e); 2317 }, 2318 getFocusedElementIndex: function () { 2319 return r.listElements.indexOf(document.activeElement); 2320 }, 2321 getListItemCount: function () { 2322 return r.listElements.length; 2323 }, 2324 getPrimaryTextAtIndex: function (t) { 2325 return r.getPrimaryText(r.listElements[t]); 2326 }, 2327 hasCheckboxAtIndex: function (t) { 2328 return !!r.listElements[t].querySelector(c.strings.CHECKBOX_SELECTOR); 2329 }, 2330 hasRadioAtIndex: function (t) { 2331 return !!r.listElements[t].querySelector(c.strings.RADIO_SELECTOR); 2332 }, 2333 isCheckboxCheckedAtIndex: function (t) { 2334 return r.listElements[t].querySelector(c.strings.CHECKBOX_SELECTOR).checked; 2335 }, 2336 isFocusInsideList: function () { 2337 return r.root !== document.activeElement && r.root.contains(document.activeElement); 2338 }, 2339 isRootFocused: function () { 2340 return document.activeElement === r.root; 2341 }, 2342 listItemAtIndexHasClass: function (t, e) { 2343 return r.listElements[t].classList.contains(r.classNameMap[e]); 2344 }, 2345 notifyAction: function (t) { 2346 r.emit(c.strings.ACTION_EVENT, { index: t }, !0); 2347 }, 2348 removeClassForElementIndex: function (t, e) { 2349 var n = r.listElements[t]; 2350 n && n.classList.remove(r.classNameMap[e]); 2351 }, 2352 setAttributeForElementIndex: function (t, e, n) { 2353 var i = r.listElements[t]; 2354 i && i.setAttribute(e, n); 2355 }, 2356 setCheckedCheckboxOrRadioAtIndex: function (t, e) { 2357 var n = r.listElements[t].querySelector(c.strings.CHECKBOX_RADIO_SELECTOR); 2358 n.checked = e; 2359 var i = document.createEvent("Event"); 2360 i.initEvent("change", !0, !0), n.dispatchEvent(i); 2361 }, 2362 setTabIndexForListItemChildren: function (t, e) { 2363 var n = r.listElements[t], 2364 i = c.strings.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX; 2365 Array.prototype.forEach.call(n.querySelectorAll(i), function (t) { 2366 t.setAttribute("tabindex", e); 2367 }); 2368 }, 2369 }; 2370 return new u.MDCListFoundation(t); 2371 }), 2372 (d.prototype.ensureFocusable = function () { 2373 if (this.isEvolutionEnabled && this.isInteractive && !this.root.querySelector("." + this.classNameMap[c.cssClasse
2373s.LIST_ITEM_CLASS] + '[tabindex="0"]')) { 2374 var t = this.initialFocusIndex(); 2375 -1 !== t && (this.listElements[t].tabIndex = 0); 2376 } 2377 }), 2378 (d.prototype.initialFocusIndex = function () { 2379 if (this.selectedIndex instanceof Array && 0 < this.selectedIndex.length) return this.selectedIndex[0]; 2380 if ("number" == typeof this.selectedIndex && this.selectedIndex !== c.numbers.UNSET_INDEX) return this.selectedIndex; 2381 var t = this.root.querySelector("." + this.classNameMap[c.cssClasses.LIST_ITEM_CLASS] + ":not(." + this.classNameMap[c.cssClasses.LIST_ITEM_DISABLED_CLASS] + ")"); 2382 return null === t ? -1 : this.getListItemIndex(t); 2383 }), 2384 (d.prototype.getListItemIndex = function (t) { 2385 var e = a.closest(t, "." + this.classNameMap[c.cssClasses.LIST_ITEM_CLASS] + ", ." + this.classNameMap[c.cssClasses.ROOT]); 2386 return e && a.matches(e, "." + this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]) ? this.listElements.indexOf(e) : -1; 2387 }), 2388 (d.prototype.handleFocusInEvent = function (t) { 2389 var e = this.getListItemIndex(t.target); 2390 this.foundation.handleFocusIn(e); 2391 }), 2392 (d.prototype.handleFocusOutEvent = function (t) { 2393 var e = this.getListItemIndex(t.target); 2394 this.foundation.handleFocusOut(e); 2395 }), 2396 (d.prototype.handleKeydownEvent = function (t) { 2397 var e = this.getListItemIndex(t.target), 2398 n = t.target; 2399 this.foundation.handleKeydown(t, n.classList.contains(this.classNameMap[c.cssClasses.LIST_ITEM_CLASS]), e); 2400 }), 2401 (d.prototype.handleClickEvent = function (t) { 2402 var e = this.getListItemIndex(t.target), 2403 n = t.target, 2404 i = !a.matches(n, c.strings.CHECKBOX_RADIO_SELECTOR); 2405 this.foundation.handleClick(e, i); 2406 }), 2407 d); 2408 function d() { 2409 return (null !== o && o.apply(this, arguments)) || this; 2410 } 2411 e.MDCList = l; 2412 }, 2413 function (t, e, n) { 2414 "use strict"; 2415 var i, 2416 r = 2417 (this && this.__extends) || 2418 ((i = function (t, e) { 2419 return (i = 2420 Object.setPrototypeOf || 2421 ({ __proto__: [] } instanceof Array && 2422 function (t, e) { 2423 t.__proto__ = e; 2424 }) || 2425 function (t, e) { 2426 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 2427 })(t, e); 2428 }), 2429 function (t, e) { 2430 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 2431 function n() { 2432 this.constructor = t; 2433 } 2434 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 2435 }), 2436 o = 2437 (this && this.__assign) || 2438 function () { 2439 return (o = 2440 Object.assign || 2441 function (t) { 2442 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 2443 return t; 2444 }).apply(this, arguments); 2445 }, 2446 s = 2447 (this && this.__createBinding) || 2448 (Object.create 2449 ? function (t, e, n, i) { 2450 void 0 === i && (i = n), 2451 Object.defineProperty(t, i, { 2452 enumerable: !0, 2453 get: function () { 2454 return e[n]; 2455 }, 2456 }); 2457 } 2458 : function (t, e, n, i) { 2459 void 0 === i && (i = n), (t[i] = e[n]); 2460 }), 2461 a = 2462 (this && this.__setModuleDefault) || 2463 (Object.create 2464 ? function (t, e) { 2465 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 2466 } 2467 : function (t, e) { 2468 t.default = e; 2469 }), 2470 c = 2471 (this && this.__importStar) || 2472 function (t) { 2473 if (t && t.__esModule) return t; 2474 var e = {}; 2475 if (null != t) for (var n in t) "default"
2475!== n && Object.prototype.hasOwnProperty.call(t, n) && s(e, t, n); 2476 return a(e, t), e; 2477 }; 2478 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCListFoundation = void 0); 2479 var u = n(0), 2480 C = n(6), 2481 E = n(7), 2482 g = n(64), 2483 _ = c(n(156)); 2484 var l, 2485 d = 2486 ((l = u.MDCFoundation), 2487 r(p, l), 2488 Object.defineProperty(p, "strings", { 2489 get: function () { 2490 return E.strings; 2491 }, 2492 enumerable: !1, 2493 configurable: !0, 2494 }), 2495 Object.defineProperty(p, "cssClasses", { 2496 get: function () { 2497 return E.cssClasses; 2498 }, 2499 enumerable: !1, 2500 configurable: !0, 2501 }), 2502 Object.defineProperty(p, "numbers", { 2503 get: function () { 2504 return E.numbers; 2505 }, 2506 enumerable: !1, 2507 configurable: !0, 2508 }), 2509 Object.defineProperty(p, "defaultAdapter", { 2510 get: function () { 2511 return { 2512 addClassForElementIndex: function () {}, 2513 focusItemAtIndex: function () {}, 2514 getAttributeForElementIndex: function () { 2515 return null; 2516 }, 2517 getFocusedElementIndex: function () { 2518 return 0; 2519 }, 2520 getListItemCount: function () { 2521 return 0; 2522 }, 2523 hasCheckboxAtIndex: function () { 2524 return !1; 2525 }, 2526 hasRadioAtIndex: function () { 2527 return !1; 2528 }, 2529 isCheckboxCheckedAtIndex: function () { 2530 return !1; 2531 }, 2532 isFocusInsideList: function () { 2533 return !1; 2534 }, 2535 isRootFocused: function () { 2536 return !1; 2537 }, 2538 listItemAtIndexHasClass: function () { 2539 return !1; 2540 }, 2541 notifyAction: function () {}, 2542 removeClassForElementIndex: function () {}, 2543 setAttributeForElementIndex: function () {}, 2544 setCheckedCheckboxOrRadioAtIndex: function () {}, 2545 setTabIndexForListItemChildren: function () {}, 2546 getPrimaryTextAtIndex: function () { 2547 return ""; 2548 }, 2549 }; 2550 }, 2551 enumerable: !1, 2552 configurable: !0, 2553 }), 2554 (p.prototype.layout = function () { 2555 0 !== this.adapter.getListItemCount() && 2556 (this.adapter.hasCheckboxAtIndex(0) ? (this.isCheckboxList = !0) : this.adapter.hasRadioAtIndex(0) ? (this.isRadioList = !0) : this.maybeInitializeSingleSelection(), 2557 this.hasTypeahead && (this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex())); 2558 }), 2559 (p.prototype.getFocusedItemIndex = function () { 2560 return this.focusedItemIndex; 2561 }), 2562 (p.prototype.setWrapFocus = function (t) { 2563 this.wrapFocus = t; 2564 }), 2565 (p.prototype.setVerticalOrientation = function (t) { 2566 this.isVertical = t; 2567 }), 2568 (p.prototype.setSingleSelection = function (t) { 2569 (this.isSingleSelectionList = t) && (this.maybeInitializeSingleSelection(), (this.selectedIndex = this.get
2569SelectedIndexFromDOM())); 2570 }), 2571 (p.prototype.maybeInitializeSingleSelection = function () { 2572 var t = this.getSelectedIndexFromDOM(); 2573 t !== E.numbers.UNSET_INDEX && (this.adapter.listItemAtIndexHasClass(t, E.cssClasses.LIST_ITEM_ACTIVATED_CLASS) && this.setUseActivatedClass(!0), (this.isSingleSelectionList = !0), (this.selectedIndex = t)); 2574 }), 2575 (p.prototype.getSelectedIndexFromDOM = function () { 2576 for (var t = E.numbers.UNSET_INDEX, e = this.adapter.getListItemCount(), n = 0; n < e; n++) { 2577 var i = this.adapter.listItemAtIndexHasClass(n, E.cssClasses.LIST_ITEM_SELECTED_CLASS), 2578 r = this.adapter.listItemAtIndexHasClass(n, E.cssClasses.LIST_ITEM_ACTIVATED_CLASS); 2579 if (i || r) { 2580 t = n; 2581 break; 2582 } 2583 } 2584 return t; 2585 }), 2586 (p.prototype.setHasTypeahead = function (t) { 2587 (this.hasTypeahead = t) && (this.sortedIndexByFirstChar = this.typeaheadInitSortedIndex()); 2588 }), 2589 (p.prototype.isTypeaheadInProgress = function () { 2590 return this.hasTypeahead && _.isTypingInProgress(this.typeaheadState); 2591 }), 2592 (p.prototype.setUseActivatedClass = function (t) { 2593 this.useActivatedClass = t; 2594 }), 2595 (p.prototype.setUseSelectedAttribute = function (t) { 2596 this.useSelectedAttr = t; 2597 }), 2598 (p.prototype.getSelectedIndex = function () { 2599 return this.selectedIndex; 2600 }), 2601 (p.prototype.setSelectedIndex = function (t, e) { 2602 var n = (void 0 === e ? {} : e).forceUpdate; 2603 this.isIndexValid(t) && (this.isCheckboxList ? this.setCheckboxAtIndex(t) : this.isRadioList ? this.setRadioAtIndex(t) : this.setSingleSelectionAtIndex(t, { forceUpdate: n })); 2604 }), 2605 (p.prototype.handleFocusIn = function (t) { 2606 0 <= t && ((this.focusedItemIndex = t), this.adapter.setAttributeForElementIndex(t, "tabindex", "0"), this.adapter.setTabIndexForListItemChildren(t, "0")); 2607 }), 2608 (p.prototype.handleFocusOut = function (t) { 2609 var e = this; 2610 0 <= t && (this.adapter.setAttributeForElementIndex(t, "tabindex", "-1"), this.adapter.setTabIndexForListItemChildren(t, "-1")), 2611 setTimeout(function () { 2612 e.adapter.isFocusInsideList() || e.setTabindexToFirstSelectedOrFocusedItem(); 2613 }, 0); 2614 }), 2615 (p.prototype.handleKeydown = function (t, e, n) { 2616 var i = this, 2617 r = "ArrowLeft" === C.normalizeKey(t), 2618 o = "ArrowUp" === C.normalizeKey(t), 2619 s = "ArrowRight" === C.normalizeKey(t), 2620 a = "ArrowDown" === C.normalizeKey(t), 2621 c = "Home" === C.normalizeKey(t), 2622 u = "End" === C.normalizeKey(t), 2623 l = "Enter" === C.normalizeKey(t), 2624 d = "Spacebar" === C.normalizeKey(t), 2625 p = "A" === t.key || "a" === t.key; 2626 if (this.adapter.isRootFocused()) { 2627 if ((o || u ? (t.preventDefault(), this.focusLastElement()) : (a || c) && (t.preventDefault(), this.focusFirstElement()), this.hasTypeahead)) { 2628 var h = { 2629 event: t, 2630 focusItemAtIndex: function (t) { 2631 i.focusItemAtIndex(t); 2632 }, 2633 focusedItemIndex: -1, 2634 isTargetListItem: e, 2635 sortedIndexByFirstChar: this.sortedIndexByFirstChar, 2636 isItemAtIndexDisabled: function (t) { 2637 return i.adapter.listItemAtIndexHasClass(t, E.cssClasse
2637s.LIST_ITEM_DISABLED_CLASS); 2638 }, 2639 }; 2640 _.handleKeydown(h, this.typeaheadState); 2641 } 2642 } else { 2643 var f = this.adapter.getFocusedElementIndex(); 2644 if (!(-1 === f && (f = n) < 0)) { 2645 if ((this.isVertical && a) || (!this.isVertical && s)) g.preventDefaultEvent(t), this.focusNextElement(f); 2646 else if ((this.isVertical && o) || (!this.isVertical && r)) g.preventDefaultEvent(t), this.focusPrevElement(f); 2647 else if (c) g.preventDefaultEvent(t), this.focusFirstElement(); 2648 else if (u) g.preventDefaultEvent(t), this.focusLastElement(); 2649 else if (p && t.ctrlKey && this.isCheckboxList) t.preventDefault(), this.toggleAll(this.selectedIndex === E.numbers.UNSET_INDEX ? [] : this.selectedIndex); 2650 else if ((l || d) && e) { 2651 var y = t.target; 2652 if (y && "A" === y.tagName && l) return; 2653 if ((g.preventDefaultEvent(t), this.adapter.listItemAtIndexHasClass(f, E.cssClasse
2653s.LIST_ITEM_DISABLED_CLASS))) return; 2654 this.isTypeaheadInProgress() || (this.isSelectableList() && this.setSelectedIndexOnAction(f), this.adapter.notifyAction(f)); 2655 } 2656 this.hasTypeahead && 2657 ((h = { 2658 event: t, 2659 focusItemAtIndex: function (t) { 2660 i.focusItemAtIndex(t); 2661 }, 2662 focusedItemIndex: this.focusedItemIndex, 2663 isTargetListItem: e, 2664 sortedIndexByFirstChar: this.sortedIndexByFirstChar, 2665 isItemAtIndexDisabled: function (t) { 2666 return i.adapter.listItemAtIndexHasClass(t, E.cssClasses.LIST_ITEM_DISABLED_CLASS); 2667 }, 2668 }), 2669 _.handleKeydown(h, this.typeaheadState)); 2670 } 2671 } 2672 }), 2673 (p.prototype.handleClick = function (t, e) { 2674 t !== E.numbers.UNSET_INDEX && (this.adapter.listItemAtIndexHasClass(t, E.cssClasse
2674s.LIST_ITEM_DISABLED_CLASS) || (this.isSelectableList() && this.setSelectedIndexOnAction(t, e), this.adapter.notifyAction(t))); 2675 }), 2676 (p.prototype.focusNextElement = function (t) { 2677 var e = t + 1; 2678 if (this.adapter.getListItemCount() <= e) { 2679 if (!this.wrapFocus) return t; 2680 e = 0; 2681 } 2682 return this.focusItemAtIndex(e), e; 2683 }), 2684 (p.prototype.focusPrevElement = function (t) { 2685 var e = t - 1; 2686 if (e < 0) { 2687 if (!this.wrapFocus) return t; 2688 e = this.adapter.getListItemCount() - 1; 2689 } 2690 return this.focusItemAtIndex(e), e; 2691 }), 2692 (p.prototype.focusFirstElement = function () { 2693 return this.focusItemAtIndex(0), 0; 2694 }), 2695 (p.prototype.focusLastElement = function () { 2696 var t = this.adapter.getListItemCount() - 1; 2697 return this.focusItemAtIndex(t), t; 2698 }), 2699 (p.prototype.focusInitialElement = function () { 2700 var t = this.getFirstSelectedOrFocusedItemIndex(); 2701 return this.focusItemAtIndex(t), t; 2702 }), 2703 (p.prototype.setEnabled = function (t, e) { 2704 this.isIndexValid(t) && 2705 (e 2706 ? (this.adapter.removeClassForElementIndex(t, E.cssClasse
2706s.LIST_ITEM_DISABLED_CLASS), this.adapter.setAttributeForElementIndex(t, E.strings.ARIA_DISABLED, "false")) 2707 : (this.adapter.addClassForElementIndex(t, E.cssClasses.LIST_ITEM_DISABLED_CLASS), this.adapter.setAttributeForElementIndex(t, E.strings.ARIA_DISABLED, "true"))); 2708 }), 2709 (p.prototype.setSingleSelectionAtIndex = function (t, e) { 2710 var n = (void 0 === e ? {} : e).forceUpdate; 2711 if (this.selectedIndex !== t || n) { 2712 var i = E.cssClasses.LIST_ITEM_SELECTED_CLASS; 2713 this.useActivatedClass && (i = E.cssClasses.LIST_ITEM_ACTIVATED_CLASS), 2714 this.selectedIndex !== E.numbers.UNSET_INDEX && this.adapter.removeClassForElementIndex(this.selectedIndex, i), 2715 this.setAriaForSingleSelectionAtIndex(t), 2716 this.setTabindexAtIndex(t), 2717 t !== E.numbers.UNSET_INDEX && this.adapter.addClassForElementIndex(t, i), 2718 (this.selectedIndex = t); 2719 } 2720 }), 2721 (p.prototype.setAriaForSingleSelectionAtIndex = function (t) { 2722 this.selectedIndex === E.numbers.UNSET_INDEX && (this.ariaCurrentAttrValue = this.adapter.getAttributeForElementIndex(t, E.strings.ARIA_CURRENT)); 2723 var e = null !== this.ariaCurrentAttrValue, 2724 n = e ? E.strings.ARIA_CURRENT : E.strings.ARIA_SELECTED; 2725 if ((this.selectedIndex !== E.numbers.UNSET_INDEX && this.adapter.setAttributeForElementIndex(this.selectedIndex, n, "false"), t !== E.numbers.UNSET_INDEX)) { 2726 var i = e ? this.ariaCurrentAttrValue : "true"; 2727 this.adapter.setAttributeForElementIndex(t, n, i); 2728 } 2729 }), 2730 (p.prototype.getSelectionAttribute = function () { 2731 return this.useSelectedAttr ? E.strings.ARIA_SELECTED : E.strings.ARIA_CHECKED; 2732 }), 2733 (p.prototype.setRadioAtIndex = function (t) { 2734 var e = this.getSelectionAttribute(); 2735 this.adapter.setCheckedCheckboxOrRadioAtIndex(t, !0), 2736 this.selectedIndex !== E.numbers.UNSET_INDEX && this.adapter.setAttributeForElementIndex(this.selectedIndex, e, "false"), 2737 this.adapter.setAttributeForElementIndex(t, e, "true"), 2738 (this.selectedIndex = t); 2739 }), 2740 (p.prototype.setCheckboxAtIndex = function (t) { 2741 for (var e = this.getSelectionAttribute(), n = 0; n < this.adapter.getListItemCount(); n++) { 2742 var i = !1; 2743 0 <= t.indexOf(n) && (i = !0), this.adapter.setCheckedCheckboxOrRadioAtIndex(n, i), this.adapter.setAttributeForElementIndex(n, e, i ? "true" : "false"); 2744 } 2745 this.selectedIndex = t; 2746 }), 2747 (p.prototype.setTabindexAtIndex = function (t) { 2748 this.focusedItemIndex === E.numbers.UNSET_INDEX && 0 !== t 2749 ? this.adapter.setAttributeForElementIndex(0, "tabindex", "-1") 2750 : 0 <= this.focusedItemIndex && this.focusedItemIndex !== t && this.adapter.setAttributeForElementIndex(this.focusedItemIndex, "tabindex", "-1"), 2751 this.selectedIndex instanceof Array || this.selectedIndex === t || this.adapter.setAttributeForElementIndex(this.selectedIndex, "tabindex", "-1"), 2752 t !== E.numbers.UNSET_INDEX && this.adapter.setAttributeForElementIndex(t, "tabindex", "0"); 2753 }), 2754 (p.prototype.isSelectableList = function () { 2755 return this.isSingleSelectionList || this.isCheckboxList || this.isRadioList; 2756 }), 2757 (p.prototype.setTabindexToFirstSelectedOrFocusedItem = function () { 2758 var t = this.getFirstSelectedOrFocusedItemIndex(); 2759 this.setTabindexAtIndex(t); 2760 }), 2761 (p.prototype.getFirstSelectedOrFocusedItemIndex = function () {
2762 return this.isSelectableList() 2763 ? "number" == typeof this.selectedIndex && this.selectedIndex !== E.numbers.UNSET_INDEX 2764 ? this.selectedIndex 2765 : (function (t) { 2766 return t instanceof Array; 2767 })(this.selectedIndex) && 0 < this.selectedIndex.length 2768 ? this.selectedIndex.reduce(function (t, e) { 2769 return Math.min(t, e); 2770 }) 2771 : 0 2772 : Math.max(this.focusedItemIndex, 0); 2773 }), 2774 (p.prototype.isIndexValid = function (t) { 2775 var e = this; 2776 if (t instanceof Array) { 2777 if (!this.isCheckboxList) throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list"); 2778 return ( 2779 0 === t.length || 2780 t.some(function (t) { 2781 return e.isIndexInRange(t); 2782 }) 2783 ); 2784 } 2785 if ("number" != typeof t) return !1; 2786 if (this.isCheckboxList) throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: " + t); 2787 return this.isIndexInRange(t) || (this.isSingleSelectionList && t === E.numbers.UNSET_INDEX); 2788 }), 2789 (p.prototype.isIndexInRange = function (t) { 2790 var e = this.adapter.getListItemCount(); 2791 return 0 <= t && t < e; 2792 }), 2793 (p.prototype.setSelectedIndexOnAction = function (t, e) { 2794 void 0 === e && (e = !0), this.isCheckboxList ? this.toggleCheckboxAtIndex(t, e) : this.setSelectedIndex(t); 2795 }), 2796 (p.prototype.toggleCheckboxAtIndex = function (e, t) { 2797 var n = this.getSelectionAttribute(), 2798 i = this.adapter.isCheckboxCheckedAtIndex(e); 2799 t && ((i = !i), this.adapter.setCheckedCheckboxOrRadioAtIndex(e, i)), this.adapter.setAttributeForElementIndex(e, n, i ? "true" : "false"); 2800 var r = this.selectedIndex === E.numbers.UNSET_INDEX ? [] : this.selectedIndex.slice(); 2801 i 2802 ? r.push(e) 2803 : (r = r.filter(function (t) { 2804 return t !== e; 2805 })), 2806 (this.selectedIndex = r); 2807 }), 2808 (p.prototype.focusItemAtIndex = function (t) { 2809 this.adapter.focusItemAtIndex(t), (this.focusedItemIndex = t); 2810 }), 2811 (p.prototype.toggleAll = function (t) { 2812 var e = this.adapter.getListItemCount(); 2813 if (t.length === e) this.setCheckboxAtIndex([]); 2814 else { 2815 for (var n = [], i = 0; i < e;
2815 i++) (!this.adapter.listItemAtIndexHasClass(i, E.cssClasses.LIST_ITEM_DISABLED_CLASS) || -1 < t.indexOf(i)) && n.push(i); 2816 this.setCheckboxAtIndex(n); 2817 } 2818 }), 2819 (p.prototype.typeaheadMatchItem = function (t, e, n) { 2820 var i = this; 2821 void 0 === n && (n = !1); 2822 var r = { 2823 focusItemAtIndex: function (t) { 2824 i.focusItemAtIndex(t); 2825 }, 2826 focusedItemIndex: e || this.focusedItemIndex, 2827 nextChar: t, 2828 sortedIndexByFirstChar: this.sortedIndexByFirstChar, 2829 skipFocus: n, 2830 isItemAtIndexDisabled: function (t) { 2831 return i.adapter.listItemAtIndexHasClass(t, E.cssClasses.LIST_ITEM_DISABLED_CLASS); 2832 }, 2833 }; 2834 return _.matchItem(r, this.typeaheadState); 2835 }), 2836 (p.prototype.typeaheadInitSortedIndex = function () { 2837 return _.initSortedIndex(this.adapter.getListItemCount(), this.adapter.getPrimaryTextAtIndex); 2838 }), 2839 (p.prototype.clearTypeaheadBuffer = function () { 2840 _.clearBuffer(this.typeaheadState); 2841 }), 2842 p); 2843 function p(t) { 2844 var e = l.call(this, o(o({}, p.defaultAdapter), t)) || this; 2845 return ( 2846 (e.wrapFocus = !1), 2847 (e.isVertical = !0), 2848 (e.isSingleSelectionList = !1), 2849 (e.selectedIndex = E.numbers.UNSET_INDEX), 2850 (e.focusedItemIndex = E.numbers.UNSET_INDEX), 2851 (e.useActivatedClass = !1), 2852 (e.useSelectedAttr = !1), 2853 (e.ariaCurrentAttrValue = null), 2854 (e.isCheckboxList = !1), 2855 (e.isRadioList = !1), 2856 (e.hasTypeahead = !1), 2857 (e.typeaheadState = _.initState()), 2858 (e.sortedIndexByFirstChar = new Map()), 2859 e 2860 ); 2861 } 2862 (e.MDCListFoundation = d), (e.default = d); 2863 }, 2864 function (t, e, n) { 2865 "use strict"; 2866 var i, 2867 r = 2868 (this && this.__extends) || 2869 ((i = function (t, e) { 2870 return (i = 2871 Object.setPrototypeOf || 2872 ({ __proto__: [] } instanceof Array && 2873 function (t, e) { 2874 t.__proto__ = e; 2875 }) || 2876 function (t, e) { 2877 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 2878 })(t, e); 2879 }), 2880 function (t, e) { 2881 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 2882 function n() { 2883 this.constructor = t; 2884 } 2885 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 2886 }), 2887 o = 2888 (this && this.__assign) || 2889 function () { 2890 return (o = 2891 Object.assign || 2892 function (t) { 2893 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 2894 return t; 2895 }).apply(this, arguments); 2896 }; 2897 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDismissibleDrawerFoundation = void 0); 2898 var s, 2899 a = n(0),
2900 c = n(65), 2901 u = 2902 ((s = a.MDCFoundation), 2903 r(l, s), 2904 Object.defineProperty(l, "strings", { 2905 get: function () { 2906 return c.strings; 2907 }, 2908 enumerable: !1, 2909 configurable: !0, 2910 }), 2911 Object.defineProperty(l, "cssClasses", { 2912 get: function () { 2913 return c.cssClasses; 2914 }, 2915 enumerable: !1, 2916 configurable: !0, 2917 }), 2918 Object.defineProperty(l, "defaultAdapter", { 2919 get: function () { 2920 return { 2921 addClass: function () {}, 2922 removeClass: function () {}, 2923 hasClass: function () { 2924 return !1; 2925 }, 2926 elementHasClass: function () { 2927 return !1; 2928 }, 2929 notifyClose: function () {}, 2930 notifyOpen: function () {}, 2931 saveFocus: function () {}, 2932 restoreFocus: function () {}, 2933 focusActiveNavigationItem: function () {}, 2934 trapFocus: function () {}, 2935 releaseFocus: function () {}, 2936 }; 2937 }, 2938 enumerable: !1, 2939 configurable: !0, 2940 }), 2941 (l.prototype.destroy = function () { 2942 this.animationFrame && cancelAnimationFrame(this.animationFrame), this.animationTimer && clearTimeout(this.animationTimer); 2943 }), 2944 (l.prototype.open = function () { 2945 var t = this; 2946 this.isOpen() || 2947 this.isOpening() || 2948 this.isClosing() || 2949 (this.adapter.addClass(c.cssClasses.OPEN), 2950 this.adapter.addClass(c.cssClasses.ANIMATE), 2951 this.runNextAnimationFrame(function () { 2952 t.adapter.addClass(c.cssClasses.OPENING); 2953 }), 2954 this.adapter.saveFocus()); 2955 }), 2956 (l.prototype.close = function () { 2957 !this.isOpen() || this.isOpening() || this.isClosing() || this.adapter.addClass(c.cssClasses.CLOSING); 2958 }), 2959 (l.prototype.isOpen = function () { 2960 return this.adapter.hasClass(c.cssClasses.OPEN); 2961 }), 2962 (l.prototype.isOpening = function () { 2963 return this.adapter.hasClass(c.cssClasses.OPENING) || this.adapter.hasClass(c.cssClasses.ANIMATE); 2964 }), 2965 (l.prototype.isClosing = function () { 2966 return this.adapter.hasClass(c.cssClasses.CLOSING); 2967 }), 2968 (l.prototype.handleKeydown = function (t) { 2969 var e = t.keyCode; 2970 ("Escape" !== t.key && 27 !== e) || this.close(); 2971 }), 2972 (l.prototype.handleTransitionEnd = function (t) {
2973 var e = c.cssClasses.OPENING, 2974 n = c.cssClasses.CLOSING, 2975 i = c.cssClasses.OPEN, 2976 r = c.cssClasses.ANIMATE, 2977 o = c.cssClasses.ROOT; 2978 this.isElement(t.target) && 2979 this.adapter.elementHasClass(t.target, o) && 2980 (this.isClosing() 2981 ? (this.adapter.removeClass(i), this.closed(), this.adapter.restoreFocus(), this.adapter.notifyClose()) 2982 : (this.adapter.focusActiveNavigationItem(), this.opened(), this.adapter.notifyOpen()), 2983 this.adapter.removeClass(r), 2984 this.adapter.removeClass(e), 2985 this.adapter.removeClass(n)); 2986 }), 2987 (l.prototype.opened = function () {}), 2988 (l.prototype.closed = function () {}), 2989 (l.prototype.runNextAnimationFrame = function (t) { 2990 var e = this; 2991 cancelAnimationFrame(this.animationFrame), 2992 (this.animationFrame = requestAnimationFrame(function () { 2993 (e.animationFrame = 0), clearTimeout(e.animationTimer), (e.animationTimer = setTimeout(t, 0)); 2994 })); 2995 }), 2996 (l.prototype.isElement = function (t) { 2997 return Boolean(t.classList); 2998 }), 2999 l); 3000 function l(t) { 3001 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 3002 return (e.animationFrame = 0), (e.animationTimer = 0), e; 3003 } 3004 (e.MDCDismissibleDrawerFoundation = u), (e.default = u); 3005 }, 3006 function (t, e, n) { 3007 "use strict"; 3008 var i, 3009 r = 3010 (this && this.__extends) || 3011 ((i = function (t, e) { 3012 return (i = 3013 Object.setPrototypeOf || 3014 ({ __proto__: [] } instanceof Array && 3015 function (t, e) { 3016 t.__proto__ = e; 3017 }) || 3018 function (t, e) { 3019 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3020 })(t, e); 3021 }), 3022 function (t, e) { 3023 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3024 function n() { 3025 this.constructor = t; 3026 } 3027 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3028 }); 3029 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCFloatingLabel = void 0); 3030 var o, 3031 s = n(1), 3032 a = n(3), 3033 c = n(28), 3034 u = 3035 ((o = s.MDCComponent), 3036 r(l, o), 3037 (l.attachTo = function (t) { 3038 return new l(t); 3039 }), 3040 (l.prototype.shake = function (t) { 3041 this.foundation.shake(t); 3042 }), 3043 (l.prototype.float = function (t) { 3044 this.foundation.float(t); 3045 }), 3046 (l.prototype.setRequired = function (t) { 3047 this.foundation.setRequired(t); 3048 }), 3049 (l.prototype.getWidth = function () { 3050 return this.foundation.getWidth(); 3051 }), 3052 (l.prototype.getDefaultFoundation = function () { 3053 var n = this, 3054 t = { 3055 addClass: function (t) { 3056 return n.root.classList.add(t); 3057 }, 3058 removeClass: function (t) { 3059 return n.root.classList.remove(t); 3060 }, 3061 getWidth: function () { 3062 return a.estimateScrollWidth(n.root); 3063 }, 3064 registerInteractionHandler: function (t, e) { 3065 return n.listen(t, e); 3066 }, 3067 deregisterInteractionHandler: function (t, e) { 3068 return n.unlisten(t, e); 3069 }, 3070 }; 3071 return new c.MDCFloatingLabelFoundation(t); 3072 }), 3073 l); 3074 function l() { 3075 return (null !== o && o.apply(this, arguments)) || this; 3076 } 3077 e.MDCFloatingLabel = u; 3078 }, 3079 function (t, e, n) { 3080 "use strict"; 3081 var i, 3082 r = 3083 (this && this.__extends) || 3084 ((i = function (t, e) { 3085 return (i = 3086 Object.setPrototypeOf || 3087 ({ __proto__: [] } instanceof Array && 3088 function (t, e) { 3089 t.__proto__ = e; 3090 }) || 3091 function (t, e) { 3092 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3093 })(t, e); 3094 }), 3095 function (t, e) { 3096 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3097 function n() { 3098 this.constructor = t; 3099 } 3100 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3101 }), 3102 o = 3103 (this && this.__assign) || 3104 function () { 3105 return (o = 3106 Object.assign || 3107 function (t) { 3108 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 3109 return t; 3110 }).apply(this, arguments); 3111 }; 3112 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCFloatingLabelFoundation = void 0); 3113 var s, 3114 a = n(0), 3115 c = n(67), 3116 u = 3117 ((s = a.MDCFoundation), 3118 r(l, s),
3119 Object.defineProperty(l, "cssClasses", { 3120 get: function () { 3121 return c.cssClasses; 3122 }, 3123 enumerable: !1, 3124 configurable: !0, 3125 }), 3126 Object.defineProperty(l, "defaultAdapter", { 3127 get: function () { 3128 return { 3129 addClass: function () {}, 3130 removeClass: function () {}, 3131 getWidth: function () { 3132 return 0; 3133 }, 3134 registerInteractionHandler: function () {}, 3135 deregisterInteractionHandler: function () {}, 3136 }; 3137 }, 3138 enumerable: !1, 3139 configurable: !0, 3140 }), 3141 (l.prototype.init = function () { 3142 this.adapter.registerInteractionHandler("animationend", this.shakeAnimationEndHandler); 3143 }), 3144 (l.prototype.destroy = function () { 3145 this.adapter.deregisterInteractionHandler("animationend", this.shakeAnimationEndHandler); 3146 }), 3147 (l.prototype.getWidth = function () { 3148 return this.adapter.getWidth(); 3149 }), 3150 (l.prototype.shake = function (t) { 3151 var e = l.cssClasses.LABEL_SHAKE; 3152 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 3153 }), 3154 (l.prototype.float = function (t) { 3155 var e = l.cssClasses, 3156 n = e.LABEL_FLOAT_ABOVE, 3157 i = e.LABEL_SHAKE; 3158 t ? this.adapter.addClass(n) : (this.adapter.removeClass(n), this.adapter.removeClass(i)); 3159 }), 3160 (l.prototype.setRequired = function (t) { 3161 var e = l.cssClasses.LABEL_REQUIRED; 3162 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 3163 }), 3164 (l.prototype.handleShakeAnimationEnd = function () { 3165 var t = l.cssClasses.LABEL_SHAKE; 3166 this.adapter.removeClass(t); 3167 }), 3168 l); 3169 function l(t) { 3170 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 3171 return ( 3172 (e.shakeAnimationEndHandler = function () { 3173 e.handleShakeAnimationEnd(); 3174 }), 3175 e 3176 ); 3177 } 3178 (e.MDCFloatingLabelFoundation = u), (e.default = u); 3179 }, 3180 function (t, e, n) { 3181 "use strict"; 3182 var i, 3183 r = 3184 (this && this.__extends) || 3185 ((i = function (t, e) { 3186 return (i = 3187 Object.setPrototypeOf || 3188 ({ __proto__: [] } instanceof Array && 3189 function (t, e) { 3190 t.__proto__ = e; 3191 }) || 3192 function (t, e) { 3193 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3194 })(t, e); 3195 }), 3196 function (t, e) { 3197 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3198 function n() { 3199 this.constructor = t; 3200 } 3201 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3202 }); 3203 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCLineRipple = void 0); 3204 var o, 3205 s = n(1), 3206 a = n(72), 3207 c = 3208 ((o = s.MDCComponent), 3209 r(u, o), 3210 (u.attachTo = function (t) { 3211 return new u(t); 3212 }), 3213 (u.prototype.activate = function () { 3214 this.foundation.activate(); 3215 }), 3216 (u.prototype.deactivate = function () { 3217 this.foundation.deactivate(); 3218 }), 3219 (u.prototype.setRippleCenter = function (t) { 3220 this.foundation.setRippleCenter(t); 3221 }), 3222 (u.prototype.getDefaultFoundation = function () { 3223 var n = this, 3224 t = { 3225 addClass: function (t) { 3226 return n.root.classList.add(t); 3227 }, 3228 removeClass: function (t) { 3229 return n.root.classList.remove(t); 3230 }, 3231 hasClass: function (t) { 3232 return n.root.classList.contains(t); 3233 }, 3234 setStyle: function (t, e) { 3235 return n.root.style.setProperty(t, e); 3236 }, 3237 registerEventHandler: function (t, e) { 3238 return n.listen(t, e); 3239 }, 3240 deregisterEventHandler: function (t, e) { 3241 return n.unlisten(t, e); 3242 }, 3243 }; 3244 return new a.MDCLineRippleFoundation(t); 3245 }), 3246 u); 3247 function u() { 3248 return (null !== o && o.apply(this, arguments)) || this; 3249 } 3250 e.MDCLineRipple = c; 3251 }, 3252 function (t, e, n) { 3253 "use strict"; 3254 var i, 3255 r = 3256 (this && this.__extends) || 3257 ((i = function (t, e) { 3258 return (i = 3259 Object.setPrototypeOf || 3260 ({ __proto__: [] } instanceof Array && 3261 function (t, e) { 3262 t.__proto__ = e; 3263 }) || 3264 function (t, e) { 3265 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3266 })(t, e); 3267 }), 3268 function (t, e) { 3269 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3270 function n() { 3271 this.constructor = t; 3272 } 3273 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3274 }); 3275 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCNotchedOutline = void 0); 3276 var o, 3277 s = n(1), 3278 a = n(28), 3279 c = n(31), 3280 u = n(77), 3281 l = 3282 ((o = s.MDCComponent), 3283 r(d, o), 3284 (d.attachTo = function (t) { 3285 return new d(t); 3286 }), 3287 (d.prototype.initialSyncWithDOM = function () { 3288 this.notchElement = this.root.querySelector(c.strings.NOTCH_ELEMENT_SELECTOR); 3289 var t = this.root.querySelector("." + a.MDCFloatingLabelFoundation.cssClasse
3289s.ROOT); 3290 t 3291 ? ((t.style.transitionDuration = "0s"), 3292 this.root.classList.add(c.cssClasses.OUTLINE_UPGRADED), 3293 requestAnimationFrame(function () { 3294 t.style.transitionDuration = ""; 3295 })) 3296 : this.root.classList.add(c.cssClasses.NO_LABEL); 3297 }), 3298 (d.prototype.notch = function (t) { 3299 this.foundation.notch(t); 3300 }), 3301 (d.prototype.closeNotch = function () { 3302 this.foundation.closeNotch(); 3303 }), 3304 (d.prototype.getDefaultFoundation = function () { 3305 var e = this, 3306 t = { 3307 addClass: function (t) { 3308 return e.root.classList.add(t); 3309 }, 3310 removeClass: function (t) { 3311 return e.root.classList.remove(t); 3312 }, 3313 setNotchWidthProperty: function (t) { 3314 e.notchElement.style.setProperty("width", t + "px"); 3315 }, 3316 removeNotchWidthProperty: function () { 3317 e.notchElement.style.removeProperty("width"); 3318 }, 3319 }; 3320 return new u.MDCNotchedOutlineFoundation(t); 3321 }), 3322 d); 3323 function d() { 3324 return (null !== o && o.apply(this, arguments)) || this; 3325 } 3326 e.MDCNotchedOutline = l; 3327 }, 3328 function (t, e, n) { 3329 "use strict"; 3330 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.numbers = e.cssClasses = void 0); 3331 e.strings = { NOTCH_ELEMENT_SELECTOR: ".mdc-notched-outline__notch" }; 3332 e.numbers = { NOTCH_ELEMENT_PADDING: 8 }; 3333 e.cssClasses = { NO_LABEL: "mdc-notched-outline--no-label", OUTLINE_NOTCHED: "mdc-notched-outline--notched", OUTLINE_UPGRADED: "mdc-notched-outline--upgraded" }; 3334 }, 3335 function (t, e, n) { 3336 "use strict"; 3337 Object.defineProperty(e, "__esModule", { value: !0 }), (e.numbers = e.strings = e.cssClasses = void 0); 3338 e.cssClasses = { 3339 ACTIVATED: "mdc-select--activated", 3340 DISABLED: "mdc-select--disabled", 3341 FOCUSED: "mdc-select--focused", 3342 INVALID: "mdc-select--invalid", 3343 MENU_INVALID: "mdc-select__menu--invalid", 3344 OUTLINED: "mdc-select--outlined", 3345 REQUIRED: "mdc-select--required", 3346 ROOT: "mdc-select", 3347 WITH_LEADING_ICON: "mdc-select--with-leading-icon", 3348 }; 3349 e.strings = { 3350 ARIA_CONTROLS: "aria-controls", 3351 ARIA_DESCRIBEDBY: "aria-describedby", 3352 ARIA_SELECTED_ATTR: "aria-selected", 3353 CHANGE_EVENT: "MDCSelect:change", 3354 HIDDEN_INPUT_SELECTOR: 'input[type="hidden"]', 3355 LABEL_SELECTOR: ".mdc-floating-label", 3356 LEADING_ICON_SELECTOR: ".mdc-select__icon", 3357 LINE_RIPPLE_SELECTOR: ".mdc-line-ripple", 3358 MENU_SELECTOR: ".mdc-select__menu", 3359 OUTLINE_SELECTOR: ".mdc-notched-outline", 3360 SELECTED_TEXT_SELECTOR: ".mdc-select__selected-text", 3361 SELECT_ANCHOR_SELECTOR: ".mdc-select__anchor", 3362 VALUE_ATTR: "data-value", 3363 }; 3364 e.numbers = { LABEL_SCALE: 0.75, UNSET_INDEX: -1, CLICK_DEBOUNCE_TIMEOUT_MS: 330 }; 3365 }, 3366 function (t, e, n) { 3367 "use strict"; 3368 Object.defineProperty(e, "__esModule", { value: !0 }), 3369 (e.events = e.attributes = e.numbers = e.cssClasse
3369s = void 0), 3370 (e.cssClasses = { 3371 DISABLED: "mdc-slider--disabled", 3372 DISCRETE: "mdc-slider--discrete", 3373 INPUT: "mdc-slider__input", 3374 RANGE: "mdc-slider--range", 3375 THUMB: "mdc-slider__thumb", 3376 THUMB_FOCUSED: "mdc-slider__thumb--focused", 3377 THUMB_KNOB: "mdc-slider__thumb-knob", 3378 THUMB_TOP: "mdc-slider__thumb--top", 3379 THUMB_WITH_INDICATOR: "mdc-slider__thumb--with-indicator", 3380 TICK_MARKS: "mdc-slider--tick-marks", 3381 TICK_MARKS_CONTAINER: "mdc-slider__tick-marks", 3382 TICK_MARK_ACTIVE: "mdc-slider__tick-mark--active", 3383 TICK_MARK_INACTIVE: "mdc-slider__tick-mark--inactive", 3384 TRACK: "mdc-slider__track", 3385 TRACK_ACTIVE: "mdc-slider__track--active_fill", 3386 VALUE_INDICATOR_TEXT: "mdc-slider__value-indicator-text", 3387 }), 3388 (e.numbers = { STEP_SIZE: 1, THUMB_UPDATE_MIN_PX: 5 }), 3389 (e.attributes = { ARIA_VALUETEXT: "aria-valuetext", INPUT_DISABLED: "disabled", INPUT_MIN: "min", INPUT_MAX: "max", INPUT_VALUE: "value", INPUT_STEP: "step" }), 3390 (e.events = { CHANGE: "MDCSlider:change", INPUT: "MDCSlider:input" }); 3391 }, 3392 function (t, e, n) { 3393 "use strict"; 3394 var i, r; 3395 Object.defineProperty(e, "__esModule", { value: !0 }), 3396 (e.Thumb = e.TickMark = void 0), 3397 ((i = e.TickMark || (e.TickMark = {}))[(i.ACTIVE = 0)] = "ACTIVE"), 3398 (i[(i.INACTIVE = 1)] = "INACTIVE"), 3399 ((r = e.Thumb || (e.Thumb = {}))[(r.START = 1)] = "START"), 3400 (r[(r.END = 2)] = "END"); 3401 }, 3402 function (t, e, n) { 3403 "use strict"; 3404 var i; 3405 Object.defineProperty(e, "__esModule", { value: !0 }), 3406 (e.Selectors = e.CssClasses = void 0), 3407 ((i = e.CssClasses || (e.CssClasses = {})).PROCESSING = "mdc-switch--processing"), 3408 (i.SELECTED = "mdc-switch--selected"), 3409 (i.UNSELECTED = "mdc-switch--unselected"), 3410 ((e.Selectors || (e.Selectors = {})).RIPPLE = ".mdc-switch__ripple"); 3411 }, 3412 function (t, e, n) { 3413 "use strict"; 3414 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.cssClasses = void 0); 3415 e.cssClasses = { ANIMATING: "mdc-tab-scroller--animating", SCROLL_AREA_SCROLL: "mdc-tab-scroller__scroll-area--scroll", SCROLL_TEST: "mdc-tab-scroller__test" }; 3416 e.strings = { AREA_SELECTOR: ".mdc-tab-scroller__scroll-area", CONTENT_SELECTOR: ".mdc-tab-scroller__scroll-content" }; 3417 }, 3418 function (t, e, n) { 3419 "use strict"; 3420 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScrollerRTL = void 0); 3421 function i(t) { 3422 this.adapter = t; 3423 } 3424 (e.MDCTabScrollerRTL = i), (e.default = i); 3425 }, 3426 function (t, e, n) { 3427 "use strict"; 3428 var i, 3429 r = 3430 (this && this.__extends) || 3431 ((i = function (t, e) { 3432 return (i = 3433 Object.setPrototypeOf || 3434 ({ __proto__: [] } instanceof Array && 3435 function (t, e) { 3436 t.__proto__ = e; 3437 }) || 3438 function (t, e) { 3439 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3440 })(t, e); 3441 }), 3442 function (t, e) { 3443 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3444 function n() { 3445 this.constructor = t; 3446 } 3447 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3448 }), 3449 o = 3450 (this && this.__assign) || 3451 function () { 3452 return (o = 3453 Object.assign || 3454 function (t) { 3455 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 3456 return t; 3457 }).apply(this, arguments); 3458 }; 3459 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabFoundation = void 0); 3460 var s, 3461 a = n(0), 3462 c = n(106), 3463 u = 3464 ((s = a.MDCFoundation), 3465 r(l, s),
3466 Object.defineProperty(l, "cssClasses", { 3467 get: function () { 3468 return c.cssClasses; 3469 }, 3470 enumerable: !1, 3471 configurable: !0, 3472 }), 3473 Object.defineProperty(l, "strings", { 3474 get: function () { 3475 return c.strings; 3476 }, 3477 enumerable: !1, 3478 configurable: !0, 3479 }), 3480 Object.defineProperty(l, "defaultAdapter", { 3481 get: function () { 3482 return { 3483 addClass: function () {}, 3484 removeClass: function () {}, 3485 hasClass: function () { 3486 return !1; 3487 }, 3488 setAttr: function () {}, 3489 activateIndicator: function () {}, 3490 deactivateIndicator: function () {}, 3491 notifyInteracted: function () {}, 3492 getOffsetLeft: function () { 3493 return 0; 3494 }, 3495 getOffsetWidth: function () { 3496 return 0; 3497 }, 3498 getContentOffsetLeft: function () { 3499 return 0; 3500 }, 3501 getContentOffsetWidth: function () { 3502 return 0; 3503 }, 3504 focus: function () {}, 3505 }; 3506 }, 3507 enumerable: !1, 3508 configurable: !0, 3509 }), 3510 (l.prototype.handleClick = function () { 3511 this.adapter.notifyInteracted(); 3512 }), 3513 (l.prototype.isActive = function () { 3514 return this.adapter.hasClass(c.cssClasses.ACTIVE); 3515 }), 3516 (l.prototype.setFocusOnActivate = function (t) { 3517 this.focusOnActivate = t; 3518 }), 3519 (l.prototype.activate = function (t) { 3520 this.adapter.addClass(c.cssClasses.ACTIVE), 3521 this.adapter.setAttr(c.strings.ARIA_SELECTED, "true"), 3522 this.adapter.setAttr(c.strings.TABINDEX, "0"), 3523 this.adapter.activateIndicator(t), 3524 this.focusOnActivate && this.adapter.focus(); 3525 }), 3526 (l.prototype.deactivate = function () { 3527 this.isActive() && (this.adapter.removeClass(c.cssClasses.ACTIVE), this.adapter.setAttr(c.strings.ARIA_SELECTED, "false"), this.adapter.setAttr(c.strings.TABINDEX, "-1"), this.adapter.deactivateIndicator()); 3528 }), 3529 (l.prototype.computeDimensions = function () { 3530 var t = this.adapter.getOffsetWidth(), 3531 e = this.adapter.getOffsetLeft(), 3532 n = this.adapter.getContentOffsetWidth(), 3533 i = this.adapter.getContentOffsetLeft(); 3534 return { contentLeft: e + i, contentRight: e + i + n, rootLeft: e, rootRight: e + t }; 3535 }), 3536 l); 3537 function l(t) { 3538 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this;
3539 return (e.focusOnActivate = !0), e; 3540 } 3541 (e.MDCTabFoundation = u), (e.default = u); 3542 }, 3543 function (t, e, n) { 3544 "use strict"; 3545 var i, 3546 r = 3547 (this && this.__extends) || 3548 ((i = function (t, e) { 3549 return (i = 3550 Object.setPrototypeOf || 3551 ({ __proto__: [] } instanceof Array && 3552 function (t, e) { 3553 t.__proto__ = e; 3554 }) || 3555 function (t, e) { 3556 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3557 })(t, e); 3558 }), 3559 function (t, e) { 3560 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3561 function n() { 3562 this.constructor = t; 3563 } 3564 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3565 }), 3566 o = 3567 (this && this.__assign) || 3568 function () { 3569 return (o = 3570 Object.assign || 3571 function (t) { 3572 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 3573 return t; 3574 }).apply(this, arguments); 3575 }; 3576 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldCharacterCounterFoundation = void 0); 3577 var s, 3578 a = n(0), 3579 c = n(110), 3580 u = 3581 ((s = a.MDCFoundation), 3582 r(l, s), 3583 Object.defineProperty(l, "cssClasses", { 3584 get: function () {
3585 return c.cssClasses; 3586 }, 3587 enumerable: !1, 3588 configurable: !0, 3589 }), 3590 Object.defineProperty(l, "strings", { 3591 get: function () { 3592 return c.strings; 3593 }, 3594 enumerable: !1, 3595 configurable: !0, 3596 }), 3597 Object.defineProperty(l, "defaultAdapter", { 3598 get: function () { 3599 return { setContent: function () {} }; 3600 }, 3601 enumerable: !1, 3602 configurable: !0, 3603 }), 3604 (l.prototype.setCounterValue = function (t, e) { 3605 (t = Math.min(t, e)), this.adapter.setContent(t + " / " + e); 3606 }), 3607 l); 3608 function l(t) { 3609 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 3610 } 3611 (e.MDCTextFieldCharacterCounterFoundation = u), (e.default = u); 3612 }, 3613 function (t, e, n) { 3614 "use strict"; 3615 Object.defineProperty(e, "__esModule", { value: !0 }), (e.ALWAYS_FLOAT_TYPES = e.VALIDATION_ATTR_WHITELIST = e.numbers = e.strings = e.cssClasses = void 0); 3616 e.strings = { 3617 ARIA_CONTROLS: "aria-controls", 3618 ARIA_DESCRIBEDBY: "aria-describedby", 3619 INPUT_SELECTOR: ".mdc-text-field__input", 3620 LABEL_SELECTOR: ".mdc-floating-label", 3621 LEADING_ICON_SELECTOR: ".mdc-text-field__icon--leading", 3622 LINE_RIPPLE_SELECTOR: ".mdc-line-ripple", 3623 OUTLINE_SELECTOR: ".mdc-notched-outline", 3624 PREFIX_SELECTOR: ".mdc-text-field__affix--prefix", 3625 SUFFIX_SELECTOR: ".mdc-text-field__affix--suffix", 3626 TRAILING_ICON_SELECTOR: ".mdc-text-field__icon--trailing", 3627 }; 3628 e.cssClasses = { 3629 DISABLED: "mdc-text-field--disabled", 3630 FOCUSED: "mdc-text-field--focused", 3631 HELPER_LINE: "mdc-text-field-helper-line", 3632 INVALID: "mdc-text-field--invalid", 3633 LABEL_FLOATING: "mdc-text-field--label-floating", 3634 NO_LABEL: "mdc-text-field--no-label", 3635 OUTLINED: "mdc-text-field--outlined", 3636 ROOT: "mdc-text-field", 3637 TEXTAREA: "mdc-text-field--textarea", 3638 WITH_LEADING_ICON: "mdc-text-field--with-leading-icon", 3639 WITH_TRAILING_ICON: "mdc-text-field--with-trailing-icon", 3640 WITH_INTERNAL_COUNTER: "mdc-text-field--with-internal-counter", 3641 }; 3642 e.numbers = { LABEL_SCALE: 0.75 }; 3643 e.VALIDATION_ATTR_WHITELIST = ["pattern", "min", "max", "required", "step", "minlength", "maxlength"]; 3644 e.ALWAYS_FLOAT_TYPES = ["color", "date", "datetime-local", "month", "range", "time", "week"]; 3645 }, 3646 function (t, e, n) { 3647 "use strict"; 3648 var i, 3649 r = 3650 (this && this.__extends) || 3651 ((i = function (t, e) { 3652 return (i = 3653 Object.setPrototypeOf || 3654 ({ __proto__: [] } instanceof Array && 3655 function (t, e) { 3656 t.__proto__ = e; 3657 }) || 3658 function (t, e) { 3659 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3660 })(t, e); 3661 }), 3662 function (t, e) { 3663 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3664 function n() { 3665 this.constructor = t; 3666 } 3667 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3668 }), 3669 o = 3670 (this && this.__assign) || 3671 function () { 3672 return (o = 3673 Object.assign || 3674 function (t) { 3675 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 3676 return t; 3677 }).apply(this, arguments); 3678 }; 3679 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldHelperTextFoundation = void 0); 3680 var s, 3681 a = n(0), 3682 c = n(113), 3683 u = 3684 ((s = a.MDCFoundation), 3685 r(l, s),
3686 Object.defineProperty(l, "cssClasses", { 3687 get: function () { 3688 return c.cssClasses; 3689 }, 3690 enumerable: !1, 3691 configurable: !0, 3692 }), 3693 Object.defineProperty(l, "strings", { 3694 get: function () { 3695 return c.strings; 3696 }, 3697 enumerable: !1, 3698 configurable: !0, 3699 }), 3700 Object.defineProperty(l, "defaultAdapter", { 3701 get: function () { 3702 return { 3703 addClass: function () {}, 3704 removeClass: function () {}, 3705 hasClass: function () { 3706 return !1; 3707 }, 3708 getAttr: function () { 3709 return null; 3710 }, 3711 setAttr: function () {}, 3712 removeAttr: function () {}, 3713 setContent: function () {}, 3714 }; 3715 }, 3716 enumerable: !1, 3717 configurable: !0, 3718 }), 3719 (l.prototype.getId = function () { 3720 return this.adapter.getAttr("id"); 3721 }), 3722 (l.prototype.isVisible = function () { 3723 return "true" !== this.adapter.getAttr(c.strings.ARIA_HIDDEN); 3724 }), 3725 (l.prototype.setContent = function (t) { 3726 this.adapter.setContent(t); 3727 }), 3728 (l.prototype.isPersistent = function () { 3729 return this.adapter.hasClass(c.cssClasses.HELPER_TEXT_PERSISTENT); 3730 }), 3731 (l.prototype.setPersistent = function (t) { 3732 t ? this.adapter.addClass(c.cssClasses.HELPER_TEXT_PERSISTENT) : this.adapter.removeClass(c.cssClasses.HELPER_TEXT_PERSISTENT); 3733 }), 3734 (l.prototype.isValidation = function () { 3735 return this.adapter.hasClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG); 3736 }), 3737 (l.prototype.setValidation = function (t) { 3738 t ? this.adapter.addClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG) : this.adapter.removeClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG); 3739 }), 3740 (l.prototype.showToScreenReader = function () { 3741 this.adapter.removeAttr(c.strings.ARIA_HIDDEN); 3742 }), 3743 (l.prototype.setValidity = function (t) { 3744 var e = this.adapter.hasClass(c.cssClasses.HELPER_TEXT_PERSISTENT), 3745 n = this.adapter.hasClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG) && !t; 3746 n ? (this.showToScreenReader(), "alert" === this.adapter.getAttr(c.strings.ROLE) ? this.refreshAlertRole() : this.adapter.setAttr(c.strings.ROLE, "alert")) : this.adapter.removeAttr(c.strings.ROLE), 3747 e || n || this.hide(); 3748 }), 3749 (l.prototype.hide = function () { 3750 this.adapter.setAttr(c.strings.ARIA_HIDDEN, "true"); 3751 }), 3752 (l.prototype.refreshAlertRole = function () { 3753 var t = this; 3754 this.adapter.removeAttr(c.strings.ROLE), 3755 requestAnimationFrame(function () { 3756 t.adapter.setAttr(c.strings.ROLE, "alert"); 3757 }); 3758 }), 3759 l); 3760 function l(t) { 3761 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 3762 } 3763 (e.MDCTextFieldHelperTextFoundation = u), (e.default = u); 3764 }, 3765 function (t, e, n) { 3766 "use strict"; 3767 var i, r; 3768 Object.defineProperty(e, "__esModule", { value: !0 }), 3769 (e.XPositionWithCaret = e.YPositionWithCaret = e.PositionWithCaret = e.strings = e.YPosition = e.AnchorBoundaryType = e.XPosition = e.events = e.attributes = e.numbers = e.CssClasse
3769s = void 0), 3770 ((r = i = i || {}).RICH = "mdc-tooltip--rich"), 3771 (r.SHOWN = "mdc-tooltip--shown"), 3772 (r.SHOWING = "mdc-tooltip--showing"), 3773 (r.SHOWING_TRANSITION = "mdc-tooltip--showing-transition"), 3774 (r.HIDE = "mdc-tooltip--hide"), 3775 (r.HIDE_TRANSITION = "mdc-tooltip--hide-transition"), 3776 (r.MULTILINE_TOOLTIP = "mdc-tooltip--multiline"), 3777 (r.SURFACE = "mdc-tooltip__surface"), 3778 (r.SURFACE_ANIMATION = "mdc-tooltip__surface-animation"), 3779 (r.TOOLTIP_CARET_TOP = "mdc-tooltip__caret-surface-top"), 3780 (r.TOOLTIP_CARET_BOTTOM = "mdc-tooltip__caret-surface-bottom"), 3781 (e.CssClasses = i); 3782 e.numbers = { BOUNDED_ANCHOR_GAP: 4, UNBOUNDED_ANCHOR_GAP: 8, MIN_VIEWPORT_TOOLTIP_THRESHOLD: 8, HIDE_DELAY_MS: 600, SHOW_DELAY_MS: 500, MIN_HEIGHT: 24, MAX_WIDTH: 200, CARET_INDENTATION: 24, ANIMATION_SCALE: 0.8 }; 3783 e.attributes = { ARIA_EXPANDED: "aria-expanded", ARIA_HASPOPUP: "aria-haspopup", PERSISTENT: "data-mdc-tooltip-persistent", SCROLLABLE_ANCESTOR: "tooltip-scrollable-ancestor", HAS_CARET: "data-mdc-tooltip-has-caret" }; 3784 var o, s, a, c, u, l; 3785 (e.events = { HIDDEN: "MDCTooltip:hidden" }), 3786 ((s = o = o || {})[(s.DETECTED = 0)] = "DETECTED"), 3787 (s[(s.START = 1)] = "START"), 3788 (s[(s.CENTER = 2)] = "CENTER"), 3789 (s[(s.END = 3)] = "END"), 3790 (e.XPosition = o), 3791 ((c = a = a || {})[(c.DETECTED = 0)] = "DETECTED"), 3792 (c[(c.ABOVE = 1)] = "ABOVE"), 3793 (c[(c.BELOW = 2)] = "BELOW"), 3794 (e.YPosition = a), 3795 ((l = u = u || {})[(l.BOUNDED = 0)] = "BOUNDED"), 3796 (l[(l.UNBOUNDED = 1)] = "UNBOUNDED"), 3797 (e.AnchorBoundaryType = u); 3798 var d, p, h, f, y, C; 3799 (e.strings = { LEFT: "left", RIGHT: "right", CENTER: "center", TOP: "top", BOTTOM: "bottom" }), 3800 ((p = d = d || {})[(p.DETECTED = 0)] = "DETECTED"), 3801 (p[(p.ABOVE_START = 1)] = "ABOVE_START"), 3802 (p[(p.ABOVE_CENTER = 2)] = "ABOVE_CENTER"), 3803 (p[(p.ABOVE_END = 3)] = "ABOVE_END"), 3804 (p[(p.TOP_SIDE_START = 4)] = "TOP_SIDE_START"), 3805 (p[(p.CENTER_SIDE_START = 5)] = "CENTER_SIDE_START"), 3806 (p[(p.BOTTOM_SIDE_START = 6)] = "BOTTOM_SIDE_START"), 3807 (p[(p.TOP_SIDE_END = 7)] = "TOP_SIDE_END"), 3808 (p[(p.CENTER_SIDE_END = 8)] = "CENTER_SIDE_END"), 3809 (p[(p.BOTTOM_SIDE_END = 9)] = "BOTTOM_SIDE_END"), 3810 (p[(p.BELOW_START = 10)] = "BELOW_START"), 3811 (p[(p.BELOW_CENTER = 11)] = "BELOW_CENTER"), 3812 (p[(p.BELOW_END = 12)] = "BELOW_END"), 3813 (e.PositionWithCaret = d), 3814 ((f = h = h || {})[(f.ABOVE = 1)] = "ABOVE"), 3815 (f[(f.BELOW = 2)] = "BELOW"), 3816 (f[(f.SIDE_TOP = 3)] = "SIDE_TOP"), 3817 (f[(f.SIDE_CENTER = 4)] = "SIDE_CENTER"), 3818 (f[(f.SIDE_BOTTOM = 5)] = "SIDE_BOTTOM"), 3819 (e.YPositionWithCaret = h), 3820 ((C = y = y || {})[(C.START = 1)] = "START"), 3821 (C[(C.CENTER = 2)] = "CENTER"), 3822 (C[(C.END = 3)] = "END"), 3823 (C[(C.SIDE_START = 4)] = "SIDE_START"), 3824 (C[(C.SIDE_END = 5)] = "SIDE_END"), 3825 (e.XPositionWithCaret = y); 3826 }, 3827 function (t, e, n) { 3828 "use strict"; 3829 var i, 3830 r = 3831 (this && this.__extends) || 3832 ((i = function (t, e) { 3833 return (i = 3834 Object.setPrototypeOf || 3835 ({ __proto__: [] } instanceof Array && 3836 function (t, e) { 3837 t.__proto__ = e; 3838 }) || 3839 function (t, e) { 3840 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3841 })(t, e); 3842 }), 3843 function (t, e) { 3844 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3845 function n() { 3846 this.constructor = t; 3847 } 3848 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3849 }); 3850 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTopAppBarFoundation = void 0); 3851 var o, 3852 s = n(9), 3853 a = n(44), 3854 c = 3855 ((o = a.MDCTopAppBarBaseFoundation), 3856 r(u, o), 3857 (u.prototype.destroy = function () { 3858 o.prototype.destroy.call(this), this.adapter.setStyle("top", ""); 3859 }), 3860 (u.prototype.handleTargetScroll = function () { 3861 var t = Math.max(this.adapter.getViewportScrollY(), 0
3861), 3862 e = t - this.lastScrollPosition; 3863 (this.lastScrollPosition = t), 3864 this.isCurrentlyBeingResized || 3865 ((this.currentAppBarOffsetTop -= e), 3866 0 < this.currentAppBarOffsetTop ? (this.currentAppBarOffsetTop = 0) : Math.abs(this.currentAppBarOffsetTop) > this.topAppBarHeight && (this.currentAppBarOffsetTop = -this.topAppBarHeight), 3867 this.moveTopAppBar()); 3868 }), 3869 (u.prototype.handleWindowResize = function () { 3870 var t = this; 3871 this.resizeThrottleId || 3872 (this.resizeThrottleId = setTimeout(function () { 3873 (t.resizeThrottleId = 0), t.throttledResizeHandler(); 3874 }, s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)), 3875 (this.isCurrentlyBeingResized = !0), 3876 this.resizeDebounceId && clearTimeout(this.resizeDebounceId), 3877 (this.resizeDebounceId = setTimeout(function () { 3878 t.handleTargetScroll(), (t.isCurrentlyBeingResized = !1), (t.resizeDebounceId = 0); 3879 }, s.numbers.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)); 3880 }), 3881 (u.prototype.checkForUpdate = function () { 3882 var t = -this.topAppBarHeight, 3883 e = this.currentAppBarOffsetTop < 0, 3884 n = this.currentAppBarOffsetTop > t, 3885 i = e && n; 3886 if (i) this.wasDocked = !1; 3887 else { 3888 if (!this.wasDocked) return (this.wasDocked = !0); 3889 if (this.isDockedShowing !== n) return (this.isDockedShowing = n), !0; 3890 } 3891 return i; 3892 }), 3893 (u.prototype.moveTopAppBar = function () { 3894 if (this.checkForUpdate()) { 3895 var t = this.currentAppBarOffsetTop; 3896 Math.abs(t) >= this.topAppBarHeight && (t = -s.numbers.MAX_TOP_APP_BAR_HEIGHT), this.adapter.setStyle("top", t + "px"); 3897 } 3898 }), 3899 (u.prototype.throttledResizeHandler = function () { 3900 var t = this.adapter.getTopAppBarHeight(); 3901 this.topAppBarHeight !== t && ((this.wasDocked = !1), (this.currentAppBarOffsetTop -= this.topAppBarHeight - t), (this.topAppBarHeight = t)), this.handleTargetScroll(); 3902 }), 3903 u); 3904 function u(t) { 3905 var e = o.call(this, t) || this; 3906 return ( 3907 (e.wasDocked = !0), 3908 (e.isDockedShowing = !0), 3909 (e.currentAppBarOffsetTop = 0), 3910 (e.isCurrentlyBeingResized = !1), 3911 (e.resizeThrottleId = 0), 3912 (e.resizeDebounceId = 0), 3913 (e.lastScrollPosition = e.adapter.getViewportScrollY()), 3914 (e.topAppBarHeight = e.adapter.getTopAppBarHeight()), 3915 e 3916 ); 3917 } 3918 (e.MDCTopAppBarFoundation = c), (e.default = c); 3919 }, 3920 function (t, e, n) { 3921 "use strict"; 3922 var i, 3923 r = 3924 (this && this.__extends) || 3925 ((i = function (t, e) { 3926 return (i = 3927 Object.setPrototypeOf || 3928 ({ __proto__: [] } instanceof Array && 3929 function (t, e) { 3930 t.__proto__ = e; 3931 }) || 3932 function (t, e) { 3933 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 3934 })(t, e); 3935 }), 3936 function (t, e) { 3937 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 3938 function n() { 3939 this.constructor = t; 3940 } 3941 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 3942 }), 3943 o = 3944 (this && this.__assign) || 3945 function () { 3946 return (o = 3947 Object.assign || 3948 function (t) { 3949 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 3950 return t; 3951 }).apply(this, arguments); 3952 }; 3953 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTopAppBarBaseFoundation = void 0); 3954 var s, 3955 a = n(0), 3956 c = n(9), 3957 u = 3958 ((s = a.MDCFoundation), 3959 r(l, s), 3960 Object.defineProperty(l, "strings", { 3961 get: function () { 3962 return c.strings; 3963 }, 3964 enumerable: !1, 3965 configurable: !0, 3966 }),
3967 Object.defineProperty(l, "cssClasses", { 3968 get: function () { 3969 return c.cssClasses; 3970 }, 3971 enumerable: !1, 3972 configurable: !0, 3973 }), 3974 Object.defineProperty(l, "numbers", { 3975 get: function () { 3976 return c.numbers; 3977 }, 3978 enumerable: !1, 3979 configurable: !0, 3980 }), 3981 Object.defineProperty(l, "defaultAdapter", { 3982 get: function () { 3983 return { 3984 addClass: function () {}, 3985 removeClass: function () {}, 3986 hasClass: function () { 3987 return !1; 3988 }, 3989 setStyle: function () {}, 3990 getTopAppBarHeight: function () { 3991 return 0; 3992 }, 3993 notifyNavigationIconClicked: function () {}, 3994 getViewportScrollY: function () { 3995 return 0; 3996 }, 3997 getTotalActionItems: function () { 3998 return 0; 3999 }, 4000 }; 4001 }, 4002 enumerable: !1, 4003 configurable: !0, 4004 }), 4005 (l.prototype.handleTargetScroll = function () {}), 4006 (l.prototype.handleWindowResize = function () {}), 4007 (l.prototype.handleNavigationClick = function () { 4008 this.adapter.notifyNavigationIconClicked(); 4009 }), 4010 l); 4011 function l(t) { 4012 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 4013 } 4014 (e.MDCTopAppBarBaseFoundation = u), (e.default = u); 4015 }, 4016 function (t, e, n) { 4017 "use strict"; 4018 var i, 4019 r = 4020 (this && this.__extends) || 4021 ((i = function (t, e) { 4022 return (i = 4023 Object.setPrototypeOf || 4024 ({ __proto__: [] } instanceof Array && 4025 function (t, e) { 4026 t.__proto__ = e; 4027 }) || 4028 function (t, e) { 4029 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4030 })(t, e); 4031 }), 4032 function (t, e) { 4033 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4034 function n() { 4035 this.constructor = t; 4036 } 4037 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4038 }), 4039 o = 4040 (this && this.__assign) || 4041 function () { 4042 return (o = 4043 Object.assign || 4044 function (t) { 4045 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 4046 return t; 4047 }).apply(this, arguments); 4048 }; 4049 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCBannerFoundation = void 0); 4050 var s, 4051 a = n(0), 4052 c = n(18),
4053 u = c.cssClasses.OPENING, 4054 l = c.cssClasses.OPEN, 4055 d = c.cssClasses.CLOSING, 4056 p = 4057 ((s = a.MDCFoundation), 4058 r(h, s), 4059 Object.defineProperty(h, "defaultAdapter", { 4060 get: function () { 4061 return { 4062 addClass: function () {}, 4063 getContentHeight: function () { 4064 return 0; 4065 }, 4066 notifyClosed: function () {}, 4067 notifyClosing: function () {}, 4068 notifyOpened: function () {}, 4069 notifyOpening: function () {}, 4070 releaseFocus: function () {}, 4071 removeClass: function () {}, 4072 setStyleProperty: function () {}, 4073 trapFocus: function () {}, 4074 }; 4075 }, 4076 enumerable: !1, 4077 configurable: !0, 4078 }), 4079 (h.prototype.destroy = function () { 4080 cancelAnimationFrame(this.animationFrame), (this.animationFrame = 0), clearTimeout(this.animationTimer), (this.animationTimer = 0); 4081 }), 4082 (h.prototype.open = function () { 4083 var t = this; 4084 (this.isOpened = !0), this.adapter.notifyOpening(), this.adapter.removeClass(d), this.adapter.addClass(u); 4085 var e = this.adapter.getContentHeight(); 4086 this.animationFrame = requestAnimationFrame(function () { 4087 t.adapter.addClass(l), 4088 t.adapter.setStyleProperty("height", e + "px"), 4089 (t.animationTimer = setTimeout(function () { 4090 t.handleAnimationTimerEnd(), t.adapter.trapFocus(), t.adapter.notifyOpened(); 4091 }, c.numbers.BANNER_ANIMATION_OPEN_TIME_MS)); 4092 }); 4093 }), 4094 (h.prototype.close = function (t) { 4095 var e = this; 4096 this.isOpened && 4097 (cancelAnimationFrame(this.animationFrame), 4098 (this.animationFrame = 0), 4099 (this.isOpened = !1), 4100 this.adapter.notifyClosing(t), 4101 this.adapter.addClass(d), 4102 this.adapter.setStyleProperty("height", "0"), 4103 this.adapter.removeClass(l), 4104 this.adapter.removeClass(u), 4105 clearTimeout(this.animationTimer), 4106 (this.animationTimer = setTimeout(function () { 4107 e.adapter.releaseFocus(), e.handleAnimationTimerEnd(), e.adapter.notifyClosed(t); 4108 }, c.numbers.BANNER_ANIMATION_CLOSE_TIME_MS))); 4109 }), 4110 (h.prototype.isOpen = function () { 4111 return this.isOpened; 4112 }), 4113 (h.prototype.handlePrimaryActionClick = function () { 4114 this.close(c.CloseReason.PRIMARY); 4115 }), 4116 (h.prototype.handleSecondaryActionClick = function () { 4117 this.close(c.CloseReason.SECONDARY); 4118 }), 4119 (h.prototype.layout = function () { 4120 var t = this.adapter.getContentHeight(); 4121 this.adapter.setStyleProperty("height", t + "px"); 4122 }), 4123 (h.prototype.handleAnimationTimerEnd = function () { 4124 (this.animationTimer = 0), this.adapter.removeClass(u), this.adapter.removeClass(d); 4125 }), 4126 h); 4127 function h(t) { 4128 var e = s.call(this, o(o({}, h.defaultAdapter), t)) || this; 4129 return (e.isOpened = !1), (e.animationFrame = 0), (e.animationTimer = 0), e; 4130 } 4131 e.MDCBannerFoundation = p; 4132 }, 4133 function (t, e, n) { 4134 "use strict"; 4135 var i, 4136 u = 4137 "function" == typeof Symbol && "symbol" == typeof Symbol.iterator 4138 ? function (t) { 4139 return typeof t; 4140 } 4141 : function (t) { 4142 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; 4143 }, 4144 r = 4145 (this && this.__extends) || 4146 ((i = function (t, e) { 4147 return (i = 4148 Object.setPrototypeOf || 4149 ({ __proto__: [] } instanceof Array && 4150 function (t, e) { 4151 t.__proto__ = e; 4152 }) || 4153 function (t, e) { 4154 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4155 })(t, e); 4156 }), 4157 function (t, e) { 4158 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4159 function n() { 4160 this.constructor = t; 4161 } 4162 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4163 }), 4164 o = 4165 (this && this.__assign) || 4166 function () { 4167 return (o = 4168 Object.assign || 4169 function (t) { 4170 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 4171 return t; 4172 }).apply(this, arguments); 4173 }, 4174 l = 4175 (this && this.__values) || 4176 function (t) { 4177 var e = "function" == typeof Symbol && Symbol.iterator, 4178 n = e && t[e], 4179 i = 0; 4180 if (n) return n.call(t); 4181 if (t && "number" == typeof t.length) 4182 return { 4183 next: function () { 4184 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 4185 }, 4186 }; 4187 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 4188 }; 4189 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCCheckbox = void 0); 4190 var s, 4191 a = n(10), 4192 c = n(1), 4193 d = n(5), 4194 p = n(3), 4195 h = n(2), 4196 f = n(4), 4197 y = n(20), 4198 C = n(48), 4199 E = ["checked", "indeterminate"], 4200 g = 4201 ((s = c.MDCComponent), 4202 r(_, s), 4203 (_.attachTo = function (t) { 4204 return new _(t); 4205 }), 4206 Object.defineProperty(_.prototype, "ripple", { 4207 get: function () { 4208 return this.rippleSurface; 4209 }, 4210 enumerable: !1, 4211 configurable: !0, 4212 }), 4213 Object.defineProperty(_.prototype, "checked", { 4214 get: function () { 4215 return this.getNativeControl().checked; 4216 }, 4217 set: function (t) { 4218 this.getNativeControl().checked = t; 4219 }, 4220 enumerable: !1, 4221 configurable: !0, 4222 }), 4223 Object.defineProperty(_.prototype, "indeterminate", { 4224 get: function () { 4225 return this.getNativeControl().indeterminate; 4226 }, 4227 set: function (t) { 4228 this.getNativeControl().indeterminate = t; 4229 }, 4230 enumerable: !1, 4231 configurable: !0, 4232 }), 4233 Object.defineProperty(_.prototype, "disabled", { 4234 get: function () { 4235 return this.getNativeControl().disabled; 4236 }, 4237 set: function (t) { 4238 this.foundation.setDisabled(t); 4239 }, 4240 enumerable: !1, 4241 configurable: !0, 4242 }), 4243 Object.defineProperty(_.prototype, "value", { 4244 get: function () { 4245 return this.getNativeControl().value; 4246 }, 4247 set: function (t) { 4248 this.getNativeControl().value = t; 4249 }, 4250 enumerable: !1, 4251 configurable: !0, 4252 }), 4253 (_.prototype.initialize = function () {
4254 var t = y.strings.DATA_INDETERMINATE_ATTR; 4255 (this.getNativeControl().indeterminate = "true" === this.getNativeControl().getAttribute(t)), this.getNativeControl().removeAttribute(t); 4256 }), 4257 (_.prototype.initialSyncWithDOM = function () { 4258 var t = this; 4259 (this.handleChange = function () { 4260 t.foundation.handleChange(); 4261 }), 4262 (this.handleAnimationEnd = function () { 4263 t.foundation.handleAnimationEnd(); 4264 }), 4265 this.getNativeControl().addEventListener("change", this.handleChange), 4266 this.listen(a.getCorrectEventName(window, "animationend"), this.handleAnimationEnd), 4267 this.installPropertyChangeHooks(); 4268 }), 4269 (_.prototype.destroy = function () { 4270 this.rippleSurface.destroy(), 4271 this.getNativeControl().removeEventListener("change", this.handleChange), 4272 this.unlisten(a.getCorrectEventName(window, "animationend"), this.handleAnimationEnd), 4273 this.uninstallPropertyChangeHooks(), 4274 s.prototype.destroy.call(this); 4275 }), 4276 (_.prototype.getDefaultFoundation = function () { 4277 var n = this, 4278 t = { 4279 addClass: function (t) { 4280 return n.root.classList.add(t); 4281 }, 4282 forceLayout: function () { 4283 return n.root.offsetWidth; 4284 }, 4285 hasNativeControl: function () { 4286 return !!n.getNativeControl(); 4287 }, 4288 isAttachedToDOM: function () { 4289 return Boolean(n.root.parentNode); 4290 }, 4291 isChecked: function () { 4292 return n.checked; 4293 }, 4294 isIndeterminate: function () { 4295 return n.indeterminate; 4296 }, 4297 removeClass: function (t) { 4298 n.root.classList.remove(t); 4299 }, 4300 removeNativeControlAttr: function (t) { 4301 n.getNativeControl().removeAttribute(t); 4302 }, 4303 setNativeControlAttr: function (t, e) { 4304 n.getNativeControl().setAttribute(t, e); 4305 }, 4306 setNativeControlDisabled: function (t) { 4307 n.getNativeControl().disabled = t; 4308 }, 4309 }; 4310 return new C.MDCCheckboxFoundation(t); 4311 }), 4312 (_.prototype.createRipple = function () { 4313 var n = this, 4314 t = o(o({}, h.MDCRipple.createAdapter(this)), { 4315 deregisterInteractionHandler: function (t, e) { 4316 n.getNativeControl().removeEventListener(t, e, d.applyPassive()); 4317 }, 4318 isSurfaceActive: function () { 4319 return p.matches(n.getNativeControl(), ":active"); 4320 }, 4321 isUnbounded: function () { 4322 return !0; 4323 }, 4324 registerInteractionHandler: function (t, e) { 4325 n.getNativeControl().addEventListener(t, e, d.applyPassive()); 4326 }, 4327 }); 4328 return new h.MDCRipple(this.root, new f.MDCRippleFoundation(t)); 4329 }), 4330 (_.prototype.installPropertyChangeHooks = function () { 4331 function t(t) { 4332 var e = Object.getOwnPropertyDescriptor(s, t); 4333 if (!m(e)) return { value: void 0 }; 4334 var n = e.get, 4335 i = { 4336 configurable: e.configurable, 4337 enumerable: e.enumerable, 4338 get: n, 4339 set: function (t) { 4340 e.set.call(o, t), r.foundation.handleChange(); 4341 }, 4342 }; 4343 Object.defineProperty(o, t, i); 4344 } 4345 var e, 4346 n, 4347 r = this, 4348 o = this.getNativeControl(),
4349 s = Object.getPrototypeOf(o); 4350 try { 4351 for (var i = l(E), a = i.next(); !a.done; a = i.next()) { 4352 var c = t(a.value); 4353 if ("object" === (void 0 === c ? "undefined" : u(c))) return c.value; 4354 } 4355 } catch (t) { 4356 e = { error: t }; 4357 } finally { 4358 try { 4359 a && !a.done && (n = i.return) && n.call(i); 4360 } finally { 4361 if (e) throw e.error; 4362 } 4363 } 4364 }), 4365 (_.prototype.uninstallPropertyChangeHooks = function () { 4366 var e, 4367 t, 4368 n = this.getNativeControl(), 4369 i = Object.getPrototypeOf(n); 4370 try { 4371 for (var r = l(E), o = r.next(); !o.done; o = r.next()) { 4372 var s = o.value, 4373 a = Object.getOwnPropertyDescriptor(i, s); 4374 if (!m(a)) return; 4375 Object.defineProperty(n, s, a); 4376 } 4377 } catch (t) { 4378 e = { error: t }; 4379 } finally { 4380 try { 4381 o && !o.done && (t = r.return) && t.call(r); 4382 } finally { 4383 if (e) throw e.error; 4384 } 4385 } 4386 }), 4387 (_.prototype.getNativeControl = function () { 4388 var t = y.strings.NATIVE_CONTROL_SELECTOR, 4389 e = this.root.querySelector(t); 4390 if (!e) throw new Error("Checkbox component requires a " + t + " element"); 4391 return e; 4392 }), 4393 _); 4394 function _() { 4395 var t = (null !== s && s.apply(this, arguments)) || this; 4396 return (t.rippleSurface = t.createRipple()), t; 4397 } 4398 function m(t) { 4399 return !!t && "function" == typeof t.set; 4400 } 4401 e.MDCCheckbox = g; 4402 }, 4403 function (t, e, n) { 4404 "use strict"; 4405 Object.defineProperty(e, "__esModule", { value: !0 }), 4406 (e.numbers = e.strings = e.cssClasses = void 0), 4407 (e.cssClasses = { 4408 BG_FOCUSED: "mdc-ripple-upgraded--background-focused", 4409 FG_ACTIVATION: "mdc-ripple-upgraded--foreground-activation", 4410 FG_DEACTIVATION: "mdc-ripple-upgraded--foreground-deactivation", 4411 ROOT: "mdc-ripple-upgraded", 4412 UNBOUNDED: "mdc-ripple-upgraded--unbounded", 4413 }), 4414 (e.strings = { 4415 VAR_FG_SCALE: "--mdc-ripple-fg-scale", 4416 VAR_FG_SIZE: "--mdc-ripple-fg-size", 4417 VAR_FG_TRANSLATE_END: "--mdc-ripple-fg-translate-end", 4418 VAR_FG_TRANSLATE_START: "--mdc-ripple-fg-translate-start", 4419 VAR_LEFT: "--mdc-ripple-left", 4420 VAR_TOP: "--mdc-ripple-top", 4421 }), 4422 (e.numbers = { DEACTIVATION_TIMEOUT_MS: 225, FG_DEACTIVATION_MS: 150, INITIAL_ORIGIN_SCALE: 0.6, PADDING: 10, TAP_DELAY_MS: 300 }); 4423 }, 4424 function (t, e, n) { 4425 "use strict"; 4426 var i, 4427 r = 4428 (this && this.__extends) || 4429 ((i = function (t, e) { 4430 return (i = 4431 Object.setPrototypeOf || 4432 ({ __proto__: [] } instanceof Array && 4433 function (t, e) { 4434 t.__proto__ = e; 4435 }) || 4436 function (t, e) { 4437 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4438 })(t, e); 4439 }), 4440 function (t, e) { 4441 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4442 function n() { 4443 this.constructor = t; 4444 } 4445 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4446 }), 4447 o = 4448 (this && this.__assign) || 4449 function () { 4450 return (o = 4451 Object.assign || 4452 function (t) { 4453 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 4454 return t; 4455 }).apply(this, arguments); 4456 }; 4457 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCCheckboxFoundation = void 0); 4458 var s, 4459 a = n(0), 4460 p = n(20), 4461 c = 4462 ((s = a.MDCFoundation), 4463 r(h, s),
4464 Object.defineProperty(h, "cssClasses", { 4465 get: function () { 4466 return p.cssClasses; 4467 }, 4468 enumerable: !1, 4469 configurable: !0, 4470 }), 4471 Object.defineProperty(h, "strings", { 4472 get: function () { 4473 return p.strings; 4474 }, 4475 enumerable: !1, 4476 configurable: !0, 4477 }), 4478 Object.defineProperty(h, "numbers", { 4479 get: function () { 4480 return p.numbers; 4481 }, 4482 enumerable: !1, 4483 configurable: !0, 4484 }), 4485 Object.defineProperty(h, "defaultAdapter", { 4486 get: function () { 4487 return { 4488 addClass: function () {}, 4489 forceLayout: function () {}, 4490 hasNativeControl: function () { 4491 return !1; 4492 }, 4493 isAttachedToDOM: function () { 4494 return !1; 4495 }, 4496 isChecked: function () { 4497 return !1; 4498 }, 4499 isIndeterminate: function () { 4500 return !1; 4501 }, 4502 removeClass: function () {}, 4503 removeNativeControlAttr: function () {}, 4504 setNativeControlAttr: function () {}, 4505 setNativeControlDisabled: function () {}, 4506 }; 4507 }, 4508 enumerable: !1, 4509 configurable: !0, 4510 }), 4511 (h.prototype.init = function () { 4512 (this.currentCheckState = this.determineCheckState()), this.updateAriaChecked(), this.adapter.addClass(p.cssClasses.UPGRADED); 4513 }), 4514 (h.prototype.destroy = function () { 4515 clearTimeout(this.animEndLatchTimer); 4516 }), 4517 (h.prototype.setDisabled = function (t) { 4518 this.adapter.setNativeControlDisabled(t), t ? this.adapter.addClass(p.cssClasses.DISABLED) : this.adapter.removeClass(p.cssClasses.DISABLED); 4519 }), 4520 (h.prototype.handleAnimationEnd = function () { 4521 var t = this; 4522 this.enableAnimationEndHandler && 4523 (clearTimeout(this.animEndLatchTimer), 4524 (this.animEndLatchTimer = setTimeout(function () { 4525 t.adapter.removeClass(t.currentAnimationClass), (t.enableAnimationEndHandler = !1); 4526 }, p.numbers.ANIM_END_LATCH_MS))); 4527 }), 4528 (h.prototype.handleChange = function () { 4529 this.transitionCheckState(); 4530 }), 4531 (h.prototype.transitionCheckState = function () { 4532 if (this.adapter.hasNativeControl()) { 4533 var t = this.currentCheckState, 4534 e = this.determineCheckState(); 4535 if (t !== e) { 4536 this.updateAriaChecked(); 4537 var n = p.strings.TRANSITION_STATE_UNCHECKED,
4538 i = p.cssClasses.SELECTED; 4539 e === n ? this.adapter.removeClass(i) : this.adapter.addClass(i), 4540 0 < this.currentAnimationClass.length && (clearTimeout(this.animEndLatchTimer), this.adapter.forceLayout(), this.adapter.removeClass(this.currentAnimationClass)), 4541 (this.currentAnimationClass = this.getTransitionAnimationClass(t, e)), 4542 (this.currentCheckState = e), 4543 this.adapter.isAttachedToDOM() && 0 < this.currentAnimationClass.length && (this.adapter.addClass(this.currentAnimationClass), (this.enableAnimationEndHandler = !0)); 4544 } 4545 } 4546 }), 4547 (h.prototype.determineCheckState = function () { 4548 var t = p.strings.TRANSITION_STATE_INDETERMINATE, 4549 e = p.strings.TRANSITION_STATE_CHECKED, 4550 n = p.strings.TRANSITION_STATE_UNCHECKED; 4551 return this.adapter.isIndeterminate() ? t : this.adapter.isChecked() ? e : n; 4552 }), 4553 (h.prototype.getTransitionAnimationClass = function (t, e) { 4554 var n = p.strings.TRANSITION_STATE_INIT, 4555 i = p.strings.TRANSITION_STATE_CHECKED, 4556 r = p.strings.TRANSITION_STATE_UNCHECKED, 4557 o = h.cssClasses, 4558 s = o.ANIM_UNCHECKED_CHECKED, 4559 a = o.ANIM_UNCHECKED_INDETERMINATE, 4560 c = o.ANIM_CHECKED_UNCHECKED, 4561 u = o.ANIM_CHECKED_INDETERMINATE, 4562 l = o.ANIM_INDETERMINATE_CHECKED, 4563 d = o.ANIM_INDETERMINATE_UNCHECKED; 4564 switch (t) { 4565 case n: 4566 return e === r ? "" : e === i ? l : d; 4567 case r: 4568 return e === i ? s : a; 4569 case i: 4570 return e === r ? c : u; 4571 default: 4572 return e === i ? l : d; 4573 } 4574 }), 4575 (h.prototype.updateAriaChecked = function () { 4576 this.adapter.isIndeterminate() ? this.adapter.setNativeControlAttr(p.strings.ARIA_CHECKED_ATTR, p.strings.ARIA_CHECKED_INDETERMINATE_VALUE) : this.adapter.removeNativeControlAttr(p.strings.ARIA_CHECKED_ATTR); 4577 }), 4578 h); 4579 function h(t) { 4580 var e = s.call(this, o(o({}, h.defaultAdapter), t)) || this; 4581 return (e.currentCheckState = p.strings.TRANSITION_STATE_INIT), (e.currentAnimationClass = ""), (e.animEndLatchTimer = 0), (e.enableAnimationEndHandler = !1), e; 4582 } 4583 (e.MDCCheckboxFoundation = c), (e.default = c); 4584 }, 4585 function (t, e, n) { 4586 "use strict"; 4587 var i, 4588 r = 4589 (this && this.__extends) || 4590 ((i = function (t, e) { 4591 return (i = 4592 Object.setPrototypeOf || 4593 ({ __proto__: [] } instanceof Array && 4594 function (t, e) { 4595 t.__proto__ = e; 4596 }) || 4597 function (t, e) { 4598 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4599 })(t, e); 4600 }), 4601 function (t, e) { 4602 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4603 function n() { 4604 this.constructor = t; 4605 } 4606 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4607 }); 4608 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChipTrailingAction = void 0); 4609 var o, 4610 s = n(1), 4611 a = n(2), 4612 c = n(4), 4613 u = n(12), 4614 l = n(50), 4615 d = 4616 ((o = s.MDCComponent), 4617 r(p, o), 4618 Object.defineProperty(p.prototype, "ripple", { 4619 get: function () { 4620 return this.rippleSurface; 4621 }, 4622 enumerable: !1, 4623 configurable: !0, 4624 }), 4625 (p.attachTo = function (t) { 4626 return new p(t); 4627 }), 4628 (p.prototype.initialize = function (t) { 4629 void 0 === t && 4630 (t = function (t, e) { 4631 return new a.MDCRipple(t, e); 4632 }); 4633 var e = a.MDCRipple.createAdapter(this); 4634 this.rippleSurface = t(this.root, new c.MDCRippleFoundation(e)); 4635 }), 4636 (p.prototype.initialSyncWithDOM = function () { 4637 var e = this; 4638 (this.handleClick = function (t) { 4639 e.foundation.handleClick(t); 4640 }), 4641 (this.handleKeydown = function (t) { 4642 e.foundation.handleKeydown(t); 4643 }), 4644 this.listen("click", this.handleClick), 4645 this.listen("keydown", this.handleKeydown); 4646 }), 4647 (p.prototype.destroy = function () { 4648 this.rippleSurface.destroy(), this.unlisten("click", this.handleClick), this.unlisten("keydown", this.handleKeydown), o.prototype.destroy.call(this); 4649 }), 4650 (p.prototype.getDefaultFoundation = function () { 4651 var n = this, 4652 t = { 4653 focus: function () { 4654 n.root.focus(); 4655 }, 4656 getAttribute: function (t) { 4657 return n.root.getAttribute(t); 4658 }, 4659 notifyInteraction: function (t) { 4660 return n.emit(u.strings.INTERACTION_EVENT, { trigger: t }, !0); 4661 }, 4662 notifyNavigation: function (t) { 4663 n.emit(u.strings.NAVIGATION_EVENT, { key: t }, !0); 4664 }, 4665 setAttribute: function (t, e) { 4666 n.root.setAttribute(t, e); 4667 }, 4668 }; 4669 return new l.MDCChipTrailingActionFoundation(t); 4670 }), 4671 (p.prototype.isNavigable = function () { 4672 return this.foundation.isNavigable(); 4673 }),
4674 (p.prototype.focus = function () { 4675 this.foundation.focus(); 4676 }), 4677 (p.prototype.removeFocus = function () { 4678 this.foundation.removeFocus(); 4679 }), 4680 p); 4681 function p() { 4682 return (null !== o && o.apply(this, arguments)) || this; 4683 } 4684 e.MDCChipTrailingAction = d; 4685 }, 4686 function (t, e, n) { 4687 "use strict"; 4688 var i, 4689 r = 4690 (this && this.__extends) || 4691 ((i = function (t, e) { 4692 return (i = 4693 Object.setPrototypeOf || 4694 ({ __proto__: [] } instanceof Array && 4695 function (t, e) { 4696 t.__proto__ = e; 4697 }) || 4698 function (t, e) { 4699 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4700 })(t, e); 4701 }), 4702 function (t, e) { 4703 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4704 function n() { 4705 this.constructor = t; 4706 } 4707 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4708 }), 4709 o = 4710 (this && this.__assign) || 4711 function () { 4712 return (o = 4713 Object.assign || 4714 function (t) { 4715 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 4716 return t; 4717 }).apply(this, arguments); 4718 }; 4719 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChipTrailingActionFoundation = void 0); 4720 var s, 4721 a = n(0), 4722 c = n(6), 4723 u = n(12), 4724 l = 4725 ((s = a.MDCFoundation), 4726 r(d, s), 4727 Object.defineProperty(d, "strings", { 4728 get: function () { 4729 return u.strings; 4730 }, 4731 enumerable: !1, 4732 configurable: !0, 4733 }), 4734 Object.defineProperty(d, "defaultAdapter", { 4735 get: function () { 4736 return { 4737 focus: function () {}, 4738 getAttribute: function () { 4739 return null; 4740 }, 4741 setAttribute: function () {}, 4742 notifyInteraction: function () {}, 4743 notifyNavigation: function () {}, 4744 }; 4745 }, 4746 enumerable: !1, 4747 configurable: !0, 4748 }), 4749 (d.prototype.handleClick = function (t) { 4750 t.stopPropagation(), this.adapter.notifyInteraction(u.InteractionTrigger.CLICK); 4751 }), 4752 (d.prototype.handleKeydown = function (t) { 4753 t.stopPropagation(); 4754 var e = c.normalizeKey(t); 4755 if (this.shouldNotifyInteractionFromKey(e)) { 4756 var n = this.getTriggerFromKey(e); 4757 this.adapter.notifyInteraction(n); 4758 } else c.isNavigationEvent(t) && this.adapter.notifyNavigation(e); 4759 }), 4760 (d.prototype.removeFocus = function () { 4761 this.adapter.setAttribute(u.strings.TAB_INDEX, "-1"); 4762 }),
4763 (d.prototype.focus = function () { 4764 this.adapter.setAttribute(u.strings.TAB_INDEX, "0"), this.adapter.focus(); 4765 }), 4766 (d.prototype.isNavigable = function () { 4767 return "true" !== this.adapter.getAttribute(u.strings.ARIA_HIDDEN); 4768 }), 4769 (d.prototype.shouldNotifyInteractionFromKey = function (t) { 4770 var e = t === c.KEY.ENTER || t === c.KEY.SPACEBAR, 4771 n = t === c.KEY.BACKSPACE || t === c.KEY.DELETE; 4772 return e || n; 4773 }), 4774 (d.prototype.getTriggerFromKey = function (t) { 4775 return t === c.KEY.SPACEBAR 4776 ? u.InteractionTrigger.SPACEBAR_KEY 4777 : t === c.KEY.ENTER 4778 ? u.InteractionTrigger.ENTER_KEY 4779 : t === c.KEY.DELETE 4780 ? u.InteractionTrigger.DELETE_KEY 4781 : t === c.KEY.BACKSPACE 4782 ? u.InteractionTrigger.BACKSPACE_KEY 4783 : u.InteractionTrigger.UNSPECIFIED; 4784 }), 4785 d); 4786 function d(t) { 4787 return s.call(this, o(o({}, d.defaultAdapter), t)) || this; 4788 } 4789 (e.MDCChipTrailingActionFoundation = l), (e.default = l); 4790 }, 4791 function (t, e, n) { 4792 "use strict"; 4793 var i, 4794 r = 4795 (this && this.__extends) || 4796 ((i = function (t, e) { 4797 return (i = 4798 Object.setPrototypeOf || 4799 ({ __proto__: [] } instanceof Array && 4800 function (t, e) { 4801 t.__proto__ = e; 4802 }) || 4803 function (t, e) { 4804 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 4805 })(t, e); 4806 }), 4807 function (t, e) { 4808 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 4809 function n() { 4810 this.constructor = t; 4811 } 4812 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 4813 }), 4814 o = 4815 (this && this.__assign) || 4816 function () { 4817 return (o = 4818 Object.assign || 4819 function (t) { 4820 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 4821 return t; 4822 }).apply(this, arguments); 4823 }; 4824 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChip = void 0); 4825 var s, 4826 a = n(1), 4827 c = n(2), 4828 u = n(4), 4829 l = n(49), 4830 d = n(12), 4831 p = n(13), 4832 h = n(21), 4833 f = 4834 ((s = a.MDCComponent), 4835 r(y, s), 4836 Object.defineProperty(y.prototype, "selected", { 4837 get: function () { 4838 return this.foundation.isSelected(); 4839 }, 4840 set: function (t) { 4841 this.foundation.setSelected(t); 4842 }, 4843 enumerable: !1, 4844 configurable: !0, 4845 }), 4846 Object.defineProperty(y.prototype, "shouldRemoveOnTrailingIconClick", { 4847 get: function () { 4848 return this.foundation.getShouldRemoveOnTrailingIconClick(); 4849 }, 4850 set: function (t) { 4851 this.foundation.setShouldRemoveOnTrailingIconClick(t); 4852 }, 4853 enumerable: !1, 4854 configurable: !0, 4855 }), 4856 Object.defineProperty(y.prototype, "setShouldFocusPrimaryActionOnClick", { 4857 set: function (t) { 4858 this.foundation.setShouldFocusPrimaryActionOnClick(t); 4859 }, 4860 enumerable: !1, 4861 configurable: !0, 4862 }), 4863 Object.defineProperty(y.prototype, "ripple", { 4864 get: function () { 4865 return this.rippleSurface; 4866 }, 4867 enumerable: !1, 4868 configurable: !0, 4869 }), 4870 Object.defineProperty(y.prototype, "id", { 4871 get: function () { 4872 return this.root.id; 4873 }, 4874 enumerable: !1, 4875 configurable: !0, 4876 }), 4877 (y.attachTo = function (t) { 4878 return new y(t); 4879 }), 4880 (y.prototype.initialize = function (t, e) { 4881 var n = this; 4882 void 0 === t && 4883 (t = function (t, e) { 4884 return new c.MDCRipple(t, e); 4885 }), 4886 void 0 === e && 4887 (e = function (t) { 4888 return new l.MDCChipTrailingAction(t); 4889 }), 4890 (this.leadingIcon = this.root.querySelector(p.strings.LEADING_ICON_SELECTOR)), 4891 (this.checkmark = this.root.querySelector(p.strings.CHECKMARK_SELECTOR)), 4892 (this.primaryAction = this.root.querySelector(p.strings.PRIMARY_ACTION_SELECTOR)); 4893 var i = this.root.querySelector(p.strings.TRAILING_ACTION_SELECTOR); 4894 i && (this.trailingAction = e(i)); 4895 var r = o(o({}, c.MDCRipple.createAdapter(this)), { 4896 computeBoundingRect: function () { 4897 return n.foundation.getDimensions(); 4898 }, 4899 }); 4900 this.rippleSurface = t(this.root, new u.MDCRippleFoundation(r)); 4901 }), 4902 (y.prototype.initialSyncWithDOM = function () { 4903 var e = this; 4904 (this.handleTrailingActionInteraction = function () { 4905 e.foundation.handleTrailingActionInteraction(); 4906 }), 4907 (this.handleTrailingActionNavigation = function (t) { 4908 e.foundation.handleTrailingActionNavigation(t); 4909 }), 4910 (this.handleClick = function () { 4911 e.foundation.handleClick(); 4912 }), 4913 (this.handleKeydown = function (t) { 4914 e.foundation.handleKeydown(t); 4915 }), 4916 (this.handleTransitionEnd = function (t) { 4917 e.foundation.handleTransitionEnd(t); 4918 }), 4919 (this.handleFocusIn = function (t) { 4920 e.foundation.handleFocusIn(t); 4921 }), 4922 (this.handleFocusOut = function (t) { 4923 e.foundation.handleFocusOut(t); 4924 }), 4925 this.listen("transitionend", this.handleTransitionEnd), 4926 this.listen("click", this.handleClick), 4927 this.listen("keydown", this.handleKeydown), 4928 this.listen("focusin", this.handleFocusIn), 4929 this.listen("focusout", this.handleFocusOut), 4930 this.trailingAction && (this.listen(d.strings.INTERACTION_EVENT, this.handleTrailingActionInteraction), this.listen(d.strings.NAVIGATION_EVENT, this.handleTrailingActionNavigation)); 4931 }), 4932 (y.prototype.destroy = function () { 4933 this.rippleSurface.destroy(), 4934 this.unlisten("transitionend", this.handleTransitionEnd), 4935 this.unlisten("keydown", this.handleKeydown), 4936 this.unlisten("click", this.handleClick), 4937 this.unlisten("focusin", this.handleFocusIn), 4938 this.unlisten("focusout", this.handleFocusOut), 4939 this.trailingAction && (this.unlisten(d.strings.INTERACTION_EVENT, this.handleTrailingActionInteraction), this.unlisten(d.strings.NAVIGATION_EVENT, this.handleTrailingActionNavigation)), 4940 s.prototype.destroy.call(this); 4941 }), 4942 (y.prototype.beginExit = function () { 4943 this.foundation.beginExit(); 4944 }), 4945 (y.prototype.getDefaultFoundation = function () { 4946 var n = this, 4947 t = { 4948 addClass: function (t) { 4949 return n.root.classList.add(t); 4950 }, 4951 addClassToLeadingIcon: function (t) { 4952 n.leadingIcon && n.leadingIcon.classList.add(t); 4953 }, 4954 eventTargetHasClass: function (t, e) { 4955 return !!t && t.classList.contains(e); 4956 }, 4957 focusPrimaryAction: function () { 4958 n.primaryAction && n.primaryAction.focus(); 4959 }, 4960 focusTrailingAction: function () { 4961 n.trailingAction && n.trailingAction.focus(); 4962 }, 4963 getAttribute: function (t) { 4964 return n.root.getAttribute(t); 4965 }, 4966 getCheckmarkBoundingClientRect: function () { 4967 return n.checkmark ? n.checkmark.getBoundingClientRect() : null; 4968 }, 4969 getComputedStyleValue: function (t) { 4970 return window.getComputedStyle(n.root).getPropertyValue(t); 4971 }, 4972 getRootBoundingClientRect: function () { 4973 return n.root.getBoundingClientRect(); 4974 }, 4975 hasClass: function (t) { 4976 return n.root.classList.contains(t); 4977 }, 4978 hasLeadingIcon: function () { 4979 return !!n.leadingIcon; 4980 }, 4981 isRTL: function () { 4982 return "rtl" === window.getComputedStyle(n.root).getPropertyValue("direction"); 4983 }, 4984 isTrailingActionNavigable: function () { 4985 return !!n.trailingAction && n.trailingAction.isNavigable(); 4986 }, 4987 notifyInteraction: function () { 4988 return n.emit(p.strings.INTERACTION_EVENT, { chipId: n.id }, !0); 4989 }, 4990 notifyNavigation: function (t, e) { 4991 return n.emit(p.strings.NAVIGATION_EVENT, { chipId: n.id, key: t, source: e }, !0); 4992 }, 4993 notifyRemoval: function (t) { 4994 n.emit(p.strings.REMOVAL_EVENT, { chipId: n.id, removedAnnouncement: t }, !0); 4995 }, 4996 notifySelection: function (t, e) { 4997 return n.emit(p.strings.SELECTION_EVENT, { chipId: n.id, selected: t, shouldIgnore: e }, !0); 4998 }, 4999 notifyTrailingIconInteraction: function () { 5000 return n.emit(p.strings.TRAILING_ICON_INTERACTION_EVENT, { chipId: n.id }, !0); 5001 }, 5002 notifyEditStart: function () {}, 5003 notifyEditFinish: function () {}, 5004 removeClass: function (t) { 5005 return n.root.classList.remove(t); 5006 }, 5007 removeClassFromLeadingIcon: function (t) { 5008 n.leadingIcon && n.leadingIcon.classList.remove(t); 5009 }, 5010 removeTrailingActionFocus: function () { 5011 n.trailingAction && n.trailingAction.removeFocus(); 5012 }, 5013 setPrimaryActionAttr: function (t, e) { 5014 n.primaryAction && n.primaryAction.setAttribute(t, e); 5015 }, 5016 setStyleProperty: function (t, e) { 5017 return n.root.style.setProperty(t, e); 5018 }, 5019 }; 5020 return new h.MDCChipFoundation(t); 5021 }), 5022 (y.prototype.setSelectedFromChipSet = function (t, e) { 5023 this.foundation.setSelectedFromChipSet(t, e); 5024 }),
5025 (y.prototype.focusPrimaryAction = function () { 5026 this.foundation.focusPrimaryAction(); 5027 }), 5028 (y.prototype.focusTrailingAction = function () { 5029 this.foundation.focusTrailingAction(); 5030 }), 5031 (y.prototype.removeFocus = function () { 5032 this.foundation.removeFocus(); 5033 }), 5034 (y.prototype.remove = function () { 5035 var t = this.root.parentNode; 5036 null !== t && t.removeChild(this.root); 5037 }), 5038 y); 5039 function y() { 5040 return (null !== s && s.apply(this, arguments)) || this; 5041 } 5042 e.MDCChip = f; 5043 }, 5044 function (t, e, n) { 5045 "use strict"; 5046 var i, 5047 r = 5048 (this && this.__extends) || 5049 ((i = function (t, e) { 5050 return (i = 5051 Object.setPrototypeOf || 5052 ({ __proto__: [] } instanceof Array && 5053 function (t, e) { 5054 t.__proto__ = e; 5055 }) || 5056 function (t, e) { 5057 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 5058 })(t, e); 5059 }), 5060 function (t, e) { 5061 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 5062 function n() { 5063 this.constructor = t; 5064 } 5065 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 5066 }), 5067 o = 5068 (this && this.__assign) || 5069 function () { 5070 return (o = 5071 Object.assign || 5072 function (t) { 5073 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 5074 return t; 5075 }).apply(this, arguments); 5076 }; 5077 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChipSetFoundation = void 0); 5078 var s, 5079 a = n(0), 5080 h = n(13), 5081 c = n(53), 5082 u = 5083 ((s = a.MDCFoundation), 5084 r(l, s), 5085 Object.defineProperty(l, "strings", { 5086 get: function () { 5087 return c.strings; 5088 }, 5089 enumerable: !1, 5090 configurable: !0, 5091 }), 5092 Object.defineProperty(l, "cssClasses", { 5093 get: function () {
5094 return c.cssClasses; 5095 }, 5096 enumerable: !1, 5097 configurable: !0, 5098 }), 5099 Object.defineProperty(l, "defaultAdapter", { 5100 get: function () { 5101 return { 5102 announceMessage: function () {}, 5103 focusChipPrimaryActionAtIndex: function () {}, 5104 focusChipTrailingActionAtIndex: function () {}, 5105 getChipListCount: function () { 5106 return -1; 5107 }, 5108 getIndexOfChipById: function () { 5109 return -1; 5110 }, 5111 hasClass: function () { 5112 return !1; 5113 }, 5114 isRTL: function () { 5115 return !1; 5116 }, 5117 removeChipAtIndex: function () {}, 5118 removeFocusFromChipAtIndex: function () {}, 5119 selectChipAtIndex: function () {}, 5120 }; 5121 }, 5122 enumerable: !1, 5123 configurable: !0, 5124 }), 5125 (l.prototype.getSelectedChipIds = function () { 5126 return this.selectedChipIds.slice(); 5127 }), 5128 (l.prototype.select = function (t) { 5129 this.selectImpl(t, !1); 5130 }), 5131 (l.prototype.handleChipInteraction = function (t) { 5132 var e = t.chipId, 5133 n = this.adapter.getIndexOfChipById(e); 5134 this.removeFocusFromChipsExcept(n), (this.adapter.hasClass(c.cssClasses.CHOICE) || this.adapter.hasClass(c.cssClasses.FILTER)) && this.toggleSelect(e); 5135 }), 5136 (l.prototype.handleChipSelection = function (t) { 5137 var e = t.chipId, 5138 n = t.selected; 5139 if (!t.shouldIgnore) { 5140 var i = 0 <= this.selectedChipIds.indexOf(e); 5141 n && !i ? this.select(e) : !n && i && this.deselectImpl(e); 5142 } 5143 }), 5144 (l.prototype.handleChipRemoval = function (t) { 5145 var e = t.chipId, 5146 n = t.removedAnnouncement; 5147 n && this.adapter.announceMessage(n); 5148 var i = this.adapter.getIndexOfChipById(e); 5149 this.deselectAndNotifyClients(e), this.adapter.removeChipAtIndex(i); 5150 var r = this.adapter.getChipListCount() - 1; 5151 if (!(r < 0)) { 5152 var o = Math.min(i, r); 5153 this.removeFocusFromChipsExcept(o), this.adapter.focusChipTrailingActionAtIndex(o); 5154 } 5155 }), 5156 (l.prototype.handleChipNavigation = function (t) { 5157 var e = t.chipId, 5158 n = t.key, 5159 i = t.source, 5160 r = this.adapter.getChipListCount() - 1, 5161 o = this.adapter.getIndexOfChipById(e); 5162 if (-1 !== o && h.navigationKeys.has(n)) { 5163 var s = this.adapter.isRTL(), 5164 a = n === h.strings.ARROW_LEFT_KEY || n === h.strings.IE_ARROW_LEFT_KEY, 5165 c = n === h.strings.ARROW_RIGHT_KEY || n === h.strings.IE_ARROW_RIGHT_KEY, 5166 u = n === h.strings.ARROW_DOWN_KEY || n === h.strings.IE_ARROW_DOWN_KEY,
5167 l = (!s && c) || (s && a) || u, 5168 d = n === h.strings.HOME_KEY, 5169 p = n === h.strings.END_KEY; 5170 l ? o++ : d ? (o = 0) : p ? (o = r) : o--, o < 0 || r < o || (this.removeFocusFromChipsExcept(o), this.focusChipAction(o, n, i)); 5171 } 5172 }), 5173 (l.prototype.focusChipAction = function (t, e, n) { 5174 var i = h.jumpChipKeys.has(e); 5175 if (i && n === h.EventSource.PRIMARY) return this.adapter.focusChipPrimaryActionAtIndex(t); 5176 if (i && n === h.EventSource.TRAILING) return this.adapter.focusChipTrailingActionAtIndex(t); 5177 var r = this.getDirection(e); 5178 return r === h.Direction.LEFT ? this.adapter.focusChipTrailingActionAtIndex(t) : r === h.Direction.RIGHT ? this.adapter.focusChipPrimaryActionAtIndex(t) : void 0; 5179 }), 5180 (l.prototype.getDirection = function (t) { 5181 var e = this.adapter.isRTL(), 5182 n = t === h.strings.ARROW_LEFT_KEY || t === h.strings.IE_ARROW_LEFT_KEY, 5183 i = t === h.strings.ARROW_RIGHT_KEY || t === h.strings.IE_ARROW_RIGHT_KEY; 5184 return (!e && n) || (e && i) ? h.Direction.LEFT : h.Direction.RIGHT; 5185 }), 5186 (l.prototype.deselectImpl = function (t, e) { 5187 void 0 === e && (e = !1); 5188 var n = this.selectedChipIds.indexOf(t); 5189 if (0 <= n) { 5190 this.selectedChipIds.splice(n, 1); 5191 var i = this.adapter.getIndexOfChipById(t); 5192 this.adapter.selectChipAtIndex(i, !1, e); 5193 } 5194 }), 5195 (l.prototype.deselectAndNotifyClients = function (t) { 5196 this.deselectImpl(t, !0); 5197 }), 5198 (l.prototype.toggleSelect = function (t) { 5199 0 <= this.selectedChipIds.indexOf(t) ? this.deselectAndNotifyClients(t) : this.selectAndNotifyClients(t); 5200 }), 5201 (l.prototype.removeFocusFromChipsExcept = function (t) { 5202 for (var e = this.adapter.getChipListCount(), n = 0; n < e; n++) n !== t && this.adapter.removeFocusFromChipAtIndex(n); 5203 }), 5204 (l.prototype.selectAndNotifyClients = function (t) { 5205 this.selectImpl(t, !0); 5206 }), 5207 (l.prototype.selectImpl = function (t, e) { 5208 if (!(0 <= this.selectedChipIds.indexOf(t))) { 5209 if (this.adapter.hasClass(c.cssClasses.CHOICE) && 0 < this.selectedChipIds.length) { 5210 var n = this.selectedChipIds[0], 5211 i = this.adapter.getIndexOfChipById(n); 5212 (this.selectedChipIds = []), this.adapter.selectChipAtIndex(i, !1, e); 5213 } 5214 this.selectedChipIds.push(t); 5215 var r = this.adapter.getIndexOfChipById(t); 5216 this.adapter.selectChipAtIndex(r, !0, e); 5217 } 5218 }), 5219 l); 5220 function l(t) { 5221 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 5222 return (e.selectedChipIds = []), e; 5223 } 5224 (e.MDCChipSetFoundation = u), (e.default = u); 5225 }, 5226 function (t, e, n) { 5227 "use strict"; 5228 Object.defineProperty(e, "__esModule", { value: !0 }
5228), (e.cssClasses = e.strings = void 0), (e.strings = { CHIP_SELECTOR: ".mdc-chip" }), (e.cssClasses = { CHOICE: "mdc-chip-set--choice", FILTER: "mdc-chip-set--filter" }); 5229 }, 5230 function (t, e, n) { 5231 "use strict"; 5232 var i, 5233 r = 5234 (this && this.__extends) || 5235 ((i = function (t, e) { 5236 return (i = 5237 Object.setPrototypeOf || 5238 ({ __proto__: [] } instanceof Array && 5239 function (t, e) { 5240 t.__proto__ = e; 5241 }) || 5242 function (t, e) { 5243 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 5244 })(t, e); 5245 }), 5246 function (t, e) { 5247 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 5248 function n() { 5249 this.constructor = t; 5250 } 5251 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 5252 }), 5253 o = 5254 (this && this.__assign) || 5255 function () { 5256 return (o = 5257 Object.assign || 5258 function (t) { 5259 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 5260 return t; 5261 }).apply(this, arguments); 5262 }; 5263 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCCircularProgressFoundation = void 0); 5264 var s, 5265 a = n(0), 5266 c = n(55), 5267 u = 5268 ((s = a.MDCFoundation), 5269 r(l, s), 5270 Object.defineProperty(l, "cssClasses", { 5271 get: function () {
5272 return c.cssClasses; 5273 }, 5274 enumerable: !1, 5275 configurable: !0, 5276 }), 5277 Object.defineProperty(l, "strings", { 5278 get: function () { 5279 return c.strings; 5280 }, 5281 enumerable: !1, 5282 configurable: !0, 5283 }), 5284 Object.defineProperty(l, "defaultAdapter", { 5285 get: function () { 5286 return { 5287 addClass: function () {}, 5288 getDeterminateCircleAttribute: function () { 5289 return null; 5290 }, 5291 hasClass: function () { 5292 return !1; 5293 }, 5294 removeClass: function () {}, 5295 removeAttribute: function () {}, 5296 setAttribute: function () {}, 5297 setDeterminateCircleAttribute: function () {}, 5298 }; 5299 }, 5300 enumerable: !1, 5301 configurable: !0, 5302 }), 5303 (l.prototype.init = function () { 5304 (this.closed = this.adapter.hasClass(c.cssClasses.CLOSED_CLASS)), 5305 (this.determinate = !this.adapter.hasClass(c.cssClasses.INDETERMINATE_CLASS)), 5306 (this.progress = 0), 5307 this.determinate && this.adapter.setAttribute(c.strings.ARIA_VALUENOW, this.progress.toString()), 5308 (this.radius = Number(this.adapter.getDeterminateCircleAttribute(c.strings.RADIUS))); 5309 }), 5310 (l.prototype.setDeterminate = function (t) { 5311 (this.determinate = t), 5312 this.determinate 5313 ? (this.adapter.removeClass(c.cssClasses.INDETERMINATE_CLASS), this.setProgress(this.progress)) 5314 : (this.adapter.addClass(c.cssClasses.INDETERMINATE_CLASS), this.adapter.removeAttribute(c.strings.ARIA_VALUENOW)); 5315 }), 5316 (l.prototype.isDeterminate = function () { 5317 return this.determinate; 5318 }), 5319 (l.prototype.setProgress = function (t) { 5320 if (((this.progress = t), this.determinate)) { 5321 var e = (1 - this.progress) * (2 * Math.PI * this.radius); 5322 this.adapter.setDeterminateCircleAttribute(c.strings.STROKE_DASHOFFSET, "" + e), this.adapter.setAttribute(c.strings.ARIA_VALUENOW, this.progress.toString()); 5323 } 5324 }), 5325 (l.prototype.getProgress = function () { 5326 return this.progress; 5327 }), 5328 (l.prototype.open = function () { 5329 (this.closed = !1), this.adapter.removeClass(c.cssClasses.CLOSED_CLASS), this.adapter.removeAttribute(c.strings.ARIA_HIDDEN); 5330 }), 5331 (l.prototype.close = function () { 5332 (this.closed = !0), this.adapter.addClass(c.cssClasses.CLOSED_CLASS), this.adapter.setAttribute(c.strings.ARIA_HIDDEN, "true"); 5333 }), 5334 (l.prototype.isClosed = function () { 5335 return this.closed; 5336 }), 5337 l); 5338 function l(t) { 5339 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 5340 } 5341 (e.MDCCircularProgressFoundation = u), (e.default = u); 5342 }, 5343 function (t, e, n) { 5344 "use strict"; 5345 Object.defineProperty(e, "__esModule", { value: !0 }),
5346 (e.strings = e.cssClasses = void 0), 5347 (e.cssClasses = { INDETERMINATE_CLASS: "mdc-circular-progress--indeterminate", CLOSED_CLASS: "mdc-circular-progress--closed" }), 5348 (e.strings = { ARIA_HIDDEN: "aria-hidden", ARIA_VALUENOW: "aria-valuenow", DETERMINATE_CIRCLE_SELECTOR: ".mdc-circular-progress__determinate-circle", RADIUS: "r", STROKE_DASHOFFSET: "stroke-dashoffset" }); 5349 }, 5350 function (t, e, n) { 5351 "use strict"; 5352 var i, 5353 r = 5354 (this && this.__extends) || 5355 ((i = function (t, e) { 5356 return (i = 5357 Object.setPrototypeOf || 5358 ({ __proto__: [] } instanceof Array && 5359 function (t, e) { 5360 t.__proto__ = e; 5361 }) || 5362 function (t, e) { 5363 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 5364 })(t, e); 5365 }), 5366 function (t, e) { 5367 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 5368 function n() { 5369 this.constructor = t; 5370 } 5371 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 5372 }); 5373 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCLinearProgress = void 0); 5374 var o, 5375 s = n(1), 5376 a = n(57), 5377 c = 5378 ((o = s.MDCComponent), 5379 r(u, o), 5380 (u.attachTo = function (t) { 5381 return new u(t); 5382 }), 5383 Object.defineProperty(u.prototype, "determinate", { 5384 set: function (t) { 5385 this.foundation.setDeterminate(t); 5386 }, 5387 enumerable: !1, 5388 configurable: !0, 5389 }), 5390 Object.defineProperty(u.prototype, "progress", { 5391 set: function (t) { 5392 this.foundation.setProgress(t); 5393 }, 5394 enumerable: !1, 5395 configurable: !0, 5396 }), 5397 Object.defineProperty(u.prototype, "buffer", { 5398 set: function (t) { 5399 this.foundation.setBuffer(t); 5400 }, 5401 enumerable: !1, 5402 configurable: !0, 5403 }), 5404 (u.prototype.open = function () { 5405 this.foundation.open(); 5406 }), 5407 (u.prototype.close = function () { 5408 this.foundation.close(); 5409 }), 5410 (u.prototype.initialSyncWithDOM = function () { 5411 var t = this; 5412 this.root.addEventListener("transitionend", function () { 5413 t.foundation.handleTransitionEnd(); 5414 }); 5415 }), 5416 (u.prototype.getDefaultFoundation = function () { 5417 var i = this, 5418 t = { 5419 addClass: function (t) { 5420 i.root.classList.add(t); 5421 }, 5422 forceLayout: function () { 5423 i.root.getBoundingClientRect(); 5424 }, 5425 setBufferBarStyle: function (t, e) { 5426 var n = i.root.querySelector(a.MDCLinearProgressFoundation.strings.BUFFER_BAR_SELECTOR); 5427 n && n.style.setProperty(t, e); 5428 }, 5429 setPrimaryBarStyle: function (t, e) { 5430 var n = i.root.querySelector(a.MDCLinearProgressFoundation.strings.PRIMARY_BAR_SELECTOR); 5431 n && n.style.setProperty(t, e); 5432 }, 5433 hasClass: function (t) { 5434 return i.root.classList.contains(t); 5435 }, 5436 removeAttribute: function (t) { 5437 i.root.removeAttribute(t); 5438 }, 5439 removeClass: function (t) { 5440 i.root.classList.remove(t); 5441 }, 5442 setAttribute: function (t, e) { 5443 i.root.setAttribute(t, e); 5444 }, 5445 setStyle: function (t, e) { 5446 i.root.style.setProperty(t, e); 5447 }, 5448 attachResizeObserver: function (t) { 5449 var e = window.ResizeObserver; 5450 if (e) { 5451 var n = new e(t); 5452 return n.observe(i.root), n; 5453 } 5454 return null; 5455 }, 5456 getWidth: function () { 5457 return i.root.offsetWidth; 5458 }, 5459 }; 5460 return new a.MDCLinearProgressFoundation(t); 5461 }), 5462 u); 5463 function u() { 5464 return (null !== o && o.apply(this, arguments)) || this; 5465 } 5466 e.MDCLinearProgress = c; 5467 }, 5468 function (t, e, n) { 5469 "use strict"; 5470 var i, 5471 r = 5472 (this && this.__extends) || 5473 ((i = function (t, e) { 5474 return (i = 5475 Object.setPrototypeOf || 5476 ({ __proto__: [] } instanceof Array && 5477 function (t, e) { 5478 t.__proto__ = e; 5479 }) || 5480 function (t, e) { 5481 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 5482 })(t, e); 5483 }), 5484 function (t, e) { 5485 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 5486 function n() { 5487 this.constructor = t; 5488 } 5489 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 5490 }), 5491 o = 5492 (this && this.__assign) || 5493 function () { 5494 return (o = 5495 Object.assign || 5496 function (t) { 5497 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 5498 return t; 5499 }).apply(this, arguments); 5500 }, 5501 a = 5502 (this && this.__values) || 5503 function (t) { 5504 var e = "function" == typeof Symbol && Symbol.iterator, 5505 n = e && t[e], 5506 i = 0; 5507 if (n) return n.call(t); 5508 if (t && "number" == typeof t.length) 5509 return { 5510 next: function () { 5511 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 5512 }, 5513 }; 5514 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 5515 }; 5516 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCLinearProgressFoundation = void 0); 5517 var s, 5518 c = n(10), 5519 u = n(0), 5520 l = n(58), 5521 d = 5522 ((s = u.MDCFoundation), 5523 r(p, s),
5524 Object.defineProperty(p, "cssClasses", { 5525 get: function () { 5526 return l.cssClasses; 5527 }, 5528 enumerable: !1, 5529 configurable: !0, 5530 }), 5531 Object.defineProperty(p, "strings", { 5532 get: function () { 5533 return l.strings; 5534 }, 5535 enumerable: !1, 5536 configurable: !0, 5537 }), 5538 Object.defineProperty(p, "defaultAdapter", { 5539 get: function () { 5540 return { 5541 addClass: function () {}, 5542 attachResizeObserver: function () { 5543 return null; 5544 }, 5545 forceLayout: function () {}, 5546 getWidth: function () { 5547 return 0; 5548 }, 5549 hasClass: function () { 5550 return !1; 5551 }, 5552 setBufferBarStyle: function () { 5553 return null; 5554 }, 5555 setPrimaryBarStyle: function () { 5556 return null; 5557 }, 5558 setStyle: function () {}, 5559 removeAttribute: function () {}, 5560 removeClass: function () {}, 5561 setAttribute: function () {}, 5562 }; 5563 }, 5564 enumerable: !1, 5565 configurable: !0, 5566 }), 5567 (p.prototype.init = function () { 5568 var s = this; 5569 (this.determinate = !this.adapter.hasClass(l.cssClasses.INDETERMINATE_CLASS)), 5570 this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS), 5571 (this.progress = 0), 5572 (this.buffer = 1), 5573 (this.observer = this.adapter.attachResizeObserver(function (t) { 5574 var e, n; 5575 if (!s.determinate) 5576 try { 5577 for (var i = a(t), r = i.next(); !r.done; r = i.next()) { 5578 var o = r.value; 5579 o.contentRect && s.calculateAndSetDimensions(o.contentRect.width); 5580 } 5581 } catch (t) { 5582 e = { error: t }; 5583 } finally { 5584 try { 5585 r && !r.done && (n = i.return) && n.call(i); 5586 } finally { 5587 if (e) throw e.error; 5588 } 5589 } 5590 })), 5591 !this.determinate && this.observer && this.calculateAndSetDimensions(this.adapter.getWidth()); 5592 }), 5593 (p.prototype.setDeterminate = function (t) { 5594 if (((this.determinate = t), this.determinate)) 5595 return ( 5596 this.adapter.removeClass(l.cssClasses.INDETERMINATE_CLASS), 5597 this.adapter.setAttribute(l.strings.ARIA_VALUENOW, this.progress.toString()), 5598 this.adapter.setAttribute(l.strings.ARIA_VALUEMAX, "1"), 5599 this.adapter.setAttribute(l.strings.ARIA_VALUEMIN, "0"), 5600 this.setPrimaryBarProgress(this.progress), 5601 void this.setBufferBarProgress(this.buffer) 5602 ); 5603 this.observer && this.calculateAndSetDimensions(this.adapter.getWidth()), 5604 this.adapter.addClass(l.cssClasse
5604s.INDETERMINATE_CLASS), 5605 this.adapter.removeAttribute(l.strings.ARIA_VALUENOW), 5606 this.adapter.removeAttribute(l.strings.ARIA_VALUEMAX), 5607 this.adapter.removeAttribute(l.strings.ARIA_VALUEMIN), 5608 this.setPrimaryBarProgress(1), 5609 this.setBufferBarProgress(1); 5610 }), 5611 (p.prototype.isDeterminate = function () { 5612 return this.determinate; 5613 }), 5614 (p.prototype.setProgress = function (t) { 5615 (this.progress = t), this.determinate && (this.setPrimaryBarProgress(t), this.adapter.setAttribute(l.strings.ARIA_VALUENOW, t.toString())); 5616 }), 5617 (p.prototype.getProgress = function () { 5618 return this.progress; 5619 }), 5620 (p.prototype.setBuffer = function (t) { 5621 (this.buffer = t), this.determinate && this.setBufferBarProgress(t); 5622 }), 5623 (p.prototype.getBuffer = function () { 5624 return this.buffer; 5625 }), 5626 (p.prototype.open = function () { 5627 this.adapter.removeClass(l.cssClasses.CLOSED_CLASS), this.adapter.removeClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS), this.adapter.removeAttribute(l.strings.ARIA_HIDDEN); 5628 }), 5629 (p.prototype.close = function () { 5630 this.adapter.addClass(l.cssClasses.CLOSED_CLASS), this.adapter.setAttribute(l.strings.ARIA_HIDDEN, "true"); 5631 }), 5632 (p.prototype.isClosed = function () { 5633 return this.adapter.hasClass(l.cssClasses.CLOSED_CLASS); 5634 }), 5635 (p.prototype.handleTransitionEnd = function () { 5636 this.adapter.hasClass(l.cssClasses.CLOSED_CLASS) && this.adapter.addClass(l.cssClasses.CLOSED_ANIMATION_OFF_CLASS); 5637 }), 5638 (p.prototype.destroy = function () { 5639 s.prototype.destroy.call(this), this.observer && this.observer.disconnect(); 5640 }), 5641 (p.prototype.restartAnimation = function () { 5642 this.adapter.removeClass(l.cssClasses.ANIMATION_READY_CLASS), this.adapter.forceLayout(), this.adapter.addClass(l.cssClasses.ANIMATION_READY_CLASS); 5643 }), 5644 (p.prototype.setPrimaryBarProgress = function (t) { 5645 var e = "scaleX(" + t + ")", 5646 n = "undefined" != typeof window ? c.getCorrectPropertyName(window, "transform") : "transform"; 5647 this.adapter.setPrimaryBarStyle(n, e); 5648 }), 5649 (p.prototype.setBufferBarProgress = function (t) { 5650 var e = 100 * t + "%"; 5651 this.adapter.setBufferBarStyle(l.strings.FLEX_BASIS, e); 5652 }), 5653 (p.prototype.calculateAndSetDimensions = function (t) { 5654 var e = t * l.animationDimensionPercentages.PRIMARY_HALF, 5655 n = t * l.animationDimensionPercentages.PRIMARY_FULL, 5656 i = t * l.animationDimensionPercentages.SECONDARY_QUARTER, 5657 r = t * l.animationDimensionPercentages.SECONDARY_HALF, 5658 o = t * l.animationDimensionPercentages.SECONDARY_FULL; 5659 this.adapter.setStyle("--mdc-linear-progress-primary-half", e + "px"), 5660 this.adapter.setStyle("--mdc-linear-progress-primary-half-neg", -e + "px"), 5661 this.adapter.setStyle("--mdc-linear-progress-primary-full", n + "px"), 5662 this.adapter.setStyle("--mdc-linear-progress-primary-full-neg", -n + "px"), 5663 this.adapter.setStyle("--mdc-linear-progress-secondary-quarter", i + "px"), 5664 this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg", -i + "px"), 5665 this.adapter.setStyle("--mdc-linear-progress-secondary-half", r + "px"), 5666 this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg", -r + "px"), 5667 this.adapter.setStyle("--mdc-linear-progress-secondary-full", o + "px"), 5668 this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg", -o + "px"), 5669 this.restartAnimation(); 5670 }), 5671 p); 5672 function p(t) { 5673 var e = s.call(this, o(o({}, p.defaultAdapter), t)) || this; 5674 return (e.observer = null), e; 5675 } 5676 (e.MDCLinearProgressFoundation = d), (e.default = d); 5677 }, 5678 function (t, e, n) { 5679 "use strict"; 5680 Object.defineProperty(e, "__esModule", { value: !0 }), 5681 (e.animationDimensionPercentages = e.strings = e.cssClasse
5681s = void 0), 5682 (e.cssClasses = { 5683 CLOSED_CLASS: "mdc-linear-progress--closed", 5684 CLOSED_ANIMATION_OFF_CLASS: "mdc-linear-progress--closed-animation-off", 5685 INDETERMINATE_CLASS: "mdc-linear-progress--indeterminate", 5686 REVERSED_CLASS: "mdc-linear-progress--reversed", 5687 ANIMATION_READY_CLASS: "mdc-linear-progress--animation-ready", 5688 }), 5689 (e.strings = { 5690 ARIA_HIDDEN: "aria-hidden", 5691 ARIA_VALUEMAX: "aria-valuemax", 5692 ARIA_VALUEMIN: "aria-valuemin", 5693 ARIA_VALUENOW: "aria-valuenow", 5694 BUFFER_BAR_SELECTOR: ".mdc-linear-progress__buffer-bar", 5695 FLEX_BASIS: "flex-basis", 5696 PRIMARY_BAR_SELECTOR: ".mdc-linear-progress__primary-bar", 5697 }), 5698 (e.animationDimensionPercentages = { PRIMARY_HALF: 0.8367142, PRIMARY_FULL: 2.00611057, SECONDARY_QUARTER: 0.37651913, SECONDARY_HALF: 0.84386165, SECONDARY_FULL: 1.60277782 }); 5699 }, 5700 function (t, e, n) { 5701 "use strict"; 5702 var i, 5703 r = 5704 (this && this.__extends) || 5705 ((i = function (t, e) { 5706 return (i = 5707 Object.setPrototypeOf || 5708 ({ __proto__: [] } instanceof Array && 5709 function (t, e) { 5710 t.__proto__ = e; 5711 }) || 5712 function (t, e) { 5713 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 5714 })(t, e); 5715 }), 5716 function (t, e) { 5717 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 5718 function n() { 5719 this.constructor = t; 5720 } 5721 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 5722 }), 5723 o = 5724 (this && this.__assign) || 5725 function () { 5726 return (o = 5727 Object.assign || 5728 function (t) { 5729 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 5730 return t; 5731 }).apply(this, arguments); 5732 }, 5733 s = 5734 (this && this.__awaiter) || 5735 function (t, s, a, c) { 5736 return new (a = a || Promise)(function (e, n) { 5737 function i(t) { 5738 try { 5739 o(c.next(t)); 5740 } catch (t) { 5741 n(t); 5742 } 5743 } 5744 function r(t) { 5745 try { 5746 o(c.throw(t)); 5747 } catch (t) { 5748 n(t); 5749 } 5750 } 5751 function o(t) { 5752 t.done 5753 ? e(t.value) 5754 : (function (e) { 5755 return e instanceof a 5756 ? e 5757 : new a(function (t) { 5758 t(e); 5759 }); 5760 })(t.value).then(i, r); 5761 } 5762 o((c = c.apply(t, s || [])).next()); 5763 }); 5764 }, 5765 a = 5766 (this && this.__generator) || 5767 function (n, i) { 5768 var r, 5769 o, 5770 s, 5771 t, 5772 a = { 5773 label: 0, 5774 sent: function () { 5775 if (1 & s[0]) throw s[1]; 5776 return s[1]; 5777 }, 5778 trys: [], 5779 ops: [], 5780 }; 5781 return ( 5782 (t = { next: e(0), throw: e(1), return: e(2) }), 5783 "function" == typeof Symbol && 5784 (t[Symbol.iterator] = function () { 5785 return this; 5786 }), 5787 t 5788 ); 5789 function e(e) { 5790 return function (t) { 5791 return (function (e) { 5792 if (r) throw new TypeError("Generator is already executing."); 5793 for (; a; ) 5794 try { 5795 if (((r = 1), o && (s = 2 & e[0] ? o.return : e[0] ? o.throw || ((s = o.return) && s.call(o), 0
5795) : o.next) && !(s = s.call(o, e[1])).done)) return s; 5796 switch (((o = 0), s && (e = [2 & e[0], s.value]), e[0])) { 5797 case 0: 5798 case 1: 5799 s = e; 5800 break; 5801 case 4: 5802 return a.label++, { value: e[1], done: !1 }; 5803 case 5: 5804 a.label++, (o = e[1]), (e = [0]); 5805 continue; 5806 case 7: 5807 (e = a.ops.pop()), a.trys.pop(); 5808 continue; 5809 default: 5810 if (!(s = 0 < (s = a.trys).length && s[s.length - 1]) && (6 === e[0] || 2 === e[0])) { 5811 a = 0; 5812 continue; 5813 } 5814 if (3 === e[0] && (!s || (e[1] > s[0] && e[1] < s[3]))) { 5815 a.label = e[1]; 5816 break; 5817 } 5818 if (6 === e[0] && a.label < s[1]) { 5819 (a.label = s[1]), (s = e); 5820 break; 5821 } 5822 if (s && a.label < s[2]) { 5823 (a.label = s[2]), a.ops.push(e); 5824 break; 5825 } 5826 s[2] && a.ops.pop(), a.trys.pop(); 5827 continue; 5828 } 5829 e = i.call(n, a); 5830 } catch (t) { 5831 (e = [6, t]), (o = 0); 5832 } finally { 5833 r = s = 0; 5834 } 5835 if (5 & e[0]) throw e[1]; 5836 return { value: e[0] ? e[1] : void 0, done: !0 }; 5837 })([e, t]); 5838 }; 5839 } 5840 }; 5841 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDataTableFoundation = void 0); 5842 var c, 5843 u = n(0), 5844 l = n(22), 5845 d = 5846 ((c = u.MDCFoundation), 5847 r(p, c), 5848 Object.defineProperty(p, "defaultAdapter", { 5849 get: function () { 5850 return { 5851 addClass: function () {}, 5852 addClassAtRowIndex: function () {}, 5853 getAttributeByHeaderCellIndex: function () { 5854 return ""; 5855 }, 5856 getHeaderCellCount: function () { 5857 return 0; 5858 }, 5859 getHeaderCellElements: function () { 5860 return []; 5861 }, 5862 getRowCount: function () { 5863 return 0; 5864 }, 5865 getRowElements: function () { 5866 return []; 5867 }, 5868 getRowIdAtIndex: function () { 5869 return ""; 5870 }, 5871 getRowIndexByChildElement: function () { 5872 return 0; 5873 }, 5874 getSelectedRowCount: function () { 5875 return 0; 5876 }, 5877 getTableContainerHeight: function () { 5878 return 0; 5879 }, 5880 getTableHeaderHeight: function () { 5881 return 0; 5882 }, 5883 isCheckboxAtRowIndexChecked: function () { 5884 return !1; 5885 }, 5886 isHeaderRowCheckboxChecked: function () { 5887 return !1; 5888 }, 5889 isRowsSelectable: function () { 5890 return !1; 5891 }, 5892 notifyRowSelectionChanged: function () {}, 5893 notifySelectedAll: function () {}, 5894 notifySortAction: function () {}, 5895 notifyUnselectedAll: function () {}, 5896 notifyRowClick: function () {}, 5897 registerHeaderRowCheckbox: function () {}, 5898 registerRowCheckboxes: function () {}, 5899 removeClass: function () {}, 5900 removeClassAtRowIndex: function () {}, 5901 removeClassNameByHeaderCellIndex: function () {}, 5902 setAttributeAtRowIndex: function () {}, 5903 setAttributeByHeaderCellIndex: function () {}, 5904 setClassNameByHeaderCellIndex: function () {}, 5905 setHeaderRowCheckboxChecked: function () {}, 5906 setHeaderRowCheckboxIndeterminate: function () {}, 5907 setProgressIndicatorStyles: function () {}, 5908 setRowCheckboxCheckedAtIndex: function () {}, 5909 setSortStatusLabelByHeaderCellIndex: function () {}, 5910 }; 5911 }, 5912 enumerable: !1, 5913 configurable: !0, 5914 }), 5915 (p.prototype.layout = function () { 5916 this.adapter.isRowsSelectable() && (this.adapter.registerHeaderRowCheckbox(), this.adapter.registerRowCheckboxes(), this.setHeaderRowCheckboxState()); 5917 }), 5918 (p.prototype.layoutAsync = function () { 5919 return s(this, void 0, void 0, function () { 5920 return a(this, function (t) { 5921 switch (t.label) { 5922 case 0: 5923 return this.adapter.isRowsSelectable() ? [4, this.adapter.registerHeaderRowCheckbox()] : [3, 3]; 5924 case 1: 5925 return t.sent(), [4, this.adapter.registerRowCheckboxes()]; 5926 case 2: 5927 t.sent(), this.setHeaderRowCheckboxState(), (t.label = 3); 5928 case 3: 5929 return [2]; 5930 } 5931 }); 5932 }); 5933 }), 5934 (p.prototype.getRows = function () { 5935 return this.adapter.getRowElements(); 5936 }), 5937 (p.prototype.getHeaderCells = function () { 5938 return this.adapter.getHeaderCellElements(); 5939 }), 5940 (p.prototype.setSelectedRowIds = function (t) { 5941 for (var e = 0; e < this.adapter.getRowCount(); e++) { 5942 var n = this.adapter.getRowIdAtIndex(e), 5943 i = !1; 5944 n && 0 <= t.indexOf(n) && (i = !0), this.adapter.setRowCheckboxCheckedAtIndex(e, i), this.selectRowAtIndex(e, i); 5945 } 5946 this.setHeaderRowCheckboxState(); 5947 }), 5948 (p.prototype.getRowIds = function () { 5949 for (var t = [], e = 0; e < this.adapter.getRowCount(); e++) t.push(this.adapter.getRowIdAtIndex(e)); 5950 return t; 5951 }), 5952 (p.prototype.getSelectedRowIds = function () { 5953 for (var t = [], e = 0; e < this.adapter.getRowCount(); e++) this.adapter.isCheckboxAtRowIndexChecked(e) && t.push(this.adapter.getRowIdAtIndex(e)); 5954 return t; 5955 }), 5956 (p.prototype.handleHeaderRowCheckboxChange = function () { 5957 for (var t = this.adapter.isHeaderRowCheckboxChecked(), e = 0; e < this.adapter.getRowCount(); e++) this.adapter.setRowCheckboxCheckedAtIndex(e, t), this.selectRowAtIndex(e, t); 5958 t ? this.adapter.notifySelectedAll() : this.adapter.notifyUnselectedAll(); 5959 }), 5960 (p.prototype.handleRowCheckboxChange = function (t) { 5961 var e = this.adapter.getRowIndexByChildElement(t.target); 5962 if (-1 !== e) { 5963 var n = this.adapter.isCheckboxAtRowIndexChecked(e); 5964 this.selectRowAtIndex(e, n), this.setHeaderRowCheckboxState(); 5965 var i = this.adapter.getRowIdAtIndex(e); 5966 this.adapter.notifyRowSelectionChanged({ rowId: i, rowIndex: e, selected: n }); 5967 } 5968 }), 5969 (p.prototype.handleSortAction = function (t) { 5970 for (var e = t.columnId, n = t.columnIndex, i = t.headerCell, r = 0; r < this.adapter.getHeaderCellCount(); r++) 5971 r !== n && 5972 (this.adapter.removeClassNameByHeaderCellIndex(r, l.cssClasse
5972s.HEADER_CELL_SORTED), 5973 this.adapter.removeClassNameByHeaderCellIndex(r, l.cssClasses.HEADER_CELL_SORTED_DESCENDING), 5974 this.adapter.setAttributeByHeaderCellIndex(r, l.strings.ARIA_SORT, l.SortValue.NONE), 5975 this.adapter.setSortStatusLabelByHeaderCellIndex(r, l.SortValue.NONE)); 5976 this.adapter.setClassNameByHeaderCellIndex(n, l.cssClasses.HEADER_CELL_SORTED); 5977 var o = this.adapter.getAttributeByHeaderCellIndex(n, l.strings.ARIA_SORT), 5978 s = l.SortValue.NONE; 5979 (s = 5980 o === l.SortValue.ASCENDING 5981 ? (this.adapter.setClassNameByHeaderCellIndex(n, l.cssClasses.HEADER_CELL_SORTED_DESCENDING), 5982 this.adapter.setAttributeByHeaderCellIndex(n, l.strings.ARIA_SORT, l.SortValue.DESCENDING), 5983 l.SortValue.DESCENDING) 5984 : (o === l.SortValue.DESCENDING && this.adapter.removeClassNameByHeaderCellIndex(n, l.cssClasses.HEADER_CELL_SORTED_DESCENDING), 5985 this.adapter.setAttributeByHeaderCellIndex(n, l.strings.ARIA_SORT, l.SortValue.ASCENDING), 5986 l.SortValue.ASCENDING)), 5987 this.adapter.setSortStatusLabelByHeaderCellIndex(n, s), 5988 this.adapter.notifySortAction({ columnId: e, columnIndex: n, headerCell: i, sortValue: s }); 5989 }), 5990 (p.prototype.handleRowClick = function (t) { 5991 var e = t.rowId, 5992 n = t.row; 5993 this.adapter.notifyRowClick({ rowId: e, row: n }); 5994 }), 5995 (p.prototype.showProgress = function () { 5996 var t = this.adapter.getTableHeaderHeight(), 5997 e = this.adapter.getTableContainerHeight() - t, 5998 n = t; 5999 this.adapter.setProgressIndicatorStyles({ height: e + "px", top: n + "px" }), this.adapter.addClass(l.cssClasses.IN_PROGRESS); 6000 }), 6001 (p.prototype.hideProgress = function () { 6002 this.adapter.removeClass(l.cssClasses.IN_PROGRESS); 6003 }), 6004 (p.prototype.setHeaderRowCheckboxState = function () { 6005 0 === this.adapter.getSelectedRowCount() 6006 ? (this.adapter.setHeaderRowCheckboxChecked(!1), this.adapter.setHeaderRowCheckboxIndeterminate(!1)) 6007 : this.adapter.getSelectedRowCount() === this.adapter.getRowCount() 6008 ? (this.adapter.setHeaderRowCheckboxChecked(!0), this.adapter.setHeaderRowCheckboxIndeterminate(!1)) 6009 : (this.adapter.setHeaderRowCheckboxIndeterminate(!0), this.adapter.setHeaderRowCheckboxChecked(!1)); 6010 }), 6011 (p.prototype.selectRowAtIndex = function (t, e) { 6012 e 6013 ? (this.adapter.addClassAtRowIndex(t, l.cssClasses.ROW_SELECTED), this.adapter.setAttributeAtRowIndex(t, l.strings.ARIA_SELECTED, "true")) 6014 : (this.adapter.removeClassAtRowIndex(t, l.cssClasses.ROW_SELECTED), this.adapter.setAttributeAtRowIndex(t, l.strings.ARIA_SELECTED, "false")); 6015 }), 6016 p); 6017 function p(t) { 6018 return c.call(this, o(o({}, p.defaultAdapter), t)) || this; 6019 } 6020 e.MDCDataTableFoundation = d; 6021 }, 6022 function (t, e, n) { 6023 "use strict"; 6024 Object.defineProperty(e, "__esModule", { value: !0 }), 6025 (e.areTopsMisaligned = e.isScrollAtBottom = e.isScrollAtTop = e.isScrollable = e.createFocusTrapInstance = void 0), 6026 (e.createFocusTrapInstance = function (t, e, n) { 6027 return e(t, { initialFocusEl: n }); 6028 }), 6029 (e.isScrollable = function (t) { 6030 return !!t && t.scrollHeight > t.offsetHeight; 6031 }), 6032 (e.isScrollAtTop = function (t) { 6033 return !!t && 0 === t.scrollTop; 6034 }), 6035 (e.isScrollAtBottom = function (t) { 6036 return !!t && Math.ceil(t.scrollHeight - t.scrollTop) === t.clientHeight; 6037 }), 6038 (e.areTopsMisaligned = function (t) { 6039 var e = new Set(); 6040 return ( 6041 [].forEach.call(t, function (t) { 6042 return e.add(t.offsetTop); 6043 }), 6044 1 < e.size 6045 ); 6046 }); 6047 }, 6048 function (t, e, n) { 6049 "use strict"; 6050 var i, 6051 r = 6052 (this && this.__extends) || 6053 ((i = function (t, e) { 6054 return (i = 6055 Object.setPrototypeOf || 6056 ({ __proto__: [] } instanceof Array && 6057 function (t, e) { 6058 t.__proto__ = e; 6059 }) || 6060 function (t, e) { 6061 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6062 })(t, e); 6063 }), 6064 function (t, e) { 6065 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6066 function n() { 6067 this.constructor = t; 6068 } 6069 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6070 }), 6071 o = 6072 (this && this.__assign) || 6073 function () { 6074 return (o = 6075 Object.assign || 6076 function (t) { 6077 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 6078 return t; 6079 }).apply(this, arguments); 6080 }; 6081 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDialogFoundation = void 0); 6082 var s, 6083 a, 6084 c = n(23), 6085 u = n(0), 6086 l = n(62); 6087 ((a = s = s || {}).POLL_SCROLL_POS = "poll_scroll_position"), (a.POLL_LAYOUT_CHANGE = "poll_layout_change"); 6088 var d, 6089 p = 6090 ((d = u.MDCFoundation), 6091 r(h, d),
6092 Object.defineProperty(h, "cssClasses", { 6093 get: function () { 6094 return l.cssClasses; 6095 }, 6096 enumerable: !1, 6097 configurable: !0, 6098 }), 6099 Object.defineProperty(h, "strings", { 6100 get: function () { 6101 return l.strings; 6102 }, 6103 enumerable: !1, 6104 configurable: !0, 6105 }), 6106 Object.defineProperty(h, "numbers", { 6107 get: function () { 6108 return l.numbers; 6109 }, 6110 enumerable: !1, 6111 configurable: !0, 6112 }), 6113 Object.defineProperty(h, "defaultAdapter", { 6114 get: function () { 6115 return { 6116 addBodyClass: function () {}, 6117 addClass: function () {}, 6118 areButtonsStacked: function () { 6119 return !1; 6120 }, 6121 clickDefaultButton: function () {}, 6122 eventTargetMatches: function () { 6123 return !1; 6124 }, 6125 getActionFromEvent: function () { 6126 return ""; 6127 }, 6128 getInitialFocusEl: function () { 6129 return null; 6130 }, 6131 hasClass: function () { 6132 return !1; 6133 }, 6134 isContentScrollable: function () { 6135 return !1; 6136 }, 6137 notifyClosed: function () {}, 6138 notifyClosing: function () {}, 6139 notifyOpened: function () {}, 6140 notifyOpening: function () {}, 6141 releaseFocus: function () {}, 6142 removeBodyClass: function () {}, 6143 removeClass: function () {}, 6144 reverseButtons: function () {}, 6145 trapFocus: function () {}, 6146 registerContentEventHandler: function () {}, 6147 deregisterContentEventHandler: function () {}, 6148 isScrollableContentAtTop: function () { 6149 return !1; 6150 }, 6151 isScrollableContentAtBottom: function () { 6152 return !1; 6153 }, 6154 registerWindowEventHandler: function () {}, 6155 deregisterWindowEventHandler: function () {}, 6156 }; 6157 }, 6158 enumerable: !1, 6159 configurable: !0, 6160 }), 6161 (h.prototype.init = function () { 6162 this.adapter.hasClass(l.cssClasses.STACKED) && this.setAutoStackButtons(!1), (this.isFullscreen = this.adapter.hasClass(l.cssClasses.FULLSCREEN)); 6163 }), 6164 (h.prototype.destroy = function () { 6165 this.animationTimer && (clearTimeout(this.animationTimer), this.handleAnimationTimerEnd()), 6166 this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), 6167 this.animFrame.cancelAll(), 6168 this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), 6169 this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler); 6170 }), 6171 (h.prototype.open = function (t) { 6172 var e = this; 6173 (this.dialogOpen = !0), 6174 this.adapter.notifyOpening(), 6175 this.adapter.addClass(l.cssClasse
6175s.OPENING), 6176 this.isFullscreen && this.adapter.registerContentEventHandler("scroll", this.contentScrollHandler), 6177 t && t.isAboveFullscreenDialog && this.adapter.addClass(l.cssClasses.SCRIM_HIDDEN), 6178 this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler), 6179 this.adapter.registerWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), 6180 this.runNextAnimationFrame(function () { 6181 e.adapter.addClass(l.cssClasses.OPEN), 6182 e.adapter.addBodyClass(l.cssClasses.SCROLL_LOCK), 6183 e.layout(), 6184 (e.animationTimer = setTimeout(function () { 6185 e.handleAnimationTimerEnd(), e.adapter.trapFocus(e.adapter.getInitialFocusEl()), e.adapter.notifyOpened(); 6186 }, l.numbers.DIALOG_ANIMATION_OPEN_TIME_MS)); 6187 }); 6188 }), 6189 (h.prototype.close = function (t) { 6190 var e = this; 6191 void 0 === t && (t = ""), 6192 this.dialogOpen && 6193 ((this.dialogOpen = !1), 6194 this.adapter.notifyClosing(t), 6195 this.adapter.addClass(l.cssClasses.CLOSING), 6196 this.adapter.removeClass(l.cssClasses.OPEN), 6197 this.adapter.removeBodyClass(l.cssClasses.SCROLL_LOCK), 6198 this.isFullscreen && this.adapter.deregisterContentEventHandler("scroll", this.contentScrollHandler), 6199 this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), 6200 this.adapter.deregisterWindowEventHandler("orientationchange", this.windowOrientationChangeHandler), 6201 cancelAnimationFrame(this.animationFrame), 6202 (this.animationFrame = 0), 6203 clearTimeout(this.animationTimer), 6204 (this.animationTimer = setTimeout(function () { 6205 e.adapter.releaseFocus(), e.handleAnimationTimerEnd(), e.adapter.notifyClosed(t); 6206 }, l.numbers.DIALOG_ANIMATION_CLOSE_TIME_MS))); 6207 }), 6208 (h.prototype.showSurfaceScrim = function () { 6209 var t = this; 6210 this.adapter.addClass(l.cssClasses.SURFACE_SCRIM_SHOWING), 6211 this.runNextAnimationFrame(function () { 6212 t.adapter.addClass(l.cssClasses.SURFACE_SCRIM_SHOWN); 6213 }); 6214 }), 6215 (h.prototype.hideSurfaceScrim = function () { 6216 this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_SHOWN), this.adapter.addClass(l.cssClasses.SURFACE_SCRIM_HIDING); 6217 }), 6218 (h.prototype.handleSurfaceScrimTransitionEnd = function () { 6219 this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_HIDING), this.adapter.removeClass(l.cssClasses.SURFACE_SCRIM_SHOWING); 6220 }), 6221 (h.prototype.isOpen = function () { 6222 return this.dialogOpen; 6223 }), 6224 (h.prototype.getEscapeKeyAction = function () { 6225 return this.escapeKeyAction; 6226 }), 6227 (h.prototype.setEscapeKeyAction = function (t) { 6228 this.escapeKeyAction = t; 6229 }), 6230 (h.prototype.getScrimClickAction = function () { 6231 return this.scrimClickAction; 6232 }), 6233 (h.prototype.setScrimClickAction = function (t) { 6234 this.scrimClickAction = t; 6235 }), 6236 (h.prototype.getAutoStackButtons = function () { 6237 return this.autoStackButtons; 6238 }), 6239 (h.prototype.setAutoStackButtons = function (t) { 6240 this.autoStackButtons = t; 6241 }), 6242 (h.prototype.getSuppressDefaultPressSelector = function () { 6243 return this.suppressDefaultPressSelector; 6244 }), 6245 (h.prototype.setSuppressDefaultPressSelector = function (t) { 6246 this.suppressDefaultPressSelector = t; 6247 }), 6248 (h.prototype.layout = function () { 6249 var t = this; 6250 this.animFrame.request(s.POLL_LAYOUT_CHANGE, function () { 6251 t.layoutInternal(); 6252 }); 6253 }), 6254 (h.prototype.handleClick = function (t) { 6255 if (this.adapter.eventTargetMatches(t.target, l.strings.SCRIM_SELECTOR) && "" !== this.scrimClickAction) this.close(this.scrimClickAction); 6256 else { 6257 var e = this.adapter.getActionFromEvent(t); 6258 e && this.close(e); 6259 } 6260 }), 6261 (h.prototype.handleKeydown = function (t) { 6262 var e = "Enter" === t.key || 13 === t.keyCode; 6263 if (e && !this.adapter.getActionFromEvent(t)) { 6264 var n = t.composedPath ? t.composedPath()[0] : t.target, 6265 i = !this.suppressDefaultPressSelector || !this.adapter.eventTargetMatches(n, this.suppressDefaultPressSelector); 6266 e && i && this.adapter.clickDefaultButton(); 6267 } 6268 }), 6269 (h.prototype.handleDocumentKeydown = function (t) { 6270 ("Escape" !== t.key && 27 !== t.keyCode) || "" === this.escapeKeyAction || this.close(this.escapeKeyAction); 6271 }), 6272 (h.prototype.handleScrollEvent = function () { 6273 var t = this; 6274 this.animFrame.request(s.POLL_SCROLL_POS, function () { 6275 t.toggleScrollDividerHeader(), t.toggleScrollDividerFooter(); 6276 }); 6277 }), 6278 (h.prototype.layoutInternal = function () { 6279 this.autoStackButtons && this.detectStackedButtons(), this.toggleScrollableClasses(); 6280 }), 6281 (h.prototype.handleAnimationTimerEnd = function () { 6282 (this.animationTimer = 0), this.adapter.removeClass(l.cssClasse
6282s.OPENING), this.adapter.removeClass(l.cssClasses.CLOSING); 6283 }), 6284 (h.prototype.runNextAnimationFrame = function (t) { 6285 var e = this; 6286 cancelAnimationFrame(this.animationFrame), 6287 (this.animationFrame = requestAnimationFrame(function () { 6288 (e.animationFrame = 0), clearTimeout(e.animationTimer), (e.animationTimer = setTimeout(t, 0)); 6289 })); 6290 }), 6291 (h.prototype.detectStackedButtons = function () { 6292 this.adapter.removeClass(l.cssClasses.STACKED); 6293 var t = this.adapter.areButtonsStacked(); 6294 t && this.adapter.addClass(l.cssClasses.STACKED), t !== this.areButtonsStacked && (this.adapter.reverseButtons(), (this.areButtonsStacked = t)); 6295 }), 6296 (h.prototype.toggleScrollableClasses = function () { 6297 this.adapter.removeClass(l.cssClasses.SCROLLABLE), 6298 this.adapter.isContentScrollable() && (this.adapter.addClass(l.cssClasses.SCROLLABLE), this.isFullscreen && (this.toggleScrollDividerHeader(), this.toggleScrollDividerFooter())); 6299 }), 6300 (h.prototype.toggleScrollDividerHeader = function () { 6301 this.adapter.isScrollableContentAtTop() 6302 ? this.adapter.hasClass(l.cssClasses.SCROLL_DIVIDER_HEADER) && this.adapter.removeClass(l.cssClasses.SCROLL_DIVIDER_HEADER) 6303 : this.adapter.addClass(l.cssClasses.SCROLL_DIVIDER_HEADER); 6304 }), 6305 (h.prototype.toggleScrollDividerFooter = function () { 6306 this.adapter.isScrollableContentAtBottom() 6307 ? this.adapter.hasClass(l.cssClasses.SCROLL_DIVIDER_FOOTER) && this.adapter.removeClass(l.cssClasses.SCROLL_DIVIDER_FOOTER) 6308 : this.adapter.addClass(l.cssClasses.SCROLL_DIVIDER_FOOTER); 6309 }), 6310 h); 6311 function h(t) { 6312 var e = d.call(this, o(o({}, h.defaultAdapter), t)) || this; 6313 return ( 6314 (e.dialogOpen = !1), 6315 (e.isFullscreen = !1), 6316 (e.animationFrame = 0), 6317 (e.animationTimer = 0), 6318 (e.escapeKeyAction = l.strings.CLOSE_ACTION), 6319 (e.scrimClickAction = l.strings.CLOSE_ACTION), 6320 (e.autoStackButtons = !0), 6321 (e.areButtonsStacked = !1), 6322 (e.suppressDefaultPressSelector = l.strings.SUPPRESS_DEFAULT_PRESS_SELECTOR), 6323 (e.animFrame = new c.AnimationFrame()), 6324 (e.contentScrollHandler = function () { 6325 e.handleScrollEvent(); 6326 }), 6327 (e.windowResizeHandler = function () { 6328 e.layout(); 6329 }), 6330 (e.windowOrientationChangeHandler = function () { 6331 e.layout(); 6332 }), 6333 e 6334 ); 6335 } 6336 (e.MDCDialogFoundation = p), (e.default = p); 6337 }, 6338 function (t, e, n) { 6339 "use strict"; 6340 Object.defineProperty(e, "__esModule", { value: !0 }), 6341 (e.numbers = e.strings = e.cssClasses = void 0), 6342 (e.cssClasses = { 6343 CLOSING: "mdc-dialog--closing", 6344 OPEN: "mdc-dialog--open", 6345 OPENING: "mdc-dialog--opening", 6346 SCROLLABLE: "mdc-dialog--scrollable", 6347 SCROLL_LOCK: "mdc-dialog-scroll-lock", 6348 STACKED: "mdc-dialog--stacked", 6349 FULLSCREEN: "mdc-dialog--fullscreen", 6350 SCROLL_DIVIDER_HEADER: "mdc-dialog-scroll-divider-header", 6351 SCROLL_DIVIDER_FOOTER: "mdc-dialog-scroll-divider-footer", 6352 SURFACE_SCRIM_SHOWN: "mdc-dialog__surface-scrim--shown", 6353 SURFACE_SCRIM_SHOWING: "mdc-dialog__surface-scrim--showing", 6354 SURFACE_SCRIM_HIDING: "mdc-dialog__surface-scrim--hiding", 6355 SCRIM_HIDDEN: "mdc-dialog__scrim--hidden", 6356 }), 6357 (e.strings = { 6358 ACTION_ATTRIBUTE: "data-mdc-dialog-action", 6359 BUTTON_DEFAULT_ATTRIBUTE: "data-mdc-dialog-button-default", 6360 BUTTON_SELECTOR: ".mdc-dialog__button", 6361 CLOSED_EVENT: "MDCDialog:closed", 6362 CLOSE_ACTION: "close", 6363 CLOSING_EVENT: "MDCDialog:closing", 6364 CONTAINER_SELECTOR: ".mdc-dialog__container", 6365 CONTENT_SELECTOR: ".mdc-dialog__content", 6366 DESTROY_ACTION: "destroy", 6367 INITIAL_FOCUS_ATTRIBUTE: "data-mdc-dialog-initial-focus", 6368 OPENED_EVENT: "MDCDialog:opened", 6369 OPENING_EVENT: "MDCDialog:opening", 6370 SCRIM_SELECTOR: ".mdc-dialog__scrim", 6371 SUPPRESS_DEFAULT_PRESS_SELECTOR: ["textarea", ".mdc-menu .mdc-list-item", ".mdc-menu .mdc-deprecated-list-item"].join(", "), 6372 SURFACE_SELECTOR: ".mdc-dialog__surface", 6373 }), 6374 (e.numbers = { DIALOG_ANIMATION_CLOSE_TIME_MS: 75, DIALOG_ANIMATION_OPEN_TIME_MS: 150 }); 6375 }, 6376 function (t, e, n) { 6377 "use strict"; 6378 Object.defineProperty(e, "__esModule", { value: !0 }), 6379 (e.createFocusTrapInstance = void 0), 6380 (e.createFocusTrapInstance = function (t, e) { 6381 return e(t, { skipInitialFocus: !0 }); 6382 }); 6383 }, 6384 function (t, e, n) { 6385 "use strict"; 6386 Object.defineProperty(e, "__esModule", { value: !0 }), (e.preventDefaultEvent = void 0); 6387 var i = ["input", "button", "textarea", "select"]; 6388 e.preventDefaultEvent = function (t) { 6389 var e = t.target; 6390 if (e) { 6391 var n = ("" + e.tagName).toLowerCase(); 6392 -1 === i.indexOf(n) && t.preventDefault(); 6393 } 6394 }; 6395 }, 6396 function (t, e, n) { 6397 "use strict"; 6398 Object.defineProperty(e, "__esModule", { value: !0 }
6398), (e.strings = e.cssClasses = void 0); 6399 e.cssClasses = { 6400 ANIMATE: "mdc-drawer--animate", 6401 CLOSING: "mdc-drawer--closing", 6402 DISMISSIBLE: "mdc-drawer--dismissible", 6403 MODAL: "mdc-drawer--modal", 6404 OPEN: "mdc-drawer--open", 6405 OPENING: "mdc-drawer--opening", 6406 ROOT: "mdc-drawer", 6407 }; 6408 e.strings = { 6409 APP_CONTENT_SELECTOR: ".mdc-drawer-app-content", 6410 CLOSE_EVENT: "MDCDrawer:closed", 6411 OPEN_EVENT: "MDCDrawer:opened", 6412 SCRIM_SELECTOR: ".mdc-drawer-scrim", 6413 LIST_SELECTOR: ".mdc-list,.mdc-deprecated-list", 6414 LIST_ITEM_ACTIVATED_SELECTOR: ".mdc-list-item--activated,.mdc-deprecated-list-item--activated", 6415 }; 6416 }, 6417 function (t, e, n) { 6418 "use strict"; 6419 var i, 6420 r = 6421 (this && this.__extends) || 6422 ((i = function (t, e) { 6423 return (i = 6424 Object.setPrototypeOf || 6425 ({ __proto__: [] } instanceof Array && 6426 function (t, e) { 6427 t.__proto__ = e; 6428 }) || 6429 function (t, e) { 6430 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6431 })(t, e); 6432 }), 6433 function (t, e) { 6434 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6435 function n() { 6436 this.constructor = t; 6437 } 6438 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6439 }); 6440 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCModalDrawerFoundation = void 0); 6441 var o, 6442 s = n(26), 6443 a = 6444 ((o = s.MDCDismissibleDrawerFoundation), 6445 r(c, o), 6446 (c.prototype.handleScrimClick = function () { 6447 this.close(); 6448 }), 6449 (c.prototype.opened = function () { 6450 this.adapter.trapFocus(); 6451 }), 6452 (c.prototype.closed = function () { 6453 this.adapter.releaseFocus(); 6454 }), 6455 c); 6456 function c() { 6457 return (null !== o && o.apply(this, arguments)) || this; 6458 } 6459 (e.MDCModalDrawerFoundation = a), (e.default = a); 6460 }, 6461 function (t, e, n) { 6462 "use strict"; 6463 Object.defineProperty(e, "__esModule", { value: !0 }), 6464 (e.cssClasses = void 0), 6465 (e.cssClasses = { LABEL_FLOAT_ABOVE: "mdc-floating-label--float-above", LABEL_REQUIRED: "mdc-floating-label--required", LABEL_SHAKE: "mdc-floating-label--shake", ROOT: "mdc-floating-label" }); 6466 }, 6467 function (t, e, n) { 6468 "use strict"; 6469 var i, 6470 r = 6471 (this && this.__extends) || 6472 ((i = function (t, e) { 6473 return (i = 6474 Object.setPrototypeOf || 6475 ({ __proto__: [] } instanceof Array && 6476 function (t, e) { 6477 t.__proto__ = e; 6478 }) || 6479 function (t, e) { 6480 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6481 })(t, e); 6482 }), 6483 function (t, e) { 6484 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6485 function n() { 6486 this.constructor = t; 6487 } 6488 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6489 }), 6490 o = 6491 (this && this.__assign) || 6492 function () { 6493 return (o = 6494 Object.assign || 6495 function (t) { 6496 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 6497 return t; 6498 }).apply(this, arguments); 6499 }; 6500 Object.defineProperty(e, "__esModule", { value: !0 }
6500), (e.MDCFormFieldFoundation = void 0); 6501 var s, 6502 a = n(0), 6503 c = n(69), 6504 u = 6505 ((s = a.MDCFoundation), 6506 r(l, s), 6507 Object.defineProperty(l, "cssClasses", { 6508 get: function () { 6509 return c.cssClasses; 6510 }, 6511 enumerable: !1, 6512 configurable: !0, 6513 }), 6514 Object.defineProperty(l, "strings", { 6515 get: function () { 6516 return c.strings; 6517 }, 6518 enumerable: !1, 6519 configurable: !0, 6520 }), 6521 Object.defineProperty(l, "defaultAdapter", { 6522 get: function () { 6523 return { activateInputRipple: function () {}, deactivateInputRipple: function () {}, deregisterInteractionHandler: function () {}, registerInteractionHandler: function () {} }; 6524 }, 6525 enumerable: !1, 6526 configurable: !0, 6527 }), 6528 (l.prototype.init = function () { 6529 this.adapter.registerInteractionHandler("click", this.click); 6530 }), 6531 (l.prototype.destroy = function () { 6532 this.adapter.deregisterInteractionHandler("click", this.click); 6533 }), 6534 (l.prototype.handleClick = function () { 6535 var t = this; 6536 this.adapter.activateInputRipple(), 6537 requestAnimationFrame(function () { 6538 t.adapter.deactivateInputRipple(); 6539 }); 6540 }), 6541 l); 6542 function l(t) { 6543 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 6544 return ( 6545 (e.click = function () { 6546 e.handleClick(); 6547 }), 6548 e 6549 ); 6550 } 6551 (e.MDCFormFieldFoundation = u), (e.default = u); 6552 }, 6553 function (t, e, n) { 6554 "use strict"; 6555 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.cssClasses = void 0), (e.cssClasses = { ROOT: "mdc-form-field" }), (e.strings = { LABEL_SELECTOR: ".mdc-form-field > label" }); 6556 }, 6557 function (t, e, n) { 6558 "use strict"; 6559 var i, 6560 r = 6561 (this && this.__extends) || 6562 ((i = function (t, e) { 6563 return (i = 6564 Object.setPrototypeOf || 6565 ({ __proto__: [] } instanceof Array && 6566 function (t, e) { 6567 t.__proto__ = e; 6568 }) || 6569 function (t, e) { 6570 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6571 })(t, e); 6572 }), 6573 function (t, e) { 6574 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6575 function n() { 6576 this.constructor = t; 6577 } 6578 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6579 }), 6580 o = 6581 (this && this.__assign) || 6582 function () { 6583 return (o = 6584 Object.assign || 6585 function (t) { 6586 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 6587 return t; 6588 }).apply(this, arguments); 6589 }; 6590 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCIconButtonToggleFoundation = void 0); 6591 var s, 6592 a = n(0), 6593 c = n(71), 6594 u = 6595 ((s = a.MDCFoundation), 6596 r(l, s),
6597 Object.defineProperty(l, "cssClasses", { 6598 get: function () { 6599 return c.cssClasses; 6600 }, 6601 enumerable: !1, 6602 configurable: !0, 6603 }), 6604 Object.defineProperty(l, "strings", { 6605 get: function () { 6606 return c.strings; 6607 }, 6608 enumerable: !1, 6609 configurable: !0, 6610 }), 6611 Object.defineProperty(l, "defaultAdapter", { 6612 get: function () { 6613 return { 6614 addClass: function () {}, 6615 hasClass: function () { 6616 return !1; 6617 }, 6618 notifyChange: function () {}, 6619 removeClass: function () {}, 6620 getAttr: function () { 6621 return null; 6622 }, 6623 setAttr: function () {}, 6624 }; 6625 }, 6626 enumerable: !1, 6627 configurable: !0, 6628 }), 6629 (l.prototype.init = function () { 6630 var t = this.adapter.getAttr(c.strings.DATA_ARIA_LABEL_ON), 6631 e = this.adapter.getAttr(c.strings.DATA_ARIA_LABEL_OFF); 6632 if (t && e) { 6633 if (null !== this.adapter.getAttr(c.strings.ARIA_PRESSED)) throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label."); 6634 this.hasToggledAriaLabel = !0; 6635 } else this.adapter.setAttr(c.strings.ARIA_PRESSED, String(this.isOn())); 6636 }), 6637 (l.prototype.handleClick = function () { 6638 this.toggle(), this.adapter.notifyChange({ isOn: this.isOn() }); 6639 }), 6640 (l.prototype.isOn = function () { 6641 return this.adapter.hasClass(c.cssClasses.ICON_BUTTON_ON); 6642 }), 6643 (l.prototype.toggle = function (t) { 6644 if ((void 0 === t && (t = !this.isOn()), t ? this.adapter.addClass(c.cssClasses.ICON_BUTTON_ON) : this.adapter.removeClass(c.cssClasses.ICON_BUTTON_ON), this.hasToggledAriaLabel)) { 6645 var e = t ? this.adapter.getAttr(c.strings.DATA_ARIA_LABEL_ON) : this.adapter.getAttr(c.strings.DATA_ARIA_LABEL_OFF); 6646 this.adapter.setAttr(c.strings.ARIA_LABEL, e || ""); 6647 } else this.adapter.setAttr(c.strings.ARIA_PRESSED, "" + t); 6648 }), 6649 l); 6650 function l(t) { 6651 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 6652 return (e.hasToggledAriaLabel = !1), e; 6653 } 6654 (e.MDCIconButtonToggleFoundation = u), (e.default = u); 6655 }, 6656 function (t, e, n) { 6657 "use strict"; 6658 Object.defineProperty(e, "__esModule", { value: !0 }), 6659 (e.strings = e.cssClasses = void 0), 6660 (e.cssClasses = { ICON_BUTTON_ON: "mdc-icon-button--on", ROOT: "mdc-icon-button" }), 6661 (e.strings = { ARIA_LABEL: "aria-label", ARIA_PRESSED: "aria-pressed", DATA_ARIA_LABEL_OFF: "data-aria-label-off", DATA_ARIA_LABEL_ON: "data-aria-label-on", CHANGE_EVENT: "MDCIconButtonToggle:change" }); 6662 }, 6663 function (t, e, n) { 6664 "use strict"; 6665 var i, 6666 r = 6667 (this && this.__extends) || 6668 ((i = function (t, e) { 6669 return (i = 6670 Object.setPrototypeOf || 6671 ({ __proto__: [] } instanceof Array && 6672 function (t, e) { 6673 t.__proto__ = e; 6674 }) || 6675 function (t, e) { 6676 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6677 })(t, e); 6678 }), 6679 function (t, e) { 6680 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6681 function n() { 6682 this.constructor = t; 6683 } 6684 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6685 }), 6686 o = 6687 (this && this.__assign) || 6688 function () { 6689 return (o = 6690 Object.assign || 6691 function (t) { 6692 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 6693 return t; 6694 }).apply(this, arguments); 6695 }; 6696 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCLineRippleFoundation = void 0); 6697 var s, 6698 a = n(0), 6699 c = n(73), 6700 u = 6701 ((s = a.MDCFoundation), 6702 r(l, s),
6703 Object.defineProperty(l, "cssClasses", { 6704 get: function () { 6705 return c.cssClasses; 6706 }, 6707 enumerable: !1, 6708 configurable: !0, 6709 }), 6710 Object.defineProperty(l, "defaultAdapter", { 6711 get: function () { 6712 return { 6713 addClass: function () {}, 6714 removeClass: function () {}, 6715 hasClass: function () { 6716 return !1; 6717 }, 6718 setStyle: function () {}, 6719 registerEventHandler: function () {}, 6720 deregisterEventHandler: function () {}, 6721 }; 6722 }, 6723 enumerable: !1, 6724 configurable: !0, 6725 }), 6726 (l.prototype.init = function () { 6727 this.adapter.registerEventHandler("transitionend", this.transitionEndHandler); 6728 }), 6729 (l.prototype.destroy = function () { 6730 this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler); 6731 }), 6732 (l.prototype.activate = function () { 6733 this.adapter.removeClass(c.cssClasses.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass(c.cssClasses.LINE_RIPPLE_ACTIVE); 6734 }), 6735 (l.prototype.setRippleCenter = function (t) { 6736 this.adapter.setStyle("transform-origin", t + "px center"); 6737 }), 6738 (l.prototype.deactivate = function () { 6739 this.adapter.addClass(c.cssClasses.LINE_RIPPLE_DEACTIVATING); 6740 }), 6741 (l.prototype.handleTransitionEnd = function (t) { 6742 var e = this.adapter.hasClass(c.cssClasses.LINE_RIPPLE_DEACTIVATING); 6743 "opacity" === t.propertyName && e && (this.adapter.removeClass(c.cssClasses.LINE_RIPPLE_ACTIVE), this.adapter.removeClass(c.cssClasses.LINE_RIPPLE_DEACTIVATING)); 6744 }), 6745 l); 6746 function l(t) { 6747 var e = s.call(this, o(o({}, l.defaultAdapter), t)) || this; 6748 return ( 6749 (e.transitionEndHandler = function (t) { 6750 e.handleTransitionEnd(t); 6751 }), 6752 e 6753 ); 6754 } 6755 (e.MDCLineRippleFoundation = u), (e.default = u); 6756 }, 6757 function (t, e, n) { 6758 "use strict"; 6759 Object.defineProperty(e, "__esModule", { value: !0 }), (e.cssClasses = void 0); 6760 e.cssClasses = { LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active", LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating" }; 6761 }, 6762 function (t, e, n) { 6763 "use strict"; 6764 var i, 6765 r = 6766 (this && this.__extends) || 6767 ((i = function (t, e) { 6768 return (i = 6769 Object.setPrototypeOf || 6770 ({ __proto__: [] } instanceof Array && 6771 function (t, e) { 6772 t.__proto__ = e; 6773 }) || 6774 function (t, e) { 6775 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6776 })(t, e); 6777 }), 6778 function (t, e) { 6779 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6780 function n() { 6781 this.constructor = t; 6782 } 6783 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6784 }); 6785 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCMenuSurface = void 0); 6786 var o, 6787 s = n(1), 6788 a = n(8), 6789 c = n(14), 6790 u = n(10), 6791 l = 6792 ((o = s.MDCComponent), 6793 r(d, o), 6794 (d.attachTo = function (t) { 6795 return new d(t); 6796 }), 6797 (d.prototype.initialSyncWithDOM = function () { 6798 var e = this, 6799 t = this.root.parentElement; 6800 (this.anchorElement = t && t.classList.contains(a.cssClasse
6800s.ANCHOR) ? t : null), 6801 this.root.classList.contains(a.cssClasses.FIXED) && this.setFixedPosition(!0), 6802 (this.handleKeydown = function (t) { 6803 e.foundation.handleKeydown(t); 6804 }), 6805 (this.handleBodyClick = function (t) { 6806 e.foundation.handleBodyClick(t); 6807 }), 6808 (this.registerBodyClickListener = function () { 6809 document.body.addEventListener("click", e.handleBodyClick, { capture: !0 }); 6810 }), 6811 (this.deregisterBodyClickListener = function () { 6812 document.body.removeEventListener("click", e.handleBodyClick, { capture: !0 }); 6813 }), 6814 this.listen("keydown", this.handleKeydown), 6815 this.listen(a.strings.OPENED_EVENT, this.registerBodyClickListener), 6816 this.listen(a.strings.CLOSED_EVENT, this.deregisterBodyClickListener); 6817 }), 6818 (d.prototype.destroy = function () { 6819 this.unlisten("keydown", this.handleKeydown), 6820 this.unlisten(a.strings.OPENED_EVENT, this.registerBodyClickListener), 6821 this.unlisten(a.strings.CLOSED_EVENT, this.deregisterBodyClickListener), 6822 o.prototype.destroy.call(this); 6823 }), 6824 (d.prototype.isOpen = function () { 6825 return this.foundation.isOpen(); 6826 }), 6827 (d.prototype.open = function () { 6828 this.foundation.open(); 6829 }), 6830 (d.prototype.close = function (t) { 6831 void 0 === t && (t = !1), this.foundation.close(t); 6832 }), 6833 Object.defineProperty(d.prototype, "quickOpen", { 6834 set: function (t) { 6835 this.foundation.setQuickOpen(t); 6836 }, 6837 enumerable: !1, 6838 configurable: !0, 6839 }), 6840 (d.prototype.setIsHoisted = function (t) { 6841 this.foundation.setIsHoisted(t); 6842 }), 6843 (d.prototype.setMenuSurfaceAnchorElement = function (t) { 6844 this.anchorElement = t; 6845 }), 6846 (d.prototype.setFixedPosition = function (t) { 6847 t ? this.root.classList.add(a.cssClasse
6847s.FIXED) : this.root.classList.remove(a.cssClasses.FIXED), this.foundation.setFixedPosition(t); 6848 }), 6849 (d.prototype.setAbsolutePosition = function (t, e) { 6850 this.foundation.setAbsolutePosition(t, e), this.setIsHoisted(!0); 6851 }), 6852 (d.prototype.setAnchorCorner = function (t) { 6853 this.foundation.setAnchorCorner(t); 6854 }), 6855 (d.prototype.setAnchorMargin = function (t) { 6856 this.foundation.setAnchorMargin(t); 6857 }), 6858 (d.prototype.getDefaultFoundation = function () { 6859 var n = this, 6860 t = { 6861 addClass: function (t) { 6862 return n.root.classList.add(t); 6863 }, 6864 removeClass: function (t) { 6865 return n.root.classList.remove(t); 6866 }, 6867 hasClass: function (t) { 6868 return n.root.classList.contains(t); 6869 }, 6870 hasAnchor: function () { 6871 return !!n.anchorElement; 6872 }, 6873 notifyClose: function () { 6874 return n.emit(c.MDCMenuSurfaceFoundation.strings.CLOSED_EVENT, {}); 6875 }, 6876 notifyClosing: function () { 6877 n.emit(c.MDCMenuSurfaceFoundation.strings.CLOSING_EVENT, {}); 6878 }, 6879 notifyOpen: function () { 6880 return n.emit(c.MDCMenuSurfaceFoundation.strings.OPENED_EVENT, {}); 6881 }, 6882 isElementInContainer: function (t) { 6883 return n.root.contains(t); 6884 }, 6885 isRtl: function () { 6886 return "rtl" === getComputedStyle(n.root).getPropertyValue("direction"); 6887 }, 6888 setTransformOrigin: function (t) { 6889 var e = u.getCorrectPropertyName(window, "transform") + "-origin"; 6890 n.root.style.setProperty(e, t); 6891 }, 6892 isFocused: function () { 6893 return document.activeElement === n.root; 6894 }, 6895 saveFocus: function () { 6896 n.previousFocus = document.activeElement; 6897 }, 6898 restoreFocus: function () { 6899 n.root.contains(document.activeElement) && n.previousFocus && n.previousFocus.focus && n.previousFocus.focus(); 6900 }, 6901 getInnerDimensions: function () { 6902 return { width: n.root.offsetWidth, height: n.root.offsetHeight }; 6903 }, 6904 getAnchorDimensions: function () { 6905 return n.anchorElement ? n.anchorElement.getBoundingClientRect() : null; 6906 }, 6907 getWindowDimensions: function () { 6908 return { width: window.innerWidth, height: window.innerHeight }; 6909 }, 6910 getBodyDimensions: function () { 6911 return { width: document.body.clientWidth, height: document.body.clientHeight }; 6912 }, 6913 getWindowScroll: function () { 6914 return { x: window.pageXOffset, y:
6914window.pageYOffset }; 6915 }, 6916 setPosition: function (t) { 6917 var e = n.root; 6918 (e.style.left = "left" in t ? t.left + "px" : ""), 6919 (e.style.right = "right" in t ? t.right + "px" : ""), 6920 (e.style.top = "top" in t ? t.top + "px" : ""), 6921 (e.style.bottom = "bottom" in t ? t.bottom + "px" : ""); 6922 }, 6923 setMaxHeight: function (t) { 6924 n.root.style.maxHeight = t; 6925 }, 6926 }; 6927 return new c.MDCMenuSurfaceFoundation(t); 6928 }), 6929 d); 6930 function d() { 6931 return (null !== o && o.apply(this, arguments)) || this; 6932 } 6933 e.MDCMenuSurface = l; 6934 }, 6935 function (t, e, n) { 6936 "use strict"; 6937 var i, 6938 r = 6939 (this && this.__extends) || 6940 ((i = function (t, e) { 6941 return (i = 6942 Object.setPrototypeOf || 6943 ({ __proto__: [] } instanceof Array && 6944 function (t, e) { 6945 t.__proto__ = e; 6946 }) || 6947 function (t, e) { 6948 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 6949 })(t, e); 6950 }), 6951 function (t, e) { 6952 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 6953 function n() { 6954 this.constructor = t; 6955 } 6956 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 6957 }); 6958 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCMenu = void 0); 6959 var o, 6960 s = n(1), 6961 a = n(3), 6962 c = n(24), 6963 u = n(7), 6964 l = n(25), 6965 d = n(74), 6966 p = n(14), 6967 h = n(15), 6968 f = n(76), 6969 y = 6970 ((o = s.MDCComponent), 6971 r(C, o), 6972 (C.attachTo = function (t) { 6973 return new C(t); 6974 }), 6975 (C.prototype.initialize = function (t, e) { 6976 void 0 === t && 6977 (t = function (t) { 6978 return new d.MDCMenuSurface(t); 6979 }), 6980 void 0 === e && 6981 (e = function (t) { 6982 return new c.MDCList(t); 6983 }), 6984 (this.menuSurfaceFactory = t), 6985 (this.listFactory = e); 6986 }), 6987 (C.prototype.initialSyncWithDOM = function () { 6988 var e = this; 6989 this.menuSurface = this.menuSurfaceFactory(this.root); 6990 var t = this.root.querySelector(h.strings.LIST_SELECTOR); 6991 t ? ((this.list = this.listFactory(t)), (this.list.wrapFocus = !0)) : (this.list = null), 6992 (this.handleKeydown = function (t) { 6993 e.foundation.handleKeydown(t); 6994 }), 6995 (this.handleItemAction = function (t) { 6996 e.foundation.handleItemAction(e.items[t.detail.index]); 6997 }), 6998 (this.handleMenuSurfaceOpened = function () { 6999 e.foundation.handleMenuSurfaceOpened(); 7000 }), 7001 this.menuSurface.listen(p.MDCMenu
7001SurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened), 7002 this.listen("keydown", this.handleKeydown), 7003 this.listen(l.MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction); 7004 }), 7005 (C.prototype.destroy = function () { 7006 this.list && this.list.destroy(), 7007 this.menuSurface.destroy(), 7008 this.menuSurface.unlisten(p.MDCMenuSurfaceFoundation.strings.OPENED_EVENT, this.handleMenuSurfaceOpened), 7009 this.unlisten("keydown", this.handleKeydown), 7010 this.unlisten(l.MDCListFoundation.strings.ACTION_EVENT, this.handleItemAction), 7011 o.prototype.destroy.call(this); 7012 }), 7013 Object.defineProperty(C.prototype, "open", { 7014 get: function () { 7015 return this.menuSurface.isOpen(); 7016 }, 7017 set: function (t) { 7018 t ? this.menuSurface.open() : this.menuSurface.close(); 7019 }, 7020 enumerable: !1, 7021 configurable: !0, 7022 }), 7023 Object.defineProperty(C.prototype, "wrapFocus", { 7024 get: function () { 7025 return !!this.list && this.list.wrapFocus; 7026 }, 7027 set: function (t) { 7028 this.list && (this.list.wrapFocus = t); 7029 }, 7030 enumerable: !1, 7031 configurable: !0, 7032 }), 7033 Object.defineProperty(C.prototype, "hasTypeahead", { 7034 set: function (t) { 7035 this.list && (this.list.hasTypeahead = t); 7036 }, 7037 enumerable: !1, 7038 configurable: !0, 7039 }), 7040 Object.defineProperty(C.prototype, "typeaheadInProgress", { 7041 get: function () { 7042 return !!this.list && this.list.typeaheadInProgress; 7043 }, 7044 enumerable: !1, 7045 configurable: !0, 7046 }), 7047 (C.prototype.typeaheadMatchItem = function (t, e) { 7048 return this.list ? this.list.typeaheadMatchItem(t, e) : -1; 7049 }), 7050 (C.prototype.layout = function () { 7051 this.list && this.list.layout(); 7052 }), 7053 Object.defineProperty(C.prototype, "items", { 7054 get: function () { 7055 return this.list ? this.list.listElements : []; 7056 }, 7057 enumerable: !1, 7058 configurable: !0, 7059 }), 7060 Object.defineProperty(C.prototype, "singleSelection", { 7061 set: function (t) { 7062 this.list && (this.list.singleSelection = t); 7063 }, 7064 enumerable: !1, 7065 configurable: !0, 7066 }), 7067 Object.defineProperty(C.prototype, "selectedIndex", { 7068 get: function () { 7069 return this.list ? this.list.selectedIndex : u.numbers.UNSET_INDEX; 7070 }, 7071 set: function (t) { 7072 this.list && (this.list.selectedIndex = t); 7073 }, 7074 enumerable: !1, 7075 configurable: !0, 7076 }), 7077 Object.defineProperty(C.prototype, "quickOpen", { 7078 set: function (t) { 7079 this.menuSurface.quickOpen = t; 7080 }, 7081 enumerable: !1, 7082 configurable: !0, 7083 }), 7084 (C.prototype.setDefaultFocusState = function (t) { 7085 this.foundation.setDefaultFocusState(t); 7086 }),
7087 (C.prototype.setAnchorCorner = function (t) { 7088 this.menuSurface.setAnchorCorner(t); 7089 }), 7090 (C.prototype.setAnchorMargin = function (t) { 7091 this.menuSurface.setAnchorMargin(t); 7092 }), 7093 (C.prototype.setSelectedIndex = function (t) { 7094 this.foundation.setSelectedIndex(t); 7095 }), 7096 (C.prototype.setEnabled = function (t, e) { 7097 this.foundation.setEnabled(t, e); 7098 }), 7099 (C.prototype.getOptionByIndex = function (t) { 7100 return t < this.items.length ? this.items[t] : null; 7101 }), 7102 (C.prototype.getPrimaryTextAtIndex = function (t) { 7103 var e = this.getOptionByIndex(t); 7104 return (e && this.list && this.list.getPrimaryText(e)) || ""; 7105 }), 7106 (C.prototype.setFixedPosition = function (t) { 7107 this.menuSurface.setFixedPosition(t); 7108 }), 7109 (C.prototype.setIsHoisted = function (t) { 7110 this.menuSurface.setIsHoisted(t); 7111 }), 7112 (C.prototype.setAbsolutePosition = function (t, e) { 7113 this.menuSurface.setAbsolutePosition(t, e); 7114 }), 7115 (C.prototype.setAnchorElement = function (t) { 7116 this.menuSurface.anchorElement = t; 7117 }), 7118 (C.prototype.getDefaultFoundation = function () { 7119 var i = this, 7120 t = { 7121 addClassToElementAtIndex: function (t, e) { 7122 i.items[t].classList.add(e); 7123 }, 7124 removeClassFromElementAtIndex: function (t, e) { 7125 i.items[t].classList.remove(e); 7126 }, 7127 addAttributeToElementAtIndex: function (t, e, n) { 7128 i.items[t].setAttribute(e, n); 7129 }, 7130 removeAttributeFromElementAtIndex: function (t, e) { 7131 i.items[t].removeAttribute(e); 7132 }, 7133 getAttributeFromElementAtIndex: function (t, e) { 7134 return i.items[t].getAttribute(e); 7135 }, 7136 elementContainsClass: function (t, e) { 7137 return t.classList.contains(e); 7138 }, 7139 closeSurface: function (t) { 7140 i.menuSurface.close(t); 7141 }, 7142 getElementIndex: function (t) { 7143 return i.items.indexOf(t); 7144 }, 7145 notifySelected: function (t) { 7146 i.emit(h.strings.SELECTED_EVENT, { index: t.index, item: i.items[t.index] }); 7147 }, 7148 getMenuItemCount: function () { 7149 return i.items.length; 7150 }, 7151 focusItemAtIndex: function (t) { 7152 i.items[t].focus(); 7153 }, 7154 focusListRoot: function () { 7155 i.root.querySelector(h.strings.LIST_SELECTOR).focus(); 7156 }, 7157 isSelectableItemAtIndex: function (t) { 7158 return !!a.closest(i.items[t], "." + h.cssClasse
7158s.MENU_SELECTION_GROUP); 7159 }, 7160 getSelectedSiblingOfItemAtIndex: function (t) { 7161 var e = a.closest(i.items[t], "." + h.cssClasses.MENU_SELECTION_GROUP).querySelector("." + h.cssClasses.MENU_SELECTED_LIST_ITEM); 7162 return e ? i.items.indexOf(e) : -1; 7163 }, 7164 }; 7165 return new f.MDCMenuFoundation(t); 7166 }), 7167 C); 7168 function C() { 7169 return (null !== o && o.apply(this, arguments)) || this; 7170 } 7171 e.MDCMenu = y; 7172 }, 7173 function (t, e, n) { 7174 "use strict"; 7175 var i, 7176 r = 7177 (this && this.__extends) || 7178 ((i = function (t, e) { 7179 return (i = 7180 Object.setPrototypeOf || 7181 ({ __proto__: [] } instanceof Array && 7182 function (t, e) { 7183 t.__proto__ = e; 7184 }) || 7185 function (t, e) { 7186 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7187 })(t, e); 7188 }), 7189 function (t, e) { 7190 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7191 function n() { 7192 this.constructor = t; 7193 } 7194 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7195 }), 7196 o = 7197 (this && this.__assign) || 7198 function () { 7199 return (o = 7200 Object.assign || 7201 function (t) { 7202 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7203 return t; 7204 }).apply(this, arguments); 7205 }; 7206 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCMenuFoundation = void 0); 7207 var s, 7208 a = n(0), 7209 c = n(7), 7210 u = n(14), 7211 l = n(15), 7212 d = 7213 ((s = a.MDCFoundation), 7214 r(p, s), 7215 Object.defineProperty(p, "cssClasses", { 7216 get: function () { 7217 return l.cssClasses; 7218 }, 7219 enumerable: !1, 7220 configurable: !0, 7221 }), 7222 Object.defineProperty(p, "strings", { 7223 get: function () { 7224 return l.strings; 7225 }, 7226 enumerable: !1, 7227 configurable: !0, 7228 }), 7229 Object.defineProperty(p, "numbers", { 7230 get: function () { 7231 return l.numbers; 7232 }, 7233 enumerable: !1, 7234 configurable: !0, 7235 }), 7236 Object.defineProperty(p, "defaultAdapter", { 7237 get: function () { 7238 return { 7239 addClassToElementAtIndex: function () {}, 7240 removeClassFromElementAtIndex: function () {}, 7241 addAttributeToElementAtIndex: function () {}, 7242 removeAttributeFromElementAtIndex: function () {}, 7243 getAttributeFromElementAtIndex: function () { 7244 return null; 7245 }, 7246 elementContainsClass: function () { 7247 return !1; 7248 }, 7249 closeSurface: function () {}, 7250 getElementIndex: function () { 7251 return -1; 7252 }, 7253 notifySelected: function () {}, 7254 getMenuItemCount: function () { 7255 return 0; 7256 }, 7257 focusItemAtIndex: function () {}, 7258 focusListRoot: function () {}, 7259 getSelectedSiblingOfItemAtIndex: function () { 7260 return -1; 7261 }, 7262 isSelectableItemAtIndex: function () { 7263 return !1; 7264 }, 7265 }; 7266 }, 7267 enumerable: !1, 7268 configurable: !0, 7269 }), 7270 (p.prototype.destroy = function () { 7271 this.closeAnimationEndTimerId && clearTimeout(this.closeAnimationEndTimerId), this.adapter.closeSurface(); 7272 }), 7273 (p.prototype.handleKeydown = function (t) {
7274 var e = t.key, 7275 n = t.keyCode; 7276 ("Tab" !== e && 9 !== n) || this.adapter.closeSurface(!0); 7277 }), 7278 (p.prototype.handleItemAction = function (e) { 7279 var n = this, 7280 t = this.adapter.getElementIndex(e); 7281 if (!(t < 0)) { 7282 this.adapter.notifySelected({ index: t }); 7283 var i = "true" === this.adapter.getAttributeFromElementAtIndex(t, l.strings.SKIP_RESTORE_FOCUS); 7284 this.adapter.closeSurface(i), 7285 (this.closeAnimationEndTimerId = setTimeout(function () { 7286 var t = n.adapter.getElementIndex(e); 7287 0 <= t && n.adapter.isSelectableItemAtIndex(t) && n.setSelectedIndex(t); 7288 }, u.MDCMenuSurfaceFoundation.numbers.TRANSITION_CLOSE_DURATION)); 7289 } 7290 }), 7291 (p.prototype.handleMenuSurfaceOpened = function () { 7292 switch (this.defaultFocusState) { 7293 case l.DefaultFocusState.FIRST_ITEM: 7294 this.adapter.focusItemAtIndex(0); 7295 break; 7296 case l.DefaultFocusState.LAST_ITEM: 7297 this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount() - 1); 7298 break; 7299 case l.DefaultFocusState.NONE: 7300 break; 7301 default: 7302 this.adapter.focusListRoot(); 7303 } 7304 }), 7305 (p.prototype.setDefaultFocusState = function (t) { 7306 this.defaultFocusState = t; 7307 }), 7308 (p.prototype.getSelectedIndex = function () { 7309 return this.selectedIndex; 7310 }), 7311 (p.prototype.setSelectedIndex = function (t) { 7312 if ((this.validatedIndex(t), !this.adapter.isSelectableItemAtIndex(t))) throw new Error("MDCMenuFoundation: No selection group at specified index."); 7313 var e = this.adapter.getSelectedSiblingOfItemAtIndex(t); 7314 0 <= e && (this.adapter.removeAttributeFromElementAtIndex(e, l.strings.ARIA_CHECKED_ATTR), this.adapter.removeClassFromElementAtIndex(e, l.cssClasses.MENU_SELECTED_LIST_ITEM)), 7315 this.adapter.addClassToElementAtIndex(t, l.cssClasses.MENU_SELECTED_LIST_ITEM), 7316 this.adapter.addAttributeToElementAtIndex(t, l.strings.ARIA_CHECKED_ATTR, "true"), 7317 (this.selectedIndex = t); 7318 }), 7319 (p.prototype.setEnabled = function (t, e) { 7320 this.validatedIndex(t), 7321 e 7322 ? (this.adapter.removeClassFromElementAtIndex(t, c.cssClasses.LIST_ITEM_DISABLED_CLASS), this.adapter.addAttributeToElementAtIndex(t, l.strings.ARIA_DISABLED_ATTR, "false")) 7323 : (this.adapter.addClassToElementAtIndex(t, c.cssClasses.LIST_ITEM_DISABLED_CLASS), this.adapter.addAttributeToElementAtIndex(t, l.strings.ARIA_DISABLED_ATTR, "true")); 7324 }), 7325 (p.prototype.validatedIndex = function (t) { 7326 var e = this.adapter.getMenuItemCount(); 7327 if (!(0 <= t && t < e)) throw new Error("MDCMenuFoundation: No list item at specified index."); 7328 }), 7329 p); 7330 function p(t) { 7331 var e = s.call(this, o(o({}, p.defaultAdapter), t)) || this; 7332 return (e.closeAnimationEndTimerId = 0), (e.defaultFocusState = l.DefaultFocusState.LIST_ROOT), (e.selectedIndex = -1), e; 7333 } 7334 (e.MDCMenuFoundation = d), (e.default = d); 7335 }, 7336 function (t, e, n) { 7337 "use strict"; 7338 var i, 7339 r = 7340 (this && this.__extends) || 7341 ((i = function (t, e) { 7342 return (i = 7343 Object.setPrototypeOf || 7344 ({ __proto__: [] } instanceof Array && 7345 function (t, e) { 7346 t.__proto__ = e; 7347 }) || 7348 function (t, e) { 7349 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7350 })(t, e); 7351 }), 7352 function (t, e) { 7353 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7354 function n() { 7355 this.constructor = t; 7356 } 7357 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7358 }), 7359 o = 7360 (this && this.__assign) || 7361 function () { 7362 return (o = 7363 Object.assign || 7364 function (t) { 7365 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7366 return t; 7367 }).apply(this, arguments); 7368 }; 7369 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCNotchedOutlineFoundation = void 0); 7370 var s, 7371 a = n(0), 7372 c = n(31), 7373 u = 7374 ((s = a.MDCFoundation), 7375 r(l, s), 7376 Object.defineProperty(l, "strings", { 7377 get: function () { 7378 return c.strings; 7379 }, 7380 enumerable: !1, 7381 configurable: !0, 7382 }),
7383 Object.defineProperty(l, "cssClasses", { 7384 get: function () { 7385 return c.cssClasses; 7386 }, 7387 enumerable: !1, 7388 configurable: !0, 7389 }), 7390 Object.defineProperty(l, "numbers", { 7391 get: function () { 7392 return c.numbers; 7393 }, 7394 enumerable: !1, 7395 configurable: !0, 7396 }), 7397 Object.defineProperty(l, "defaultAdapter", { 7398 get: function () { 7399 return { addClass: function () {}, removeClass: function () {}, setNotchWidthProperty: function () {}, removeNotchWidthProperty: function () {} }; 7400 }, 7401 enumerable: !1, 7402 configurable: !0, 7403 }), 7404 (l.prototype.notch = function (t) { 7405 var e = l.cssClasses.OUTLINE_NOTCHED; 7406 0 < t && (t += c.numbers.NOTCH_ELEMENT_PADDING), this.adapter.setNotchWidthProperty(t), this.adapter.addClass(e); 7407 }), 7408 (l.prototype.closeNotch = function () { 7409 var t = l.cssClasses.OUTLINE_NOTCHED; 7410 this.adapter.removeClass(t), this.adapter.removeNotchWidthProperty(); 7411 }), 7412 l); 7413 function l(t) { 7414 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 7415 } 7416 (e.MDCNotchedOutlineFoundation = u), (e.default = u); 7417 }, 7418 function (t, e, n) { 7419 "use strict"; 7420 var i, 7421 r = 7422 (this && this.__extends) || 7423 ((i = function (t, e) { 7424 return (i = 7425 Object.setPrototypeOf || 7426 ({ __proto__: [] } instanceof Array && 7427 function (t, e) { 7428 t.__proto__ = e; 7429 }) || 7430 function (t, e) { 7431 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7432 })(t, e); 7433 }), 7434 function (t, e) { 7435 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7436 function n() { 7437 this.constructor = t; 7438 } 7439 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7440 }), 7441 o = 7442 (this && this.__assign) || 7443 function () { 7444 return (o = 7445 Object.assign || 7446 function (t) { 7447 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7448 return t; 7449 }).apply(this, arguments); 7450 }; 7451 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCRadioFoundation = void 0); 7452 var s, 7453 a = n(0), 7454 c = n(79), 7455 u = 7456 ((s = a.MDCFoundation), 7457 r(l, s), 7458 Object.defineProperty(l, "cssClasses", { 7459 get: function () {
7460 return c.cssClasses; 7461 }, 7462 enumerable: !1, 7463 configurable: !0, 7464 }), 7465 Object.defineProperty(l, "strings", { 7466 get: function () { 7467 return c.strings; 7468 }, 7469 enumerable: !1, 7470 configurable: !0, 7471 }), 7472 Object.defineProperty(l, "defaultAdapter", { 7473 get: function () { 7474 return { addClass: function () {}, removeClass: function () {}, setNativeControlDisabled: function () {} }; 7475 }, 7476 enumerable: !1, 7477 configurable: !0, 7478 }), 7479 (l.prototype.setDisabled = function (t) { 7480 var e = l.cssClasses.DISABLED; 7481 this.adapter.setNativeControlDisabled(t), t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 7482 }), 7483 l); 7484 function l(t) { 7485 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 7486 } 7487 (e.MDCRadioFoundation = u), (e.default = u); 7488 }, 7489 function (t, e, n) { 7490 "use strict"; 7491 Object.defineProperty(e, "__esModule", { value: !0 }), (e.cssClasses = e.strings = void 0); 7492 e.strings = { NATIVE_CONTROL_SELECTOR: ".mdc-radio__native-control" }; 7493 e.cssClasses = { DISABLED: "mdc-radio--disabled", ROOT: "mdc-radio" }; 7494 }, 7495 function (t, e, n) { 7496 "use strict"; 7497 var i, 7498 r = 7499 (this && this.__extends) || 7500 ((i = function (t, e) { 7501 return (i = 7502 Object.setPrototypeOf || 7503 ({ __proto__: [] } instanceof Array && 7504 function (t, e) { 7505 t.__proto__ = e; 7506 }) || 7507 function (t, e) { 7508 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7509 })(t, e); 7510 }), 7511 function (t, e) { 7512 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7513 function n() { 7514 this.constructor = t; 7515 } 7516 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7517 }), 7518 o = 7519 (this && this.__assign) || 7520 function () { 7521 return (o = 7522 Object.assign || 7523 function (t) { 7524 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7525 return t; 7526 }).apply(this, arguments); 7527 }, 7528 s = 7529 (this && this.__values) || 7530 function (t) { 7531 var e = "function" == typeof Symbol && Symbol.iterator, 7532 n = e && t[e], 7533 i = 0; 7534 if (n) return n.call(t); 7535 if (t && "number" == typeof t.length) 7536 return { 7537 next: function () { 7538 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 7539 }, 7540 }; 7541 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 7542 }; 7543 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSegmentedButtonFoundation = void 0); 7544 var a, 7545 c = n(0), 7546 u = n(81), 7547 l = 7548 ((a = c.MDCFoundation), 7549 r(d, a), 7550 Object.defineProperty(d, "defaultAdapter", { 7551 get: function () { 7552 return { 7553 hasClass: function () { 7554 return !1; 7555 }, 7556 getSegments: function () { 7557 return []; 7558 }, 7559 selectSegment: function () {}, 7560 unselectSegment: function () {}, 7561 notifySelectedChange: function () {}, 7562 }; 7563 }, 7564 enumerable: !1, 7565 configurable: !0, 7566 }), 7567 (d.prototype.selectSegment = function (t) { 7568 this.adapter.selectSegment(t); 7569 }), 7570 (d.prototype.unselectSegment = function (t) { 7571 this.adapter.unselectSegment(t); 7572 }), 7573 (d.prototype.getSelectedSegments = function () { 7574 return this.adapter.getSegments().filter(function (t) { 7575 return t.selected; 7576 }); 7577 }), 7578 (d.prototype.isSegmentSelected = function (e) { 7579 return this.adapter.getSegments().some(function (t) { 7580 return (t.index === e || t.segmentId === e) && t.selected; 7581 }); 7582 }), 7583 (d.prototype.isSingleSelect = function () { 7584 return this.adapter.hasClass(u.cssClasse
7584s.SINGLE_SELECT); 7585 }), 7586 (d.prototype.handleSelected = function (t) { 7587 this.isSingleSelect() && this.unselectPrevSelected(t.index), this.adapter.notifySelectedChange(t); 7588 }), 7589 (d.prototype.unselectPrevSelected = function (t) { 7590 var e, n; 7591 try { 7592 for (var i = s(this.getSelectedSegments()), r = i.next(); !r.done; r = i.next()) { 7593 var o = r.value; 7594 o.index !== t && this.unselectSegment(o.index); 7595 } 7596 } catch (t) { 7597 e = { error: t }; 7598 } finally { 7599 try { 7600 r && !r.done && (n = i.return) && n.call(i); 7601 } finally { 7602 if (e) throw e.error; 7603 } 7604 } 7605 }), 7606 d); 7607 function d(t) { 7608 return a.call(this, o(o({}, d.defaultAdapter), t)) || this; 7609 } 7610 e.MDCSegmentedButtonFoundation = l; 7611 }, 7612 function (t, e, n) { 7613 "use strict"; 7614 Object.defineProperty(e, "__esModule", { value: !0 }), 7615 (e.cssClasses = e.events = e.selectors = void 0), 7616 (e.selectors = { SEGMENT: ".mdc-segmented-button__segment" }), 7617 (e.events = { SELECTED: "selected", CHANGE: "change" }), 7618 (e.cssClasses = { SINGLE_SELECT: "mdc-segmented-button--single-select" }); 7619 }, 7620 function (t, e, n) { 7621 "use strict"; 7622 var i, 7623 r = 7624 (this && this.__extends) || 7625 ((i = function (t, e) { 7626 return (i = 7627 Object.setPrototypeOf || 7628 ({ __proto__: [] } instanceof Array && 7629 function (t, e) { 7630 t.__proto__ = e; 7631 }) || 7632 function (t, e) { 7633 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7634 })(t, e); 7635 }), 7636 function (t, e) { 7637 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7638 function n() { 7639 this.constructor = t; 7640 } 7641 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7642 }), 7643 o = 7644 (this && this.__assign) || 7645 function () { 7646 return (o = 7647 Object.assign || 7648 function (t) { 7649 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7650 return t; 7651 }).apply(this, arguments); 7652 }; 7653 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSegmentedButtonSegment = void 0); 7654 var s, 7655 a = n(1), 7656 c = n(2), 7657 u = n(4), 7658 l = n(83), 7659 d = n(84), 7660 p = 7661 ((s = a.MDCComponent), 7662 r(h, s), 7663 Object.defineProperty(h.prototype, "ripple", { 7664 get: function () { 7665 return this.rippleComponent; 7666 }, 7667 enumerable: !1, 7668 configurable: !0, 7669 }), 7670 (h.attachTo = function (t) { 7671 return new h(t); 7672 }), 7673 (h.prototype.initialize = function (t) { 7674 var e = this; 7675 void 0 === t && 7676 (t = function (t, e) { 7677 return new c.MDCRipple(t, e); 7678 }); 7679 var n = o(o({}, c.MDCRipple.createAdapter(this)), { 7680 computeBoundingRect: function () {
7681 return e.foundation.getDimensions(); 7682 }, 7683 }); 7684 this.rippleComponent = t(this.root, new u.MDCRippleFoundation(n)); 7685 }), 7686 (h.prototype.initialSyncWithDOM = function () { 7687 var t = this; 7688 (this.handleClick = function () { 7689 t.foundation.handleClick(); 7690 }), 7691 this.listen(l.events.CLICK, this.handleClick); 7692 }), 7693 (h.prototype.destroy = function () { 7694 this.ripple.destroy(), this.unlisten(l.events.CLICK, this.handleClick), s.prototype.destroy.call(this); 7695 }), 7696 (h.prototype.getDefaultFoundation = function () { 7697 var n = this, 7698 t = { 7699 isSingleSelect: function () { 7700 return n.isSingleSelect; 7701 }, 7702 getAttr: function (t) { 7703 return n.root.getAttribute(t); 7704 }, 7705 setAttr: function (t, e) { 7706 n.root.setAttribute(t, e); 7707 }, 7708 addClass: function (t) { 7709 n.root.classList.add(t); 7710 }, 7711 removeClass: function (t) { 7712 n.root.classList.remove(t); 7713 }, 7714 hasClass: function (t) { 7715 return n.root.classList.contains(t); 7716 }, 7717 notifySelectedChange: function (t) { 7718 n.emit(l.events.SELECTED, { index: n.index, selected: t, segmentId: n.getSegmentId() }, !0); 7719 }, 7720 getRootBoundingClientRect: function () { 7721 return n.root.getBoundingClientRect(); 7722 }, 7723 }; 7724 return new d.MDCSegmentedButtonSegmentFoundation(t); 7725 }), 7726 (h.prototype.setIndex = function (t) { 7727 this.index = t; 7728 }), 7729 (h.prototype.setIsSingleSelect = function (t) { 7730 this.isSingleSelect = t; 7731 }), 7732 (h.prototype.isSelected = function () { 7733 return this.foundation.isSelected(); 7734 }), 7735 (h.prototype.setSelected = function () { 7736 this.foundation.setSelected(); 7737 }), 7738 (h.prototype.setUnselected = function () { 7739 this.foundation.setUnselected(); 7740 }), 7741 (h.prototype.getSegmentId = function () { 7742 return this.foundation.getSegmentId(); 7743 }), 7744 h); 7745 function h() { 7746 return (null !== s && s.apply(this, arguments)) || this; 7747 } 7748 e.MDCSegmentedButtonSegment = p; 7749 }, 7750 function (t, e, n) { 7751 "use strict"; 7752 Object.defineProperty(e, "__esModule", { value: !0 }), 7753 (e.cssClasses = e.events = e.attributes = e.booleans = void 0), 7754 (e.booleans = { TRUE: "true", FALSE: "false" }), 7755 (e.attributes = { ARIA_CHECKED: "aria-checked", ARIA_PRESSED: "aria-pressed", DATA_SEGMENT_ID: "data-segment-id" }), 7756 (e.events = { CLICK: "click", SELECTED: "selected" }),
7757 (e.cssClasses = { SELECTED: "mdc-segmented-button__segment--selected" }); 7758 }, 7759 function (t, e, n) { 7760 "use strict"; 7761 var i, 7762 r = 7763 (this && this.__extends) || 7764 ((i = function (t, e) { 7765 return (i = 7766 Object.setPrototypeOf || 7767 ({ __proto__: [] } instanceof Array && 7768 function (t, e) { 7769 t.__proto__ = e; 7770 }) || 7771 function (t, e) { 7772 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7773 })(t, e); 7774 }), 7775 function (t, e) { 7776 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7777 function n() { 7778 this.constructor = t; 7779 } 7780 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7781 }), 7782 o = 7783 (this && this.__assign) || 7784 function () { 7785 return (o = 7786 Object.assign || 7787 function (t) { 7788 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7789 return t; 7790 }).apply(this, arguments); 7791 }; 7792 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSegmentedButtonSegmentFoundation = void 0); 7793 var s, 7794 a = n(0), 7795 c = n(83), 7796 u = { bottom: 0, height: 0, left: 0, right: 0, top: 0, width: 0 }, 7797 l = 7798 ((s = a.MDCFoundation), 7799 r(d, s), 7800 Object.defineProperty(d, "defaultAdapter", { 7801 get: function () { 7802 return { 7803 isSingleSelect: function () { 7804 return !1; 7805 }, 7806 getAttr: function () { 7807 return ""; 7808 }, 7809 setAttr: function () {}, 7810 addClass: function () {}, 7811 removeClass: function () {}, 7812 hasClass: function () { 7813 return !1; 7814 }, 7815 notifySelectedChange: function () {}, 7816 getRootBoundingClientRect: function () { 7817 return u; 7818 }, 7819 }; 7820 }, 7821 enumerable: !1, 7822 configurable: !0, 7823 }), 7824 (d.prototype.isSelected = function () { 7825 return this.adapter.hasClass(c.cssClasses.SELECTED); 7826 }), 7827 (d.prototype.setSelected = function () { 7828 this.adapter.addClass(c.cssClasses.SELECTED), this.setAriaAttr(c.booleans.TRUE); 7829 }), 7830 (d.prototype.setUnselected = function () { 7831 this.adapter.removeClass(c.cssClasses.SELECTED), this.setAriaAttr(c.booleans.FALSE); 7832 }), 7833 (d.prototype.getSegmentId = function () { 7834 var t; 7835 return null !== (t = this.adapter.getAttr(c.attributes.DATA_SEGMENT_ID)) && void 0 !== t ? t : void 0; 7836 }), 7837 (d.prototype.handleClick = function () { 7838 this.adapter.isSingleSelect() ? this.setSelected() : this.toggleSelection(), this.adapter.notifySelectedChange(this.isSelected()); 7839 }), 7840 (d.prototype.getDimensions = function () { 7841 return this.adapter.getRootBoundingClientRect(); 7842 }), 7843 (d.prototype.toggleSelection = function () { 7844 this.isSelected() ? this.setUnselected() : this.setSelected(); 7845 }), 7846 (d.prototype.setAriaAttr = function (t) { 7847 this.adapter.isSingleSelect() ? this.adapter.setAttr(c.attributes.ARIA_CHECKED, t) : this.adapter.setAttr(c.attributes.ARIA_PRESSED, t); 7848 }), 7849 d); 7850 function d(t) { 7851 return s.call(this, o(o({}, d.defaultAdapter), t)) || this; 7852 } 7853 e.MDCSegmentedButtonSegmentFoundation = l; 7854 }, 7855 function (t, e, n) { 7856 "use strict"; 7857 var i, 7858 r = 7859 (this && this.__extends) || 7860 ((i = function (t, e) { 7861 return (i = 7862 Object.setPrototypeOf || 7863 ({ __proto__: [] } instanceof Array && 7864 function (t, e) { 7865 t.__proto__ = e; 7866 }) || 7867 function (t, e) { 7868 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 7869 })(t, e); 7870 }), 7871 function (t, e) { 7872 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 7873 function n() { 7874 this.constructor = t; 7875 } 7876 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 7877 }), 7878 o = 7879 (this && this.__assign) || 7880 function () { 7881 return (o = 7882 Object.assign || 7883 function (t) { 7884 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 7885 return t; 7886 }).apply(this, arguments); 7887 }; 7888 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelectFoundation = void 0); 7889 var s, 7890 a = n(0), 7891 c = n(6), 7892 u = n(8), 7893 l = n(32), 7894 d = 7895 ((s = a.MDCFoundation), 7896 r(p, s),
7897 Object.defineProperty(p, "cssClasses", { 7898 get: function () { 7899 return l.cssClasses; 7900 }, 7901 enumerable: !1, 7902 configurable: !0, 7903 }), 7904 Object.defineProperty(p, "numbers", { 7905 get: function () { 7906 return l.numbers; 7907 }, 7908 enumerable: !1, 7909 configurable: !0, 7910 }), 7911 Object.defineProperty(p, "strings", { 7912 get: function () { 7913 return l.strings; 7914 }, 7915 enumerable: !1, 7916 configurable: !0, 7917 }), 7918 Object.defineProperty(p, "defaultAdapter", { 7919 get: function () { 7920 return { 7921 addClass: function () {}, 7922 removeClass: function () {}, 7923 hasClass: function () { 7924 return !1; 7925 }, 7926 activateBottomLine: function () {}, 7927 deactivateBottomLine: function () {}, 7928 getSelectedIndex: function () { 7929 return -1; 7930 }, 7931 setSelectedIndex: function () {}, 7932 hasLabel: function () { 7933 return !1; 7934 }, 7935 floatLabel: function () {}, 7936 getLabelWidth: function () { 7937 return 0; 7938 }, 7939 setLabelRequired: function () {}, 7940 hasOutline: function () { 7941 return !1; 7942 }, 7943 notchOutline: function () {}, 7944 closeOutline: function () {}, 7945 setRippleCenter: function () {}, 7946 notifyChange: function () {}, 7947 setSelectedText: function () {}, 7948 isSelectAnchorFocused: function () { 7949 return !1; 7950 }, 7951 getSelectAnchorAttr: function () { 7952 return ""; 7953 }, 7954 setSelectAnchorAttr: function () {}, 7955 removeSelectAnchorAttr: function () {}, 7956 addMenuClass: function () {}, 7957 removeMenuClass: function () {}, 7958 openMenu: function () {}, 7959 closeMenu: function () {}, 7960 getAnchorElement: function () { 7961 return null; 7962 }, 7963 setMenuAnchorElement: function () {}, 7964 setMenuAnchorCorner: function () {}, 7965 setMenuWrapFocus: function () {}, 7966 focusMenuItemAtIndex: function () {}, 7967 getMenuItemCount: function () { 7968 return 0; 7969 },
7970 getMenuItemValues: function () { 7971 return []; 7972 }, 7973 getMenuItemTextAtIndex: function () { 7974 return ""; 7975 }, 7976 isTypeaheadInProgress: function () { 7977 return !1; 7978 }, 7979 typeaheadMatchItem: function () { 7980 return -1; 7981 }, 7982 }; 7983 }, 7984 enumerable: !1, 7985 configurable: !0, 7986 }), 7987 (p.prototype.getSelectedIndex = function () { 7988 return this.adapter.getSelectedIndex(); 7989 }), 7990 (p.prototype.setSelectedIndex = function (t, e, n) { 7991 void 0 === e && (e = !1), 7992 void 0 === n && (n = !1), 7993 t >= this.adapter.getMenuItemCount() || 7994 (t === l.numbers.UNSET_INDEX ? this.adapter.setSelectedText("") : this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(t).trim()), 7995 this.adapter.setSelectedIndex(t), 7996 e && this.adapter.closeMenu(), 7997 n || this.lastSelectedIndex === t || this.handleChange(), 7998 (this.lastSelectedIndex = t)); 7999 }), 8000 (p.prototype.setValue = function (t, e) { 8001 void 0 === e && (e = !1);
8002 var n = this.adapter.getMenuItemValues().indexOf(t); 8003 this.setSelectedIndex(n, !1, e); 8004 }), 8005 (p.prototype.getValue = function () { 8006 var t = this.adapter.getSelectedIndex(), 8007 e = this.adapter.getMenuItemValues(); 8008 return t !== l.numbers.UNSET_INDEX ? e[t] : ""; 8009 }), 8010 (p.prototype.getDisabled = function () { 8011 return this.disabled; 8012 }), 8013 (p.prototype.setDisabled = function (t) { 8014 (this.disabled = t), 8015 this.disabled ? (this.adapter.addClass(l.cssClasses.DISABLED), this.adapter.closeMenu()) : this.adapter.removeClass(l.cssClasses.DISABLED), 8016 this.leadingIcon && this.leadingIcon.setDisabled(this.disabled), 8017 this.disabled ? this.adapter.removeSelectAnchorAttr("tabindex") : this.adapter.setSelectAnchorAttr("tabindex", "0"), 8018 this.adapter.setSelectAnchorAttr("aria-disabled", this.disabled.toString()); 8019 }), 8020 (p.prototype.openMenu = function () { 8021 this.adapter.addClass(l.cssClasses.ACTIVATED), this.adapter.openMenu(), (this.isMenuOpen = !0), this.adapter.setSelectAnchorAttr("aria-expanded", "true"); 8022 }), 8023 (p.prototype.setHelperTextContent = function (t) { 8024 this.helperText && this.helperText.setContent(t); 8025 }), 8026 (p.prototype.layout = function () { 8027 if (this.adapter.hasLabel()) { 8028 var t = 0 < this.getValue().length, 8029 e = this.adapter.hasClass(l.cssClasses.FOCUSED), 8030 n = t || e, 8031 i = this.adapter.hasClass(l.cssClasses.REQUIRED); 8032 this.notchOutline(n), this.adapter.floatLabel(n), this.adapter.setLabelRequired(i); 8033 } 8034 }), 8035 (p.prototype.layoutOptions = function () {
8036 var t = this.adapter.getMenuItemValues().indexOf(this.getValue()); 8037 this.setSelectedIndex(t, !1, !0); 8038 }), 8039 (p.prototype.handleMenuOpened = function () { 8040 if (0 !== this.adapter.getMenuItemValues().length) { 8041 var t = this.getSelectedIndex(), 8042 e = 0 <= t ? t : 0; 8043 this.adapter.focusMenuItemAtIndex(e); 8044 } 8045 }), 8046 (p.prototype.handleMenuClosing = function () { 8047 this.adapter.setSelectAnchorAttr("aria-expanded", "false"); 8048 }), 8049 (p.prototype.handleMenuClosed = function () { 8050 this.adapter.removeClass(l.cssClasses.ACTIVATED), (this.isMenuOpen = !1), this.adapter.isSelectAnchorFocused() || this.blur(); 8051 }), 8052 (p.prototype.handleChange = function () { 8053 this.layout(), this.adapter.notifyChange(this.getValue()), this.adapter.hasClass(l.cssClasses.REQUIRED) && this.useDefaultValidation && this.setValid(this.isValid()); 8054 }), 8055 (p.prototype.handleMenuItemAction = function (t) { 8056 this.setSelectedIndex(t, !0); 8057 }), 8058 (p.prototype.handleFocus = function () { 8059 this.adapter.addClass(l.cssClasses.FOCUSED), this.layout(), this.adapter.activateBottomLine(); 8060 }), 8061 (p.prototype.handleBlur = function () { 8062 this.isMenuOpen || this.blur(); 8063 }), 8064 (p.prototype.handleClick = function (t) { 8065 this.disabled || this.recentlyClicked || (this.setClickDebounceTimeout(), this.isMenuOpen ? this.adapter.closeMenu() : (this.adapter.setRippleCenter(t), this.openMenu())); 8066 }), 8067 (p.prototype.handleKeydown = function (t) { 8068 if (!this.isMenuOpen && this.adapter.hasClass(l.cssClasses.FOCUSED)) { 8069 var e = c.normalizeKey(t) === c.KEY.ENTER, 8070 n = c.normalizeKey(t) === c.KEY.SPACEBAR, 8071 i = c.normalizeKey(t) === c.KEY.ARROW_UP, 8072 r = c.normalizeKey(t) === c.KEY.ARROW_DOWN; 8073 if (!t.ctrlKey && !t.metaKey && ((!n && t.key && 1 === t.key.length) || (n && this.adapter.isTypeaheadInProgress()))) { 8074 var o = n ? " " : t.key, 8075 s = this.adapter.typeaheadMatchItem(o, this.getSelectedIndex()); 8076 return 0 <= s && this.setSelectedIndex(s), void t.preventDefault(); 8077 } 8078 (e || n || i || r) && 8079 (i && 0 < this.getSelectedIndex() 8080 ? this.setSelectedIndex(this.getSelectedIndex() - 1) 8081 : r && this.getSelectedIndex() < this.adapter.getMenuItemCount() - 1 && this.setSelectedIndex(this.getSelectedIndex() + 1), 8082 this.openMenu(), 8083 t.preventDefault()); 8084 } 8085 }), 8086 (p.prototype.notchOutline = function (t) { 8087 if (this.adapter.hasOutline()) { 8088 var e = this.adapter.hasClass(l.cssClasses.FOCUSED); 8089 if (t) { 8090 var n = l.numbers.LABEL_SCALE, 8091 i = this.adapter.getLabelWidth() * n; 8092 this.adapter.notchOutline(i); 8093 } else e || this.adapter.closeOutline(); 8094 } 8095 }), 8096 (p.prototype.setLeadingIconAriaLabel = function (t) { 8097 this.leadingIcon && this.leadingIcon.setAriaLabel(t); 8098 }), 8099 (p.prototype.setLeadingIconContent = function (t) { 8100 this.leadingIcon && this.leadingIcon.setContent(t); 8101 }), 8102 (p.prototype.getUseDefaultValidation = function () { 8103 return this.useDefaultValidation; 8104 }), 8105 (p.prototype.setUseDefaultValidation = function (t) { 8106 this.useDefaultValidation = t; 8107 }), 8108 (p.prototype.setValid = function (t) { 8109 this.useDefaultValidation || (this.customValidity = t), 8110 this.adapter.setSelectAnchorAttr("aria-invalid", (!t).toString()), 8111 t 8112 ? (this.adapter.removeClass(l.cssClasse
8112s.INVALID), this.adapter.removeMenuClass(l.cssClasses.MENU_INVALID)) 8113 : (this.adapter.addClass(l.cssClasses.INVALID), this.adapter.addMenuClass(l.cssClasses.MENU_INVALID)), 8114 this.syncHelperTextValidity(t); 8115 }), 8116 (p.prototype.isValid = function () { 8117 return this.useDefaultValidation && this.adapter.hasClass(l.cssClasses.REQUIRED) && !this.adapter.hasClass(l.cssClasses.DISABLED) 8118 ? this.getSelectedIndex() !== l.numbers.UNSET_INDEX && (0 !== this.getSelectedIndex() || Boolean(this.getValue())) 8119 : this.customValidity; 8120 }), 8121 (p.prototype.setRequired = function (t) { 8122 t ? this.adapter.addClass(l.cssClasses.REQUIRED) : this.adapter.removeClass(l.cssClasses.REQUIRED), this.adapter.setSelectAnchorAttr("aria-required", t.toString()), this.adapter.setLabelRequired(t); 8123 }), 8124 (p.prototype.getRequired = function () { 8125 return "true" === this.adapter.getSelectAnchorAttr("aria-required"); 8126 }), 8127 (p.prototype.init = function () { 8128 var t = this.adapter.getAnchorElement(); 8129 t && (this.adapter.setMenuAnchorElement(t), this.adapter.setMenuAnchorCorner(u.Corner.BOTTOM_START)), 8130 this.adapter.setMenuWrapFocus(!1), 8131 this.setDisabled(this.adapter.hasClass(l.cssClasses.DISABLED)), 8132 this.syncHelperTextValidity(!this.adapter.hasClass(l.cssClasses.INVALID)), 8133 this.layout(), 8134 this.layoutOptions(); 8135 }), 8136 (p.prototype.blur = function () { 8137 this.adapter.removeClass(l.cssClasses.FOCUSED), this.layout(), this.adapter.deactivateBottomLine(), this.adapter.hasClass(l.cssClasses.REQUIRED) && this.useDefaultValidation && this.setValid(this.isValid()); 8138 }), 8139 (p.prototype.syncHelperTextValidity = function (t) { 8140 if (this.helperText) { 8141 this.helperText.setValidity(t); 8142 var e = this.helperText.isVisible(), 8143 n = this.helperText.getId(); 8144 e && n ? this.adapter.setSelectAnchorAttr(l.strings.ARIA_DESCRIBEDBY, n) : this.adapter.removeSelectAnchorAttr(l.strings.ARIA_DESCRIBEDBY); 8145 } 8146 }), 8147 (p.prototype.setClickDebounceTimeout = function () { 8148 var t = this; 8149 clearTimeout(this.clickDebounceTimeout), 8150 (this.clickDebounceTimeout = setTimeout(function () { 8151 t.recentlyClicked = !1; 8152 }, l.numbers.CLICK_DEBOUNCE_TIMEOUT_MS)), 8153 (this.recentlyClicked = !0); 8154 }), 8155 p); 8156 function p(t, e) { 8157 void 0 === e && (e = {}); 8158 var n = s.call(this, o(o({}, p.defaultAdapter), t)) || this; 8159 return ( 8160 (n.disabled = !1), 8161 (n.isMenuOpen = !1), 8162 (n.useDefaultValidation = !0), 8163 (n.customValidity = !0), 8164 (n.lastSelectedIndex = l.numbers.UNSET_INDEX), 8165 (n.clickDebounceTimeout = 0), 8166 (n.recentlyClicked = !1), 8167 (n.leadingIcon = e.leadingIcon), 8168 (n.helperText = e.helperText), 8169 n 8170 ); 8171 } 8172 (e.MDCSelectFoundation = d), (e.default = d); 8173 }, 8174 function (t, e, n) { 8175 "use strict"; 8176 var i, 8177 r = 8178 (this && this.__extends) || 8179 ((i = function (t, e) { 8180 return (i = 8181 Object.setPrototypeOf || 8182 ({ __proto__: [] } instanceof Array && 8183 function (t, e) { 8184 t.__proto__ = e; 8185 }) || 8186 function (t, e) { 8187 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 8188 })(t, e); 8189 }), 8190 function (t, e) { 8191 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 8192 function n() { 8193 this.constructor = t; 8194 } 8195 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 8196 }); 8197 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelectHelperText = void 0); 8198 var o, 8199 s = n(1), 8200 a = n(87), 8201 c = 8202 ((o = s.MDCComponent), 8203 r(u, o), 8204 (u.attachTo = function (t) { 8205 return new u(t); 8206 }), 8207 Object.defineProperty(u.prototype, "foundationForSelect", { 8208 get: function () { 8209 return this.foundation; 8210 }, 8211 enumerable: !1, 8212 configurable: !0, 8213 }), 8214 (u.prototype.getDefaultFoundation = function () { 8215 var n = this, 8216 t = { 8217 addClass: function (t) { 8218 return n.root.classList.add(t); 8219 }, 8220 removeClass: function (t) { 8221 return n.root.classList.remove(t); 8222 }, 8223 hasClass: function (t) { 8224 return n.root.classList.contains(t); 8225 }, 8226 getAttr: function (t) { 8227 return n.root.getAttribute(t); 8228 }, 8229 setAttr: function (t, e) { 8230 return n.root.setAttribute(t, e); 8231 }, 8232 removeAttr: function (t) { 8233 return n.root.removeAttribute(t); 8234 }, 8235 setContent: function (t) { 8236 n.root.textContent = t; 8237 }, 8238 }; 8239 return new a.MDCSelectHelperTextFoundation(t); 8240 }), 8241 u); 8242 function u() { 8243 return (null !== o && o.apply(this, arguments)) || this; 8244 } 8245 e.MDCSelectHelperText = c; 8246 }, 8247 function (t, e, n) { 8248 "use strict"; 8249 var i, 8250 r = 8251 (this && this.__extends) || 8252 ((i = function (t, e) { 8253 return (i = 8254 Object.setPrototypeOf || 8255 ({ __proto__: [] } instanceof Array && 8256 function (t, e) { 8257 t.__proto__ = e; 8258 }) || 8259 function (t, e) { 8260 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 8261 })(t, e); 8262 }), 8263 function (t, e) { 8264 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 8265 function n() { 8266 this.constructor = t; 8267 } 8268 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 8269 }), 8270 o = 8271 (this && this.__assign) || 8272 function () { 8273 return (o = 8274 Object.assign || 8275 function (t) { 8276 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 8277 return t; 8278 }).apply(this, arguments); 8279 }; 8280 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelectHelperTextFoundation = void 0); 8281 var s, 8282 a = n(0), 8283 c = n(88), 8284 u = 8285 ((s = a.MDCFoundation), 8286 r(l, s),
8287 Object.defineProperty(l, "cssClasses", { 8288 get: function () { 8289 return c.cssClasses; 8290 }, 8291 enumerable: !1, 8292 configurable: !0, 8293 }), 8294 Object.defineProperty(l, "strings", { 8295 get: function () { 8296 return c.strings; 8297 }, 8298 enumerable: !1, 8299 configurable: !0, 8300 }), 8301 Object.defineProperty(l, "defaultAdapter", { 8302 get: function () { 8303 return { 8304 addClass: function () {}, 8305 removeClass: function () {}, 8306 hasClass: function () { 8307 return !1; 8308 }, 8309 setAttr: function () {}, 8310 getAttr: function () { 8311 return null; 8312 }, 8313 removeAttr: function () {}, 8314 setContent: function () {}, 8315 }; 8316 }, 8317 enumerable: !1, 8318 configurable: !0, 8319 }), 8320 (l.prototype.getId = function () { 8321 return this.adapter.getAttr("id"); 8322 }), 8323 (l.prototype.isVisible = function () { 8324 return "true" !== this.adapter.getAttr(c.strings.ARIA_HIDDEN); 8325 }), 8326 (l.prototype.setContent = function (t) { 8327 this.adapter.setContent(t); 8328 }), 8329 (l.prototype.setValidation = function (t) { 8330 t ? this.adapter.addClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG) : this.adapter.removeClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG); 8331 }), 8332 (l.prototype.setValidationMsgPersistent = function (t) { 8333 t ? this.adapter.addClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT) : this.adapter.removeClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT); 8334 }), 8335 (l.prototype.setValidity = function (t) { 8336 if (this.adapter.hasClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG)) { 8337 var e = this.adapter.hasClass(c.cssClasses.HELPER_TEXT_VALIDATION_MSG_PERSISTENT); 8338 if (!t || e) return this.showToScreenReader(), void (t ? this.adapter.removeAttr(c.strings.ROLE) : this.adapter.setAttr(c.strings.ROLE, "alert")); 8339 this.adapter.removeAttr(c.strings.ROLE), this.hide(); 8340 } 8341 }), 8342 (l.prototype.showToScreenReader = function () { 8343 this.adapter.removeAttr(c.strings.ARIA_HIDDEN); 8344 }), 8345 (l.prototype.hide = function () { 8346 this.adapter.setAttr(c.strings.ARIA_HIDDEN, "true"); 8347 }), 8348 l); 8349 function l(t) { 8350 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 8351 } 8352 (e.MDCSelectHelperTextFoundation = u), (e.default = u); 8353 }, 8354 function (t, e, n) { 8355 "use strict"; 8356 Object.defineProperty(e, "__esModule", { value: !0 }), (e.cssClasses = e.strings = void 0); 8357 e.strings = { ARIA_HIDDEN: "aria-hidden", ROLE: "role" }; 8358 e.cssClasses = { HELPER_TEXT_VALIDATION_MSG: "mdc-select-helper-text--vali
8358dation-msg", HELPER_TEXT_VALIDATION_MSG_PERSISTENT: "mdc-select-helper-text--validation-msg-persistent" }; 8359 }, 8360 function (t, e, n) { 8361 "use strict"; 8362 var i, 8363 r = 8364 (this && this.__extends) || 8365 ((i = function (t, e) { 8366 return (i = 8367 Object.setPrototypeOf || 8368 ({ __proto__: [] } instanceof Array && 8369 function (t, e) { 8370 t.__proto__ = e; 8371 }) || 8372 function (t, e) { 8373 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 8374 })(t, e); 8375 }), 8376 function (t, e) { 8377 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 8378 function n() { 8379 this.constructor = t; 8380 } 8381 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 8382 }); 8383 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelectIcon = void 0); 8384 var o, 8385 s = n(1), 8386 a = n(90), 8387 c = 8388 ((o = s.MDCComponent), 8389 r(u, o), 8390 (u.attachTo = function (t) { 8391 return new u(t); 8392 }), 8393 Object.defineProperty(u.prototype, "foundationForSelect", { 8394 get: function () { 8395 return this.foundation; 8396 }, 8397 enumerable: !1, 8398 configurable: !0, 8399 }), 8400 (u.prototype.getDefaultFoundation = function () { 8401 var n = this, 8402 t = { 8403 getAttr: function (t) { 8404 return n.root.getAttribute(t); 8405 }, 8406 setAttr: function (t, e) { 8407 return n.root.setAttribute(t, e); 8408 }, 8409 removeAttr: function (t) { 8410 return n.root.removeAttribute(t); 8411 }, 8412 setContent: function (t) { 8413 n.root.textContent = t; 8414 }, 8415 registerInteractionHandler: function (t, e) { 8416 return n.listen(t, e); 8417 }, 8418 deregisterInteractionHandler: function (t, e) { 8419 return n.unlisten(t, e); 8420 }, 8421 notifyIconAction: function () { 8422 return n.emit(a.MDCSelectIconFoundation.strings.ICON_EVENT, {}, !0); 8423 }, 8424 }; 8425 return new a.MDCSelectIconFoundation(t); 8426 }), 8427 u); 8428 function u() { 8429 return (null !== o && o.apply(this, arguments)) || this; 8430 } 8431 e.MDCSelectIcon = c; 8432 }, 8433 function (t, e, n) { 8434 "use strict"; 8435 var i, 8436 r = 8437 (this && this.__extends) || 8438 ((i = function (t, e) { 8439 return (i = 8440 Object.setPrototypeOf || 8441 ({ __proto__: [] } instanceof Array && 8442 function (t, e) { 8443 t.__proto__ = e; 8444 }) || 8445 function (t, e) { 8446 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 8447 })(t, e); 8448 }), 8449 function (t, e) { 8450 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 8451 function n() { 8452 this.constructor = t; 8453 } 8454 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 8455 }), 8456 o = 8457 (this && this.__assign) || 8458 function () { 8459 return (o = 8460 Object.assign || 8461 function (t) { 8462 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 8463 return t; 8464 }).apply(this, arguments); 8465 }, 8466 s = 8467 (this && this.__values) || 8468 function (t) { 8469 var e = "function" == typeof Symbol && Symbol.iterator, 8470 n = e && t[e], 8471 i = 0; 8472 if (n) return n.call(t); 8473 if (t && "number" == typeof t.length) 8474 return { 8475 next: function () { 8476 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 8477 }, 8478 }; 8479 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 8480 }; 8481 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelectIconFoundation = void 0); 8482 var a, 8483 c = n(0), 8484 u = n(91), 8485 l = ["click", "keydown"], 8486 d = 8487 ((a = c.MDCFoundation), 8488 r(p, a), 8489 Object.defineProperty(p, "strings", { 8490 get: function () { 8491 return u.strings; 8492 }, 8493 enumerable: !1, 8494 configurable: !0, 8495 }), 8496 Object.defineProperty(p, "defaultAdapter", { 8497 get: function () { 8498 return { 8499 getAttr: function () { 8500 return null; 8501 }, 8502 setAttr: function () {}, 8503 removeAttr: function () {}, 8504 setContent: function () {}, 8505 registerInteractionHandler: function () {}, 8506 deregisterInteractionHandler: function () {}, 8507 notifyIconAction: function () {}, 8508 }; 8509 }, 8510 enumerable: !1, 8511 configurable: !0, 8512 }), 8513 (p.prototype.init = function () { 8514 var e, t; 8515 this.savedTabIndex = this.adapter.getAttr("tabindex"); 8516 try { 8517 for (var n = s(l), i = n.next(); !i.done; i = n.next()) { 8518 var r = i.value; 8519 this.adapter.registerInteractionHandler(r, this.interactionHandler); 8520 } 8521 } catch (t) { 8522 e = { error: t }; 8523 } finally { 8524 try { 8525 i && !i.done && (t = n.return) && t.call(n); 8526 } finally { 8527 if (e) throw e.error; 8528 } 8529 } 8530 }), 8531 (p.prototype.destroy = function () { 8532 var e, t; 8533 try { 8534 for (var n = s(l), i = n.next(); !i.done; i = n.next()) { 8535 var r = i.value; 8536 this.adapter.deregisterInteractionHandler(r, this.interactionHandler); 8537 } 8538 } catch (t) { 8539 e = { error: t }; 8540 } finally { 8541 try { 8542 i && !i.done && (t = n.return) && t.call(n); 8543 } finally { 8544 if (e) throw e.error; 8545 } 8546 } 8547 }), 8548 (p.prototype.setDisabled = function (t) { 8549 this.savedTabIndex && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex), this.adapter.setAttr("role", u.strings.ICON_ROLE))); 8550 }), 8551 (p.prototype.setAriaLabel = function (t) { 8552 this.adapter.setAttr("aria-label", t); 8553 }), 8554 (p.prototype.setContent = function (t) { 8555 this.adapter.setContent(t); 8556 }), 8557 (p.prototype.handleInteraction = function (t) { 8558 var e = "Enter" === t.key || 13 === t.keyCode; 8559 ("click" !== t.type && !e) || this.adapter.notifyIconAction(); 8560 }), 8561 p); 8562 function p(t) { 8563 var e = a.call(this, o(o({}, p.defaultAdapter), t)) || this; 8564 return ( 8565 (e.savedTabIndex = null),
8566 (e.interactionHandler = function (t) { 8567 e.handleInteraction(t); 8568 }), 8569 e 8570 ); 8571 } 8572 (e.MDCSelectIconFoundation = d), (e.default = d); 8573 }, 8574 function (t, e, n) { 8575 "use strict"; 8576 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = void 0); 8577 e.strings = { ICON_EVENT: "MDCSelect:icon", ICON_ROLE: "button" }; 8578 }, 8579 function (t, e, n) { 8580 "use strict"; 8581 var i, 8582 r = 8583 (this && this.__extends) || 8584 ((i = function (t, e) { 8585 return (i = 8586 Object.setPrototypeOf || 8587 ({ __proto__: [] } instanceof Array && 8588 function (t, e) { 8589 t.__proto__ = e; 8590 }) || 8591 function (t, e) { 8592 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 8593 })(t, e); 8594 }), 8595 function (t, e) { 8596 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 8597 function n() { 8598 this.constructor = t; 8599 } 8600 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 8601 }), 8602 o = 8603 (this && this.__assign) || 8604 function () { 8605 return (o = 8606 Object.assign || 8607 function (t) { 8608 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 8609 return t; 8610 }).apply(this, arguments); 8611 }; 8612 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSliderFoundation = void 0); 8613 var l, 8614 s = n(23), 8615 d = n(10), 8616 a = n(0), 8617 c = n(33), 8618 p = n(34); 8619 (l = l || {}).SLIDER_UPDATE = "slider_update"; 8620 var u, 8621 h = "undefined" != typeof window, 8622 f = 8623 ((u = a.MDCFoundation), 8624 r(y, u), 8625 Object.defineProperty(y, "defaultAdapter", { 8626 get: function () { 8627 return { 8628 hasClass: function () { 8629 return !1; 8630 }, 8631 addClass: function () {}, 8632 removeClass: function () {}, 8633 addThumbClass: function () {}, 8634 removeThumbClass: function () {}, 8635 getAttribute: function () { 8636 return null; 8637 }, 8638 getInputValue: function () { 8639 return ""; 8640 }, 8641 setInputValue: function () {}, 8642 getInputAttribute: function () { 8643 return null; 8644 }, 8645 setInputAttribute: function () { 8646 return null; 8647 }, 8648 removeInputAttribute: function () { 8649 return null; 8650 }, 8651 focusInput: function () {}, 8652 isInputFocused: function () { 8653 return !1; 8654 }, 8655 getThumbKnobWidth: function () { 8656 return 0; 8657 }, 8658 getThumbBoundingClientRect: function () { 8659 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 8660 }, 8661 getBoundingClientRect: function () { 8662 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 8663 }, 8664 isRTL: function () { 8665 return !1; 8666 }, 8667 setThumbStyleProperty: function () {}, 8668 removeThumbStyleProperty: function () {}, 8669 setTrackActiveStyleProperty: function () {}, 8670 removeTrackActiveStyleProperty: function () {}, 8671 setValueIndicatorText: function () {}, 8672 getValueToAriaValueTextFn: function () { 8673 return null; 8674 }, 8675 updateTickMarks: function () {}, 8676 setPointerCapture: function () {}, 8677 emitChangeEvent: function () {}, 8678 emitInputEvent: function () {}, 8679 emitDragStartEvent: function () {}, 8680 emitDragEndEvent: function () {}, 8681 registerEventHandler: function () {}, 8682 deregisterEventHandler: function () {}, 8683 registerThumbEventHandler: function () {}, 8684 deregisterThumbEventHandler: function () {}, 8685 registerInputEventHandler: function () {}, 8686 deregisterInputEventHandler: function () {}, 8687 registerBodyEventHandler: function () {}, 8688 deregisterBodyEventHandler: function () {}, 8689 registerWindowEventHandler: function () {}, 8690 deregisterWindowEventHandler: function () {}, 8691 }; 8692 }, 8693 enumerable: !1, 8694 configurable: !0, 8695 }), 8696 (y.prototype.init = function () { 8697 var t = this; 8698 (this.isDisabled = this.adapter.hasClass(c.cssClasse
8698s.DISABLED)), 8699 (this.isDiscrete = this.adapter.hasClass(c.cssClasses.DISCRETE)), 8700 (this.hasTickMarks = this.adapter.hasClass(c.cssClasses.TICK_MARKS)), 8701 (this.isRange = this.adapter.hasClass(c.cssClasses.RANGE)); 8702 var e = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.attributes.INPUT_MIN, this.isRange ? p.Thumb.START : p.Thumb.END), c.attributes.INPUT_MIN), 8703 n = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.attributes.INPUT_MAX, p.Thumb.END), c.attributes.INPUT_MAX), 8704 i = this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.attributes.INPUT_VALUE, p.Thumb.END), c.attributes.INPUT_VALUE), 8705 r = this.isRange ? this.convertAttributeValueToNumber(this.adapter.getInputAttribute(c.attributes.INPUT_VALUE, p.Thumb.START), c.attributes.INPUT_VALUE) : e, 8706 o = this.adapter.getInputAttribute(c.attributes.INPUT_STEP, p.Thumb.END), 8707 s = o ? this.convertAttributeValueToNumber(o, c.attributes.INPUT_STEP) : this.step; 8708 this.validateProperties({ min: e, max: n, value: i, valueStart: r, step: s }), 8709 (this.min = e), 8710 (this.max = n), 8711 (this.value = i), 8712 (this.valueStart = r), 8713 (this.step = s), 8714 (this.numDecimalPlaces = C(this.step)), 8715 (this.valueBeforeDownEvent = i), 8716 (this.valueStartBeforeDownEvent = r), 8717 (this.mousedownOrTouchstartListener = this.handleMousedownOrTouchstart.bind(this)), 8718 (this.moveListener = this.handleMove.bind(this)), 8719 (this.pointerdownListener = this.handlePointerdown.bind(this)), 8720 (this.pointerupListener = this.handlePointerup.bind(this)), 8721 (this.thumbMouseenterListener = this.handleThumbMouseenter.bind(this)), 8722 (this.thumbMouseleaveListener = this.handleThumbMouseleave.bind(this)), 8723 (this.inputStartChangeListener = function () { 8724 t.handleInputChange(p.Thumb.START); 8725 }), 8726 (this.inputEndChangeListener = function () { 8727 t.handleInputChange(p.Thumb.END); 8728 }), 8729 (this.inputStartFocusListener = function () { 8730 t.handleInputFocus(p.Thumb.START); 8731 }), 8732 (this.inputEndFocusListener = function () { 8733 t.handleInputFocus(p.Thumb.END); 8734 }), 8735 (this.inputStartBlurListener = function () { 8736 t.handleInputBlur(p.Thumb.START); 8737 }), 8738 (this.inputEndBlurListener = function () { 8739 t.handleInputBlur(p.Thumb.END); 8740 }), 8741 (this.resizeListener = this.handleResize.bind(this)), 8742 this.registerEventHandlers(); 8743 }), 8744 (y.prototype.destroy = function () { 8745 this.deregisterEventHandlers(); 8746 }), 8747 (y.prototype.setMin = function (t) { 8748 (this.min = t), this.isRange || (this.valueStart = t), this.updateUI(); 8749 }), 8750 (y.prototype.setMax = function (t) { 8751 (this.max = t), this.updateUI(); 8752 }), 8753 (y.prototype.getMin = function () { 8754 return this.min; 8755 }), 8756 (y.prototype.getMax = function () { 8757 return this.max; 8758 }), 8759 (y.prototype.getValue = function () { 8760 return this.value; 8761 }), 8762 (y.prototype.setValue = function (t) { 8763 if (this.isRange && t < this.valueStart) throw new Error("end thumb value (" + t + ") must be >= start thumb value (" + this.valueStart + ")");
8764 this.updateValue(t, p.Thumb.END); 8765 }), 8766 (y.prototype.getValueStart = function () { 8767 if (!this.isRange) throw new Error("`valueStart` is only applicable for range sliders."); 8768 return this.valueStart; 8769 }), 8770 (y.prototype.setValueStart = function (t) { 8771 if (!this.isRange) throw new Error("`valueStart` is only applicable for range sliders."); 8772 if (this.isRange && t > this.value) throw new Error("start thumb value (" + t + ") must be <= end thumb value (" + this.value + ")"); 8773 this.updateValue(t, p.Thumb.START); 8774 }), 8775 (y.prototype.setStep = function (t) { 8776 (this.step = t), (this.numDecimalPlaces = C(t)), this.updateUI(); 8777 }), 8778 (y.prototype.setIsDiscrete = function (t) { 8779 (this.isDiscrete = t), this.updateValueIndicatorUI(), this.updateTickMarksUI(); 8780 }), 8781 (y.prototype.getStep = function () { 8782 return this.step; 8783 }), 8784 (y.prototype.setHasTickMarks = function (t) { 8785 (this.hasTickMarks = t), this.updateTickMarksUI(); 8786 }), 8787 (y.prototype.getDisabled = function () { 8788 return this.isDisabled; 8789 }), 8790 (y.prototype.setDisabled = function (t) { 8791 (this.isDisabled = t) 8792 ? (this.adapter.addClass(c.cssClasses.DISABLED), 8793 this.isRange && this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED, "", p.Thumb.START), 8794 this.adapter.setInputAttribute(c.attributes.INPUT_DISABLED, "", p.Thumb.END)) 8795 : (this.adapter.removeClass(c.cssClasses.DISABLED), 8796 this.isRange && this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED, p.Thumb.START), 8797 this.adapter.removeInputAttribute(c.attributes.INPUT_DISABLED, p.Thumb.END)); 8798 }), 8799 (y.prototype.getIsRange = function () { 8800 return this.isRange; 8801 }), 8802 (y.prototype.layout = function (t) { 8803 var e = (void 0 === t ? {} : t).skipUpdateUI; 8804 (this.rect = this.adapter.getBoundingClientRect()), 8805 this.isRange && ((this.startThumbKnobWidth = this.adapter.getThumbKnobWidth(p.Thumb.START)), (this.endThumbKnobWidth = this.adapter.getThumbKnobWidth(p.Thumb.END))), 8806 e || this.updateUI(); 8807 }), 8808 (y.prototype.handleResize = function () { 8809 this.layout(); 8810 }), 8811 (y.prototype.handleDown = function (t) { 8812 if (!this.isDisabled) { 8813 (this.valueStartBeforeDownEvent = this.valueStart), (this.valueBeforeDownEvent = this.value); 8814 var e = null != t.clientX ? t.clientX : t.targetTouches[0].clientX; 8815 this.downEventClientX = e; 8816 var n = this.mapClientXOnSliderScale(e); 8817 (this.thumb = this.getThumbFromDownEvent(e, n)), null !== this.thumb && (this.handleDragStart(t, n, this.thumb), this.updateValue(n, this.thumb, { emitInputEvent: !0 })); 8818 } 8819 }), 8820 (y.prototype.handleMove = function (t) { 8821 if (!this.isDisabled) { 8822 t.preventDefault(); 8823 var e = null != t.clientX ? t.clientX : t.targetTouches[0].clientX, 8824 n = null != this.thumb; 8825 if (((this.thumb = this.getThumbFromMoveEvent(e)), null !== this.thumb)) {
8826 var i = this.mapClientXOnSliderScale(e); 8827 n || (this.handleDragStart(t, i, this.thumb), this.adapter.emitDragStartEvent(i, this.thumb)), this.updateValue(i, this.thumb, { emitInputEvent: !0 }); 8828 } 8829 } 8830 }), 8831 (y.prototype.handleUp = function () { 8832 if (!this.isDisabled && null !== this.thumb) { 8833 var t = this.thumb === p.Thumb.START ? this.valueStartBeforeDownEvent : this.valueBeforeDownEvent, 8834 e = this.thumb === p.Thumb.START ? this.valueStart : this.value; 8835 t !== e && this.adapter.emitChangeEvent(e, this.thumb), this.adapter.emitDragEndEvent(e, this.thumb), (this.thumb = null); 8836 } 8837 }), 8838 (y.prototype.handleThumbMouseenter = function () { 8839 this.isDiscrete && this.isRange && (this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, p.Thumb.START), this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, p.Thumb.END)); 8840 }), 8841 (y.prototype.handleThumbMouseleave = function () { 8842 this.isDiscrete && 8843 this.isRange && 8844 (this.adapter.isInputFocused(p.Thumb.START) || 8845 this.adapter.isInputFocused(p.Thumb.END) || 8846 (this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, p.Thumb.START), this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, p.Thumb.END))); 8847 }), 8848 (y.prototype.handleMousedownOrTouchstart = function (t) { 8849 var e = this, 8850 n = "mousedown" === t.type ? "mousemove" : "touchmove"; 8851 function i() { 8852 e.handleUp(), e.adapter.deregisterBodyEventHandler(n, e.moveListener), e.adapter.deregisterEventHandler("mouseup", i), e.adapter.deregisterEventHandler("touchend", i); 8853 } 8854 this.adapter.registerBodyEventHandler(n, this.moveListener), this.adapter.registerBodyEventHandler("mouseup", i), this.adapter.registerBodyEventHandler("touchend", i), this.handleDown(t); 8855 }), 8856 (y.prototype.handlePointerdown = function (t) { 8857 this.adapter.setPointerCapture(t.pointerId), this.adapter.registerEventHandler("pointermove", this.moveListener), this.handleDown(t); 8858 }), 8859 (y.prototype.handleInputChange = function (t) { 8860 var e = Number(this.adapter.getInputValue(t)); 8861 t === p.Thumb.START ? this.setValueStart(e) : this.setValue(e), 8862 this.adapter.emitChangeEvent(t === p.Thumb.START ? this.valueStart : this.value, t), 8863 this.adapter.emitInputEvent(t === p.Thumb.START ? this.valueStart : this.value, t); 8864 }), 8865 (y.prototype.handleInputFocus = function (t) { 8866 if ((this.adapter.addThumbClass(c.cssClasses.THUMB_FOCUSED, t), this.isDiscrete && (this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, t), this.isRange))) { 8867 var e = t === p.Thumb.START ? p.Thumb.END : p.Thumb.START; 8868 this.adapter.addThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, e); 8869 } 8870 }), 8871 (y.prototype.handleInputBlur = function (t) { 8872 if ((this.adapter.removeThumbClass(c.cssClasses.THUMB_FOCUSED, t), this.isDiscrete && (this.adapter.removeThumbClass(c.cssClasses.THUMB_WITH_INDICATOR, t), this.isRange))) { 8873 var e = t === p.Thumb.START ? p.Thumb.END : p.Thumb.START; 8874 this.adapter.removeThumbClass(c.cssClasse
8874s.THUMB_WITH_INDICATOR, e); 8875 } 8876 }), 8877 (y.prototype.handleDragStart = function (t, e, n) { 8878 this.adapter.emitDragStartEvent(e, n), this.adapter.focusInput(n), t.preventDefault(); 8879 }), 8880 (y.prototype.getThumbFromDownEvent = function (t, e) { 8881 if (!this.isRange) return p.Thumb.END; 8882 var n = this.adapter.getThumbBoundingClientRect(p.Thumb.START), 8883 i = this.adapter.getThumbBoundingClientRect(p.Thumb.END), 8884 r = t >= n.left && t <= n.right, 8885 o = t >= i.left && t <= i.right; 8886 return r && o ? null : r ? p.Thumb.START : o ? p.Thumb.END : e < this.valueStart ? p.Thumb.START : e > this.value ? p.Thumb.END : e - this.valueStart <= this.value - e ? p.Thumb.START : p.Thumb.END; 8887 }), 8888 (y.prototype.getThumbFromMoveEvent = function (t) { 8889 if (null !== this.thumb) return this.thumb; 8890 if (null === this.downEventClientX) throw new Error("`downEventClientX` is null after move event."); 8891 return Math.abs(this.downEventClientX - t) < c.numbers.THUMB_UPDATE_MIN_PX 8892 ? this.thumb 8893 : t < this.downEventClientX 8894 ? this.adapter.isRTL() 8895 ? p.Thumb.END 8896 : p.Thumb.START 8897 : this.adapter.isRTL() 8898 ? p.Thumb.START 8899 : p.Thumb.END; 8900 }), 8901 (y.prototype.updateUI = function (t) { 8902 this.updateThumbAndInputAttributes(t), this.updateThumbAndTrackUI(t), this.updateValueIndicatorUI(t), this.updateTickMarksUI(); 8903 }), 8904 (y.prototype.updateThumbAndInputAttributes = function (t) { 8905 if (t) { 8906 var e = this.isRange && t === p.Thumb.START ? this.valueStart : this.value, 8907 n = String(e); 8908 this.adapter.setInputAttribute(c.attributes.INPUT_VALUE, n, t), 8909 this.isRange && t === p.Thumb.START 8910 ? this.adapter.setInputAttribute(c.attributes.INPUT_MIN, n, p.Thumb.END) 8911 : this.isRange && t === p.Thumb.END && this.adapter.setInputAttribute(c.attributes.INPUT_MAX, n, p.Thumb.START), 8912 this.adapter.getInputValue(t) !== n && this.adapter.setInputValue(n, t); 8913 var i = this.adapter.getValueToAriaValueTextFn(); 8914 i && this.adapter.setInputAttribute(c.attributes.ARIA_VALUETEXT, i(e), t); 8915 } 8916 }), 8917 (y.prototype.updateValueIndicatorUI = function (t) { 8918 if (this.isDiscrete) { 8919 var e = this.isRange && t === p.Thumb.START ? this.valueStart : this.value; 8920 this.adapter.setValueIndicatorText(e, t === p.Thumb.START ? p.Thumb.START : p.Thumb.END), !t && this.isRange && this.adapter.setValueIndicatorText(this.valueStart, p.Thumb.START); 8921 } 8922 }), 8923 (y.prototype.updateTickMarksUI = function () { 8924 if (this.isDiscrete && this.hasTickMarks) { 8925 var t = (this.valueStart - this.min) / this.step, 8926 e = (this.value - this.valueStart) / this.step + 1, 8927 n = (this.max - this.value) / this.step, 8928 i = Array.from({ length: t }).fill(p.TickMark.INACTIVE), 8929 r = Array.from({ length: e }).fill(p.TickMark.ACTIVE), 8930 o = Array.from({ length: n }).fill(p.TickMark.INACTIVE); 8931 this.adapter.updateTickMarks(i.concat(r).concat(o)); 8932 } 8933 }),
8934 (y.prototype.mapClientXOnSliderScale = function (t) { 8935 var e = (t - this.rect.left) / this.rect.width; 8936 this.adapter.isRTL() && (e = 1 - e); 8937 var n = this.min + e * (this.max - this.min); 8938 return n === this.max || n === this.min ? n : Number(this.quantize(n).toFixed(this.numDecimalPlaces)); 8939 }), 8940 (y.prototype.quantize = function (t) { 8941 var e = Math.round((t - this.min) / this.step); 8942 return this.min + e * this.step; 8943 }), 8944 (y.prototype.updateValue = function (t, e, n) { 8945 var i = (void 0 === n ? {} : n).emitInputEvent; 8946 if (((t = this.clampValue(t, e)), this.isRange && e === p.Thumb.START)) { 8947 if (this.valueStart === t) return; 8948 this.valueStart = t; 8949 } else { 8950 if (this.value === t) return; 8951 this.value = t; 8952 } 8953 this.updateUI(e), i && this.adapter.emitInputEvent(e === p.Thumb.START ? this.valueStart : this.value, e); 8954 }), 8955 (y.prototype.clampValue = function (t, e) { 8956 return (t = Math.min(Math.max(t, this.min), this.max)), this.isRange && e === p.Thumb.START && t > this.value ? this.value : this.isRange && e === p.Thumb.END && t < this.valueStart ? this.valueStart : t; 8957 }), 8958 (y.prototype.updateThumbAndTrackUI = function (n) { 8959 var i = this, 8960 t = this.max, 8961 e = this.min, 8962 r = (this.value - this.valueStart) / (t - e), 8963 o = r * this.rect.width, 8964 s = this.adapter.isRTL(), 8965 a = h ? d.getCorrectPropertyName(window, "transform") : "transform"; 8966 if (this.isRange) { 8967 var c = this.adapter.isRTL() ? ((t - this.value) / (t - e)) * this.rect.width : ((this.valueStart - e) / (t - e)) * this.rect.width, 8968 u = c + o; 8969 this.animFrame.request(l.SLIDER_UPDATE, function () { 8970 (!s && n === p.Thumb.START) || (s && n !== p.Thumb.START) 8971 ? (i.adapter.setTrackActiveStyleProperty("transform-origin", "right"), i.adapter.setTrackActiveStyleProperty("left", "unset"), i.adapter.setTrackActiveStyleProperty("right", i.rect.width - u + "px")) 8972 : (i.adapter.setTrackActiveStyleProperty("transform-origin", "left"), i.adapter.setTrackActiveStyleProperty("right", "unset"), i.adapter.setTrackActiveStyleProperty("left", c + "px")), 8973 i.adapter.setTrackActiveStyleProperty(a, "scaleX(" + r + ")"); 8974 var t = s ? u : c, 8975 e = i.adapter.isRTL() ? c : u; 8976 (n !== p.Thumb.START && n && i.initialStylesRemoved) || i.adapter.setThumbStyleProperty(a, "translateX(" + t + "px)", p.Thumb.START), 8977 (n !== p.Thumb.END && n && i.initialStylesRemoved) || i.adapter.setThumbStyleProperty(a, "translateX(" + e + "px)", p.Thumb.END), 8978 i.removeInitialStyles(s), 8979 i.updateOverlappingThumbsUI(t, e, n); 8980 }); 8981 } else 8982 this.animFrame.request(l.SLIDER_UPDATE, function () { 8983 var t = s ? i.rect.width - o : o; 8984 i.adapter.setThumbStyleProperty(a, "translateX("
8984+ t + "px)", p.Thumb.END), i.adapter.setTrackActiveStyleProperty(a, "scaleX(" + r + ")"), i.removeInitialStyles(s); 8985 }); 8986 }), 8987 (y.prototype.removeInitialStyles = function (t) { 8988 if (!this.initialStylesRemoved) { 8989 var e = t ? "right" : "left"; 8990 this.adapter.removeThumbStyleProperty(e, p.Thumb.END), this.isRange && this.adapter.removeThumbStyleProperty(e, p.Thumb.START), (this.initialStylesRemoved = !0), this.resetTrackAndThumbAnimation(); 8991 } 8992 }), 8993 (y.prototype.resetTrackAndThumbAnimation = function () { 8994 var t = this; 8995 if (this.isDiscrete) { 8996 var e = h ? d.getCorrectPropertyName(window, "transition") : "transition", 8997 n = "all 0s ease 0s"; 8998 this.adapter.setThumbStyleProperty(e, n, p.Thumb.END), 8999 this.isRange && this.adapter.setThumbStyleProperty(e, n, p.Thumb.START), 9000 this.adapter.setTrackActiveStyleProperty(e, n), 9001 requestAnimationFrame(function () { 9002 t.adapter.removeThumbStyleProperty(e, p.Thumb.END), t.adapter.removeTrackActiveStyleProperty(e), t.isRange && t.adapter.removeThumbStyleProperty(e, p.Thumb.START); 9003 }); 9004 } 9005 }), 9006 (y.prototype.updateOverlappingThumbsUI = function (t, e, n) { 9007 var i = !1; 9008 if (this.adapter.isRTL()) i = t - this.startThumbKnobWidth / 2 <= e + this.endThumbKnobWidth / 2; 9009 else { 9010 var r = t + this.startThumbKnobWidth / 2; 9011 i = e - this.endThumbKnobWidth / 2 <= r; 9012 } 9013 i 9014 ? (this.adapter.addThumbClass(c.cssClasses.THUMB_TOP, n || p.Thumb.END), this.adapter.removeThumbClass(c.cssClasses.THUMB_TOP, n === p.Thumb.START ? p.Thumb.END : p.Thumb.START)) 9015 : (this.adapter.removeThumbClass(c.cssClasses.THUMB_TOP, p.Thumb.START), this.adapter.removeThumbClass(c.cssClasses.THUMB_TOP, p.Thumb.END)); 9016 }), 9017 (y.prototype.convertAttributeValueToNumber = function (t, e) { 9018 if (null === t) throw new Error("MDCSliderFoundation: `" + e + "` must be non-null."); 9019 var n = Number(t); 9020 if (isNaN(n)) throw new Error("MDCSliderFoundation: `" + e + "` value is `" + t + "`, but must be a number."); 9021 return n; 9022 }), 9023 (y.prototype.validateProperties = function (t) { 9024 var e = t.min, 9025 n = t.max, 9026 i = t.value, 9027 r = t.valueStart, 9028 o = t.step; 9029 if (n <= e) throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: " + e + ", max: " + n + "]"); 9030 if (o <= 0) throw new Error("MDCSliderFoundation: step must be a positive number. Current step: " + this.step); 9031 if (this.isRange) { 9032 if (i < e || n < i || r < e || n < r) throw new Error("MDCSliderFoundation: values must be in [min, max] range. Current values: [start value: " + r + ", end value: " + i + "]"); 9033 if (i < r) throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: " + r + ", end value: " + i + "]"); 9034 var s = (i - e) / o; 9035 if (((r - e) / o) % 1 != 0 || s % 1 != 0) throw new Error("MDCSliderFoundation: Slider values must be valid based on the step value. Current values: [start value: " + r + ", end value: " + i + "]"); 9036 } else { 9037 if (i < e || n < i) throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current value: " + i); 9038 if ((s = (i - e) / o) % 1 != 0) throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value. Current value: " + i); 9039 } 9040 }), 9041 (y.prototype.registerEventHandlers = function () { 9042 this.adapter.registerWindowEventHandler("resize", this.resizeListener), 9043 y.SUPPORTS_POINTER_EVENTS 9044 ? (this.adapter.registerEventHandler("pointerdown", this.pointerdownListener), this.adapter.registerEventHandler("pointerup", this.pointerupListener)) 9045 : (this.adapter.registerEventHandler("mousedown", this.mousedownOrTouchstartListener), this.adapter.registerEventHandler("touchstart", this.mousedownOrTouchstartListener)), 9046 this.isRange && 9047 (this.adapter.registerThumbEventHandler(p.Thumb.START, "mouseenter", this.thumbMouseenterListener), 9048 this.adapter.registerThumbEventHandler(p.Thumb.START, "mouseleave", this.thumbMouseleaveListener), 9049 this.adapter.registerInputEventHandler(p.Thumb.START, "change", this.inputStartChangeListener), 9050 this.adapter.registerInputEventHandler(p.Thumb.START, "focu
9050s", this.inputStartFocusListener), 9051 this.adapter.registerInputEventHandler(p.Thumb.START, "blur", this.inputStartBlurListener)), 9052 this.adapter.registerThumbEventHandler(p.Thumb.END, "mouseenter", this.thumbMouseenterListener), 9053 this.adapter.registerThumbEventHandler(p.Thumb.END, "mouseleave", this.thumbMouseleaveListener), 9054 this.adapter.registerInputEventHandler(p.Thumb.END, "change", this.inputEndChangeListener), 9055 this.adapter.registerInputEventHandler(p.Thumb.END, "focus", this.inputEndFocusListener), 9056 this.adapter.registerInputEventHandler(p.Thumb.END, "blur", this.inputEndBlurListener); 9057 }), 9058 (y.prototype.deregisterEventHandlers = function () { 9059 this.adapter.deregisterWindowEventHandler("resize", this.resizeListener), 9060 y.SUPPORTS_POINTER_EVENTS 9061 ? (this.adapter.deregisterEventHandler("pointerdown", this.pointerdownListener), this.adapter.deregisterEventHandler("pointerup", this.pointerupListener)) 9062 : (this.adapter.deregisterEventHandler("mousedown", this.mousedownOrTouchstartListener), this.adapter.deregisterEventHandler("touchstart", this.mousedownOrTouchstartListener)), 9063 this.isRange && 9064 (this.adapter.deregisterThumbEventHandler(p.Thumb.START, "mouseenter", this.thumbMouseenterListener), 9065 this.adapter.deregisterThumbEventHandler(p.Thumb.START, "mouseleave", this.thumbMouseleaveListener), 9066 this.adapter.deregisterInputEventHandler(p.Thumb.START, "change", this.inputStartChangeListener), 9067 this.adapter.deregisterInputEventHandler(p.Thumb.START, "focus", this.inputStartFocusListener), 9068 this.adapter.deregisterInputEventHandler(p.Thumb.START, "blur", this.inputStartBlurListener)), 9069 this.adapter.deregisterThumbEventHandler(p.Thumb.END, "mouseenter", this.thumbMouseenterListener), 9070 this.adapter.deregisterThumbEventHandler(p.Thumb.END, "mouseleave", this.thumbMouseleaveListener), 9071 this.adapter.deregisterInputEventHandler(p.Thumb.END, "change", this.inputEndChangeListener), 9072 this.adapter.deregisterInputEventHandler(p.Thumb.END, "focus", this.inputEndFocusListener), 9073 this.adapter.deregisterInputEventHandler(p.Thumb.END, "blur", this.inputEndBlurListener); 9074 }), 9075 (y.prototype.handlePointerup = function () { 9076 this.handleUp(), this.adapter.deregisterEventHandler("pointermove", this.moveListener); 9077 }), 9078 (y.SUPPORTS_POINTER_EVENTS = 9079 h && 9080 Boolean(window.PointerEvent) && 9081 !(["iPad Simulator", "iPhone Simulator", "iPod Simulator", "iPad", "iPhone", "iPod"].includes(navigator.platform) || (navigator.userAgent.includes("Mac") && "ontouchend" in document))), 9082 y); 9083 function y(t) { 9084 var e = u.call(this, o(o({}, y.defaultAdapter), t)) || this; 9085 return ( 9086 (e.initialStylesRemoved = !1), 9087 (e.isDisabled = !1), 9088 (e.isDiscrete = !1), 9089 (e.step = c.numbers.STEP_SIZE), 9090 (e.hasTickMarks = !1), 9091 (e.isRange = !1), 9092 (e.thumb = null), 9093 (e.downEventClientX = null), 9094 (e.startThumbKnobWidth = 0), 9095 (e.endThumbKnobWidth = 0), 9096 (e.animFrame = new s.AnimationFrame()), 9097 e 9098 ); 9099 } 9100 function C(t) { 9101 var e = /(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t)); 9102 if (!e) return 0; 9103 var n = e[1] || "", 9104 i = e[2] || 0; 9105 return Math.max(0, ("0" === n ? 0 : n.length) - Number(i)); 9106 } 9107 e.MDCSliderFoundation = f; 9108 }, 9109 function (t, e, n) { 9110 "use strict"; 9111 Object.defineProperty(e, "__esModule", { value: !0 }), (e.announce = void 0); 9112 var i = n(16), 9113 r = i.numbers.ARIA_LIVE_DELAY_MS, 9114 o = i.strings.ARIA_LIVE_LABEL_TEXT_ATTR; 9115 e.announce = function (t, e) { 9116 void 0 === e && (e = t); 9117 var n = t.getAttribute("aria-live"), 9118 i = e.textContent.trim(); 9119 i && 9120 n && 9121 (t.setAttribute("aria-live", "off"), 9122 (e.textContent = ""), 9123 (e.innerHTML = '<span style="display: inline-block; width: 0; height: 1px;"> </span>'), 9124 e.setAttribute(o, i), 9125 setTimeout(function () { 9126 t.setAttribute("aria-live", n), e.removeAttribute(o), (e.textContent = i); 9127 }, r)); 9128 }; 9129 }, 9130 function (t, e, n) { 9131 "use strict"; 9132 var i, 9133 r = 9134 (this && this.__extends) || 9135 ((i = function (t, e) { 9136 return (i = 9137 Object.setPrototypeOf || 9138 ({ __proto__: [] } instanceof Array && 9139 function (t, e) { 9140 t.__proto__ = e; 9141 }) || 9142 function (t, e) { 9143 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9144 })(t, e); 9145 }), 9146 function (t, e) { 9147 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9148 function n() { 9149 this.constructor = t; 9150 } 9151 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9152 }), 9153 o = 9154 (this && this.__assign) || 9155 function () { 9156 return (o = 9157 Object.assign || 9158 function (t) { 9159 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 9160 return t; 9161 }).apply(this, arguments); 9162 }; 9163 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSnackbarFoundation = void 0); 9164 var s, 9165 a = n(0), 9166 c = n(16),
9167 u = c.cssClasses.OPENING, 9168 l = c.cssClasses.OPEN, 9169 d = c.cssClasses.CLOSING, 9170 p = c.strings.REASON_ACTION, 9171 h = c.strings.REASON_DISMISS, 9172 f = 9173 ((s = a.MDCFoundation), 9174 r(y, s), 9175 Object.defineProperty(y, "cssClasses", { 9176 get: function () { 9177 return c.cssClasses; 9178 }, 9179 enumerable: !1, 9180 configurable: !0, 9181 }), 9182 Object.defineProperty(y, "strings", { 9183 get: function () { 9184 return c.strings; 9185 }, 9186 enumerable: !1, 9187 configurable: !0, 9188 }), 9189 Object.defineProperty(y, "numbers", { 9190 get: function () { 9191 return c.numbers; 9192 }, 9193 enumerable: !1, 9194 configurable: !0, 9195 }), 9196 Object.defineProperty(y, "defaultAdapter", { 9197 get: function () { 9198 return { 9199 addClass: function () {}, 9200 announce: function () {}, 9201 notifyClosed: function () {}, 9202 notifyClosing: function () {}, 9203 notifyOpened: function () {}, 9204 notifyOpening: function () {}, 9205 removeClass: function () {}, 9206 }; 9207 }, 9208 enumerable: !1, 9209 configurable: !0, 9210 }), 9211 (y.prototype.destroy = function () { 9212 this.clearAutoDismissTimer(), 9213 cancelAnimationFrame(this.animationFrame), 9214 (this.animationFrame = 0), 9215 clearTimeout(this.animationTimer), 9216 (this.animationTimer = 0), 9217 this.adapter.removeClass(u), 9218 this.adapter.removeClass(l), 9219 this.adapter.removeClass(d); 9220 }), 9221 (y.prototype.open = function () { 9222 var e = this; 9223 this.clearAutoDismissTimer(), 9224 (this.opened = !0), 9225 this.adapter.notifyOpening(), 9226 this.adapter.removeClass(d), 9227 this.adapter.addClass(u), 9228 this.adapter.announce(), 9229 this.runNextAnimationFrame(function () { 9230 e.adapter.addClass(l), 9231 (e.animationTimer = setTimeout(function () { 9232 var t = e.getTimeoutMs(); 9233 e.handleAnimationTimerEnd(), 9234 e.adapter.notifyOpened(), 9235 t !== c.numbers.INDETERMINATE && 9236 (e.autoDismissTimer = setTimeout(function () { 9237 e.close(h); 9238 }, t)); 9239 }, c.numbers.SNACKBAR_ANIMATION_OPEN_TIME_MS)); 9240 }); 9241 }), 9242 (y.prototype.close = function (t) { 9243 var e = this; 9244 void 0 === t && (t = ""), 9245 this.opened && 9246 (cancelAnimationFrame(this.animationFrame), 9247 (this.animationFrame = 0), 9248 this.clearAutoDismissTimer(), 9249 (this.opened = !1), 9250 this.adapter.notifyClosing(t), 9251 this.adapter.addClass(c.cssClasse
9251s.CLOSING), 9252 this.adapter.removeClass(c.cssClasses.OPEN), 9253 this.adapter.removeClass(c.cssClasses.OPENING), 9254 clearTimeout(this.animationTimer), 9255 (this.animationTimer = setTimeout(function () { 9256 e.handleAnimationTimerEnd(), e.adapter.notifyClosed(t); 9257 }, c.numbers.SNACKBAR_ANIMATION_CLOSE_TIME_MS))); 9258 }), 9259 (y.prototype.isOpen = function () { 9260 return this.opened; 9261 }), 9262 (y.prototype.getTimeoutMs = function () { 9263 return this.autoDismissTimeoutMs; 9264 }), 9265 (y.prototype.setTimeoutMs = function (t) { 9266 var e = c.numbers.MIN_AUTO_DISMISS_TIMEOUT_MS, 9267 n = c.numbers.MAX_AUTO_DISMISS_TIMEOUT_MS, 9268 i = c.numbers.INDETERMINATE; 9269 if (!(t === c.numbers.INDETERMINATE || (t <= n && e <= t))) throw new Error("\n timeoutMs must be an integer in the range " + e + "–" + n + "\n (or " + i + " to disable), but got '" + t + "'"); 9270 this.autoDismissTimeoutMs = t; 9271 }), 9272 (y.prototype.getCloseOnEscape = function () { 9273 return this.closeOnEscape; 9274 }), 9275 (y.prototype.setCloseOnEscape = function (t) { 9276 this.closeOnEscape = t; 9277 }), 9278 (y.prototype.handleKeyDown = function (t) { 9279 ("Escape" !== t.key && 27 !== t.keyCode) || !this.getCloseOnEscape() || this.close(h); 9280 }), 9281 (y.prototype.handleActionButtonClick = function (t) { 9282 this.close(p); 9283 }), 9284 (y.prototype.handleActionIconClick = function (t) { 9285 this.close(h); 9286 }), 9287 (y.prototype.clearAutoDismissTimer = function () { 9288 clearTimeout(this.autoDismissTimer), (this.autoDismissTimer = 0); 9289 }), 9290 (y.prototype.handleAnimationTimerEnd = function () { 9291 (this.animationTimer = 0), this.adapter.removeClass(c.cssClasses.OPENING), this.adapter.removeClass(c.cssClasses.CLOSING); 9292 }), 9293 (y.prototype.runNextAnimationFrame = function (t) { 9294 var e = this; 9295 cancelAnimationFrame(this.animationFrame), 9296 (this.animationFrame = requestAnimationFrame(function () { 9297 (e.animationFrame = 0), clearTimeout(e.animationTimer), (e.animationTimer = setTimeout(t, 0)); 9298 })); 9299 }), 9300 y); 9301 function y(t) { 9302 var e = s.call(this, o(o({}, y.defaultAdapter), t)) || this; 9303 return (e.opened = !1), (e.animationFrame = 0), (e.animationTimer = 0), (e.autoDismissTimer = 0), (e.autoDismissTimeoutMs = c.numbers.DEFAULT_AUTO_DISMISS_TIMEOUT_MS), (e.closeOnEscape = !0), e; 9304 } 9305 (e.MDCSnackbarFoundation = f), (e.default = f); 9306 }, 9307 function (t, e, n) { 9308 "use strict"; 9309 var i, 9310 r = 9311 (this && this.__extends) || 9312 ((i = function (t, e) { 9313 return (i = 9314 Object.setPrototypeOf || 9315 ({ __proto__: [] } instanceof Array && 9316 function (t, e) { 9317 t.__proto__ = e; 9318 }) || 9319 function (t, e) { 9320 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9321 })(t, e); 9322 }), 9323 function (t, e) { 9324 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9325 function n() { 9326 this.constructor = t; 9327 } 9328 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9329 }), 9330 o = 9331 (this && this.__assign) || 9332 function () { 9333 return (o = 9334 Object.assign || 9335 function (t) { 9336 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 9337 return t; 9338 }).apply(this, arguments); 9339 }; 9340 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSwitchFoundation = void 0); 9341 var s, 9342 a = n(0), 9343 c = n(96), 9344 u = 9345 ((s = a.MDCFoundation), 9346 r(l, s), 9347 Object.defineProperty(l, "strings", { 9348 get: function () { 9349 return c.strings; 9350 }, 9351 enumerable: !1, 9352 configurable: !0, 9353 }),
9354 Object.defineProperty(l, "cssClasses", { 9355 get: function () { 9356 return c.cssClasses; 9357 }, 9358 enumerable: !1, 9359 configurable: !0, 9360 }), 9361 Object.defineProperty(l, "defaultAdapter", { 9362 get: function () { 9363 return { addClass: function () {}, removeClass: function () {}, setNativeControlChecked: function () {}, setNativeControlDisabled: function () {}, setNativeControlAttr: function () {} }; 9364 }, 9365 enumerable: !1, 9366 configurable: !0, 9367 }), 9368 (l.prototype.setChecked = function (t) { 9369 this.adapter.setNativeControlChecked(t), this.updateAriaChecked(t), this.updateCheckedStyling(t); 9370 }), 9371 (l.prototype.setDisabled = function (t) { 9372 this.adapter.setNativeControlDisabled(t), t ? this.adapter.addClass(c.cssClasses.DISABLED) : this.adapter.removeClass(c.cssClasses.DISABLED); 9373 }), 9374 (l.prototype.handleChange = function (t) { 9375 var e = t.target; 9376 this.updateAriaChecked(e.checked), this.updateCheckedStyling(e.checked); 9377 }), 9378 (l.prototype.updateCheckedStyling = function (t) { 9379 t ? this.adapter.addClass(c.cssClasses.CHECKED) : this.adapter.removeClass(c.cssClasses.CHECKED); 9380 }), 9381 (l.prototype.updateAriaChecked = function (t) { 9382 this.adapter.setNativeControlAttr(c.strings.ARIA_CHECKED_ATTR, "" + !!t); 9383 }), 9384 l); 9385 function l(t) { 9386 return s.call(this, o(o({}, l.defaultAdapter), t)) || this; 9387 } 9388 (e.MDCSwitchFoundation = u), (e.default = u); 9389 }, 9390 function (t, e, n) { 9391 "use strict"; 9392 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.cssClasses = void 0); 9393 e.cssClasses = { CHECKED: "mdc-switch--checked", DISABLED: "mdc-switch--disabled" }; 9394 e.strings = { ARIA_CHECKED_ATTR: "aria-checked", NATIVE_CONTROL_SELECTOR: ".mdc-switch__native-control", RIPPLE_SURFACE_SELECTOR: ".mdc-switch__thumb-underlay" }; 9395 }, 9396 function (t, e, n) { 9397 "use strict"; 9398 var i, 9399 r = 9400 (this && this.__extends) || 9401 ((i = function (t, e) { 9402 return (i = 9403 Object.setPrototypeOf || 9404 ({ __proto__: [] } instanceof Array && 9405 function (t, e) { 9406 t.__proto__ = e; 9407 }) || 9408 function (t, e) { 9409 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9410 })(t, e); 9411 }), 9412 function (t, e) { 9413 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9414 function n() { 9415 this.constructor = t; 9416 } 9417 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9418 }); 9419 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSwitchRenderFoundation = e.MDCSwitchFoundation = void 0); 9420 var o, 9421 s = n(216), 9422 a = n(35), 9423 c = 9424 ((o = s.MDCObserverFoundation), 9425 r(u, o), 9426 (u.prototype.init = function () { 9427 this.observe(this.adapter.state, { disabled: this.stopProcessingIfDisabled, processing: this.stopProcessingIfDisabled }); 9428 }), 9429 (u.prototype.handleClick = function () { 9430 this.adapter.state.disabled || (this.adapter.state.selected = !this.adapter.state.selected); 9431 }), 9432 (u.prototype.stopProcessingIfDisabled = function () { 9433 this.adapter.state.disabled && (this.adapter.state.processing = !1); 9434 }), 9435 u); 9436 function u(t) { 9437 var e = o.call(this, t) || this; 9438 return (e.handleClick = e.handleClick.bind(e)), e; 9439 } 9440 e.MDCSwitchFoundation = c; 9441 var l, 9442 d = 9443 (r(p, (l = c)), 9444 (p.prototype.init = function () { 9445 l.prototype.init.call(this), this.observe(this.adapter.state, { disabled: this.onDisabledChange, processing: this.onProcessingChange, selected: this.onSelectedChange }); 9446 }), 9447 (p.prototype.initFromDOM = function () { 9448 this.setObserversEnabled(this.adapter.state, !1), 9449 (this.adapter.state.selected = this.adapter.hasClass(a.CssClasse
9449s.SELECTED)), 9450 this.onSelectedChange(), 9451 (this.adapter.state.disabled = this.adapter.isDisabled()), 9452 (this.adapter.state.processing = this.adapter.hasClass(a.CssClasses.PROCESSING)), 9453 this.setObserversEnabled(this.adapter.state, !0), 9454 this.stopProcessingIfDisabled(); 9455 }), 9456 (p.prototype.onDisabledChange = function () { 9457 this.adapter.setDisabled(this.adapter.state.disabled); 9458 }), 9459 (p.prototype.onProcessingChange = function () { 9460 this.toggleClass(this.adapter.state.processing, a.CssClasses.PROCESSING); 9461 }), 9462 (p.prototype.onSelectedChange = function () { 9463 this.adapter.setAriaChecked(String(this.adapter.state.selected)), this.toggleClass(this.adapter.state.selected, a.CssClasse
9463s.SELECTED), this.toggleClass(!this.adapter.state.selected, a.CssClasses.UNSELECTED); 9464 }), 9465 (p.prototype.toggleClass = function (t, e) { 9466 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 9467 }), 9468 p); 9469 function p() { 9470 return (null !== l && l.apply(this, arguments)) || this; 9471 } 9472 e.MDCSwitchRenderFoundation = d; 9473 }, 9474 function (t, e, n) { 9475 "use strict"; 9476 var i, 9477 r = 9478 (this && this.__extends) || 9479 ((i = function (t, e) { 9480 return (i = 9481 Object.setPrototypeOf || 9482 ({ __proto__: [] } instanceof Array && 9483 function (t, e) { 9484 t.__proto__ = e; 9485 }) || 9486 function (t, e) { 9487 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9488 })(t, e); 9489 }), 9490 function (t, e) { 9491 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9492 function n() { 9493 this.constructor = t; 9494 } 9495 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9496 }), 9497 o = 9498 (this && this.__createBinding) || 9499 (Object.create 9500 ? function (t, e, n, i) { 9501 void 0 === i && (i = n), 9502 Object.defineProperty(t, i, { 9503 enumerable: !0, 9504 get: function () { 9505 return e[n]; 9506 }, 9507 }); 9508 } 9509 : function (t, e, n, i) { 9510 void 0 === i && (i = n), (t[i] = e[n]); 9511 }), 9512 s = 9513 (this && this.__setModuleDefault) || 9514 (Object.create 9515 ? function (t, e) { 9516 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 9517 } 9518 : function (t, e) { 9519 t.default = e; 9520 }), 9521 a = 9522 (this && this.__importStar) || 9523 function (t) { 9524 if (t && t.__esModule) return t; 9525 var e = {}; 9526 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && o(e, t, n); 9527 return s(e, t), e; 9528 }; 9529 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScroller = void 0); 9530 var c, 9531 u = n(1), 9532 l = n(5), 9533 d = n(3), 9534 p = n(99), 9535 h = a(n(100)), 9536 f = 9537 ((c = u.MDCComponent), 9538 r(y, c), 9539 (y.attachTo = function (t) { 9540 return new y(t); 9541 }), 9542 (y.prototype.initialize = function () { 9543 (this.area = this.root.querySelector(p.MDCTabScrollerFoundation.strings.AREA_SELECTOR)), (this.content = this.root.querySelector(p.MDCTabScrollerFoundation.strings.CONTENT_SELECTOR)); 9544 }), 9545 (y.prototype.initialSyncWithDOM = function () { 9546 var e = this; 9547 (this.handleInteraction = function () { 9548 e.foundation.handleInteraction(); 9549 }), 9550 (this.handleTransitionEnd = function (t) { 9551 e.foundation.handleTransitionEnd(t); 9552 }), 9553 this.area.addEventListener("wheel", this.handleInteraction, l.applyPassive()), 9554 this.area.addEventListener("touchstart", this.handleInteraction, l.applyPassive()), 9555 this.area.addEventListener("pointerdown", this.handleInteraction, l.applyPassive()), 9556 this.area.addEventListener("mousedown", this.handleInteraction, l.applyPassive()), 9557 this.area.addEventListener("keydown", this.handleInteraction, l.applyPassive()), 9558 this.content.addEventListener("transitionend", this.handleTransitionEnd); 9559 }), 9560 (y.prototype.destroy = function () { 9561 c.prototype.destroy.call(this), 9562 this.area.removeEventListener("wheel", this.handleInteraction, l.applyPassive()), 9563 this.area.removeEventListener("touchstart", this.handleInteraction, l.applyPassive()), 9564 this.area.removeEventListener("pointerdown", this.handleInteraction, l.applyPassive()), 9565 this.area.removeEventListener("mousedown", this.handleInteraction, l.applyPassive()), 9566 this.area.removeEventListener("keydown", this.handleInteraction, l.applyPassive()), 9567 this.content.removeEventListener("transitionend", this.handleTransitionEnd); 9568 }), 9569 (y.prototype.getDefaultFoundation = function () { 9570 var n = this, 9571 t = { 9572 eventTargetMatchesSelector: function (t, e) { 9573 return d.matches(t, e); 9574 }, 9575 addClass: function (t) { 9576 n.root.classList.add(t); 9577 }, 9578 removeClass: function (t) { 9579 n.root.classList.remove(t); 9580 }, 9581 addScrollAreaClass: function (t) { 9582 n.area.classList.add(t); 9583 }, 9584 setScrollAreaStyleProperty: function (t, e) { 9585 n.area.style.setProperty(t, e); 9586 },
9587 setScrollContentStyleProperty: function (t, e) { 9588 n.content.style.setProperty(t, e); 9589 }, 9590 getScrollContentStyleValue: function (t) { 9591 return window.getComputedStyle(n.content).getPropertyValue(t); 9592 }, 9593 setScrollAreaScrollLeft: function (t) { 9594 return (n.area.scrollLeft = t); 9595 }, 9596 getScrollAreaScrollLeft: function () { 9597 return n.area.scrollLeft; 9598 }, 9599 getScrollContentOffsetWidth: function () { 9600 return n.content.offsetWidth; 9601 }, 9602 getScrollAreaOffsetWidth: function () { 9603 return n.area.offsetWidth; 9604 }, 9605 computeScrollAreaClientRect: function () { 9606 return n.area.getBoundingClientRect(); 9607 }, 9608 computeScrollContentClientRect: function () { 9609 return n.content.getBoundingClientRect(); 9610 }, 9611 computeHorizontalScrollbarHeight: function () { 9612 return h.computeHorizontalScrollbarHeight(document); 9613 }, 9614 }; 9615 return new p.MDCTabScrollerFoundation(t); 9616 }), 9617 (y.prototype.getScrollPosition = function () { 9618 return this.foundation.getScrollPosition(); 9619 }), 9620 (y.prototype.getScrollContentWidth = function () { 9621 return this.content.offsetWidth; 9622 }), 9623 (y.prototype.incrementScroll = function (t) { 9624 this.foundation.incrementScroll(t); 9625 }), 9626 (y.prototype.scrollTo = function (t) { 9627 this.foundation.scrollTo(t); 9628 }), 9629 y); 9630 function y() { 9631 return (null !== c && c.apply(this, arguments)) || this; 9632 } 9633 e.MDCTabScroller = f; 9634 }, 9635 function (t, e, n) { 9636 "use strict"; 9637 var i, 9638 r = 9639 (this && this.__extends) || 9640 ((i = function (t, e) { 9641 return (i = 9642 Object.setPrototypeOf || 9643 ({ __proto__: [] } instanceof Array && 9644 function (t, e) { 9645 t.__proto__ = e; 9646 }) || 9647 function (t, e) { 9648 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9649 })(t, e); 9650 }), 9651 function (t, e) { 9652 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9653 function n() { 9654 this.constructor = t; 9655 } 9656 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9657 }), 9658 o = 9659 (this && this.__assign) || 9660 function () { 9661 return (o = 9662 Object.assign || 9663 function (t) { 9664 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 9665 return t; 9666 }).apply(this, arguments); 9667 }, 9668 s = 9669 (this && this.__read) || 9670 function (t, e) { 9671 var n = "function" == typeof Symbol && t[Symbol.iterator]; 9672 if (!n) return t; 9673 var i, 9674 r, 9675 o = n.call(t), 9676 s = []; 9677 try { 9678 for (; (void 0 === e || 0 < e--) && !(i = o.next()).done; ) s.push(i.value); 9679 } catch (t) { 9680 r = { error: t }; 9681 } finally { 9682 try { 9683 i && !i.done && (n = o.return) && n.call(o); 9684 } finally { 9685 if (r) throw r.error; 9686 } 9687 } 9688 return s; 9689 }; 9690 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScrollerFoundation = void 0); 9691 var a, 9692 c = n(0), 9693 u = n(36), 9694 l = n(221), 9695 d = n(222), 9696 p = n(223), 9697 h = 9698 ((a = c.MDCFoundation), 9699 r(f, a),
9700 Object.defineProperty(f, "cssClasses", { 9701 get: function () { 9702 return u.cssClasses; 9703 }, 9704 enumerable: !1, 9705 configurable: !0, 9706 }), 9707 Object.defineProperty(f, "strings", { 9708 get: function () { 9709 return u.strings; 9710 }, 9711 enumerable: !1, 9712 configurable: !0, 9713 }), 9714 Object.defineProperty(f, "defaultAdapter", { 9715 get: function () { 9716 return { 9717 eventTargetMatchesSelector: function () { 9718 return !1; 9719 }, 9720 addClass: function () {}, 9721 removeClass: function () {}, 9722 addScrollAreaClass: function () {}, 9723 setScrollAreaStyleProperty: function () {},
9724 setScrollContentStyleProperty: function () {}, 9725 getScrollContentStyleValue: function () { 9726 return ""; 9727 }, 9728 setScrollAreaScrollLeft: function () {}, 9729 getScrollAreaScrollLeft: function () { 9730 return 0; 9731 }, 9732 getScrollContentOffsetWidth: function () { 9733 return 0; 9734 }, 9735 getScrollAreaOffsetWidth: function () { 9736 return 0; 9737 }, 9738 computeScrollAreaClientRect: function () { 9739 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 9740 }, 9741 computeScrollContentClientRect: function () { 9742 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 9743 }, 9744 computeHorizontalScrollbarHeight: function () { 9745 return 0; 9746 }, 9747 }; 9748 }, 9749 enumerable: !1, 9750 configurable: !0, 9751 }), 9752 (f.prototype.init = function () { 9753 var t = this.adapter.computeHorizontalScrollbarHeight(); 9754 this.adapter.setScrollAreaStyleProperty("margin-bottom", -t + "px"), this.adapter.addScrollAreaClass(f.cssClasses.SCROLL_AREA_SCROLL); 9755 }), 9756 (f.prototype.getScrollPosition = function () { 9757 if (this.isRTL()) return this.computeCurrentScrollPositionRTL(); 9758 var t = this.calculateCurrentTranslateX(); 9759 return this.adapter.getScrollAreaScrollLeft() - t; 9760 }), 9761 (f.prototype.handleInteraction = function () { 9762 this.isAnimating && this.stopScrollAnimation(); 9763 }), 9764 (f.prototype.handleTransitionEnd = function (t) { 9765 var e = t.target; 9766 this.isAnimating && this.adapter.eventTargetMatchesSelector(e, f.strings.CONTENT_SELECTOR) && ((this.isAnimating = !1), this.adapter.removeClass(f.cssClasses.ANIMATING)); 9767 }), 9768 (f.prototype.incrementScroll = function (t) { 9769 0 !== t && this.animate(this.getIncrementScrollOperation(t)); 9770 }), 9771 (f.prototype.incrementScrollImmediate = function (t) { 9772 if (0 !== t) { 9773 var e = this.getIncrementScrollOperation(t); 9774 0 !== e.scrollDelta && (this.stopScrollAnimation(), this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition)); 9775 } 9776 }), 9777 (f.prototype.scrollTo = function (t) { 9778 this.isRTL() ? this.scrollToImplRTL(t) : this.scrollToImpl(t); 9779 }), 9780 (f.prototype.getRTLScroller = function () { 9781 return this.rtlScrollerInstance || (this.rtlScrollerInstance = this.rtlScrollerFactory()), this.rtlScrollerInstance; 9782 }), 9783 (f.prototype.calculateCurrentTranslateX = function () { 9784 var t = this.adapter.getScrollContentStyleValue("transform"); 9785 if ("none" === t) return 0; 9786 var e = /\((.+?)\)/.exec(t); 9787 if (!e) return 0; 9788 var n = e[1],
9789 i = s(n.split(","), 6), 9790 r = (i[0], i[1], i[2], i[3], i[4]); 9791 return i[5], parseFloat(r); 9792 }), 9793 (f.prototype.clampScrollValue = function (t) { 9794 var e = this.calculateScrollEdges(); 9795 return Math.min(Math.max(e.left, t), e.right); 9796 }), 9797 (f.prototype.computeCurrentScrollPositionRTL = function () { 9798 var t = this.calculateCurrentTranslateX(); 9799 return this.getRTLScroller().getScrollPositionRTL(t); 9800 }), 9801 (f.prototype.calculateScrollEdges = function () { 9802 return { left: 0, right: this.adapter.getScrollContentOffsetWidth() - this.adapter.getScrollAreaOffsetWidth() }; 9803 }), 9804 (f.prototype.scrollToImpl = function (t) { 9805 var e = this.getScrollPosition(), 9806 n = this.clampScrollValue(t), 9807 i = n - e; 9808 this.animate({ finalScrollPosition: n, scrollDelta: i }); 9809 }), 9810 (f.prototype.scrollToImplRTL = function (t) { 9811 var e = this.getRTLScroller().scrollToRTL(t); 9812 this.animate(e); 9813 }), 9814 (f.prototype.getIncrementScrollOperation = function (t) { 9815 if (this.isRTL()) return this.getRTLScroller().incrementScrollRTL(t); 9816 var e = this.getScrollPosition(), 9817 n = t + e, 9818 i = this.clampScrollValue(n); 9819 return { finalScrollPosition: i, scrollDelta: i - e }; 9820 }), 9821 (f.prototype.animate = function (t) { 9822 var e = this; 9823 0 !== t.scrollDelta && 9824 (this.stopScrollAnimation(), 9825 this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition), 9826 this.adapter.setScrollContentStyleProperty("transform", "translateX(" + t.scrollDelta + "px)"), 9827 this.adapter.computeScrollAreaClientRect(), 9828 requestAnimationFrame(function () { 9829 e.adapter.addClass(f.cssClasses.ANIMATING), e.adapter.setScrollContentStyleProperty("transform", "none"); 9830 }), 9831 (this.isAnimating = !0)); 9832 }), 9833 (f.prototype.stopScrollAnimation = function () { 9834 this.isAnimating = !1; 9835 var t = this.getAnimatingScrollPosition(); 9836 this.adapter.removeClass(f.cssClasses.ANIMATING), this.adapter.setScrollContentStyleProperty("transform", "translateX(0px)"), this.adapter.setScrollAreaScrollLeft(t); 9837 }), 9838 (f.prototype.getAnimatingScrollPosition = function () { 9839 var t = this.calculateCurrentTranslateX(), 9840 e = this.adapter.getScrollAreaScrollLeft(); 9841 return this.isRTL() ? this.getRTLScroller().getAnimatingScrollPosition(e, t) : e - t; 9842 }), 9843 (f.prototype.rtlScrollerFactory = function () { 9844 var t = this.adapter.getScrollAreaScrollLeft(); 9845 this.adapter.setScrollAreaScrollLeft(t - 1); 9846 var e = this.adapter.getScrollAreaScrollLeft(); 9847 if (e < 0) return this.adapter.setScrollAreaScrollLeft(t), new d.MDCTabScrollerRTLNegative(this.adapter); 9848 var n = this.adapter.computeScrollAreaClientRect(), 9849 i = this.adapter.computeScrollContentClientRect(), 9850 r = Math.round(i.right - n.right); 9851 return this.adapter.setScrollAreaScrollLeft(t), r === e ? new p.MDCTabScrollerRTLReverse(this.adapter) : new l.MDCTabScrollerRTLDefault(this.adapter); 9852 }), 9853 (f.prototype.isRTL = function () { 9854 return "rtl" === this.adapter.getScrollC
9854ontentStyleValue("direction"); 9855 }), 9856 f); 9857 function f(t) { 9858 var e = a.call(this, o(o({}, f.defaultAdapter), t)) || this; 9859 return (e.isAnimating = !1), e; 9860 } 9861 (e.MDCTabScrollerFoundation = h), (e.default = h); 9862 }, 9863 function (t, e, n) { 9864 "use strict"; 9865 Object.defineProperty(e, "__esModule", { value: !0 }), (e.computeHorizontalScrollbarHeight = void 0); 9866 var r, 9867 o = n(36); 9868 e.computeHorizontalScrollbarHeight = function (t, e) { 9869 if ((void 0 === e && (e = !0), e && void 0 !== r)) return r; 9870 var n = t.createElement("div"); 9871 n.classList.add(o.cssClasses.SCROLL_TEST), t.body.appendChild(n); 9872 var i = n.offsetHeight - n.clientHeight; 9873 return t.body.removeChild(n), e && (r = i), i; 9874 }; 9875 }, 9876 function (t, e, n) { 9877 "use strict"; 9878 var i, 9879 r = 9880 (this && this.__extends) || 9881 ((i = function (t, e) { 9882 return (i = 9883 Object.setPrototypeOf || 9884 ({ __proto__: [] } instanceof Array && 9885 function (t, e) { 9886 t.__proto__ = e; 9887 }) || 9888 function (t, e) { 9889 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 9890 })(t, e); 9891 }), 9892 function (t, e) { 9893 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 9894 function n() { 9895 this.constructor = t; 9896 } 9897 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 9898 }); 9899 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTab = void 0); 9900 var o, 9901 s = n(1), 9902 a = n(2), 9903 c = n(4), 9904 u = n(102), 9905 l = n(38), 9906 d = 9907 ((o = s.MDCComponent), 9908 r(p, o), 9909 (p.attachTo = function (t) { 9910 return new p(t); 9911 }), 9912 (p.prototype.initialize = function (t, e) { 9913 void 0 === t && 9914 (t = function (t, e) { 9915 return new a.MDCRipple(t, e); 9916 }), 9917 void 0 === e && 9918 (e = function (t) { 9919 return new u.MDCTabIndicator(t); 9920 }), 9921 (this.id = this.root.id); 9922 var n = new c.MDCRippleFoundation(a.MDCRipple.createAdapter(this)); 9923 this.ripple = t(this.root, n); 9924 var i = this.root.querySelector(l.MDCTabFoundation.strings.TAB_INDICATOR_SELECTOR); 9925 (this.tabIndicator = e(i)), (this.content = this.root.querySelector(l.MDCTabFoundation.strings.CONTENT_SELECTOR)); 9926 }), 9927 (p.prototype.initialSyncWithDOM = function () { 9928 var t = this; 9929 (this.handleClick = function () { 9930 t.foundation.handleClick(); 9931 }), 9932 this.listen("click", this.handleClick); 9933 }), 9934 (p.prototype.destroy = function () { 9935 this.unlisten("click", this.handleClick), this.ripple.destroy(), o.prototype.destroy.call(this); 9936 }), 9937 (p.prototype.getDefaultFoundation = function () { 9938 var n = this, 9939 t = { 9940 setAttr: function (t, e) { 9941 return n.root.setAttribute(t, e); 9942 }, 9943 addClass: function (t) { 9944 return n.root.classList.add(t); 9945 }, 9946 removeClass: function (t) { 9947 return n.root.classList.remove(t); 9948 }, 9949 hasClass: function (t) { 9950 return n.root.classList.contains(t); 9951 }, 9952 activateIndicator: function (t) { 9953 n.tabIndicator.activate(t); 9954 }, 9955 deactivateIndicator: function () { 9956 n.tabIndicator.deactivate(); 9957 }, 9958 notifyInteracted: function () { 9959 return n.emit(l.MDCTabFoundation.strings.INTERACTED_EVENT, { tabId: n.id }, !0); 9960 }, 9961 getOffsetLeft: function () { 9962 return n.root.offsetLeft; 9963 }, 9964 getOffsetWidth: function () { 9965 return n.root.offsetWidth; 9966 }, 9967 getContentOffsetLeft: function () { 9968 return n.content.offsetLeft; 9969 }, 9970 getContentOffsetWidth: function () { 9971 return n.content.offsetWidth; 9972 }, 9973 focus: function () { 9974 return n.root.focus(); 9975 }, 9976 }; 9977 return new l.MDCTabFoundation(t); 9978 }), 9979 Object.defineProperty(p.prototype, "active", { 9980 get: function () { 9981 return this.foundation.isActive(); 9982 }, 9983 enumerable: !1, 9984 configurable: !0, 9985 }), 9986 Object.defineProperty(p.prototype, "focu
9986sOnActivate", { 9987 set: function (t) { 9988 this.foundation.setFocusOnActivate(t); 9989 }, 9990 enumerable: !1, 9991 configurable: !0, 9992 }), 9993 (p.prototype.activate = function (t) { 9994 this.foundation.activate(t); 9995 }), 9996 (p.prototype.deactivate = function () { 9997 this.foundation.deactivate(); 9998 }), 9999 (p.prototype.computeIndicatorClientRect = function () { 10000 return this.tabIndicator.computeContentClientRect(); 10001 }), 10002 (p.prototype.computeDimensions = function () { 10003 return this.foundation.computeDimensions(); 10004 }), 10005 (p.prototype.focus = function () { 10006 this.root.focus(); 10007 }), 10008 p); 10009 function p() { 10010 return (null !== o && o.apply(this, arguments)) || this; 10011 } 10012 e.MDCTab = d; 10013 }, 10014 function (t, e, n) { 10015 "use strict"; 10016 var i, 10017 r = 10018 (this && this.__extends) || 10019 ((i = function (t, e) { 10020 return (i = 10021 Object.setPrototypeOf || 10022 ({ __proto__: [] } instanceof Array && 10023 function (t, e) { 10024 t.__proto__ = e; 10025 }) || 10026 function (t, e) { 10027 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10028 })(t, e); 10029 }), 10030 function (t, e) { 10031 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10032 function n() { 10033 this.constructor = t; 10034 } 10035 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10036 }); 10037 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabIndicator = void 0); 10038 var o, 10039 s = n(1), 10040 a = n(103), 10041 c = n(17), 10042 u = n(105), 10043 l = 10044 ((o = s.MDCComponent), 10045 r(d, o), 10046 (d.attachTo = function (t) { 10047 return new d(t); 10048 }), 10049 (d.prototype.initialize = function () { 10050 this.content = this.root.querySelector(c.MDCTabIndicatorFoundation.strings.CONTENT_SELECTOR); 10051 }), 10052 (d.prototype.computeContentClientRect = function () { 10053 return this.foundation.computeContentClientRect(); 10054 }), 10055 (d.prototype.getDefaultFoundation = function () { 10056 var n = this, 10057 t = { 10058 addClass: function (t) { 10059 return n.root.classList.add(t); 10060 }, 10061 removeClass: function (t) { 10062 return n.root.classList.remove(t); 10063 }, 10064 computeContentClientRect: function () { 10065 return n.content.getBoundingClientRect(); 10066 }, 10067 setContentStyleProperty: function (t, e) { 10068 n.content.style.setProperty(t, e); 10069 }, 10070 }; 10071 return this.root.classList.contains(c.MDCTabIndicatorFoundation.cssClasse
10071s.FADE) ? new a.MDCFadingTabIndicatorFoundation(t) : new u.MDCSlidingTabIndicatorFoundation(t); 10072 }), 10073 (d.prototype.activate = function (t) { 10074 this.foundation.activate(t); 10075 }), 10076 (d.prototype.deactivate = function () { 10077 this.foundation.deactivate(); 10078 }), 10079 d); 10080 function d() { 10081 return (null !== o && o.apply(this, arguments)) || this; 10082 } 10083 e.MDCTabIndicator = l; 10084 }, 10085 function (t, e, n) { 10086 "use strict"; 10087 var i, 10088 r = 10089 (this && this.__extends) || 10090 ((i = function (t, e) { 10091 return (i = 10092 Object.setPrototypeOf || 10093 ({ __proto__: [] } instanceof Array && 10094 function (t, e) { 10095 t.__proto__ = e; 10096 }) || 10097 function (t, e) { 10098 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10099 })(t, e); 10100 }), 10101 function (t, e) { 10102 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10103 function n() { 10104 this.constructor = t; 10105 } 10106 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10107 }); 10108 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCFadingTabIndicatorFoundation = void 0); 10109 var o, 10110 s = n(17), 10111 a = 10112 ((o = s.MDCTabIndicatorFoundation), 10113 r(c, o), 10114 (c.prototype.activate = function () { 10115 this.adapter.addClass(s.MDCTabIndicatorFoundation.cssClasses.ACTIVE); 10116 }), 10117 (c.prototype.deactivate = function () { 10118 this.adapter.removeClass(s.MDCTabIndicatorFoundation.cssClasses.ACTIVE); 10119 }), 10120 c); 10121 function c() { 10122 return (null !== o && o.apply(this, arguments)) || this; 10123 } 10124 (e.MDCFadingTabIndicatorFoundation = a), (e.default = a); 10125 }, 10126 function (t, e, n) { 10127 "use strict"; 10128 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.cssClasses = void 0); 10129 e.cssClasses = { ACTIVE: "mdc-tab-indicator--active", FADE: "mdc-tab-indicator--fade", NO_TRANSITION: "mdc-tab-indicator--no-transition" }; 10130 e.strings = { CONTENT_SELECTOR: ".mdc-tab-indicator__content" }; 10131 }, 10132 function (t, e, n) { 10133 "use strict"; 10134 var i, 10135 r = 10136 (this && this.__extends) || 10137 ((i = function (t, e) { 10138 return (i = 10139 Object.setPrototypeOf || 10140 ({ __proto__: [] } instanceof Array && 10141 function (t, e) { 10142 t.__proto__ = e; 10143 }) || 10144 function (t, e) { 10145 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10146 })(t, e); 10147 }), 10148 function (t, e) { 10149 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10150 function n() { 10151 this.constructor = t; 10152 } 10153 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10154 }); 10155 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSlidingTabIndicatorFoundation = void 0); 10156 var o, 10157 s = n(17), 10158 a = 10159 ((o = s.MDCTabIndicatorFoundation), 10160 r(c, o), 10161 (c.prototype.activate = function (t) { 10162 if (t) { 10163 var e = this.computeContentClientRect(), 10164 n = t.width / e.width, 10165 i = t.left - e.left; 10166 this.adapter.addClass(s.MDCTabIndicatorFoundation.cssClasse
10166s.NO_TRANSITION), 10167 this.adapter.setContentStyleProperty("transform", "translateX(" + i + "px) scaleX(" + n + ")"), 10168 this.computeContentClientRect(), 10169 this.adapter.removeClass(s.MDCTabIndicatorFoundation.cssClasses.NO_TRANSITION), 10170 this.adapter.addClass(s.MDCTabIndicatorFoundation.cssClasses.ACTIVE), 10171 this.adapter.setContentStyleProperty("transform", ""); 10172 } else this.adapter.addClass(s.MDCTabIndicatorFoundation.cssClasses.ACTIVE); 10173 }), 10174 (c.prototype.deactivate = function () { 10175 this.adapter.removeClass(s.MDCTabIndicatorFoundation.cssClasses.ACTIVE); 10176 }), 10177 c); 10178 function c() { 10179 return (null !== o && o.apply(this, arguments)) || this; 10180 } 10181 (e.MDCSlidingTabIndicatorFoundation = a), (e.default = a); 10182 }, 10183 function (t, e, n) { 10184 "use strict"; 10185 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.cssClasses = void 0); 10186 e.cssClasses = { ACTIVE: "mdc-tab--active" }; 10187 e.strings = { 10188 ARIA_SELECTED: "aria-selected", 10189 CONTENT_SELECTOR: ".mdc-tab__content", 10190 INTERACTED_EVENT: "MDCTab:interacted", 10191 RIPPLE_SELECTOR: ".mdc-tab__ripple", 10192 TABINDEX: "tabIndex", 10193 TAB_INDICATOR_SELECTOR: ".mdc-tab-indicator", 10194 }; 10195 }, 10196 function (t, e, n) { 10197 "use strict"; 10198 var i, 10199 r = 10200 (this && this.__extends) || 10201 ((i = function (t, e) { 10202 return (i = 10203 Object.setPrototypeOf || 10204 ({ __proto__: [] } instanceof Array && 10205 function (t, e) { 10206 t.__proto__ = e; 10207 }) || 10208 function (t, e) { 10209 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10210 })(t, e); 10211 }), 10212 function (t, e) { 10213 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10214 function n() { 10215 this.constructor = t; 10216 } 10217 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10218 }), 10219 o = 10220 (this && this.__assign) || 10221 function () { 10222 return (o = 10223 Object.assign || 10224 function (t) { 10225 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 10226 return t; 10227 }).apply(this, arguments); 10228 }; 10229 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabBarFoundation = void 0); 10230 var s = n(0), 10231 u = n(108), 10232 a = new Set(); 10233 a.add(u.strings.ARROW_LEFT_KEY), a.add(u.strings.ARROW_RIGHT_KEY), a.add(u.strings.END_KEY), a.add(u.strings.HOME_KEY), a.add(u.strings.ENTER_KEY), a.add(u.strings.SPACE_KEY); 10234 var c = new Map(); 10235 c.set(u.numbers.ARROW_LEFT_KEYCODE, u.strings.ARROW_LEFT_KEY), 10236 c.set(u.numbers.ARROW_RIGHT_KEYCODE, u.strings.ARROW_RIGHT_KEY), 10237 c.set(u.numbers.END_KEYCODE, u.strings.END_KEY), 10238 c.set(u.numbers.HOME_KEYCODE, u.strings.HOME_KEY), 10239 c.set(u.numbers.ENTER_KEYCODE, u.strings.ENTER_KEY), 10240 c.set(u.numbers.SPACE_KEYCODE, u.strings.SPACE_KEY); 10241 var l, 10242 d = 10243 ((l = s.MDCFoundation), 10244 r(p, l), 10245 Object.defineProperty(p, "strings", { 10246 get: function () { 10247 return u.strings; 10248 }, 10249 enumerable: !1, 10250 configurable: !0, 10251 }), 10252 Object.defineProperty(p, "numbers", { 10253 get: function () { 10254 return u.numbers; 10255 }, 10256 enumerable: !1, 10257 configurable: !0, 10258 }), 10259 Object.defineProperty(p, "defaultAdapter", { 10260 get: function () { 10261 return { 10262 scrollTo: function () {}, 10263 incrementScroll: function () {}, 10264 getScrollPosition: function () { 10265 return 0; 10266 },
10267 getScrollContentWidth: function () { 10268 return 0; 10269 }, 10270 getOffsetWidth: function () { 10271 return 0; 10272 }, 10273 isRTL: function () { 10274 return !1; 10275 }, 10276 setActiveTab: function () {}, 10277 activateTabAtIndex: function () {}, 10278 deactivateTabAtIndex: function () {}, 10279 focusTabAtIndex: function () {}, 10280 getTabIndicatorClientRectAtIndex: function () { 10281 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 10282 }, 10283 getTabDimensionsAtIndex: function () { 10284 return { rootLeft: 0, rootRight: 0, contentLeft: 0, contentRight: 0 }; 10285 }, 10286 getPreviousActiveTabIndex: function () { 10287 return -1; 10288 }, 10289 getFocusedTabIndex: function () { 10290 return -1; 10291 }, 10292 getIndexOfTabById: function () { 10293 return -1; 10294 }, 10295 getTabListLength: function () { 10296 return 0; 10297 }, 10298 notifyTabActivated: function () {}, 10299 }; 10300 }, 10301 enumerable: !1, 10302 configurable: !0, 10303 }), 10304 (p.prototype.setUseAutomaticActivation = function (t) { 10305 this.useAutomaticActivation = t; 10306 }), 10307 (p.prototype.activateTab = function (t) { 10308 var e, 10309 n = this.adapter.getPreviousActiveTabIndex(); 10310 this.indexIsInRange(t) && 10311 t !== n && 10312 (-1 !== n && (this.adapter.deactivateTabAtIndex(n), (e = this.adapter.getTabIndicatorClientRectAtIndex(n))), this.adapter.activateTabAtIndex(t, e), this.scrollIntoView(t), this.adapter.notifyTabActivated(t)); 10313 }), 10314 (p.prototype.handleKeyDown = function (t) { 10315 var e = this.getKeyFromEvent(t); 10316 if (void 0 !== e) 10317 if ((this.isActivationKey(e) || t.preventDefault(), this.useAutomaticActivation)) { 10318 if (this.isActivationKey(e)) return; 10319 var n = this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(), e); 10320 this.adapter.setActiveTab(n), this.scrollIntoView(n); 10321 } else { 10322 var i = this.adapter.getFocusedTabIndex(); 10323 this.isActivationKey(e) ? this.adapter.setActiveTab(i) : ((n = this.determineTargetFromKey(i, e)), this.adapter.focusTabAtIndex(n), this.scrollIntoView(n)); 10324 } 10325 }), 10326 (p.prototype.handleTabInteraction = function (t) { 10327 this.adapter.setActiveTab(this.adapter.getIndexOfTabById(t.detail.tabId)); 10328 }), 10329 (p.prototype.scrollIntoView = function (t) { 10330 this.indexIsInRange(t) && 10331 (0 !== t 10332 ? t !== this.adapter.getTabListLength() - 1 10333 ? this.isRTL() 10334 ? this.scrollIntoViewImplRTL(t) 10335 : this.scrollIntoViewImpl(t) 10336 : this.adapter.scrollTo(this.adapter.getScrollC
10336ontentWidth()) 10337 : this.adapter.scrollTo(0)); 10338 }), 10339 (p.prototype.determineTargetFromKey = function (t, e) { 10340 var n = this.isRTL(), 10341 i = this.adapter.getTabListLength() - 1, 10342 r = e === u.strings.END_KEY, 10343 o = (e === u.strings.ARROW_LEFT_KEY && !n) || (e === u.strings.ARROW_RIGHT_KEY && n), 10344 s = (e === u.strings.ARROW_RIGHT_KEY && !n) || (e === u.strings.ARROW_LEFT_KEY && n), 10345 a = t; 10346 return r ? (a = i) : o ? (a -= 1) : s ? (a += 1) : (a = 0), a < 0 ? (a = i) : i < a && (a = 0), a; 10347 }), 10348 (p.prototype.calculateScrollIncrement = function (t, e, n, i) { 10349 var r = this.adapter.getTabDimensionsAtIndex(e), 10350 o = r.contentLeft - n - i, 10351 s = r.contentRight - n - u.numbers.EXTRA_SCROLL_AMOUNT, 10352 a = o + u.numbers.EXTRA_SCROLL_AMOUNT; 10353 return e < t ? Math.min(s, 0) : Math.max(a, 0); 10354 }), 10355 (p.prototype.calculateScrollIncrementRTL = function (t, e, n, i, r) { 10356 var o = this.adapter.getTabDimensionsAtIndex(e), 10357 s = r - o.contentLeft - n, 10358 a = r - o.contentRight - n - i + u.numbers.EXTRA_SCROLL_AMOUNT, 10359 c = s - u.numbers.EXTRA_SCROLL_AMOUNT; 10360 return t < e ? Math.max(a, 0) : Math.min(c, 0); 10361 }), 10362 (p.prototype.findAdjacentTabIndexClosestToEdge = function (t, e, n, i) { 10363 var r = e.rootLeft - n, 10364 o = e.rootRight - n - i, 10365 s = r + o; 10366 return r < 0 || s < 0 ? t - 1 : 0 < o || 0 < s ? t + 1 : -1; 10367 }), 10368 (p.prototype.findAdjacentTabIndexClosestToEdgeRTL = function (t, e, n, i, r) { 10369 var o = r - e.rootLeft - i - n, 10370 s = r - e.rootRight - n, 10371 a = o + s; 10372 return 0 < o || 0 < a ? t + 1 : s < 0 || a < 0 ? t - 1 : -1; 10373 }), 10374 (p.prototype.getKeyFromEvent = function (t) { 10375 return a.has(t.key) ? t.key : c.get(t.keyCode); 10376 }), 10377 (p.prototype.isActivationKey = function (t) { 10378 return t === u.strings.SPACE_KEY || t === u.strings.ENTER_KEY; 10379 }), 10380 (p.prototype.indexIsInRange = function (t) { 10381 return 0 <= t && t < this.adapter.getTabListLength(); 10382 }), 10383 (p.prototype.isRTL = function () { 10384 return this.adapter.isRTL(); 10385 }), 10386 (p.prototype.scrollIntoViewImpl = function (t) { 10387 var e = this.adapter.getScrollPosition(), 10388 n = this.adapter.getOffsetWidth(), 10389 i = this.adapter.getTabDimensionsAtIndex(t), 10390 r = this.findAdjacentTabIndexClosestToEdge(t, i, e, n); 10391 if (this.indexIsInRange(r)) { 10392 var o = this.calculateScrollIncrement(t, r, e, n); 10393 this.adapter.incrementScroll(o); 10394 } 10395 }), 10396 (p.prototype.scrollIntoViewImplRTL = function (t) { 10397 var e = this.adapter.getScrollPosition(), 10398 n = this.adapter.getOffsetWidth(), 10399 i = this.adapter.getTabDimensionsAtIndex(t),
10400 r = this.adapter.getScrollContentWidth(), 10401 o = this.findAdjacentTabIndexClosestToEdgeRTL(t, i, e, n, r); 10402 if (this.indexIsInRange(o)) { 10403 var s = this.calculateScrollIncrementRTL(t, o, e, n, r); 10404 this.adapter.incrementScroll(s); 10405 } 10406 }), 10407 p); 10408 function p(t) { 10409 var e = l.call(this, o(o({}, p.defaultAdapter), t)) || this; 10410 return (e.useAutomaticActivation = !1), e; 10411 } 10412 (e.MDCTabBarFoundation = d), (e.default = d); 10413 }, 10414 function (t, e, n) { 10415 "use strict"; 10416 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = e.numbers = void 0); 10417 e.strings = { 10418 ARROW_LEFT_KEY: "ArrowLeft", 10419 ARROW_RIGHT_KEY: "ArrowRight", 10420 END_KEY: "End", 10421 ENTER_KEY: "Enter", 10422 HOME_KEY: "Home", 10423 SPACE_KEY: "Space", 10424 TAB_ACTIVATED_EVENT: "MDCTabBar:activated", 10425 TAB_SCROLLER_SELECTOR: ".mdc-tab-scroller", 10426 TAB_SELECTOR: ".mdc-tab", 10427 }; 10428 e.numbers = { ARROW_LEFT_KEYCODE: 37, ARROW_RIGHT_KEYCODE: 39, END_KEYCODE: 35, ENTER_KEYCODE: 13, EXTRA_SCROLL_AMOUNT: 20, HOME_KEYCODE: 36, SPACE_KEYCODE: 32 }; 10429 }, 10430 function (t, e, n) { 10431 "use strict"; 10432 var i, 10433 r = 10434 (this && this.__extends) || 10435 ((i = function (t, e) { 10436 return (i = 10437 Object.setPrototypeOf || 10438 ({ __proto__: [] } instanceof Array && 10439 function (t, e) { 10440 t.__proto__ = e; 10441 }) || 10442 function (t, e) { 10443 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10444 })(t, e); 10445 }), 10446 function (t, e) { 10447 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10448 function n() { 10449 this.constructor = t; 10450 } 10451 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10452 }); 10453 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldCharacterCounter = void 0); 10454 var o, 10455 s = n(1), 10456 a = n(39), 10457 c = 10458 ((o = s.MDCComponent), 10459 r(u, o), 10460 (u.attachTo = function (t) { 10461 return new u(t); 10462 }), 10463 Object.defineProperty(u.prototype, "foundationForTextField", { 10464 get: function () { 10465 return this.foundation; 10466 }, 10467 enumerable: !1, 10468 configurable: !0, 10469 }), 10470 (u.prototype.getDefaultFoundation = function () { 10471 var e = this, 10472 t = { 10473 setContent: function (t) { 10474 e.root.textContent = t; 10475 }, 10476 }; 10477 return new a.MDCTextFieldCharacterCounterFoundation(t); 10478 }), 10479 u); 10480 function u() { 10481 return (null !== o && o.apply(this, arguments)) || this; 10482 } 10483 e.MDCTextFieldCharacterCounter = c; 10484 }, 10485 function (t, e, n) { 10486 "use strict"; 10487 Object.defineProperty(e, "__esModule", { value: !0 }
10487), (e.cssClasses = e.strings = void 0); 10488 var i = { ROOT: "mdc-text-field-character-counter" }, 10489 r = { ROOT_SELECTOR: "." + (e.cssClasses = i).ROOT }; 10490 e.strings = r; 10491 }, 10492 function (t, e, n) { 10493 "use strict"; 10494 var i, 10495 r = 10496 (this && this.__extends) || 10497 ((i = function (t, e) { 10498 return (i = 10499 Object.setPrototypeOf || 10500 ({ __proto__: [] } instanceof Array && 10501 function (t, e) { 10502 t.__proto__ = e; 10503 }) || 10504 function (t, e) { 10505 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10506 })(t, e); 10507 }), 10508 function (t, e) { 10509 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10510 function n() { 10511 this.constructor = t; 10512 } 10513 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10514 }), 10515 o = 10516 (this && this.__assign) || 10517 function () { 10518 return (o = 10519 Object.assign || 10520 function (t) { 10521 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 10522 return t; 10523 }).apply(this, arguments); 10524 }, 10525 u = 10526 (this && this.__values) || 10527 function (t) { 10528 var e = "function" == typeof Symbol && Symbol.iterator, 10529 n = e && t[e], 10530 i = 0; 10531 if (n) return n.call(t); 10532 if (t && "number" == typeof t.length) 10533 return { 10534 next: function () { 10535 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 10536 }, 10537 }; 10538 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 10539 }; 10540 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldFoundation = void 0); 10541 var s, 10542 a = n(0), 10543 c = n(40), 10544 l = ["mousedown", "touchstart"], 10545 d = ["click", "keydown"], 10546 p = 10547 ((s = a.MDCFoundation), 10548 r(h, s), 10549 Object.defineProperty(h, "cssClasses", { 10550 get: function () {
10551 return c.cssClasses; 10552 }, 10553 enumerable: !1, 10554 configurable: !0, 10555 }), 10556 Object.defineProperty(h, "strings", { 10557 get: function () { 10558 return c.strings; 10559 }, 10560 enumerable: !1, 10561 configurable: !0, 10562 }), 10563 Object.defineProperty(h, "numbers", { 10564 get: function () { 10565 return c.numbers; 10566 }, 10567 enumerable: !1, 10568 configurable: !0, 10569 }), 10570 Object.defineProperty(h.prototype, "shouldAlwaysFloat", { 10571 get: function () { 10572 var t = this.getNativeInput().type; 10573 return 0 <= c.ALWAYS_FLOAT_TYPES.indexOf(t); 10574 }, 10575 enumerable: !1, 10576 configurable: !0, 10577 }), 10578 Object.defineProperty(h.prototype, "shouldFloat", { 10579 get: function () { 10580 return this.shouldAlwaysFloat || this.isFocused || !!this.getValue() || this.isBadInput(); 10581 }, 10582 enumerable: !1, 10583 configurable: !0, 10584 }), 10585 Object.defineProperty(h.prototype, "shouldShake", { 10586 get: function () { 10587 return !this.isFocused && !this.isValid() && !!this.getValue(); 10588 }, 10589 enumerable: !1, 10590 configurable: !0, 10591 }), 10592 Object.defineProperty(h, "defaultAdapter", { 10593 get: function () { 10594 return { 10595 addClass: function () {}, 10596 removeClass: function () {}, 10597 hasClass: function () { 10598 return !0; 10599 }, 10600 setInputAttr: function () {}, 10601 removeInputAttr: function () {}, 10602 registerTextFieldInteractionHandler: function () {}, 10603 deregisterTextFieldInteractionHandler: function () {}, 10604 registerInputInteractionHandler: function () {}, 10605 deregisterInputInteractionHandler: function () {}, 10606 registerValidationAttributeChangeHandler: function () { 10607 return new MutationObserver(function () {}); 10608 }, 10609 deregisterValidationAttributeChangeHandler: function () {}, 10610 getNativeInput: function () { 10611 return null; 10612 }, 10613 isFocused: function () { 10614 return !1; 10615 }, 10616 activateLineRipple: function () {}, 10617 deactivateLineRipple: function () {}, 10618 setLineRippleTransformOrigin: function () {}, 10619 shakeLabel: function () {}, 10620 floatLabel: function () {}, 10621 setLabelRequired: function () {}, 10622 hasLabel: function () { 10623 return !1; 10624 }, 10625 getLabelWidth: function () { 10626 return 0; 10627 }, 10628 hasOutline: function () { 10629 return !1; 10630 }, 10631 notchOutline: function () {}, 10632 closeOutline: function () {}, 10633 }; 10634 }, 10635 enumerable: !1, 10636 configurable: !0, 10637 }), 10638 (h.prototype.init = function () { 10639 var e, t, n, i; 10640 this.adapter.hasLabel() && this.getNativeInput().required && this.adapter.setLabelRequired(!0), 10641 this.adapter.isFocused() ? this.inputFocusHandler() : this.adapter.hasLabel() && this.shouldFloat && (this.notchOutline(!0), this.adapter.floatLabel(!0), this.styleFloating(!0)), 10642 this.adapter.registerInputInteractionHandler("focus", this.inputFocusHandler), 10643 this.adapter.registerInputInteractionHandler("blur", this.inputBlurHandler), 10644 this.adapter.registerInputInteractionHandler("input", this.inputInputHandler); 10645 try { 10646 for (var r = u(l), o = r.next(); !o.done; o = r.next()) { 10647 var s = o.value; 10648 this.adapter.registerInputInteractionHandler(s, this.setPointerXOffset); 10649 } 10650 } catch (t) { 10651 e = { error: t }; 10652 } finally { 10653 try { 10654 o && !o.done && (t = r.return) && t.call(r); 10655 } finally { 10656 if (e) throw e.error; 10657 } 10658 } 10659 try { 10660 for (var a = u(d), c = a.next(); !c.done; c = a.next()) (s = c.value), this.adapter.registerTextFieldInteractionHandler(s, this.textFieldInteractionHandler); 10661 } catch (t) { 10662 n = { error: t }; 10663 } finally { 10664 try { 10665 c && !c.done && (i = a.return) && i.call(a); 10666 } finally { 10667 if (n) throw n.error; 10668 } 10669 } 10670 (this.validationObserver = this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler)), this.setcharacterCounter(this.getValue().length); 10671 }), 10672 (h.prototype.destroy = function () { 10673 var e, t, n, i; 10674 this.adapter.deregisterInputInteractionHandler("focus", this.inputFocusHandler), 10675 this.adapter.deregisterInputInteractionHandler("blur", this.inputBlurHandler), 10676 this.adapter.deregisterInputInteractionHandler("input", this.inputInputHandler); 10677 try { 10678 for (var r = u(l), o = r.next(); !o.done; o = r.next()) { 10679 var s = o.value; 10680 this.adapter.deregisterInputInteractionHandler(s, this.setPointerXOffset); 10681 } 10682 } catch (t) { 10683 e = { error: t }; 10684 } finally { 10685 try { 10686 o && !o.done && (t = r.return) && t.call(r); 10687 } finally { 10688 if (e) throw e.error; 10689 } 10690 } 10691 try { 10692 for (var a = u(d), c = a.next(); !c.done; c = a.next()) (s = c.value), this.adapter.deregisterTextFieldInteractionHandler(s, this.textFieldInteractionHandler); 10693 } catch (t) { 10694 n = { error: t }; 10695 } finally { 10696 try { 10697 c && !c.done && (i = a.return) && i.call(a); 10698 } finally { 10699 if (n) throw n.error; 10700 } 10701 } 10702 this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver); 10703 }), 10704 (h.prototype.handleTextFieldInteraction = function () { 10705 var t = this.adapter.getNativeInput(); 10706 (t && t.disabled) || (this.receivedUserInput = !0); 10707 }), 10708 (h.prototype.handleValidationAttributeChange = function (t) { 10709 var e = this; 10710 t.some(function (t) { 10711 return -1 < c.VALIDATION_ATTR_WHITELIST.indexOf(t) && (e.styleValidity(!0), e.adapter.setLabelRequired(e.getNativeInput().required), !0); 10712 }), 10713 -1 < t.indexOf("maxlength") && this.setcharacterCounter(this.getValue().length); 10714 }), 10715 (h.prototype.notchOutline = function (t) { 10716 if (this.adapter.hasOutline() && this.adapter.hasLabel()) 10717 if (t) { 10718 var e = this.adapter.getLabelWidth() * c.numbers.LABEL_SCALE; 10719 this.adapter.notchOutline(e); 10720 } else this.adapter.closeOutline(); 10721 }), 10722 (h.prototype.activateFocus = function () { 10723 (this.isFocused = !0), 10724 this.styleFocused(this.isFocused), 10725 this.adapter.activateLineRipple(), 10726 this.adapter.hasLabel() && (this.notchOutline(this.shouldFloat), this.adapter.floatLabel(this.shouldFloat), this.styleFloating(this.shouldFloat), this.adapter.shakeLabel(this.shouldShake)), 10727 !this.helperText || (!this.helperText.isPersistent
10727() && this.helperText.isValidation() && this.valid) || this.helperText.showToScreenReader(); 10728 }), 10729 (h.prototype.setTransformOrigin = function (t) { 10730 if (!this.isDisabled() && !this.adapter.hasOutline()) { 10731 var e = t.touches, 10732 n = e ? e[0] : t, 10733 i = n.target.getBoundingClientRect(), 10734 r = n.clientX - i.left; 10735 this.adapter.setLineRippleTransformOrigin(r); 10736 } 10737 }), 10738 (h.prototype.handleInput = function () { 10739 this.autoCompleteFocus(), this.setcharacterCounter(this.getValue().length); 10740 }), 10741 (h.prototype.autoCompleteFocus = function () { 10742 this.receivedUserInput || this.activateFocus(); 10743 }), 10744 (h.prototype.deactivateFocus = function () { 10745 (this.isFocused = !1), this.adapter.deactivateLineRipple(); 10746 var t = this.isValid(); 10747 this.styleValidity(t), 10748 this.styleFocused(this.isFocused), 10749 this.adapter.hasLabel() && (this.notchOutline(this.shouldFloat), this.adapter.floatLabel(this.shouldFloat), this.styleFloating(this.shouldFloat), this.adapter.shakeLabel(this.shouldShake)), 10750 this.shouldFloat || (this.receivedUserInput = !1); 10751 }), 10752 (h.prototype.getValue = function () { 10753 return this.getNativeInput().value; 10754 }), 10755 (h.prototype.setValue = function (t) { 10756 if ((this.getValue() !== t && (this.getNativeInput().value = t), this.setcharacterCounter(t.length), this.validateOnValueChange)) { 10757 var e = this.isValid(); 10758 this.styleValidity(e); 10759 } 10760 this.adapter.hasLabel() && 10761 (this.notchOutline(this.shouldFloat), this.adapter.floatLabel(this.shouldFloat), this.styleFloating(this.shouldFloat), this.validateOnValueChange && this.adapter.shakeLabel(this.shouldShake)); 10762 }), 10763 (h.prototype.isValid = function () { 10764 return this.useNativeValidation ? this.isNativeInputValid() : this.valid; 10765 }), 10766 (h.prototype.setValid = function (t) { 10767 (this.valid = t), this.styleValidity(t); 10768 var e = !t && !this.isFocused && !!this.getValue(); 10769 this.adapter.hasLabel() && this.adapter.shakeLabel(e); 10770 }), 10771 (h.prototype.setValidateOnValueChange = function (t) { 10772 this.validateOnValueChange = t; 10773 }), 10774 (h.prototype.getValidateOnValueChange = function () { 10775 return this.validateOnValueChange; 10776 }), 10777 (h.prototype.setUseNativeValidation = function (t) { 10778 this.useNativeValidation = t; 10779 }), 10780 (h.prototype.isDisabled = function () { 10781 return this.getNativeInput().disabled; 10782 }), 10783 (h.prototype.setDisabled = function (t) { 10784 (this.getNativeInput().disabled = t), this.styleDisabled(t); 10785 }), 10786 (h.prototype.setHelperTextContent = function (t) { 10787 this.helperText && this.helperText.setContent(t); 10788 }), 10789 (h.prototype.setLeadingIconAriaLabel = function (t) { 10790 this.leadingIcon && this.leadingIcon.setAriaLabel(t); 10791 }), 10792 (h.prototype.setLeadingIconContent = function (t) { 10793 this.leadingIcon && this.leadingIcon.setContent(t); 10794 }), 10795 (h.prototype.setTrailingIconAriaLabel = function (t) { 10796 this.trailingIcon && this.trailingIcon.setAriaLabel(t); 10797 }), 10798 (h.prototype.setTrailingIconContent = function (t) { 10799 this.trailingIcon && this.trailingIcon.setContent(t); 10800 }), 10801 (h.prototype.setcharacterCounter = function (t) { 10802 if (this.characterCounter) { 10803 var e = this.getNativeInput().maxLength; 10804 if (-1 === e) throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea."); 10805 this.characterCounter.setCounterValue(t, e); 10806 } 10807 }), 10808 (h.prototype.isBadInput = function () { 10809 return this.getNativeInput().validity.badInput || !1; 10810 }), 10811 (h.prototype.isNativeInputValid = function () { 10812 return this.getNativeInput().validity.valid; 10813 }), 10814 (h.prototype.styleValidity = function (t) {
10815 var e = h.cssClasses.INVALID; 10816 if ((t ? this.adapter.removeClass(e) : this.adapter.addClass(e), this.helperText)) { 10817 if ((this.helperText.setValidity(t), !this.helperText.isValidation())) return; 10818 var n = this.helperText.isVisible(), 10819 i = this.helperText.getId(); 10820 n && i ? this.adapter.setInputAttr(c.strings.ARIA_DESCRIBEDBY, i) : this.adapter.removeInputAttr(c.strings.ARIA_DESCRIBEDBY); 10821 } 10822 }), 10823 (h.prototype.styleFocused = function (t) { 10824 var e = h.cssClasses.FOCUSED; 10825 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 10826 }), 10827 (h.prototype.styleDisabled = function (t) { 10828 var e = h.cssClasses, 10829 n = e.DISABLED, 10830 i = e.INVALID; 10831 t ? (this.adapter.addClass(n), this.adapter.removeClass(i)) : this.adapter.removeClass(n), this.leadingIcon && this.leadingIcon.setDisabled(t), this.trailingIcon && this.trailingIcon.setDisabled(t); 10832 }), 10833 (h.prototype.styleFloating = function (t) { 10834 var e = h.cssClasses.LABEL_FLOATING; 10835 t ? this.adapter.addClass(e) : this.adapter.removeClass(e); 10836 }), 10837 (h.prototype.getNativeInput = function () { 10838 return (this.adapter ? this.adapter.getNativeInput() : null) || { disabled: !1, maxLength: -1, required: !1, type: "input", validity: { badInput: !1, valid: !0 }, value: "" }; 10839 }), 10840 h); 10841 function h(t, e) { 10842 void 0 === e && (e = {}); 10843 var n = s.call(this, o(o({}, h.defaultAdapter), t)) || this; 10844 return ( 10845 (n.isFocused = !1), 10846 (n.receivedUserInput = !1), 10847 (n.valid = !0), 10848 (n.useNativeValidation = !0), 10849 (n.validateOnValueChange = !0), 10850 (n.helperText = e.helperText), 10851 (n.characterCounter = e.characterCounter), 10852 (n.leadingIcon = e.leadingIcon), 10853 (n.trailingIcon = e.trailingIcon), 10854 (n.inputFocusHandler = function () { 10855 n.activateFocus(); 10856 }), 10857 (n.inputBlurHandler = function () { 10858 n.deactivateFocus(); 10859 }), 10860 (n.inputInputHandler = function () { 10861 n.handleInput(); 10862 }), 10863 (n.setPointerXOffset = function (t) { 10864 n.setTransformOrigin(t); 10865 }), 10866 (n.textFieldInteractionHandler = function () { 10867 n.handleTextFieldInteraction(); 10868 }), 10869 (n.validationAttributeChangeHandler = function (t) { 10870 n.handleValidationAttributeChange(t); 10871 }), 10872 n 10873 ); 10874 } 10875 (e.MDCTextFieldFoundation = p), (e.default = p); 10876 }, 10877 function (t, e, n) { 10878 "use strict"; 10879 var i, 10880 r = 10881 (this && this.__extends) || 10882 ((i = function (t, e) { 10883 return (i = 10884 Object.setPrototypeOf || 10885 ({ __proto__: [] } instanceof Array && 10886 function (t, e) { 10887 t.__proto__ = e; 10888 }) || 10889 function (t, e) { 10890 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10891 })(t, e); 10892 }), 10893 function (t, e) { 10894 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10895 function n() { 10896 this.constructor = t; 10897 } 10898 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10899 }); 10900 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldHelperText = void 0); 10901 var o, 10902 s = n(1), 10903 a = n(41), 10904 c = 10905 ((o = s.MDCComponent), 10906 r(u, o), 10907 (u.attachTo = function (t) { 10908 return new u(t); 10909 }), 10910 Object.defineProperty(u.prototype, "foundationForTextField", { 10911 get: function () { 10912 return this.foundation; 10913 }, 10914 enumerable: !1, 10915 configurable: !0, 10916 }), 10917 (u.prototype.getDefaultFoundation = function () { 10918 var n = this, 10919 t = { 10920 addClass: function (t) { 10921 return n.root.classList.add(t); 10922 }, 10923 removeClass: function (t) { 10924 return n.root.classList.remove(t); 10925 }, 10926 hasClass: function (t) { 10927 return n.root.classList.contains(t); 10928 }, 10929 getAttr: function (t) { 10930 return n.root.getAttribute(t); 10931 }, 10932 setAttr: function (t, e) { 10933 return n.root.setAttribute(t, e); 10934 }, 10935 removeAttr: function (t) { 10936 return n.root.removeAttribute(t); 10937 }, 10938 setContent: function (t) { 10939 n.root.textContent = t; 10940 }, 10941 }; 10942 return new a.MDCTextFieldHelperTextFoundation(t); 10943 }), 10944 u); 10945 function u() { 10946 return (null !== o && o.apply(this, arguments)) || this; 10947 } 10948 e.MDCTextFieldHelperText = c; 10949 }, 10950 function (t, e, n) { 10951 "use strict"; 10952 Object.defineProperty(e, "__esModule", { value: !0 }
10952), (e.cssClasses = e.strings = void 0); 10953 var i = { HELPER_TEXT_PERSISTENT: "mdc-text-field-helper-text--persistent", HELPER_TEXT_VALIDATION_MSG: "mdc-text-field-helper-text--validation-msg", ROOT: "mdc-text-field-helper-text" }, 10954 r = { ARIA_HIDDEN: "aria-hidden", ROLE: "role", ROOT_SELECTOR: "." + (e.cssClasses = i).ROOT }; 10955 e.strings = r; 10956 }, 10957 function (t, e, n) { 10958 "use strict"; 10959 var i, 10960 r = 10961 (this && this.__extends) || 10962 ((i = function (t, e) { 10963 return (i = 10964 Object.setPrototypeOf || 10965 ({ __proto__: [] } instanceof Array && 10966 function (t, e) { 10967 t.__proto__ = e; 10968 }) || 10969 function (t, e) { 10970 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 10971 })(t, e); 10972 }), 10973 function (t, e) { 10974 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 10975 function n() { 10976 this.constructor = t; 10977 } 10978 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 10979 }); 10980 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldIcon = void 0); 10981 var o, 10982 s = n(1), 10983 a = n(115), 10984 c = 10985 ((o = s.MDCComponent), 10986 r(u, o), 10987 (u.attachTo = function (t) { 10988 return new u(t); 10989 }), 10990 Object.defineProperty(u.prototype, "foundationForTextField", { 10991 get: function () { 10992 return this.foundation; 10993 }, 10994 enumerable: !1, 10995 configurable: !0, 10996 }), 10997 (u.prototype.getDefaultFoundation = function () { 10998 var n = this, 10999 t = { 11000 getAttr: function (t) { 11001 return n.root.getAttribute(t); 11002 }, 11003 setAttr: function (t, e) { 11004 return n.root.setAttribute(t, e); 11005 }, 11006 removeAttr: function (t) { 11007 return n.root.removeAttribute(t); 11008 }, 11009 setContent: function (t) { 11010 n.root.textContent = t; 11011 }, 11012 registerInteractionHandler: function (t, e) { 11013 return n.listen(t, e); 11014 }, 11015 deregisterInteractionHandler: function (t, e) { 11016 return n.unlisten(t, e); 11017 }, 11018 notifyIconAction: function () { 11019 return n.emit(a.MDCTextFieldIconFoundation.strings.ICON_EVENT, {}, !0); 11020 }, 11021 }; 11022 return new a.MDCTextFieldIconFoundation(t); 11023 }), 11024 u); 11025 function u() { 11026 return (null !== o && o.apply(this, arguments)) || this; 11027 } 11028 e.MDCTextFieldIcon = c; 11029 }, 11030 function (t, e, n) { 11031 "use strict"; 11032 var i, 11033 r = 11034 (this && this.__extends) || 11035 ((i = function (t, e) { 11036 return (i = 11037 Object.setPrototypeOf || 11038 ({ __proto__: [] } instanceof Array && 11039 function (t, e) { 11040 t.__proto__ = e; 11041 }) || 11042 function (t, e) { 11043 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 11044 })(t, e); 11045 }), 11046 function (t, e) { 11047 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 11048 function n() { 11049 this.constructor = t; 11050 } 11051 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 11052 }), 11053 o = 11054 (this && this.__assign) || 11055 function () { 11056 return (o = 11057 Object.assign || 11058 function (t) { 11059 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 11060 return t; 11061 }).apply(this, arguments); 11062 }, 11063 s = 11064 (this && this.__values) || 11065 function (t) { 11066 var e = "function" == typeof Symbol && Symbol.iterator, 11067 n = e && t[e], 11068 i = 0; 11069 if (n) return n.call(t); 11070 if (t && "number" == typeof t.length) 11071 return { 11072 next: function () { 11073 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 11074 }, 11075 }; 11076 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 11077 }; 11078 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextFieldIconFoundation = void 0); 11079 var a, 11080 c = n(0), 11081 u = n(116), 11082 l = ["click", "keydown"], 11083 d = 11084 ((a = c.MDCFoundation), 11085 r(p, a), 11086 Object.defineProperty(p, "strings", { 11087 get: function () { 11088 return u.strings; 11089 }, 11090 enumerable: !1, 11091 configurable: !0, 11092 }),
11093 Object.defineProperty(p, "cssClasses", { 11094 get: function () { 11095 return u.cssClasses; 11096 }, 11097 enumerable: !1, 11098 configurable: !0, 11099 }), 11100 Object.defineProperty(p, "defaultAdapter", { 11101 get: function () { 11102 return { 11103 getAttr: function () { 11104 return null; 11105 }, 11106 setAttr: function () {}, 11107 removeAttr: function () {}, 11108 setContent: function () {}, 11109 registerInteractionHandler: function () {}, 11110 deregisterInteractionHandler: function () {}, 11111 notifyIconAction: function () {}, 11112 }; 11113 }, 11114 enumerable: !1, 11115 configurable: !0, 11116 }), 11117 (p.prototype.init = function () { 11118 var e, t; 11119 this.savedTabIndex = this.adapter.getAttr("tabindex"); 11120 try { 11121 for (var n = s(l), i = n.next(); !i.done; i = n.next()) { 11122 var r = i.value; 11123 this.adapter.registerInteractionHandler(r, this.interactionHandler); 11124 } 11125 } catch (t) { 11126 e = { error: t }; 11127 } finally { 11128 try { 11129 i && !i.done && (t = n.return) && t.call(n); 11130 } finally { 11131 if (e) throw e.error; 11132 } 11133 } 11134 }), 11135 (p.prototype.destroy = function () { 11136 var e, t; 11137 try { 11138 for (var n = s(l), i = n.next(); !i.done; i = n.next()) { 11139 var r = i.value; 11140 this.adapter.deregisterInteractionHandler(r, this.interactionHandler); 11141 } 11142 } catch (t) { 11143 e = { error: t }; 11144 } finally { 11145 try { 11146 i && !i.done && (t = n.return) && t.call(n); 11147 } finally { 11148 if (e) throw e.error; 11149 } 11150 } 11151 }), 11152 (p.prototype.setDisabled = function (t) { 11153 this.savedTabIndex && (t ? (this.adapter.setAttr("tabindex", "-1"), this.adapter.removeAttr("role")) : (this.adapter.setAttr("tabindex", this.savedTabIndex), this.adapter.setAttr("role", u.strings.ICON_ROLE))); 11154 }), 11155 (p.prototype.setAriaLabel = function (t) { 11156 this.adapter.setAttr("aria-label", t); 11157 }), 11158 (p.prototype.setContent = function (t) { 11159 this.adapter.setContent(t); 11160 }), 11161 (p.prototype.handleInteraction = function (t) { 11162 var e = "Enter" === t.key || 13 === t.keyCode; 11163 ("click" !== t.type && !e) || (t.preventDefault(), this.adapter.notifyIconAction()); 11164 }), 11165 p); 11166 function p(t) { 11167 var e = a.call(this, o(o({}, p.defaultAdapter), t)) || this; 11168 return ( 11169 (e.savedTabIndex = null),
11170 (e.interactionHandler = function (t) { 11171 e.handleInteraction(t); 11172 }), 11173 e 11174 ); 11175 } 11176 (e.MDCTextFieldIconFoundation = d), (e.default = d); 11177 }, 11178 function (t, e, n) { 11179 "use strict"; 11180 Object.defineProperty(e, "__esModule", { value: !0 }), (e.cssClasses = e.strings = void 0); 11181 e.strings = { ICON_EVENT: "MDCTextField:icon", ICON_ROLE: "button" }; 11182 e.cssClasses = { ROOT: "mdc-text-field__icon" }; 11183 }, 11184 function (t, e, n) { 11185 "use strict"; 11186 var i, 11187 r = 11188 (this && this.__extends) || 11189 ((i = function (t, e) { 11190 return (i = 11191 Object.setPrototypeOf || 11192 ({ __proto__: [] } instanceof Array && 11193 function (t, e) { 11194 t.__proto__ = e; 11195 }) || 11196 function (t, e) { 11197 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 11198 })(t, e); 11199 }), 11200 function (t, e) { 11201 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 11202 function n() { 11203 this.constructor = t; 11204 } 11205 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 11206 }), 11207 o = 11208 (this && this.__assign) || 11209 function () { 11210 return (o = 11211 Object.assign || 11212 function (t) { 11213 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 11214 return t; 11215 }).apply(this, arguments); 11216 }, 11217 T = 11218 (this && this.__values) || 11219 function (t) { 11220 var e = "function" == typeof Symbol && Symbol.iterator, 11221 n = e && t[e], 11222 i = 0; 11223 if (n) return n.call(t); 11224 if (t && "number" == typeof t.length) 11225 return { 11226 next: function () { 11227 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 11228 }, 11229 }; 11230 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 11231 }; 11232 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTooltipFoundation = void 0); 11233 var s, 11234 a = n(23), 11235 h = n(10), 11236 c = n(0), 11237 u = n(6), 11238 b = n(42), 11239 l = b.CssClasses.RICH, 11240 d = b.CssClasses.SHOWN, 11241 p = b.CssClasses.SHOWING, 11242 f = b.CssClasses.SHOWING_TRANSITION, 11243 y = b.CssClasses.HIDE, 11244 C = b.CssClasses.HIDE_TRANSITION, 11245 E = b.CssClasses.MULTILINE_TOOLTIP; 11246 (s = s || {}).POLL_ANCHOR = "poll_anchor"; 11247 var g, 11248 _ = "undefined" != typeof window, 11249 m = 11250 ((g = c.MDCFoundation), 11251 r(v, g), 11252 Object.defineProperty(v, "defaultAdapter", { 11253 get: function () { 11254 return { 11255 getAttribute: function () { 11256 return null; 11257 }, 11258 setAttribute: function () {}, 11259 removeAttribute: function () {}, 11260 addClass: function () {}, 11261 hasClass: function () { 11262 return !1; 11263 }, 11264 removeClass: function () {}, 11265 getComputedStyleProperty: function () { 11266 return ""; 11267 }, 11268 setStyleProperty: function () {}, 11269 setSurfaceAnimationStyleProperty: function () {}, 11270 getViewportWidth: function () { 11271 return 0; 11272 },
11273 getViewportHeight: function () { 11274 return 0; 11275 }, 11276 getTooltipSize: function () { 11277 return { width: 0, height: 0 }; 11278 }, 11279 getAnchorBoundingRect: function () { 11280 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 11281 }, 11282 getParentBoundingRect: function () { 11283 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 11284 }, 11285 getAnchorAttribute: function () { 11286 return null; 11287 }, 11288 setAnchorAttribute: function () { 11289 return null; 11290 }, 11291 isRTL: function () { 11292 return !1; 11293 }, 11294 anchorContainsElement: function () { 11295 return !1; 11296 }, 11297 tooltipContainsElement: function () { 11298 return !1; 11299 }, 11300 focusAnchorElement: function () {}, 11301 registerEventHandler: function () {}, 11302 deregisterEventHandler: function () {}, 11303 registerAnchorEventHandler: function () {}, 11304 deregisterAnchorEventHandler: function () {}, 11305 registerDocumentEventHandler: function () {}, 11306 deregisterDocumentEventHandler: function () {}, 11307 registerWindowEventHandler: function () {}, 11308 deregisterWindowEventHandler: function () {}, 11309 notifyHidden: function () {}, 11310 getTooltipCaretBoundingRect: function () { 11311 return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 }; 11312 }, 11313 setTooltipCaretStyle: function () {}, 11314 clearTooltipCaretStyles: function () {}, 11315 getActiveElement: function () { 11316 return null; 11317 }, 11318 }; 11319 }, 11320 enumerable: !1, 11321 configurable: !0, 11322 }), 11323 (v.prototype.init = function () { 11324 (this.richTooltip = this.adapter.hasClass(l)), 11325 (this.persistentTooltip = "true" === this.adapter.getAttribute(b.attributes.PERSISTENT)), 11326 (this.interactiveTooltip = !!this.adapter.getAnchorAttribute(b.attributes.ARIA_EXPANDED) && "dialog" === this.adapter.getAnchorAttribute(b.attributes.ARIA_HASPOPUP)), 11327 (this.hasCaret = this.richTooltip && "true" === this.adapter.getAttribute(b.attributes.HAS_CARET)); 11328 }), 11329 (v.prototype.isShown = function () { 11330 return this.tooltipShown; 11331 }), 11332 (v.prototype.isRich = function () { 11333 return this.richTooltip; 11334 }), 11335 (v.prototype.isPersistent = function () { 11336 return this.persistentTooltip; 11337 }), 11338 (v.prototype.handleAnchorMouseEnter = function () { 11339 var t = this; 11340 this.tooltipShown 11341 ? this.show() 11342 : (this.clearHideTimeout(), 11343 (this.showTimeout = setTimeout(function () { 11344 t.show(); 11345 }, this.showDelayMs))); 11346 }), 11347 (v.prototype.handleAnchorTouchstart = function () { 11348 var t = this; 11349 (this.showTimeout = setTimeout(function () { 11350 t.show(); 11351 }, this.showDelayMs)), 11352 this.adapter.registerWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch); 11353 }), 11354 (v.prototype.preventContextMenuOnLongTouch = function (t) { 11355 t.preventDefault(); 11356 }), 11357 (v.prototype.handleAnchorTouchend = function () { 11358 this.clearShowTimeout(), this.isShown() || this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch); 11359 }), 11360 (v.prototype.handleAnchorFocus = function (t) { 11361 var e = this, 11362 n = t.relatedTarget; 11363 (n instanceof HTMLElement && this.adapter.tooltipContainsElement(n)) || 11364 (this.showTimeout = setTimeout(function () { 11365 e.show(); 11366 }, this.showDelayMs)); 11367 }), 11368 (v.prototype.handleAnchorMouseLeave = function () { 11369 var t = this; 11370 this.clearShowTimeout(), 11371 (this.hideTimeout = setTimeout(function () { 11372 t.hide(); 11373 }, this.hideDelayMs)); 11374 }), 11375 (v.prototype.handleAnchorClick = function () { 11376 this.tooltipShown ? this.hide() : this.show(); 11377 }), 11378 (v.prototype.handleDocumentClick = function (t) { 11379 var e = t.target instanceof HTMLElement && (this.adapter.anchorContainsElement(t.target) || this.adapter.tooltipContainsElement(t.target)); 11380 (this.richTooltip && this.persistentTooltip && e) || this.hide(); 11381 }), 11382 (v.prototype.handleKeydown = function (t) { 11383 if (u.normalizeKey(t) === u.KEY.ESCAPE) { 11384 var e = this.adapter.getActiveElement(); 11385 e instanceof HTMLElement && this.adapter.tooltipContainsElement(e) && this.adapter.focusAnc
11385horElement(), this.hide(); 11386 } 11387 }), 11388 (v.prototype.handleAnchorBlur = function (t) { 11389 if (this.richTooltip) { 11390 if (t.relatedTarget instanceof HTMLElement && this.adapter.tooltipContainsElement(t.relatedTarget)) return; 11391 if (null === t.relatedTarget && this.interactiveTooltip) return; 11392 } 11393 this.hide(); 11394 }), 11395 (v.prototype.handleTooltipMouseEnter = function () { 11396 this.show(); 11397 }), 11398 (v.prototype.handleTooltipMouseLeave = function () { 11399 var t = this; 11400 this.clearShowTimeout(), 11401 (this.hideTimeout = setTimeout(function () { 11402 t.hide(); 11403 }, this.hideDelayMs)); 11404 }), 11405 (v.prototype.handleRichTooltipFocusOut = function (t) { 11406 (t.relatedTarget instanceof HTMLElement && (this.adapter.anchorContainsElement(t.relatedTarget) || this.adapter.tooltipContainsElement(t.relatedTarget))) || 11407 (null === t.relatedTarget && this.interactiveTooltip) || 11408 this.hide(); 11409 }), 11410 (v.prototype.handleWindowScrollEvent = function () { 11411 this.persistentTooltip ? this.handleWindowChangeEvent() : this.hide(); 11412 }), 11413 (v.prototype.handleWindowChangeEvent = function () { 11414 var t = this; 11415 this.animFrame.request(s.POLL_ANCHOR, function () { 11416 t.repositionTooltipOnAnchorMove(); 11417 }); 11418 }), 11419 (v.prototype.show = function () { 11420 var e, 11421 t, 11422 n = this; 11423 if ((this.clearHideTimeout(), this.clearShowTimeout(), !this.tooltipShown)) { 11424 (this.tooltipShown = !0), 11425 this.adapter.removeAttribute("aria-hidden"), 11426 this.richTooltip && (this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "true"), this.adapter.registerEventHandler("focusout", this.richTooltipFocusOutHandler)), 11427 this.persistentTooltip || (this.adapter.registerEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.registerEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), 11428 this.adapter.removeClass(y), 11429 this.adapter.addClass(p), 11430 this.isTooltipMultiline() && !this.richTooltip && this.adapter.addClass(E), 11431 (this.anchorRect = this.adapter.getAnchorBoundingRect()), 11432 (this.parentRect = this.adapter.getParentBoundingRect()), 11433 this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip(), 11434 this.adapter.registerAnchorEventHandler("blur", this.anchorBlurHandler), 11435 this.adapter.registerDocumentEventHandler("click", this.documentClickHandler), 11436 this.adapter.registerDocumentEventHandler("keydown", this.documentKeydownHandler), 11437 this.adapter.registerWindowEventHandler("scroll", this.windowScrollHandler), 11438 this.adapter.registerWindowEventHandler("resize", this.windowResizeHandler); 11439 try { 11440 for (var i = T(this.addAncestorScrollEventListeners), r = i.next(); !r.done; r = i.next()) (0, r.value)(); 11441 } catch (t) { 11442 e = { error: t }; 11443 } finally { 11444 try { 11445 r && !r.done && (t = i.return) && t.call(i); 11446 } finally { 11447 if (e) throw e.error; 11448 } 11449 } 11450 this.frameId = requestAnimationFrame(function () { 11451 n.clearAllAnimationClasses(), n.adapter.addClass(d), n.adapter.addClass(f); 11452 }); 11453 } 11454 }), 11455 (v.prototype.hide = function () { 11456 var e, t; 11457 if ((this.clearHideTimeout(), this.clearShowTimeout(), this.tooltipShown)) { 11458 this.frameId && cancelAnimationFrame(this.frameId), 11459 (this.tooltipShown = !1), 11460 this.adapter.setAttribute("aria-hidden", "true"), 11461 this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), 11462 this.richTooltip && this.interactiveTooltip && this.adapter.setAnchorAttribute("aria-expanded", "false"), 11463 this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), 11464 this.clearAllAnimationClasses(), 11465 this.adapter.addClass(y), 11466 this.adapter.addClass(C), 11467 this.adapter.removeClass(d), 11468 this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), 11469 this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), 11470 this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), 11471 this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), 11472 this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler), 11473 this.adapter.deregisterWindowEventHandler("contextmenu", this.preventContextMenuOnLongTouch); 11474 try { 11475 for (var n = T(this.removeAncestorScrollEventListeners), i = n.next(); !i.done; i = n.next()) (0, i.value)(); 11476 } catch (t) { 11477 e = { error: t }; 11478 } finally { 11479 try { 11480 i && !i.done && (t = n.return) && t.call(n); 11481 } finally { 11482 if (e) throw e.error; 11483 } 11484 } 11485 } 11486 }), 11487 (v.prototype.handleTransitionEnd = function () { 11488 var t = this.adapter.hasClass(y); 11489 this.adapter.removeClass(p), this.adapter.removeClass(f), this.adapter.removeClass(y), this.adapter.removeClass(C), t && this.adapter.notifyHidden(); 11490 }), 11491 (v.prototype.clearAllAnimationClasses = function () { 11492 this.adapter.removeClass(f), this.adapter.removeClass(C); 11493 }), 11494 (v.prototype.setTooltipPosition = function (t) { 11495 var e = t.xPos, 11496 n = t.yPos, 11497 i = t.withCaretPos; 11498 this.hasCaret && i ? (this.tooltipPositionWithCaret = i) : (e && (this.xTooltipPos = e), n && (this.yTooltipPos = n)); 11499 }), 11500 (v.prototype.setAnchorBoundaryType = function (t) { 11501 t === b.AnchorBoundaryType.UNBOUNDED ? (this.anchorGap = b.numbers.UNBOUNDED_ANCHOR_GAP) : (this.anchorGap = b.numbers.BOUNDED_ANCHOR_GAP); 11502 }), 11503 (v.prototype.setShowDelay = function (t) { 11504 this.showDelayMs = t; 11505 }), 11506 (v.prototype.setHideDelay = function (t) { 11507 this.hideDelayMs = t; 11508 }), 11509 (v.prototype.isTooltipMultiline = function () { 11510 var t = this.adapter.getTooltipSize(); 11511 return t.height > b.numbers.MIN_HEIGHT && t.width >= b.numbers.MAX_WIDTH; 11512 }), 11513 (v.prototype.positionPlainTooltip = function () { 11514 var t = this.calculateTooltipStyles(this.anchorRect), 11515 e = t.top, 11516 n = t.yTransformOrigin, 11517 i = t.left, 11518 r = t.xTransformOrigin, 11519 o = _ ? h.getCorrectPropertyName(window, "transform") : "transform"; 11520 this.adapter.setSurfaceAnimationStyleProperty(o + "-origin", r + " " + n
11520), this.adapter.setStyleProperty("top", e + "px"), this.adapter.setStyleProperty("left", i + "px"); 11521 }), 11522 (v.prototype.positionRichTooltip = function () { 11523 var t, 11524 e, 11525 n, 11526 i, 11527 r = this.adapter.getComputedStyleProperty("width"); 11528 this.adapter.setStyleProperty("width", r); 11529 var o = this.hasCaret ? this.calculateTooltipWithCaretStyles(this.anchorRect) : this.calculateTooltipStyles(this.anchorRect), 11530 s = o.top, 11531 a = o.yTransformOrigin, 11532 c = o.left, 11533 u = o.xTransformOrigin, 11534 l = _ ? h.getCorrectPropertyName(window, "transform") : "transform"; 11535 this.adapter.setSurfaceAnimationStyleProperty(l + "-origin", u + " " + a); 11536 var d = c - (null !== (e = null === (t = this.parentRect) || void 0 === t ? void 0 : t.left) && void 0 !== e ? e : 0), 11537 p = s - (null !== (i = null === (n = this.parentRect) || void 0 === n ? void 0 : n.top) && void 0 !== i ? i : 0); 11538 this.adapter.setStyleProperty("top", p + "px"), this.adapter.setStyleProperty("left", d + "px"); 11539 }), 11540 (v.prototype.calculateTooltipStyles = function (t) { 11541 if (!t) return { top: 0, left: 0 }; 11542 var e = this.adapter.getTooltipSize(), 11543 n = this.calculateYTooltipDistance(t, e.height), 11544 i = this.calculateXTooltipDistance(t, e.width); 11545 return { top: n.distance, yTransformOrigin: n.yTransformOrigin, left: i.distance, xTransformOrigin: i.xTransformOrigin }; 11546 }), 11547 (v.prototype.calculateXTooltipDistance = function (t, e) { 11548 var n, 11549 i, 11550 r, 11551 o, 11552 s, 11553 a = !this.adapter.isRTL(); 11554 s = this.richTooltip 11555 ? ((n = a ? t.left - e : t.right), (i = a ? t.right : t.left - e), (o = a ? b.strings.RIGHT : b.strings.LEFT), a ? b.strings.LEFT : b.strings.RIGHT) 11556 : ((n = a ? t.left : t.right - e), (i = a ? t.right - e : t.left), (r = t.left + (t.width - e) / 2), (o = a ? b.strings.LEFT : b.strings.RIGHT), a ? b.strings.RIGHT : b.strings.LEFT); 11557 var c = this.richTooltip ? this.determineValidPositionOptions(n, i) : this.determineValidPositionOptions(r, n, i); 11558 if (this.xTooltipPos === b.XPosition.START && c.has(n)) return { distance: n, xTransformOrigin: o }; 11559 if (this.xTooltipPos === b.XPosition.END && c.has(i)) return { distance: i, xTransformOrigin: s }; 11560 if (this.xTooltipPos === b.XPosition.CENTER && c.has(r)) return { distance: r, xTransformOrigin: b.strings.CENTER }; 11561 var u = (this.richTooltip 11562 ? [ 11563 { distance: i, xTransformOrigin: s }, 11564 { distance: n, xTransformOrigin: o }, 11565 ] 11566 : [ 11567 { distance: r, xTransformOrigin: b.strings.CENTER }, 11568 { distance: n, xTransformOrigin: o }, 11569 { distance: i, xTransformOrigin: s }, 11570 ] 11571 ).find(function (t) { 11572 var e = t.distance; 11573 return c.has(e); 11574 }); 11575 return ( 11576 u || 11577 (t.left < 0 11578 ? { distance: this.minViewportTooltipThreshold, xTransformOrigin: b.strings.LEFT } 11579 : { distance: this.adapter.getViewportWidth() - (e + this.minViewportTooltipThreshold), xTransformOrigin: b.strings.RIGHT }) 11580 ); 11581 }), 11582 (v.prototype.determineValidPositionOptions = function () { 11583 for (var e, t, n = [], i = 0; i < arguments.length; i++) n[i] = arguments[i]; 11584 var r = new Set(), 11585 o = new Set(); 11586 try { 11587 for (var s = T(n), a = s.next(); !a.done; a = s.next()) { 11588 var c = a.value; 11589 this.positionHonorsViewportThreshold(c) ? r.add(c) : this.positionDoesntCollideWithViewport(c) && o.add(c); 11590 } 11591 } catch (t) { 11592 e = { error: t }; 11593 } finally { 11594 try { 11595 a && !a.done && (t = s.return) && t.call(s); 11596 } finally { 11597 if (e) throw e.error; 11598 } 11599 } 11600 return r.size ? r : o; 11601 }), 11602 (v.prototype.positionHonorsViewportThreshold = function (t) { 11603 var e = this.adapter.getViewportWidth(); 11604 return t + this.adapter.getTooltipSize().width <= e - this.minViewportTooltipThreshold && t >= this.minViewportTooltipThreshold; 11605 }), 11606 (v.prototype.positionDoesntCollideWithViewport = function (t) { 11607 var e = this.adapter.getViewportWidth(); 11608 return t + this.adapter.getTooltipSize().width <= e && 0 <= t; 11609 }), 11610 (v.prototype.calculateYTooltipDistance = function (t, e) { 11611 var n = t.bottom + this.anchorGap, 11612 i = t.top - (this.anchorGap + e), 11613 r = this.determineValidYPositionOptions(i, n); 11614 return this.yTooltipPos === b.YPosition.ABOVE && r.has(i) 11615 ? { distance: i, yTransformOrigin: b.strings.BOTTOM } 11616 : this.yTooltipPos === b.YPosition.BELOW && r.has(n) 11617 ? { distance: n, yTransformOrigin: b.strings.TOP } 11618 : r.has(n) 11619 ? { distance: n, yTransformOrigin: b.strings.TOP } 11620 : r.has(i) 11621 ? { distance: i, yTransformOrigin: b.strings.BOTTOM } 11622 : { distance: n, yTransformOrigin: b.strings.TOP }; 11623 }), 11624 (v.prototype.determineValidYPositionOptions = function (t, e) { 11625 var n = new Set(), 11626 i = new Set(); 11627 return ( 11628 this.yPositionHonorsViewportThreshold(t) ? n.add(t) : this.yPositionDoesntCollideWithViewport(t) && i.add(t), 11629 this.yPositionHonorsViewportThreshold(e) ? n.add(e) : this.yPositionDoesntCollideWithViewport(e) && i.add(e), 11630 n.size ? n : i 11631 ); 11632 }), 11633 (v.prototype.yPositionHonorsViewportThreshold = function (t) {
11634 var e = this.adapter.getViewportHeight(); 11635 return t + this.adapter.getTooltipSize().height + this.minViewportTooltipThreshold <= e && t >= this.minViewportTooltipThreshold; 11636 }), 11637 (v.prototype.yPositionDoesntCollideWithViewport = function (t) { 11638 var e = this.adapter.getViewportHeight(); 11639 return t + this.adapter.getTooltipSize().height <= e && 0 <= t; 11640 }), 11641 (v.prototype.calculateTooltipWithCaretStyles = function (t) { 11642 this.adapter.clearTooltipCaretStyles(); 11643 var e = this.adapter.getTooltipCaretBoundingRect(); 11644 if (!t || !e) return { position: b.PositionWithCaret.DETECTED, top: 0, left: 0 }; 11645 var n = e.width / b.numbers.ANIMATION_SCALE, 11646 i = e.height / b.numbers.ANIMATION_SCALE / 2, 11647 r = this.adapter.getTooltipSize(), 11648 o = this.calculateYWithCaretDistanceOptions(t, r.height, { caretWidth: n, caretHeight: i }), 11649 s = this.calculateXWithCaretDistanceOptions(t, r.width, { caretWidth: n, caretHeight: i }), 11650 a = this.validateTooltipWithCaretDistances(o, s); 11651 a.size < 1 && (a = this.generateBackupPositionOption(t, r, { caretWidth: n, caretHeight: i })); 11652 var c = this.determineTooltipWithCaretDistance(a), 11653 u = c.position, 11654 l = c.xDistance, 11655 d = c.yDistance, 11656 p = this.setCaretPositionStyles(u, { caretWidth: n, caretHeight: i }); 11657 return { yTransformOrigin: p.yTransformOrigin, xTransformOrigin: p.xTransformOrigin, top: d, left: l }; 11658 }), 11659 (v.prototype.calculateXWithCaretDistanceOptions = function (t, e, n) { 11660 var i = n.caretWidth, 11661 r = n.caretHeight, 11662 o = !this.adapter.isRTL(), 11663 s = t.left + t.width / 2, 11664 a = t.left - (e + this.anchorGap + r), 11665 c = t.right + this.anchorGap + r, 11666 u = o ? a : c, 11667 l = o ? c : a, 11668 d = s - (b.numbers.CARET_INDENTATION + i / 2), 11669 p = s - (e - b.numbers.CARET_INDENTATION - i / 2), 11670 h = o ? d : p, 11671 f = o ? p : d, 11672 y = s - e / 2; 11673 return new Map([ 11674 [b.XPositionWithCaret.START, h], 11675 [b.XPositionWithCaret.CENTER, y], 11676 [b.XPositionWithCaret.END, f], 11677 [b.XPositionWithCaret.SIDE_END, l], 11678 [b.XPositionWithCaret.SIDE_START, u], 11679 ]); 11680 }), 11681 (v.prototype.calculateYWithCaretDistanceOptions = function (t, e, n) { 11682 var i = n.caretWidth, 11683 r = n.caretHeight, 11684 o = t.top + t.height / 2, 11685 s = t.bottom + this.anchorGap + r, 11686 a = t.top - (this.anchorGap + e + r), 11687 c = o - (b.numbers.CARET_INDENTATION + i / 2), 11688 u = o - e / 2, 11689 l = o - (e - b.numbers.CARET_INDENTATION - i / 2); 11690 return new Map([ 11691 [b.YPositionWithCaret.ABOVE, a], 11692 [b.YPositionWithCaret.BELOW, s], 11693 [b.YPositionWithCaret.SIDE_TOP, c], 11694 [b.YPositionWithCaret.SIDE_CENTER, u], 11695 [b.YPositionWithCaret.SIDE_BOTTOM, l], 11696 ]); 11697 }), 11698 (v.prototype.repositionTooltipOnAnchorMove = function () { 11699 var t = this.adapter.getAnchorBoundingRect
11699(); 11700 t && 11701 this.anchorRect && 11702 ((t.top === this.anchorRect.top && t.left === this.anchorRect.left && t.height === this.anchorRect.height && t.width === this.anchorRect.width) || 11703 ((this.anchorRect = t), (this.parentRect = this.adapter.getParentBoundingRect()), this.richTooltip ? this.positionRichTooltip() : this.positionPlainTooltip())); 11704 }), 11705 (v.prototype.validateTooltipWithCaretDistances = function (t, e) { 11706 var n, 11707 i, 11708 r, 11709 o, 11710 s, 11711 a, 11712 c = new Map(), 11713 u = new Map(), 11714 l = new Map([ 11715 [b.YPositionWithCaret.ABOVE, [b.XPositionWithCaret.START, b.XPositionWithCaret.CENTER, b.XPositionWithCaret.END]], 11716 [b.YPositionWithCaret.BELOW, [b.XPositionWithCaret.START, b.XPositionWithCaret.CENTER, b.XPositionWithCaret.END]], 11717 [b.YPositionWithCaret.SIDE_TOP, [b.XPositionWithCaret.SIDE_START, b.XPositionWithCaret.SIDE_END]], 11718 [b.YPositionWithCaret.SIDE_CENTER, [b.XPositionWithCaret.SIDE_START, b.XPositionWithCaret.SIDE_END]], 11719 [b.YPositionWithCaret.SIDE_BOTTOM, [b.XPositionWithCaret.SIDE_START, b.XPositionWithCaret.SIDE_END]], 11720 ]); 11721 try { 11722 for (var d = T(l.keys()), p = d.next(); !p.done; p = d.next()) { 11723 var h = p.value, 11724 f = t.get(h); 11725 if (this.yPositionHonorsViewportThreshold(f)) 11726 try { 11727 for (var y = ((r = void 0), T(l.get(h))), C = y.next(); !C.done; C = y.next()) { 11728 var E = C.value, 11729 g = e.get(E); 11730 if (this.positionHonorsViewportThreshold(g)) { 11731 var _ = this.caretPositionOptionsMapping(E, h); 11732 c.set(_, { xDistance: g, yDistance: f }); 11733 } 11734 } 11735 } catch (t) { 11736 r = { error: t }; 11737 } finally { 11738 try { 11739 C && !C.done && (o = y.return) && o.call(y); 11740 } finally { 11741 if (r) throw r.error; 11742 } 11743 } 11744 else if (this.yPositionDoesntCollideWithViewport(f)) 11745 try { 11746 for (var m = ((s = void 0), T(l.get(h))), v = m.next(); !v.done; v = m.next()) 11747 (E = v.value), (g = e.get(E)), this.positionDoesntCollideWithViewport(g) && ((_ = this.caretPositionOptionsMapping(E, h)), u.set(_, { xDistance: g, yDistance: f })); 11748 } catch (t) { 11749 s = { error: t }; 11750 } finally { 11751 try { 11752 v && !v.done && (a = m.return) && a.call(m); 11753 } finally { 11754 if (s) throw s.error; 11755 } 11756 } 11757 } 11758 } catch (t) { 11759 n = { error: t }; 11760 } finally { 11761 try { 11762 p && !p.done && (i = d.return) && i.call(d); 11763 } finally { 11764 if (n) throw n.error; 11765 } 11766 } 11767 return c.size ? c : u; 11768 }), 11769 (v.prototype.generateBackupPositionOption = function (t, e, n) { 11770 var i, 11771 r, 11772 o, 11773 s, 11774 a = !this.adapter.isRTL(); 11775 (r = 11776 t.left < 0 11777 ? ((i = this.minViewportTooltipThreshold + n.caretHeight), a ? b.XPositionWithCaret.END : b.XPositionWithCaret.START) 11778 : ((i = this.adapter.getViewportWidth() - (e.width + this.minViewportTooltipThreshold + n.caretHeight)), a ? b.XPositionWithCaret.START : b.XPositionWithCaret.END)), 11779 (s = 11780 t.top < 0 11781 ? ((o = this.minViewportTooltipThreshold + n.caretHeight), b.YPositionWithCaret.BELOW) 11782 : ((o = this.adapter.getViewportHe
11782ight() - (e.height + this.minViewportTooltipThreshold + n.caretHeight)), b.YPositionWithCaret.ABOVE)); 11783 var c = this.caretPositionOptionsMapping(r, s); 11784 return new Map([[c, { xDistance: i, yDistance: o }]]); 11785 }), 11786 (v.prototype.determineTooltipWithCaretDistance = function (e) { 11787 if (e.has(this.tooltipPositionWithCaret)) { 11788 var t = e.get(this.tooltipPositionWithCaret); 11789 return { position: this.tooltipPositionWithCaret, xDistance: t.xDistance, yDistance: t.yDistance }; 11790 } 11791 var n = [ 11792 b.PositionWithCaret.ABOVE_START, 11793 b.PositionWithCaret.ABOVE_CENTER, 11794 b.PositionWithCaret.ABOVE_END, 11795 b.PositionWithCaret.TOP_SIDE_START, 11796 b.PositionWithCaret.CENTER_SIDE_START, 11797 b.PositionWithCaret.BOTTOM_SIDE_START, 11798 b.PositionWithCaret.TOP_SIDE_END, 11799 b.PositionWithCaret.CENTER_SIDE_END, 11800 b.PositionWithCaret.BOTTOM_SIDE_END, 11801 b.PositionWithCaret.BELOW_START, 11802 b.PositionWithCaret.BELOW_CENTER, 11803 b.PositionWithCaret.BELOW_END, 11804 ].find(function (t) { 11805 return e.has(t); 11806 }), 11807 i = e.get(n); 11808 return { position: n, xDistance: i.xDistance, yDistance: i.yDistance }; 11809 }), 11810 (v.prototype.caretPositionOptionsMapping = function (t, e) { 11811 switch (e) { 11812 case b.YPositionWithCaret.ABOVE: 11813 if (t === b.XPositionWithCaret.START) return b.PositionWithCaret.ABOVE_START; 11814 if (t === b.XPositionWithCaret.CENTER) return b.PositionWithCaret.ABOVE_CENTER; 11815 if (t === b.XPositionWithCaret.END) return b.PositionWithCaret.ABOVE_END; 11816 break; 11817 case b.YPositionWithCaret.BELOW: 11818 if (t === b.XPositionWithCaret.START) return b.PositionWithCaret.BELOW_START; 11819 if (t === b.XPositionWithCaret.CENTER) return b.PositionWithCaret.BELOW_CENTER; 11820 if (t === b.XPositionWithCaret.END) return b.PositionWithCaret.BELOW_END; 11821 break; 11822 case b.YPositionWithCaret.SIDE_TOP: 11823 if (t === b.XPositionWithCaret.SIDE_START) return b.PositionWithCaret.TOP_SIDE_START; 11824 if (t === b.XPositionWithCaret.SIDE_END) return b.PositionWithCaret.TOP_SIDE_END; 11825 break; 11826 case b.YPositionWithCaret.SIDE_CENTER: 11827 if (t === b.XPositionWithCaret.SIDE_START) return b.PositionWithCaret.CENTER_SIDE_START; 11828 if (t === b.XPositionWithCaret.SIDE_END) return b.PositionWithCaret.CENTER_SIDE_END; 11829 break; 11830 case b.YPositionWithCaret.SIDE_BOTTOM: 11831 if (t === b.XPositionWithCaret.SIDE_START) return b.PositionWithCaret.BOTTOM_SIDE_START; 11832 if (t === b.XPositionWithCaret.SIDE_END) return b.PositionWithCaret.BOTTOM_SIDE_END; 11833 } 11834 throw new Error("MDCTooltipFoundation: Invalid caret position of " + t + ", " + e); 11835 }), 11836 (v.prototype.setCaretPositionStyles = function (t, e) { 11837 var n, 11838 i, 11839 r = this.calculateCaretPositionOnTooltip(t, e); 11840 if (!r) return { yTransformOrigin: 0, xTransformOrigin: 0 }; 11841 this.adapter.clearTooltipCaretStyles(), this.adapter.setTooltipCaretStyle(r.yAlignment, r.yAxisPx), this.adapter.setTooltipCaretStyle(r.xAlignment, r.xAxisPx); 11842 var o = r.skew * (Math.PI / 180), 11843 s = Math.cos(o); 11844 this.adapter.setTooltipCaretStyle("transform", "rotate(" + r.rotation + "deg) skewY(" + r.skew + "deg) scaleX(" + s + ")"), 11845 this.adapter.setTooltipCaretStyle("transform-origin", r.xAlignment + " " + r.yAlignment); 11846 try { 11847 for (var a = T(r.caretCorners), c = a.next(); !c.done; c = a.next()) { 11848 var u = c.value; 11849 this.adapter.setTooltipCaretStyle(u, "0"); 11850 } 11851 } catch (t) { 11852 n = { error: t }; 11853 } finally { 11854 try { 11855 c && !c.done && (i = a.return) && i.call(a); 11856 } finally { 11857 if (n) throw n.error; 11858 } 11859 } 11860 return { yTransformOrigin: r.yTransformOrigin, xTransformOrigin: r.xTransformOrigin }; 11861 }), 11862 (v.prototype.calculateCaretPositionOnTooltip = function (t, e) { 11863 var n = !this.adapter.isRTL(), 11864 i = this.adapter.getComputedStyleProperty("width"), 11865 r = this.adapter.getComputedStyleProperty("height"); 11866 if (i && r && e) { 11867 var o = "calc((" + i + " - " + e.caretWidth + "px) / 2)", 11868 s = "calc((" + r + " - " + e.caretWidth + "px) / 2)", 11869 a = b.numbers.CARET_INDENTATION + "px", 11870 c = "calc(" + i + " - " + a + ")", 11871 u = "calc(" + r + " - " + a + ")", 11872 l = Math.abs(55), 11873 d = ["border-bottom-right-radius", "border-top-left-radius"], 11874 p = ["border-bottom-left-radius", "border-top-right-radius"]; 11875 switch (t) { 11876 case b.PositionWithCaret.BELOW_CENTER: 11877 return { yAlignment: b.strings.TOP, xAlignment: b.strings.LEFT, yAxisPx: "0", xAxisPx: o, rotation: -35, skew: -20, xTransformOrigin: o, yTransformOrigin: "0", caretCorners: d }; 11878 case b.PositionWithCaret.BELOW_END: 11879 return { 11880 yAlignment: b.strings.TOP, 11881 xAlignment: n ? b.strings.RIGHT : b.strings.LEFT, 11882 yAxisPx: "0", 11883 xAxisPx: a, 11884 rotation: n ? 35 : -35, 11885 skew: n ? 20 : -20, 11886 xTransformOrigin: n ? c : a, 11887 yTransformOrigin: "0", 11888 caretCorners: n ? p : d, 11889 }; 11890 case b.PositionWithCaret.BELOW_START: 11891 return { 11892 yAlignment: b.strings.TOP, 11893 xAlignment: n ? b.strings.LEFT : b.strings.RIGHT, 11894 yAxisPx: "0", 11895 xAxisPx: a, 11896 rotation: n ? -35 : 35, 11897 skew: n ? -20 : 20, 11898 xTransformOrigin: n ? a : c, 11899 yTransformOrigin: "0", 11900 caretCorners: n ? d : p, 11901 }; 11902 case b.PositionWithCaret.TOP_SIDE_
11902END: 11903 return { 11904 yAlignment: b.strings.TOP, 11905 xAlignment: n ? b.strings.LEFT : b.strings.RIGHT, 11906 yAxisPx: a, 11907 xAxisPx: "0", 11908 rotation: n ? l : -1 * l, 11909 skew: n ? -20 : 20, 11910 xTransformOrigin: n ? "0" : i, 11911 yTransformOrigin: a, 11912 caretCorners: n ? d : p, 11913 }; 11914 case b.PositionWithCaret.CENTER_SIDE_END: 11915 return { 11916 yAlignment: b.strings.TOP, 11917 xAlignment: n ? b.strings.LEFT : b.strings.RIGHT, 11918 yAxisPx: s, 11919 xAxisPx: "0", 11920 rotation: n ? l : -1 * l, 11921 skew: n ? -20 : 20, 11922 xTransformOrigin: n ? "0" : i, 11923 yTransformOrigin: s, 11924 caretCorners: n ? d : p, 11925 }; 11926 case b.PositionWithCaret.BOTTOM_SIDE_END: 11927 return { 11928 yAlignment: b.strings.BOTTOM, 11929 xAlignment: n ? b.strings.LEFT : b.strings.RIGHT, 11930 yAxisPx: a, 11931 xAxisPx: "0", 11932 rotation: n ? -1 * l : l, 11933 skew: n ? 20 : -20, 11934 xTransformOrigin: n ? "0" : i, 11935 yTransformOrigin: u, 11936 caretCorners: n ? p : d, 11937 }; 11938 case b.PositionWithCaret.TOP_SIDE_START: 11939 return { 11940 yAlignment: b.strings.TOP, 11941 xAlignment: n ? b.strings.RIGHT : b.strings.LEFT, 11942 yAxisPx: a, 11943 xAxisPx: "0", 11944 rotation: n ? -1 * l : l, 11945 skew: n ? 20 : -20, 11946 xTransformOrigin: n ? i : "0", 11947 yTransformOrigin: a, 11948 caretCorners: n ? p : d, 11949 }; 11950 case b.PositionWithCaret.CENTER_SIDE_START: 11951 return { 11952 yAlignment: b.strings.TOP, 11953 xAlignment: n ? b.strings.RIGHT : b.strings.LEFT, 11954 yAxisPx: s, 11955 xAxisPx: "0", 11956 rotation: n ? -1 * l : l, 11957 skew: n ? 20 : -20, 11958 xTransformOrigin: n ? i : "0", 11959 yTransformOrigin: s, 11960 caretCorners: n ? p : d, 11961 }; 11962 case b.PositionWithCaret.BOTTOM_SIDE_START: 11963 return { 11964 yAlignment: b.strings.BOTTOM, 11965 xAlignment: n ? b.strings.RIGHT : b.strings.LEFT, 11966 yAxisPx: a, 11967 xAxisPx: "0", 11968 rotation: n ? l : -1 * l, 11969 skew: n ? -20 : 20, 11970 xTransformOrigin: n ? i : "0", 11971 yTransformOrigin: u, 11972 caretCorners: n ? d : p, 11973 }; 11974 case b.PositionWithCaret.ABOVE_CENTER: 11975 return { yAlignment: b.strings.BOTTOM, xAlignment: b.strings.LEFT, yAxisPx: "0", xAxisPx: o, rotation: 35, skew: 20, xTransformOrigin: o, yTransformOrigin: r, caretCorners: p }; 11976 case b.PositionWithCaret.ABOVE_END: 11977 return { 11978 yAlignment: b.strings.BOTTOM, 11979 xAlignment: n ? b.strings.RIGHT : b.strings.LEFT, 11980 yAxisPx: "0", 11981 xAxisPx: a, 11982 rotation: n ? -35 : 35, 11983 skew: n ? -20 : 20, 11984 xTransformOrigin: n ? c : a, 11985 yTransformOrigin: r, 11986 caretCorners: n ? d : p, 11987 }; 11988 default: 11989 case b.PositionWithCaret.ABOVE_START: 11990 return { 11991 yAlignment: b.strings.BOTTOM, 11992 xAlignment: n ? b.strings.LEFT : b.strings.RIGHT, 11993 yAxisPx: "0", 11994 xAxisPx: a, 11995 rotation: n ? 35 : -35, 11996 skew: n ? 20 : -20, 11997 xTransformOrigin: n ? a : c, 11998 yTransformOrigin: r, 11999 caretCorners: n ? p : d, 12000 }; 12001 } 12002 } 12003 }), 12004 (v.prototype.clearShowTimeout = function () { 12005 this.showTimeout && (clearTimeout(this.showTimeout), (this.showTimeout = null)); 12006 }), 12007 (v.prototype.clearHideTimeout = function () { 12008 this.hideTimeout && (clearTimeout(this.hideTimeout), (this.hideTimeout = null)); 12009 }), 12010 (v.prototype.attachScrollHandler = function (t) { 12011 var e = this; 12012 this.addAncestorScrollEventListeners.push(function () { 12013 t("scroll", e.windowScrollHandler); 12014 }); 12015 }), 12016 (v.prototype.removeScrollHandler = function (t) { 12017 var e = this; 12018 this.removeAncestorScrollEventListeners.push(function () { 12019 t("scroll", e.windowScrollHandler); 12020 }); 12021 }), 12022 (v.prototype.destroy = function () { 12023 var e, t; 12024 this.frameId && (cancelAnimationFrame(this.frameId), (this.frameId = null)), 12025 this.clearHideTimeout(), 12026 this.clearShowTimeout(), 12027 this.adapter.removeClass(d), 12028 this.adapter.removeClass(f),
12029 this.adapter.removeClass(p), 12030 this.adapter.removeClass(y), 12031 this.adapter.removeClass(C), 12032 this.richTooltip && this.adapter.deregisterEventHandler("focusout", this.richTooltipFocusOutHandler), 12033 this.persistentTooltip || (this.adapter.deregisterEventHandler("mouseenter", this.tooltipMouseEnterHandler), this.adapter.deregisterEventHandler("mouseleave", this.tooltipMouseLeaveHandler)), 12034 this.adapter.deregisterAnchorEventHandler("blur", this.anchorBlurHandler), 12035 this.adapter.deregisterDocumentEventHandler("click", this.documentClickHandler), 12036 this.adapter.deregisterDocumentEventHandler("keydown", this.documentKeydownHandler), 12037 this.adapter.deregisterWindowEventHandler("scroll", this.windowScrollHandler), 12038 this.adapter.deregisterWindowEventHandler("resize", this.windowResizeHandler); 12039 try { 12040 for (var n = T(this.removeAncestorScrollEventListeners), i = n.next(); !i.done; i = n.next()) (0, i.value)(); 12041 } catch (t) { 12042 e = { error: t }; 12043 } finally { 12044 try { 12045 i && !i.done && (t = n.return) && t.call(n); 12046 } finally { 12047 if (e) throw e.error; 12048 } 12049 } 12050 this.animFrame.cancelAll(); 12051 }), 12052 v); 12053 function v(t) { 12054 var e = g.call(this, o(o({}, v.defaultAdapter), t)) || this; 12055 return ( 12056 (e.tooltipShown = !1), 12057 (e.anchorGap = b.numbers.BOUNDED_ANCHOR_GAP), 12058 (e.xTooltipPos = b.XPosition.DETECTED), 12059 (e.yTooltipPos = b.YPosition.DETECTED), 12060 (e.tooltipPositionWithCaret = b.PositionWithCaret.DETECTED), 12061 (e.minViewportTooltipThreshold = b.numbers.MIN_VIEWPORT_TOOLTIP_THRESHOLD), 12062 (e.hideDelayMs = b.numbers.HIDE_DELAY_MS), 12063 (e.showDelayMs = b.numbers.SHOW_DELAY_MS), 12064 (e.anchorRect = null), 12065 (e.parentRect = null), 12066 (e.frameId = null), 12067 (e.hideTimeout = null), 12068 (e.showTimeout = null), 12069 (e.addAncestorScrollEventListeners = new Array()), 12070 (e.removeAncestorScrollEventListeners = new Array()), 12071 (e.animFrame = new a.AnimationFrame()), 12072 (e.anchorBlurHandler = function (t) { 12073 e.handleAnchorBlur(t); 12074 }), 12075 (e.documentClickHandler = function (t) { 12076 e.handleDocumentClick(t); 12077 }), 12078 (e.documentKeydownHandler = function (t) { 12079 e.handleKeydown(t); 12080 }), 12081 (e.tooltipMouseEnterHandler = function () { 12082 e.handleTooltipMouseEnter(); 12083 }), 12084 (e.tooltipMouseLeaveHandler = function () { 12085 e.handleTooltipMouseLeave(); 12086 }), 12087 (e.richTooltipFocusOutHandler = function (t) { 12088 e.handleRichTooltipFocusOut(t); 12089 }), 12090 (e.windowScrollHandler = function () { 12091 e.handleWindowScrollEvent(); 12092 }), 12093 (e.windowResizeHandler = function () { 12094 e.handleWindowChangeEvent(); 12095 }), 12096 e 12097 ); 12098 } 12099 (e.MDCTooltipFoundation = m), (e.default = m); 12100 }, 12101 function (t, e, n) { 12102 "use strict"; 12103 var i, 12104 r = 12105 (this && this.__extends) || 12106 ((i = function (t, e) { 12107 return (i = 12108 Object.setPrototypeOf || 12109 ({ __proto__: [] } instanceof Array && 12110 function (t, e) { 12111 t.__proto__ = e; 12112 }) || 12113 function (t, e) { 12114 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 12115 })(t, e); 12116 }), 12117 function (t, e) { 12118 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 12119 function n() { 12120 this.constructor = t; 12121 } 12122 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 12123 }); 12124 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCFixedTopAppBarFoundation = void 0); 12125 var o, 12126 s = n(9), 12127 a = n(43), 12128 c = 12129 ((o = a.MDCTopAppBarFoundation), 12130 r(u, o), 12131 (u.prototype.handleTargetScroll = function () { 12132 this.adapter.getViewportScrollY() <= 0 12133 ? this.wasScrolled && (this.adapter.removeClass(s.cssClasse
12133s.FIXED_SCROLLED_CLASS), (this.wasScrolled = !1)) 12134 : this.wasScrolled || (this.adapter.addClass(s.cssClasses.FIXED_SCROLLED_CLASS), (this.wasScrolled = !0)); 12135 }), 12136 u); 12137 function u() { 12138 var t = (null !== o && o.apply(this, arguments)) || this; 12139 return (t.wasScrolled = !1), t; 12140 } 12141 (e.MDCFixedTopAppBarFoundation = c), (e.default = c); 12142 }, 12143 function (t, e, n) { 12144 "use strict"; 12145 var i, 12146 r = 12147 (this && this.__extends) || 12148 ((i = function (t, e) { 12149 return (i = 12150 Object.setPrototypeOf || 12151 ({ __proto__: [] } instanceof Array && 12152 function (t, e) { 12153 t.__proto__ = e; 12154 }) || 12155 function (t, e) { 12156 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 12157 })(t, e); 12158 }), 12159 function (t, e) { 12160 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 12161 function n() { 12162 this.constructor = t; 12163 } 12164 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 12165 }); 12166 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCShortTopAppBarFoundation = void 0); 12167 var o, 12168 s = n(9), 12169 a = n(44), 12170 c = 12171 ((o = a.MDCTopAppBarBaseFoundation), 12172 r(u, o), 12173 Object.defineProperty(u.prototype, "isCollapsed", { 12174 get: function () { 12175 return this.collapsed; 12176 }, 12177 enumerable: !1, 12178 configurable: !0, 12179 }), 12180 (u.prototype.init = function () { 12181 o.prototype.init.call(this), 12182 0 < this.adapter.getTotalActionItems() && this.adapter.addClass(s.cssClasses.SHORT_HAS_ACTION_ITEM_CLASS), 12183 this.setAlwaysCollapsed(this.adapter.hasClass(s.cssClasses.SHORT_COLLAPSED_CLASS)); 12184 }), 12185 (u.prototype.setAlwaysCollapsed = function (t) { 12186 (this.isAlwaysCollapsed = !!t), this.isAlwaysCollapsed ? this.collapse() : this.maybeCollapseBar(); 12187 }), 12188 (u.prototype.getAlwaysCollapsed = function () { 12189 return this.isAlwaysCollapsed; 12190 }), 12191 (u.prototype.handleTargetScroll = function () { 12192 this.maybeCollapseBar(); 12193 }), 12194 (u.prototype.maybeCollapseBar = function () { 12195 this.isAlwaysCollapsed || (this.adapter.getViewportScrollY() <= 0 ? this.collapsed && this.uncollapse() : this.collapsed || this.collapse()); 12196 }), 12197 (u.prototype.uncollapse = function () { 12198 this.adapter.removeClass(s.cssClasses.SHORT_COLLAPSED_CLASS), (this.collapsed = !1); 12199 }), 12200 (u.prototype.collapse = function () { 12201 this.adapter.addClass(s.cssClasses.SHORT_COLLAPSED_CLASS), (this.collapsed = !0); 12202 }), 12203 u); 12204 function u(t) { 12205 var e = o.call(this, t) || this; 12206 return (e.collapsed = !1), (e.isAlwaysCollapsed = !1), e; 12207 } 12208 (e.MDCShortTopAppBarFoundation = c), (e.default = c); 12209 }, 12210 function (t, e, n) { 12211 "use strict"; 12212 var i = 12213 (this && this.__createBinding) || 12214 (Object.create 12215 ? function (t, e, n, i) { 12216 void 0 === i && (i = n), 12217 Object.defineProperty(t, i, { 12218 enumerable: !0, 12219 get: function () { 12220 return e[n]; 12221 }, 12222 }); 12223 } 12224 : function (t, e, n, i) { 12225 void 0 === i && (i = n), (t[i] = e[n]); 12226 }), 12227 r = 12228 (this && this.__setModuleDefault) || 12229 (Object.create 12230 ? function (t, e) { 12231 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 12232 } 12233 : function (t, e) { 12234 t.default = e; 12235 }), 12236 o = 12237 (this && this.__importStar) || 12238 function (t) { 12239 if (t && t.__esModule) return t; 12240 var e = {}; 12241 if (null != t) for (var n in t) "default"
12241!== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 12242 return r(e, t), e; 12243 }, 12244 s = 12245 (this && this.__importDefault) || 12246 function (t) { 12247 return t && t.__esModule ? t : { default: t }; 12248 }; 12249 Object.defineProperty(e, "__esModule", { value: !0 }), 12250 (e.topAppBar = e.tooltip = e.textField = e.tabScroller = e.tabIndicator = e.tabBar = e.tab = e.switchControl = e.snackbar = e.slider = e.select = e.segmentedButton = e.ripple = e.radio = e.notchedOutline = e.menuSurface = e.menu = e.list = e.linearProgress = e.lineRipple = e.iconButton = e.formField = e.floatingLabel = e.drawer = e.dom = e.dialog = e.dataTable = e.circularProgress = e.chips = e.checkbox = e.base = e.banner = e.autoInit = void 0); 12251 var a = s(n(121)); 12252 e.autoInit = a.default; 12253 var c = o(n(123)); 12254 e.banner = c; 12255 var u = o(n(126)); 12256 e.base = u; 12257 var l = o(n(128)); 12258 e.checkbox = l; 12259 var d = o(n(130)); 12260 e.chips = d; 12261 var p = o(n(141)); 12262 e.circularProgress = p; 12263 var h = o(n(144)); 12264 e.dataTable = h; 12265 var f = o(n(148)); 12266 e.dialog = f; 12267 var y = o(n(152)); 12268 e.dom = y; 12269 var C = o(n(153)); 12270 e.drawer = C; 12271 var E = o(n(157)); 12272 e.floatingLabel = E; 12273 var g = o(n(159)); 12274 e.formField = g; 12275 var _ = o(n(162)); 12276 e.iconButton = _; 12277 var m = o(n(166)); 12278 e.lineRipple = m; 12279 var v = o(n(168)); 12280 e.linearProgress = v; 12281 var T = o(n(171)); 12282 e.list = T; 12283 var b = o(n(174)); 12284 e.menuSurface = b; 12285 var A = o(n(177)); 12286 e.menu = A; 12287 var O = o(n(180)); 12288 e.notchedOutline = O; 12289 var S = o(n(182)); 12290 e.radio = S; 12291 var I = o(n(185)); 12292 e.ripple = I; 12293 var D = o(n(188)); 12294 e.segmentedButton = D; 12295 var R = o(n(195)); 12296 e.select = R; 12297 var L = o(n(203)); 12298 e.slider = L; 12299 var P = o(n(206)); 12300 e.snackbar = P; 12301 var M = o(n(210)); 12302 e.switchControl = M; 12303 var w = o(n(218)); 12304 e.tabBar = w; 12305 var N = o(n(225)); 12306 e.tabIndicator = N; 12307 var x = o(n(227)); 12308 e.tabScroller = x; 12309 var F = o(n(230)); 12310 e.tab = F; 12311 var j = o(n(233)); 12312 e.textField = j; 12313 var H = o(n(243)); 12314 e.tooltip = H; 12315 var B = o(n(246)); 12316 (e.topAppBar = B), 12317 a.default.register("MDCBanner", c.MDCBanner), 12318 a.default.register("MDCCheckbox", l.MDCCheckbox), 12319 a.default.register("MDCChip", d.MDCChip), 12320 a.default.register("MDCChipSet", d.MDCChipSet), 12321 a.default.register("MDCCircularProgress", p.MDCCircularProgress), 12322 a.default.register("MDCDataTable", h.MDCDataTable), 12323 a.default.register("MDCDialog", f.MDCDialog), 12324 a.default.register("MDCDrawer", C.MDCDrawer), 12325 a.default.register("MDCFloatingLabel", E.MDCFloatingLabel), 12326 a.default.register("MDCFormField", g.MDCFormField), 12327 a.default.register("MDCIconButtonToggle", _.MDCIconButtonToggle), 12328 a.default.register("MDCLineRipple", m.MDCLineRipple), 12329 a.default.register("MDCLinearProgress", v.MDCLinearProgress), 12330 a.default.register("MDCList", T.MDCList), 12331 a.default.register("MDCMenu", A.MDCMenu),
12332 a.default.register("MDCMenuSurface", b.MDCMenuSurface), 12333 a.default.register("MDCNotchedOutline", O.MDCNotchedOutline), 12334 a.default.register("MDCRadio", S.MDCRadio), 12335 a.default.register("MDCRipple", I.MDCRipple), 12336 a.default.register("MDCSegmentedButton", D.MDCSegmentedButton), 12337 a.default.register("MDCSelect", R.MDCSelect), 12338 a.default.register("MDCSlider", L.MDCSlider), 12339 a.default.register("MDCSnackbar", P.MDCSnackbar), 12340 a.default.register("MDCSwitch", M.MDCSwitch), 12341 a.default.register("MDCTabBar", w.MDCTabBar), 12342 a.default.register("MDCTextField", j.MDCTextField), 12343 a.default.register("MDCTooltip", H.MDCTooltip), 12344 a.default.register("MDCTopAppBar", B.MDCTopAppBar); 12345 }, 12346 function (t, e, n) { 12347 "use strict"; 12348 var d = 12349 (this && this.__values) || 12350 function (t) { 12351 var e = "function" == typeof Symbol && Symbol.iterator, 12352 n = e && t[e], 12353 i = 0; 12354 if (n) return n.call(t); 12355 if (t && "number" == typeof t.length) 12356 return { 12357 next: function () { 12358 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 12359 }, 12360 }; 12361 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 12362 }; 12363 Object.defineProperty(e, "__esModule", { value: !0 }), (e.mdcAutoInit = void 0); 12364 var i = n(122), 12365 p = i.strings.AUTO_INIT_ATTR, 12366 h = i.strings.AUTO_INIT_STATE_ATTR, 12367 f = i.strings.INITIALIZED_STATE, 12368 y = {}, 12369 r = console.warn.bind(console); 12370 function o(t) { 12371 var e, n; 12372 void 0 === t && (t = document); 12373 var i = [], 12374 r = [].slice.call(t.querySelectorAll("[" + p + "]")); 12375 r = r.filter(function (t) { 12376 return t.getAttribute(h) !== f; 12377 }); 12378 try { 12379 for (var o = d(r), s = o.next(); !s.done; s = o.next()) { 12380 var a = s.value, 12381 c = a.getAttribute(p); 12382 if (!c) throw new Error("(mdc-auto-init) Constructor name must be given."); 12383 var u = y[c]; 12384 if ("function" != typeof u) throw new Error("(mdc-auto-init) Could not find constructor in registry for " + c); 12385 var l = u.attachTo(a); 12386 Object.defineProperty(a, c, { configurable: !0, enumerable: !1, value: l, writable: !1 }), i.push(l), a.setAttribute(h, f); 12387 } 12388 } catch (t) { 12389 e = { error: t }; 12390 } finally { 12391 try { 12392 s && !s.done && (n = o.return) && n.call(o); 12393 } finally { 12394 if (e) throw e.error; 12395 } 12396 } 12397 return ( 12398 (function (t, e, n) { 12399 var i; 12400 void 0 === n && (n = !1), 12401 "function" == typeof CustomEvent ? (i = new CustomEvent(t, { bubbles: n, detail: e })) : (i = document.createEvent("CustomEvent")).initCustomEvent(t, n, !1, e), 12402 document.dispatchEvent(i); 12403 })("MDCAutoInit:End", {}), 12404 i 12405 ); 12406 } 12407 ((e.mdcAutoInit = o).register = function (t, e, n) { 12408 if ((void 0 === n && (n = r), "function" != typeof e)) throw new Error("(mdc-auto-init) Invalid Constructor value: " + e + ". Expected function."); 12409 var i = y[t]; 12410 i && n("(mdc-auto-init) Overriding registration for " + t + " with " + e + ". Was: " + i), (y[t] = e); 12411 }), 12412 (o.deregister = function (t) { 12413 delete y[t]; 12414 }), 12415 (o.deregisterAll = function () {
12416 Object.keys(y).forEach(this.deregister, this); 12417 }), 12418 (e.default = o); 12419 }, 12420 function (t, e, n) { 12421 "use strict"; 12422 Object.defineProperty(e, "__esModule", { value: !0 }), (e.strings = void 0), (e.strings = { AUTO_INIT_ATTR: "data-mdc-auto-init", AUTO_INIT_STATE_ATTR: "data-mdc-auto-init-state", INITIALIZED_STATE: "initialized" }); 12423 }, 12424 function (t, e, n) { 12425 "use strict"; 12426 var i = 12427 (this && this.__createBinding) || 12428 (Object.create 12429 ? function (t, e, n, i) { 12430 void 0 === i && (i = n), 12431 Object.defineProperty(t, i, { 12432 enumerable: !0, 12433 get: function () { 12434 return e[n]; 12435 }, 12436 }); 12437 } 12438 : function (t, e, n, i) { 12439 void 0 === i && (i = n), (t[i] = e[n]); 12440 }), 12441 r = 12442 (this && this.__exportStar) || 12443 function (t, e) { 12444 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12445 }; 12446 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(124), e), r(n(125), e), r(n(18), e), r(n(45), e); 12447 }, 12448 function (t, e, n) { 12449 "use strict"; 12450 Object.defineProperty(e, "__esModule", { value: !0 }); 12451 }, 12452 function (t, e, n) { 12453 "use strict"; 12454 var i, 12455 r = 12456 (this && this.__extends) || 12457 ((i = function (t, e) { 12458 return (i = 12459 Object.setPrototypeOf || 12460 ({ __proto__: [] } instanceof Array && 12461 function (t, e) { 12462 t.__proto__ = e; 12463 }) || 12464 function (t, e) { 12465 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 12466 })(t, e); 12467 }), 12468 function (t, e) { 12469 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 12470 function n() { 12471 this.constructor = t; 12472 } 12473 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 12474 }); 12475 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCBanner = void 0); 12476 var o, 12477 s = n(1), 12478 a = n(11), 12479 c = n(3), 12480 u = n(18), 12481 l = n(45), 12482 d = 12483 ((o = s.MDCComponent), 12484 r(p, o), 12485 (p.attachTo = function (t) { 12486 return new p(t); 12487 }), 12488 (p.prototype.initialize = function (t) { 12489 var n = this; 12490 void 0 === t && 12491 (t = function (t, e) { 12492 return new a.FocusTrap(t, e); 12493 }), 12494 (this.contentEl = this.root.querySelector(u.selectors.CONTENT)), 12495 (this.textEl = this.root.querySelector(u.selectors.TEXT)), 12496 (this.primaryActionEl = this.root.querySelector(u.selectors.PRIMARY_ACTION)), 12497 (this.secondaryActionEl = this.root.querySelector(u.selectors.SECONDARY_ACTION)), 12498 (this.focusTrapFactory = t), 12499 (this.handleContentClick = function (t) { 12500 var e = t.target; 12501 c.closest(e, u.selectors.PRIMARY_ACTION) ? n.foundation.handlePrimaryActionClick() : c.closest(e, u.selectors.SECONDARY_ACTION) && n.foundation.handleSecondaryActionClick(); 12502 }); 12503 }), 12504 (p.prototype.initialSyncWithDOM = function () { 12505 this.registerContentClickHandler(this.handleContentClick), (this.focusTrap = this.focusTrapFactory(this.root, { initialFocusEl: this.primaryActionEl })); 12506 }), 12507 (p.prototype.destroy = function () { 12508 o.prototype.destroy.call(this), this.deregisterContentClickHandler(this.handleContentClick); 12509 }), 12510 (p.prototype.layout = function () { 12511 this.foundation.layout(); 12512 }), 12513 (p.prototype.open = function () { 12514 this.foundation.open(); 12515 }), 12516 (p.prototype.close = function (t) { 12517 this.foundation.close(t); 12518 }), 12519 (p.prototype.getDefaultFoundation = function () { 12520 var n = this, 12521 t = { 12522 addClass: function (t) { 12523 n.root.classList.add(t); 12524 }, 12525 getContentHeight: function () { 12526 return n.contentEl.offsetHeight; 12527 }, 12528 notifyClosed: function (t) { 12529 n.emit(u.events.CLOSED, { reason: t }); 12530 }, 12531 notifyClosing: function (t) { 12532 n.emit(u.events.CLOSING, { reason: t }); 12533 }, 12534 notifyOpened: function () { 12535 n.emit(u.events.OPENED, {}); 12536 }, 12537 notifyOpening: function () { 12538 n.emit(u.events.OPENING, {}); 12539 }, 12540 releaseFocus: function () { 12541 n.focusTrap.releaseFocus(); 12542 }, 12543 removeClass: function (t) { 12544 n.root.classList.remove(t); 12545 }, 12546 setStyleProperty: function (t, e) { 12547 n.root.style.setProperty(t, e); 12548 }, 12549 trapFocus: function () { 12550 n.focusTrap.trapFocus(); 12551 }, 12552 }; 12553 return new l.MDCBannerFoundation(t); 12554 }), 12555 Object.defineProperty(p.prototype, "isOpen", { 12556 get: function () { 12557 return this.foundation.isOpen(); 12558 }, 12559 enumerable: !1, 12560 configurable: !0, 12561 }), 12562 (p.prototype.getText = function () { 12563 return this.textEl.textContent || ""; 12564 }), 12565 (p.prototype.setText = function (t) { 12566 this.textEl.textContent = t; 12567 }), 12568 (p.prototype.getPrimaryActionText = function () { 12569 return this.primaryActionEl.textContent || ""; 12570 }), 12571 (p.prototype.setPrimaryActionText = function (t) { 12572 this.primaryActionEl.textContent = t; 12573 }), 12574 (p.prototype.getSecondaryActionText = function () { 12575 return this.secondaryActionEl ? this.secondaryActionEl.textContent || "" : null; 12576 }), 12577 (p.prototype.setSecondaryActionText = function (t) { 12578 this.secondaryActionEl && (this.secondaryActionEl.textContent = t); 12579 }), 12580 (p.prototype.registerContentClickHandler = function (t) { 12581 this.contentEl.addEventListener("click", t); 12582 }), 12583 (p.prototype.deregisterContentClickHandler = function (t) { 12584 this.contentEl.removeEventListener("click", t); 12585 }), 12586 p); 12587 function p() { 12588 return (null !== o && o.apply(this, arguments)) || this; 12589 } 12590 e.MDCBanner = d; 12591 }, 12592 function (t, e, n) { 12593 "use strict"; 12594 var i = 12595 (this && this.__createBinding) || 12596 (Object.create 12597 ? function (t, e, n, i) { 12598 void 0 === i && (i = n), 12599 Object.defineProperty(t, i, { 12600 enumerable: !0, 12601 get: function () { 12602 return e[n]; 12603 }, 12604 }); 12605 } 12606 : function (t, e, n, i) { 12607 void 0 === i && (i = n), (t[i] = e[n]); 12608 }), 12609 r = 12610 (this && this.__exportStar) || 12611 function (t, e) { 12612 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12613 }; 12614 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(1), e), r(n(0), e), r(n(127), e); 12615 }, 12616 function (t, e, n) { 12617 "use strict"; 12618 Object.defineProperty(e, "__esModule", { value: !0 }); 12619 }, 12620 function (t, e, n) { 12621 "use strict"; 12622 var i = 12623 (this && this.__createBinding) || 12624 (Object.create 12625 ? function (t, e, n, i) { 12626 void 0 === i && (i = n), 12627 Object.defineProperty(t, i, { 12628 enumerable: !0, 12629 get: function () { 12630 return e[n]; 12631 }, 12632 }); 12633 } 12634 : function (t, e, n, i) { 12635 void 0 === i && (i = n), (t[i] = e[n]); 12636 }), 12637 r = 12638 (this && this.__exportStar) || 12639 function (t, e) { 12640 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12641 }; 12642 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(129), e), r(n(46), e), r(n(20), e), r(n(48), e); 12643 }, 12644 function (t, e, n) { 12645 "use strict"; 12646 Object.defineProperty(e, "__esModule", { value: !0 }); 12647 }, 12648 function (t, e, n) { 12649 "use strict"; 12650 var i = 12651 (this && this.__createBinding) || 12652 (Object.create 12653 ? function (t, e, n, i) { 12654 void 0 === i && (i = n), 12655 Object.defineProperty(t, i, { 12656 enumerable: !0, 12657 get: function () { 12658 return e[n]; 12659 }, 12660 }); 12661 } 12662 : function (t, e, n, i) { 12663 void 0 === i && (i = n), (t[i] = e[n]); 12664 }), 12665 r = 12666 (this && this.__exportStar) || 12667 function (t, e) { 12668 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12669 }; 12670 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(131), e), r(n(134), e), r(n(137), e); 12671 }, 12672 function (t, e, n) { 12673 "use strict"; 12674 var i = 12675 (this && this.__createBinding) || 12676 (Object.create 12677 ? function (t, e, n, i) { 12678 void 0 === i && (i = n), 12679 Object.defineProperty(t, i, { 12680 enumerable: !0, 12681 get: function () { 12682 return e[n]; 12683 }, 12684 }); 12685 } 12686 : function (t, e, n, i) { 12687 void 0 === i && (i = n), (t[i] = e[n]); 12688 }), 12689 r = 12690 (this && this.__exportStar) || 12691 function (t, e) { 12692 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12693 }; 12694 Object.defineProperty(e, "__esModule", { value: !0 }), (e.trailingActionStrings = void 0), r(n(132), e), r(n(49), e), r(n(50), e), r(n(133), e); 12695 var o = n(12); 12696 Object.defineProperty(e, "trailingActionStrings", { 12697 enumerable: !0, 12698 get: function () { 12699 return o.strings; 12700 }, 12701 }); 12702 }, 12703 function (t, e, n) { 12704 "use strict"; 12705 Object.defineProperty(e, "__esModule", { value: !0 }); 12706 }, 12707 function (t, e, n) { 12708 "use strict"; 12709 Object.defineProperty(e, "__esModule", { value: !0 }); 12710 }, 12711 function (t, e, n) { 12712 "use strict"; 12713 var i = 12714 (this && this.__createBinding) || 12715 (Object.create 12716 ? function (t, e, n, i) { 12717 void 0 === i && (i = n), 12718 Object.defineProperty(t, i, { 12719 enumerable: !0, 12720 get: function () { 12721 return e[n]; 12722 }, 12723 }); 12724 } 12725 : function (t, e, n, i) { 12726 void 0 === i && (i = n), (t[i] = e[n]); 12727 }), 12728 r = 12729 (this && this.__exportStar)
12729 || 12730 function (t, e) { 12731 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12732 }; 12733 Object.defineProperty(e, "__esModule", { value: !0 }), (e.chipStrings = e.chipCssClasses = void 0), r(n(135), e), r(n(51), e), r(n(21), e), r(n(136), e); 12734 var o = n(13); 12735 Object.defineProperty(e, "chipCssClasses", { 12736 enumerable: !0, 12737 get: function () { 12738 return o.cssClasses; 12739 }, 12740 }), 12741 Object.defineProperty(e, "chipStrings", { 12742 enumerable: !0, 12743 get: function () { 12744 return o.strings; 12745 }, 12746 }); 12747 }, 12748 function (t, e, n) { 12749 "use strict"; 12750 Object.defineProperty(e, "__esModule", { value: !0 }); 12751 }, 12752 function (t, e, n) { 12753 "use strict"; 12754 Object.defineProperty(e, "__esModule", { value: !0 }); 12755 }, 12756 function (t, e, n) { 12757 "use strict"; 12758 var i = 12759 (this && this.__createBinding) || 12760 (Object.create 12761 ? function (t, e, n, i) { 12762 void 0 === i && (i = n), 12763 Object.defineProperty(t, i, { 12764 enumerable: !0, 12765 get: function () { 12766 return e[n]; 12767 }, 12768 }); 12769 } 12770 : function (t, e, n, i) { 12771 void 0 === i && (i = n), (t[i] = e[n]); 12772 }), 12773 r = 12774 (this && this.__exportStar) || 12775 function (t, e) { 12776 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 12777 }; 12778 Object.defineProperty(e, "__esModule", { value: !0 }), (e.chipSetStrings = e.chipSetCssClasses = void 0), r(n(138), e), r(n(139), e), r(n(52), e); 12779 var o = n(53); 12780 Object.defineProperty(e, "chipSetCssClasses", { 12781 enumerable: !0, 12782 get: function () { 12783 return o.cssClasses; 12784 }, 12785 }), 12786 Object.defineProperty(e, "chipSetStrings", { 12787 enumerable: !0, 12788 get: function () { 12789 return o.strings; 12790 }, 12791 }); 12792 }, 12793 function (t, e, n) { 12794 "use strict"; 12795 Object.defineProperty(e, "__esModule", { value: !0 }); 12796 }, 12797 function (t, e, n) { 12798 "use strict"; 12799 var i, 12800 r = 12801 (this && this.__extends) || 12802 ((i = function (t, e) { 12803 return (i = 12804 Object.setPrototypeOf || 12805 ({ __proto__: [] } instanceof Array && 12806 function (t, e) { 12807 t.__proto__ = e; 12808 }) || 12809 function (t, e) { 12810 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 12811 })(t, e); 12812 }), 12813 function (t, e) { 12814 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 12815 function n() { 12816 this.constructor = t; 12817 } 12818 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 12819 }), 12820 s = 12821 (this && this.__values) || 12822 function (t) { 12823 var e = "function" == typeof Symbol && Symbol.iterator, 12824 n = e && t[e], 12825 i = 0; 12826 if (n) return n.call(t); 12827 if (t && "number" == typeof t.length) 12828 return { 12829 next: function () { 12830 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 12831 }, 12832 }; 12833 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 12834 }; 12835 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCChipSet = void 0); 12836 var o, 12837 a = n(1), 12838 c = n(140), 12839 u = n(51), 12840 l = n(21), 12841 d = n(52), 12842 p = l.MDCChipFoundation.strings, 12843 h = p.INTERACTION_EVENT, 12844 f = p.SELECTION_EVENT, 12845 y = p.REMOVAL_EVENT, 12846 C = p.NAVIGATION_EVENT, 12847 E = d.MDCChipSetFoundation.strings.CHIP_SELECTOR, 12848 g = 0, 12849 _ = 12850 ((o = a.MDCComponent), 12851 r(m, o), 12852 (m.attachTo = function (t) { 12853 return new m(t); 12854 }), 12855 Object.defineProperty(m.prototype, "chips", { 12856 get: function () { 12857 return this.chipsList.slice(); 12858 }, 12859 enumerable: !1, 12860 configurable: !0, 12861 }), 12862 Object.defineProperty(m.prototype, "selectedChipIds", { 12863 get: function () { 12864 return this.foundation.getSelectedChipIds(); 12865 }, 12866 enumerable: !1, 12867 configurable: !0, 12868 }), 12869 (m.prototype.initialize = function (t) { 12870 void 0 === t && 12871 (t = function (t) { 12872 return new u.MDCChip(t); 12873 }), 12874 (this.chipFactory = t), 12875 (this.chipsList = this.instantiateChips(this.chipFactory)); 12876 }), 12877 (m.prototype.initialSyncWithDOM = function () { 12878 var e, 12879 t, 12880 n = this; 12881 try { 12882 for (var i = s(this.chipsList), r = i.next(); !r.done; r = i.next()) { 12883 var o = r.value; 12884 o.id && o.selected && this.foundation.select(o.id); 12885 } 12886 } catch (t) { 12887 e = { error: t }; 12888 } finally { 12889 try { 12890 r && !r.done && (t = i.return) && t.call(i); 12891 } finally { 12892 if (e) throw e.error; 12893 } 12894 } 12895 (this.handleChipInteraction = function (t) { 12896 return n.foundation.handleChipInteraction(t.detail); 12897 }), 12898 (this.handleChipSelection = function (t) { 12899 return n.foundation.handleChipSelection(t.detail); 12900 }), 12901 (this.handleChipRemoval = function (t) { 12902 return n.foundation.handleChipRemoval(t.detail); 12903 }), 12904 (this.handleChipNavigation = function (t) { 12905 return n.foundation.handleChipNavigation(t.detail); 12906 }), 12907 this.listen(h, this.handleChipInteraction), 12908 this.listen(f, this.handleChipSelection), 12909 this.listen(y, this.handleChipRemoval), 12910 this.listen(C, this.handleChipNavigation); 12911 }), 12912 (m.prototype.destroy = function () { 12913 var e, t; 12914 try { 12915 for (var n = s(this.chipsList), i = n.next(); !i.done; i = n.next()) i.value.destroy(); 12916 } catch (t) { 12917 e = { error: t }; 12918 } finally { 12919 try { 12920 i && !i.done && (t = n.return) && t.call(n); 12921 } finally { 12922 if (e) throw e.error; 12923 } 12924 } 12925 this.unlisten(h, this.handleChipInteraction), this.unlisten(f, this.handleChipSelection), this.unlisten(y, this.handleChipRemoval), this.unlisten(C, this.handleChipNavigation), o.prototype.destroy.call(this); 12926 }), 12927 (m.prototype.addChip = function (t) { 12928 (t.id = t.id || "mdc-chip-" + ++g), this.chipsList.push(this.chipFactory(t)); 12929 }), 12930 (m.prototype.getDefaultFoundation = function () { 12931 var i = this, 12932 t = { 12933 announceMessage: function (t) { 12934 c.announce(t); 12935 }, 12936 focusChipPrimaryActionAtIndex: function (t) { 12937 i.chipsList[t].focusPrimaryAction(); 12938 }, 12939 focusChipTrailingActionAtIndex: function (t) { 12940 i.chipsList[t].focusTrailingAction(); 12941 }, 12942 getChipListCount: function () { 12943 return i.chips.length; 12944 }, 12945 getIndexOfChipById: function (t) { 12946 return i.findChipIndex(t); 12947 }, 12948 hasClass: function (t) { 12949 return i.root.classList.contains(t); 12950 }, 12951 isRTL: function () { 12952 return "rtl" === window.getComputedStyle(i.root).getPropertyValue("direction"); 12953 }, 12954 removeChipAtIndex: function (t) { 12955 0 <= t && t < i.chips.length && (i.chipsList[t].destroy(), i.chipsList[t].remove(), i.chipsList.splice(t, 1)); 12956 }, 12957 removeFocusFromChipAtIndex: function (t) { 12958 i.chipsList[t].removeFocus(); 12959 }, 12960 selectChipAtIndex: function (t, e, n) { 12961 0 <= t && t < i.chips.length && i.chipsList[t].setSelectedFromChipSet(e, n); 12962 }, 12963 }; 12964 return new d.MDCChipSetFoundation(t); 12965 }), 12966 (m.prototype.instantiateChips = function (e) { 12967 return [].slice.call(this.root.querySelectorAll(E)).map(function (t) { 12968 return (t.id = t.id || "mdc-chip-" + ++g), e(t); 12969 }); 12970 }), 12971 (m.prototype.findChipIndex = function (t) { 12972 for (var e = 0; e < this.chips.length; e++) if (this.chipsList[e].id === t) return e; 12973 return -1; 12974 }), 12975 m); 12976 function m() { 12977 return (null !== o && o.apply(this, arguments)) || this; 12978 } 12979 e.MDCChipSet = _; 12980 }, 12981 function (t, i, e) { 12982 "use strict"; 12983 var c, n; 12984 Object.defineProperty(i, "__esModule", { value: !0 }), 12985 (i.announce = i.DATA_MDC_DOM_ANNOUNCE = i.AnnouncerPriority = void 0), 12986 ((n = c = i.AnnouncerPriority || (i.AnnouncerPriority = {})).POLITE = "polite"), 12987 (n.ASSERTIVE = "assertive"), 12988 (i.DATA_MDC_DOM_ANNOUNCE = "data-mdc-dom-announce"), 12989 (i.announce = function (t, e) { 12990 r.getInstance().say(t, e); 12991 }); 12992 var r = 12993 ((o.getInstance = function () { 12994 return o.instance || (o.instance = new o()), o.instance; 12995 }), 12996 (o.prototype.say = function (t, e) { 12997 var n, 12998 i, 12999 r = null !== (n = null == e ? void 0 : e.priority) && void 0 !== n ? n : c.POLITE, 13000 o = null !== (i = null == e ? void 0 : e.ownerDocument) && void 0 !== i ? i : document, 13001 s = this.getLiveRegion(r, o); 13002 function a() { 13003 (s.textContent = ""), o.removeEventListener("click", a); 13004 } 13005 (s.textContent = ""), 13006 setTimeout(function () { 13007 (s.textContent = t), o.addEventListener("click", a); 13008 }, 1); 13009 }), 13010 (o.prototype.getLiveRegion = function (t, e) { 13011 var n = this.liveRegions.get(e); 13012 n || ((n = new Map()), this.liveRegions.set(e, n)); 13013 var i = n.get(t); 13014 if (i && e.body.contains(i)) return i; 13015 var r = this.createLiveRegion(t, e); 13016 return n.set(t, r), r; 13017 }), 13018 (o.prototype.createLiveRegion = function (t, e) { 13019 var n = e.createElement("div"); 13020 return ( 13021 (n.style.position = "absolute"), 13022 (n.style.top = "-9999px"), 13023 (n.style.left = "-9999px"), 13024 (n.style.height = "1px"), 13025 (n.style.overflow = "hidden"), 13026 n.setAttribute("aria-atomic", "true"), 13027 n.setAttribute("aria-live", t), 13028 n.setAttribute(i.DATA_MDC_DOM_ANNOUNCE, "true"), 13029 e.body.appendChild(n), 13030 n 13031 ); 13032 }), 13033 o); 13034 function o() { 13035 this.liveRegions = new Map(); 13036 } 13037 }, 13038 function (t, e, n) { 13039 "use strict"; 13040 var i = 13041 (this && this.__createBinding) || 13042
13042 (Object.create 13043 ? function (t, e, n, i) { 13044 void 0 === i && (i = n), 13045 Object.defineProperty(t, i, { 13046 enumerable: !0, 13047 get: function () { 13048 return e[n]; 13049 }, 13050 }); 13051 } 13052 : function (t, e, n, i) { 13053 void 0 === i && (i = n), (t[i] = e[n]); 13054 }), 13055 r = 13056 (this && this.__exportStar) || 13057 function (t, e) { 13058 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 13059 }; 13060 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(142), e), r(n(143), e), r(n(55), e), r(n(54), e); 13061 }, 13062 function (t, e, n) { 13063 "use strict"; 13064 Object.defineProperty(e, "__esModule", { value: !0 }); 13065 }, 13066 function (t, e, n) { 13067 "use strict"; 13068 var i, 13069 r = 13070 (this && this.__extends) || 13071 ((i = function (t, e) { 13072 return (i = 13073 Object.setPrototypeOf || 13074 ({ __proto__: [] } instanceof Array && 13075 function (t, e) { 13076 t.__proto__ = e; 13077 }) || 13078 function (t, e) { 13079 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 13080 })(t, e); 13081 }), 13082 function (t, e) { 13083 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 13084 function n() { 13085 this.constructor = t; 13086 } 13087 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 13088 }); 13089 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCCircularProgress = void 0); 13090 var o, 13091 s = n(1), 13092 a = n(54), 13093 c = 13094 ((o = s.MDCComponent), 13095 r(u, o), 13096 (u.prototype.initialize = function () { 13097 this.determinateCircle = this.root.querySelector(a.MDCCircularProgressFoundation.strings.DETERMINATE_CIRCLE_SELECTOR); 13098 }), 13099 (u.attachTo = function (t) { 13100 return new u(t); 13101 }), 13102 Object.defineProperty(u.prototype, "determinate", { 13103 set: function (t) { 13104 this.foundation.setDeterminate(t); 13105 }, 13106 enumerable: !1, 13107 configurable: !0, 13108 }), 13109 Object.defineProperty(u.prototype, "progress", { 13110 set: function (t) { 13111 this.foundation.setProgress(t); 13112 }, 13113 enumerable: !1, 13114 configurable: !0, 13115 }), 13116 Object.defineProperty(u.prototype, "isClosed", { 13117 get: function () { 13118 return this.foundation.isClosed(); 13119 }, 13120 enumerable: !1, 13121 configurable: !0, 13122 }), 13123 (u.prototype.open = function () { 13124 this.foundation.open(); 13125 }), 13126 (u.prototype.close = function () { 13127 this.foundation.close(); 13128 }), 13129 (u.prototype.getDefaultFoundation = function () { 13130 var n = this, 13131 t = { 13132 addClass: function (t) { 13133 n.root.classList.add(t); 13134 }, 13135 getDeterminateCircleAttribute: function (t) { 13136 return n.determinateCircle.getAttribute(t); 13137 }, 13138 hasClass: function (t) { 13139 return n.root.classList.contains(t); 13140 }, 13141 removeClass: function (t) { 13142 n.root.classList.remove(t); 13143 }, 13144 removeAttribute: function (t) { 13145 n.root.removeAttribute(t); 13146 }, 13147 setAttribute: function (t, e) { 13148 n.root.setAttribute(t, e); 13149 }, 13150 setDeterminateCircleAttribute: function (t, e) { 13151 n.determinateCircle.setAttribute(t, e); 13152 }, 13153 }; 13154 return new a.MDCCircularProgressFoundation(t); 13155 }), 13156 u); 13157 function u() { 13158 return (null !== o && o.apply(this, arguments)) || this; 13159 } 13160 e.MDCCircularProgress = c; 13161 }, 13162 function (t, e, n) { 13163 "use strict"; 13164 var i = 13165 (this && this.__createBinding) || 13166 (Object.create 13167 ? function (t, e, n, i) { 13168 void 0 === i && (i = n), 13169 Object.defineProperty(t, i, { 13170 enumerable: !0, 13171 get: function () { 13172 return e[n]; 13173 }, 13174 }); 13175 } 13176 : function (t, e, n, i) { 13177 void 0 === i && (i = n), (t[i] = e[n]); 13178 }), 13179 r = 13180 (this && this.__exportStar) || 13181 function (t, e) { 13182 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 13183 }; 13184 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(145), e), r(n(146), e), r(n(59), e), r(n(22), e), r(n(147), e); 13185 }, 13186 function (t, e, n) { 13187 "use strict"; 13188 Object.defineProperty(e, "__esModule", { value: !0 }); 13189 }, 13190 function (t, e, n) { 13191 "use strict"; 13192 var i, 13193 r = 13194 (this && this.__extends) || 13195 ((i = function (t, e) { 13196 return (i = 13197 Object.setPrototypeOf || 13198 ({ __proto__: [] } instanceof Array && 13199 function (t, e) { 13200 t.__proto__ = e; 13201 }) || 13202 function (t, e) { 13203 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 13204 })(t, e); 13205 }), 13206 function (t, e) { 13207 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 13208 function n() { 13209 this.constructor = t; 13210 } 13211 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 13212 }), 13213 o = 13214 (this && this.__values) || 13215 function (t) { 13216 var e = "function" == typeof Symbol && Symbol.iterator, 13217 n = e && t[e], 13218 i = 0; 13219 if (n) return n.call(t); 13220 if (t && "number" == typeof t.length) 13221 return { 13222 next: function () { 13223 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 13224 }, 13225 }; 13226 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 13227 }; 13228 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDataTable = void 0); 13229 var s, 13230 a = n(1), 13231 c = n(46), 13232 u = n(3), 13233 l = n(56), 13234 d = n(22), 13235 p = n(59), 13236 h = 13237 ((s = a.MDCComponent), 13238 r(f, s), 13239 (f.attachTo = function (t) { 13240 return new f(t); 13241 }), 13242 (f.prototype.initialize = function (t) { 13243 void 0 === t && 13244 (t = function (t) { 13245 return new c.MDCCheckbox(t); 13246 }), 13247 (this.checkboxFactory = t); 13248 }), 13249 (f.prototype.initialSyncWithDOM = function () { 13250 var n = this; 13251 (this.headerRow = this.root.querySelector("." + d.cssClasse
13251s.HEADER_ROW)), 13252 (this.handleHeaderRowCheckboxChange = function () { 13253 n.foundation.handleHeaderRowCheckboxChange(); 13254 }), 13255 this.headerRow.addEventListener("change", this.handleHeaderRowCheckboxChange), 13256 (this.headerRowClickListener = function (t) { 13257 n.handleHeaderRowClick(t); 13258 }), 13259 this.headerRow.addEventListener("click", this.headerRowClickListener), 13260 (this.content = this.root.querySelector("." + d.cssClasses.CONTENT)), 13261 (this.handleContentClick = function (t) { 13262 var e = u.closest(t.target, d.selectors.ROW); 13263 e && n.foundation.handleRowClick({ rowId: n.getRowIdByRowElement(e), row: e }); 13264 }), 13265 this.content.addEventListener("click", this.handleContentClick), 13266 (this.handleRowCheckboxChange = function (t) { 13267 n.foundation.handleRowCheckboxChange(t); 13268 }), 13269 this.content.addEventListener("change", this.handleRowCheckboxChange), 13270 this.layout(); 13271 }), 13272 (f.prototype.layout = function () { 13273 this.foundation.layout(); 13274 }), 13275 (f.prototype.getHeaderCells = function () { 13276 return [].slice.call(this.root.querySelectorAll(d.selectors.HEADER_CELL)); 13277 }), 13278 (f.prototype.getRows = function () { 13279 return this.foundation.getRows(); 13280 }), 13281 (f.prototype.getSelectedRowIds = function () { 13282 return this.foundation.getSelectedRowIds(); 13283 }), 13284 (f.prototype.setSelectedRowIds = function (t) { 13285 this.foundation.setSelectedRowIds(t); 13286 }), 13287 (f.prototype.showProgress = function () { 13288 this.getLinearProgress().open(), this.foundation.showProgress(); 13289 }), 13290 (f.prototype.hideProgress = function () { 13291 this.foundation.hideProgress(), this.getLinearProgress().close(); 13292 }), 13293 (f.prototype.destroy = function () { 13294 var e, t; 13295 if ( 13296 (this.handleHeaderRowCheckboxChange && this.headerRow.removeEventListener("change", this.handleHeaderRowCheckboxChange), 13297 this.headerRowClickListener && this.headerRow.removeEventListener("click", this.headerRowClickListener), 13298 this.handleRowCheckboxChange && this.content.removeEventListener("change", this.handleRowCheckboxChange), 13299 this.headerRowCheckbox && this.headerRowCheckbox.destroy(), 13300 this.rowCheckboxList) 13301 ) 13302 try { 13303 for (var n = o(this.rowCheckboxList), i = n.next(); !i.done; i = n.next()) i.value.destroy(); 13304 } catch (t) { 13305 e = { error: t }; 13306 } finally { 13307 try { 13308 i && !i.done && (t = n.return) && t.call(n); 13309 } finally { 13310 if (e) throw e.error; 13311 } 13312 } 13313 this.handleContentClick && this.content.removeEventListener("click", this.handleContentClick); 13314 }), 13315 (f.prototype.getDefaultFoundation = function () { 13316 var i = this, 13317 t = { 13318 addClass: function (t) { 13319 i.root.classList.add(t); 13320 }, 13321 removeClass: function (t) { 13322 i.root.classList.remove(t); 13323 }, 13324 getHeaderCellElements: function () { 13325 return i.getHeaderCells(); 13326 }, 13327 getHeaderCellCount: function () { 13328 return i.getHeaderCells().length; 13329 }, 13330 getAttributeByHeaderCellIndex: function (t, e) { 13331 return i.getHeaderCells()[t].getAttribute(e); 13332 }, 13333 setAttributeByHeaderCellIndex: function (t, e, n) { 13334 i.getHeaderCells()[t].setAttribute(e, n); 13335 }, 13336 setClassNameByHeaderCellIndex: function (t, e) { 13337 i.getHeaderCells()[t].classList.add(e); 13338 }, 13339 removeClassNameByHeaderCellIndex: function (t, e) { 13340 i.getHeaderCells()[t].classList.remove(e); 13341 }, 13342 notifySortAction: function (t) { 13343 i.emit(d.events.SORTED, t, !0); 13344 }, 13345 getTableContainerHeight: function () { 13346 var t = i.root.querySelector("." + d.cssClasse
13346s.TABLE_CONTAINER); 13347 if (!t) throw new Error("MDCDataTable: Table container element not found."); 13348 return t.getBoundingClientRect().height; 13349 }, 13350 getTableHeaderHeight: function () { 13351 var t = i.root.querySelector(d.selectors.HEADER_ROW); 13352 if (!t) throw new Error("MDCDataTable: Table header element not found."); 13353 return t.getBoundingClientRect().height; 13354 }, 13355 setProgressIndicatorStyles: function (t) { 13356 var e = i.root.querySelector(d.selectors.PROGRESS_INDICATOR); 13357 if (!e) throw new Error("MDCDataTable: Progress indicator element not found."); 13358 e.style.setProperty("height", t.height), e.style.setProperty("top", t.top); 13359 }, 13360 addClassAtRowIndex: function (t, e) { 13361 i.getRows()[t].classList.add(e); 13362 }, 13363 getRowCount: function () { 13364 return i.getRows().length; 13365 }, 13366 getRowElements: function () { 13367 return [].slice.call(i.root.querySelectorAll(d.selectors.ROW)); 13368 }, 13369 getRowIdAtIndex: function (t) { 13370 return i.getRows()[t].getAttribute(d.dataAttributes.ROW_ID); 13371 }, 13372 getRowIndexByChildElement: function (t) { 13373 return i.getRows().indexOf(u.closest(t, d.selectors.ROW)); 13374 }, 13375 getSelectedRowCount: function () { 13376 return i.root.querySelectorAll(d.selectors.ROW_SELECTED).length; 13377 }, 13378 isCheckboxAtRowIndexChecked: function (t) { 13379 return i.rowCheckboxList[t].checked; 13380 }, 13381 isHeaderRowCheckboxChecked: function () { 13382 return i.headerRowCheckbox.checked; 13383 }, 13384 isRowsSelectable: function () { 13385 return !!i.root.querySelector(d.selectors.ROW_CHECKBOX) || !!i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX); 13386 }, 13387 notifyRowSelectionChanged: function (t) { 13388 i.emit(d.events.ROW_SELECTION_CHANGED, { row: i.getRowByIndex(t.rowIndex), rowId: i.getRowIdByIndex(t.rowIndex), rowIndex: t.rowIndex, selected: t.selected }, !0); 13389 }, 13390 notifySelectedAll: function () { 13391 i.emit(d.events.SELECTED_ALL, {}, !0); 13392 }, 13393 notifyUnselectedAll: function () { 13394 i.emit(d.events.UNSELECTED_ALL, {}, !0); 13395 }, 13396 notifyRowClick: function (t) { 13397 i.emit(d.events.ROW_CLICK, t, !0); 13398 }, 13399 registerHeaderRowCheckbox: function () { 13400 i.headerRowCheckbox && i.headerRowCheckbox.destroy(); 13401 var t = i.root.querySelector(d.selectors.HEADER_ROW_CHECKBOX); 13402 i.headerRowCheckbox = i.checkboxFactory(t); 13403 }, 13404 registerRowCheckboxes: function () { 13405 i.rowCheckboxList && 13406 i.rowCheckboxList.forEach(function (t) { 13407 t.destroy(); 13408 }), 13409 (i.rowCheckboxList = []),
13410 i.getRows().forEach(function (t) { 13411 var e = i.checkboxFactory(t.querySelector(d.selectors.ROW_CHECKBOX)); 13412 i.rowCheckboxList.push(e); 13413 }); 13414 }, 13415 removeClassAtRowIndex: function (t, e) { 13416 i.getRows()[t].classList.remove(e); 13417 }, 13418 setAttributeAtRowIndex: function (t, e, n) { 13419 i.getRows()[t].setAttribute(e, n); 13420 }, 13421 setHeaderRowCheckboxChecked: function (t) { 13422 i.headerRowCheckbox.checked = t; 13423 }, 13424 setHeaderRowCheckboxIndeterminate: function (t) { 13425 i.headerRowCheckbox.indeterminate = t; 13426 }, 13427 setRowCheckboxCheckedAtIndex: function (t, e) { 13428 i.rowCheckboxList[t].checked = e; 13429 }, 13430 setSortStatusLabelByHeaderCellIndex: function (t, e) { 13431 var n = i.getHeaderCells()[t].querySelector(d.selectors.SORT_STATUS_LABEL); 13432 n && (n.textContent = i.getSortStatusMessageBySortValue(e)); 13433 }, 13434 }; 13435 return new p.MDCDataTableFoundation(t); 13436 }), 13437 (f.prototype.getRowByIndex = function (t) { 13438 return this.getRows()[t]; 13439 }), 13440 (f.prototype.getRowIdByIndex = function (t) { 13441 return this.getRowByIndex(t).getAttribute(d.dataAttributes.ROW_ID); 13442 }), 13443 (f.prototype.handleHeaderRowClick = function (t) { 13444 var e = u.closest(t.target, d.selectors.HEADER_CELL_WITH_SORT); 13445 if (e) { 13446 var n = e.getAttribute(d.dataAttributes.COLUMN_ID), 13447 i = this.getHeaderCells().indexOf(e); 13448 -1 !== i && this.foundation.handleSortAction({ columnId: n, columnIndex: i, headerCell: e }); 13449 } 13450 }), 13451 (f.prototype.getSortStatusMessageBySortValue = function (t) { 13452 switch (t) { 13453 case d.SortValue.ASCENDING: 13454 return d.messages.SORTED_IN_ASCENDING; 13455 case d.SortValue.DESCENDING: 13456 return d.messages.SORTED_IN_DESCENDING; 13457 default: 13458 return ""; 13459 } 13460 }), 13461 (f.prototype.getLinearProgressElement = function () { 13462 var t = this.root.querySelector("." + d.cssClasses.LINEAR_PROGRESS); 13463 if (!t) throw new Error("MDCDataTable: linear progress element is not found."); 13464 return t; 13465 }), 13466 (f.prototype.getLinearProgress = function () { 13467 if (!this.linearProgress) { 13468 var t = this.getLinearProgressElement(); 13469 this.linearProgress = new l.MDCLinearProgress(t); 13470 } 13471 return this.linearProgress; 13472 }), 13473 (f.prototype.getRowIdByRowElement = function (t) { 13474 return t.getAttribute(d.dataAttributes.ROW_ID); 13475 }), 13476 f); 13477 function f() { 13478 return (null !== s && s.apply(this, arguments)) || this; 13479 } 13480 e.MDCDataTable = h; 13481 }, 13482 function (t, e, n) { 13483 "use strict"; 13484 Object.defineProperty(e, "__esModule", { value: !0 }); 13485 }, 13486 function (t, e, n) { 13487 "use strict"; 13488 var i = 13489 (this && this.__createBinding) || 13490 (Object.create 13491 ? function (t, e, n, i) { 13492 void 0 === i && (i = n), 13493 Object.defineProperty(t, i, { 13494 enumerable: !0, 13495 get: function () { 13496 return e[n]; 13497 }, 13498 }); 13499 } 13500 : function (t, e, n, i) { 13501 void 0 === i && (i = n), (t[i] = e[n]); 13502 }), 13503 r = 13504 (this && this.__setModuleDefault) || 13505 (Object.create 13506 ? function (t, e) { 13507 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 13508 } 13509 : function (t, e) { 13510 t.default = e; 13511 }), 13512 o = 13513 (this && this.__importStar) || 13514 function (t) { 13515 if (t && t.__esModule) return t; 13516 var e = {}; 13517 if (null != t) for (var n in t) "default"
13517!== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 13518 return r(e, t), e; 13519 }, 13520 s = 13521 (this && this.__exportStar) || 13522 function (t, e) { 13523 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 13524 }; 13525 Object.defineProperty(e, "__esModule", { value: !0 }), (e.util = void 0); 13526 var a = o(n(60)); 13527 (e.util = a), s(n(149), e), s(n(150), e), s(n(62), e), s(n(61), e), s(n(151), e); 13528 }, 13529 function (t, e, n) { 13530 "use strict"; 13531 Object.defineProperty(e, "__esModule", { value: !0 }); 13532 }, 13533 function (t, e, n) { 13534 "use strict"; 13535 var i, 13536 r = 13537 (this && this.__extends) || 13538 ((i = function (t, e) { 13539 return (i = 13540 Object.setPrototypeOf || 13541 ({ __proto__: [] } instanceof Array && 13542 function (t, e) { 13543 t.__proto__ = e; 13544 }) || 13545 function (t, e) { 13546 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 13547 })(t, e); 13548 }), 13549 function (t, e) { 13550 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 13551 function n() { 13552 this.constructor = t; 13553 } 13554 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 13555 }), 13556 o = 13557 (this && this.__createBinding) || 13558 (Object.create 13559 ? function (t, e, n, i) { 13560 void 0 === i && (i = n), 13561 Object.defineProperty(t, i, { 13562 enumerable: !0, 13563 get: function () { 13564 return e[n]; 13565 }, 13566 }); 13567 } 13568 : function (t, e, n, i) { 13569 void 0 === i && (i = n), (t[i] = e[n]); 13570 }), 13571 s = 13572 (this && this.__setModuleDefault) || 13573 (Object.create 13574 ? function (t, e) { 13575 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 13576 } 13577 : function (t, e) { 13578 t.default = e; 13579 }), 13580 a = 13581 (this && this.__importStar) || 13582 function (t) { 13583 if (t && t.__esModule) return t; 13584 var e = {}; 13585 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && o(e, t, n); 13586 return s(e, t), e; 13587 }, 13588 c = 13589 (this && this.__values) || 13590 function (t) { 13591 var e = "function" == typeof Symbol && Symbol.iterator, 13592 n = e && t[e], 13593 i = 0; 13594 if (n) return n.call(t); 13595 if (t && "number" == typeof t.length) 13596 return { 13597 next: function () { 13598 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 13599 }, 13600 }; 13601 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 13602 }; 13603 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDialog = void 0); 13604 var u, 13605 l = n(1), 13606 d = n(11), 13607 p = n(3), 13608 h = n(2), 13609 f = n(61), 13610 y = a(n(60)), 13611 C = f.MDCDialogFoundation.strings, 13612 E = 13613 ((u = l.MDCComponent), 13614 r(g, u), 13615 Object.defineProperty(g.prototype, "isOpen", { 13616 get: function () { 13617 return this.foundation.isOpen(); 13618 }, 13619 enumerable: !1, 13620 configurable: !0, 13621 }), 13622 Object.defineProperty(g.prototype, "escapeKeyAction", { 13623 get: function () { 13624 return this.foundation.getEscapeKeyAction(); 13625 }, 13626 set: function (t) { 13627 this.foundation.setEscapeKeyAction(t); 13628 }, 13629 enumerable: !1, 13630 configurable: !0, 13631 }), 13632 Object.defineProperty(g.prototype, "scrimClickAction", { 13633 get: function () { 13634 return this.foundation.getScrimClickAction(); 13635 }, 13636 set: function (t) { 13637 this.foundation.setScrimClickAction(t); 13638 }, 13639 enumerable: !1, 13640 configurable: !0, 13641 }), 13642 Object.defineProperty(g.prototype, "autoStackButtons", { 13643 get: function () { 13644 return this.foundation.getAutoStackButtons(); 13645 }, 13646 set: function (t) { 13647 this.foundation.setAutoStackButtons(t); 13648 }, 13649 enumerable: !1, 13650 configurable: !0, 13651 }), 13652 (g.attachTo = function (t) { 13653 return new g(t); 13654 }), 13655 (g.prototype.initialize = function (t) { 13656 var e, n; 13657 void 0 === t && 13658 (t = function (t, e) { 13659 return new d.FocusTrap(t, e); 13660 }); 13661 var i = this.root.querySelector(C.CONTAINER_SELECTOR); 13662 if (!i) throw new Error("Dialog component requires a " + C.CONTAINER_SELECTOR + " container element"); 13663 (this.container = i), 13664 (this.content = this.root.querySelector(C.CONTENT_SELECTOR)), 13665 (this.buttons = [].slice.call(this.root.querySelectorAll(C.BUTTON_SELECTOR))), 13666 (this.defaultButton = this.root.querySelector("[" + C.BUTTON_DEFAULT_ATTRIBUTE + "]")), 13667 (this.focusTrapFactory = t), 13668 (this.buttonRipples = []); 13669 try { 13670 for (var r = c(this.buttons), o = r.next(); !o.done; o = r.next()) { 13671 var s = o.value; 13672 this.buttonRipples.push(new h.MDCRipple(s)); 13673 } 13674 } catch (t) { 13675 e = { error: t }; 13676 } finally { 13677 try { 13678 o && !o.done && (n = r.return) && n.call(r); 13679 } finally { 13680 if (e) throw e.error; 13681 } 13682 } 13683 }), 13684 (g.prototype.initialSyncWithDOM = function () { 13685 var t = this; 13686 (this.focusTrap = y.createFocusTrapInstance(this.container, this.focusTrapFactory, this.getInitialFocusEl() || void 0)), 13687 (this.handleClick = this.foundation.handleClick.bind(this.foundation)), 13688 (this.handleKeydown = this.foundation.handleKeydown.bind(this.foundation)), 13689 (this.handleDocumentKeydown = this.foundation.handleDocumentKeydown.bind(this.foundation)), 13690 (this.handleOpening = function () { 13691 document.addEventListener("keydown", t.handleDocumentKeydown); 13692 }), 13693 (this.handleClosing = function () { 13694 document.removeEventListener("keydown", t.handleDocumentKeydown); 13695 }), 13696 this.listen("click", this.handleClick), 13697 this.listen("keydown", this.handleKeydown), 13698 this.listen(C.OPENING_EVENT, this.handleOpening), 13699 this.listen(C.CLOSING_EVENT, this.handleClosing); 13700 }), 13701 (g.prototype.destroy = function () { 13702 this.unlisten("click", this.handleClick), 13703 this.unlisten("keydown", this.handleKeydown), 13704 this.unlisten(C.OPENING_EVENT, this.handleOpening), 13705 this.unlisten(C.CLOSING_EVENT, this.handleClosing), 13706 this.handleClosing(),
13707 this.buttonRipples.forEach(function (t) { 13708 t.destroy(); 13709 }), 13710 u.prototype.destroy.call(this); 13711 }), 13712 (g.prototype.layout = function () { 13713 this.foundation.layout(); 13714 }), 13715 (g.prototype.open = function () { 13716 this.foundation.open(); 13717 }), 13718 (g.prototype.close = function (t) { 13719 void 0 === t && (t = ""), this.foundation.close(t); 13720 }), 13721 (g.prototype.getDefaultFoundation = function () { 13722 var n = this, 13723 t = { 13724 addBodyClass: function (t) { 13725 return document.body.classList.add(t); 13726 }, 13727 addClass: function (t) { 13728 return n.root.classList.add(t); 13729 }, 13730 areButtonsStacked: function () { 13731 return y.areTopsMisaligned(n.buttons); 13732 }, 13733 clickDefaultButton: function () { 13734 n.defaultButton && !n.defaultButton.disabled && n.defaultButton.click(); 13735 }, 13736 eventTargetMatches: function (t, e) { 13737 return !!t && p.matches(t, e); 13738 }, 13739 getActionFromEvent: function (t) { 13740 if (!t.target) return ""; 13741 var e = p.closest(t.target, "[" + C.ACTION_ATTRIBUTE + "]"); 13742 return e && e.getAttribute(C.ACTION_ATTRIBUTE); 13743 }, 13744 getInitialFocusEl: function () { 13745 return n.getInitialFocusEl(); 13746 }, 13747 hasClass: function (t) { 13748 return n.root.classList.contains(t); 13749 }, 13750 isContentScrollable: function () { 13751 return y.isScrollable(n.content); 13752 }, 13753 notifyClosed: function (t) { 13754 return n.emit(C.CLOSED_EVENT, t ? { action: t } : {}); 13755 }, 13756 notifyClosing: function (t) { 13757 return n.emit(C.CLOSING_EVENT, t ? { action: t } : {}); 13758 }, 13759 notifyOpened: function () { 13760 return n.emit(C.OPENED_EVENT, {}); 13761 }, 13762 notifyOpening: function () { 13763 return n.emit(C.OPENING_EVENT, {}); 13764 }, 13765 releaseFocus: function () { 13766 n.focusTrap.releaseFocus(); 13767 }, 13768 removeBodyClass: function (t) { 13769 return document.body.classList.remove(t); 13770 }, 13771 removeClass: function (t) { 13772 return n.root.classList.remove(t); 13773 }, 13774 reverseButtons: function () { 13775 n.buttons.reverse(), 13776 n.buttons.forEach(function (t) { 13777 t.parentElement.appendChild(t); 13778 }); 13779 }, 13780 trapFocus: function () { 13781 n.focusTrap.trapFocus(); 13782 }, 13783 registerContentEventHandler: function (t, e) { 13784 n.content instanceof HTMLElement && n.content.addEventListener(t, e); 13785 }, 13786 deregisterContentEventHandler: function (t, e) { 13787 n.content instanceof HTMLElement && n.content.removeEventListener(t, e); 13788 }, 13789 isScrollableContentAtTop: function () { 13790 return y.isScrollAtTop(n.content); 13791 }, 13792 isScrollableContentAtBottom: function () { 13793 return y.isScrollAtBottom(n.content); 13794 }, 13795 registerWindowEventHandler: function (t, e) { 13796 window.addEventListener(t, e); 13797 }, 13798 deregisterWindowEventHandler: function (t, e) { 13799 window.removeEventListener(t, e); 13800 }, 13801 }; 13802 return new f.MDCDialogFoundation(t); 13803 }), 13804 (g.prototype.getInitialFocusEl = function () { 13805 return this.root.querySelector("[" + C.INITIAL_FOCUS_ATTRIBUTE + "]"); 13806 }), 13807 g); 13808 function g() { 13809 return (null !== u && u.apply(this, arguments)) || this; 13810 } 13811 e.MDCDialog = E; 13812 }, 13813 function (t, e, n) { 13814 "use strict"; 13815 Object.defineProperty(e, "__esModule", { value: !0 }); 13816 }, 13817 function (t, e, n) { 13818 "use strict"; 13819 var i = 13820 (this && this.__createBinding) || 13821 (Object.create 13822 ? function (t, e, n, i) { 13823 void 0 === i && (i = n), 13824 Object.defineProperty(t, i, { 13825 enumerable: !0, 13826 get: function () { 13827 return e[n]; 13828 }, 13829 }); 13830 } 13831 : function (t, e, n, i) { 13832 void 0 === i && (i = n), (t[i] = e[n]); 13833 }), 13834 r = 13835 (this && this.__setModuleDefault) || 13836 (Object.create 13837 ? function (t, e) { 13838 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 13839 } 13840 : function (t, e) { 13841 t.default = e; 13842 }), 13843 o = 13844 (this && this.__importStar) || 13845 function (t) { 13846 if (t && t.__esModule) return t; 13847 var e = {}; 13848 if (null != t) for (var n in t) "default"
13848!== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 13849 return r(e, t), e; 13850 }; 13851 Object.defineProperty(e, "__esModule", { value: !0 }), (e.ponyfill = e.keyboard = e.focusTrap = e.events = void 0); 13852 var s = o(n(5)); 13853 e.events = s; 13854 var a = o(n(11)); 13855 e.focusTrap = a; 13856 var c = o(n(6)); 13857 e.keyboard = c; 13858 var u = o(n(3)); 13859 e.ponyfill = u; 13860 }, 13861 function (t, e, n) { 13862 "use strict"; 13863 var i = 13864 (this && this.__createBinding) || 13865 (Object.create 13866 ? function (t, e, n, i) { 13867 void 0 === i && (i = n), 13868 Object.defineProperty(t, i, { 13869 enumerable: !0, 13870 get: function () { 13871 return e[n]; 13872 }, 13873 }); 13874 } 13875 : function (t, e, n, i) { 13876 void 0 === i && (i = n), (t[i] = e[n]); 13877 }), 13878 r = 13879 (this && this.__setModuleDefault) || 13880 (Object.create 13881 ? function (t, e) { 13882 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 13883 } 13884 : function (t, e) { 13885 t.default = e; 13886 }), 13887 o = 13888 (this && this.__importStar) || 13889 function (t) { 13890 if (t && t.__esModule) return t; 13891 var e = {}; 13892 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 13893 return r(e, t), e; 13894 }, 13895 s = 13896 (this && this.__exportStar) || 13897 function (t, e) { 13898 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 13899 }; 13900 Object.defineProperty(e, "__esModule", { value: !0 }), (e.util = void 0); 13901 var a = o(n(63)); 13902 (e.util = a), s(n(154), e), s(n(155), e), s(n(65), e), s(n(26), e), s(n(66), e); 13903 }, 13904 function (t, e, n) { 13905 "use strict"; 13906 Object.defineProperty(e, "__esModule", { value: !0 }); 13907 }, 13908 function (t, e, n) { 13909 "use strict"; 13910 var i, 13911 r = 13912 (this && this.__extends) || 13913 ((i = function (t, e) { 13914 return (i = 13915 Object.setPrototypeOf || 13916 ({ __proto__: [] } instanceof Array && 13917 function (t, e) { 13918 t.__proto__ = e; 13919 }) || 13920 function (t, e) { 13921 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 13922 })(t, e); 13923 }), 13924 function (t, e) { 13925 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 13926 function n() { 13927 this.constructor = t; 13928 } 13929 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 13930 }), 13931 o = 13932 (this && this.__createBinding) || 13933 (Object.create 13934 ? function (t, e, n, i) { 13935 void 0 === i && (i = n), 13936 Object.defineProperty(t, i, { 13937 enumerable: !0, 13938 get: function () { 13939 return e[n]; 13940 }, 13941 }); 13942 } 13943 : function (t, e, n, i) { 13944 void 0 === i && (i = n), (t[i] = e[n]); 13945 }), 13946 s = 13947 (this && this.__setModuleDefault) || 13948 (Object.create 13949 ? function (t, e) { 13950 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 13951 } 13952 : function (t, e) { 13953 t.default = e; 13954 }), 13955 a = 13956 (this && this.__importStar) || 13957 function (t) { 13958 if (t && t.__esModule) return t; 13959 var e = {}; 13960 if (null != t) for (var n in t) "default"
13960!== n && Object.prototype.hasOwnProperty.call(t, n) && o(e, t, n); 13961 return s(e, t), e; 13962 }; 13963 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCDrawer = void 0); 13964 var c, 13965 u = n(1), 13966 l = n(11), 13967 d = n(24), 13968 p = n(26), 13969 h = n(66), 13970 f = a(n(63)), 13971 y = p.MDCDismissibleDrawerFoundation.cssClasses, 13972 C = p.MDCDismissibleDrawerFoundation.strings, 13973 E = 13974 ((c = u.MDCComponent), 13975 r(g, c), 13976 (g.attachTo = function (t) { 13977 return new g(t); 13978 }), 13979 Object.defineProperty(g.prototype, "open", { 13980 get: function () { 13981 return this.foundation.isOpen(); 13982 }, 13983 set: function (t) { 13984 t ? this.foundation.open() : this.foundation.close(); 13985 }, 13986 enumerable: !1, 13987 configurable: !0, 13988 }), 13989 Object.defineProperty(g.prototype, "list", { 13990 get: function () { 13991 return this.innerList; 13992 }, 13993 enumerable: !1, 13994 configurable: !0, 13995 }), 13996 (g.prototype.initialize = function (t, e) { 13997 void 0 === t && 13998 (t = function (t) { 13999 return new l.FocusTrap(t); 14000 }), 14001 void 0 === e && 14002 (e = function (t) { 14003 return new d.MDCList(t); 14004 }); 14005 var n = this.root.querySelector(C.LIST_SELECTOR); 14006 n && ((this.innerList = e(n)), (this.innerList.wrapFocus = !0)), (this.focusTrapFactory = t); 14007 }), 14008 (g.prototype.initialSyncWithDOM = function () { 14009 var e = this, 14010 t = y.MODAL, 14011 n = C.SCRIM_SELECTOR; 14012 (this.scrim = this.root.parentNode.querySelector(n)), 14013 this.scrim && 14014 this.root.classList.contains(t) && 14015 ((this.handleScrimClick = function () { 14016 return e.foundation.handleScrimClick(); 14017 }), 14018 this.scrim.addEventListener("click", this.handleScrimClick), 14019 (this.focusTrap = f.createFocusTrapInstance(this.root, this.focusTrapFactory))), 14020 (this.handleKeydown = function (t) { 14021 e.foundation.handleKeydown(t); 14022 }), 14023 (this.handleTransitionEnd = function (t) { 14024 e.foundation.handleTransitionEnd(t); 14025 }), 14026 this.listen("keydown", this.handleKeydown), 14027 this.listen("transitionend", this.handleTransitionEnd); 14028 }), 14029 (g.prototype.destroy = function () { 14030 this.unlisten("keydown", this.handleKeydown), this.unlisten("transitionend", this.handleTransitionEnd), this.innerList && this.innerList.destroy(); 14031 var t = y.MODAL; 14032 this.scrim && this.handleScrimClick && this.root.classList.contains(t) && (this.scrim.removeEventListener("click", this.handleScrimClick), (this.open = !1)); 14033 }), 14034 (g.prototype.getDefaultFoundation = function () { 14035 var e = this, 14036 t = { 14037 addClass: function (t) { 14038 e.root.classList.add(t); 14039 }, 14040 removeClass: function (t) { 14041 e.root.classList.remove(t); 14042 }, 14043 hasClass: function (t) { 14044 return e.root.classList.contains(t); 14045 }, 14046 elementHasClass: function (t, e) { 14047 return t.classList.contains(e); 14048 }, 14049 saveFocus: function () { 14050 e.previousFocus = document.activeElement; 14051 }, 14052 restoreFocus: function () { 14053 var t = e.previousFocus; 14054 t && t.focus && e.root.contains(document.activeElement) && t.focus(); 14055 }, 14056 focusActiveNavigationItem: function () { 14057 var t = e.root.querySelector(C.LIST_ITEM_ACTIVATED_SELECTOR); 14058 t && t.focus(); 14059 },
14060 notifyClose: function () { 14061 e.emit(C.CLOSE_EVENT, {}, !0); 14062 }, 14063 notifyOpen: function () { 14064 e.emit(C.OPEN_EVENT, {}, !0); 14065 }, 14066 trapFocus: function () { 14067 e.focusTrap.trapFocus(); 14068 }, 14069 releaseFocus: function () { 14070 e.focusTrap.releaseFocus(); 14071 }, 14072 }, 14073 n = y.DISMISSIBLE, 14074 i = y.MODAL; 14075 if (this.root.classList.contains(n)) return new p.MDCDismissibleDrawerFoundation(t); 14076 if (this.root.classList.contains(i)) return new h.MDCModalDrawerFoundation(t); 14077 throw new Error("MDCDrawer: Failed to instantiate component. Supported variants are " + n + " and " + i + "."); 14078 }), 14079 g); 14080 function g() { 14081 return (null !== c && c.apply(this, arguments)) || this; 14082 } 14083 e.MDCDrawer = E; 14084 }, 14085 function (t, e, n) { 14086 "use strict"; 14087 Object.defineProperty(e, "__esModule", { value: !0 }), (e.handleKeydown = e.clearBuffer = e.isTypingInProgress = e.matchItem = e.initSortedIndex = e.initState = void 0); 14088 var C = n(6), 14089 u = n(7), 14090 E = n(64); 14091 function g(t, e) { 14092 var n, 14093 i = t.nextChar, 14094 r = t.focusItemAtIndex, 14095 o = t.sortedIndexByFirstChar, 14096 s = t.focusedItemIndex, 14097 a = t.skipFocus, 14098 c = t.isItemAtIndexDisabled; 14099 return ( 14100 clearTimeout(e.bufferClearTimeout), 14101 (e.bufferClearTimeout = setTimeout(function () { 14102 l(e); 14103 }, u.numbers.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS)), 14104 (e.typeaheadBuffer = e.typeaheadBuffer + i), 14105 -1 === 14106 (n = 14107 1 === e.typeaheadBuffer.length 14108 ? (function (t, e, n, i) { 14109 var r = i.typeaheadBuffer[0], 14110 o = t.get(r); 14111 if (!o) return -1; 14112 if (r === i.currentFirstChar && o[i.sortedIndexCursor].index === e) { 14113 i.sortedIndexCursor = (i.sortedIndexCursor + 1) % o.length; 14114 var s = o[i.sortedIndexCursor].index; 14115 if (!n(s)) return s; 14116 } 14117 i.currentFirstChar = r; 14118 var a, 14119 c = -1; 14120 for (a = 0; a < o.length; a++) 14121 if (!n(o[a].index)) { 14122 c = a; 14123 break; 14124 } 14125 for (; a < o.length; a++) 14126 if (o[a].index > e && !n(o[a].index)) { 14127 c = a; 14128 break; 14129 } 14130 return -1 === c ? -1 : ((i.sortedIndexCursor = c), o[i.sortedIndexCursor].index); 14131 })(o, s, c, e) 14132 : (function (t, e, n) { 14133 var i = n.typeaheadBuffer[0], 14134 r = t.get(i); 14135 if (!r) return -1; 14136 var o = r[n.sortedIndexCursor]; 14137 if (0 === o.text.lastIndexOf(n.typeaheadBuffer, 0) && !e(o.index)) return o.index; 14138 var s = (n.sortedIndexCursor + 1) % r.length, 14139 a = -1; 14140 for (; s !== n.sortedIndexCursor; ) { 14141 var c = r[s], 14142 u = 0 === c.text.lastIndexOf(n.typeaheadBuffer, 0), 14143 l = !e(c.index); 14144 if (u && l) { 14145 a = s; 14146 break; 14147 } 14148 s = (s + 1) % r.length; 14149 } 14150 return -1 === a ? -1 : ((n.sortedIndexCursor = a), r[n.sortedIndexCursor].index); 14151 })(o, c, e)) || 14152 a || 14153 r(n), 14154 n 14155 ); 14156 } 14157 function _(t) { 14158 return 0 < t.typeaheadBuffer.length; 14159 } 14160 function l(t) { 14161 t.typeaheadBuffer = ""; 14162 } 14163 (e.initState = function () { 14164 return { bufferClearTimeout: 0, currentFirstChar: "", sortedIndexCursor: 0, typeaheadBuffer: "" }; 14165 }), 14166 (e.initSortedIndex = function (t, e) { 14167 for (var n = new Map(), i = 0; i < t; i++) { 14168 var r = e(i).trim(); 14169 if (r) { 14170 var o = r[0].toLowerCase(); 14171 n.has(o) || n.set(o, []), n.get(o).push({ text: r.toLowerCase(), index: i }); 14172 } 14173 } 14174 return (
14175 n.forEach(function (t) { 14176 t.sort(function (t, e) { 14177 return t.index - e.index; 14178 }); 14179 }), 14180 n 14181 ); 14182 }), 14183 (e.matchItem = g), 14184 (e.isTypingInProgress = _), 14185 (e.clearBuffer = l), 14186 (e.handleKeydown = function (t, e) { 14187 var n = t.event, 14188 i = t.isTargetListItem, 14189 r = t.focusedItemIndex, 14190 o = t.focusItemAtIndex, 14191 s = t.sortedIndexByFirstChar, 14192 a = t.isItemAtIndexDisabled, 14193 c = "ArrowLeft" === C.normalizeKey(n), 14194 u = "ArrowUp" === C.normalizeKey(n), 14195 l = "ArrowRight" === C.normalizeKey(n), 14196 d = "ArrowDown" === C.normalizeKey(n), 14197 p = "Home" === C.normalizeKey(n), 14198 h = "End" === C.normalizeKey(n), 14199 f = "Enter" === C.normalizeKey(n), 14200 y = "Spacebar" === C.normalizeKey(n); 14201 return n.ctrlKey || n.metaKey || c || u || l || d || p || h || f 14202 ? -1 14203 : y || 1 !== n.key.length 14204 ? y 14205 ? (i && E.preventDefaultEvent(n), i && _(e) ? g({ focusItemAtIndex: o, focusedItemIndex: r, nextChar: " ", sortedIndexByFirstChar: s, skipFocus: !1, isItemAtIndexDisabled: a }, e) : -1) 14206 : -1 14207 : (E.preventDefaultEvent(n), g({ focusItemAtIndex: o, focusedItemIndex: r, nextChar: n.key.toLowerCase(), sortedIndexByFirstChar: s, skipFocus: !1, isItemAtIndexDisabled: a }, e)); 14208 }); 14209 }, 14210 function (t, e, n) { 14211 "use strict"; 14212 var i = 14213 (this && this.__createBinding) || 14214 (Object.create 14215 ? function (t, e, n, i) { 14216 void 0 === i && (i = n), 14217 Object.defineProperty(t, i, { 14218 enumerable: !0, 14219 get: function () { 14220 return e[n]; 14221 }, 14222 }); 14223 } 14224 : function (t, e, n, i) { 14225 void 0 === i && (i = n), (t[i] = e[n]); 14226 }), 14227 r = 14228 (this && this.__exportStar) || 14229 function (t, e) { 14230 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14231 }; 14232 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(158), e), r(n(27), e), r(n(67), e), r(n(28), e); 14233 }, 14234 function (t, e, n) { 14235 "use strict"; 14236 Object.defineProperty(e, "__esModule", { value: !0 }); 14237 }, 14238 function (t, e, n) { 14239 "use strict"; 14240 var i = 14241 (this && this.__createBinding) || 14242 (Object.create 14243 ? function (t, e, n, i) { 14244 void 0 === i && (i = n), 14245 Object.defineProperty(t, i, { 14246 enumerable: !0, 14247 get: function () { 14248 return e[n]; 14249 }, 14250 }); 14251 } 14252 : function (t, e, n, i) { 14253 void 0 === i && (i = n), (t[i] = e[n]); 14254 }), 14255 r = 14256 (this && this.__exportStar) || 14257 function (t, e) { 14258 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14259 }; 14260 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(160), e), r(n(161), e), r(n(69), e), r(n(68), e); 14261 }, 14262 function (t, e, n) { 14263 "use strict"; 14264 Object.defineProperty(e, "__esModule", { value: !0 }); 14265 }, 14266 function (t, e, n) { 14267 "use strict"; 14268 var i, 14269 r = 14270 (this && this.__extends) || 14271 ((i = function (t, e) { 14272 return (i = 14273 Object.setPrototypeOf || 14274 ({ __proto__: [] } instanceof Array && 14275 function (t, e) { 14276 t.__proto__ = e; 14277 }) || 14278 function (t, e) { 14279 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 14280 })(t, e); 14281 }), 14282 function (t, e) { 14283 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 14284 function n() { 14285 this.constructor = t; 14286 } 14287 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 14288 }); 14289 Object.defineProperty(e, "__esModule", { value: !0 }
14289), (e.MDCFormField = void 0); 14290 var o, 14291 s = n(1), 14292 a = n(68), 14293 c = 14294 ((o = s.MDCComponent), 14295 r(u, o), 14296 (u.attachTo = function (t) { 14297 return new u(t); 14298 }), 14299 (u.prototype.labelEl = function () { 14300 var t = a.MDCFormFieldFoundation.strings.LABEL_SELECTOR; 14301 return this.root.querySelector(t); 14302 }), 14303 (u.prototype.getDefaultFoundation = function () { 14304 var i = this, 14305 t = { 14306 activateInputRipple: function () { 14307 i.input && i.input.ripple && i.input.ripple.activate(); 14308 }, 14309 deactivateInputRipple: function () { 14310 i.input && i.input.ripple && i.input.ripple.deactivate(); 14311 }, 14312 deregisterInteractionHandler: function (t, e) { 14313 var n = i.labelEl(); 14314 n && n.removeEventListener(t, e); 14315 }, 14316 registerInteractionHandler: function (t, e) { 14317 var n = i.labelEl(); 14318 n && n.addEventListener(t, e); 14319 }, 14320 }; 14321 return new a.MDCFormFieldFoundation(t); 14322 }), 14323 u); 14324 function u() { 14325 return (null !== o && o.apply(this, arguments)) || this; 14326 } 14327 e.MDCFormField = c; 14328 }, 14329 function (t, e, n) { 14330 "use strict"; 14331 var i = 14332 (this && this.__createBinding) || 14333 (Object.create 14334 ? function (t, e, n, i) { 14335 void 0 === i && (i = n), 14336 Object.defineProperty(t, i, { 14337 enumerable: !0, 14338 get: function () { 14339 return e[n]; 14340 }, 14341 }); 14342 } 14343 : function (t, e, n, i) { 14344 void 0 === i && (i = n), (t[i] = e[n]); 14345 }), 14346 r = 14347 (this && this.__exportStar) || 14348 function (t, e) { 14349 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14350 }; 14351 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(163), e), r(n(164), e), r(n(71), e), r(n(70), e), r(n(165), e); 14352 }, 14353 function (t, e, n) { 14354 "use strict"; 14355 Object.defineProperty(e, "__esModule", { value: !0 }); 14356 }, 14357 function (t, e, n) { 14358 "use strict"; 14359 var i, 14360 r = 14361 (this && this.__extends) || 14362 ((i = function (t, e) { 14363 return (i = 14364 Object.setPrototypeOf || 14365 ({ __proto__: [] } instanceof Array && 14366 function (t, e) { 14367 t.__proto__ = e; 14368 }) || 14369 function (t, e) { 14370 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 14371 })(t, e); 14372 }), 14373 function (t, e) { 14374 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 14375 function n() { 14376 this.constructor = t; 14377 } 14378 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 14379 }); 14380 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCIconButtonToggle = void 0); 14381 var o, 14382 s = n(1), 14383 a = n(2), 14384 c = n(70), 14385 u = c.MDCIconButtonToggleFoundation.strings, 14386 l = 14387 ((o = s.MDCComponent), 14388 r(d, o), 14389 (d.attachTo = function (t) { 14390 return new d(t); 14391 }), 14392 (d.prototype.initialSyncWithDOM = function () { 14393 var t = this; 14394 (this.handleClick = function () { 14395 t.foundation.handleClick(); 14396 }), 14397 this.listen("click", this.handleClick); 14398 }), 14399 (d.prototype.destroy = function () { 14400 this.unlisten("click", this.handleClick), this.ripple.destroy(), o.prototype.destroy.call(this); 14401 }), 14402 (d.prototype.getDefaultFoundation = function () { 14403 var n = this, 14404 t = { 14405 addClass: function (t) { 14406 return n.root.classList.add(t); 14407 }, 14408 hasClass: function (t) { 14409 return n.root.classList.contains(t); 14410 }, 14411 notifyChange: function (t) { 14412 n.emit(u.CHANGE_EVENT, t); 14413 }, 14414 removeClass: function (t) { 14415 return n.root.classList.remove(t); 14416 }, 14417 getAttr: function (t) { 14418 return n.root.getAttribute(t); 14419 }, 14420 setAttr: function (t, e) { 14421 return n.root.setAttribute(t, e); 14422 }, 14423 }; 14424 return new c.MDCIconButtonToggleFoundation(t); 14425 }), 14426 Object.defineProperty(d.prototype, "ripple", { 14427 get: function () { 14428 return this.rippleComponent; 14429 }, 14430 enumerable: !1, 14431 configurable: !0, 14432 }), 14433 Object.defineProperty(d.prototype, "on", { 14434 get: function () { 14435 return this.foundation.isOn(); 14436 }, 14437 set: function (t) { 14438 this.foundation.toggle(t); 14439 }, 14440 enumerable: !1, 14441 configurable: !0, 14442 }), 14443 (d.prototype.createRipple = function () { 14444 var t = new a.MDCRipple(this.root); 14445 return (t.unbounded = !0), t; 14446 }), 14447 d); 14448 function d() { 14449 var t = (null !== o && o.apply(this, arguments)) || this; 14450 return (t.rippleComponent = t.createRipple()), t; 14451 } 14452 e.MDCIconButtonToggle = l; 14453 }, 14454 function (t, e, n) { 14455 "use strict"; 14456 Object.defineProperty(e, "__esModule", { value: !0 }); 14457 }, 14458 function (t, e, n) { 14459 "use strict"; 14460 var i = 14461 (this && this.__createBinding) || 14462 (Object.create 14463 ? function (t, e, n, i) { 14464 void 0 === i && (i = n), 14465 Object.defineProperty(t, i, { 14466 enumerable: !0, 14467 get: function () { 14468 return e[n]; 14469 }, 14470 }); 14471 } 14472 : function (t, e, n, i) { 14473 void 0 === i && (i = n), (t[i] = e[n]); 14474 }), 14475 r = 14476 (this && this.__exportStar) || 14477 function (t, e) { 14478 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14479 }; 14480 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(167), e), r(n(29), e), r(n(73), e), r(n(72), e); 14481 }, 14482 function (t, e, n) { 14483 "use strict"; 14484 Object.defineProperty(e, "__esModule", { value: !0 }); 14485 }, 14486 function (t, e, n) { 14487 "use strict"; 14488 var i = 14489 (this && this.__createBinding) || 14490 (Object.create 14491 ? function (t, e, n, i) { 14492 void 0 === i && (i = n), 14493 Object.defineProperty(t, i, { 14494 enumerable: !0, 14495 get: function () { 14496 return e[n]; 14497 }, 14498 }); 14499 } 14500 : function (t, e, n, i) { 14501 void 0 === i && (i = n), (t[i] = e[n]); 14502 }), 14503 r = 14504 (this && this.__exportStar) || 14505 function (t, e) { 14506 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14507 }; 14508 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(169), e), r(n(56), e), r(n(58), e), r(n(57), e), r(n(170), e); 14509 }, 14510 function (t, e, n) { 14511 "use strict"; 14512 Object.defineProperty(e, "__esModule", { value: !0 }); 14513 }, 14514 function (t, e, n) { 14515 "use strict"; 14516 Object.defineProperty(e, "__esModule", { value: !0 }); 14517 }, 14518 function (t, e, n) { 14519 "use strict"; 14520 var i = 14521 (this && this.__createBinding) || 14522 (Object.create 14523 ? function (t, e, n, i) { 14524 void 0 === i && (i = n), 14525 Object.defineProperty(t, i, { 14526 enumerable: !0, 14527 get: function () { 14528 return e[n]; 14529 }, 14530 }); 14531 } 14532 : function (t, e, n, i) { 14533 void 0 === i && (i = n), (t[i] = e[n]); 14534 }), 14535 r = 14536 (this && this.__exportStar) || 14537 function (t, e) { 14538 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14539 }; 14540 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(172), e), r(n(24), e), r(n(7), e), r(n(25), e), r(n(173), e); 14541 }, 14542 function (t, e, n) { 14543 "use strict"; 14544 Object.defineProperty(e, "__esModule", { value: !0 }); 14545 }, 14546 function (t, e, n) { 14547 "use strict"; 14548 Object.defineProperty(e, "__esModule", { value: !0 }); 14549 }, 14550 function (t, e, n) { 14551 "use strict"; 14552 var i = 14553 (this && this.__createBinding) || 14554 (Object.create 14555 ? function (t, e, n, i) { 14556 void 0 === i && (i = n), 14557 Object.defineProperty(t, i, { 14558 enumerable: !0, 14559 get: function () { 14560 return e[n]; 14561 }, 14562 }); 14563 } 14564 : function (t, e, n, i) { 14565 void 0 === i && (i = n), (t[i] = e[n]); 14566 }), 14567 r = 14568 (this && this.__exportStar) || 14569 function (t, e) { 14570 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14571 }; 14572 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(175), e), r(n(74), e), r(n(8), e), r(n(14), e), r(n(176), e); 14573 }, 14574 function (t, e, n) { 14575 "use strict"; 14576 Object.defineProperty(e, "__esModule", { value: !0 }); 14577 }, 14578 function (t, e, n) { 14579 "use strict"; 14580 Object.defineProperty(e, "__esModule", { value: !0 }); 14581 }, 14582 function (t, e, n) { 14583 "use strict"; 14584 var i = 14585 (this && this.__createBinding) || 14586 (Object.create 14587 ? function (t, e, n, i) { 14588 void 0 === i && (i = n), 14589 Object.defineProperty(t, i, { 14590 enumerable: !0, 14591 get: function () { 14592 return e[n]; 14593 }, 14594 }); 14595 } 14596 : function (t, e, n, i) { 14597 void 0 === i && (i = n), (t[i] = e[n]); 14598 }), 14599 r = 14600 (this && this.__exportStar) || 14601 function (t, e) { 14602 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14603 }; 14604 Object.defineProperty(e, "__esModule", { value: !0 }), (e.Corner = void 0); 14605 var o = n(8); 14606 Object.defineProperty(e, "Corner", { 14607 enumerable: !0, 14608 get: function () { 14609 return o.Corner; 14610 }, 14611 }), 14612 r(n(178), e), 14613 r(n(75), e), 14614 r(n(15), e), 14615 r(n(76), e), 14616 r(n(179), e); 14617 }, 14618 function (t, e, n) { 14619 "use strict"; 14620 Object.defineProperty(e, "__esModule", { value: !0 }); 14621 }, 14622 function (t, e, n) { 14623 "use strict"; 14624 Object.definePro
14624perty(e, "__esModule", { value: !0 }); 14625 }, 14626 function (t, e, n) { 14627 "use strict"; 14628 var i = 14629 (this && this.__createBinding) || 14630 (Object.create 14631 ? function (t, e, n, i) { 14632 void 0 === i && (i = n), 14633 Object.defineProperty(t, i, { 14634 enumerable: !0, 14635 get: function () { 14636 return e[n]; 14637 }, 14638 }); 14639 } 14640 : function (t, e, n, i) { 14641 void 0 === i && (i = n), (t[i] = e[n]); 14642 }), 14643 r = 14644 (this && this.__exportStar) || 14645 function (t, e) { 14646 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14647 }; 14648 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(181), e), r(n(30), e), r(n(31), e), r(n(77), e); 14649 }, 14650 function (t, e, n) { 14651 "use strict"; 14652 Object.defineProperty(e, "__esModule", { value: !0 }); 14653 }, 14654 function (t, e, n) { 14655 "use strict"; 14656 var i = 14657 (this && this.__createBinding) || 14658 (Object.create 14659 ? function (t, e, n, i) { 14660 void 0 === i && (i = n), 14661 Object.defineProperty(t, i, { 14662 enumerable: !0, 14663 get: function () { 14664 return e[n]; 14665 }, 14666 }); 14667 } 14668 : function (t, e, n, i) { 14669 void 0 === i && (i = n), (t[i] = e[n]); 14670 }), 14671 r = 14672 (this && this.__exportStar) || 14673 function (t, e) { 14674 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14675 }; 14676 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(183), e), r(n(184), e), r(n(79), e), r(n(78), e); 14677 }, 14678 function (t, e, n) { 14679 "use strict"; 14680 Object.defineProperty(e, "__esModule", { value: !0 }); 14681 }, 14682 function (t, e, n) { 14683 "use strict"; 14684 var i, 14685 r = 14686 (this && this.__extends) || 14687 ((i = function (t, e) { 14688 return (i = 14689 Object.setPrototypeOf || 14690 ({ __proto__: [] } instanceof Array && 14691 function (t, e) { 14692 t.__proto__ = e; 14693 }) || 14694 function (t, e) { 14695 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 14696 })(t, e); 14697 }), 14698 function (t, e) { 14699 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 14700 function n() { 14701 this.constructor = t; 14702 } 14703 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 14704 }), 14705 o = 14706 (this && this.__assign) || 14707 function () { 14708 return (o = 14709 Object.assign || 14710 function (t) { 14711 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 14712 return t; 14713 }).apply(this, arguments); 14714 }; 14715 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCRadio = void 0); 14716 var s, 14717 a = n(1), 14718 c = n(5), 14719 u = n(2), 14720 l = n(4), 14721 d = n(78), 14722 p = 14723 ((s = a.MDCComponent), 14724 r(h, s), 14725 (h.attachTo = function (t) { 14726 return new h(t); 14727 }), 14728 Object.defineProperty(h.prototype, "checked", { 14729 get: function () { 14730 return this.nativeControl.checked; 14731 }, 14732 set: function (t) { 14733 this.nativeControl.checked = t; 14734 }, 14735 enumerable: !1, 14736 configurable: !0, 14737 }), 14738 Object.defineProperty(h.prototype, "disabled", { 14739 get: function () { 14740 return this.nativeControl.disabled; 14741 }, 14742 set: function (t) { 14743 this.foundation.setDisabled(t); 14744 }, 14745 enumerable: !1, 14746 configurable: !0, 14747 }), 14748 Object.defineProperty(h.prototype, "value", { 14749 get: function () { 14750 return this.nativeControl.value; 14751 }, 14752 set: function (t) { 14753 this.nativeControl.value = t; 14754 }, 14755 enumerable: !1, 14756 configurable: !0, 14757 }), 14758 Object.defineProperty(h.prototype, "ripple", { 14759 get: function () { 14760 return this.rippleSurface; 14761 }, 14762 enumerable: !1, 14763 configurable: !0, 14764 }), 14765 (h.prototype.destroy = function () { 14766 this.rippleSurface.destroy(), s.prototype.destroy.call(this); 14767 }), 14768 (h.prototype.getDefaultFoundation = function () { 14769 var e = this, 14770 t = { 14771 addClass: function (t) { 14772 return e.root.classList.add(t); 14773 }, 14774 removeClass: function (t) { 14775 return e.root.classList.remove(t); 14776 }, 14777 setNativeControlDisabled: function (t) { 14778 return (e.nativeControl.disabled = t); 14779 }, 14780 }; 14781 return new d.MDCRadioFoundation(t); 14782 }), 14783 (h.prototype.createRipple = function () { 14784 var n = this, 14785 t = o(o({}, u.MDCRipple.createAdapter(this)), { 14786 registerInteractionHandler: function (t, e) { 14787 n.nativeControl.addEventListener(t, e, c.applyPassive()); 14788 }, 14789 deregisterInteractionHandler: function (t, e) { 14790 n.nativeControl.removeEventListener(t, e, c.applyPassive()); 14791 }, 14792 isSurfaceActive: function () { 14793 return !1; 14794 }, 14795 isUnbounded: function () { 14796 return !0; 14797 }, 14798 }); 14799 return new u.MDCRipple(this.root, new l.MDCRippleFoundation(t)); 14800 }),
14801 Object.defineProperty(h.prototype, "nativeControl", { 14802 get: function () { 14803 var t = d.MDCRadioFoundation.strings.NATIVE_CONTROL_SELECTOR, 14804 e = this.root.querySelector(t); 14805 if (!e) throw new Error("Radio component requires a " + t + " element"); 14806 return e; 14807 }, 14808 enumerable: !1, 14809 configurable: !0, 14810 }), 14811 h); 14812 function h() { 14813 var t = (null !== s && s.apply(this, arguments)) || this; 14814 return (t.rippleSurface = t.createRipple()), t; 14815 } 14816 e.MDCRadio = p; 14817 }, 14818 function (t, e, n) { 14819 "use strict"; 14820 var i = 14821 (this && this.__createBinding) || 14822 (Object.create 14823 ? function (t, e, n, i) { 14824 void 0 === i && (i = n), 14825 Object.defineProperty(t, i, { 14826 enumerable: !0, 14827 get: function () { 14828 return e[n]; 14829 }, 14830 }); 14831 } 14832 : function (t, e, n, i) { 14833 void 0 === i && (i = n), (t[i] = e[n]); 14834 }), 14835 r = 14836 (this && this.__setModuleDefault) || 14837 (Object.create 14838 ? function (t, e) { 14839 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 14840 } 14841 : function (t, e) { 14842 t.default = e; 14843 }), 14844 o = 14845 (this && this.__importStar) || 14846 function (t) { 14847 if (t && t.__esModule) return t; 14848 var e = {}; 14849 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 14850 return r(e, t), e; 14851 }, 14852 s = 14853 (this && this.__exportStar) || 14854 function (t, e) { 14855 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14856 }; 14857 Object.defineProperty(e, "__esModule", { value: !0 }), (e.util = void 0); 14858 var a = o(n(19)); 14859 (e.util = a), s(n(186), e), s(n(2), e), s(n(47), e), s(n(4), e), s(n(187), e); 14860 }, 14861 function (t, e, n) { 14862 "use strict"; 14863 Object.defineProperty(e, "__esModule", { value: !0 }); 14864 }, 14865 function (t, e, n) { 14866 "use strict"; 14867 Object.defineProperty(e, "__esModule", { value: !0 }); 14868 }, 14869 function (t, e, n) { 14870 "use strict"; 14871 var i = 14872 (this && this.__createBinding) || 14873 (Object.create 14874 ? function (t, e, n, i) { 14875 void 0 === i && (i = n), 14876 Object.defineProperty(t, i, { 14877 enumerable: !0, 14878 get: function () { 14879 return e[n]; 14880 }, 14881 }); 14882 } 14883 : function (t, e, n, i) { 14884 void 0 === i && (i = n), (t[i] = e[n]); 14885 }), 14886 r = 14887 (this && this.__exportStar) || 14888 function (t, e) { 14889 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14890 }; 14891 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(189), e), r(n(192), e), r(n(194), e); 14892 }, 14893 function (t, e, n) { 14894 "use strict"; 14895 var i = 14896 (this && this.__createBinding) || 14897 (Object.create 14898 ? function (t, e, n, i) { 14899 void 0 === i && (i = n), 14900 Object.defineProperty(t, i, { 14901 enumerable: !0, 14902 get: function () { 14903 return e[n]; 14904 }, 14905 }); 14906 } 14907 : function (t, e, n, i) { 14908 void 0 === i && (i = n), (t[i] = e[n]); 14909 }), 14910 r = 14911 (this && this.__exportStar) || 14912 function (t, e) { 14913 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 14914 }; 14915 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(190), e), r(n(80), e), r(n(191), e); 14916 }, 14917 function (t, e, n) { 14918 "use strict"; 14919 Object.defineProperty(e, "__esModule", { value: !0 }); 14920 }, 14921 function (t, e, n) { 14922 "use strict"; 14923 var i, 14924 r = 14925 (this && this.__extends) || 14926 ((i = function (t, e) { 14927 return (i = 14928 Object.setPrototypeOf || 14929 ({ __proto__: [] } instanceof Array && 14930 function (t, e) { 14931 t.__proto__ = e; 14932 }) || 14933 function (t, e) { 14934 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 14935 })(t, e); 14936 }), 14937 function (t, e) { 14938 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 14939 function n() { 14940 this.constructor = t; 14941 } 14942 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 14943 }), 14944 o = 14945 (this && this.__values) || 14946 function (t) { 14947 var e = "function" == typeof Symbol && Symbol.iterator, 14948 n = e && t[e], 14949 i = 0; 14950 if (n) return n.call(t); 14951 if (t && "number" == typeof t.length) 14952 return { 14953 next: function () { 14954 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 14955 }, 14956 }; 14957 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 14958 }; 14959 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSegmentedButton = void 0); 14960 var s, 14961 a = n(1), 14962 c = n(82), 14963 u = n(81), 14964 l = n(80), 14965 d = 14966 ((s = a.MDCComponent), 14967 r(p, s), 14968 (p.attachTo = function (t) { 14969 return new p(t); 14970 }), 14971 Object.defineProperty(p.prototype, "segments", { 14972 get: function () { 14973 return this.segmentsList.slice(); 14974 }, 14975 enumerable: !1, 14976 configurable: !0, 14977 }), 14978 (p.prototype.initialize = function (t) { 14979 void 0 === t && 14980 (t = function (t) { 14981 return new c.MDCSegmentedButtonSegment(t); 14982 }), 14983 (this.segmentFactory = t), 14984 (this.segmentsList = this.instantiateSegments(this.segmentFactory)
14984); 14985 }), 14986 (p.prototype.instantiateSegments = function (e) { 14987 return [].slice.call(this.root.querySelectorAll(u.selectors.SEGMENT)).map(function (t) { 14988 return e(t); 14989 }); 14990 }), 14991 (p.prototype.initialSyncWithDOM = function () { 14992 var e = this; 14993 (this.handleSelected = function (t) { 14994 e.foundation.handleSelected(t.detail); 14995 }), 14996 this.listen(u.events.SELECTED, this.handleSelected); 14997 for (var t = this.foundation.isSingleSelect(), n = 0; n < this.segmentsList.length; n++) { 14998 var i = this.segmentsList[n]; 14999 i.setIndex(n), i.setIsSingleSelect(t); 15000 } 15001 var r = this.segmentsList.filter(function (t) { 15002 return t.isSelected(); 15003 }); 15004 if (t && 0 === r.length && 0 < this.segmentsList.length) throw new Error("No segment selected in singleSelect mdc-segmented-button"); 15005 if (t && 1 < r.length) throw new Error("Multiple segments selected in singleSelect mdc-segmented-button"); 15006 }), 15007 (p.prototype.destroy = function () { 15008 var e, t; 15009 try { 15010 for (var n = o(this.segmentsList), i = n.next(); !i.done; i = n.next()) i.value.destroy(); 15011 } catch (t) { 15012 e = { error: t }; 15013 } finally { 15014 try { 15015 i && !i.done && (t = n.return) && t.call(n); 15016 } finally { 15017 if (e) throw e.error; 15018 } 15019 } 15020 this.unlisten(u.events.SELECTED, this.handleSelected), s.prototype.destroy.call(this); 15021 }), 15022 (p.prototype.getDefaultFoundation = function () { 15023 var n = this, 15024 t = { 15025 hasClass: function (t) { 15026 return n.root.classList.contains(t); 15027 }, 15028 getSegments: function () { 15029 return n.mappedSegments(); 15030 }, 15031 selectSegment: function (e) { 15032 var t = n.mappedSegments().find(function (t) { 15033 return t.index === e || t.segmentId === e; 15034 }); 15035 t && n.segmentsList[t.index].setSelected(); 15036 }, 15037 unselectSegment: function (e) { 15038 var t = n.mappedSegments().find(function (t) { 15039 return t.index === e || t.segmentId === e; 15040 }); 15041 t && n.segmentsList[t.index].setUnselected(); 15042 }, 15043 notifySelectedChange: function (t) { 15044 n.emit(u.events.CHANGE, t, !0); 15045 }, 15046 }; 15047 return new l.MDCSegmentedButtonFoundation(t); 15048 }), 15049 (p.prototype.getSelectedSegments = function () { 15050 return this.foundation.getSelectedSegments(); 15051 }), 15052 (p.prototype.selectSegment = function (t) { 15053 this.foundation.selectSegment(t); 15054 }), 15055 (p.prototype.unselectSegment = function (t) { 15056 this.foundation.unselectSegment(t); 15057 }), 15058 (p.prototype.isSegmentSelected = function (t) { 15059 return this.foundation.isSegmentSelected(t); 15060 }), 15061 (p.prototype.mappedSegments = function () { 15062 return this.segmentsList.map(function (t, e) { 15063 return { index: e, selected: t.isSelected(), segmentId: t.getSegmentId() }; 15064 }); 15065 }), 15066 p); 15067 function p() { 15068 return (null !== s && s.apply(this, arguments)) || this; 15069 } 15070 e.MDCSegmentedButton = d; 15071 }, 15072 function (t, e, n) { 15073 "use strict"; 15074 var i = 15075 (this && this.__createBinding) || 15076 (Object.create 15077 ? function (t, e, n, i) { 15078 void 0 === i && (i = n), 15079 Object.defineProperty(t, i, { 15080 enumerable: !0, 15081 get: function () { 15082 return e[n]; 15083 }, 15084 }); 15085 } 15086 : function (t, e, n, i) { 15087 void 0 === i && (i = n), (t[i] = e[n]); 15088 }), 15089 r = 15090 (this && this.__exportStar) || 15091 function (t, e) { 15092 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 15093 }; 15094 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(193), e), r(n(84), e), r(n(82), e); 15095 }, 15096 function (t, e, n) { 15097 "use strict"; 15098 Object.defineProperty(e, "__esModule", { value: !0 }); 15099 }, 15100 function (t, e, n) { 15101 "use strict"; 15102 Object.defineProperty(e, "__esModule", { value: !0 }); 15103 }, 15104 function (t, e, n) { 15105 "use strict"; 15106 var i = 15107 (this && this.__createBinding) || 15108 (Object.create 15109 ? function (t, e, n, i) { 15110 void 0 === i && (i = n), 15111 Object.defineProperty(t, i, { 15112 enumerable: !0, 15113 get: function () { 15114 return e[n]; 15115 }, 15116 }); 15117 } 15118 : function (t, e, n, i) { 15119 void 0 === i && (i = n), (t[i] = e[n]); 15120 }), 15121 r = 15122 (this && this.__exportStar) || 15123 function (t, e) { 15124 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 15125 }; 15126 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(196), e), r(n(197), e), r(n(32), e), r(n(85), e), r(n(198), e), r(n(199), e), r(n(201), e); 15127 }, 15128 function (t, e, n) { 15129 "use strict"; 15130 Object.defineProperty(e, "__esModule", { value: !0 }); 15131 }, 15132 function (t, e, n) { 15133 "use strict"; 15134 var i, 15135 r = 15136 (this && this.__extends) || 15137 ((i = function (t, e) { 15138 return (i = 15139 Object.setPrototypeOf || 15140 ({ __proto__: [] } instanceof Array && 15141 function (t, e) { 15142 t.__proto__ = e; 15143 }) || 15144 function (t, e) { 15145 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 15146 })(t, e); 15147 }), 15148 function (t, e) { 15149 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 15150 function n() { 15151 this.constructor = t; 15152 } 15153 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 15154 }), 15155 o = 15156 (this && this.__assign) || 15157 function () { 15158 return (o = 15159 Object.assign || 15160 function (t) { 15161 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 15162 return t; 15163 }).apply(this, arguments); 15164 }, 15165 s = 15166 (this && this.__createBinding) || 15167 (Object.create 15168 ? function (t, e, n, i) { 15169 void 0 === i && (i = n), 15170 Object.defineProperty(t, i, { 15171 enumerable: !0, 15172 get: function () { 15173 return e[n]; 15174 }, 15175 }); 15176 } 15177 : function (t, e, n, i) { 15178 void 0 === i && (i = n), (t[i] = e[n]); 15179 }), 15180 a = 15181 (this && this.__setModuleDefault) || 15182 (Object.create 15183 ? function (t, e) { 15184 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 15185 } 15186 : function (t, e) { 15187 t.default = e; 15188 }), 15189 c = 15190 (this && this.__importStar) || 15191 function (t) { 15192 if (t && t.__esModule) return t; 15193 var e = {}; 15194 if (null != t) for (var n in t) "default"
15194!== n && Object.prototype.hasOwnProperty.call(t, n) && s(e, t, n); 15195 return a(e, t), e; 15196 }; 15197 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSelect = void 0); 15198 var u, 15199 l = n(1), 15200 d = n(27), 15201 p = n(29), 15202 h = c(n(8)), 15203 f = n(75), 15204 y = c(n(15)), 15205 C = n(30), 15206 E = n(2), 15207 g = n(4), 15208 _ = n(32), 15209 m = n(85), 15210 v = n(86), 15211 T = n(89), 15212 b = 15213 ((u = l.MDCComponent), 15214 r(A, u), 15215 (A.attachTo = function (t) { 15216 return new A(t); 15217 }), 15218 (A.prototype.initialize = function (t, e, n, i, r, o) { 15219 if ( 15220 (void 0 === t && 15221 (t = function (t) { 15222 return new d.MDCFloatingLabel(t); 15223 }), 15224 void 0 === e && 15225 (e = function (t) { 15226 return new p.MDCLineRipple(t); 15227 }), 15228 void 0 === n && 15229 (n = function (t) { 15230 return new C.MDCNotchedOutline(t); 15231 }), 15232 void 0 === i && 15233 (i = function (t) { 15234 return new f.MDCMenu(t); 15235 }), 15236 void 0 === r && 15237 (r = function (t) { 15238 return new T.MDCSelectIcon(t); 15239 }), 15240 void 0 === o && 15241 (o = function (t) { 15242 return new v.MDCSelectHelperText(t); 15243 }), 15244 (this.selectAnchor = this.root.querySelector(_.strings.SELECT_ANCHOR_SELECTOR)), 15245 (this.selectedText = this.root.querySelector(_.strings.SELECTED_TEXT_SELECTOR)), 15246 (this.hiddenInput = this.root.querySelector(_.strings.HIDDEN_INPUT_SELECTOR)), 15247 !this.selectedText) 15248 ) 15249 throw new Error("MDCSelect: Missing required element: The following selector must be present: '" + _.strings.SELECTED_TEXT_SELECTOR + "'"); 15250 if (this.selectAnchor.hasAttribute(_.strings.ARIA_CONTROLS)) { 15251 var s = document.getElementById(this.selectAnchor.getAttribute(_.strings.ARIA_CONTROLS)); 15252 s && (this.helperText = o(s)); 15253 } 15254 this.menuSetup(i); 15255 var a = this.root.querySelector(_.strings.LABEL_SELECTOR); 15256 this.label = a ? t(a) : null; 15257 var c = this.root.querySelector(_.strings.LINE_RIPPLE_SELECTOR); 15258 this.lineRipple = c ? e(c) : null; 15259 var u = this.root.querySelector(_.strings.OUTLINE_SELECTOR); 15260 this.outline = u ? n(u) : null; 15261 var l = this.root.querySelector(_.strings.LEADING_ICON_SELECTOR); 15262 l && (this.leadingIcon = r(l)), this.root.classList.contains(_.cssClasses.OUTLINED) || (this.ripple = this.createRipple()); 15263 }), 15264 (A.prototype.initialSyncWithDOM = function () { 15265 var e = this; 15266 if ( 15267 ((this.handleFocus = function () { 15268 e.foundation.handleFocus(); 15269 }), 15270 (this.handleBlur = function () { 15271 e.foundation.handleBlur(); 15272 }), 15273 (this.handleClick = function (t) { 15274 e.selectAnchor.focus(), e.foundation.handleClick(e.getNormalizedXCoordinate(t)); 15275 }), 15276 (this.handleKeydown = function (t) { 15277 e.foundation.handleKeydown(t); 15278 }), 15279 (this.handleMenuItemAction = function (t) { 15280 e.foundation.handleMenuItemAction(t.detail.index); 15281 }), 15282 (this.handleMenuOpened = function () { 15283 e.foundation.handleMenuOpened(); 15284 }), 15285 (this.handleMenuClosed = function () { 15286 e.foundation.handleMenuClosed(); 15287 }), 15288 (this.handleMenuClosing = function () { 15289 e.foundation.handleMenuClosing(); 15290 }), 15291 this.selectAnchor.addEventListener("focus", this.handleFocus), 15292 this.selectAnchor.addEventListener("blur", this.handleBlur), 15293 this.selectAnchor.addEventListener("click", this.handleClick), 15294 this.selectAnchor.addEventListener("keydown", this.handleKeydown), 15295 this.menu.listen(h.strings.CLOSED_EVENT, this.handleMenuClosed), 15296 this.menu.listen(h.strings.CLOSING_EVENT, this.handleMenuClosing), 15297 this.menu.listen(h.strings.OPENED_EVENT, this.handleMenuOpened), 15298 this.menu.listen(y.strings.SELECTED_EVENT, this.handleMenuItemAction), 15299 this.hiddenInput) 15300 ) { 15301 if (this.hiddenInput.value) return this.foundation.setValue(this.hiddenInput.value, !0), void this.foundation.layout(); 15302 this.hiddenInput.value = this.value; 15303 } 15304 }), 15305 (A.prototype.destroy = function () { 15306 this.selectAnchor.removeEventListener("focus", this.handleFocus), 15307 this.selectAnchor.removeEventListener("blur", this.handleBlur), 15308 this.selectAnchor.removeEventListener("keydown", this.handleKeydown), 15309 this.selectAnchor.removeEventListener("click", this.handleClick), 15310 this.menu.unlisten(h.strings.CLOSED_EVENT, this.handleMenuClosed), 15311 this.menu.unlisten(h.strings.OPENED_EVENT, this.handleMenuOpened), 15312 this.menu.unlisten(y.strings.SELECTED_EVENT, this.handleMenuItemAction), 15313 this.menu.destroy(), 15314 this.ripple && this.ripple.destroy(), 15315 this.outline && this.outline.destroy(), 15316 this.leadingIcon && this.leadingIcon.destroy(), 15317 this.helperText && this.helperText.destroy(), 15318 u.prototype.destroy.call(this); 15319 }), 15320 Object.defineProperty(A.prototype, "value", { 15321 get: function () { 15322 return this.foundation.getValue(); 15323 }, 15324 set: function (t) { 15325 this.foundation.setValue(t); 15326 }, 15327 enumerable: !1, 15328 configurable: !0, 15329 }), 15330 (A.prototype.setValue = function (t, e) { 15331 void 0 === e && (e = !1), this.foundation.setValue(t, e); 15332 }), 15333 Object.defineProperty(A.prototype, "selectedIndex", { 15334 get: function () { 15335 return this.foundation.getSelectedIndex(); 15336 }, 15337 set: function (t) { 15338 this.foundation.setSelectedIndex(t, !0); 15339 }, 15340 enumerable: !1, 15341 configurable: !0, 15342 }), 15343 (A.prototype.setSelectedIndex = function (t, e) { 15344 void 0 === e && (e = !1), this.foundation.setSelectedIndex(t, !0, e); 15345 }), 15346 Object.defineProperty(A.prototype, "disabled", { 15347 get: function () { 15348 return this.foundation.getDisabled(); 15349 }, 15350 set: function (t) { 15351 this.foundation.setDisabled(t), this.hiddenInput && (this.hiddenInput.disabled = t); 15352 }, 15353 enumerable: !1, 15354 configurable: !0, 15355 }), 15356 Object.defineProperty(A.prototype, "leadingIconAriaLabel", { 15357 set: function (t) { 15358 this.foundation.setLeadingIconAriaLabel(t); 15359 }, 15360 enumerable: !1, 15361 configurable: !0, 15362 }), 15363 Object.defineProperty(A.prototype, "leadingIconContent", { 15364 set: function (t) { 15365 this.foundation.setLeadingIconContent(t); 15366 }, 15367 enumerable: !1, 15368 configurable: !0, 15369 }), 15370 Object.defineProperty(A.prototype, "helperTextContent", { 15371 set: function (t) { 15372 this.foundation.setHelperTextContent(t); 15373 }, 15374 enumerable: !1, 15375 configurable: !0, 15376 }), 15377 Object.defineProperty(A.prototype, "useDefaultValidation", { 15378 set: function (t) { 15379 this.foundation.setUseDefaultValidation(t); 15380 }, 15381 enumerable: !1, 15382 configurable: !0, 15383 }), 15384 Object.defineProperty(A.prototype, "valid", { 15385 get: function () { 15386 return this.foundation.isValid(); 15387 }, 15388 set: function (t) { 15389 this.foundation.setValid(t); 15390 }, 15391 enumerable: !1, 15392 configurable: !0, 15393 }), 15394 Object.defineProperty(A.prototype, "required", { 15395 get: function () { 15396 return this.foundation.getRequired(); 15397 }, 15398 set: function (t) { 15399 this.foundation.setRequired(t); 15400 }, 15401 enumerable: !1, 15402 configurable: !0, 15403 }), 15404 (A.prototype.layout = function () { 15405 this.foundation.layout(); 15406 }), 15407 (A.prototype.layoutOptions = function () { 15408 this.foundation.layoutOptions(), 15409 this.menu.layout(), 15410 (this.menuItemValues = this.menu.items.map(function (t) { 15411 return t.getAttribute(_.strings.VALUE_ATTR) || ""; 15412 })), 15413 this.hiddenInput && (this.hiddenInput.value = this.value); 15414 }), 15415 (A.prototype.getDefaultFoundation = function () { 15416 var t = o(o(o(o({}
15416, this.getSelectAdapterMethods()), this.getCommonAdapterMethods()), this.getOutlineAdapterMethods()), this.getLabelAdapterMethods()); 15417 return new m.MDCSelectFoundation(t, this.getFoundationMap()); 15418 }), 15419 (A.prototype.menuSetup = function (t) { 15420 (this.menuElement = this.root.querySelector(_.strings.MENU_SELECTOR)), 15421 (this.menu = t(this.menuElement)), 15422 (this.menu.hasTypeahead = !0), 15423 (this.menu.singleSelection = !0), 15424 (this.menuItemValues = this.menu.items.map(function (t) { 15425 return t.getAttribute(_.strings.VALUE_ATTR) || ""; 15426 })); 15427 }), 15428 (A.prototype.createRipple = function () { 15429 var n = this, 15430 t = o(o({}, E.MDCRipple.createAdapter({ root: this.selectAnchor })), { 15431 registerInteractionHandler: function (t, e) { 15432 n.selectAnchor.addEventListener(t, e); 15433 }, 15434 deregisterInteractionHandler: function (t, e) { 15435 n.selectAnchor.removeEventListener(t, e); 15436 }, 15437 }); 15438 return new E.MDCRipple(this.selectAnchor, new g.MDCRippleFoundation(t)); 15439 }), 15440 (A.prototype.getSelectAdapterMethods = function () { 15441 var n = this; 15442 return { 15443 getMenuItemAttr: function (t, e) { 15444 return t.getAttribute(e); 15445 }, 15446 setSelectedText: function (t) { 15447 n.selectedText.textContent = t; 15448 }, 15449 isSelectAnchorFocused: function () { 15450 return document.activeElement === n.selectAnchor; 15451 }, 15452 getSelectAnchorAttr: function (t) { 15453 return n.selectAnchor.getAttribute(t); 15454 }, 15455 setSelectAnchorAttr: function (t, e) { 15456 n.selectAnchor.setAttribute(t, e); 15457 }, 15458 removeSelectAnchorAttr: function (t) { 15459 n.selectAnchor.removeAttribute(t); 15460 }, 15461 addMenuClass: function (t) { 15462 n.menuElement.classList.add(t); 15463 }, 15464 removeMenuClass: function (t) { 15465 n.menuElement.classList.remove(t); 15466 }, 15467 openMenu: function () { 15468 n.menu.open = !0; 15469 }, 15470 closeMenu: function () { 15471 n.menu.open = !1; 15472 }, 15473 getAnchorElement: function () { 15474 return n.root.querySelector(_.strings.SELECT_ANCHOR_SELECTOR); 15475 }, 15476 setMenuAnchorElement: function (t) { 15477 n.menu.setAnchorElement(t); 15478 }, 15479 setMenuAnchorCorner: function (t) { 15480 n.menu.setAnchorCorner(t); 15481 }, 15482 setMenuWrapFocus: function (t) { 15483 n.menu.wrapFocus = t; 15484 }, 15485 getSelectedIndex: function () { 15486 var t = n.menu.selectedIndex; 15487 return t instanceof Array ? t[0] : t; 15488 }, 15489 setSelectedIndex: function (t) { 15490 n.menu.selectedIndex = t; 15491 }, 15492 focusMenuItemAtIndex: function (t) { 15493 n.menu.items[t].focus(); 15494 }, 15495 getMenuItemCount: function () { 15496 return n.menu.items.length; 15497 },
15498 getMenuItemValues: function () { 15499 return n.menuItemValues; 15500 }, 15501 getMenuItemTextAtIndex: function (t) { 15502 return n.menu.getPrimaryTextAtIndex(t); 15503 }, 15504 isTypeaheadInProgress: function () { 15505 return n.menu.typeaheadInProgress; 15506 }, 15507 typeaheadMatchItem: function (t, e) { 15508 return n.menu.typeaheadMatchItem(t, e); 15509 }, 15510 }; 15511 }), 15512 (A.prototype.getCommonAdapterMethods = function () { 15513 var n = this; 15514 return { 15515 addClass: function (t) { 15516 n.root.classList.add(t); 15517 }, 15518 removeClass: function (t) { 15519 n.root.classList.remove(t); 15520 }, 15521 hasClass: function (t) { 15522 return n.root.classList.contains(t); 15523 }, 15524 setRippleCenter: function (t) { 15525 n.lineRipple && n.lineRipple.setRippleCenter(t); 15526 }, 15527 activateBottomLine: function () { 15528 n.lineRipple && n.lineRipple.activate(); 15529 }, 15530 deactivateBottomLine: function () { 15531 n.lineRipple && n.lineRipple.deactivate(); 15532 }, 15533 notifyChange: function (t) { 15534 n.hiddenInput && (n.hiddenInput.value = t); 15535 var e = n.selectedIndex; 15536 n.emit(_.strings.CHANGE_EVENT, { value: t, index: e }, !0); 15537 }, 15538 }; 15539 }), 15540 (A.prototype.getOutlineAdapterMethods = function () { 15541 var e = this; 15542 return { 15543 hasOutline: function () { 15544 return Boolean(e.outline); 15545 }, 15546 notchOutline: function (t) { 15547 e.outline && e.outline.notch(t); 15548 }, 15549 closeOutline: function () { 15550 e.outline && e.outline.closeNotch(); 15551 }, 15552 }; 15553 }), 15554 (A.prototype.getLabelAdapterMethods = function () { 15555 var e = this; 15556 return { 15557 hasLabel: function () { 15558 return !!e.label; 15559 }, 15560 floatLabel: function (t) { 15561 e.label && e.label.float(t); 15562 }, 15563 getLabelWidth: function () { 15564 return e.label ? e.label.getWidth() : 0; 15565 }, 15566 setLabelRequired: function (t) { 15567 e.label && e.label.setRequired(t); 15568 }, 15569 }; 15570 }), 15571 (A.prototype.getNormalizedXCoordinate = function (t) { 15572 var e = t.target.getBoundingClientRect(); 15573 return (this.isTouchEvent(t) ? t.touches[0].clientX : t.clientX) - e.left; 15574 }), 15575 (A.prototype.isTouchEvent = function (t) { 15576 return Boolean(t.touches); 15577 }), 15578 (A.prototype.getFoundationMap = function () { 15579 return { helperText: this.helperText ? this.helperText.foundationForSelect : void 0, leadingIcon: this.leadingIcon ? this.leadingIcon.foundationForSelect : void 0 }; 15580 }), 15581 A); 15582 function A() { 15583 return (null !== u && u.apply(this, arguments)) || this; 15584 } 15585 e.MDCSelect = b; 15586 }, 15587 function (t, e, n) { 15588 "use strict"; 15589 Object.defineProperty(e, "__esModule", { value: !0 }); 15590 }, 15591 function (t, e, n) { 15592 "use strict"; 15593 var i = 15594 (this && this.__createBinding) || 15595 (Object.create 15596 ? function (t, e, n, i) { 15597 void 0 === i && (i = n), 15598 Object.defineProperty(t, i, { 15599 enumerable: !0, 15600 get: function () { 15601 return e[n]; 15602 }, 15603 }); 15604 } 15605 : function (t, e, n, i) { 15606 void 0 === i && (i = n), (t[i] = e[n]); 15607 }), 15608 r = 15609 (this && this.__exportStar) || 15610 function (t, e) { 15611 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 15612 }; 15613 Object.defineProperty(e, "__esModule", { value: !0 }
15613), (e.helperTextStrings = e.helperTextCssClasses = void 0), r(n(200), e), r(n(86), e), r(n(87), e); 15614 var o = n(88); 15615 Object.defineProperty(e, "helperTextCssClasses", { 15616 enumerable: !0, 15617 get: function () { 15618 return o.cssClasses; 15619 }, 15620 }), 15621 Object.defineProperty(e, "helperTextStrings", { 15622 enumerable: !0, 15623 get: function () { 15624 return o.strings; 15625 }, 15626 }); 15627 }, 15628 function (t, e, n) { 15629 "use strict"; 15630 Object.defineProperty(e, "__esModule", { value: !0 }); 15631 }, 15632 function (t, e, n) { 15633 "use strict"; 15634 var i = 15635 (this && this.__createBinding) || 15636 (Object.create 15637 ? function (t, e, n, i) { 15638 void 0 === i && (i = n), 15639 Object.defineProperty(t, i, { 15640 enumerable: !0, 15641 get: function () { 15642 return e[n]; 15643 }, 15644 }); 15645 } 15646 : function (t, e, n, i) { 15647 void 0 === i && (i = n), (t[i] = e[n]); 15648 }), 15649 r = 15650 (this && this.__exportStar) || 15651 function (t, e) { 15652 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 15653 }; 15654 Object.defineProperty(e, "__esModule", { value: !0 }), (e.iconStrings = void 0), r(n(202), e), r(n(89), e), r(n(90), e); 15655 var o = n(91); 15656 Object.defineProperty(e, "iconStrings", { 15657 enumerable: !0, 15658 get: function () { 15659 return o.strings; 15660 }, 15661 }); 15662 }, 15663 function (t, e, n) { 15664 "use strict"; 15665 Object.defineProperty(e, "__esModule", { value: !0 }); 15666 }, 15667 function (t, e, n) { 15668 "use strict"; 15669 var i = 15670 (this && this.__createBinding) || 15671 (Object.create 15672 ? function (t, e, n, i) { 15673 void 0 === i && (i = n), 15674 Object.defineProperty(t, i, { 15675 enumerable: !0, 15676 get: function () { 15677 return e[n]; 15678 }, 15679 }); 15680 } 15681 : function (t, e, n, i) { 15682 void 0 === i && (i = n), (t[i] = e[n]); 15683 }), 15684 r = 15685 (this && this.__exportStar) || 15686 function (t, e) { 15687 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 15688 }; 15689 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(204), e), r(n(205), e), r(n(33), e), r(n(92), e), r(n(34), e); 15690 }, 15691 function (t, e, n) { 15692 "use strict"; 15693 Object.defineProperty(e, "__esModule", { value: !0 }); 15694 }, 15695 function (t, e, n) { 15696 "use strict"; 15697 var i, 15698 r = 15699 (this && this.__extends) || 15700 ((i = function (t, e) { 15701 return (i = 15702 Object.setPrototypeOf || 15703 ({ __proto__: [] } instanceof Array && 15704 function (t, e) { 15705 t.__proto__ = e; 15706 }) || 15707 function (t, e) { 15708 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 15709 })(t, e); 15710 }), 15711 function (t, e) { 15712 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 15713 function n() { 15714 this.constructor = t; 15715 } 15716 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 15717 }), 15718 c = 15719 (this && this.__assign) || 15720 function () { 15721 return (c = 15722 Object.assign || 15723 function (t) { 15724 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 15725 return t; 15726 }).apply(this, arguments); 15727 }; 15728 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSlider = void 0); 15729 var o, 15730 s = n(1), 15731 u = n(5), 15732 l = n(3), 15733 d = n(2), 15734 p = n(4), 15735 h = n(33), 15736 a = n(92), 15737 f = n(34), 15738 y = 15739 ((o = s.MDCComponent), 15740 r(C, o), 15741 (C.attachTo = function (t, e) { 15742 return void 0 === e && (e = {}), new C(t, void 0, e); 15743 }), 15744 (C.prototype.getDefaultFoundation = function () { 15745 var i = this, 15746 t = { 15747 hasClass: function (t) { 15748 return i.root.classList.contains(t); 15749 }, 15750 addClass: function (t) { 15751 i.root.classList.add(t); 15752 }, 15753 removeClass: function (t) { 15754 i.root.classList.remove(t); 15755 }, 15756 addThumbClass: function (t, e) { 15757 i.getThumbEl(e).classList.add(t); 15758 }, 15759 removeThumbClass: function (t, e) { 15760 i.getThumbEl(e).classList.remove(t); 15761 }, 15762 getAttribute: function (t) { 15763 return i.root.getAttribute(t); 15764 }, 15765 getInputValue: function (t) { 15766 return i.getInput(t).value; 15767 }, 15768 setInputValue: function (t, e) { 15769 i.getInput(e).value = t; 15770 }, 15771 getInputAttribute: function (t, e) { 15772 return i.getInput(e).getAttribute(t); 15773 }, 15774 setInputAttribute: function (t, e, n) { 15775 i.getInput(n).setAttribute(t, e); 15776 }, 15777 removeInputAttribute: function (t, e) { 15778 i.getInput(e).removeAttribute(t); 15779 }, 15780 focusInput: function (t) { 15781 i.getInput(t).focus(); 15782 }, 15783 isInputFocused: function (t) { 15784 return i.getInput(t) === document.activeElement; 15785 }, 15786 getThumbKnobWidth: function (t) { 15787 return i 15788 .getThumbEl(t) 15789 .querySelector("." + h.cssClasse
15789s.THUMB_KNOB) 15790 .getBoundingClientRect().width; 15791 }, 15792 getThumbBoundingClientRect: function (t) { 15793 return i.getThumbEl(t).getBoundingClientRect(); 15794 }, 15795 getBoundingClientRect: function () { 15796 return i.root.getBoundingClientRect(); 15797 }, 15798 isRTL: function () { 15799 return "rtl" === getComputedStyle(i.root).direction; 15800 }, 15801 setThumbStyleProperty: function (t, e, n) { 15802 i.getThumbEl(n).style.setProperty(t, e); 15803 }, 15804 removeThumbStyleProperty: function (t, e) { 15805 i.getThumbEl(e).style.removeProperty(t); 15806 }, 15807 setTrackActiveStyleProperty: function (t, e) { 15808 i.trackActive.style.setProperty(t, e); 15809 }, 15810 removeTrackActiveStyleProperty: function (t) { 15811 i.trackActive.style.removeProperty(t); 15812 }, 15813 setValueIndicatorText: function (t, e) { 15814 i.getThumbEl(e).querySelector("." + h.cssClasses.VALUE_INDICATOR_TEXT).textContent = String(t); 15815 }, 15816 getValueToAriaValueTextFn: function () { 15817 return i.valueToAriaValueTextFn; 15818 }, 15819 updateTickMarks: function (t) { 15820 var e = i.root.querySelector("." + h.cssClasses.TICK_MARKS_CONTAINER); 15821 if ((e || ((e = document.createElement("div")).classList.add(h.cssClasses.TICK_MARKS_CONTAINER), i.root.querySelector("." + h.cssClasses.TRACK).appendChild(e)), t.length !== e.children.length)) { 15822 for (; e.firstChild; ) e.removeChild(e.firstChild); 15823 i.addTickMarks(e, t); 15824 } else i.updateTickMarks(e, t); 15825 }, 15826 setPointerCapture: function (t) { 15827 i.root.setPointerCapture(t); 15828 }, 15829 emitChangeEvent: function (t, e) { 15830 i.emit(h.events.CHANGE, { value: t, thumb: e }); 15831 }, 15832 emitInputEvent: function (t, e) { 15833 i.emit(h.events.INPUT, { value: t, thumb: e }); 15834 }, 15835 emitDragStartEvent: function (t, e) { 15836 i.getRipple(e).activate(); 15837 }, 15838 emitDragEndEvent: function (t, e) { 15839 i.getRipple(e).deactivate(); 15840 }, 15841 registerEventHandler: function (t, e) { 15842 i.listen(t, e); 15843 }, 15844 deregisterEventHandler: function (t, e) { 15845 i.unlisten(t, e); 15846 }, 15847 registerThumbEventHandler: function (t, e, n) { 15848 i.getThumbEl(t).addEventListener(e, n); 15849 }, 15850 deregisterThumbEventHandler: function (t, e, n) { 15851 i.getThumbEl(t).removeEventListener(e, n); 15852 }, 15853 registerInputEventHandler: function (t, e, n) { 15854 i.getInput(t).addEventListener(e, n); 15855 }, 15856 deregisterInputEventHandler: function (t, e, n) { 15857 i.getInput(t).removeEventListener(e, n); 15858 }, 15859 registerBodyEventHandler: function (t, e) { 15860 document.body.addEventListener(t, e); 15861 }, 15862 deregisterBodyEventHandler: function (t, e) { 15863 document.body.removeEventListener(t, e); 15864 }, 15865 registerWindowEventHandler: function (t, e) { 15866 window.addEventListener(t, e); 15867 }, 15868 deregisterWindowEventHandler: function (t, e) { 15869 window.removeEventListener(t, e); 15870 }, 15871 }; 15872 return new a.MDCSliderFoundation(t); 15873 }), 15874 (C.prototype.initialize = function (t) { 15875 var e = (void 0 === t ? {} : t).skipInitialUIUpdate; 15876 (this.inputs = [].slice.call(this.root.querySelectorAll("." + h.cssClasse
15876s.INPUT))), 15877 (this.thumbs = [].slice.call(this.root.querySelectorAll("." + h.cssClasses.THUMB))), 15878 (this.trackActive = this.root.querySelector("." + h.cssClasses.TRACK_ACTIVE)), 15879 (this.ripples = this.createRipples()), 15880 e && (this.skipInitialUIUpdate = !0); 15881 }), 15882 (C.prototype.initialSyncWithDOM = function () { 15883 this.foundation.layout({ skipUpdateUI: this.skipInitialUIUpdate }); 15884 }), 15885 (C.prototype.layout = function () { 15886 this.foundation.layout(); 15887 }), 15888 (C.prototype.getValueStart = function () { 15889 return this.foundation.getValueStart(); 15890 }), 15891 (C.prototype.setValueStart = function (t) { 15892 this.foundation.setValueStart(t); 15893 }), 15894 (C.prototype.getValue = function () { 15895 return this.foundation.getValue(); 15896 }), 15897 (C.prototype.setValue = function (t) { 15898 this.foundation.setValue(t); 15899 }), 15900 (C.prototype.getDisabled = function () { 15901 return this.foundation.getDisabled(); 15902 }), 15903 (C.prototype.setDisabled = function (t) { 15904 this.foundation.setDisabled(t); 15905 }), 15906 (C.prototype.setValueToAriaValueTextFn = function (t) { 15907 this.valueToAriaValueTextFn = t; 15908 }), 15909 (C.prototype.getThumbEl = function (t) { 15910 return t === f.Thumb.END ? this.thumbs[this.thumbs.length - 1] : this.thumbs[0]; 15911 }), 15912 (C.prototype.getInput = function (t) { 15913 return t === f.Thumb.END ? this.inputs[this.inputs.length - 1] : this.inputs[0]; 15914 }), 15915 (C.prototype.getRipple = function (t) { 15916 return t === f.Thumb.END ? this.ripples[this.ripples.length - 1] : this.ripples[0]; 15917 }), 15918 (C.prototype.addTickMarks = function (t, e) { 15919 for (var n = document.createDocumentFragment(), i = 0; i < e.length; i++) { 15920 var r = document.createElement("div"), 15921 o = e[i] === f.TickMark.ACTIVE ? h.cssClasses.TICK_MARK_ACTIVE : h.cssClasses.TICK_MARK_INACTIVE; 15922 r.classList.add(o), n.appendChild(r); 15923 } 15924 t.appendChild(n); 15925 }), 15926 (C.prototype.updateTickMarks = function (t, e) { 15927 for (var n = Array.from(t.children), i = 0; i < n.length; i++) 15928 e[i] === f.TickMark.ACTIVE 15929 ? (n[i].classList.add(h.cssClasses.TICK_MARK_ACTIVE), n[i].classList.remove(h.cssClasse
15929s.TICK_MARK_INACTIVE)) 15930 : (n[i].classList.add(h.cssClasses.TICK_MARK_INACTIVE), n[i].classList.remove(h.cssClasses.TICK_MARK_ACTIVE)); 15931 }), 15932 (C.prototype.createRipples = function () { 15933 for ( 15934 var o = [], 15935 s = [].slice.call(this.root.querySelectorAll("." + h.cssClasses.THUMB)), 15936 t = function (t) { 15937 var n = s[t], 15938 i = a.inputs[t], 15939 e = c(c({}, d.MDCRipple.createAdapter(a)), { 15940 addClass: function (t) { 15941 n.classList.add(t); 15942 }, 15943 computeBoundingRect: function () { 15944 return n.getBoundingClientRect(); 15945 }, 15946 deregisterInteractionHandler: function (t, e) { 15947 i.removeEventListener(t, e); 15948 }, 15949 isSurfaceActive: function () { 15950 return l.matches(i, ":active"); 15951 }, 15952 isUnbounded: function () { 15953 return !0; 15954 }, 15955 registerInteractionHandler: function (t, e) { 15956 i.addEventListener(t, e, u.applyPassive()); 15957 }, 15958 removeClass: function (t) { 15959 n.classList.remove(t); 15960 }, 15961 updateCssVariable: function (t, e) { 15962 n.style.setProperty(t, e); 15963 }, 15964 }), 15965 r = new d.MDCRipple(n, new p.MDCRippleFoundation(e)); 15966 (r.unbounded = !0), o.push(r); 15967 }, 15968 a = this, 15969 e = 0; 15970 e < s.length; 15971 e++ 15972 ) 15973 t(e); 15974 return o; 15975 }), 15976 C); 15977 function C() { 15978 var t = (null !== o && o.apply(this, arguments)) || this; 15979 return (t.skipInitialUIUpdate = !1), (t.valueToAriaValueTextFn = null), t; 15980 } 15981 e.MDCSlider = y; 15982 }, 15983 function (t, e, n) { 15984 "use strict"; 15985 var i = 15986 (this && this.__createBinding) || 15987 (Object.create 15988 ? function (t, e, n, i) { 15989 void 0 === i && (i = n), 15990 Object.defineProperty(t, i, { 15991 enumerable: !0, 15992 get: function () { 15993 return e[n]; 15994 }, 15995 }); 15996 } 15997 : function (t, e, n, i) { 15998 void 0 === i && (i = n), (t[i] = e[n]); 15999 }), 16000 r = 16001 (this && this.__setModuleDefault) || 16002 (Object.create 16003 ? function (t, e) { 16004 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 16005 } 16006 : function (t, e) { 16007 t.default = e; 16008 }), 16009 o = 16010 (this && this.__importStar) || 16011 function (t) { 16012 if (t && t.__esModule) return t; 16013 var e = {}; 16014 if (null != t) for (var n in t) "default"
16014!== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 16015 return r(e, t), e; 16016 }, 16017 s = 16018 (this && this.__exportStar) || 16019 function (t, e) { 16020 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 16021 }; 16022 Object.defineProperty(e, "__esModule", { value: !0 }), (e.util = void 0); 16023 var a = o(n(93)); 16024 (e.util = a), s(n(207), e), s(n(208), e), s(n(16), e), s(n(94), e), s(n(209), e); 16025 }, 16026 function (t, e, n) { 16027 "use strict"; 16028 Object.defineProperty(e, "__esModule", { value: !0 }); 16029 }, 16030 function (t, e, n) { 16031 "use strict"; 16032 var i, 16033 r = 16034 (this && this.__extends) || 16035 ((i = function (t, e) { 16036 return (i = 16037 Object.setPrototypeOf || 16038 ({ __proto__: [] } instanceof Array && 16039 function (t, e) { 16040 t.__proto__ = e; 16041 }) || 16042 function (t, e) { 16043 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 16044 })(t, e); 16045 }), 16046 function (t, e) { 16047 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 16048 function n() { 16049 this.constructor = t; 16050 } 16051 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 16052 }), 16053 o = 16054 (this && this.__createBinding) || 16055 (Object.create 16056 ? function (t, e, n, i) { 16057 void 0 === i && (i = n), 16058 Object.defineProperty(t, i, { 16059 enumerable: !0, 16060 get: function () { 16061 return e[n]; 16062 }, 16063 }); 16064 } 16065 : function (t, e, n, i) { 16066 void 0 === i && (i = n), (t[i] = e[n]); 16067 }), 16068 s = 16069 (this && this.__setModuleDefault) || 16070 (Object.create 16071 ? function (t, e) { 16072 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 16073 } 16074 : function (t, e) { 16075 t.default = e; 16076 }), 16077 a = 16078 (this && this.__importStar) || 16079 function (t) { 16080 if (t && t.__esModule) return t; 16081 var e = {}; 16082 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && o(e, t, n); 16083 return s(e, t), e; 16084 }; 16085 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSnackbar = void 0); 16086 var c, 16087 u = n(1), 16088 l = n(3), 16089 d = n(16), 16090 p = n(94), 16091 h = a(n(93)), 16092 f = d.strings.SURFACE_SELECTOR, 16093 y = d.strings.LABEL_SELECTOR, 16094 C = d.strings.ACTION_SELECTOR, 16095 E = d.strings.DISMISS_SELECTOR, 16096 g = d.strings.OPENING_EVENT, 16097 _ = d.strings.OPENED_EVENT, 16098 m = d.strings.CLOSING_EVENT, 16099 v = d.strings.CLOSED_EVENT, 16100 T = 16101 ((c = u.MDCComponent), 16102 r(b, c), 16103 (b.attachTo = function (t) { 16104 return new b(t); 16105 }), 16106 (b.prototype.initialize = function (t) { 16107 void 0 === t && 16108 (t = function () { 16109 return h.announce; 16110 }), 16111 (this.announce = t()); 16112 }), 16113 (b.prototype.initialSyncWithDOM = function () { 16114 var n = this; 16115 (this.surfaceEl = this.root.querySelector(f)), 16116 (this.labelEl = this.root.querySelector(y)), 16117 (this.actionEl = this.root.querySelector(C)), 16118 (this.handleKeyDown = function (t) { 16119 n.foundation.handleKeyDown(t); 16120 }), 16121 (this.handleSurfaceClick = function (t) { 16122 var e = t.target; 16123 n.isActionButton(e) ? n.foundation.handleActionButtonClick(t) : n.isActionIcon(e) && n.foundation.handleActionIconCl
16123ick(t); 16124 }), 16125 this.registerKeyDownHandler(this.handleKeyDown), 16126 this.registerSurfaceClickHandler(this.handleSurfaceClick); 16127 }), 16128 (b.prototype.destroy = function () { 16129 c.prototype.destroy.call(this), this.deregisterKeyDownHandler(this.handleKeyDown), this.deregisterSurfaceClickHandler(this.handleSurfaceClick); 16130 }), 16131 (b.prototype.open = function () { 16132 this.foundation.open(); 16133 }), 16134 (b.prototype.close = function (t) { 16135 void 0 === t && (t = ""), this.foundation.close(t); 16136 }), 16137 (b.prototype.getDefaultFoundation = function () { 16138 var e = this, 16139 t = { 16140 addClass: function (t) { 16141 e.root.classList.add(t); 16142 }, 16143 announce: function () { 16144 e.announce(e.labelEl); 16145 }, 16146 notifyClosed: function (t) { 16147 return e.emit(v, t ? { reason: t } : {}); 16148 }, 16149 notifyClosing: function (t) { 16150 return e.emit(m, t ? { reason: t } : {}); 16151 }, 16152 notifyOpened: function () { 16153 return e.emit(_, {}); 16154 }, 16155 notifyOpening: function () { 16156 return e.emit(g, {}); 16157 }, 16158 removeClass: function (t) { 16159 return e.root.classList.remove(t); 16160 }, 16161 }; 16162 return new p.MDCSnackbarFoundation(t); 16163 }), 16164 Object.defineProperty(b.prototype, "timeoutMs", { 16165 get: function () { 16166 return this.foundation.getTimeoutMs(); 16167 }, 16168 set: function (t) { 16169 this.foundation.setTimeoutMs(t); 16170 }, 16171 enumerable: !1, 16172 configurable: !0, 16173 }), 16174 Object.defineProperty(b.prototype, "closeOnEscape", { 16175 get: function () { 16176 return this.foundation.getCloseOnEscape(); 16177 }, 16178 set: function (t) { 16179 this.foundation.setCloseOnEscape(t); 16180 }, 16181 enumerable: !1, 16182 configurable: !0, 16183 }), 16184 Object.defineProperty(b.prototype, "isOpen", { 16185 get: function () { 16186 return this.foundation.isOpen(); 16187 }, 16188 enumerable: !1, 16189 configurable: !0, 16190 }), 16191 Object.defineProperty(b.prototype, "labelText", { 16192 get: function () { 16193 return this.labelEl.textContent; 16194 }, 16195 set: function (t) { 16196 this.labelEl.textContent = t; 16197 }, 16198 enumerable: !1, 16199 configurable: !0, 16200 }), 16201 Object.defineProperty(b.prototype, "actionButtonText", { 16202 get: function () { 16203 return this.actionEl.textContent; 16204 }, 16205 set: function (t) { 16206 this.actionEl.textContent = t; 16207 }, 16208 enumerable: !1, 16209 configurable: !0, 16210 }),
16211 (b.prototype.registerKeyDownHandler = function (t) { 16212 this.listen("keydown", t); 16213 }), 16214 (b.prototype.deregisterKeyDownHandler = function (t) { 16215 this.unlisten("keydown", t); 16216 }), 16217 (b.prototype.registerSurfaceClickHandler = function (t) { 16218 this.surfaceEl.addEventListener("click", t); 16219 }), 16220 (b.prototype.deregisterSurfaceClickHandler = function (t) { 16221 this.surfaceEl.removeEventListener("click", t); 16222 }), 16223 (b.prototype.isActionButton = function (t) { 16224 return Boolean(l.closest(t, C)); 16225 }), 16226 (b.prototype.isActionIcon = function (t) { 16227 return Boolean(l.closest(t, E)); 16228 }), 16229 b); 16230 function b() { 16231 return (null !== c && c.apply(this, arguments)) || this; 16232 } 16233 e.MDCSnackbar = T; 16234 }, 16235 function (t, e, n) { 16236 "use strict"; 16237 Object.defineProperty(e, "__esModule", { value: !0 }); 16238 }, 16239 function (t, e, n) { 16240 "use strict"; 16241 var i = 16242 (this && this.__createBinding) || 16243 (Object.create 16244 ? function (t, e, n, i) { 16245 void 0 === i && (i = n), 16246 Object.defineProperty(t, i, { 16247 enumerable: !0, 16248 get: function () { 16249 return e[n]; 16250 }, 16251 }); 16252 } 16253 : function (t, e, n, i) { 16254 void 0 === i && (i = n), (t[i] = e[n]); 16255 }), 16256 r = 16257 (this && this.__setModuleDefault) || 16258 (Object.create 16259 ? function (t, e) { 16260 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 16261 } 16262 : function (t, e) { 16263 t.default = e; 16264 }), 16265 o = 16266 (this && this.__importStar) || 16267 function (t) { 16268 if (t && t.__esModule) return t; 16269 var e = {}; 16270 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 16271 return r(e, t), e; 16272 }, 16273 s = 16274 (this && this.__exportStar) || 16275 function (t, e) { 16276 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 16277 }; 16278 Object.defineProperty(e, "__esModule", { value: !0 }), (e.deprecated = void 0); 16279 var a = o(n(211)); 16280 (e.deprecated = a), s(n(214), e), s(n(215), e), s(n(35), e), s(n(97), e); 16281 }, 16282 function (t, e, n) { 16283 "use strict"; 16284 var i = 16285 (this && this.__createBinding) || 16286 (Object.create 16287 ? function (t, e, n, i) { 16288 void 0 === i && (i = n), 16289 Object.defineProperty(t, i, { 16290 enumerable: !0, 16291 get: function () { 16292 return e[n]; 16293 }, 16294 }); 16295 } 16296 : function (t, e, n, i) { 16297 void 0 === i && (i = n), (t[i] = e[n]); 16298 }), 16299 r = 16300 (this && this.__exportStar) || 16301 function (t, e) { 16302 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 16303 }; 16304 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(212), e), r(n(213), e), r(n(96), e), r(n(95), e); 16305 }, 16306 function (t, e, n) { 16307 "use strict"; 16308 Object.defineProperty(e, "__esModule", { value: !0 }); 16309 }, 16310 function (t, e, n) { 16311 "use strict"; 16312 var i, 16313 r = 16314 (this && this.__extends) || 16315 ((i = function (t, e) { 16316 return (i = 16317 Object.setPrototypeOf || 16318 ({ __proto__: [] } instanceof Array && 16319 function (t, e) { 16320 t.__proto__ = e; 16321 }) || 16322 function (t, e) { 16323 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 16324 })(t, e); 16325 }), 16326 function (t, e) { 16327 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 16328 function n() { 16329 this.constructor = t; 16330 } 16331 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 16332 }), 16333 o = 16334 (this && this.__assign) || 16335 function () { 16336 return (o = 16337 Object.assign || 16338 function (t) { 16339 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 16340 return t; 16341 }).apply(this, arguments); 16342 }, 16343 s = 16344 (this && this.__read) || 16345 function (t, e) { 16346 var n = "function" == typeof Symbol && t[Symbol.iterator]; 16347 if (!n) return t; 16348 var i, 16349 r, 16350 o = n.call(t), 16351 s = []; 16352 try { 16353 for (; (void 0 === e || 0 < e--) && !(i = o.next()).done; ) s.push(i.value); 16354 } catch (t) { 16355 r = { error: t }; 16356 } finally { 16357 try { 16358 i && !i.done && (n = o.return) && n.call(o); 16359 } finally { 16360 if (r) throw r.error; 16361 } 16362 } 16363 return s; 16364 }, 16365 a = 16366 (this && this.__spreadArray) || 16367 function (t, e) { 16368 for (var n = 0, i = e.length, r = t.length; n < i; n++, r++) t[r] = e[n]; 16369 return t; 16370 }; 16371 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSwitch = void 0); 16372 var c, 16373 u = n(1), 16374 l = n(5), 16375 d = n(3), 16376 p = n(2), 16377 h = n(4), 16378 f = n(95), 16379 y = 16380 ((c = u.MDCComponent), 16381 r(C, c), 16382 (C.attachTo = function (t) { 16383 return new C(t); 16384 }), 16385 (C.prototype.destroy = function () { 16386 c.prototype.destroy.call(this), this.rippleSurface.destroy(), this.nativeControl.removeEventListener("change", this.changeHandler); 16387 }), 16388 (C.prototype.initialSyncWithDOM = function () { 16389 var i = this; 16390 (this.changeHandler = function () { 16391 for (var t, e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; 16392 (t = i.foundation).handleChange.apply(t, a([], s(e))); 16393 }), 16394 this.nativeControl.addEventListener("change", this.changeHandler), 16395 (this.checked = this.checked); 16396 }), 16397 (C.prototype.getDefaultFoundation = function () { 16398 var n = this, 16399 t = { 16400 addClass: function (t) { 16401 return n.root.classList.add(t); 16402 }, 16403 removeClass: function (t) { 16404 return n.root.classList.remove(t); 16405 }, 16406 setNativeControlChecked: function (t) { 16407 return (n.nativeControl.checked = t); 16408 }, 16409 setNativeControlDisabled: function (t) { 16410 return (n.nativeControl.disabled = t); 16411 }, 16412 setNativeControlAttr: function (t, e) { 16413 n.nativeControl.setAttribute(t, e); 16414 }, 16415 }; 16416 return new f.MDCSwitchFoundation(t); 16417 }), 16418 Object.defineProperty(C.prototype, "ripple", { 16419 get: function () { 16420 return this.rippleSurface; 16421 }, 16422 enumerable: !1, 16423 configurable: !0, 16424 }), 16425 Object.defineProperty(C.prototype, "checked", { 16426 get: function () { 16427 return this.nativeControl.checked; 16428 }, 16429 set: function (t) { 16430 this.foundation.setChecked(t); 16431 }, 16432 enumerable: !1, 16433 configurable: !0, 16434 }), 16435 Object.defineProperty(C.prototype, "disabled", { 16436 get: function () { 16437 return this.nativeControl.disabled; 16438 }, 16439 set: function (t) { 16440 this.foundation.setDisabled(t); 16441 }, 16442 enumerable: !1, 16443 configurable: !0, 16444 }), 16445 (C.prototype.createRipple = function () { 16446 var n = this, 16447 t = f.MDCSwitchFoundation.strings.RIPPLE_SURFACE_SELECTOR, 16448 i = this.root.querySelector(t), 16449 e = o(o({}, p.MDCRipple.createAdapter(this)), { 16450 addClass: function (t) { 16451 return i.classList.add(t); 16452 }, 16453 computeBoundingRect: function () { 16454 return i.getBoundingClientRect(); 16455 }, 16456 deregisterInteractionHandler: function (t, e) { 16457 n.nativeControl.removeEventListener(t, e, l.applyPassive()); 16458 }, 16459 isSurfaceActive: function () { 16460 return d.matches(n.nativeControl, ":active"); 16461 }, 16462 isUnbounded: function () { 16463 return !0; 16464 }, 16465 registerInteractionHandler: function (t, e) { 16466 n.nativeControl.addEventListener(t, e, l.applyPassive()); 16467 }, 16468 removeClass: function (t) { 16469 i.classList.remove(t); 16470 }, 16471 updateCssVariable: function (t, e) { 16472 i.style.setProperty(t, e); 16473 }, 16474 }); 16475 return new p.MDCRipple(this.root, new h.MDCRippleFoundation(e)); 16476 }),
16477 Object.defineProperty(C.prototype, "nativeControl", { 16478 get: function () { 16479 var t = f.MDCSwitchFoundation.strings.NATIVE_CONTROL_SELECTOR; 16480 return this.root.querySelector(t); 16481 }, 16482 enumerable: !1, 16483 configurable: !0, 16484 }), 16485 C); 16486 function C() { 16487 var t = (null !== c && c.apply(this, arguments)) || this; 16488 return (t.rippleSurface = t.createRipple()), t; 16489 } 16490 e.MDCSwitch = y; 16491 }, 16492 function (t, e, n) { 16493 "use strict"; 16494 Object.defineProperty(e, "__esModule", { value: !0 }); 16495 }, 16496 function (t, e, n) { 16497 "use strict"; 16498 var i, 16499 r = 16500 (this && this.__extends) || 16501 ((i = function (t, e) { 16502 return (i = 16503 Object.setPrototypeOf || 16504 ({ __proto__: [] } instanceof Array && 16505 function (t, e) { 16506 t.__proto__ = e; 16507 }) || 16508 function (t, e) { 16509 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 16510 })(t, e); 16511 }), 16512 function (t, e) { 16513 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 16514 function n() { 16515 this.constructor = t; 16516 } 16517 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 16518 }), 16519 o = 16520 (this && this.__assign) || 16521 function () { 16522 return (o = 16523 Object.assign || 16524 function (t) { 16525 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 16526 return t; 16527 }).apply(this, arguments); 16528 }; 16529 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCSwitch = void 0); 16530 var s, 16531 a = n(1), 16532 c = n(2), 16533 u = n(4), 16534 l = n(35), 16535 d = n(97), 16536 p = 16537 ((s = a.MDCComponent), 16538 r(h, s), 16539 (h.attachTo = function (t) { 16540 return new h(t); 16541 }), 16542 (h.prototype.initialize = function () { 16543 this.ripple = new c.MDCRipple(this.root, this.createRippleFoundation()); 16544 }), 16545 (h.prototype.initialSyncWithDOM = function () { 16546 var t = this.root.querySelector(l.Selectors.RIPPLE); 16547 if (!t) throw new Error("Switch " + l.Selectors.RIPPLE + " element is required."); 16548 (this.rippleElement = t), this.root.addEventListener("click", this.foundation.handleClick), this.foundation.initFromDOM(); 16549 }), 16550 (h.prototype.destroy = function () { 16551 s.prototype.destroy.call(this), this.ripple.destroy(), this.root.removeEventListener("click", this.foundation.handleClick); 16552 }), 16553 (h.prototype.getDefaultFoundation = function () { 16554 return new d.MDCSwitchRenderFoundation(this.createAdapter()); 16555 }), 16556 (h.prototype.createAdapter = function () { 16557 var e = this; 16558 return { 16559 addClass: function (t) { 16560 e.root.classList.add(t); 16561 }, 16562 hasClass: function (t) { 16563 return e.root.classList.contains(t); 16564 }, 16565 isDisabled: function () { 16566 return e.root.disabled; 16567 }, 16568 removeClass: function (t) { 16569 e.root.classList.remove(t); 16570 }, 16571 setAriaChecked: function (t) { 16572 return e.root.setAttribute("aria-checked", t); 16573 }, 16574 setDisabled: function (t) { 16575 e.root.disabled = t; 16576 }, 16577 state: this, 16578 }; 16579 }), 16580 (h.prototype.createRippleFoundation = function () { 16581 return new u.MDCRippleFoundation(this.createRippleAdapter()); 16582 }), 16583 (h.prototype.createRippleAdapter = function () { 16584 var t = this; 16585 return o(o({}, c.MDCRipple.createAdapter(this)), { 16586 computeBoundingRect: function () { 16587 return t.rippleElement.getBoundingClientRect(); 16588 }, 16589 isUnbounded: function () { 16590 return !0; 16591 }, 16592 }); 16593 }), 16594 h); 16595 function h(t, e) { 16596 var n = s.call(this, t, e) || this; 16597 return (n.root = t), n; 16598 } 16599 e.MDCSwitch = p; 16600 }, 16601 function (t, e, n) { 16602 "use strict"; 16603 var i, 16604 r = 16605 (this && this.__extends) || 16606 ((i = function (t, e) { 16607 return (i = 16608 Object.setPrototypeOf || 16609 ({ __proto__: [] } instanceof Array && 16610 function (t, e) { 16611 t.__proto__ = e; 16612 }) || 16613 function (t, e) { 16614 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 16615 })(t, e); 16616 }), 16617 function (t, e) { 16618 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 16619 function n() { 16620 this.constructor = t; 16621 } 16622 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 16623 }), 16624 d = 16625 (this && this.__values) || 16626 function (t) { 16627 var e = "function" == typeof Symbol && Symbol.iterator, 16628 n = e && t[e], 16629 i = 0; 16630 if (n) return n.call(t); 16631 if (t && "number" == typeof t.length) 16632 return { 16633 next: function () { 16634 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 16635 }, 16636 }; 16637 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 16638 }, 16639 o = 16640 (this && this.__read) || 16641 function (t, e) { 16642 var n = "function" == typeof Symbol && t[Symbol.iterator]; 16643 if (!n) return t; 16644 var i, 16645 r, 16646 o = n.call(t), 16647 s = []; 16648 try { 16649 for (; (void 0 === e || 0 < e--) && !(i = o.next()).done; ) s.push(i.value); 16650 } catch (t) { 16651 r = { error: t }; 16652 } finally { 16653 try { 16654 i && !i.done && (n = o.return) && n.call(o); 16655 } finally { 16656 if (r) throw r.error; 16657 } 16658 } 16659 return s; 16660 }, 16661 s = 16662 (this && this.__spreadArray) || 16663 function (t, e) { 16664 for (var n = 0, i = e.length, r = t.length; n < i; n++, r++) t[r] = e[n]; 16665 return t; 16666 }; 16667 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCObserverFoundation = void 0); 16668 var a, 16669 c = n(0), 16670 u = n(217), 16671 l = 16672 ((a = c.MDCFoundation), 16673 r(p, a), 16674 (p.prototype.destroy = function () { 16675 a.prototype.destroy.call(this), this.unobserve(); 16676 }), 16677 (p.prototype.observe = function (t, e) { 16678 var n, 16679 i, 16680 r = this, 16681 o = []; 16682 try { 16683 for (var s = d(Object.keys(e)), a = s.next(); !a.done; a = s.next()) { 16684 var c = a.value, 16685 u = e[c].bind(this); 16686 o.push(this.observeProperty(t, c, u)); 16687 } 16688 } catch (t) { 16689 n = { error: t }; 16690 } finally { 16691 try { 16692 a && !a.done && (i = s.return) && i.call(s); 16693 } finally { 16694 if (n) throw n.error; 16695 } 16696 } 16697 function l() { 16698 var e, t; 16699 try { 16700 for (var n = d(o), i = n.next(); !i.done; i = n.next()) (0, i.value)(); 16701 } catch (t) { 16702 e = { error: t }; 16703 } finally { 16704 try { 16705 i && !i.done && (t = n.return) && t.call(n); 16706 } finally { 16707 if (e) throw e.error; 16708 } 16709 } 16710 r.unobserves.delete(l); 16711 } 16712 return this.unobserves.add(l), l; 16713 }), 16714 (p.prototype.observeProperty = function (t, e, n) { 16715 return u.observeProperty(t, e, n); 16716 }), 16717 (p.prototype.setObserversEnabled = function (t, e) { 16718 u.setObserversEnabled(t, e); 16719 }), 16720 (p.prototype.unobserve = function () { 16721 var e, t; 16722 try { 16723 for (var n = d(s([], o(this.unobserves))), i = n.next(); !i.done; i = n.next()) (0, i.value)(); 16724 } catch (t) { 16725 e = { error: t }; 16726 } finally { 16727 try { 16728 i && !i.done && (t = n.return) && t.call(n); 16729 } finally { 16730 if (e) throw e.error; 16731 } 16732 } 16733 }), 16734 p); 16735 function p(t) { 16736 var e = a.call(this, t) || this; 16737 return (e.unobserves = new Set()), e; 16738 } 16739 e.MDCObserverFoundation = l; 16740 }, 16741 function (t, e, n) { 16742 "use strict"; 16743 var i, 16744 r = 16745 (this && this.__extends) || 16746 ((i = function (t, e) { 16747 return (i = 16748 Object.setPrototypeOf || 16749 ({ __proto__: [] } instanceof Array && 16750 function (t, e) { 16751 t.__proto__ = e; 16752 }) || 16753 function (t, e) { 16754 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 16755 })(t, e); 16756 }), 16757 function (t, e) { 16758 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 16759 function n() { 16760 this.constructor = t; 16761 } 16762 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 16763 }), 16764 o = 16765 (this && this.__assign) || 16766 function () { 16767 return (o = 16768 Object.assign || 16769 function (t) { 16770 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 16771 return t; 16772 }).apply(this, arguments); 16773 }, 16774 h = 16775 (this && this.__values) || 16776 function (t) { 16777 var e = "function" == typeof Symbol && Symbol.iterator, 16778 n = e && t[e], 16779 i = 0; 16780 if (n) return n.call(t); 16781 if (t && "number" == typeof t.length) 16782 return { 16783 next: function () { 16784 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 16785 }, 16786 }; 16787 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 16788 }, 16789 s = 16790 (this && this.__read) || 16791 function (t, e) { 16792 var n = "function" == typeof Symbol && t[Symbol.iterator]; 16793 if (!n) return t; 16794 v
16794ar i, 16795 r, 16796 o = n.call(t), 16797 s = []; 16798 try { 16799 for (; (void 0 === e || 0 < e--) && !(i = o.next()).done; ) s.push(i.value); 16800 } catch (t) { 16801 r = { error: t }; 16802 } finally { 16803 try { 16804 i && !i.done && (n = o.return) && n.call(o); 16805 } finally { 16806 if (r) throw r.error; 16807 } 16808 } 16809 return s; 16810 }, 16811 a = 16812 (this && this.__spreadArray) || 16813 function (t, e) { 16814 for (var n = 0, i = e.length, r = t.length; n < i; n++, r++) t[r] = e[n]; 16815 return t; 16816 }; 16817 function f(t, e, n) { 16818 var i = (function (t, s) { 16819 var n = new Map(); 16820 l.has(t) || 16821 l.set(t, { 16822 isEnabled: !0, 16823 getObservers: function (t) { 16824 var e = n.get(t) || []; 16825 return n.has(t) || n.set(t, e), e; 16826 }, 16827 installedProperties: new Set(), 16828 }); 16829 var a = l.get(t); 16830 if (a.installedProperties.has(s)) return a; 16831 var e = d(t, s) || { configurable: !0, enumerable: !0, value: t[s], writable: !0 }, 16832 i = o({}, e), 16833 c = e.get, 16834 u = e.set; 16835 if ("value" in e) { 16836 delete i.value, delete i.writable; 16837 var r = e.value; 16838 (c = function () { 16839 return r; 16840 }), 16841 e.writable && 16842 (u = function (t) { 16843 r = t; 16844 }); 16845 } 16846 c && 16847 (i.get = function () { 16848 return c.call(this); 16849 }); 16850 u && 16851 (i.set = function (t) { 16852 var e, 16853 n, 16854 i = c ? c.call(this) : t; 16855 if ((u.call(this, t), a.isEnabled && (!c || t !== i))) 16856 try { 16857 for (var r = h(a.getObservers(s)), o = r.next(); !o.done; o = r.next()) { 16858 (0, o.value)(t, i); 16859 } 16860 } catch (t) { 16861 e = { error: t }; 16862 } finally { 16863 try { 16864 o && !o.done && (n = r.return) && n.call(r); 16865 } finally { 16866 if (e) throw e.error; 16867 } 16868 } 16869 }); 16870 return a.installedProperties.add(s), Object.defineProperty(t, s, i), a; 16871 })(t, e).getObservers(e); 16872 return ( 16873 i.push(n), 16874 function () { 16875 i.splice(i.indexOf(n), 1); 16876 } 16877 ); 16878 } 16879 Object.defineProperty(e, "__esModule", { value: !0 }), 16880 (e.setObserversEnabled = e.getDescriptor = e.observeProperty = e.mdcObserver = void 0), 16881 (e.mdcObserver = function (t) { 16882 void 0 === t && (t = function () {}); 16883 var e, 16884 p = new WeakMap(); 16885 return ( 16886 r(n, (e = t)), 16887 (n.prototype.observe = function (t, e) { 16888 var n, 16889 i, 16890 s = this, 16891 a = []; 16892 try { 16893 for (var r = h(Object.keys(e)), o = r.next(); !o.done; o = r.next()) { 16894 var c = o.value, 16895 u = e[c].bind(this); 16896 a.push(f(t, c, u)); 16897 } 16898 } catch (t) { 16899 n = { error: t }; 16900 } finally { 16901 try { 16902 o && !o.done && (i = r.return) && i.call(r); 16903 } finally { 16904 if (n) throw n.error; 16905 } 16906 } 16907 function l() { 16908 var e, t; 16909 try { 16910 for (var n = h(a), i = n.next(); !i.done; i = n.next()) (0, i.value)(); 16911 } catch (t) { 16912 e = { error: t }; 16913 } finally { 16914 try { 16915 i && !i.done && (t = n.return) && t.call(n); 16916 } finally { 16917 if (e) throw e.error; 16918 } 16919 } 16920 var r = p.get(s) || [], 16921 o = r.indexOf(l); 16922 -1 < o && r.splice(o, 1); 16923 } 16924 var d = p.get(this); 16925 return d || ((d = []), p.set(this, d)), d.push(l), l; 16926 }), 16927 (n.prototype.setObserversEnabled = function (t, e) { 16928 c(t, e); 16929 }), 16930 (n.prototype.unobserve = function () { 16931 var e, 16932 t, 16933 n = p.get(this) || []; 16934 try { 16935 for (var i = h(a([], s(n))), r = i.next(); !r.done; r = i.next()) (0, r.value)(); 16936 } catch (t) { 16937 e = { error: t }; 16938 } finally { 16939 try { 16940 r && !r.done && (t = i.return) && t.call(i); 16941 } finally { 16942 if (e) throw e.error; 16943 } 16944 } 16945 }), 16946 n 16947 ); 16948 function n() { 16949 return (null !== e && e.apply(this, arguments)) || this; 16950 } 16951 }), 16952 (e.observeProperty = f); 16953 var l = new WeakMap(); 16954 function d(t, e) { 16955 for (var n, i = t; i && !(n = Object.getOwnPropertyDescriptor(i, e)); ) i = Object.getPrototypeOf(i); 16956 return n; 16957 } 16958 function c(t, e) { 16959 var n = l.get(t); 16960 n && (n.isEnabled = e); 16961 } 16962 (e.getDescriptor = d), (e.setObserversEnabled = c); 16963 }, 16964 function (t, e, n) { 16965 "use strict"; 16966 var i = 16967 (this && this.__createBinding) || 16968 (Object.create 16969 ? function (t, e, n, i) { 16970 void 0 === i && (i = n), 16971 Object.defineProperty(t, i, { 16972 enumerable: !0, 16973 get: function () { 16974 return e[n]; 16975 }, 16976 }); 16977 } 16978 : function (t, e, n, i) { 16979 void 0 === i && (i = n), (t[i] = e[n]); 16980 }), 16981 r = 16982 (this && this.__exportStar) || 16983 function (t, e) { 16984 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 16985 }; 16986 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(219), e), r(n(220), e), r(n(108), e), r(n(107), e), r(n(224), e); 16987 }, 16988 function (t, e, n) { 16989 "use strict"; 16990 Object.defineProperty(e, "__esModule", { value: !0 }); 16991 }, 16992 function (t, e, n) { 16993 "use strict"; 16994 var i, 16995 r = 16996 (this && this.__extends) || 16997 ((i = function (t, e) { 16998 return (i = 16999 Object.setPrototypeOf || 17000 ({ __proto__: [] } instanceof Array && 17001 function (t, e) { 17002 t.__proto__ = e; 17003 }) || 17004 function (t, e) { 17005 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 17006 })(t, e); 17007 }), 17008 function (t, e) { 17009 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 17010 function n() { 17011 this.constructor = t; 17012 } 17013 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 17014 }), 17015 o = 17016 (this && this.__values) || 17017 function (t) { 17018 var e = "function" == typeof Symbol && Symbol.iterator, 17019 n = e && t[e], 17020 i = 0; 17021 if (n) return n.call(t); 17022 if (t && "number" == typeof t.length) 17023 return { 17024 next: function () { 17025 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 17026 }, 17027 }; 17028 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 17029 }; 17030 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabBar = void 0); 17031 var s, 17032 a = n(1), 17033 c = n(98), 17034 u = n(101), 17035 l = n(38), 17036 d = n(107), 17037 p = d.MDCTabBarFoundation.strings, 17038 h = 0, 17039 f = 17040 ((s = a.MDCComponent), 17041 r(y, s), 17042 (y.attachTo = function (t) { 17043 return new y(t); 17044 }), 17045 Object.defineProperty(y.prototype, "focu
17045sOnActivate", { 17046 set: function (t) { 17047 var e, n; 17048 try { 17049 for (var i = o(this.tabList), r = i.next(); !r.done; r = i.next()) r.value.focusOnActivate = t; 17050 } catch (t) { 17051 e = { error: t }; 17052 } finally { 17053 try { 17054 r && !r.done && (n = i.return) && n.call(i); 17055 } finally { 17056 if (e) throw e.error; 17057 } 17058 } 17059 }, 17060 enumerable: !1, 17061 configurable: !0, 17062 }), 17063 Object.defineProperty(y.prototype, "useAutomaticActivation", { 17064 set: function (t) { 17065 this.foundation.setUseAutomaticActivation(t); 17066 }, 17067 enumerable: !1, 17068 configurable: !0, 17069 }), 17070 (y.prototype.initialize = function (t, e) { 17071 void 0 === t && 17072 (t = function (t) { 17073 return new u.MDCTab(t); 17074 }), 17075 void 0 === e && 17076 (e = function (t) { 17077 return new c.MDCTabScroller(t); 17078 }), 17079 (this.tabList = this.instantiateTabs(t)), 17080 (this.tabScroller = this.instantiatetabScroller(e)); 17081 }), 17082 (y.prototype.initialSyncWithDOM = function () { 17083 var e = this; 17084 (this.handleTabInteraction = function (t) { 17085 e.foundation.handleTabInteraction(t); 17086 }), 17087 (this.handleKeyDown = function (t) { 17088 e.foundation.handleKeyDown(t); 17089 }), 17090 this.listen(l.MDCTabFoundation.strings.INTERACTED_EVENT, this.handleTabInteraction), 17091 this.listen("keydown", this.handleKeyDown); 17092 for (var t = 0; t < this.tabList.length; t++) 17093 if (this.tabList[t].active) { 17094 this.scrollIntoView(t); 17095 break; 17096 } 17097 }), 17098 (y.prototype.destroy = function () { 17099 var e, t; 17100 s.prototype.destroy.call(this), this.unlisten(l.MDCTabFoundation.strings.INTERACTED_EVENT, this.handleTabInteraction), this.unlisten("keydown", this.handleKeyDown); 17101 try { 17102 for (var n = o(this.tabList), i = n.next(); !i.done; i = n.next()) i.value.destroy(); 17103 } catch (t) { 17104 e = { error: t }; 17105 } finally { 17106 try { 17107 i && !i.done && (t = n.return) && t.call(n); 17108 } finally { 17109 if (e) throw e.error; 17110 } 17111 } 17112 this.tabScroller && this.tabScroller.destroy(); 17113 }), 17114 (y.prototype.getDefaultFoundation = function () { 17115 var n = this, 17116 t = { 17117 scrollTo: function (t) { 17118 n.tabScroller.scrollTo(t); 17119 }, 17120 incrementScroll: function (t) { 17121 n.tabScroller.incrementScroll(t); 17122 }, 17123 getScrollPosition: function () { 17124 return n.tabScroller.getScrollPosition(); 17125 },
17126 getScrollContentWidth: function () { 17127 return n.tabScroller.getScrollContentWidth(); 17128 }, 17129 getOffsetWidth: function () { 17130 return n.root.offsetWidth; 17131 }, 17132 isRTL: function () { 17133 return "rtl" === window.getComputedStyle(n.root).getPropertyValue("direction"); 17134 }, 17135 setActiveTab: function (t) { 17136 n.foundation.activateTab(t); 17137 }, 17138 activateTabAtIndex: function (t, e) { 17139 n.tabList[t].activate(e); 17140 }, 17141 deactivateTabAtIndex: function (t) { 17142 n.tabList[t].deactivate(); 17143 }, 17144 focusTabAtIndex: function (t) { 17145 n.tabList[t].focus(); 17146 }, 17147 getTabIndicatorClientRectAtIndex: function (t) { 17148 return n.tabList[t].computeIndicatorClientRect(); 17149 }, 17150 getTabDimensionsAtIndex: function (t) { 17151 return n.tabList[t].computeDimensions(); 17152 }, 17153 getPreviousActiveTabIndex: function () { 17154 for (var t = 0; t < n.tabList.length; t++) if (n.tabList[t].active) return t; 17155 return -1; 17156 }, 17157 getFocusedTabIndex: function () { 17158 var t = n.getTabElements(), 17159 e = document.activeElement; 17160 return t.indexOf(e); 17161 }, 17162 getIndexOfTabById: function (t) { 17163 for (var e = 0; e < n.tabList.length; e++) if (n.tabList[e].id === t) return e; 17164 return -1; 17165 }, 17166 getTabListLength: function () { 17167 return n.tabList.length; 17168 }, 17169 notifyTabActivated: function (t) { 17170 return n.emit(p.TAB_ACTIVATED_EVENT, { index: t }, !0); 17171 }, 17172 }; 17173 return new d.MDCTabBarFoundation(t); 17174 }), 17175 (y.prototype.activateTab = function (t) { 17176 this.foundation.activateTab(t); 17177 }), 17178 (y.prototype.scrollIntoView = function (t) { 17179 this.foundation.scrollIntoView(t); 17180 }), 17181 (y.prototype.getTabElements = function () { 17182 return [].slice.call(this.root.querySelectorAll(p.TAB_SELECTOR)); 17183 }), 17184 (y.prototype.instantiateTabs = function (e) { 17185 return this.getTabElements().map(function (t) { 17186 return (t.id = t.id || "mdc-tab-" + ++h), e(t); 17187 }); 17188 }), 17189 (y.prototype.instantiatetabScroller = function (t) { 17190 var e = this.root.querySelector(p.TAB_SCROLLER_SELECTOR); 17191 return e ? t(e) : null; 17192 }), 17193 y); 17194 function y() { 17195 return (null !== s && s.apply(this, arguments)) || this; 17196 } 17197 e.MDCTabBar = f; 17198 }, 17199 function (t, e, n) { 17200 "use strict"; 17201 var i, 17202 r = 17203 (this && this.__extends) || 17204 ((i = function (t, e) { 17205 return (i = 17206 Object.setPrototypeOf || 17207 ({ __proto__: [] } instanceof Array && 17208 function (t, e) { 17209 t.__proto__ = e; 17210 }) || 17211 function (t, e) { 17212 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 17213 })(t, e); 17214 }), 17215 function (t, e) { 17216 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 17217 function n() { 17218 this.constructor = t; 17219 } 17220 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 17221 }); 17222 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScrollerRTLDefault = void 0); 17223 var o, 17224 s = n(37), 17225 a = 17226 ((o = s.MDCTabScrollerRTL), 17227 r(c, o), 17228 (c.prototype.getScrollPositionRTL = function () { 17229 var t = this.adapter.getScrollAreaScrollLeft(), 17230 e = this.calculateScrollEdges().right; 17231 return Math.round(e - t); 17232 }), 17233 (c.prototype.scrollToRTL = function (t) { 17234 var e = this.calculateScrollEdges(), 17235 n = this.adapter.getScrollAreaScrollLeft(), 17236 i = this.clampScrollValue(e.right - t); 17237 return { finalScrollPosition: i, scrollDelta: i - n }; 17238 }), 17239 (c.prototype.incrementScrollRTL = function (t) { 17240 var e = this.adapter.getScrollAreaScrollLeft(), 17241 n = this.clampScrollValue(e - t); 17242 return { finalScrollPosition: n, scrollDelta: n - e }; 17243 }), 17244 (c.prototype.getAnimatingScrollPosition = function (t) { 17245 return t; 17246 }), 17247 (c.prototype.calculateScrollEdges = function () { 17248 return { left: 0, right: this.adapter.getScrollC
17248ontentOffsetWidth() - this.adapter.getScrollAreaOffsetWidth() }; 17249 }), 17250 (c.prototype.clampScrollValue = function (t) { 17251 var e = this.calculateScrollEdges(); 17252 return Math.min(Math.max(e.left, t), e.right); 17253 }), 17254 c); 17255 function c() { 17256 return (null !== o && o.apply(this, arguments)) || this; 17257 } 17258 (e.MDCTabScrollerRTLDefault = a), (e.default = a); 17259 }, 17260 function (t, e, n) { 17261 "use strict"; 17262 var i, 17263 r = 17264 (this && this.__extends) || 17265 ((i = function (t, e) { 17266 return (i = 17267 Object.setPrototypeOf || 17268 ({ __proto__: [] } instanceof Array && 17269 function (t, e) { 17270 t.__proto__ = e; 17271 }) || 17272 function (t, e) { 17273 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 17274 })(t, e); 17275 }), 17276 function (t, e) { 17277 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 17278 function n() { 17279 this.constructor = t; 17280 } 17281 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 17282 }); 17283 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScrollerRTLNegative = void 0); 17284 var o, 17285 s = n(37), 17286 a = 17287 ((o = s.MDCTabScrollerRTL), 17288 r(c, o), 17289 (c.prototype.getScrollPositionRTL = function (t) { 17290 var e = this.adapter.getScrollAreaScrollLeft(); 17291 return Math.round(t - e); 17292 }), 17293 (c.prototype.scrollToRTL = function (t) { 17294 var e = this.adapter.getScrollAreaScrollLeft(), 17295 n = this.clampScrollValue(-t); 17296 return { finalScrollPosition: n, scrollDelta: n - e }; 17297 }), 17298 (c.prototype.incrementScrollRTL = function (t) { 17299 var e = this.adapter.getScrollAreaScrollLeft(), 17300 n = this.clampScrollValue(e - t); 17301 return { finalScrollPosition: n, scrollDelta: n - e }; 17302 }), 17303 (c.prototype.getAnimatingScrollPosition = function (t, e) { 17304 return t - e; 17305 }), 17306 (c.prototype.calculateScrollEdges = function () { 17307 var t = this.adapter.getScrollContentOffsetWidth(); 17308 return { left: this.adapter.getScrollAreaOffsetWidth() - t, right: 0 }; 17309 }), 17310 (c.prototype.clampScrollValue = function (t) { 17311 var e = this.calculateScrollEdges(); 17312 return Math.max(Math.min(e.right, t), e.left); 17313 }), 17314 c); 17315 function c() { 17316 return (null !== o && o.apply(this, arguments)) || this; 17317 } 17318 (e.MDCTabScrollerRTLNegative = a), (e.default = a); 17319 }, 17320 function (t, e, n) { 17321 "use strict"; 17322 var i, 17323 r = 17324 (this && this.__extends) || 17325 ((i = function (t, e) { 17326 return (i = 17327 Object.setPrototypeOf || 17328 ({ __proto__: [] } instanceof Array && 17329 function (t, e) { 17330 t.__proto__ = e; 17331 }) || 17332 function (t, e) { 17333 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 17334 })(t, e); 17335 }), 17336 function (t, e) { 17337 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 17338 function n() { 17339 this.constructor = t; 17340 } 17341 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 17342 }); 17343 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTabScrollerRTLReverse = void 0); 17344 var o, 17345 s = n(37), 17346 a = 17347 ((o = s.MDCTabScrollerRTL), 17348 r(c, o), 17349 (c.prototype.getScrollPositionRTL = function (t) { 17350 var e = this.adapter.getScrollAreaScrollLeft(); 17351 return Math.round(e - t); 17352 }), 17353 (c.prototype.scrollToRTL = function (t) { 17354 var e = this.adapter.getScrollAreaScrollLeft(), 17355 n = this.clampScrollValue(t); 17356 return { finalScrollPosition: n, scrollDelta: e - n }; 17357 }), 17358 (c.prototype.incrementScrollRTL = function (t) { 17359 var e = this.adapter.getScrollAreaScrollLeft(), 17360 n = this.clampScrollValue(e + t); 17361 return { finalScrollPosition: n, scrollDelta: e - n }; 17362 }), 17363 (c.prototype.getAnimatingScrollPosition = function (t, e) { 17364 return t + e; 17365 }), 17366 (c.prototype.calculateScrollEdges = function () { 17367 return { left: this.adapter.getScrollC
17367ontentOffsetWidth() - this.adapter.getScrollAreaOffsetWidth(), right: 0 }; 17368 }), 17369 (c.prototype.clampScrollValue = function (t) { 17370 var e = this.calculateScrollEdges(); 17371 return Math.min(Math.max(e.right, t), e.left); 17372 }), 17373 c); 17374 function c() { 17375 return (null !== o && o.apply(this, arguments)) || this; 17376 } 17377 (e.MDCTabScrollerRTLReverse = a), (e.default = a); 17378 }, 17379 function (t, e, n) { 17380 "use strict"; 17381 Object.defineProperty(e, "__esModule", { value: !0 }); 17382 }, 17383 function (t, e, n) { 17384 "use strict"; 17385 var i = 17386 (this && this.__createBinding) || 17387 (Object.create 17388 ? function (t, e, n, i) { 17389 void 0 === i && (i = n), 17390 Object.defineProperty(t, i, { 17391 enumerable: !0, 17392 get: function () { 17393 return e[n]; 17394 }, 17395 }); 17396 } 17397 : function (t, e, n, i) { 17398 void 0 === i && (i = n), (t[i] = e[n]); 17399 }), 17400 r = 17401 (this && this.__exportStar) || 17402 function (t, e) { 17403 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 17404 }; 17405 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(226), e), r(n(102), e), r(n(104), e), r(n(17), e), r(n(103), e), r(n(105), e); 17406 }, 17407 function (t, e, n) { 17408 "use strict"; 17409 Object.defineProperty(e, "__esModule", { value: !0 }); 17410 }, 17411 function (t, e, n) { 17412 "use strict"; 17413 var i = 17414 (this && this.__createBinding) || 17415 (Object.create 17416 ? function (t, e, n, i) { 17417 void 0 === i && (i = n), 17418 Object.defineProperty(t, i, { 17419 enumerable: !0, 17420 get: function () { 17421 return e[n]; 17422 }, 17423 }); 17424 } 17425 : function (t, e, n, i) { 17426 void 0 === i && (i = n), (t[i] = e[n]); 17427 }), 17428 r = 17429 (this && this.__setModuleDefault) || 17430 (Object.create 17431 ? function (t, e) { 17432 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 17433 } 17434 : function (t, e) { 17435 t.default = e; 17436 }), 17437 o = 17438 (this && this.__importStar) || 17439 function (t) { 17440 if (t && t.__esModule) return t; 17441 var e = {}; 17442 if (null != t) for (var n in t) "default" !== n && Object.prototype.hasOwnProperty.call(t, n) && i(e, t, n); 17443 return r(e, t), e; 17444 }, 17445 s = 17446 (this && this.__exportStar) || 17447 function (t, e) { 17448 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 17449 }; 17450 Object.defineProperty(e, "__esModule", { value: !0 }), (e.util = void 0); 17451 var a = o(n(100)); 17452 (e.util = a), s(n(228), e), s(n(98), e), s(n(36), e), s(n(99), e), s(n(229), e); 17453 }, 17454 function (t, e, n) { 17455 "use strict"; 17456 Object.defineProperty(e, "__esModule", { value: !0 }); 17457 }, 17458 function (t, e, n) { 17459 "use strict"; 17460 Object.defineProperty(e, "__esModule", { value: !0 }); 17461 }, 17462 function (t, e, n) { 17463 "use strict"; 17464 var i = 17465 (this && this.__createBinding) || 17466 (Object.create 17467 ? function (t, e, n, i) { 17468 void 0 === i && (i = n), 17469 Object.defineProperty(t, i, { 17470 enumerable: !0, 17471 get: function () { 17472 return e[n]; 17473 }, 17474 }); 17475 } 17476 : function (t, e, n, i) { 17477 void 0 === i && (i = n), (t[i] = e[n]); 17478 }), 17479 r = 17480 (this && this.__exportStar) || 17481 function (t, e) { 17482 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 17483 }; 17484 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(231), e), r(n(101), e), r(n(106), e), r(n(38), e), r(n(232), e); 17485 }, 17486 function (t, e, n) { 17487 "use strict"; 17488 Object.defineProperty(e, "__esModule", { value: !0 }); 17489 }, 17490 function (t, e, n) { 17491 "use strict"; 17492 Object.defineProperty(e, "__esModule", { value: !0 }); 17493 }, 17494 function (t, e, n) { 17495 "use strict"; 17496 var i = 17497 (this && this.__createBinding) || 17498 (Object.create 17499 ? function (t, e, n, i) { 17500 void 0 === i && (i = n), 17501 Object.defineProperty(t, i, { 17502 enumerable: !0, 17503 get: function () { 17504 return e[n]; 17505 }, 17506 }); 17507 } 17508 : function (t, e, n, i) { 17509 void 0 === i && (i = n), (t[i] = e[n]); 17510 }), 17511 r = 17512 (this && this.__exportStar) || 17513 function (t, e) { 17514 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 17515 }; 17516 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(234), e), r(n(235), e), r(n(40), e), r(n(111), e), r(n(236), e), r(n(237), e), r(n(239), e), r(n(241), e); 17517 }, 17518 function (t, e, n) { 17519 "use strict"; 17520 Object.defineProperty(e, "__esModule", { value: !0 }); 17521 }, 17522 function (t, e, n) { 17523 "use strict"; 17524 var i, 17525 r = 17526 (this && this.__extends) || 17527 ((i = function (t, e) { 17528 return (i = 17529 Object.setPrototypeOf || 17530 ({ __proto__: [] } instanceof Array && 17531 function (t, e) { 17532 t.__proto__ = e; 17533 }) || 17534 function (t, e) { 17535 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 17536 })(t, e); 17537 }), 17538 function (t, e) { 17539 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 17540 function n() { 17541 this.constructor = t; 17542 } 17543 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 17544 }), 17545 o = 17546 (this && this.__assign) || 17547 function () { 17548 return (o = 17549 Object.assign || 17550 function (t) { 17551 for (var e, n = 1, i = arguments.length; n < i; n++) for (var r in (e = arguments[n])) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); 17552 return t; 17553 }).apply(this, arguments); 17554 }, 17555 s = 17556 (this && this.__createBinding) || 17557 (Object.create 17558 ? function (t, e, n, i) { 17559 void 0 === i && (i = n), 17560 Object.defineProperty(t, i, { 17561 enumerable: !0, 17562 get: function () { 17563 return e[n]; 17564 }, 17565 }); 17566 } 17567 : function (t, e, n, i) { 17568 void 0 === i && (i = n), (t[i] = e[n]); 17569 }), 17570 a = 17571 (this && this.__setModuleDefault) || 17572 (Object.create 17573 ? function (t, e) { 17574 Object.defineProperty(t, "default", { enumerable: !0, value: e }); 17575 } 17576 : function (t, e) { 17577 t.default = e; 17578 }), 17579 c = 17580 (this && this.__importStar) || 17581 function (t) { 17582 if (t && t.__esModule) return t; 17583 var e = {}; 17584 if (null != t) for (var n in t) "default"
17584!== n && Object.prototype.hasOwnProperty.call(t, n) && s(e, t, n); 17585 return a(e, t), e; 17586 }; 17587 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTextField = void 0); 17588 var u, 17589 l = n(1), 17590 d = n(5), 17591 p = c(n(3)), 17592 g = n(27), 17593 _ = n(29), 17594 m = n(30), 17595 v = n(2), 17596 h = n(4), 17597 T = n(109), 17598 b = n(39), 17599 A = n(40), 17600 f = n(111), 17601 O = n(112), 17602 S = n(41), 17603 I = n(114), 17604 y = 17605 ((u = l.MDCComponent), 17606 r(C, u), 17607 (C.attachTo = function (t) { 17608 return new C(t); 17609 }), 17610 (C.prototype.initialize = function (t, e, n, i, r, o, s) { 17611 void 0 === t && 17612 (t = function (t, e) { 17613 return new v.MDCRipple(t, e); 17614 }), 17615 void 0 === e && 17616 (e = function (t) { 17617 return new _.MDCLineRipple(t); 17618 }), 17619 void 0 === n && 17620 (n = function (t) { 17621 return new O.MDCTextFieldHelperText(t); 17622 }), 17623 void 0 === i && 17624 (i = function (t) { 17625 return new T.MDCTextFieldCharacterCounter(t); 17626 }), 17627 void 0 === r && 17628 (r = function (t) { 17629 return new I.MDCTextFieldIcon(t); 17630 }), 17631 void 0 === o && 17632 (o = function (t) { 17633 return new g.MDCFloatingLabel(t); 17634 }), 17635 void 0 === s && 17636 (s = function (t) { 17637 return new m.MDCNotchedOutline(t); 17638 }), 17639 (this.input = this.root.querySelector(A.strings.INPUT_SELECTOR)); 17640 var a = this.root.querySelector(A.strings.LABEL_SELECTOR); 17641 this.label = a ? o(a) : null; 17642 var c = this.root.querySelector(A.strings.LINE_RIPPLE_SELECTOR); 17643 this.lineRipple = c ? e(c) : null; 17644 var u = this.root.querySelector(A.strings.OUTLINE_SELECTOR); 17645 this.outline = u ? s(u) : null; 17646 var l = S.MDCTextFieldHelperTextFoundation.strings, 17647 d = this.root.nextElementSibling, 17648 p = d && d.classList.contains(A.cssClasses.HELPER_LINE), 17649 h = p && d && d.querySelector(l.ROOT_SELECTOR); 17650 this.helperText = h ? n(h) : null; 17651 var f = b.MDCTextFieldCharacterCounterFoundation.strings, 17652 y = this.root.querySelector(f.ROOT_SELECTOR); 17653 !y && p && d && (y = d.querySelector(f.ROOT_SELECTOR)), (this.characterCounter = y ? i(y) : null); 17654 var C = this.root.querySelector(A.strings.LEADING_ICON_SELECTOR); 17655 this.leadingIcon = C ? r(C) : null; 17656 var E = this.root.querySelector(A.strings.TRAILING_ICON_SELECTOR); 17657 (this.trailingIcon = E ? r(E) : null), (this.prefix = this.root.querySelector(A.strings.PREFIX_SELECTOR)), (this.suffix = this.root.querySelector(A.strings.SUFFIX_SELECTOR)), (this.ripple = this.createRipple(t)); 17658 }), 17659 (C.prototype.destroy = function () { 17660 this.ripple && this.ripple.destroy(), 17661 this.lineRipple && this.lineRipple.de
17661stroy(), 17662 this.helperText && this.helperText.destroy(), 17663 this.characterCounter && this.characterCounter.destroy(), 17664 this.leadingIcon && this.leadingIcon.destroy(), 17665 this.trailingIcon && this.trailingIcon.destroy(), 17666 this.label && this.label.destroy(), 17667 this.outline && this.outline.destroy(), 17668 u.prototype.destroy.call(this); 17669 }), 17670 (C.prototype.initialSyncWithDOM = function () { 17671 this.disabled = this.input.disabled; 17672 }), 17673 Object.defineProperty(C.prototype, "value", { 17674 get: function () { 17675 return this.foundation.getValue(); 17676 }, 17677 set: function (t) { 17678 this.foundation.setValue(t); 17679 }, 17680 enumerable: !1, 17681 configurable: !0, 17682 }), 17683 Object.defineProperty(C.prototype, "disabled", { 17684 get: function () { 17685 return this.foundation.isDisabled(); 17686 }, 17687 set: function (t) { 17688 this.foundation.setDisabled(t); 17689 }, 17690 enumerable: !1, 17691 configurable: !0, 17692 }), 17693 Object.defineProperty(C.prototype, "valid", { 17694 get: function () { 17695 return this.foundation.isValid(); 17696 }, 17697 set: function (t) { 17698 this.foundation.setValid(t); 17699 }, 17700 enumerable: !1, 17701 configurable: !0, 17702 }), 17703 Object.defineProperty(C.prototype, "required", { 17704 get: function () { 17705 return this.input.required; 17706 }, 17707 set: function (t) { 17708 this.input.required = t; 17709 }, 17710 enumerable: !1, 17711 configurable: !0, 17712 }), 17713 Object.defineProperty(C.prototype, "pattern", { 17714 get: function () { 17715 return this.input.pattern; 17716 }, 17717 set: function (t) { 17718 this.input.pattern = t; 17719 }, 17720 enumerable: !1, 17721 configurable: !0, 17722 }), 17723 Object.defineProperty(C.prototype, "minLength", { 17724 get: function () { 17725 return this.input.minLength; 17726 }, 17727 set: function (t) { 17728 this.input.minLength = t; 17729 }, 17730 enumerable: !1, 17731 configurable: !0, 17732 }), 17733 Object.defineProperty(C.prototype, "maxLength", { 17734 get: function () { 17735 return this.input.maxLength; 17736 }, 17737 set: function (t) { 17738 t < 0 ? this.input.removeAttribute("maxLength") : (this.input.maxLength = t); 17739 }, 17740 enumerable: !1, 17741 configurable: !0, 17742 }), 17743 Object.defineProperty(C.prototype, "min", { 17744 get: function () { 17745 return this.input.min; 17746 }, 17747 set: function (t) { 17748 this.input.min = t; 17749 }, 17750 enumerable: !1, 17751 configurable: !0, 17752 }), 17753 Object.defineProperty(C.prototype, "max", { 17754 get: function () { 17755 return this.input.max; 17756 }, 17757 set: function (t) { 17758 this.input.max = t; 17759 }, 17760 enumerable: !1, 17761 configurable: !0, 17762 }), 17763 Object.defineProperty(C.prototype, "step", { 17764 get: function () { 17765 return this.input.step; 17766 }, 17767 set: function (t) { 17768 this.input.step = t; 17769 }, 17770 enumerable: !1, 17771 configurable: !0, 17772 }), 17773 Object.defineProperty(C.prototype, "helperTextContent", { 17774 set: function (t) { 17775 this.foundation.setHelperTextContent(t); 17776 }, 17777 enumerable: !1, 17778 configurable: !0, 17779 }), 17780 Object.defineProperty(C.prototype, "leadingIconAriaLabel", { 17781 set: function (t) { 17782 this.foundation.setLeadingIconAriaLabel(t); 17783 }, 17784 enumerable: !1, 17785 configurable: !0, 17786 }), 17787 Object.defineProperty(C.prototype, "leadingIconContent", { 17788 set: function (t) { 17789 this.foundation.setLeadingIconContent(t); 17790 }, 17791 enumerable: !1, 17792 configurable: !0, 17793 }), 17794 Object.defineProperty(C.prototype, "trailingIconAriaLabel", { 17795 set: function (t) { 17796 this.foundation.setTrailingIconAriaLabel(t); 17797 }, 17798 enumerable: !1, 17799 configurable: !0, 17800 }), 17801 Object.defineProperty(C.prototype, "trailingIconContent", { 17802 set: function (t) { 17803 this.foundation.setTrailingIconContent(t); 17804 }, 17805 enumerable: !1, 17806 configurable: !0, 17807 }), 17808 Object.defineProperty(C.prototype, "useNativeValidation", { 17809 set: function (t) { 17810 this.foundation.setUseNativeValidation(t); 17811 }, 17812 enumerable: !1, 17813 configurable: !0, 17814 }), 17815 Object.defineProperty(C.prototype, "prefixText", { 17816 get: function () { 17817 return this.prefix ? this.prefix.textContent : null; 17818 }, 17819 set: function (t) { 17820 this.prefix && (this.prefix.textContent = t); 17821 }, 17822 enumerable: !1, 17823 configurable: !0, 17824 }), 17825 Object.defineProperty(C.prototype, "suffixText", { 17826 get: function () { 17827 return this.suffix ? this.suffix.textContent : null; 17828 }, 17829 set: function (t) { 17830 this.suffix && (this.suffix.textContent = t); 17831 }, 17832 enumerable: !1, 17833 configurable: !0, 17834 }),
17835 (C.prototype.focus = function () { 17836 this.input.focus(); 17837 }), 17838 (C.prototype.layout = function () { 17839 var t = this.foundation.shouldFloat; 17840 this.foundation.notchOutline(t); 17841 }), 17842 (C.prototype.getDefaultFoundation = function () { 17843 var t = o(o(o(o(o({}, this.getRootAdapterMethods()), this.getInputAdapterMethods()), this.getLabelAdapterMethods()), this.getLineRippleAdapterMethods()), this.getOutlineAdapterMethods()); 17844 return new f.MDCTextFieldFoundation(t, this.getFoundationMap()); 17845 }), 17846 (C.prototype.getRootAdapterMethods = function () { 17847 var n = this; 17848 return { 17849 addClass: function (t) { 17850 return n.root.classList.add(t); 17851 }, 17852 removeClass: function (t) { 17853 return n.root.classList.remove(t); 17854 }, 17855 hasClass: function (t) { 17856 return n.root.classList.contains(t); 17857 }, 17858 registerTextFieldInteractionHandler: function (t, e) { 17859 n.listen(t, e); 17860 }, 17861 deregisterTextFieldInteractionHandler: function (t, e) { 17862 n.unlisten(t, e); 17863 }, 17864 registerValidationAttributeChangeHandler: function (e) { 17865 var t = new MutationObserver(function (t) { 17866 return e( 17867 (function (t) { 17868 return t 17869 .map(function (t) { 17870 return t.attributeName; 17871 }) 17872 .filter(function (t) { 17873 return t; 17874 }); 17875 })(t) 17876 ); 17877 }); 17878 return t.observe(n.input, { attributes: !0 }), t; 17879 }, 17880 deregisterValidationAttributeChangeHandler: function (t) { 17881 t.disconnect(); 17882 }, 17883 }; 17884 }), 17885 (C.prototype.getInputAdapterMethods = function () { 17886 var n = this; 17887 return { 17888 getNativeInput: function () { 17889 return n.input; 17890 }, 17891 setInputAttr: function (t, e) { 17892 n.input.setAttribute(t, e); 17893 }, 17894 removeInputAttr: function (t) { 17895 n.input.removeAttribute(t); 17896 }, 17897 isFocused: function () { 17898 return document.activeElement === n.input; 17899 }, 17900 registerInputInteractionHandler: function (t, e) { 17901 n.input.addEventListener(t, e, d.applyPassive()); 17902 }, 17903 deregisterInputInteractionHandler: function (t, e) { 17904 n.input.removeEventListener(t, e, d.applyPassive()); 17905 }, 17906 }; 17907 }), 17908 (C.prototype.getLabelAdapterMethods = function () { 17909 var e = this; 17910 return { 17911 floatLabel: function (t) { 17912 e.label && e.label.float(t); 17913 }, 17914 getLabelWidth: function () { 17915 return e.label ? e.label.getWidth() : 0; 17916 }, 17917 hasLabel: function () { 17918 return Boolean(e.label); 17919 }, 17920 shakeLabel: function (t) { 17921 e.label && e.label.shake(t); 17922 }, 17923 setLabelRequired: function (t) { 17924 e.label && e.label.setRequired(t); 17925 }, 17926 }; 17927 }), 17928 (C.prototype.getLineRippleAdapterMethods = function () { 17929 var e = this; 17930 return { 17931 activateLineRipple: function () { 17932 e.lineRipple && e.lineRipple.activate(); 17933 }, 17934 deactivateLineRipple: function () { 17935 e.lineRipple && e.lineRipple.deactivate(); 17936 }, 17937 setLineRippleTransformOrigin: function (t) { 17938 e.lineRipple && e.lineRipple.setRippleCenter(t); 17939 }, 17940 }; 17941 }), 17942 (C.prototype.getOutlineAdapterMethods = function () { 17943 var e = this; 17944 return { 17945 closeOutline: function () { 17946 e.outline && e.outline.closeNotch(); 17947 }, 17948 hasOutline: function () { 17949 return Boolean(e.outline); 17950 }, 17951 notchOutline: function (t) { 17952 e.outline && e.outline.notch(t); 17953 }, 17954 }; 17955 }), 17956 (C.prototype.getFoundationMap = function () { 17957 return { 17958 characterCounter: this.characterCounter ? this.characterCounter.foundationForTextField : void 0, 17959 helperText: this.helperText ? this.helperText.foundationForTextField : void 0, 17960 leadingIcon: this.leadingIcon ? this.leadingIcon.foundationForTextField : void 0, 17961 trailingIcon: this.trailingIcon ? this.trailingIcon.foundationForTextField : void 0, 17962 }; 17963 }), 17964 (C.prototype.createRipple = function (t) { 17965 var n = this, 17966 e = this.root.classList.contains(A.cssClasse
17966s.TEXTAREA), 17967 i = this.root.classList.contains(A.cssClasses.OUTLINED); 17968 if (e || i) return null; 17969 var r = o(o({}, v.MDCRipple.createAdapter(this)), { 17970 isSurfaceActive: function () { 17971 return p.matches(n.input, ":active"); 17972 }, 17973 registerInteractionHandler: function (t, e) { 17974 n.input.addEventListener(t, e, d.applyPassive()); 17975 }, 17976 deregisterInteractionHandler: function (t, e) { 17977 n.input.removeEventListener(t, e, d.applyPassive()); 17978 }, 17979 }); 17980 return t(this.root, new h.MDCRippleFoundation(r)); 17981 }), 17982 C); 17983 function C() { 17984 return (null !== u && u.apply(this, arguments)) || this; 17985 } 17986 e.MDCTextField = y; 17987 }, 17988 function (t, e, n) { 17989 "use strict"; 17990 Object.defineProperty(e, "__esModule", { value: !0 }); 17991 }, 17992 function (t, e, n) { 17993 "use strict"; 17994 var i = 17995 (this && this.__createBinding) || 17996 (Object.create 17997 ? function (t, e, n, i) { 17998 void 0 === i && (i = n), 17999 Object.defineProperty(t, i, { 18000 enumerable: !0, 18001 get: function () { 18002 return e[n]; 18003 }, 18004 }); 18005 } 18006 : function (t, e, n, i) { 18007 void 0 === i && (i = n), (t[i] = e[n]); 18008 }), 18009 r = 18010 (this && this.__exportStar) || 18011 function (t, e) { 18012 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 18013 }; 18014 Object.defineProperty(e, "__esModule", { value: !0 }), (e.characterCountStrings = e.characterCountCssClasses = void 0), r(n(238), e), r(n(109), e), r(n(39), e); 18015 var o = n(110); 18016 Object.defineProperty(e, "characterCountCssClasses", { 18017 enumerable: !0, 18018 get: function () { 18019 return o.cssClasses; 18020 }, 18021 }), 18022 Object.defineProperty(e, "characterCountStrings", { 18023 enumerable: !0, 18024 get: function () { 18025 return o.strings; 18026 }, 18027 }); 18028 }, 18029 function (t, e, n) { 18030 "use strict"; 18031 Object.defineProperty(e, "__esModule", { value: !0 }); 18032 }, 18033 function (t, e, n) { 18034 "use strict"; 18035 var i = 18036 (this && this.__createBinding) || 18037 (Object.create 18038 ? function (t, e, n, i) { 18039 void 0 === i && (i = n), 18040 Object.defineProperty(t, i, { 18041 enumerable: !0, 18042 get: function () { 18043 return e[n]; 18044 }, 18045 }); 18046 } 18047 : function (t, e, n, i) { 18048 void 0 === i && (i = n), (t[i] = e[n]); 18049 }), 18050 r = 18051 (this && this.__exportStar) || 18052 function (t, e) { 18053 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 18054 }; 18055 Object.defineProperty(e, "__esModule", { value: !0 }
18055), (e.helperTextStrings = e.helperTextCssClasses = void 0), r(n(240), e), r(n(112), e), r(n(41), e); 18056 var o = n(113); 18057 Object.defineProperty(e, "helperTextCssClasses", { 18058 enumerable: !0, 18059 get: function () { 18060 return o.cssClasses; 18061 }, 18062 }), 18063 Object.defineProperty(e, "helperTextStrings", { 18064 enumerable: !0, 18065 get: function () { 18066 return o.strings; 18067 }, 18068 }); 18069 }, 18070 function (t, e, n) { 18071 "use strict"; 18072 Object.defineProperty(e, "__esModule", { value: !0 }); 18073 }, 18074 function (t, e, n) { 18075 "use strict"; 18076 var i = 18077 (this && this.__createBinding) || 18078 (Object.create 18079 ? function (t, e, n, i) { 18080 void 0 === i && (i = n), 18081 Object.defineProperty(t, i, { 18082 enumerable: !0, 18083 get: function () { 18084 return e[n]; 18085 }, 18086 }); 18087 } 18088 : function (t, e, n, i) { 18089 void 0 === i && (i = n), (t[i] = e[n]); 18090 }), 18091 r = 18092 (this && this.__exportStar) || 18093 function (t, e) { 18094 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 18095 }; 18096 Object.defineProperty(e, "__esModule", { value: !0 }), (e.iconStrings = e.iconCssClasses = void 0), r(n(242), e), r(n(114), e), r(n(115), e); 18097 var o = n(116); 18098 Object.defineProperty(e, "iconCssClasses", { 18099 enumerable: !0, 18100 get: function () { 18101 return o.cssClasses; 18102 }, 18103 }), 18104 Object.defineProperty(e, "iconStrings", { 18105 enumerable: !0, 18106 get: function () { 18107 return o.strings; 18108 }, 18109 }); 18110 }, 18111 function (t, e, n) { 18112 "use strict"; 18113 Object.defineProperty(e, "__esModule", { value: !0 }); 18114 }, 18115 function (t, e, n) { 18116 "use strict"; 18117 var i = 18118 (this && this.__createBinding) || 18119 (Object.create 18120 ? function (t, e, n, i) { 18121 void 0 === i && (i = n), 18122 Object.defineProperty(t, i, { 18123 enumerable: !0, 18124 get: function () { 18125 return e[n]; 18126 }, 18127 }); 18128 } 18129 : function (t, e, n, i) { 18130 void 0 === i && (i = n), (t[i] = e[n]); 18131 }), 18132 r = 18133 (this && this.__exportStar) || 18134 function (t, e) { 18135 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 18136 }; 18137 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(244), e), r(n(245), e), r(n(117), e), r(n(42), e); 18138 }, 18139 function (t, e, n) { 18140 "use strict"; 18141 Object.defineProperty(e, "__esModule", { value: !0 }); 18142 }, 18143 function (t, e, n) { 18144 "use strict"; 18145 var i, 18146 r = 18147 (this && this.__extends) || 18148 ((i = function (t, e) { 18149 return (i = 18150 Object.setPrototypeOf || 18151 ({ __proto__: [] } instanceof Array && 18152 function (t, e) { 18153 t.__proto__ = e; 18154 }) || 18155 function (t, e) { 18156 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 18157 })(t, e); 18158 }), 18159 function (t, e) { 18160 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 18161 function n() { 18162 this.constructor = t; 18163 } 18164 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 18165 }); 18166 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTooltip = void 0); 18167 var o, 18168 s = n(1), 18169 a = n(42), 18170 c = n(117), 18171 u = 18172 ((o = s.MDCComponent), 18173 r(l, o), 18174 (l.attachTo = function (t) { 18175 return new l(t); 18176 }), 18177 (l.prototype.initialize = function () { 18178 var t = this.root.getAttribute("id"); 18179 if (!t) throw new Error("MDCTooltip: Tooltip component must have an id."); 18180 var e = document.querySelector('[data-tooltip-id="' + t + '"]') || document.querySelector('[aria-describedby="' + t + '"]'); 18181 if (!e) throw new Error("MDCTooltip: Tooltip component requires an anchor element annotated with [aria-describedby] or [data-tooltip-id]."); 18182 this.anchorElem = e; 18183 }), 18184 (l.prototype.initialSyncWithDOM = function () { 18185 var e = this; 18186 (this.isTooltipRich = this.foundation.isRich()), 18187 (this.isTooltipPersistent = this.foundation.isPersistent
18187()), 18188 (this.handleMouseEnter = function () { 18189 e.foundation.handleAnchorMouseEnter(); 18190 }), 18191 (this.handleFocus = function (t) { 18192 e.foundation.handleAnchorFocus(t); 18193 }), 18194 (this.handleMouseLeave = function () { 18195 e.foundation.handleAnchorMouseLeave(); 18196 }), 18197 (this.handleTransitionEnd = function () { 18198 e.foundation.handleTransitionEnd(); 18199 }), 18200 (this.handleClick = function () { 18201 e.foundation.handleAnchorClick(); 18202 }), 18203 (this.handleTouchstart = function () { 18204 e.foundation.handleAnchorTouchstart(); 18205 }), 18206 (this.handleTouchend = function () { 18207 e.foundation.handleAnchorTouchend(); 18208 }), 18209 this.isTooltipRich && this.isTooltipPersistent 18210 ? this.anchorElem.addEventListener("click", this.handleClick) 18211 : (this.anchorElem.addEventListener("mouseenter", this.handleMouseEnter), 18212 this.anchorElem.addEventListener("focus", this.handleFocus), 18213 this.anchorElem.addEventListener("mouseleave", this.handleMouseLeave), 18214 this.anchorElem.addEventListener("touchstart", this.handleTouchstart), 18215 this.anchorElem.addEventListener("touchend", this.handleTouchend)), 18216 this.listen("transitionend", this.handleTransitionEnd); 18217 }), 18218 (l.prototype.destroy = function () { 18219 this.anchorElem && 18220 (this.isTooltipRich && this.isTooltipPersistent 18221 ? this.anchorElem.removeEventListener("click", this.handleClick) 18222 : (this.anchorElem.removeEventListener("mouseenter", this.handleMouseEnter), 18223 this.anchorElem.removeEventListener("focus", this.handleFocus), 18224 this.anchorElem.removeEventListener("mouseleave", this.handleMouseLeave), 18225 this.anchorElem.removeEventListener("touchstart", this.handleTouchstart), 18226 this.anchorElem.removeEventListener("touchend", this.handleTouchend))), 18227 this.unlisten("transitionend", this.handleTransitionEnd), 18228 o.prototype.destroy.call(this); 18229 }), 18230 (l.prototype.setTooltipPosition = function (t) { 18231 this.foundation.setTooltipPosition(t); 18232 }), 18233 (l.prototype.setAnchorBoundaryType = function (t) { 18234 this.foundation.setAnchorBoundaryType(t); 18235 }), 18236 (l.prototype.setShowDelay = function (t) { 18237 this.foundation.setShowDelay(t); 18238 }), 18239 (l.prototype.setHideDelay = function (t) { 18240 this.foundation.setHideDelay(t); 18241 }), 18242 (l.prototype.hide = function () { 18243 this.foundation.hide(); 18244 }), 18245 (l.prototype.isShown = function () { 18246 return this.foundation.isShown(); 18247 }), 18248 (l.prototype.attachScrollHandler = function (t) { 18249 this.foundation.attachScrollHandler(t); 18250 }), 18251 (l.prototype.removeScrollHandler = function (t) { 18252 this.foundation.removeScrollHandler(t); 18253 }), 18254 (l.prototype.getDefaultFoundation = function () { 18255 var r = this, 18256 t = { 18257 getAttribute: function (t) { 18258 return r.root.getAttribute(t); 18259 }, 18260 setAttribute: function (t, e) { 18261 r.root.setAttribute(t, e); 18262 }, 18263 removeAttribute: function (t) { 18264 r.root.removeAttribute(t); 18265 }, 18266 addClass: function (t) { 18267 r.root.classList.add(t); 18268 }, 18269 hasClass: function (t) { 18270 return r.root.classList.contains(t); 18271 }, 18272 removeClass: function (t) { 18273 r.root.classList.remove(t); 18274 }, 18275 getComputedStyleProperty: function (t) { 18276 return window.getComputedStyle(r.root).getPropertyValue(t); 18277 }, 18278 setStyleProperty: function (t, e) { 18279 r.root.style.setProperty(t, e); 18280 }, 18281 setSurfaceAnimationStyleProperty: function (t, e) { 18282 var n = r.root.querySelector("." + a.CssClasse
18282s.SURFACE_ANIMATION); 18283 null == n || n.style.setProperty(t, e); 18284 }, 18285 getViewportWidth: function () { 18286 return window.innerWidth; 18287 }, 18288 getViewportHeight: function () { 18289 return window.innerHeight; 18290 }, 18291 getTooltipSize: function () { 18292 return { width: r.root.offsetWidth, height: r.root.offsetHeight }; 18293 }, 18294 getAnchorBoundingRect: function () { 18295 return r.anchorElem ? r.anchorElem.getBoundingClientRect() : null; 18296 }, 18297 getParentBoundingRect: function () { 18298 var t, e; 18299 return null !== (e = null === (t = r.root.parentElement) || void 0 === t ? void 0 : t.getBoundingClientRect()) && void 0 !== e ? e : null; 18300 }, 18301 getAnchorAttribute: function (t) { 18302 return r.anchorElem ? r.anchorElem.getAttribute(t) : null; 18303 }, 18304 setAnchorAttribute: function (t, e) { 18305 var n; 18306 null === (n = r.anchorElem) || void 0 === n || n.setAttribute(t, e); 18307 }, 18308 isRTL: function () { 18309 return "rtl" === getComputedStyle(r.root).direction; 18310 }, 18311 anchorContainsElement: function (t) { 18312 var e; 18313 return !!(null === (e = r.anchorElem) || void 0 === e ? void 0 : e.contains(t)); 18314 }, 18315 tooltipContainsElement: function (t) { 18316 return r.root.contains(t); 18317 }, 18318 focusAnchorElement: function () { 18319 var t; 18320 null === (t = r.anchorElem) || void 0 === t || t.focus(); 18321 }, 18322 registerEventHandler: function (t, e) { 18323 r.root instanceof HTMLElement && r.root.addEventListener(t, e); 18324 }, 18325 deregisterEventHandler: function (t, e) { 18326 r.root instanceof HTMLElement && r.root.removeEventListener(t, e); 18327 }, 18328 registerAnchorEventHandler: function (t, e) { 18329 var n; 18330 null === (n = r.anchorElem) || void 0 === n || n.addEventListener(t, e); 18331 }, 18332 deregisterAnchorEventHandler: function (t, e) { 18333 var n; 18334 null === (n = r.anchorElem) || void 0 === n || n.removeEventListener(t, e); 18335 }, 18336 registerDocumentEventHandler: function (t, e) { 18337 document.body.addEventListener(t, e); 18338 }, 18339 deregisterDocumentEventHandler: function (t, e) { 18340 document.body.removeEventListener(t, e); 18341 }, 18342 registerWindowEventHandler: function (t, e) { 18343 window.addEventListener(t, e); 18344 }, 18345 deregisterWindowEventHandler: function (t, e) { 18346 window.removeEventListener(t, e); 18347 }, 18348 notifyHidden: function () { 18349 r.emit(a.events.HIDDEN, {}); 18350 }, 18351 getTooltipCaretBoundingRect: function () { 18352 var t = r.root.querySelector("." + a.CssClasse
18352s.TOOLTIP_CARET_TOP); 18353 return t ? t.getBoundingClientRect() : null; 18354 }, 18355 setTooltipCaretStyle: function (t, e) { 18356 var n = r.root.querySelector("." + a.CssClasses.TOOLTIP_CARET_TOP), 18357 i = r.root.querySelector("." + a.CssClasses.TOOLTIP_CARET_BOTTOM); 18358 n && i && (n.style.setProperty(t, e), i.style.setProperty(t, e)); 18359 }, 18360 clearTooltipCaretStyles: function () { 18361 var t = r.root.querySelector("." + a.CssClasses.TOOLTIP_CARET_TOP), 18362 e = r.root.querySelector("." + a.CssClasses.TOOLTIP_CARET_BOTTOM); 18363 t && e && (t.removeAttribute("style"), e.removeAttribute("style")); 18364 }, 18365 getActiveElement: function () { 18366 return document.activeElement; 18367 }, 18368 }; 18369 return new c.MDCTooltipFoundation(t); 18370 }), 18371 l); 18372 function l() { 18373 return (null !== o && o.apply(this, arguments)) || this; 18374 } 18375 e.MDCTooltip = u; 18376 }, 18377 function (t, e, n) { 18378 "use strict"; 18379 var i = 18380 (this && this.__createBinding) || 18381 (Object.create 18382 ? function (t, e, n, i) { 18383 void 0 === i && (i = n), 18384 Object.defineProperty(t, i, { 18385 enumerable: !0, 18386 get: function () { 18387 return e[n]; 18388 }, 18389 }); 18390 } 18391 : function (t, e, n, i) { 18392 void 0 === i && (i = n), (t[i] = e[n]); 18393 }), 18394 r = 18395 (this && this.__exportStar) || 18396 function (t, e) { 18397 for (var n in t) "default" === n || Object.prototype.hasOwnProperty.call(e, n) || i(e, t, n); 18398 }; 18399 Object.defineProperty(e, "__esModule", { value: !0 }), r(n(247), e), r(n(248), e), r(n(9), e), r(n(44), e), r(n(118), e), r(n(119), e), r(n(43), e); 18400 }, 18401 function (t, e, n) { 18402 "use strict"; 18403 Object.defineProperty(e, "__esModule", { value: !0 }); 18404 }, 18405 function (t, e, n) { 18406 "use strict"; 18407 var i, 18408 r = 18409 (this && this.__extends) || 18410 ((i = function (t, e) { 18411 return (i = 18412 Object.setPrototypeOf || 18413 ({ __proto__: [] } instanceof Array && 18414 function (t, e) { 18415 t.__proto__ = e; 18416 }) || 18417 function (t, e) { 18418 for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]); 18419 })(t, e); 18420 }), 18421 function (t, e) { 18422 if ("function" != typeof e && null !== e) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); 18423 function n() { 18424 this.constructor = t; 18425 } 18426 i(t, e), (t.prototype = null === e ? Object.create(e) : ((n.prototype = e.prototype), new n())); 18427 }), 18428 o = 18429 (this && this.__values) || 18430 function (t) { 18431 var e = "function" == typeof Symbol && Symbol.iterator, 18432 n = e && t[e], 18433 i = 0; 18434 if (n) return n.call(t); 18435 if (t && "number" == typeof t.length) 18436 return { 18437 next: function () { 18438 return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t }; 18439 }, 18440 }; 18441 throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); 18442 }; 18443 Object.defineProperty(e, "__esModule", { value: !0 }), (e.MDCTopAppBar = void 0); 18444 var s, 18445 a = n(1), 18446 c = n(2), 18447 u = n(9), 18448 l = n(118), 18449 d = n(119), 18450 p = n(43), 18451 h = 18452 ((s = a.MDCComponent), 18453 r(f, s), 18454 (f.attachTo = function (t) { 18455 return new f(t); 18456 }), 18457 (f.prototype.initialize = function (n) { 18458 void 0 === n && 18459 (n = function (t) { 18460 return c.MDCRipple.attachTo(t); 18461 }), 18462 (this.navIcon = this.root.querySelector(u.strings.NAVIGATION_ICON_SELECTOR)); 18463 var t = [].slice.call(this.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR)); 18464 this.navIcon && t.push(this.navIcon), 18465 (this.iconRipples = t.map(function (t) { 18466 var e = n(t); 18467 return (e.unbounded = !0), e; 18468 })), 18469 (this.scrollTarget = window); 18470 }), 18471 (f.prototype.initialSyncWithDOM = function () { 18472 (this.handleNavigationClick = this.foundation.handleNavigationClick.bind(this.foundation)), 18473 (this.handleWindowResize = this.foundation.handleWindowResize.bind(this.foundation)), 18474 (this.handleTargetScroll = this.foundation.handleTargetScroll.bind(this.foundation)), 18475 this.scrollTarget.addEventListener("scroll", this.handleTargetScroll), 18476 this.navIcon && this.navIcon.addEventListener("click", this.handleNavigationClick); 18477 var t = this.root.classList.contains(u.cssClasse
18477s.FIXED_CLASS); 18478 this.root.classList.contains(u.cssClasses.SHORT_CLASS) || t || window.addEventListener("resize", this.handleWindowResize); 18479 }), 18480 (f.prototype.destroy = function () { 18481 var e, t; 18482 try { 18483 for (var n = o(this.iconRipples), i = n.next(); !i.done; i = n.next()) i.value.destroy(); 18484 } catch (t) { 18485 e = { error: t }; 18486 } finally { 18487 try { 18488 i && !i.done && (t = n.return) && t.call(n); 18489 } finally { 18490 if (e) throw e.error; 18491 } 18492 } 18493 this.scrollTarget.removeEventListener("scroll", this.handleTargetScroll), this.navIcon && this.navIcon.removeEventListener("click", this.handleNavigationClick); 18494 var r = this.root.classList.contains(u.cssClasses.FIXED_CLASS); 18495 this.root.classList.contains(u.cssClasses.SHORT_CLASS) || r || window.removeEventListener("resize", this.handleWindowResize), s.prototype.destroy.call(this); 18496 }), 18497 (f.prototype.setScrollTarget = function (t) { 18498 this.scrollTarget.removeEventListener("scroll", this.handleTargetScroll), 18499 (this.scrollTarget = t), 18500 (this.handleTargetScroll = this.foundation.handleTargetScroll.bind(this.foundation)), 18501 this.scrollTarget.addEventListener("scroll", this.handleTargetScroll); 18502 }), 18503 (f.prototype.getDefaultFoundation = function () { 18504 var n = this, 18505 t = { 18506 hasClass: function (t) { 18507 return n.root.classList.contains(t); 18508 }, 18509 addClass: function (t) { 18510 return n.root.classList.add(t); 18511 }, 18512 removeClass: function (t) { 18513 return n.root.classList.remove(t); 18514 }, 18515 setStyle: function (t, e) { 18516 return n.root.style.setProperty(t, e); 18517 }, 18518 getTopAppBarHeight: function () { 18519 return n.root.clientHeight; 18520 }, 18521 notifyNavigationIconClicked: function () { 18522 return n.emit(u.strings.NAVIGATION_EVENT, {}); 18523 }, 18524 getViewportScrollY: function () { 18525 var t = n.scrollTarget, 18526 e = n.scrollTarget; 18527 return void 0 !== t.pageYOffset ? t.pageYOffset : e.scrollTop; 18528 }, 18529 getTotalActionItems: function () { 18530 return n.root.querySelectorAll(u.strings.ACTION_ITEM_SELECTOR).length; 18531 }, 18532 }; 18533 return this.root.classList.contains(u.cssClasses.SHORT_CLASS) 18534 ? new d.MDCShortTopAppBarFoundation(t) 18535 : this.root.classList.contains(u.cssClasses.FIXED_CLASS) 18536 ? new l.MDCFixedTopAppBarFoundation(t) 18537 : new p.MDCTopAppBarFoundation(t); 18538 }), 18539 f); 18540 function f() { 18541 return (null !== s && s.apply(this, arguments)) || this; 18542 } 18543 e.MDCTopAppBar = h; 18544 }, 18545 ]), 18546 (r.c = i),
vendor: 1,689 bytes, lines 18547-18591
18547 (r.d = function (t, e, n) { 18548 r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }); 18549 }), 18550 (r.r = function (t) { 18551 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }); 18552 }), 18553 (r.t = function (e, t) { 18554 if ((1 & t && (e = r(e)), 8 & t)) return e; 18555 if (4 & t && "object" == typeof e && e && e.__esModule) return e; 18556 var n = Object.create(null); 18557 if ((r.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e)) 18558 for (var i in e) 18559 r.d( 18560 n, 18561 i, 18562 function (t) { 18563 return e[t]; 18564 }.bind(null, i) 18565 ); 18566 return n; 18567 }), 18568 (r.n = function (t) { 18569 var e = 18570 t && t.__esModule 18571 ? function () { 18572 return t.default; 18573 } 18574 : function () { 18575 return t; 18576 }; 18577 return r.d(e, "a", e), e; 18578 }), 18579 (r.o = function (t, e) { 18580 return Object.prototype.hasOwnProperty.call(t, e); 18581 }), 18582 (r.p = ""), 18583 r((r.s = 120)) 18584 ); 18585 function r(t) { 18586 if (i[t]) return i[t].exports; 18587 var e = (i[t] = { i: t, l: !1, exports: {} }); 18588 return n[t].call(e.exports, e, e.exports, r), (e.l = !0), e.exports; 18589 } 18590 var n, i; 18591});
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.