@fluid-topics/ft-file-drop 1.0.35 → 1.0.37

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.
@@ -88,7 +88,7 @@
88
88
  opacity: ${l.opacityContentOnSurfacePressed};
89
89
  transform: translate(-50%, -50%) scale(1);
90
90
  }
91
- `;var g,x=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class v extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
91
+ `;var g,x=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class v extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
92
92
  <style>
93
93
  .ft-ripple .ft-ripple--effect,
94
94
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -105,13 +105,13 @@
105
105
  <div class="ft-ripple--background"></div>
106
106
  <div class="ft-ripple--effect"></div>
107
107
  </div>
108
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=u,x([o.property({type:Boolean})],v.prototype,"primary",void 0),x([o.property({type:Boolean})],v.prototype,"secondary",void 0),x([o.property({type:Boolean})],v.prototype,"unbounded",void 0),x([o.property({type:Boolean})],v.prototype,"activated",void 0),x([o.property({type:Boolean})],v.prototype,"selected",void 0),x([o.property({type:Boolean})],v.prototype,"disabled",void 0),x([o.state()],v.prototype,"hovered",void 0),x([o.state()],v.prototype,"focused",void 0),x([o.state()],v.prototype,"pressed",void 0),x([o.state()],v.prototype,"rippling",void 0),x([o.state()],v.prototype,"rippleSize",void 0),x([o.state()],v.prototype,"originX",void 0),x([o.state()],v.prototype,"originY",void 0),x([o.query(".ft-ripple")],v.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const b=window,y=b.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,z=`<${k}>`,S=document,C=()=>S.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,O="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,N=/>/g,T=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,A=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,M=S.createTreeWalker(S,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(s.lastIndex=h,a=s.exec(e),null!==a);)h=s.lastIndex,s===j?"!--"===a[1]?s=B:void 0!==a[1]?s=N:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=T):void 0!==a[3]&&(s=T):s===T?">"===a[0]?(s=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?T:'"'===a[3]?A:Z):s===A||s===Z?s=T:s===B||s===N?s=j:(s=T,n=void 0);const f=s===T&&t[i+1].startsWith("/>")?" ":"";r+=s===j?e+z:p>=0?(o.push(l),e.slice(0,p)+$+e.slice(p)+w+f):e+w+(-2===p?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class L{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[a,p]=W(t,i);if(this.el=L.createElement(a,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith($)||i.startsWith(w)){const e=p[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+$).split(w),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:G})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=y?y.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),M.nextNode(),l.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,i){const e=S.createElement("template");return e.innerHTML=t,e}}function H(t,i,e=t,o){var n,r,s,l;if(i===_)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=E(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Co)&&void 0!==s?s:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=H(t,a._$AS(t,i.values),a,o)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:S).importNode(e,!0);M.currentNode=n;let r=M.nextNode(),s=0,l=0,a=o[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new P(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new J(r,this,t)),this._$AV.push(i),a=o[++l]}s!==(null==a?void 0:a.index)&&(r=M.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=H(this,t,i),E(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==_&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==D&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=L.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new K(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new L(t)),i}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new P(this.k(C()),this.k(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,i,0),r=!E(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=H(this,o[e+s],i,s),l===_&&(l=this._$AH[s]),r||(r=!E(l)||l!==this._$AH[s]),l===D?t=D:t!==D&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=y?y.emptyScript:"";class X extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=H(this,t,i,0))&&void 0!==e?e:D)===_)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const Q=b.litHtmlPolyfillSupport;null==Q||Q(L,P),(null!==(g=b.litHtmlVersions)&&void 0!==g?g:b.litHtmlVersions=[]).push("2.7.3");
108
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=u,x([o.property({type:Boolean})],v.prototype,"primary",void 0),x([o.property({type:Boolean})],v.prototype,"secondary",void 0),x([o.property({type:Boolean})],v.prototype,"unbounded",void 0),x([o.property({type:Boolean})],v.prototype,"activated",void 0),x([o.property({type:Boolean})],v.prototype,"selected",void 0),x([o.property({type:Boolean})],v.prototype,"disabled",void 0),x([o.state()],v.prototype,"hovered",void 0),x([o.state()],v.prototype,"focused",void 0),x([o.state()],v.prototype,"pressed",void 0),x([o.state()],v.prototype,"rippling",void 0),x([o.state()],v.prototype,"rippleSize",void 0),x([o.state()],v.prototype,"originX",void 0),x([o.state()],v.prototype,"originY",void 0),x([o.query(".ft-ripple")],v.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const b=window,y=b.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,z=`<${k}>`,S=document,C=()=>S.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,O="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,N=/>/g,T=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,A=/"/g,F=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,M=S.createTreeWalker(S,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(s.lastIndex=h,a=s.exec(e),null!==a);)h=s.lastIndex,s===j?"!--"===a[1]?s=B:void 0!==a[1]?s=N:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=T):void 0!==a[3]&&(s=T):s===T?">"===a[0]?(s=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?T:'"'===a[3]?A:Z):s===A||s===Z?s=T:s===B||s===N?s=j:(s=T,n=void 0);const f=s===T&&t[i+1].startsWith("/>")?" ":"";r+=s===j?e+z:p>=0?(o.push(l),e.slice(0,p)+$+e.slice(p)+w+f):e+w+(-2===p?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class W{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[a,p]=L(t,i);if(this.el=W.createElement(a,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith($)||i.startsWith(w)){const e=p[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+$).split(w),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:G})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=y?y.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),M.nextNode(),l.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,i){const e=S.createElement("template");return e.innerHTML=t,e}}function H(t,i,e=t,o){var n,r,s,l;if(i===_)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=E(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Co)&&void 0!==s?s:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=H(t,a._$AS(t,i.values),a,o)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:S).importNode(e,!0);M.currentNode=n;let r=M.nextNode(),s=0,l=0,a=o[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new P(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new J(r,this,t)),this._$AV.push(i),a=o[++l]}s!==(null==a?void 0:a.index)&&(r=M.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class P{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=H(this,t,i),E(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==_&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==D&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=W.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new K(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new W(t)),i}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new P(this.k(C()),this.k(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,i,0),r=!E(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=H(this,o[e+s],i,s),l===_&&(l=this._$AH[s]),r||(r=!E(l)||l!==this._$AH[s]),l===D?t=D:t!==D&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=y?y.emptyScript:"";class X extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends G{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=H(this,t,i,0))&&void 0!==e?e:D)===_)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const Q=b.litHtmlPolyfillSupport;null==Q||Q(W,P),(null!==(g=b.litHtmlVersions)&&void 0!==g?g:b.litHtmlVersions=[]).push("2.7.3");
109
109
  /**
110
110
  * @license
111
111
  * Copyright 2020 Google LLC
112
112
  * SPDX-License-Identifier: BSD-3-Clause
113
113
  */
114
- const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,nt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(r=e[p],n=it(r));)a+=n+i[++p],h=!0;p!==o&&l.push(r),s.push(a),p++}if(p===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=ot.get(t))&&(s.raw=s,ot.set(t,i=s)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Dt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit")},Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),ni={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},ri=e.css`
114
+ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,nt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(r=e[p],n=it(r));)a+=n+i[++p],h=!0;p!==o&&l.push(r),s.push(a),p++}if(p===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=ot.get(t))&&(s.raw=s,ot.set(t,i=s)),e=l}return t(i,...e)})(U);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Dt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit")},Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),ni={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},ri=e.css`
115
115
  .ft-typography--title {
116
116
  font-family: ${pt};
117
117
  font-size: ${ht};
@@ -170,8 +170,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
170
170
  .ft-typography--caption {
171
171
  font-family: ${Rt};
172
172
  font-size: ${Mt};
173
- font-weight: ${Wt};
174
- letter-spacing: ${Lt};
173
+ font-weight: ${Lt};
174
+ letter-spacing: ${Wt};
175
175
  line-height: ${Ht};
176
176
  text-transform: ${Kt};
177
177
  }
@@ -245,7 +245,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
245
245
 
246
246
  i.ft-icon.ft-icon--fluid-topics {
247
247
  font-family: ${mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
248
-
248
+
249
249
  /* Ugly fix because font is broken */
250
250
  font-size: calc(0.75 * ${mi.size});
251
251
  line-height: ${mi.size};
@@ -308,7 +308,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
308
308
  @touchstart=${this.onTouch}>
309
309
  <slot></slot>
310
310
  <div part="tooltip" role="tooltip" inert
311
- class="ft-tooltip ft-tooltip--${this.validPosition}"
311
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
312
312
  ?hidden=${!this.visible}>
313
313
  <div part="tooltip-content" class="ft-tooltip--content">
314
314
  <slot name="text"></slot>
@@ -392,7 +392,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
392
392
  <div></div>
393
393
  <div></div>
394
394
  </div>
395
- `}}Fi.styles=Ai,i.customElement("ft-loader")(Fi);const Ui=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ui,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ui),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Mi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Li=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ki=[e.css`
395
+ `}}Fi.styles=Ai,i.customElement("ft-loader")(Fi);const Ui=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ui,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ui),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Mi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Li=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Wi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ki=[e.css`
396
396
  :host {
397
397
  display: inline-block;
398
398
  max-width: 100%;
@@ -448,17 +448,17 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
448
448
  border: 1px solid var(--ft-button-internal-color);
449
449
  padding: calc(${_i.verticalPadding} - 1px) calc(${_i.horizontalPadding} - 1px);
450
450
  }
451
-
451
+
452
452
  .ft-button.ft-button--dense {
453
- padding: ${Wi} ${Li};
453
+ padding: ${Li} ${Wi};
454
454
  border-radius: ${Mi};
455
455
  gap: ${Hi};
456
456
  }
457
457
 
458
458
  .ft-button.ft-button--dense.ft-button--outlined {
459
- padding: calc(${Wi} - 1px) calc(${Li} - 1px);
459
+ padding: calc(${Li} - 1px) calc(${Wi} - 1px);
460
460
  }
461
-
461
+
462
462
  .ft-button:not([disabled]):hover {
463
463
  cursor: pointer;
464
464
  }
@@ -468,7 +468,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
468
468
  }
469
469
 
470
470
  .ft-button--round.ft-button--dense {
471
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Wi});
471
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Li});
472
472
  }
473
473
 
474
474
  .ft-button[disabled] {
@@ -516,8 +516,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
516
516
  }
517
517
 
518
518
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
519
- margin: 0 calc(${Li} * -1);
520
- padding: 0 ${Wi};
519
+ margin: 0 calc(${Wi} * -1);
520
+ padding: 0 ${Li};
521
521
  }
522
522
 
523
523
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -550,7 +550,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
550
550
  position="${this.tooltipPosition}">
551
551
  ${t}
552
552
  </ft-tooltip>
553
- `:t}resolveIcon(){return this.loading?e.html`
553
+ `:t}resolveIcon(){return this.loading?e.html`
554
554
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
555
555
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Gi.elementDefinitions={"ft-ripple":v,"ft-tooltip":Ti,"ft-typography":yi,"ft-icon":zi,"ft-loader":Fi},Gi.styles=[i.safariEllipsisFix,Ki],Pi([o.property({type:String,reflect:!0})],Gi.prototype,"role",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"primary",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"outlined",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"disabled",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"dense",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"round",void 0),Pi([o.property()],Gi.prototype,"label",void 0),Pi([o.property()],Gi.prototype,"icon",void 0),Pi([o.property()],Gi.prototype,"iconVariant",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"trailingIcon",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"loading",void 0),Pi([o.property()],Gi.prototype,"tooltipPosition",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"hideTooltip",void 0),Pi([o.property({type:Boolean})],Gi.prototype,"forceTooltip",void 0),Pi([o.query(".ft-button")],Gi.prototype,"button",void 0),Pi([o.query(".ft-button--label slot")],Gi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Gi);const Vi=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),qi={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Vi,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Dt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Vi),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Xi=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Yi={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Xi,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Xi)},Ji=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Qi=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),te=[i.noTextSelect,e.css`
556
556
  :host {
@@ -708,11 +708,11 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
708
708
  icon="${this.internalIcon}"
709
709
  label="${this.iconLabel}"
710
710
  ></ft-button>
711
- `:e.html`
711
+ `:e.html`
712
712
  <div class="ft-chip--icon-container ft-no-text-select">
713
713
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
714
714
  </div>
715
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ee))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ee))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}oe.elementDefinitions={"ft-ripple":v,"ft-typography":yi,"ft-icon":zi,"ft-button":Gi},oe.styles=te,ie([o.property({type:Boolean})],oe.prototype,"highlighted",void 0),ie([o.property({type:Boolean})],oe.prototype,"removable",void 0),ie([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ie([o.property({type:Boolean})],oe.prototype,"clickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"iconClickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"dense",void 0),ie([o.property({type:Boolean})],oe.prototype,"multiLine",void 0),ie([o.property()],oe.prototype,"label",void 0),ie([o.property()],oe.prototype,"iconLabel",void 0),ie([o.property()],oe.prototype,"icon",void 0),ie([o.property()],oe.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),ie([o.query("ft-typography slot")],oe.prototype,"slottedContent",void 0),i.customElement("ft-chip")(oe);const ne={zIndex:i.FtCssVariableFactory.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariableFactory.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariableFactory.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariableFactory.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariableFactory.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)},re=e.css`
715
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ee))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ee))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}oe.elementDefinitions={"ft-ripple":v,"ft-typography":yi,"ft-icon":zi,"ft-button":Gi},oe.styles=te,ie([o.property({type:Boolean})],oe.prototype,"highlighted",void 0),ie([o.property({type:Boolean})],oe.prototype,"removable",void 0),ie([o.property({type:Boolean})],oe.prototype,"disabled",void 0),ie([o.property({type:Boolean})],oe.prototype,"clickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"iconClickable",void 0),ie([o.property({type:Boolean})],oe.prototype,"dense",void 0),ie([o.property({type:Boolean})],oe.prototype,"multiLine",void 0),ie([o.property()],oe.prototype,"label",void 0),ie([o.property()],oe.prototype,"iconLabel",void 0),ie([o.property()],oe.prototype,"icon",void 0),ie([o.property()],oe.prototype,"iconVariant",void 0),ie([o.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),ie([o.query("ft-typography slot")],oe.prototype,"slottedContent",void 0),i.customElement("ft-chip")(oe);const ne={zIndex:i.FtCssVariableFactory.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariableFactory.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariableFactory.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariableFactory.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariableFactory.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariableFactory.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariableFactory.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)},re=e.css`
716
716
  :host {
717
717
  display: block;
718
718
  position: relative;
@@ -56,37 +56,37 @@ const p=window,d=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const z=window,M=z.trustedTypes,U=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,I=`<${B}>`,L=document,T=()=>L.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=L.createTreeWalker(L,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+I:c>=0?(o.push(a),e.slice(0,c)+j+e.slice(c)+F+p):e+F+(-2===c?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(j)||i.startsWith(F)){const e=c[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+j).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],T()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],T())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=L.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const c=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:L).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ht(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),A(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(T()),this.k(T()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=M?M.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
59
+ var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:N}),(null!==(m=$.reactiveElementVersions)&&void 0!==m?m:$.reactiveElementVersions=[]).push("1.6.1");const z=window,M=z.trustedTypes,U=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,L=`<${B}>`,I=document,T=()=>I.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,c=-1,h=0;for(;h<e.length&&(s.lastIndex=h,l=s.exec(e),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+L:c>=0?(o.push(a),e.slice(0,c)+j+e.slice(c)+F+p):e+F+(-2===c?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(j)||i.startsWith(F)){const e=c[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+j).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ct:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],T()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],T())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const c=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ht(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),A(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(T()),this.k(T()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=M?M.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ct extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ht{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.7.3");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
65
  var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new nt(i.insertBefore(T(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return X}};ut.finalized=!0,ut._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:ut});const vt=globalThis.litElementPolyfillSupport;null==vt||vt({LitElement:ut}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.2");class bt{static create(t,i,e){let o=t=>b(null!=t?t:e),n=g`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>g`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),n=g`var(${b(t)}, ${o(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=o,n.get=i=>g`var(${b(t)}, ${o(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):b(null!=i?i:t.defaultValue),o=g`var(${b(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>g`var(${b(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function gt(t,i){return b(`${t.name}: ${i}`)}const yt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:bt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:bt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:bt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:bt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:bt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:bt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:bt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:bt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:bt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class xt extends ut{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return y(e,t.elementStyles),e}}var mt,$t=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const wt=Symbol("constructorPrototype"),Ot=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class St extends xt{constructor(){super(),this[mt]=new i(5),this[Ot]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ot]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[kt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}mt=kt,$t([o()],St.prototype,"exportpartsPrefix",void 0),$t([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!c(t,i),...null!=i?i:{}})}([])],St.prototype,"exportpartsPrefixes",void 0),$t([o()],St.prototype,"customStylesheet",void 0);const Ct=g`
66
- .ft-no-text-select {
67
- -webkit-touch-callout: none;
68
- -webkit-user-select: none;
69
- -khtml-user-select: none;
70
- -moz-user-select: none;
71
- -ms-user-select: none;
72
- user-select: none;
73
- }
66
+ .ft-no-text-select {
67
+ -webkit-touch-callout: none;
68
+ -webkit-user-select: none;
69
+ -khtml-user-select: none;
70
+ -moz-user-select: none;
71
+ -ms-user-select: none;
72
+ user-select: none;
73
+ }
74
74
  `;g`
75
- .ft-word-wrap {
76
- white-space: normal;
77
- word-wrap: break-word;
78
- -ms-word-break: break-all;
79
- word-break: break-all;
80
- word-break: break-word;
81
- -ms-hyphens: auto;
82
- -moz-hyphens: auto;
83
- -webkit-hyphens: auto;
84
- hyphens: auto
85
- }
75
+ .ft-word-wrap {
76
+ white-space: normal;
77
+ word-wrap: break-word;
78
+ -ms-word-break: break-all;
79
+ word-break: break-all;
80
+ word-break: break-word;
81
+ -ms-hyphens: auto;
82
+ -moz-hyphens: auto;
83
+ -webkit-hyphens: auto;
84
+ hyphens: auto
85
+ }
86
86
  `;const Et=g`
87
87
  .ft-safari-ellipsis-fix {
88
88
  margin-right: 0;
89
-
89
+
90
90
  }
91
91
 
92
92
  .ft-safari-ellipsis-fix:after {
@@ -104,7 +104,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
104
104
  * @license
105
105
  * Copyright 2018 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
- */const It=Ft(class extends Bt{constructor(t){var i;if(super(t),t.type!==Ut||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}});const Lt=bt.extend("--ft-ripple-color",yt.colorContent),Tt={color:Lt,backgroundColor:bt.extend("--ft-ripple-background-color",Lt),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},At=bt.extend("--ft-ripple-color",yt.colorPrimary),Pt=At,Dt=bt.extend("--ft-ripple-background-color",At),_t=bt.extend("--ft-ripple-color",yt.colorSecondary),Wt=_t,Ht=bt.extend("--ft-ripple-background-color",_t),Zt=g`
107
+ */const Lt=Ft(class extends Bt{constructor(t){var i;if(super(t),t.type!==Ut||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}});const It=bt.extend("--ft-ripple-color",yt.colorContent),Tt={color:It,backgroundColor:bt.extend("--ft-ripple-background-color",It),opacityContentOnSurfacePressed:bt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(yt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},At=bt.extend("--ft-ripple-color",yt.colorPrimary),Pt=At,Dt=bt.extend("--ft-ripple-background-color",At),_t=bt.extend("--ft-ripple-color",yt.colorSecondary),Wt=_t,Ht=bt.extend("--ft-ripple-background-color",_t),Zt=g`
108
108
  :host {
109
109
  display: contents;
110
110
  }
@@ -194,7 +194,7 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
194
194
  opacity: ${Tt.opacityContentOnSurfacePressed};
195
195
  transform: translate(-50%, -50%) scale(1);
196
196
  }
197
- `;var Kt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Vt extends St{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return q`
197
+ `;var Kt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Vt extends St{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return q`
198
198
  <style>
199
199
  .ft-ripple .ft-ripple--effect,
200
200
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -207,17 +207,17 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
207
207
  top: ${this.originY}px;
208
208
  }
209
209
  </style>
210
- <div class="${It(t)}">
210
+ <div class="${Lt(t)}">
211
211
  <div class="ft-ripple--background"></div>
212
212
  <div class="ft-ripple--effect"></div>
213
213
  </div>
214
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Vt.elementDefinitions={},Vt.styles=Zt,Kt([o({type:Boolean})],Vt.prototype,"primary",void 0),Kt([o({type:Boolean})],Vt.prototype,"secondary",void 0),Kt([o({type:Boolean})],Vt.prototype,"unbounded",void 0),Kt([o({type:Boolean})],Vt.prototype,"activated",void 0),Kt([o({type:Boolean})],Vt.prototype,"selected",void 0),Kt([o({type:Boolean})],Vt.prototype,"disabled",void 0),Kt([n()],Vt.prototype,"hovered",void 0),Kt([n()],Vt.prototype,"focused",void 0),Kt([n()],Vt.prototype,"pressed",void 0),Kt([n()],Vt.prototype,"rippling",void 0),Kt([n()],Vt.prototype,"rippleSize",void 0),Kt([n()],Vt.prototype,"originX",void 0),Kt([n()],Vt.prototype,"originY",void 0),Kt([s(".ft-ripple")],Vt.prototype,"ripple",void 0),Kt([s(".ft-ripple--effect")],Vt.prototype,"rippleEffect",void 0),h("ft-ripple")(Vt);
214
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Vt.elementDefinitions={},Vt.styles=Zt,Kt([o({type:Boolean})],Vt.prototype,"primary",void 0),Kt([o({type:Boolean})],Vt.prototype,"secondary",void 0),Kt([o({type:Boolean})],Vt.prototype,"unbounded",void 0),Kt([o({type:Boolean})],Vt.prototype,"activated",void 0),Kt([o({type:Boolean})],Vt.prototype,"selected",void 0),Kt([o({type:Boolean})],Vt.prototype,"disabled",void 0),Kt([n()],Vt.prototype,"hovered",void 0),Kt([n()],Vt.prototype,"focused",void 0),Kt([n()],Vt.prototype,"pressed",void 0),Kt([n()],Vt.prototype,"rippling",void 0),Kt([n()],Vt.prototype,"rippleSize",void 0),Kt([n()],Vt.prototype,"originX",void 0),Kt([n()],Vt.prototype,"originY",void 0),Kt([s(".ft-ripple")],Vt.prototype,"ripple",void 0),Kt([s(".ft-ripple--effect")],Vt.prototype,"rippleEffect",void 0),h("ft-ripple")(Vt);
215
215
  /**
216
216
  * @license
217
217
  * Copyright 2020 Google LLC
218
218
  * SPDX-License-Identifier: BSD-3-Clause
219
219
  */
220
- const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=qt(r));)l+=n+i[++c],h=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=Yt.get(t))&&(s.raw=s,Yt.set(t,i=s)),e=a}return t(i,...e)})(q);var Qt;!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"}(Qt||(Qt={}));const ti=bt.extend("--ft-typography-font-family",yt.titleFont),ii=bt.extend("--ft-typography-font-family",yt.contentFont),ei={fontFamily:ii,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oi=bt.extend("--ft-typography-title-font-family",ti),ni=bt.extend("--ft-typography-title-font-size",ei.fontSize,"20px"),ri=bt.extend("--ft-typography-title-font-weight",ei.fontWeight,"normal"),si=bt.extend("--ft-typography-title-letter-spacing",ei.letterSpacing,"0.15px"),ai=bt.extend("--ft-typography-title-line-height",ei.lineHeight,"1.2"),li=bt.extend("--ft-typography-title-text-transform",ei.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ti),hi=bt.extend("--ft-typography-title-dense-font-size",ei.fontSize,"14px"),pi=bt.extend("--ft-typography-title-dense-font-weight",ei.fontWeight,"normal"),di=bt.extend("--ft-typography-title-dense-letter-spacing",ei.letterSpacing,"0.105px"),fi=bt.extend("--ft-typography-title-dense-line-height",ei.lineHeight,"1.7"),ui=bt.extend("--ft-typography-title-dense-text-transform",ei.textTransform,"inherit"),vi=bt.extend("--ft-typography-subtitle1-font-family",ii),bi=bt.extend("--ft-typography-subtitle1-font-size",ei.fontSize,"16px"),gi=bt.extend("--ft-typography-subtitle1-font-weight",ei.fontWeight,"600"),yi=bt.extend("--ft-typography-subtitle1-letter-spacing",ei.letterSpacing,"0.144px"),xi=bt.extend("--ft-typography-subtitle1-line-height",ei.lineHeight,"1.5"),mi=bt.extend("--ft-typography-subtitle1-text-transform",ei.textTransform,"inherit"),$i=bt.extend("--ft-typography-subtitle2-font-family",ii),wi=bt.extend("--ft-typography-subtitle2-font-size",ei.fontSize,"14px"),Oi=bt.extend("--ft-typography-subtitle2-font-weight",ei.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",ei.letterSpacing,"0.098px"),Si=bt.extend("--ft-typography-subtitle2-line-height",ei.lineHeight,"1.7"),Ci=bt.extend("--ft-typography-subtitle2-text-transform",ei.textTransform,"inherit"),Ei=bt.extend("--ft-typography-body1-font-family",ii),Ni=bt.extend("--ft-typography-body1-font-size",ei.fontSize,"16px"),Ri=bt.extend("--ft-typography-body1-font-weight",ei.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",ei.letterSpacing,"0.496px"),Mi=bt.extend("--ft-typography-body1-line-height",ei.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",ei.textTransform,"inherit"),ji={fontFamily:bt.extend("--ft-typography-body2-font-family",ii),fontSize:bt.extend("--ft-typography-body2-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ei.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ei.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ei.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ei.textTransform,"inherit")},Fi=bt.extend("--ft-typography-caption-font-family",ii),Bi=bt.extend("--ft-typography-caption-font-size",ei.fontSize,"12px"),Ii=bt.extend("--ft-typography-caption-font-weight",ei.fontWeight,"normal"),Li=bt.extend("--ft-typography-caption-letter-spacing",ei.letterSpacing,"0.396px"),Ti=bt.extend("--ft-typography-caption-line-height",ei.lineHeight,"1.33"),Ai=bt.extend("--ft-typography-caption-text-transform",ei.textTransform,"inherit"),Pi=bt.extend("--ft-typography-breadcrumb-font-family",ii),Di=bt.extend("--ft-typography-breadcrumb-font-size",ei.fontSize,"10px"),_i=bt.extend("--ft-typography-breadcrumb-font-weight",ei.fontWeight,"normal"),Wi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ei.letterSpacing,"0.33px"),Hi=bt.extend("--ft-typography-breadcrumb-line-height",ei.lineHeight,"1.6"),Zi=bt.extend("--ft-typography-breadcrumb-text-transform",ei.textTransform,"inherit"),Ki=bt.extend("--ft-typography-overline-font-family",ii),Vi=bt.extend("--ft-typography-overline-font-size",ei.fontSize,"10px"),Ji=bt.extend("--ft-typography-overline-font-weight",ei.fontWeight,"normal"),qi=bt.extend("--ft-typography-overline-letter-spacing",ei.letterSpacing,"1.5px"),Xi=bt.extend("--ft-typography-overline-line-height",ei.lineHeight,"1.6"),Yi=bt.extend("--ft-typography-overline-text-transform",ei.textTransform,"uppercase"),Gi={fontFamily:bt.extend("--ft-typography-button-font-family",ii),fontSize:bt.extend("--ft-typography-button-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ei.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ei.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ei.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ei.textTransform,"uppercase")},Qi=g`
220
+ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Xt=t=>({_$litStatic$:t,r:Jt}),Yt=new Map,Gt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=i[c];c<o&&void 0!==(r=e[c],n=qt(r));)l+=n+i[++c],h=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=Yt.get(t))&&(s.raw=s,Yt.set(t,i=s)),e=a}return t(i,...e)})(q);var Qt;!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"}(Qt||(Qt={}));const ti=bt.extend("--ft-typography-font-family",yt.titleFont),ii=bt.extend("--ft-typography-font-family",yt.contentFont),ei={fontFamily:ii,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},oi=bt.extend("--ft-typography-title-font-family",ti),ni=bt.extend("--ft-typography-title-font-size",ei.fontSize,"20px"),ri=bt.extend("--ft-typography-title-font-weight",ei.fontWeight,"normal"),si=bt.extend("--ft-typography-title-letter-spacing",ei.letterSpacing,"0.15px"),ai=bt.extend("--ft-typography-title-line-height",ei.lineHeight,"1.2"),li=bt.extend("--ft-typography-title-text-transform",ei.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ti),hi=bt.extend("--ft-typography-title-dense-font-size",ei.fontSize,"14px"),pi=bt.extend("--ft-typography-title-dense-font-weight",ei.fontWeight,"normal"),di=bt.extend("--ft-typography-title-dense-letter-spacing",ei.letterSpacing,"0.105px"),fi=bt.extend("--ft-typography-title-dense-line-height",ei.lineHeight,"1.7"),ui=bt.extend("--ft-typography-title-dense-text-transform",ei.textTransform,"inherit"),vi=bt.extend("--ft-typography-subtitle1-font-family",ii),bi=bt.extend("--ft-typography-subtitle1-font-size",ei.fontSize,"16px"),gi=bt.extend("--ft-typography-subtitle1-font-weight",ei.fontWeight,"600"),yi=bt.extend("--ft-typography-subtitle1-letter-spacing",ei.letterSpacing,"0.144px"),xi=bt.extend("--ft-typography-subtitle1-line-height",ei.lineHeight,"1.5"),mi=bt.extend("--ft-typography-subtitle1-text-transform",ei.textTransform,"inherit"),$i=bt.extend("--ft-typography-subtitle2-font-family",ii),wi=bt.extend("--ft-typography-subtitle2-font-size",ei.fontSize,"14px"),Oi=bt.extend("--ft-typography-subtitle2-font-weight",ei.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",ei.letterSpacing,"0.098px"),Si=bt.extend("--ft-typography-subtitle2-line-height",ei.lineHeight,"1.7"),Ci=bt.extend("--ft-typography-subtitle2-text-transform",ei.textTransform,"inherit"),Ei=bt.extend("--ft-typography-body1-font-family",ii),Ni=bt.extend("--ft-typography-body1-font-size",ei.fontSize,"16px"),Ri=bt.extend("--ft-typography-body1-font-weight",ei.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",ei.letterSpacing,"0.496px"),Mi=bt.extend("--ft-typography-body1-line-height",ei.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",ei.textTransform,"inherit"),ji={fontFamily:bt.extend("--ft-typography-body2-font-family",ii),fontSize:bt.extend("--ft-typography-body2-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ei.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ei.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ei.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ei.textTransform,"inherit")},Fi=bt.extend("--ft-typography-caption-font-family",ii),Bi=bt.extend("--ft-typography-caption-font-size",ei.fontSize,"12px"),Li=bt.extend("--ft-typography-caption-font-weight",ei.fontWeight,"normal"),Ii=bt.extend("--ft-typography-caption-letter-spacing",ei.letterSpacing,"0.396px"),Ti=bt.extend("--ft-typography-caption-line-height",ei.lineHeight,"1.33"),Ai=bt.extend("--ft-typography-caption-text-transform",ei.textTransform,"inherit"),Pi=bt.extend("--ft-typography-breadcrumb-font-family",ii),Di=bt.extend("--ft-typography-breadcrumb-font-size",ei.fontSize,"10px"),_i=bt.extend("--ft-typography-breadcrumb-font-weight",ei.fontWeight,"normal"),Wi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ei.letterSpacing,"0.33px"),Hi=bt.extend("--ft-typography-breadcrumb-line-height",ei.lineHeight,"1.6"),Zi=bt.extend("--ft-typography-breadcrumb-text-transform",ei.textTransform,"inherit"),Ki=bt.extend("--ft-typography-overline-font-family",ii),Vi=bt.extend("--ft-typography-overline-font-size",ei.fontSize,"10px"),Ji=bt.extend("--ft-typography-overline-font-weight",ei.fontWeight,"normal"),qi=bt.extend("--ft-typography-overline-letter-spacing",ei.letterSpacing,"1.5px"),Xi=bt.extend("--ft-typography-overline-line-height",ei.lineHeight,"1.6"),Yi=bt.extend("--ft-typography-overline-text-transform",ei.textTransform,"uppercase"),Gi={fontFamily:bt.extend("--ft-typography-button-font-family",ii),fontSize:bt.extend("--ft-typography-button-font-size",ei.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ei.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ei.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ei.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ei.textTransform,"uppercase")},Qi=g`
221
221
  .ft-typography--title {
222
222
  font-family: ${oi};
223
223
  font-size: ${ni};
@@ -276,8 +276,8 @@ const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void
276
276
  .ft-typography--caption {
277
277
  font-family: ${Fi};
278
278
  font-size: ${Bi};
279
- font-weight: ${Ii};
280
- letter-spacing: ${Li};
279
+ font-weight: ${Li};
280
+ letter-spacing: ${Ii};
281
281
  line-height: ${Ti};
282
282
  text-transform: ${Ai};
283
283
  }
@@ -357,7 +357,7 @@ class de extends Bt{constructor(t){if(super(t),this.et=Y,t.type!==jt)throw Error
357
357
 
358
358
  i.ft-icon.ft-icon--fluid-topics {
359
359
  font-family: ${be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
360
-
360
+
361
361
  /* Ugly fix because font is broken */
362
362
  font-size: calc(0.75 * ${be.size});
363
363
  line-height: ${be.size};
@@ -420,7 +420,7 @@ class de extends Bt{constructor(t){if(super(t),this.et=Y,t.type!==jt)throw Error
420
420
  @touchstart=${this.onTouch}>
421
421
  <slot></slot>
422
422
  <div part="tooltip" role="tooltip" inert
423
- class="ft-tooltip ft-tooltip--${this.validPosition}"
423
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
424
424
  ?hidden=${!this.visible}>
425
425
  <div part="tooltip-content" class="ft-tooltip--content">
426
426
  <slot name="text"></slot>
@@ -510,7 +510,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
510
510
  <div></div>
511
511
  <div></div>
512
512
  </div>
513
- `}}Ue.styles=Me,h("ft-loader")(Ue);const je=bt.extend("--ft-button-color",yt.colorPrimary),Fe={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:je,fontSize:bt.extend("--ft-button-font-size",Gi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",je),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Be=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Ie={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Be,rippleColor:bt.extend("--ft-button-primary-ripple-color",Be)},Le=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Te=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ae=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Pe=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),De=[g`
513
+ `}}Ue.styles=Me,h("ft-loader")(Ue);const je=bt.extend("--ft-button-color",yt.colorPrimary),Fe={backgroundColor:bt.extend("--ft-button-background-color",yt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",yt.borderRadiusL),color:je,fontSize:bt.extend("--ft-button-font-size",Gi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",je),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Be=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",yt.colorOnPrimary)),Le={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",yt.colorPrimary)),color:Be,rippleColor:bt.extend("--ft-button-primary-ripple-color",Be)},Ie=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",yt.borderRadiusM)),Te=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Ae=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Pe=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),De=[g`
514
514
  :host {
515
515
  display: inline-block;
516
516
  max-width: 100%;
@@ -566,17 +566,17 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
566
566
  border: 1px solid var(--ft-button-internal-color);
567
567
  padding: calc(${Fe.verticalPadding} - 1px) calc(${Fe.horizontalPadding} - 1px);
568
568
  }
569
-
569
+
570
570
  .ft-button.ft-button--dense {
571
571
  padding: ${Te} ${Ae};
572
- border-radius: ${Le};
572
+ border-radius: ${Ie};
573
573
  gap: ${Pe};
574
574
  }
575
575
 
576
576
  .ft-button.ft-button--dense.ft-button--outlined {
577
577
  padding: calc(${Te} - 1px) calc(${Ae} - 1px);
578
578
  }
579
-
579
+
580
580
  .ft-button:not([disabled]):hover {
581
581
  cursor: pointer;
582
582
  }
@@ -595,9 +595,9 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
595
595
  }
596
596
 
597
597
  .ft-button.ft-button--primary {
598
- background-color: ${Ie.backgroundColor};
599
- --ft-button-internal-color: ${Ie.color};
600
- ${gt(Tt.color,Ie.rippleColor)};
598
+ background-color: ${Le.backgroundColor};
599
+ --ft-button-internal-color: ${Le.color};
600
+ ${gt(Tt.color,Le.rippleColor)};
601
601
  }
602
602
 
603
603
  .ft-button:focus {
@@ -649,7 +649,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
649
649
  }
650
650
  `,Ct];var _e=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class We extends St{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
651
651
  <button part="button"
652
- class="${It(t)}"
652
+ class="${Lt(t)}"
653
653
  aria-label="${this.getLabel()}"
654
654
  ?disabled=${this.isDisabled()}>
655
655
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -668,7 +668,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
668
668
  position="${this.tooltipPosition}">
669
669
  ${t}
670
670
  </ft-tooltip>
671
- `:t}resolveIcon(){return this.loading?q`
671
+ `:t}resolveIcon(){return this.loading?q`
672
672
  <ft-loader part="loader icon"></ft-loader> `:this.icon?q`
673
673
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Y}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}We.elementDefinitions={"ft-ripple":Vt,"ft-tooltip":Re,"ft-typography":pe,"ft-icon":me,"ft-loader":Ue},We.styles=[Et,De],_e([o({type:String,reflect:!0})],We.prototype,"role",void 0),_e([o({type:Boolean})],We.prototype,"primary",void 0),_e([o({type:Boolean})],We.prototype,"outlined",void 0),_e([o({type:Boolean})],We.prototype,"disabled",void 0),_e([o({type:Boolean})],We.prototype,"dense",void 0),_e([o({type:Boolean})],We.prototype,"round",void 0),_e([o()],We.prototype,"label",void 0),_e([o()],We.prototype,"icon",void 0),_e([o()],We.prototype,"iconVariant",void 0),_e([o({type:Boolean})],We.prototype,"trailingIcon",void 0),_e([o({type:Boolean})],We.prototype,"loading",void 0),_e([o()],We.prototype,"tooltipPosition",void 0),_e([o({type:Boolean})],We.prototype,"hideTooltip",void 0),_e([o({type:Boolean})],We.prototype,"forceTooltip",void 0),_e([s(".ft-button")],We.prototype,"button",void 0),_e([s(".ft-button--label slot")],We.prototype,"slottedContent",void 0),h("ft-button")(We);const He=bt.extend("--ft-chip-color",yt.colorOnSurface),Ze={backgroundColor:bt.extend("--ft-chip-background-color",yt.colorSurface),color:He,fontSize:bt.extend("--ft-chip-font-size",ji.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",He),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(yt.colorOutline,"Design system"),opacityDisabled:bt.external(yt.colorOpacityDisabled,"Design system")},Ke=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",yt.colorOnPrimary)),Ve={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",yt.colorPrimary)),color:Ke,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",Ke)},Je=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),qe=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Xe=[Ct,g`
674
674
  :host {
@@ -808,7 +808,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
808
808
  order: -1;
809
809
  }
810
810
  `];var Ye=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ge extends CustomEvent{constructor(){super("icon-click")}}class Qe extends St{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.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Mt};return q`
811
- <div class="${It(t)}"
811
+ <div class="${Lt(t)}"
812
812
  aria-label="${this.getLabel()}"
813
813
  tabindex="${this.interactionsOnChip?0:-1}"
814
814
  @keyup=${this.onKeyUp}>
@@ -826,11 +826,11 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
826
826
  icon="${this.internalIcon}"
827
827
  label="${this.iconLabel}"
828
828
  ></ft-button>
829
- `:q`
829
+ `:q`
830
830
  <div class="ft-chip--icon-container ft-no-text-select">
831
831
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
832
832
  </div>
833
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ge))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ge))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Qe.elementDefinitions={"ft-ripple":Vt,"ft-typography":pe,"ft-icon":me,"ft-button":We},Qe.styles=Xe,Ye([o({type:Boolean})],Qe.prototype,"highlighted",void 0),Ye([o({type:Boolean})],Qe.prototype,"removable",void 0),Ye([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ye([o({type:Boolean})],Qe.prototype,"clickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"iconClickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"dense",void 0),Ye([o({type:Boolean})],Qe.prototype,"multiLine",void 0),Ye([o()],Qe.prototype,"label",void 0),Ye([o()],Qe.prototype,"iconLabel",void 0),Ye([o()],Qe.prototype,"icon",void 0),Ye([o()],Qe.prototype,"iconVariant",void 0),Ye([o({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Ye([s("ft-typography slot")],Qe.prototype,"slottedContent",void 0),h("ft-chip")(Qe);const to={zIndex:bt.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:bt.extend("--ft-file-drop-hint-background-color",yt.colorSurface),hintColor:bt.extend("--ft-file-drop-hint-color",yt.colorPrimary),errorColor:bt.extend("--ft-file-drop-error-color",yt.colorError),borderRadius:bt.extend("--ft-file-drop-border-radius",yt.borderRadiusL),borderWidth:bt.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:bt.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:bt.extend("--ft-file-drop-visible-border-color",yt.colorOutline),activeBorderColor:bt.extend("--ft-file-drop-active-border-color",yt.colorPrimary)},io=g`
833
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ge))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ge))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Qe.elementDefinitions={"ft-ripple":Vt,"ft-typography":pe,"ft-icon":me,"ft-button":We},Qe.styles=Xe,Ye([o({type:Boolean})],Qe.prototype,"highlighted",void 0),Ye([o({type:Boolean})],Qe.prototype,"removable",void 0),Ye([o({type:Boolean})],Qe.prototype,"disabled",void 0),Ye([o({type:Boolean})],Qe.prototype,"clickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"iconClickable",void 0),Ye([o({type:Boolean})],Qe.prototype,"dense",void 0),Ye([o({type:Boolean})],Qe.prototype,"multiLine",void 0),Ye([o()],Qe.prototype,"label",void 0),Ye([o()],Qe.prototype,"iconLabel",void 0),Ye([o()],Qe.prototype,"icon",void 0),Ye([o()],Qe.prototype,"iconVariant",void 0),Ye([o({type:Boolean})],Qe.prototype,"trailingIcon",void 0),Ye([s("ft-typography slot")],Qe.prototype,"slottedContent",void 0),h("ft-chip")(Qe);const to={zIndex:bt.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:bt.extend("--ft-file-drop-hint-background-color",yt.colorSurface),hintColor:bt.extend("--ft-file-drop-hint-color",yt.colorPrimary),errorColor:bt.extend("--ft-file-drop-error-color",yt.colorError),borderRadius:bt.extend("--ft-file-drop-border-radius",yt.borderRadiusL),borderWidth:bt.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:bt.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:bt.extend("--ft-file-drop-visible-border-color",yt.colorOutline),activeBorderColor:bt.extend("--ft-file-drop-active-border-color",yt.colorPrimary)},io=g`
834
834
  :host {
835
835
  display: block;
836
836
  position: relative;
@@ -910,7 +910,7 @@ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},
910
910
  }
911
911
  `;var eo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class oo extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class no extends St{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return q`
912
912
  <div id="container"
913
- class="${It(t)}"
913
+ class="${Lt(t)}"
914
914
  @dragenter=${this.onDragEnter}
915
915
  @dragover=${this.onDragOver}
916
916
  @drop=${this.onDrop}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-file-drop",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Container that accepts dropping files",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.0.35",
23
- "@fluid-topics/ft-wc-utils": "1.0.35",
22
+ "@fluid-topics/ft-chip": "1.0.37",
23
+ "@fluid-topics/ft-wc-utils": "1.0.37",
24
24
  "lit": "2.7.2"
25
25
  },
26
- "gitHead": "9d95cd4787fe699293f52b43352ae1594811b081"
26
+ "gitHead": "abb2109b58b81de01332c9f036f5ff1df0861f8f"
27
27
  }