!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js"],t);else{var i="object"==typeof exports?t(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js")):t(e.lit,e["lit/decorators.js"],e["lit/directives/class-map.js"],e["lit/directives/if-defined.js"]);for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}}(self,(e,t,i,r)=>(()=>{"use strict";var o,l={6328(e,t,i){i.r(t),i.d(t,{ToggleSwitch:()=>g,alignLabel:()=>h}),i(2369);var r=i(7704),o=i(9609),l=i(4084),s=i(7161),a=i(429),d=i(5125),c=i(291),p=i(8687),n=function(e,t,i,r){var o,l=arguments.length,s=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(l<3?o(s):l>3?o(t,i,s):o(t,i))||s);return l>3&&s&&Object.defineProperty(t,i,s),s};const h=["left","right"],f="md-toggle-switch__accessible-description";var g;!function(e){let t=class extends((0,r.yC)(s.LitElement)){constructor(){super(...arguments),this.htmlId="",this.label="toggle",this.description=void 0,this.checked=!1,this.disabled=!1,this.small=!1,this.smaller=!1,this.alignLabel="right",this.autofocus=!1}handleClick(){this.disabled||(this.checked=!this.checked)}get toggleSwitchClassMap(){return{"md-toggle-switch--small":this.small,"md-toggle-switch--smaller":this.smaller}}switchTemplate(){return"left"===this.alignLabel?s.html`
          <slot></slot>
          <span
            class="md-toggle-switch__label__container md-toggle-switch__label__container__left"
            part="toggle-label"
          ></span>
        `:s.html`
          <span class="md-toggle-switch__label__container" part="toggle-label"></span>
          <slot></slot>
        `}render(){return s.html`
        <div
          class="md-input-container md-toggle-switch ${(0,d.classMap)(this.toggleSwitchClassMap)}"
          @click=${this.handleClick}
        >
          <input
            type="checkbox"
            role="switch"
            class="md-toggle-switch__input"
            aria-label="${this.label}"
            .id=${this.htmlId}
            ?checked=${this.checked}
            ?disabled=${this.disabled}
            ?autofocus=${this.autofocus}
            tabindex=${this.disabled?-1:0}
            aria-describedby=${(0,c.ifDefined)(this.description?f:void 0)}
          />
          <md-label .htmlFor=${this.htmlId} class="md-toggle-switch__label"> ${this.switchTemplate()} </md-label>
          ${this.description&&s.html`
            <div id=${f} class="md-toggle-switch__accessible-description">
              ${this.description}
            </div>
          `}
        </div>
      `}static get styles(){return[l.A,p.A]}};n([(0,a.property)({type:String})],t.prototype,"htmlId",void 0),n([(0,a.property)({type:String})],t.prototype,"label",void 0),n([(0,a.property)({type:String})],t.prototype,"description",void 0),n([(0,a.property)({type:Boolean})],t.prototype,"checked",void 0),n([(0,a.property)({type:Boolean})],t.prototype,"disabled",void 0),n([(0,a.property)({type:Boolean})],t.prototype,"small",void 0),n([(0,a.property)({type:Boolean})],t.prototype,"smaller",void 0),n([(0,a.property)({type:String})],t.prototype,"alignLabel",void 0),n([(0,a.property)({type:Boolean,reflect:!0})],t.prototype,"autofocus",void 0),t=n([(0,o.w)("md-toggle-switch")],t),e.ELEMENT=t}(g||(g={}))},7161(t){t.exports=e},429(e){e.exports=t},5125(e){e.exports=i},291(e){e.exports=r}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return l[e](i,i.exports,a),i.exports}a.m=l,o=[],a.O=(e,t,i,r)=>{if(!t){var l=1/0;for(p=0;p<o.length;p++){for(var[t,i,r]=o[p],s=!0,d=0;d<t.length;d++)(!1&r||l>=r)&&Object.keys(a.O).every(e=>a.O[e](t[d]))?t.splice(d--,1):(s=!1,r<l&&(l=r));if(s){o.splice(p--,1);var c=i();void 0!==c&&(e=c)}}return e}r=r||0;for(var p=o.length;p>0&&o[p-1][2]>r;p--)o[p]=o[p-1];o[p]=[t,i,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={3539:0};a.O.j=t=>0===e[t];var t=(t,i)=>{var r,o,[l,s,d]=i,c=0;if(l.some(t=>0!==e[t])){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(d)var p=d(a)}for(t&&t(i);c<l.length;c++)o=l[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(p)},i=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var d=a.O(void 0,[9609,4084,2364,9938,4781,5201,5584,8227,7704,3970,2369,5757,8687],()=>a(6328));return a.O(d)})());