preact-material-components
Version:
preact wrapper for "Material Components for the web"
85 lines • 391 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("preact"));else if("function"==typeof define&&define.amd)define(["preact"],t);else{var n="object"==typeof exports?t(require("preact")):t(e.preact);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=144)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(0),o=n(4);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var u=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)))._mdcProps=[],e.componentName="",e.classText="",e.setControlRef=function(t){e.control=t},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),function(e,t,n){t&&a(e.prototype,t),n&&a(e,n)}(t,[{key:"attachRipple",value:function(){this.props.ripple&&this.control&&o.MDCRipple.attachTo(this.control)}},{key:"buildClassName",value:function(){for(var e in this.classText="mdc-"+this.componentName,this.props)if(this.props.hasOwnProperty(e)){var t=this.props[e];"boolean"==typeof t&&t&&-1!==this._mdcProps.indexOf(e)&&(this.classText+=" mdc-"+this.componentName+"--"+e)}}},{key:"getClassName",value:function(e){if(!e)return"";var t=e.attributes=e.attributes||{},n=this.classText;return t.class&&(n+=" "+t.class),t.className&&t.className!==t.class&&(n+=" "+t.className),n}},{key:"materialDom",value:function(e){return(0,r.h)("div",Object.assign({},e),e.children)}},{key:"render",value:function(){this.buildClassName();var e=this.props,t=e.className||e.class||"";e.class&&delete e.class,e.className&&delete e.className;var n=this.materialDom(e);return n.attributes=n.attributes||{},n.attributes.className="".concat(t," ").concat(this.getClassName(n)).split(" ").filter(function(e,t,n){return n.indexOf(e)===t&&""!==e}).join(" "),this._mdcProps.forEach(function(e){delete n.attributes[e]}),n}}]),t}();t.default=u},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}
/**
* @license
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adapter_=t}return o(e,null,[{key:"cssClasses",get:function(){return{}}},{key:"strings",get:function(){return{}}},{key:"numbers",get:function(){return{}}},{key:"defaultAdapter",get:function(){return{}}}]),o(e,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(2));function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}var a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root_=t;for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];this.initialize.apply(this,o),this.foundation_=void 0===n?this.getDefaultFoundation():n,this.foundation_.init(),this.initialSyncWithDOM()}return i(e,null,[{key:"attachTo",value:function(t){return new e(t,new r.default)}}]),i(e,[{key:"initialize",value:function(){}},{key:"getDefaultFoundation",value:function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}},{key:"initialSyncWithDOM",value:function(){}},{key:"destroy",value:function(){this.foundation_.destroy()}},{key:"listen",value:function(e,t){this.root_.addEventListener(e,t)}},{key:"unlisten",value:function(e,t){this.root_.removeEventListener(e,t)}},{key:"emit",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"function"==typeof CustomEvent?n=new CustomEvent(e,{detail:t,bubbles:r}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,r,!1,t),this.root_.dispatchEvent(n)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MDCRippleFoundation",{enumerable:!0,get:function(){return o.default}}),t.util=t.RippleCapableSurface=t.MDCRipple=void 0;var r=a(n(3)),o=(a(n(44)),a(n(143))),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(14));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}t.util=i;var f=function(e){function t(){var e,n;u(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)))).disabled=!1,n.unbounded_,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(t,[{key:"setUnbounded_",value:function(){this.foundation_.setUnbounded(this.unbounded_)}},{key:"activate",value:function(){this.foundation_.activate()}},{key:"deactivate",value:function(){this.foundation_.deactivate()}},{key:"layout",value:function(){this.foundation_.layout()}},{key:"getDefaultFoundation",value:function(){return new o.default(t.createAdapter(this))}},{key:"initialSyncWithDOM",value:function(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}},{key:"unbounded",get:function(){return this.unbounded_},set:function(e){this.unbounded_=Boolean(e),this.setUnbounded_()}}],[{key:"attachTo",value:function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isUnbounded,r=void 0===n?void 0:n,o=new t(e);return void 0!==r&&(o.unbounded=r),o}},{key:"createAdapter",value:function(e){var t=i.getMatchesProperty(HTMLElement.prototype);return{browserSupportsCssVars:function(){return i.supportsCssVariables(window)},isUnbounded:function(){return e.unbounded},isSurfaceActive:function(){return e.root_[t](":active")},isSurfaceDisabled:function(){return e.disabled},addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},containsEventTarget:function(t){return e.root_.contains(t)},registerInteractionHandler:function(t,n){return e.root_.addEventListener(t,n,i.applyPassive())},deregisterInteractionHandler:function(t,n){return e.root_.removeEventListener(t,n,i.applyPassive())},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,i.applyPassive())},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,i.applyPassive())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},updateCssVariable:function(t,n){return e.root_.style.setProperty(t,n)},computeBoundingRect:function(){return e.root_.getBoundingClientRect()},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}}}}}]),t}();t.MDCRipple=f;var d=function e(){u(this,e)};t.RippleCapableSurface=d,d.prototype.root_,d.prototype.unbounded,d.prototype.disabled},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MDCFoundation",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"MDCComponent",{enumerable:!0,get:function(){return o.default}});var r=i(n(2)),o=i(n(3));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(n(1));function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="icon",e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(t,[{key:"materialDom",value:function(e){var t=["material-icons"];return e.className&&t.push(e.className),(0,a.h)("i",u({},e,{className:t.join(" ")}),e.children)}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCSelectionControl=t.MDCSelectionControlState=void 0;n(4);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.MDCSelectionControlState=void 0;var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"ripple",get:function(){}}]),e}();t.MDCSelectionControl=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCorrectEventName=function(e,t){return i(e,t)},t.getCorrectPropertyName=function(e,t){return i(e,t)},t.transformStyleProperties=void 0;var r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},o={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};function i(e,t){if(!function(e){return void 0!==e.document&&"function"==typeof e.document.createElement}(e)||!function(e){return e in r||e in o}(t))return t;var n=t in r?r:o,i=e.document.createElement("div");return n===r?function(e,t,n){return t[e].styleProperty in n.style?t[e].noPrefix:t[e].webkitPrefix}(t,n,i):n[t].noPrefix in i.style?n[t].noPrefix:n[t].webkitPrefix}t.transformStyleProperties=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numbers=t.cssClasses=t.strings=void 0;t.cssClasses={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed"};t.numbers={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128};t.strings={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
* @license
* Copyright 2018 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"setStyle",value:function(e,t){}},{key:"getTopAppBarHeight",value:function(){}},{key:"registerNavigationIconInteractionHandler",value:function(e,t){}},{key:"deregisterNavigationIconInteractionHandler",value:function(e,t){}},{key:"notifyNavigationIconClicked",value:function(){}},{key:"registerScrollHandler",value:function(e){}},{key:"deregisterScrollHandler",value:function(e){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"getViewportScrollY",value:function(){}},{key:"getTotalActionItems",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(9),o=(i(n(10)),i(n(2)));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign(t.defaultAdapter,e)))).navClickHandler_=function(){return n.adapter_.notifyNavigationIconClicked()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),c(t,null,[{key:"strings",get:function(){return r.strings}},{key:"cssClasses",get:function(){return r.cssClasses}},{key:"numbers",get:function(){return r.numbers}},{key:"defaultAdapter",get:function(){return{hasClass:function(){},addClass:function(){},removeClass:function(){},setStyle:function(){},getTopAppBarHeight:function(){},registerNavigationIconInteractionHandler:function(){},deregisterNavigationIconInteractionHandler:function(){},notifyNavigationIconClicked:function(){},registerScrollHandler:function(){},deregisterScrollHandler:function(){},registerResizeHandler:function(){},deregisterResizeHandler:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}}}]),c(t,[{key:"init",value:function(){this.adapter_.registerNavigationIconInteractionHandler("click",this.navClickHandler_)}},{key:"destroy",value:function(){this.adapter_.deregisterNavigationIconInteractionHandler("click",this.navClickHandler_)}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FOCUSABLE_ELEMENTS",{enumerable:!0,get:function(){return r.FOCUSABLE_ELEMENTS}}),Object.defineProperty(t,"MDCSlidableDrawerFoundation",{enumerable:!0,get:function(){return o.MDCSlidableDrawerFoundation}});var r=n(83),o=n(82)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=n(0),l=d(n(1)),f=d(n(6));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list",e._mdcProps=["dense","two-line","avatar-list"],e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return e.interactive?(0,c.h)("nav",p({ref:this.setControlRef},e),e.children):(0,c.h)("ul",p({},e,{ref:this.setControlRef}),e.children)}}]),t}(),_=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item",e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return(0,c.h)("li",p({role:"option"},e,{ref:this.setControlRef}),e.children)}}]),t}(),y=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item",e}return u(t,l.default),a(t,[{key:"componentDidMount",value:function(){(function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attachRipple",this).call(this)}},{key:"materialDom",value:function(e){return(0,c.h)("a",p({role:"option"},e,{ref:this.setControlRef}),e.children)}}]),t}(),b=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item__graphic",e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return(0,c.h)("span",p({},e,{ref:this.setControlRef,role:"presentation"}),(0,c.h)(f.default,{"aria-hidden":"true"},e.children))}}]),t}(),v=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item__meta",e}return u(t,b),t}(),m=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-divider",e._mdcProps=["inset"],e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return(0,c.h)("li",p({role:"separator"},e,{ref:this.setControlRef}))}}]),t}(),g=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item__text",e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return(0,c.h)("span",p({},e,{ref:this.setControlRef}),e.children)}}]),t}(),O=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item__text__primary",e}return u(t,g),t}(),C=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-item__secondary-text",e}return u(t,g),t}(),E=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-group",e}return u(t,l.default),t}(),T=function(e){function t(){var e;return o(this,t),(e=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="list-group__subheader",e}return u(t,l.default),a(t,[{key:"materialDom",value:function(e){return(0,c.h)("h3",p({},e,{ref:this.setControlRef}),e.children)}}]),t}();h.Item=_,h.LinkItem=y,h.ItemGraphic=b,h.ItemMeta=v,h.Divider=m,h.TextContainer=g,h.PrimaryText=O,h.SecondaryText=C,h.Group=E,h.GroupHeader=T;var k=h;t.default=k},function(e,t,n){"use strict";
/**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.supportsCssVariables=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r;if("boolean"==typeof r&&!t)return n;if(!e.CSS||"function"!=typeof e.CSS.supports)return;var o=e.CSS.supports("--css-vars","yes"),i=e.CSS.supports("(--css-vars: yes)")&&e.CSS.supports("color","#00000000");n=!(!o&&!i)&&!function(e){var t=e.document,n=t.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",t.body.appendChild(n);var r=e.getComputedStyle(n),o=null!==r&&"solid"===r.borderTopStyle;return n.remove(),o}(e);t||(r=n);return n},t.applyPassive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===o||t){var n=!1;try{e.document.addEventListener("test",null,{get passive(){n=!0}})}catch(e){}o=n}return!!o&&{passive:!0}},t.getMatchesProperty=function(e){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(function(t){return t in e}).pop()},t.getNormalizedEventCoords=function(e,t,n){var r,o,i=t.x,a=t.y,s=i+n.left,u=a+n.top;"touchstart"===e.type?(r=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-u):(r=e.pageX-s,o=e.pageY-u);return{x:r,y:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MDCChipInteractionEventType=t.MDCChipFoundation=void 0;var r=i(n(2)),o=(i(n(21)),n(20));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign(t.defaultAdapter,e)))).shouldRemoveOnTrailingIconClick_=!0,n.interactionHandler_=function(e){return n.handleInteraction(e)},n.transitionEndHandler_=function(e){return n.handleTransitionEnd(e)},n.trailingIconInteractionHandler_=function(e){return n.handleTrailingIconInteraction(e)},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),c(t,null,[{key:"strings",get:function(){return o.strings}},{key:"cssClasses",get:function(){return o.cssClasses}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},addClassToLeadingIcon:function(){},removeClassFromLeadingIcon:function(){},eventTargetHasClass:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerTrailingIconInteractionHandler:function(){},deregisterTrailingIconInteractionHandler:function(){},notifyInteraction:function(){},notifyTrailingIconInteraction:function(){},notifyRemoval:function(){},getComputedStyleValue:function(){},setStyleProperty:function(){}}}}]),c(t,[{key:"init",value:function(){var e=this;["click","keydown"].forEach(function(t){e.adapter_.registerEventHandler(t,e.interactionHandler_)}),this.adapter_.registerEventHandler("transitionend",this.transitionEndHandler_),["click","keydown","touchstart","pointerdown","mousedown"].forEach(function(t){e.adapter_.registerTrailingIconInteractionHandler(t,e.trailingIconInteractionHandler_)})}},{key:"destroy",value:function(){var e=this;["click","keydown"].forEach(function(t){e.adapter_.deregisterEventHandler(t,e.interactionHandler_)}),this.adapter_.deregisterEventHandler("transitionend",this.transitionEndHandler_),["click","keydown","touchstart","pointerdown","mousedown"].forEach(function(t){e.adapter_.deregisterTrailingIconInteractionHandler(t,e.trailingIconInteractionHandler_)})}},{key:"isSelected",value:function(){return this.adapter_.hasClass(o.cssClasses.SELECTED)}},{key:"setSelected",value:function(e){e?this.adapter_.addClass(o.cssClasses.SELECTED):this.adapter_.removeClass(o.cssClasses.SELECTED)}},{key:"getShouldRemoveOnTrailingIconClick",value:function(){return this.shouldRemoveOnTrailingIconClick_}},{key:"setShouldRemoveOnTrailingIconClick",value:function(e){this.shouldRemoveOnTrailingIconClick_=e}},{key:"beginExit",value:function(){this.adapter_.addClass(o.cssClasses.CHIP_EXIT)}},{key:"handleInteraction",value:function(e){"click"!==e.type&&"Enter"!==e.key&&13!==e.keyCode||this.adapter_.notifyInteraction()}},{key:"handleTransitionEnd",value:function(e){var t=this;if(this.adapter_.eventTargetHasClass(e.target,o.cssClasses.CHIP_EXIT)){if("width"===e.propertyName)this.adapter_.notifyRemoval();else if("opacity"===e.propertyName){var n=this.adapter_.getComputedStyleValue("width");requestAnimationFrame(function(){t.adapter_.setStyleProperty("width",n),t.adapter_.setStyleProperty("padding","0"),t.adapter_.setStyleProperty("margin","0"),requestAnimationFrame(function(){t.adapter_.setStyleProperty("width","0")})})}}else"opacity"===e.propertyName&&(this.adapter_.eventTargetHasClass(e.target,o.cssClasses.LEADING_ICON)&&this.adapter_.hasClass(o.cssClasses.SELECTED)?this.adapter_.addClassToLeadingIcon(o.cssClasses.HIDDEN_LEADING_ICON):this.adapter_.eventTargetHasClass(e.target,o.cssClasses.CHECKMARK)&&!this.adapter_.hasClass(o.cssClasses.SELECTED)&&this.adapter_.removeClassFromLeadingIcon(o.cssClasses.HIDDEN_LEADING_ICON))}},{key:"handleTrailingIconInteraction",value:function(e){e.stopPropagation(),"click"!==e.type&&"Enter"!==e.key&&13!==e.keyCode||(this.adapter_.notifyTrailingIconInteraction(),this.shouldRemoveOnTrailingIconClick_&&this.beginExit())}}]),t}();t.MDCChipFoundation=l,t.MDCChipInteractionEventType=void 0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(2)),o=(i(n(39)),n(112));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign(t.defaultAdapter,e)))).savedTabIndex_=null,n.interactionHandler_=function(e){return n.handleInteraction(e)},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),c(t,null,[{key:"strings",get:function(){return o.strings}},{key:"defaultAdapter",get:function(){return{getAttr:function(){},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}}}]),c(t,[{key:"init",value:function(){var e=this;this.savedTabIndex_=this.adapter_.getAttr("tabindex"),["click","keydown"].forEach(function(t){e.adapter_.registerInteractionHandler(t,e.interactionHandler_)})}},{key:"destroy",value:function(){var e=this;["click","keydown"].forEach(function(t){e.adapter_.deregisterInteractionHandler(t,e.interactionHandler_)})}},{key:"setDisabled",value:function(e){this.savedTabIndex_&&(e?(this.adapter_.setAttr("tabindex","-1"),this.adapter_.removeAttr("role")):(this.adapter_.setAttr("tabindex",this.savedTabIndex_),this.adapter_.setAttr("role",o.strings.ICON_ROLE)))}},{key:"setAriaLabel",value:function(e){this.adapter_.setAttr("aria-label",e)}},{key:"setContent",value:function(e){this.adapter_.setContent(e)}},{key:"handleInteraction",value:function(e){"click"!==e.type&&"Enter"!==e.key&&13!==e.keyCode||this.adapter_.notifyIconAction()}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(2)),o=(i(n(40)),n(113));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Object.assign(t.defaultAdapter,e)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),c(t,null,[{key:"cssClasses",get:function(){return o.cssClasses}},{key:"strings",get:function(){return o.strings}},{key:"defaultAdapter",get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){},setAttr:function(){},removeAttr:function(){},setContent:function(){}}}}]),c(t,[{key:"setContent",value:function(e){this.adapter_.setContent(e)}},{key:"setPersistent",value:function(e){e?this.adapter_.addClass(o.cssClasses.HELPER_TEXT_PERSISTENT):this.adapter_.removeClass(o.cssClasses.HELPER_TEXT_PERSISTENT)}},{key:"setValidation",value:function(e){e?this.adapter_.addClass(o.cssClasses.HELPER_TEXT_VALIDATION_MSG):this.adapter_.removeClass(o.cssClasses.HELPER_TEXT_VALIDATION_MSG)}},{key:"showToScreenReader",value:function(){this.adapter_.removeAttr(o.strings.ARIA_HIDDEN)}},{key:"setValidity",value:function(e){var t=this.adapter_.hasClass(o.cssClasses.HELPER_TEXT_PERSISTENT),n=this.adapter_.hasClass(o.cssClasses.HELPER_TEXT_VALIDATION_MSG)&&!e;n?this.adapter_.setAttr(o.strings.ROLE,"alert"):this.adapter_.removeAttr(o.strings.ROLE),t||n||this.hide_()}},{key:"hide_",value:function(){this.adapter_.setAttr(o.strings.ARIA_HIDDEN,"true")}}]),t}();t.default=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n(0),c=d(n(1)),l=d(n(6)),f=d(n(43));function d(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var h=function(e){function t(){var e;return o(this,t),(e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="button",e._mdcProps=["dense","raised","unelevated","outlined"],e.themeProps=["primary","secondary"],e}return s(t,c.default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(t,[{key:"componentDidMount",value:function(){(function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attachRipple",this).call(this)}},{key:"materialDom",value:function(e){var t=e.href?"a":"button",n="";return this.themeProps.forEach(function(t){t in e&&!1!==e[t]&&(n+=(0,f.default)(t)+" ")}),(0,u.h)(t,p({ref:this.setControlRef},e,{className:n}),this.props.children)}}]),t}(),_=function(e){function t(){var e;return o(this,t),(e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).componentName="button__icon",e}return s(t,l.default),t}();h.Icon=_;var y=h;t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(15);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"hasClass",value:function(e){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"removeChip",value:function(e){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssClasses=t.strings=void 0;t.strings={ENTRY_ANIMATION_NAME:"mdc-chip-entry",INTERACTION_EVENT:"MDCChip:interaction",TRAILING_ICON_INTERACTION_EVENT:"MDCChip:trailingIconInteraction",REMOVAL_EVENT:"MDCChip:removal",CHECKMARK_SELECTOR:".mdc-chip__checkmark",LEADING_ICON_SELECTOR:".mdc-chip__icon--leading",TRAILING_ICON_SELECTOR:".mdc-chip__icon--trailing"};t.cssClasses={CHECKMARK:"mdc-chip__checkmark",CHIP_EXIT:"mdc-chip--exit",HIDDEN_LEADING_ICON:"mdc-chip__icon--leading-hidden",LEADING_ICON:"mdc-chip__icon--leading",TRAILING_ICON:"mdc-chip__icon--trailing",SELECTED:"mdc-chip--selected"}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
* @license
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"hasClass",value:function(e){}},{key:"addClassToLeadingIcon",value:function(e){}},{key:"removeClassFromLeadingIcon",value:function(e){}},{key:"eventTargetHasClass",value:function(e,t){}},{key:"registerEventHandler",value:function(e,t){}},{key:"deregisterEventHandler",value:function(e,t){}},{key:"registerTrailingIconInteractionHandler",value:function(e,t){}},{key:"deregisterTrailingIconInteractionHandler",value:function(e,t){}},{key:"notifyInteraction",value:function(){}},{key:"notifyTrailingIconInteraction",value:function(){}},{key:"notifyRemoval",value:function(){}},{key:"getComputedStyleValue",value:function(e){}},{key:"setStyleProperty",value:function(e,t){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MDCChipFoundation",{enumerable:!0,get:function(){return i.MDCChipFoundation}}),t.MDCChip=void 0;var r=s(n(3)),o=n(4),i=(s(n(21)),n(15)),a=n(20);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var f=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o)))).leadingIcon_,n.ripple_,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(t,[{key:"initialize",value:function(){var e=this;this.leadingIcon_=this.root_.querySelector(a.strings.LEADING_ICON_SELECTOR);var t=this.root_.querySelector(a.strings.CHECKMARK_SELECTOR);if(t&&!this.leadingIcon_){var n=Object.assign(o.MDCRipple.createAdapter(this),{computeBoundingRect:function(){return{height:e.root_.getBoundingClientRect().height,width:e.root_.getBoundingClientRect().width+t.getBoundingClientRect().height}}});this.ripple_=new o.MDCRipple(this.root_,new o.MDCRippleFoundation(n))}else this.ripple_=new o.MDCRipple(this.root_)}},{key:"destroy",value:function(){this.ripple_.destroy(),function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"isSelected",value:function(){return this.foundation_.isSelected()}},{key:"beginExit",value:function(){this.foundation_.beginExit()}},{key:"getDefaultFoundation",value:function(){var e=this;return new i.MDCChipFoundation(Object.assign({addClass:function(t){return e.root_.classList.add(t)},removeClass:function(t){return e.root_.classList.remove(t)},hasClass:function(t){return e.root_.classList.contains(t)},addClassToLeadingIcon:function(t){e.leadingIcon_&&e.leadingIcon_.classList.add(t)},removeClassFromLeadingIcon:function(t){e.leadingIcon_&&e.leadingIcon_.classList.remove(t)},eventTargetHasClass:function(e,t){return e.classList.contains(t)},registerEventHandler:function(t,n){return e.root_.addEventListener(t,n)},deregisterEventHandler:function(t,n){return e.root_.removeEventListener(t,n)},registerTrailingIconInteractionHandler:function(t,n){var r=e.root_.querySelector(a.strings.TRAILING_ICON_SELECTOR);r&&r.addEventListener(t,n)},deregisterTrailingIconInteractionHandler:function(t,n){var r=e.root_.querySelector(a.strings.TRAILING_ICON_SELECTOR);r&&r.removeEventListener(t,n)},notifyInteraction:function(){return e.emit(a.strings.INTERACTION_EVENT,{chip:e},!0)},notifyTrailingIconInteraction:function(){return e.emit(a.strings.TRAILING_ICON_INTERACTION_EVENT,{chip:e},!0)},notifyRemoval:function(){return e.emit(a.strings.REMOVAL_EVENT,{chip:e,root:e.root_},!0)},getComputedStyleValue:function(t){return window.getComputedStyle(e.root_).getPropertyValue(t)},setStyleProperty:function(t,n){return e.root_.style.setProperty(t,n)}}))}},{key:"foundation",get:function(){return this.foundation_}},{key:"shouldRemoveOnTrailingIconClick",get:function(){return this.foundation_.getShouldRemoveOnTrailingIconClick()},set:function(e){return this.foundation_.setShouldRemoveOnTrailingIconClick(e)}},{key:"ripple",get:function(){return this.ripple_}}],[{key:"attachTo",value:function(e){return new t(e)}}]),t}();t.MDCChip=f},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
* @license
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"hasClass",value:function(e){}},{key:"addClass",value:function(e){}},{key:"removeClass",value:function(e){}},{key:"getAttribute",value:function(e){}},{key:"setAttribute",value:function(e,t){}},{key:"removeAttribute",value:function(e){}},{key:"computeBoundingRect",value:function(){}},{key:"getTabIndex",value:function(){}},{key:"registerInteractionHandler",value:function(e,t){}},{key:"deregisterInteractionHandler",value:function(e,t){}},{key:"registerThumbContainerInteractionHandler",value:function(e,t){}},{key:"deregisterThumbContainerInteractionHandler",value:function(e,t){}},{key:"registerBodyInteractionHandler",value:function(e,t){}},{key:"deregisterBodyInteractionHandler",value:function(e,t){}},{key:"registerResizeHandler",value:function(e){}},{key:"deregisterResizeHandler",value:function(e){}},{key:"notifyInput",value:function(){}},{key:"notifyChange",value:function(){}},{key:"setThumbContainerStyleProperty",value:function(e,t){}},{key:"setTrackStyleProperty",value:function(e,t){}},{key:"setMarkerValue",value:function(e){}},{key:"appendTrackMarkers",value:function(e){}},{key:"removeTrackMarkers",value:function(){}},{key:"setLastTrackMarkersStyleProperty",value:function(e,t){}},{key:"isRTL",value:function(){}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numbers=t.strings=t.cssClasses=void 0;t.cssClasses={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--