@fluid-topics/ft-chip 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/ft-chip.js CHANGED
@@ -137,6 +137,7 @@ let FtChip = class FtChip extends FtLitElement {
137
137
  }
138
138
 
139
139
  .ft-chip--label {
140
+ vertical-align: bottom;
140
141
  display: block;
141
142
  margin: 0 var(--ft-chip-internal-horizontal-padding);
142
143
  ${setVariable(FtTypographyBody2CssVariables.fontSize, "var(--ft-chip-internal-font-size)")};
@@ -13,7 +13,7 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},p(t,e)};var n=function(){return n=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},n.apply(this,arguments)};function c(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(a=t[n])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
16
+ var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(t,e)};var p=function(){return p=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},p.apply(this,arguments)};function c(t,e,i,r){for(var a,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n}function s(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
17
17
  /**
18
18
  * @license
19
19
  * Copyright 2018 Google Inc.
@@ -114,7 +114,7 @@ class f extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus()
114
114
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
115
115
  * THE SOFTWARE.
116
116
  */
117
- var g=["touchstart","pointerdown","mousedown","keydown"],v=["touchend","pointerup","mouseup","contextmenu"],b=[],$=function(t){function e(i){var r=t.call(this,n(n({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(e,"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}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,a=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(a),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=s(g),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=s(v),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=s(g),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(v),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&b.length>0&&b.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(b.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){b=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,o=e.cssClasses,p=o.FG_DEACTIVATION,n=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var s="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,h=d.endPoint;s=f.x+"px, "+f.y+"px",l=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,s),this.adapter.updateCssVariable(a,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(p),this.adapter.computeBoundingRect(),this.adapter.addClass(n),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,a,o=e.x,p=e.y,n=o+i.left,c=p+i.top;if("touchstart"===t.type){var s=t;r=s.changedTouches[0].pageX-n,a=s.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-n,a=l.pageY-c}return{x:r,y:a}}(i,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}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,a=r.hasDeactivationUXRun,o=r.isActivated;(a||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),y.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=n({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},e}(h),x=$;
117
+ var g=["touchstart","pointerdown","mousedown","keydown"],v=["touchend","pointerup","mouseup","contextmenu"],b=[],$=function(t){function e(i){var r=t.call(this,p(p({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return y},enumerable:!1,configurable:!0}),Object.defineProperty(e,"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}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,a=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(a),t.adapter.isUnbounded()&&(t.adapter.addClass(o),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,a=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(a),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=s(g),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=s(v),a=r.next();!a.done;a=r.next()){var o=a.value;this.adapter.registerDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=s(g),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=s(v),r=i.next();!r.done;r=i.next()){var a=r.value;this.adapter.deregisterDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&b.length>0&&b.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(b.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){b=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,a=i.VAR_FG_TRANSLATE_END,o=e.cssClasses,n=o.FG_DEACTIVATION,p=o.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var s="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),f=d.startPoint,h=d.endPoint;s=f.x+"px, "+f.y+"px",l=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,s),this.adapter.updateCssVariable(a,l),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(n),this.adapter.computeBoundingRect(),this.adapter.addClass(p),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,a,o=e.x,n=e.y,p=o+i.left,c=n+i.top;if("touchstart"===t.type){var s=t;r=s.changedTouches[0].pageX-p,a=s.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-p,a=l.pageY-c}return{x:r,y:a}}(i,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}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,a=r.hasDeactivationUXRun,o=r.isActivated;(a||!o)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),y.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=p({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,a=t.VAR_TOP,o=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(o,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(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(a,this.unboundedCoords.top+"px"))},e}(h),x=$;
118
118
  /**
119
119
  * @license
120
120
  * Copyright 2018 Google LLC
@@ -139,7 +139,7 @@ const k=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;-
139
139
  * Copyright 2020 Google LLC
140
140
  * SPDX-License-Identifier: Apache-2.0
141
141
  */
142
- class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var S=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(a=t[n])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};const O={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let T=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
142
+ class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var S=function(t,e,i,r){for(var a,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const O={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let T=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
143
143
  :host {
144
144
  display: contents;
145
145
 
@@ -172,13 +172,13 @@ class A{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},
172
172
  * Copyright 2017 Google LLC
173
173
  * SPDX-License-Identifier: BSD-3-Clause
174
174
  */
175
- var _;T.elementDefinitions={"mwc-ripple":z},S([i.property({type:Boolean})],T.prototype,"primary",void 0),S([i.property({type:Boolean})],T.prototype,"secondary",void 0),S([i.property({type:Boolean})],T.prototype,"unbounded",void 0),S([i.property({type:Boolean})],T.prototype,"activated",void 0),S([i.property({type:Boolean})],T.prototype,"selected",void 0),S([i.property({type:Boolean})],T.prototype,"disabled",void 0),S([i.query("mwc-ripple")],T.prototype,"mwcRipple",void 0),T=S([a.customElement("ft-ripple")],T);const I=globalThis.trustedTypes,C=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,j="?"+E,D=`<${j}>`,F=document,B=(t="")=>F.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,H=/>/g,U=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,G=/'/g,V=/"/g,L=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,r=[];let a,o=2===e?"<svg>":"",p=M;for(let e=0;e<i;e++){const i=t[e];let n,c,s=-1,l=0;for(;l<i.length&&(p.lastIndex=l,c=p.exec(i),null!==c);)l=p.lastIndex,p===M?"!--"===c[1]?p=P:void 0!==c[1]?p=H:void 0!==c[2]?(L.test(c[2])&&(a=RegExp("</"+c[2],"g")),p=U):void 0!==c[3]&&(p=U):p===U?">"===c[0]?(p=null!=a?a:M,s=-1):void 0===c[1]?s=-2:(s=p.lastIndex-c[2].length,n=c[1],p=void 0===c[3]?U:'"'===c[3]?V:G):p===V||p===G?p=U:p===P||p===H?p=M:(p=U,a=void 0);const d=p===U&&t[e+1].startsWith("/>")?" ":"";o+=p===M?i+D:s>=0?(r.push(n),i.slice(0,s)+"$lit$"+i.slice(s)+E+d):i+E+(-2===s?(r.push(void 0),e):d)}const n=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(n):n,r]};class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,o=0;const p=t.length-1,n=this.parts,[c,s]=Y(t,e);if(this.el=J.createElement(c,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=X.nextNode())&&n.length<p;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=s[o++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:a,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?ot:"@"===e[1]?pt:it})}else n.push({type:6,index:a})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],B()),X.nextNode(),n.push({type:2,index:++a});r.append(t[e],B())}}}else if(8===r.nodeType)if(r.data===j)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)n.push({type:7,index:a}),t+=E.length-1}a++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var a,o,p,n;if(e===q)return e;let c=void 0!==r?null===(a=i._$Cl)||void 0===a?void 0:a[r]:i._$Cu;const s=R(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==s&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===s?c=void 0:(c=new s(t),c._$AT(t,i,r)),void 0!==r?(null!==(p=(n=i)._$Cl)&&void 0!==p?p:n._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=Q(t,c._$AS(t,e.values),c,r)),e}class tt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,a=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);X.currentNode=a;let o=X.nextNode(),p=0,n=0,c=r[0];for(;void 0!==c;){if(p===c.index){let e;2===c.type?e=new et(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new nt(o,this,t)),this.v.push(e),c=r[++n]}p!==(null==c?void 0:c.index)&&(o=X.nextNode(),p++)}return a}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,r){var a;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(a=null==r?void 0:r.isConnected)||void 0===a||a}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),R(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==q&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return N(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(F.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,a="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=J.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===a)this._$AH.m(i);else{const t=new tt(a,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}A(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const a of t)r===e.length?e.push(i=new et(this.M(B()),this.M(B()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,r,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const a=this.strings;let o=!1;if(void 0===a)t=Q(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==q,o&&(this._$AH=t);else{const r=t;let p,n;for(t=a[0],p=0;p<a.length-1;p++)n=Q(this,r[i+p],e,p),n===q&&(n=this._$AH[p]),o||(o=!R(n)||n!==this._$AH[p]),n===W?t=W:t!==W&&(t+=(null!=n?n:"")+a[p+1]),this._$AH[p]=n}o&&!r&&this.k(t)}k(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===W?void 0:t}}const at=I?I.emptyScript:"";class ot extends it{constructor(){super(...arguments),this.type=4}k(t){t&&t!==W?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class pt extends it{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:W)===q)return;const r=this._$AH,a=t===W&&r!==W||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==W&&(r===W||a);a&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class nt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const ct=window.litHtmlPolyfillSupport;null==ct||ct(J,et),(null!==(_=globalThis.litHtmlVersions)&&void 0!==_?_:globalThis.litHtmlVersions=[]).push("2.1.3");
175
+ var _;T.elementDefinitions={"mwc-ripple":z},S([i.property({type:Boolean})],T.prototype,"primary",void 0),S([i.property({type:Boolean})],T.prototype,"secondary",void 0),S([i.property({type:Boolean})],T.prototype,"unbounded",void 0),S([i.property({type:Boolean})],T.prototype,"activated",void 0),S([i.property({type:Boolean})],T.prototype,"selected",void 0),S([i.property({type:Boolean})],T.prototype,"disabled",void 0),S([i.query("mwc-ripple")],T.prototype,"mwcRipple",void 0),T=S([a.customElement("ft-ripple")],T);const I=globalThis.trustedTypes,C=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,j="?"+E,D=`<${j}>`,F=document,B=(t="")=>F.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,H=/>/g,U=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,G=/'/g,V=/"/g,L=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,r=[];let a,o=2===e?"<svg>":"",n=M;for(let e=0;e<i;e++){const i=t[e];let p,c,s=-1,l=0;for(;l<i.length&&(n.lastIndex=l,c=n.exec(i),null!==c);)l=n.lastIndex,n===M?"!--"===c[1]?n=P:void 0!==c[1]?n=H:void 0!==c[2]?(L.test(c[2])&&(a=RegExp("</"+c[2],"g")),n=U):void 0!==c[3]&&(n=U):n===U?">"===c[0]?(n=null!=a?a:M,s=-1):void 0===c[1]?s=-2:(s=n.lastIndex-c[2].length,p=c[1],n=void 0===c[3]?U:'"'===c[3]?V:G):n===V||n===G?n=U:n===P||n===H?n=M:(n=U,a=void 0);const d=n===U&&t[e+1].startsWith("/>")?" ":"";o+=n===M?i+D:s>=0?(r.push(p),i.slice(0,s)+"$lit$"+i.slice(s)+E+d):i+E+(-2===s?(r.push(void 0),e):d)}const p=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(p):p,r]};class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let a=0,o=0;const n=t.length-1,p=this.parts,[c,s]=Y(t,e);if(this.el=J.createElement(c,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=X.nextNode())&&p.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=s[o++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);p.push({type:1,index:a,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?ot:"@"===e[1]?nt:it})}else p.push({type:6,index:a})}for(const e of t)r.removeAttribute(e)}if(L.test(r.tagName)){const t=r.textContent.split(E),e=t.length-1;if(e>0){r.textContent=I?I.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],B()),X.nextNode(),p.push({type:2,index:++a});r.append(t[e],B())}}}else if(8===r.nodeType)if(r.data===j)p.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(E,t+1));)p.push({type:7,index:a}),t+=E.length-1}a++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var a,o,n,p;if(e===q)return e;let c=void 0!==r?null===(a=i._$Cl)||void 0===a?void 0:a[r]:i._$Cu;const s=R(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==s&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===s?c=void 0:(c=new s(t),c._$AT(t,i,r)),void 0!==r?(null!==(n=(p=i)._$Cl)&&void 0!==n?n:p._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=Q(t,c._$AS(t,e.values),c,r)),e}class tt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:r}=this._$AD,a=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);X.currentNode=a;let o=X.nextNode(),n=0,p=0,c=r[0];for(;void 0!==c;){if(n===c.index){let e;2===c.type?e=new et(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new pt(o,this,t)),this.v.push(e),c=r[++p]}n!==(null==c?void 0:c.index)&&(o=X.nextNode(),n++)}return a}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,r){var a;this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(a=null==r?void 0:r.isConnected)||void 0===a||a}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),R(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==q&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return N(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==W&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(F.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,a="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=J.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===a)this._$AH.m(i);else{const t=new tt(a,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new J(t)),e}A(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const a of t)r===e.length?e.push(i=new et(this.M(B()),this.M(B()),this,this.options)):i=e[r],i._$AI(a),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,r,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=a,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const a=this.strings;let o=!1;if(void 0===a)t=Q(this,t,e,0),o=!R(t)||t!==this._$AH&&t!==q,o&&(this._$AH=t);else{const r=t;let n,p;for(t=a[0],n=0;n<a.length-1;n++)p=Q(this,r[i+n],e,n),p===q&&(p=this._$AH[n]),o||(o=!R(p)||p!==this._$AH[n]),p===W?t=W:t!==W&&(t+=(null!=p?p:"")+a[n+1]),this._$AH[n]=p}o&&!r&&this.k(t)}k(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===W?void 0:t}}const at=I?I.emptyScript:"";class ot extends it{constructor(){super(...arguments),this.type=4}k(t){t&&t!==W?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class nt extends it{constructor(t,e,i,r,a){super(t,e,i,r,a),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:W)===q)return;const r=this._$AH,a=t===W&&r!==W||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==W&&(r===W||a);a&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class pt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const ct=window.litHtmlPolyfillSupport;null==ct||ct(J,et),(null!==(_=globalThis.litHtmlVersions)&&void 0!==_?_:globalThis.litHtmlVersions=[]).push("2.1.3");
176
176
  /**
177
177
  * @license
178
178
  * Copyright 2020 Google LLC
179
179
  * SPDX-License-Identifier: BSD-3-Clause
180
180
  */
181
- const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const a=i.length;let o,p;const n=[],c=[];let s,l=0,d=!1;for(;l<a;){for(s=e[l];l<a&&void 0!==(p=i[l],o=null===(r=p)||void 0===r?void 0:r._$litStatic$);)s+=o+e[++l],d=!0;c.push(p),n.push(s),l++}if(l===a&&n.push(e[a]),d){const t=n.join("$$lit$$");void 0===(e=lt.get(t))&&(n.raw=n,lt.set(t,e=n)),i=c}return t(e,...i)})(Z);var ft,ht=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(a=t[n])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ft||(ft={}));const ut=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),mt=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=a.FtCssVariable.extend("--ft-typography-title-font-family",ut),vt=a.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=a.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),$t=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),xt=a.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=a.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",ut),zt=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"24px"),Tt=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),_t=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",mt),It=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),Ct=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),Et=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),jt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"24px"),Dt=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Ft=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",mt),Bt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Rt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Nt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Mt=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"24px"),Pt=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Ht=a.FtCssVariable.extend("--ft-typography-body1-font-family",mt),Ut=a.FtCssVariable.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=a.FtCssVariable.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Vt=a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=a.FtCssVariable.extend("--ft-typography-body1-line-height",yt.lineHeight,"24px"),Zt=a.FtCssVariable.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt={fontFamily:a.FtCssVariable.extend("--ft-typography-body2-font-family",mt),fontSize:a.FtCssVariable.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body2-line-height",yt.lineHeight,"20px"),textTransform:a.FtCssVariable.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit")},Wt=a.FtCssVariable.extend("--ft-typography-caption-font-family",mt),Kt=a.FtCssVariable.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),Xt=a.FtCssVariable.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),Yt=a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),Jt=a.FtCssVariable.extend("--ft-typography-caption-line-height",yt.lineHeight,"16px"),Qt=a.FtCssVariable.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),te=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",mt),ee=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),ie=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),re=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ae=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"16px"),oe=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),pe=a.FtCssVariable.extend("--ft-typography-overline-font-family",mt),ne=a.FtCssVariable.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ce=a.FtCssVariable.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),se=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),le=a.FtCssVariable.extend("--ft-typography-overline-line-height",yt.lineHeight,"16px"),de=a.FtCssVariable.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),fe=a.FtCssVariable.extend("--ft-typography-button-font-family",mt),he=a.FtCssVariable.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),ue=a.FtCssVariable.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),me=a.FtCssVariable.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),ye=a.FtCssVariable.extend("--ft-typography-button-line-height",yt.lineHeight,"16px"),ge=a.FtCssVariable.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),ve=e.css`
181
+ const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const a=i.length;let o,n;const p=[],c=[];let s,l=0,d=!1;for(;l<a;){for(s=e[l];l<a&&void 0!==(n=i[l],o=null===(r=n)||void 0===r?void 0:r._$litStatic$);)s+=o+e[++l],d=!0;c.push(n),p.push(s),l++}if(l===a&&p.push(e[a]),d){const t=p.join("$$lit$$");void 0===(e=lt.get(t))&&(p.raw=p,lt.set(t,e=p)),i=c}return t(e,...i)})(Z);var ft,ht=function(t,e,i,r){for(var a,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ft||(ft={}));const ut=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),mt=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),yt={fontFamily:mt,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},gt=a.FtCssVariable.extend("--ft-typography-title-font-family",ut),vt=a.FtCssVariable.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),bt=a.FtCssVariable.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),$t=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),xt=a.FtCssVariable.extend("--ft-typography-title-line-height",yt.lineHeight,"24px"),wt=a.FtCssVariable.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",ut),zt=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),At=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),St=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"24px"),Tt=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),_t=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",mt),It=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),Ct=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),Et=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),jt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"24px"),Dt=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Ft=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",mt),Bt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Rt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Nt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Mt=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"24px"),Pt=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Ht=a.FtCssVariable.extend("--ft-typography-body1-font-family",mt),Ut=a.FtCssVariable.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=a.FtCssVariable.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Vt=a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=a.FtCssVariable.extend("--ft-typography-body1-line-height",yt.lineHeight,"24px"),Zt=a.FtCssVariable.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt={fontFamily:a.FtCssVariable.extend("--ft-typography-body2-font-family",mt),fontSize:a.FtCssVariable.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body2-line-height",yt.lineHeight,"20px"),textTransform:a.FtCssVariable.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit")},Wt=a.FtCssVariable.extend("--ft-typography-caption-font-family",mt),Kt=a.FtCssVariable.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),Xt=a.FtCssVariable.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),Yt=a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),Jt=a.FtCssVariable.extend("--ft-typography-caption-line-height",yt.lineHeight,"16px"),Qt=a.FtCssVariable.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),te=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",mt),ee=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),ie=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),re=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ae=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"16px"),oe=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),ne=a.FtCssVariable.extend("--ft-typography-overline-font-family",mt),pe=a.FtCssVariable.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),ce=a.FtCssVariable.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),se=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),le=a.FtCssVariable.extend("--ft-typography-overline-line-height",yt.lineHeight,"16px"),de=a.FtCssVariable.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),fe=a.FtCssVariable.extend("--ft-typography-button-font-family",mt),he=a.FtCssVariable.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),ue=a.FtCssVariable.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),me=a.FtCssVariable.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),ye=a.FtCssVariable.extend("--ft-typography-button-line-height",yt.lineHeight,"16px"),ge=a.FtCssVariable.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),ve=e.css`
182
182
  .ft-typography--title {
183
183
  font-family: ${gt};
184
184
  font-size: ${vt};
@@ -253,8 +253,8 @@ const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const a=i.leng
253
253
  }
254
254
  `,Se=e.css`
255
255
  .ft-typography--overline {
256
- font-family: ${pe};
257
- font-size: ${ne};
256
+ font-family: ${ne};
257
+ font-size: ${pe};
258
258
  font-weight: ${ce};
259
259
  letter-spacing: ${se};
260
260
  line-height: ${le};
@@ -269,7 +269,11 @@ const st=t=>({_$litStatic$:t}),lt=new Map,dt=(t=>(e,...i)=>{var r;const a=i.leng
269
269
  line-height: ${ye};
270
270
  text-transform: ${ge};
271
271
  }
272
- `;let Te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}getStyles(){return[ve,be,$e,xe,we,ke,ze,Ae,Se,Oe]}getTemplate(){return this.element?dt`
272
+ `;let Te=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}getStyles(){return[ve,be,$e,xe,we,ke,ze,Ae,Se,Oe,e.css`
273
+ .ft-typography {
274
+ vertical-align: inherit;
275
+ }
276
+ `]}getTemplate(){return this.element?dt`
273
277
  <${st(this.element)}
274
278
  class="ft-typography ft-typography--${this.variant}">
275
279
  <slot></slot>
@@ -287,7 +291,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
287
291
  * @license
288
292
  * Copyright 2018 Google LLC
289
293
  * SPDX-License-Identifier: Apache-2.0
290
- */;let Ie=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ie.styles=[_e],Ie=c([i.customElement("mwc-icon")],Ie);var Ce=function(t,e,i,r){for(var a,o=arguments.length,p=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,n=t.length-1;n>=0;n--)(a=t[n])&&(p=(o<3?a(p):o>3?a(e,i,p):a(e,i))||p);return o>3&&p&&Object.defineProperty(e,i,p),p};const Ee=a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnSurface),je={backgroundColor:a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorSurface),color:Ee,fontSize:a.FtCssVariable.extend("--ft-chip-font-size",qt.fontSize),iconSize:a.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:a.FtCssVariable.extend("--ft-chip-ripple-color",Ee),horizontalPadding:a.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:a.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),opacityDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOpacityDisabled,"Design system")},De=a.FtCssVariable.extend("--ft-chip-highlighted-color",a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnPrimary)),Fe={backgroundColor:a.FtCssVariable.extend("--ft-chip-highlighted-background-color",a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorPrimary)),color:De,rippleColor:a.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",De)},Be={horizontalPadding:a.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:a.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class Re extends CustomEvent{constructor(){super("icon-click")}}t.FtChip=class extends a.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}getStyles(){return[a.noTextSelect,e.css`
294
+ */;let Ie=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Ie.styles=[_e],Ie=c([i.customElement("mwc-icon")],Ie);var Ce=function(t,e,i,r){for(var a,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,p=t.length-1;p>=0;p--)(a=t[p])&&(n=(o<3?a(n):o>3?a(e,i,n):a(e,i))||n);return o>3&&n&&Object.defineProperty(e,i,n),n};const Ee=a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnSurface),je={backgroundColor:a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorSurface),color:Ee,fontSize:a.FtCssVariable.extend("--ft-chip-font-size",qt.fontSize),iconSize:a.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:a.FtCssVariable.extend("--ft-chip-ripple-color",Ee),horizontalPadding:a.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:a.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),opacityDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOpacityDisabled,"Design system")},De=a.FtCssVariable.extend("--ft-chip-highlighted-color",a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnPrimary)),Fe={backgroundColor:a.FtCssVariable.extend("--ft-chip-highlighted-background-color",a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorPrimary)),color:De,rippleColor:a.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",De)},Be={horizontalPadding:a.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:a.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class Re extends CustomEvent{constructor(){super("icon-click")}}t.FtChip=class extends a.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}getStyles(){return[a.noTextSelect,e.css`
291
295
  :host {
292
296
  display: inline-block;
293
297
  max-width: 100%;
@@ -368,6 +372,7 @@ const _e=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
368
372
  }
369
373
 
370
374
  .ft-chip--label {
375
+ vertical-align: bottom;
371
376
  display: block;
372
377
  margin: 0 var(--ft-chip-internal-horizontal-padding);
373
378
  ${a.setVariable(qt.fontSize,"var(--ft-chip-internal-font-size)")};
@@ -352,7 +352,11 @@ const Vt=t=>({_$litStatic$:t}),Kt=new Map,Zt=(t=>(e,...i)=>{var r;const o=i.leng
352
352
  line-height: ${Ye};
353
353
  text-transform: ${Qe};
354
354
  }
355
- `;let li=class extends mt{constructor(){super(...arguments),this.variant=Gt.body1}getStyles(){return[ti,ei,ii,ri,oi,ni,ai,si,ci,pi]}getTemplate(){return this.element?Zt`
355
+ `;let li=class extends mt{constructor(){super(...arguments),this.variant=Gt.body1}getStyles(){return[ti,ei,ii,ri,oi,ni,ai,si,ci,pi,a`
356
+ .ft-typography {
357
+ vertical-align: inherit;
358
+ }
359
+ `]}getTemplate(){return this.element?Zt`
356
360
  <${Vt(this.element)}
357
361
  class="ft-typography ft-typography--${this.variant}">
358
362
  <slot></slot>
@@ -451,6 +455,7 @@ const di=a`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
451
455
  }
452
456
 
453
457
  .ft-chip--label {
458
+ vertical-align: bottom;
454
459
  display: block;
455
460
  margin: 0 var(--ft-chip-internal-horizontal-padding);
456
461
  ${ut(Ne.fontSize,"var(--ft-chip-internal-font-size)")};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chip",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "A generic Fluid Topics chip",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "^0.1.8",
23
- "@fluid-topics/ft-typography": "^0.1.8",
24
- "@fluid-topics/ft-wc-utils": "^0.1.8",
22
+ "@fluid-topics/ft-ripple": "^0.1.9",
23
+ "@fluid-topics/ft-typography": "^0.1.9",
24
+ "@fluid-topics/ft-wc-utils": "^0.1.9",
25
25
  "@material/mwc-icon": "^0.25.3",
26
26
  "lit": "^2.0.2"
27
27
  },
28
- "gitHead": "45fdf008556920bbd5fcc2e766c273aed959178d"
28
+ "gitHead": "9f649211936b1529bf691190603f2f721d2a72bd"
29
29
  }