UNPKG

51.2 kBJavaScriptView Raw
1!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.slider=e():(t.mdc=t.mdc||{},t.mdc.slider=e())}(this,function(){return i={},r.m=n={0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MDCFoundation=void 0;var i=(Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r);function r(t){void 0===t&&(t={}),this.adapter=t}e.MDCFoundation=i,e.default=i},1:function(t,e,n){"use strict";var r=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=a.next()).done;)s.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCComponent=void 0;var i=n(0),s=(o.attachTo=function(t){return new o(t,new i.MDCFoundation({}))},o.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]},o.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},o.prototype.initialSyncWithDOM=function(){},o.prototype.destroy=function(){this.foundation.destroy()},o.prototype.listen=function(t,e,n){this.root.addEventListener(t,e,n)},o.prototype.unlisten=function(t,e,n){this.root.removeEventListener(t,e,n)},o.prototype.emit=function(t,e,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(t,{bubbles:n,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,n,!1,e),this.root.dispatchEvent(i)},o);function o(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=t,this.initialize.apply(this,a([],r(n))),this.foundation=void 0===e?this.getDefaultFoundation():e,this.foundation.init(),this.initialSyncWithDOM()}e.MDCComponent=s,e.default=s},104:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){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]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSliderFoundation=void 0;var l,s=n(19),c=n(9),o=n(0),u=n(58),h=n(59);(l=l||{}).SLIDER_UPDATE="slider_update";var d,p="undefined"!=typeof window,m=(d=o.MDCFoundation,r(v,d),Object.defineProperty(v,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),v.prototype.init=function(){var t=this;this.isDisabled=this.adapter.hasClass(u.cssClasses.DISABLED),this.isDiscrete=this.adapter.hasClass(u.cssClasses.DISCRETE),this.hasTickMarks=this.adapter.hasClass(u.cssClasses.TICK_MARKS),this.isRange=this.adapter.hasClass(u.cssClasses.RANGE);var e=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_MIN,this.isRange?h.Thumb.START:h.Thumb.END),u.attributes.INPUT_MIN),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_MAX,h.Thumb.END),u.attributes.INPUT_MAX),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_VALUE,h.Thumb.END),u.attributes.INPUT_VALUE),r=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(u.attributes.INPUT_VALUE,h.Thumb.START),u.attributes.INPUT_VALUE):e,a=this.adapter.getInputAttribute(u.attributes.INPUT_STEP,h.Thumb.END),s=a?this.convertAttributeValueToNumber(a,u.attributes.INPUT_STEP):this.step;this.validateProperties({min:e,max:n,value:i,valueStart:r,step:s}),this.min=e,this.max=n,this.value=i,this.valueStart=r,this.step=s,this.numDecimalPlaces=function(t){var e=/(?:\.(\d+))?(?:[eE]([+\-]?\d+))?$/.exec(String(t));if(!e)return 0;var n=e[1]||"",i=e[2]||0;return Math.max(0,("0"===n?0:n.length)-Number(i))}(this.step),this.valueBeforeDownEvent=i,this.valueStartBeforeDownEvent=r,this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){t.handleInputChange(h.Thumb.START)},this.inputEndChangeListener=function(){t.handleInputChange(h.Thumb.END)},this.inputStartFocusListener=function(){t.handleInputFocus(h.Thumb.START)},this.inputEndFocusListener=function(){t.handleInputFocus(h.Thumb.END)},this.inputStartBlurListener=function(){t.handleInputBlur(h.Thumb.START)},this.inputEndBlurListener=function(){t.handleInputBlur(h.Thumb.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},v.prototype.destroy=function(){this.deregisterEventHandlers()},v.prototype.getMin=function(){return this.min},v.prototype.getMax=function(){return this.max},v.prototype.getValue=function(){return this.value},v.prototype.setValue=function(t){if(this.isRange&&t<this.valueStart)throw new Error("end thumb value ("+t+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(t,h.Thumb.END)},v.prototype.getValueStart=function(){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");return this.valueStart},v.prototype.setValueStart=function(t){if(!this.isRange)throw new Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&t>this.value)throw new Error("start thumb value ("+t+") must be <= end thumb value ("+this.value+")");this.updateValue(t,h.Thumb.START)},v.prototype.getStep=function(){return this.step},v.prototype.getDisabled=function(){return this.isDisabled},v.prototype.setDisabled=function(t){(this.isDisabled=t)?(this.adapter.addClass(u.cssClasses.DISABLED),this.isRange&&this.adapter.setInputAttribute(u.attributes.INPUT_DISABLED,"",h.Thumb.START),this.adapter.setInputAttribute(u.attributes.INPUT_DISABLED,"",h.Thumb.END)):(this.adapter.removeClass(u.cssClasses.DISABLED),this.isRange&&this.adapter.removeInputAttribute(u.attributes.INPUT_DISABLED,h.Thumb.START),this.adapter.removeInputAttribute(u.attributes.INPUT_DISABLED,h.Thumb.END))},v.prototype.getIsRange=function(){return this.isRange},v.prototype.layout=function(t){var e=(void 0===t?{}:t).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(h.Thumb.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(h.Thumb.END)),e||this.updateUI()},v.prototype.handleResize=function(){this.layout()},v.prototype.handleDown=function(t){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX;this.downEventClientX=e;var n=this.mapClientXOnSliderScale(e);this.thumb=this.getThumbFromDownEvent(e,n),null!==this.thumb&&(this.handleDragStart(t,n,this.thumb),this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},v.prototype.handleMove=function(t){if(!this.isDisabled){t.preventDefault();var e=null!=t.clientX?t.clientX:t.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(e),null!==this.thumb){var i=this.mapClientXOnSliderScale(e);n||(this.handleDragStart(t,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},v.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var t=this.thumb===h.Thumb.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,e=this.thumb===h.Thumb.START?this.valueStart:this.value;t!==e&&this.adapter.emitChangeEvent(e,this.thumb),this.adapter.emitDragEndEvent(e,this.thumb),this.thumb=null}},v.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.START),this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.END))},v.prototype.handleThumbMouseleave=function(){this.isDiscrete&&this.isRange&&(this.adapter.isInputFocused(h.Thumb.START)||this.adapter.isInputFocused(h.Thumb.END)||(this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.START),this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,h.Thumb.END)))},v.prototype.handleMousedownOrTouchstart=function(t){var e=this,n="mousedown"===t.type?"mousemove":"touchmove";function i(){e.handleUp(),e.adapter.deregisterBodyEventHandler(n,e.moveListener),e.adapter.deregisterEventHandler("mouseup",i),e.adapter.deregisterEventHandler("touchend",i)}this.adapter.registerBodyEventHandler(n,this.moveListener),this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(t)},v.prototype.handlePointerdown=function(t){this.adapter.setPointerCapture(t.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(t)},v.prototype.handleInputChange=function(t){var e=Number(this.adapter.getInputValue(t));t===h.Thumb.START?this.setValueStart(e):this.setValue(e),this.adapter.emitChangeEvent(t===h.Thumb.START?this.valueStart:this.value,t),this.adapter.emitInputEvent(t===h.Thumb.START?this.valueStart:this.value,t)},v.prototype.handleInputFocus=function(t){if(this.adapter.addThumbClass(u.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===h.Thumb.START?h.Thumb.END:h.Thumb.START;this.adapter.addThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,e)}},v.prototype.handleInputBlur=function(t){if(this.adapter.removeThumbClass(u.cssClasses.THUMB_FOCUSED,t),this.isDiscrete&&(this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,t),this.isRange)){var e=t===h.Thumb.START?h.Thumb.END:h.Thumb.START;this.adapter.removeThumbClass(u.cssClasses.THUMB_WITH_INDICATOR,e)}},v.prototype.handleDragStart=function(t,e,n){this.adapter.focusInput(n),t.preventDefault(),this.adapter.emitDragStartEvent(e,n)},v.prototype.getThumbFromDownEvent=function(t,e){if(!this.isRange)return h.Thumb.END;var n=this.adapter.getThumbBoundingClientRect(h.Thumb.START),i=this.adapter.getThumbBoundingClientRect(h.Thumb.END),r=t>=n.left&&t<=n.right,a=t>=i.left&&t<=i.right;return r&&a?null:r?h.Thumb.START:a?h.Thumb.END:e<this.valueStart?h.Thumb.START:e>this.value?h.Thumb.END:e-this.valueStart<=this.value-e?h.Thumb.START:h.Thumb.END},v.prototype.getThumbFromMoveEvent=function(t){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw new Error("`downEventClientX` is null after move event.");return Math.abs(this.downEventClientX-t)<u.numbers.THUMB_UPDATE_MIN_PX?this.thumb:t<this.downEventClientX?this.adapter.isRTL()?h.Thumb.END:h.Thumb.START:this.adapter.isRTL()?h.Thumb.START:h.Thumb.END},v.prototype.updateUI=function(t){this.updateThumbAndInputAttributes(t),this.updateThumbAndTrackUI(t),this.updateValueIndicatorUI(t),this.updateTickMarksUI()},v.prototype.updateThumbAndInputAttributes=function(t){if(t){var e=this.isRange&&t===h.Thumb.START?this.valueStart:this.value,n=String(e);this.adapter.setInputAttribute(u.attributes.INPUT_VALUE,n,t),this.isRange&&t===h.Thumb.START?this.adapter.setInputAttribute(u.attributes.INPUT_MIN,n,h.Thumb.END):this.isRange&&t===h.Thumb.END&&this.adapter.setInputAttribute(u.attributes.INPUT_MAX,n,h.Thumb.START),this.adapter.getInputValue(t)!==n&&this.adapter.setInputValue(n,t);var i=this.adapter.getValueToAriaValueTextFn();i&&this.adapter.setInputAttribute(u.attributes.ARIA_VALUETEXT,i(e),t)}},v.prototype.updateValueIndicatorUI=function(t){if(this.isDiscrete){var e=this.isRange&&t===h.Thumb.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(e,t===h.Thumb.START?h.Thumb.START:h.Thumb.END),!t&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,h.Thumb.START)}},v.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var t=(this.valueStart-this.min)/this.step,e=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:t}).fill(h.TickMark.INACTIVE),r=Array.from({length:e}).fill(h.TickMark.ACTIVE),a=Array.from({length:n}).fill(h.TickMark.INACTIVE);this.adapter.updateTickMarks(i.concat(r).concat(a))}},v.prototype.mapClientXOnSliderScale=function(t){var e=(t-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(e=1-e);var n=this.min+e*(this.max-this.min);return n===this.max||n===this.min?n:Number(this.quantize(n).toFixed(this.numDecimalPlaces))},v.prototype.quantize=function(t){var e=Math.round((t-this.min)/this.step);return this.min+e*this.step},v.prototype.updateValue=function(t,e,n){var i=(void 0===n?{}:n).emitInputEvent;if(t=this.clampValue(t,e),this.isRange&&e===h.Thumb.START){if(this.valueStart===t)return;this.valueStart=t}else{if(this.value===t)return;this.value=t}this.updateUI(e),i&&this.adapter.emitInputEvent(e===h.Thumb.START?this.valueStart:this.value,e)},v.prototype.clampValue=function(t,e){return t=Math.min(Math.max(t,this.min),this.max),this.isRange&&e===h.Thumb.START&&t>this.value?this.value:this.isRange&&e===h.Thumb.END&&t<this.valueStart?this.valueStart:t},v.prototype.updateThumbAndTrackUI=function(n){var i=this,t=this.max,e=this.min,r=(this.value-this.valueStart)/(t-e),a=r*this.rect.width,s=this.adapter.isRTL(),o=p?c.getCorrectPropertyName(window,"transform"):"transform";if(this.isRange){var u=this.adapter.isRTL()?(t-this.value)/(t-e)*this.rect.width:(this.valueStart-e)/(t-e)*this.rect.width,d=u+a;this.animFrame.request(l.SLIDER_UPDATE,function(){!s&&n===h.Thumb.START||s&&n!==h.Thumb.START?(i.adapter.setTrackActiveStyleProperty("transform-origin","right"),i.adapter.setTrackActiveStyleProperty("left","unset"),i.adapter.setTrackActiveStyleProperty("right",i.rect.width-d+"px")):(i.adapter.setTrackActiveStyleProperty("transform-origin","left"),i.adapter.setTrackActiveStyleProperty("right","unset"),i.adapter.setTrackActiveStyleProperty("left",u+"px")),i.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")");var t=s?d:u,e=i.adapter.isRTL()?u:d;n!==h.Thumb.START&&n&&i.initialStylesRemoved||i.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",h.Thumb.START),n!==h.Thumb.END&&n&&i.initialStylesRemoved||i.adapter.setThumbStyleProperty(o,"translateX("+e+"px)",h.Thumb.END),i.removeInitialStyles(s),i.updateOverlappingThumbsUI(t,e,n)})}else this.animFrame.request(l.SLIDER_UPDATE,function(){var t=s?i.rect.width-a:a;i.adapter.setThumbStyleProperty(o,"translateX("+t+"px)",h.Thumb.END),i.adapter.setTrackActiveStyleProperty(o,"scaleX("+r+")"),i.removeInitialStyles(s)})},v.prototype.removeInitialStyles=function(t){if(!this.initialStylesRemoved){var e=t?"right":"left";this.adapter.removeThumbStyleProperty(e,h.Thumb.END),this.isRange&&this.adapter.removeThumbStyleProperty(e,h.Thumb.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},v.prototype.resetTrackAndThumbAnimation=function(){var t=this;if(this.isDiscrete){var e=p?c.getCorrectPropertyName(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(e,n,h.Thumb.END),this.isRange&&this.adapter.setThumbStyleProperty(e,n,h.Thumb.START),this.adapter.setTrackActiveStyleProperty(e,n),requestAnimationFrame(function(){t.adapter.removeThumbStyleProperty(e,h.Thumb.END),t.adapter.removeTrackActiveStyleProperty(e),t.isRange&&t.adapter.removeThumbStyleProperty(e,h.Thumb.START)})}},v.prototype.updateOverlappingThumbsUI=function(t,e,n){var i=!1;if(this.adapter.isRTL())i=t-this.startThumbKnobWidth/2<=e+this.endThumbKnobWidth/2;else{var r=t+this.startThumbKnobWidth/2;i=e-this.endThumbKnobWidth/2<=r}i?(this.adapter.addThumbClass(u.cssClasses.THUMB_TOP,n||h.Thumb.END),this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,n===h.Thumb.START?h.Thumb.END:h.Thumb.START)):(this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,h.Thumb.START),this.adapter.removeThumbClass(u.cssClasses.THUMB_TOP,h.Thumb.END))},v.prototype.convertAttributeValueToNumber=function(t,e){if(null===t)throw new Error("MDCSliderFoundation: `"+e+"` must be non-null.");var n=Number(t);if(isNaN(n))throw new Error("MDCSliderFoundation: `"+e+"` value is `"+t+"`, but must be a number.");return n},v.prototype.validateProperties=function(t){var e=t.min,n=t.max,i=t.value,r=t.valueStart,a=t.step;if(n<=e)throw new Error("MDCSliderFoundation: min must be strictly less than max. Current: [min: "+e+", max: "+n+"]");if(a<=0)throw new Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);if(this.isRange){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+"]");if(i<r)throw new Error("MDCSliderFoundation: start value must be <= end value. Current values: [start value: "+r+", end value: "+i+"]");var s=(i-e)/a;if((r-e)/a%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+"]")}else{if(i<e||n<i)throw new Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+i);if((s=(i-e)/a)%1!=0)throw new Error("MDCSliderFoundation: Slider value must be valid based on the step value. Current value: "+i)}},v.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),v.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(h.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(h.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(h.Thumb.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(h.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(h.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(h.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(h.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(h.Thumb.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(h.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(h.Thumb.END,"blur",this.inputEndBlurListener)},v.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),v.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(h.Thumb.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(h.Thumb.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(h.Thumb.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(h.Thumb.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(h.Thumb.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(h.Thumb.END,"blur",this.inputEndBlurListener)},v.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},v.SUPPORTS_POINTER_EVENTS=p&&Boolean(window.PointerEvent)&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document),v);function v(t){var e=d.call(this,a(a({},v.defaultAdapter),t))||this;return e.initialStylesRemoved=!1,e.isDisabled=!1,e.isDiscrete=!1,e.step=u.numbers.STEP_SIZE,e.hasTickMarks=!1,e.isRange=!1,e.thumb=null,e.downEventClientX=null,e.startThumbKnobWidth=0,e.endThumbKnobWidth=0,e.animFrame=new s.AnimationFrame,e}e.MDCSliderFoundation=m},19:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationFrame=void 0;var i=(r.prototype.request=function(e,n){var i=this;this.cancel(e);var t=requestAnimationFrame(function(t){i.rafIDs.delete(e),n(t)});this.rafIDs.set(e,t)},r.prototype.cancel=function(t){var e=this.rafIDs.get(t);e&&(cancelAnimationFrame(e),this.rafIDs.delete(t))},r.prototype.cancelAll=function(){var n=this;this.rafIDs.forEach(function(t,e){n.cancel(e)})},r.prototype.getQueue=function(){var n=[];return this.rafIDs.forEach(function(t,e){n.push(e)}),n},r);function r(){this.rafIDs=new Map}e.AnimationFrame=i},2:function(t,e,n){"use strict";function i(t,e){return(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.estimateScrollWidth=e.matches=e.closest=void 0,e.closest=function(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(i(n,e))return n;n=n.parentElement}return null},e.matches=i,e.estimateScrollWidth=function(t){var e=t;if(null!==e.offsetParent)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i}},206:function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(207),e),r(n(208),e),r(n(58),e),r(n(104),e),r(n(59),e)},207:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},208:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=this&&this.__assign||function(){return(u=Object.assign||function(t){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]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCSlider=void 0;var a,s=n(1),d=n(5),l=n(2),c=n(6),h=n(4),p=n(58),o=n(104),m=n(59),v=(a=s.MDCComponent,r(f,a),f.attachTo=function(t,e){return void 0===e&&(e={}),new f(t,void 0,e)},f.prototype.getDefaultFoundation=function(){var i=this,t={hasClass:function(t){return i.root.classList.contains(t)},addClass:function(t){i.root.classList.add(t)},removeClass:function(t){i.root.classList.remove(t)},addThumbClass:function(t,e){i.getThumbEl(e).classList.add(t)},removeThumbClass:function(t,e){i.getThumbEl(e).classList.remove(t)},getAttribute:function(t){return i.root.getAttribute(t)},getInputValue:function(t){return i.getInput(t).value},setInputValue:function(t,e){i.getInput(e).value=t},getInputAttribute:function(t,e){return i.getInput(e).getAttribute(t)},setInputAttribute:function(t,e,n){i.getInput(n).setAttribute(t,e)},removeInputAttribute:function(t,e){i.getInput(e).removeAttribute(t)},focusInput:function(t){i.getInput(t).focus()},isInputFocused:function(t){return i.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return i.getThumbEl(t).querySelector("."+p.cssClasses.THUMB_KNOB).getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return i.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return i.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(i.root).direction},setThumbStyleProperty:function(t,e,n){i.getThumbEl(n).style.setProperty(t,e)},removeThumbStyleProperty:function(t,e){i.getThumbEl(e).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,e){i.trackActive.style.setProperty(t,e)},removeTrackActiveStyleProperty:function(t){i.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,e){i.getThumbEl(e).querySelector("."+p.cssClasses.VALUE_INDICATOR_TEXT).textContent=String(t)},getValueToAriaValueTextFn:function(){return i.valueToAriaValueTextFn},updateTickMarks:function(t){var e=i.root.querySelector("."+p.cssClasses.TICK_MARKS_CONTAINER);e||((e=document.createElement("div")).classList.add(p.cssClasses.TICK_MARKS_CONTAINER),i.root.querySelector("."+p.cssClasses.TRACK).appendChild(e)),t.length!==e.children.length?(e.innerHTML="",i.addTickMarks(e,t)):i.updateTickMarks(e,t)},setPointerCapture:function(t){i.root.setPointerCapture(t)},emitChangeEvent:function(t,e){i.emit(p.events.CHANGE,{value:t,thumb:e})},emitInputEvent:function(t,e){i.emit(p.events.INPUT,{value:t,thumb:e})},emitDragStartEvent:function(t,e){i.getRipple(e).activate()},emitDragEndEvent:function(t,e){i.getRipple(e).deactivate()},registerEventHandler:function(t,e){i.listen(t,e)},deregisterEventHandler:function(t,e){i.unlisten(t,e)},registerThumbEventHandler:function(t,e,n){i.getThumbEl(t).addEventListener(e,n)},deregisterThumbEventHandler:function(t,e,n){i.getThumbEl(t).removeEventListener(e,n)},registerInputEventHandler:function(t,e,n){i.getInput(t).addEventListener(e,n)},deregisterInputEventHandler:function(t,e,n){i.getInput(t).removeEventListener(e,n)},registerBodyEventHandler:function(t,e){document.body.addEventListener(t,e)},deregisterBodyEventHandler:function(t,e){document.body.removeEventListener(t,e)},registerWindowEventHandler:function(t,e){window.addEventListener(t,e)},deregisterWindowEventHandler:function(t,e){window.removeEventListener(t,e)}};return new o.MDCSliderFoundation(t)},f.prototype.initialize=function(t){var e=(void 0===t?{}:t).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.INPUT)),this.thumbs=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),this.trackActive=this.root.querySelector("."+p.cssClasses.TRACK_ACTIVE),this.ripples=this.createRipples(),e&&(this.skipInitialUIUpdate=!0)},f.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},f.prototype.layout=function(){this.foundation.layout()},f.prototype.getValueStart=function(){return this.foundation.getValueStart()},f.prototype.setValueStart=function(t){this.foundation.setValueStart(t)},f.prototype.getValue=function(){return this.foundation.getValue()},f.prototype.setValue=function(t){this.foundation.setValue(t)},f.prototype.getDisabled=function(){return this.foundation.getDisabled()},f.prototype.setDisabled=function(t){this.foundation.setDisabled(t)},f.prototype.setValueToAriaValueTextFn=function(t){this.valueToAriaValueTextFn=t},f.prototype.getThumbEl=function(t){return t===m.Thumb.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},f.prototype.getInput=function(t){return t===m.Thumb.END?this.inputs[this.inputs.length-1]:this.inputs[0]},f.prototype.getRipple=function(t){return t===m.Thumb.END?this.ripples[this.ripples.length-1]:this.ripples[0]},f.prototype.addTickMarks=function(t,e){for(var n=document.createDocumentFragment(),i=0;i<e.length;i++){var r=document.createElement("div"),a=e[i]===m.TickMark.ACTIVE?p.cssClasses.TICK_MARK_ACTIVE:p.cssClasses.TICK_MARK_INACTIVE;r.classList.add(a),n.appendChild(r)}t.appendChild(n)},f.prototype.updateTickMarks=function(t,e){for(var n=Array.from(t.children),i=0;i<n.length;i++)e[i]===m.TickMark.ACTIVE?(n[i].classList.add(p.cssClasses.TICK_MARK_ACTIVE),n[i].classList.remove(p.cssClasses.TICK_MARK_INACTIVE)):(n[i].classList.add(p.cssClasses.TICK_MARK_INACTIVE),n[i].classList.remove(p.cssClasses.TICK_MARK_ACTIVE))},f.prototype.createRipples=function(){for(var a=[],s=[].slice.call(this.root.querySelectorAll("."+p.cssClasses.THUMB)),t=function(t){var n=s[t],i=o.inputs[t],e=u(u({},c.MDCRipple.createAdapter(o)),{addClass:function(t){n.classList.add(t)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,e){i.removeEventListener(t,e)},isSurfaceActive:function(){return l.matches(i,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,e){i.addEventListener(t,e,d.applyPassive())},removeClass:function(t){n.classList.remove(t)},updateCssVariable:function(t,e){n.style.setProperty(t,e)}}),r=new c.MDCRipple(n,new h.MDCRippleFoundation(e));r.unbounded=!0,a.push(r)},o=this,e=0;e<s.length;e++)t(e);return a},f);function f(){var t=null!==a&&a.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}e.MDCSlider=v},3:function(t,e,n){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedEventCoords=e.supportsCssVariables=void 0,e.supportsCssVariables=function(t,e){void 0===e&&(e=!1);var n,i=t.CSS;if("boolean"==typeof s&&!e)return s;if(!(i&&"function"==typeof i.supports))return!1;var r=i.supports("--css-vars","yes"),a=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||a,e||(s=n),n},e.getNormalizedEventCoords=function(t,e,n){if(!t)return{x:0,y:0};var i,r,a=e.x,s=e.y,o=a+n.left,u=s+n.top;if("touchstart"===t.type){var d=t;i=d.changedTouches[0].pageX-o,r=d.changedTouches[0].pageY-u}else{var l=t;i=l.pageX-o,r=l.pageY-u}return{x:i,y:r}}},4:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(t){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]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRippleFoundation=void 0;var s,o=n(0),u=n(7),d=n(3),l=["touchstart","pointerdown","mousedown","keydown"],c=["touchend","pointerup","mouseup","contextmenu"],h=[],p=(s=o.MDCFoundation,r(m,s),Object.defineProperty(m,"cssClasses",{get:function(){return u.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(m,"strings",{get:function(){return u.strings},enumerable:!1,configurable:!0}),Object.defineProperty(m,"numbers",{get:function(){return u.numbers},enumerable:!1,configurable:!0}),Object.defineProperty(m,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),m.prototype.init=function(){var t=this,e=this.supportsPressRipple_();if(this.registerRootHandlers_(e),e){var n=m.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(i),t.adapter.isUnbounded()&&(t.adapter.addClass(r),t.layoutInternal_())})}},m.prototype.destroy=function(){var t=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(m.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(m.cssClasses.FG_DEACTIVATION));var e=m.cssClasses,n=e.ROOT,i=e.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(n),t.adapter.removeClass(i),t.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},m.prototype.activate=function(t){this.activate_(t)},m.prototype.deactivate=function(){this.deactivate_()},m.prototype.layout=function(){var t=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){t.layoutInternal_(),t.layoutFrame_=0})},m.prototype.setUnbounded=function(t){var e=m.cssClasses.UNBOUNDED;t?this.adapter.addClass(e):this.adapter.removeClass(e)},m.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(m.cssClasses.BG_FOCUSED)})},m.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(m.cssClasses.BG_FOCUSED)})},m.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},m.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},m.prototype.registerRootHandlers_=function(t){var e=this;t&&(l.forEach(function(t){e.adapter.registerInteractionHandler(t,e.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},m.prototype.registerDeactivationHandlers_=function(t){var e=this;"keydown"===t.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):c.forEach(function(t){e.adapter.registerDocumentInteractionHandler(t,e.deactivateHandler_)})},m.prototype.deregisterRootHandlers_=function(){var e=this;l.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},m.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),c.forEach(function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)})},m.prototype.removeCssVars_=function(){var e=this,n=m.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},m.prototype.activate_=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;i&&void 0!==t&&i.type!==t.type||(n.isActivated=!0,n.isProgrammatic=void 0===t,n.activationEvent=t,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type),void 0!==t&&0<h.length&&h.some(function(t){return e.adapter.containsEventTarget(t)})?this.resetActivationState_():(void 0!==t&&(h.push(t.target),this.registerDeactivationHandlers_(t)),n.wasElementMadeActive=this.checkElementMadeActive_(t),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){h=[],n.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(n.wasElementMadeActive=e.checkElementMadeActive_(t),n.wasElementMadeActive&&e.animateActivation_()),n.wasElementMadeActive||(e.activationState_=e.defaultActivationState_())})))}}},m.prototype.checkElementMadeActive_=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},m.prototype.animateActivation_=function(){var t=this,e=m.strings,n=e.VAR_FG_TRANSLATE_START,i=e.VAR_FG_TRANSLATE_END,r=m.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,o=m.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var u="",d="";if(!this.adapter.isUnbounded()){var l=this.getFgTranslationCoordinates_(),c=l.startPoint,h=l.endPoint;u=c.x+"px, "+c.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(n,u),this.adapter.updateCssVariable(i,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout(function(){return t.activationTimerCallback_()},o)},m.prototype.getFgTranslationCoordinates_=function(){var t,e=this.activationState_,n=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?d.getNormalizedEventCoords(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:t.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},m.prototype.runDeactivationUXLogicIfReady_=function(){var t=this,e=m.cssClasses.FG_DEACTIVATION,n=this.activationState_,i=n.hasDeactivationUXRun,r=n.isActivated;!i&&r||!this.activationAnimationHasEnded_||(this.rmBoundedActivationClasses_(),this.adapter.addClass(e),this.fgDeactivationRemovalTimer_=setTimeout(function(){t.adapter.removeClass(e)},u.numbers.FG_DEACTIVATION_MS))},m.prototype.rmBoundedActivationClasses_=function(){var t=m.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},m.prototype.resetActivationState_=function(){var t=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return t.previousActivationEvent_=void 0},m.numbers.TAP_DELAY_MS)},m.prototype.deactivate_=function(){var t=this,e=this.activationState_;if(e.isActivated){var n=a({},e);e.isProgrammatic?(requestAnimationFrame(function(){return t.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){t.activationState_.hasDeactivationUXRun=!0,t.animateDeactivation_(n),t.resetActivationState_()}))}},m.prototype.animateDeactivation_=function(t){var e=t.wasActivatedByPointer,n=t.wasElementMadeActive;(e||n)&&this.runDeactivationUXLogicIfReady_()},m.prototype.layoutInternal_=function(){var t=this;this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(t.frame_.width,2)+Math.pow(t.frame_.height,2))+m.numbers.PADDING;var n=Math.floor(e*m.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},m.prototype.updateLayoutCssVars_=function(){var t=m.strings,e=t.VAR_FG_SIZE,n=t.VAR_LEFT,i=t.VAR_TOP,r=t.VAR_FG_SCALE;this.adapter.updateCssVariable(e,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(n,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords_.top+"px"))},m);function m(t){var e=s.call(this,a(a({},m.defaultAdapter),t))||this;return e.activationAnimationHasEnded_=!1,e.activationTimer_=0,e.fgDeactivationRemovalTimer_=0,e.fgScale_="0",e.frame_={width:0,height:0},e.initialSize_=0,e.layoutFrame_=0,e.maxRadius_=0,e.unboundedCoords_={left:0,top:0},e.activationState_=e.defaultActivationState_(),e.activationTimerCallback_=function(){e.activationAnimationHasEnded_=!0,e.runDeactivationUXLogicIfReady_()},e.activateHandler_=function(t){return e.activate_(t)},e.deactivateHandler_=function(){return e.deactivate_()},e.focusHandler_=function(){return e.handleFocus()},e.blurHandler_=function(){return e.handleBlur()},e.resizeHandler_=function(){return e.layout()},e}e.MDCRippleFoundation=p,e.default=p},5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyPassive=void 0,e.applyPassive=function(t){return void 0===t&&(t=window),!!function(t){void 0===t&&(t=window);var e=!1;try{var n={get passive(){return!(e=!0)}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch(t){e=!1}return e}(t)&&{passive:!0}}},58:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.events=e.attributes=e.numbers=e.cssClasses=void 0,e.cssClasses={DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",INPUT:"mdc-slider__input",RANGE:"mdc-slider--range",THUMB:"mdc-slider__thumb",THUMB_FOCUSED:"mdc-slider__thumb--focused",THUMB_KNOB:"mdc-slider__thumb-knob",THUMB_TOP:"mdc-slider__thumb--top",THUMB_WITH_INDICATOR:"mdc-slider__thumb--with-indicator",TICK_MARKS:"mdc-slider--tick-marks",TICK_MARKS_CONTAINER:"mdc-slider__tick-marks",TICK_MARK_ACTIVE:"mdc-slider__tick-mark--active",TICK_MARK_INACTIVE:"mdc-slider__tick-mark--inactive",TRACK:"mdc-slider__track",TRACK_ACTIVE:"mdc-slider__track--active_fill",VALUE_INDICATOR_TEXT:"mdc-slider__value-indicator-text"},e.numbers={STEP_SIZE:1,THUMB_UPDATE_MIN_PX:5},e.attributes={ARIA_VALUETEXT:"aria-valuetext",INPUT_DISABLED:"disabled",INPUT_MIN:"min",INPUT_MAX:"max",INPUT_VALUE:"value",INPUT_STEP:"step"},e.events={CHANGE:"MDCSlider:change",INPUT:"MDCSlider:input"}},59:function(t,e,n){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),e.Thumb=e.TickMark=void 0,(i=e.TickMark||(e.TickMark={}))[i.ACTIVE=0]="ACTIVE",i[i.INACTIVE=1]="INACTIVE",(r=e.Thumb||(e.Thumb={}))[r.START=1]="START",r[r.END=2]="END"},6:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&a(e,t,n);return s(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.MDCRipple=void 0;var u,d=n(1),l=n(5),c=n(2),h=n(4),p=o(n(3)),m=(u=d.MDCComponent,r(v,u),v.attachTo=function(t,e){void 0===e&&(e={isUnbounded:void 0});var n=new v(t);return void 0!==e.isUnbounded&&(n.unbounded=e.isUnbounded),n},v.createAdapter=function(n){return{addClass:function(t){return n.root.classList.add(t)},browserSupportsCssVars:function(){return p.supportsCssVariables(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(t){return n.root.contains(t)},deregisterDocumentInteractionHandler:function(t,e){return document.documentElement.removeEventListener(t,e,l.applyPassive())},deregisterInteractionHandler:function(t,e){return n.root.removeEventListener(t,e,l.applyPassive())},deregisterResizeHandler:function(t){return window.removeEventListener("resize",t)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return c.matches(n.root,":active")},isSurfaceDisabled:function(){return Boolean(n.disabled)},isUnbounded:function(){return Boolean(n.unbounded)},registerDocumentInteractionHandler:function(t,e){return document.documentElement.addEventListener(t,e,l.applyPassive())},registerInteractionHandler:function(t,e){return n.root.addEventListener(t,e,l.applyPassive())},registerResizeHandler:function(t){return window.addEventListener("resize",t)},removeClass:function(t){return n.root.classList.remove(t)},updateCssVariable:function(t,e){return n.root.style.setProperty(t,e)}}},Object.defineProperty(v.prototype,"unbounded",{get:function(){return Boolean(this.unbounded_)},set:function(t){this.unbounded_=Boolean(t),this.setUnbounded_()},enumerable:!1,configurable:!0}),v.prototype.activate=function(){this.foundation.activate()},v.prototype.deactivate=function(){this.foundation.deactivate()},v.prototype.layout=function(){this.foundation.layout()},v.prototype.getDefaultFoundation=function(){return new h.MDCRippleFoundation(v.createAdapter(this))},v.prototype.initialSyncWithDOM=function(){var t=this.root;this.unbounded="mdcRippleIsUnbounded"in t.dataset},v.prototype.setUnbounded_=function(){this.foundation.setUnbounded(Boolean(this.unbounded_))},v);function v(){var t=null!==u&&u.apply(this,arguments)||this;return t.disabled=!1,t}e.MDCRipple=m},7:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numbers=e.strings=e.cssClasses=void 0,e.cssClasses={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},e.strings={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},e.numbers={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCorrectEventName=e.getCorrectPropertyName=void 0;var s={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},o={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function u(t){return Boolean(t.document)&&"function"==typeof t.document.createElement}e.getCorrectPropertyName=function(t,e){if(u(t)&&e in s){var n=t.document.createElement("div"),i=s[e],r=i.standard,a=i.prefixed;return r in n.style?r:a}return e},e.getCorrectEventName=function(t,e){if(u(t)&&e in o){var n=t.document.createElement("div"),i=o[e],r=i.standard,a=i.prefixed;return i.cssProperty in n.style?r:a}return e}}},r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=206);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i});
\No newline at end of file