@fluid-topics/ft-button 1.2.46 → 1.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-button.light.js +13 -13
- package/build/ft-button.min.js +139 -139
- package/package.json +8 -8
package/build/ft-button.light.js
CHANGED
|
@@ -120,7 +120,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
120
120
|
line-height: ${o.lineHeight};
|
|
121
121
|
text-transform: ${o.textCase};
|
|
122
122
|
}
|
|
123
|
-
`}var Do=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ct=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ct,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Bt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Do),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},It={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Do),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},Pt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},
|
|
123
|
+
`}var Do=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ct=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ct,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Bt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Do),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit")},It={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Do),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit")},$t={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit")},Pt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit")},Wt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit")},kt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit")},zt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit")},Tt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit")},Ht={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ct),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase")},Uo=q.css`
|
|
124
124
|
.ft-typography--title {
|
|
125
125
|
font-family: ${Bt.fontFamily};
|
|
126
126
|
font-size: ${Bt.fontSize};
|
|
@@ -129,7 +129,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
129
129
|
line-height: ${Bt.lineHeight};
|
|
130
130
|
text-transform: ${Bt.textTransform};
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,Go=q.css`
|
|
133
133
|
.ft-typography--title-dense {
|
|
134
134
|
font-family: ${It.fontFamily};
|
|
135
135
|
font-size: ${It.fontSize};
|
|
@@ -480,7 +480,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
480
480
|
<div class="ft-ripple--background"></div>
|
|
481
481
|
<div class="ft-ripple--effect"></div>
|
|
482
482
|
</div>
|
|
483
|
-
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var n,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(n=this.target)===null||n===void 0||n.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,n;let i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((n=this.target)!==null&&n!==void 0?n:i)}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let n=(...p)=>y=>{p.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=n("mouseup","contextmenu"),c=n("touchend","touchcancel"),d=p=>{["Enter"," "].includes(p.key)&&n("keyup")(p)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",i,l),o.addEventListener("touchstart",c,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",d,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",i,l),o.removeEventListener("touchstart",c,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",d,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let n=o,i=o,c,d;return n.x!=null?{x:c,y:d}=n:i.touches!=null&&(c=i.touches[0].clientX,d=i.touches[0].clientY),{x:c,y:d}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let n of o.composedPath()){if(n===this.target)break;if("hasAttribute"in n&&n.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};A.elementDefinitions={};A.styles=yo;F([(0,D.property)({type:Boolean})],A.prototype,"primary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"secondary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"unbounded",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"activated",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"selected",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"disabled",void 0);F([(0,D.state)()],A.prototype,"hovered",void 0);F([(0,D.state)()],A.prototype,"focused",void 0);F([(0,D.state)()],A.prototype,"pressed",void 0);F([(0,D.state)()],A.prototype,"rippling",void 0);F([(0,D.state)()],A.prototype,"originX",void 0);F([(0,D.state)()],A.prototype,"originY",void 0);F([(0,D.query)(".ft-ripple")],A.prototype,"ripple",void 0);F([(0,D.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,sr.customElement)("ft-ripple")(A);var ra=S(R());var oa=S(M()),z=S(gt()),ae=S(R());var Rr=S(R());var Pe=globalThis,fe=Pe.trustedTypes,pr=fe?fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,hr="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,br="?"+ht,Na=`<${br}>`,wt=document,ye=()=>wt.createComment(""),qt=e=>e===null||typeof e!="object"&&typeof e!="function",We=Array.isArray,wa=e=>We(e)||typeof e?.[Symbol.iterator]=="function",Le=`[
|
|
483
|
+
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var n,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(n=this.target)===null||n===void 0||n.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,n;let i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((n=this.target)!==null&&n!==void 0?n:i)}forceFocusUpdate(){var o;!((o=this.target)===null||o===void 0)&&o.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let n=(...p)=>y=>{p.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=n("mouseup","contextmenu"),c=n("touchend","touchcancel"),d=p=>{["Enter"," "].includes(p.key)&&n("keyup")(p)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",i,l),o.addEventListener("touchstart",c,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",d,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",i,l),o.removeEventListener("touchstart",c,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",d,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let n=o,i=o,c,d;return n.x!=null?{x:c,y:d}=n:i.touches!=null&&(c=i.touches[0].clientX,d=i.touches[0].clientY),{x:c,y:d}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let n of o.composedPath()){if(n===this.target)break;if("hasAttribute"in n&&n.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};A.elementDefinitions={};A.styles=yo;F([(0,D.property)({type:Boolean})],A.prototype,"primary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"secondary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"unbounded",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"activated",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"selected",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"disabled",void 0);F([(0,D.state)()],A.prototype,"hovered",void 0);F([(0,D.state)()],A.prototype,"focused",void 0);F([(0,D.state)()],A.prototype,"pressed",void 0);F([(0,D.state)()],A.prototype,"rippling",void 0);F([(0,D.state)()],A.prototype,"originX",void 0);F([(0,D.state)()],A.prototype,"originY",void 0);F([(0,D.query)(".ft-ripple")],A.prototype,"ripple",void 0);F([(0,D.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,sr.customElement)("ft-ripple")(A);var ra=S(R());var oa=S(M()),z=S(gt()),ae=S(R());var Rr=S(R());var Pe=globalThis,fe=Pe.trustedTypes,pr=fe?fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,hr="$lit$",ht=`lit$${Math.random().toFixed(9).slice(2)}$`,br="?"+ht,Na=`<${br}>`,wt=document,ye=()=>wt.createComment(""),qt=e=>e===null||typeof e!="object"&&typeof e!="function",We=Array.isArray,wa=e=>We(e)||typeof e?.[Symbol.iterator]=="function",Le=`[
|
|
484
484
|
\f\r]`,Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fr=/-->/g,yr=/>/g,vt=RegExp(`>|${Le}(?:([^\\s"'>=/]+)(${Le}*=${Le}*(?:[^
|
|
485
485
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,gr=/"/g,xr=/^(?:script|style|textarea|title)$/i,ke=e=>(o,...n)=>({_$litType$:e,strings:o,values:n}),Sr=ke(1),Or=ke(2),Cr=ke(3),Qt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),mr=new WeakMap,Nt=wt.createTreeWalker(wt,129);function vr(e,o){if(!We(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pr!==void 0?pr.createHTML(o):o}var Ea=(e,o)=>{let n=e.length-1,i=[],c,d=o===2?"<svg>":o===3?"<math>":"",l=Xt;for(let p=0;p<n;p++){let y=e[p],h,O,b=-1,N=0;for(;N<y.length&&(l.lastIndex=N,O=l.exec(y),O!==null);)N=l.lastIndex,l===Xt?O[1]==="!--"?l=fr:O[1]!==void 0?l=yr:O[2]!==void 0?(xr.test(O[2])&&(c=RegExp("</"+O[2],"g")),l=vt):O[3]!==void 0&&(l=vt):l===vt?O[0]===">"?(l=c??Xt,b=-1):O[1]===void 0?b=-2:(b=l.lastIndex-O[2].length,h=O[1],l=O[3]===void 0?vt:O[3]==='"'?gr:ur):l===gr||l===ur?l=vt:l===fr||l===yr?l=Xt:(l=vt,c=void 0);let v=l===vt&&e[p+1].startsWith("/>")?" ":"";d+=l===Xt?y+Na:b>=0?(i.push(h),y.slice(0,b)+hr+y.slice(b)+ht+v):y+ht+(b===-2?p:v)}return[vr(e,d+(e[n]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},Jt=class e{constructor({strings:o,_$litType$:n},i){let c;this.parts=[];let d=0,l=0,p=o.length-1,y=this.parts,[h,O]=Ea(o,n);if(this.el=e.createElement(h,i),Nt.currentNode=this.el.content,n===2||n===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=Nt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(hr)){let N=O[l++],v=c.getAttribute(b).split(ht),w=/([.?@])?(.*)/.exec(N);y.push({type:1,index:d,name:w[2],strings:v,ctor:w[1]==="."?Ae:w[1]==="?"?Be:w[1]==="@"?Ie:Dt}),c.removeAttribute(b)}else b.startsWith(ht)&&(y.push({type:6,index:d}),c.removeAttribute(b));if(xr.test(c.tagName)){let b=c.textContent.split(ht),N=b.length-1;if(N>0){c.textContent=fe?fe.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],ye()),Nt.nextNode(),y.push({type:2,index:++d});c.append(b[N],ye())}}}else if(c.nodeType===8)if(c.data===br)y.push({type:2,index:d});else{let b=-1;for(;(b=c.data.indexOf(ht,b+1))!==-1;)y.push({type:7,index:d}),b+=ht.length-1}d++}}static createElement(o,n){let i=wt.createElement("template");return i.innerHTML=o,i}};function _t(e,o,n=e,i){if(o===Qt)return o;let c=i!==void 0?n._$Co?.[i]:n._$Cl,d=qt(o)?void 0:o._$litDirective$;return c?.constructor!==d&&(c?._$AO?.(!1),d===void 0?c=void 0:(c=new d(e),c._$AT(e,n,i)),i!==void 0?(n._$Co??=[])[i]=c:n._$Cl=c),c!==void 0&&(o=_t(e,c._$AS(e,o.values),c,i)),o}var Re=class{constructor(o,n){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:n},parts:i}=this._$AD,c=(o?.creationScope??wt).importNode(n,!0);Nt.currentNode=c;let d=Nt.nextNode(),l=0,p=0,y=i[0];for(;y!==void 0;){if(l===y.index){let h;y.type===2?h=new ue(d,d.nextSibling,this,o):y.type===1?h=new y.ctor(d,y.name,y.strings,this,o):y.type===6&&(h=new $e(d,this,o)),this._$AV.push(h),y=i[++p]}l!==y?.index&&(d=Nt.nextNode(),l++)}return Nt.currentNode=wt,c}p(o){let n=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,n),n+=i.strings.length-2):i._$AI(o[n])),n++}},ue=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,n,i,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=n,this._$AM=i,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,n=this._$AM;return n!==void 0&&o?.nodeType===11&&(o=n.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,n=this){o=_t(this,o,n),qt(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Qt&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):wa(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&qt(this._$AH)?this._$AA.nextSibling.data=o:this.T(wt.createTextNode(o)),this._$AH=o}$(o){let{values:n,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=Jt.createElement(vr(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(n);else{let d=new Re(c,this),l=d.u(this.options);d.p(n),this.T(l),this._$AH=d}}_$AC(o){let n=mr.get(o.strings);return n===void 0&&mr.set(o.strings,n=new Jt(o)),n}k(o){We(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,i,c=0;for(let d of o)c===n.length?n.push(i=new e(this.O(ye()),this.O(ye()),this,this.options)):i=n[c],i._$AI(d),c++;c<n.length&&(this._$AR(i&&i._$AB.nextSibling,c),n.length=c)}_$AR(o=this._$AA.nextSibling,n){for(this._$AP?.(!1,!0,n);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Dt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,n,i,c,d){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=n,this._$AM=c,this.options=d,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(o,n=this,i,c){let d=this.strings,l=!1;if(d===void 0)o=_t(this,o,n,0),l=!qt(o)||o!==this._$AH&&o!==Qt,l&&(this._$AH=o);else{let p=o,y,h;for(o=d[0],y=0;y<d.length-1;y++)h=_t(this,p[i+y],n,y),h===Qt&&(h=this._$AH[y]),l||=!qt(h)||h!==this._$AH[y],h===_?o=_:o!==_&&(o+=(h??"")+d[y+1]),this._$AH[y]=h}l&&!c&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ae=class extends Dt{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}},Be=class extends Dt{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}},Ie=class extends Dt{constructor(o,n,i,c,d){super(o,n,i,c,d),this.type=5}_$AI(o,n=this){if((o=_t(this,o,n,0)??_)===Qt)return;let i=this._$AH,c=o===_&&i!==_||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,d=o!==_&&(i===_||c);c&&this.element.removeEventListener(this.name,this,i),d&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},$e=class{constructor(o,n,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){_t(this,o)}};var La=Pe.litHtmlPolyfillSupport;La?.(Jt,ue),(Pe.litHtmlVersions??=[]).push("3.3.0");var wr=Symbol.for(""),Ra=e=>{if(e?.r===wr)return e?._$litStatic$},ze=e=>({_$litStatic$:e,r:wr});var Nr=new Map,Te=e=>(o,...n)=>{let i=n.length,c,d,l=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(d=n[h],(c=Ra(d))!==void 0);)y+=c+o[++h],O=!0;h!==i&&p.push(d),l.push(y),h++}if(h===i&&l.push(o[i]),O){let b=l.join("$$lit$$");(o=Nr.get(b))===void 0&&(l.raw=l,Nr.set(b,o=l)),n=p}return e(o,...n)},He=Te(Sr),Ad=Te(Or),Bd=Te(Cr);var _e=S(gt()),Lr=S(R());var bt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(bt||(bt={}));var Er=function(e,o,n,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,n,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,n,d):l(o,n))||d);return c>3&&d&&Object.defineProperty(o,n,d),d},J=class extends Lr.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?He`
|
|
486
486
|
<${ze(this.element)}
|
|
@@ -490,7 +490,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
490
490
|
</${ze(this.element)}>
|
|
491
491
|
`:He`
|
|
492
492
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
493
|
-
`}};J.styles=[Go,
|
|
493
|
+
`}};J.styles=[Uo,Go,Zo,Mo,Ko,Fo,Vo,jo,Yo,Xo,qo,...Qo];Er([(0,_e.property)()],J.prototype,"element",void 0);Er([(0,_e.property)()],J.prototype,"variant",void 0);(0,Rr.customElement)("ft-typography")(J);var Ar=S(M()),lt=S(R()),Ut={distance:lt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:lt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:lt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:lt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:lt.FtCssVariableFactory.external(lt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:lt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Br=Ar.css`
|
|
494
494
|
.ft-tooltip--container {
|
|
495
495
|
display: block;
|
|
496
496
|
}
|
|
@@ -505,21 +505,21 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
505
505
|
box-sizing: border-box;
|
|
506
506
|
overflow: hidden;
|
|
507
507
|
width: max-content;
|
|
508
|
-
max-width: ${
|
|
508
|
+
max-width: ${Ut.maxWidth};
|
|
509
509
|
text-align: center;
|
|
510
|
-
padding: ${
|
|
511
|
-
z-index: ${
|
|
510
|
+
padding: ${Ut.distance};
|
|
511
|
+
z-index: ${Ut.zIndex};
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
.ft-tooltip--content {
|
|
515
515
|
padding: 4px 8px;
|
|
516
|
-
border-radius: ${
|
|
517
|
-
background-color: ${
|
|
518
|
-
color: ${
|
|
516
|
+
border-radius: ${Ut.borderRadiusS};
|
|
517
|
+
background-color: ${Ut.backgroundColor};
|
|
518
|
+
color: ${Ut.color};
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var $r=["top","right","bottom","left"],Ir=["start","end"],Ge=$r.reduce((e,o)=>e.concat(o,o+"-"+Ir[0],o+"-"+Ir[1]),[]),Pr=Math.min,Wr=Math.max;var Aa={left:"right",right:"left",bottom:"top",top:"bottom"},Ba={start:"end",end:"start"};function Ue(e,o,n){return Wr(e,Pr(o,n))}function ge(e,o){return typeof e=="function"?e(o):e}function Ut(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Ze(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}function me(e){return["top","bottom"].includes(Ut(e))?"y":"x"}function Ke(e){return Ze(me(e))}function kr(e,o,n){n===void 0&&(n=!1);let i=xt(e),c=Ke(e),d=Me(c),l=c==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(l=De(l)),[l,De(l)]}function zr(e){return e.replace(/start|end/g,o=>Ba[o])}function De(e){return e.replace(/left|right|bottom|top/g,o=>Aa[o])}function Ia(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tr(e){return typeof e!="number"?Ia(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:o,y:n,width:i,height:c}=e;return{width:i,height:c,top:n,left:o,right:o+i,bottom:n+c,x:o,y:n}}function Hr(e,o,n){let{reference:i,floating:c}=e,d=me(o),l=Ke(o),p=Me(l),y=Ut(o),h=d==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(xt(o)){case"start":v[l]-=N*(n&&h?-1:1);break;case"end":v[l]+=N*(n&&h?-1:1);break}return v}var _r=async(e,o,n)=>{let{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:l}=n,p=d.filter(Boolean),y=await(l.isRTL==null?void 0:l.isRTL(o)),h=await l.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Hr(h,i,y),N=i,v={},w=0;for(let I=0;I<p.length;I++){let{name:W,fn:$}=p[I],{x:k,y:Z,data:ut,reset:U}=await $({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:l,elements:{reference:e,floating:o}});O=k??O,b=Z??b,v={...v,[W]:{...v[W],...ut}},U&&w<=50&&(w++,typeof U=="object"&&(U.placement&&(N=U.placement),U.rects&&(h=U.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:c}):U.rects),{x:O,y:b}=Hr(h,N,y)),I=-1)}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Fe(e,o){var n;o===void 0&&(o={});let{x:i,y:c,platform:d,rects:l,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=ge(o,e),w=Tr(v),W=p[N?b==="floating"?"reference":"floating":b],$=Et(await d.getClippingRect({element:(n=await(d.isElement==null?void 0:d.isElement(W)))==null||n?W:W.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{x:i,y:c,width:l.floating.width,height:l.floating.height}:l.reference,Z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),ut=await(d.isElement==null?void 0:d.isElement(Z))?await(d.getScale==null?void 0:d.getScale(Z))||{x:1,y:1}:{x:1,y:1},U=Et(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:k,offsetParent:Z,strategy:y}):k);return{top:($.top-U.top+w.top)/ut.y,bottom:(U.bottom-$.bottom+w.bottom)/ut.y,left:($.left-U.left+w.left)/ut.x,right:(U.right-$.right+w.right)/ut.x}}function $a(e,o,n){return(e?[...n.filter(c=>xt(c)===e),...n.filter(c=>xt(c)!==e)]:n.filter(c=>Ut(c)===c)).filter(c=>e?xt(c)===e||(o?zr(c)!==c:!1):!0)}var Ve=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,i,c;let{rects:d,middlewareData:l,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ge,autoAlignment:v=!0,...w}=ge(e,o),I=b!==void 0||N===Ge?$a(b||null,v,N):N,W=await Fe(o,w),$=((n=l.autoPlacement)==null?void 0:n.index)||0,k=I[$];if(k==null)return{};let Z=kr(k,d,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:I[0]}};let ut=[W[Ut(k)],W[Z[0]],W[Z[1]]],U=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ut}],Je=I[$+1];if(Je)return{data:{index:$+1,overflows:U},reset:{placement:Je}};let to=U.map(et=>{let Ft=xt(et.placement);return[et.placement,Ft&&O?et.overflows.slice(0,2).reduce((ga,ma)=>ga+ma,0):et.overflows[0],et.overflows]}).sort((et,Ft)=>et[1]-Ft[1]),eo=((c=to.filter(et=>et[2].slice(0,xt(et[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:c[0])||to[0][0];return eo!==p?{data:{index:$+1,overflows:U},reset:{placement:eo}}:{}}}};var je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:i,placement:c}=o,{mainAxis:d=!0,crossAxis:l=!1,limiter:p={fn:W=>{let{x:$,y:k}=W;return{x:$,y:k}}},...y}=ge(e,o),h={x:n,y:i},O=await Fe(o,y),b=me(Ut(c)),N=Ze(b),v=h[N],w=h[b];if(d){let W=N==="y"?"top":"left",$=N==="y"?"bottom":"right",k=v+O[W],Z=v-O[$];v=Ue(k,v,Z)}if(l){let W=b==="y"?"top":"left",$=b==="y"?"bottom":"right",k=w+O[W],Z=w-O[$];w=Ue(k,w,Z)}let I=p.fn({...o,[N]:v,[b]:w});return{...I,data:{x:I.x-n,y:I.y-i,enabled:{[N]:d,[b]:l}}}}}};var Ye=Math.min,Zt=Math.max,te=Math.round;var dt=e=>({x:e,y:e});function st(e){return Gr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function pt(e){var o;return(o=(Gr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Gr(e){return e instanceof Node||e instanceof V(e).Node}function at(e){return e instanceof Element||e instanceof V(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Dr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:n,overflowY:i,display:c}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+n)&&!["inline","contents"].includes(c)}function Ur(e){return["table","td","th"].includes(st(e))}function be(e){let o=xe(),n=Y(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Zr(e){let o=Lt(e);for(;tt(o)&&!ee(o);){if(be(o))return o;o=Lt(o)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ee(e){return["html","body","#document"].includes(st(e))}function Y(e){return V(e).getComputedStyle(e)}function oe(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(st(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Dr(e)&&e.host||pt(e);return Dr(o)?o.host:o}function Mr(e){let o=Lt(e);return ee(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Mt(o)?o:Mr(o)}function he(e,o,n){var i;o===void 0&&(o=[]),n===void 0&&(n=!0);let c=Mr(e),d=c===((i=e.ownerDocument)==null?void 0:i.body),l=V(c);return d?o.concat(l,l.visualViewport||[],Mt(c)?c:[],l.frameElement&&n?he(l.frameElement):[]):o.concat(c,he(c,[],n))}function Vr(e){let o=Y(e),n=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),d=c?e.offsetWidth:n,l=c?e.offsetHeight:i,p=te(n)!==d||te(i)!==l;return p&&(n=d,i=l),{width:n,height:i,$:p}}function jr(e){return at(e)?e:e.contextElement}function Kt(e){let o=jr(e);if(!tt(o))return dt(1);let n=o.getBoundingClientRect(),{width:i,height:c,$:d}=Vr(o),l=(d?te(n.width):n.width)/i,p=(d?te(n.height):n.height)/c;return(!l||!Number.isFinite(l))&&(l=1),(!p||!Number.isFinite(p))&&(p=1),{x:l,y:p}}var ka=dt(0);function Yr(e){let o=V(e);return!xe()||!o.visualViewport?ka:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function za(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==V(e)?!1:o}function re(e,o,n,i){o===void 0&&(o=!1),n===void 0&&(n=!1);let c=e.getBoundingClientRect(),d=jr(e),l=dt(1);o&&(i?at(i)&&(l=Kt(i)):l=Kt(e));let p=za(d,n,i)?Yr(d):dt(0),y=(c.left+p.x)/l.x,h=(c.top+p.y)/l.y,O=c.width/l.x,b=c.height/l.y;if(d){let N=V(d),v=i&&at(i)?V(i):i,w=N.frameElement;for(;w&&i&&v!==N;){let I=Kt(w),W=w.getBoundingClientRect(),$=Y(w),k=W.left+(w.clientLeft+parseFloat($.paddingLeft))*I.x,Z=W.top+(w.clientTop+parseFloat($.paddingTop))*I.y;y*=I.x,h*=I.y,O*=I.x,b*=I.y,y+=k,h+=Z,w=V(w).frameElement}}return Et({width:O,height:b,x:y,y:h})}function Ta(e){let{rect:o,offsetParent:n,strategy:i}=e,c=tt(n),d=pt(n);if(n===d)return o;let l={scrollLeft:0,scrollTop:0},p=dt(1),y=dt(0);if((c||!c&&i!=="fixed")&&((st(n)!=="body"||Mt(d))&&(l=oe(n)),tt(n))){let h=re(n);p=Kt(n),y.x=h.x+n.clientLeft,y.y=h.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-l.scrollLeft*p.x+y.x,y:o.y*p.y-l.scrollTop*p.y+y.y}}function Ha(e){return Array.from(e.getClientRects())}function Xr(e){return re(pt(e)).left+oe(e).scrollLeft}function _a(e){let o=pt(e),n=oe(e),i=e.ownerDocument.body,c=Zt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=Zt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+Xr(e),p=-n.scrollTop;return Y(i).direction==="rtl"&&(l+=Zt(o.clientWidth,i.clientWidth)-c),{width:c,height:d,x:l,y:p}}function Da(e,o){let n=V(e),i=pt(e),c=n.visualViewport,d=i.clientWidth,l=i.clientHeight,p=0,y=0;if(c){d=c.width,l=c.height;let h=xe();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:d,height:l,x:p,y}}function Ga(e,o){let n=re(e,!0,o==="fixed"),i=n.top+e.clientTop,c=n.left+e.clientLeft,d=tt(e)?Kt(e):dt(1),l=e.clientWidth*d.x,p=e.clientHeight*d.y,y=c*d.x,h=i*d.y;return{width:l,height:p,x:y,y:h}}function Kr(e,o,n){let i;if(o==="viewport")i=Da(e,n);else if(o==="document")i=_a(pt(e));else if(at(o))i=Ga(o,n);else{let c=Yr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return Et(i)}function qr(e,o){let n=Lt(e);return n===o||!at(n)||ee(n)?!1:Y(n).position==="fixed"||qr(n,o)}function Ua(e,o){let n=o.get(e);if(n)return n;let i=he(e,[],!1).filter(p=>at(p)&&st(p)!=="body"),c=null,d=Y(e).position==="fixed",l=d?Lt(e):e;for(;at(l)&&!ee(l);){let p=Y(l),y=be(l);!y&&p.position==="fixed"&&(c=null),(d?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Mt(l)&&!y&&qr(e,l))?i=i.filter(O=>O!==l):c=p,l=Lt(l)}return o.set(e,i),i}function Za(e){let{element:o,boundary:n,rootBoundary:i,strategy:c}=e,l=[...n==="clippingAncestors"?Ua(o,this._c):[].concat(n),i],p=l[0],y=l.reduce((h,O)=>{let b=Kr(o,O,c);return h.top=Zt(b.top,h.top),h.right=Ye(b.right,h.right),h.bottom=Ye(b.bottom,h.bottom),h.left=Zt(b.left,h.left),h},Kr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ma(e){return Vr(e)}function Ka(e,o,n){let i=tt(o),c=pt(o),d=n==="fixed",l=re(e,!0,d,o),p={scrollLeft:0,scrollTop:0},y=dt(0);if(i||!i&&!d)if((st(o)!=="body"||Mt(c))&&(p=oe(o)),i){let h=re(o,!0,d,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=Xr(c));return{x:l.left+p.scrollLeft-y.x,y:l.top+p.scrollTop-y.y,width:l.width,height:l.height}}function Fr(e,o){return!tt(e)||Y(e).position==="fixed"?null:o?o(e):e.offsetParent}function Qr(e,o){let n=V(e);if(!tt(e))return n;let i=Fr(e,o);for(;i&&Ur(i)&&Y(i).position==="static";)i=Fr(i,o);return i&&(st(i)==="html"||st(i)==="body"&&Y(i).position==="static"&&!be(i))?n:i||Zr(e)||n}var Fa=async function(e){let{reference:o,floating:n,strategy:i}=e,c=this.getOffsetParent||Qr,d=this.getDimensions;return{reference:Ka(o,await c(n),i),floating:{x:0,y:0,...await d(n)}}};function Va(e){return Y(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:Ta,getDocumentElement:pt,getClippingRect:Za,getOffsetParent:Qr,getElementRects:Fa,getClientRects:Ha,getDimensions:Ma,getScale:Kt,isElement:at,isRTL:Va};var Jr=(e,o,n)=>{let i=new Map,c={platform:Se,...n},d={...c.platform,_c:i};return _r(e,o,{...c,platform:d})};function ta(e){return ja(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ja(e){for(let o=e;o;o=Xe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Xe(e);o;o=Xe(o)){if(!(o instanceof Element))continue;let n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ea(e,o,n){return Jr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,ta)},middleware:[je({crossAxis:!0}),Ve({allowedPlacements:[n]})]})}var j=function(e,o,n,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,n,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,n,d):l(o,n))||d);return c>3&&d&&Object.defineProperty(o,n,d),d},B=class extends ae.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae.Debouncer,this.revealDebouncer=new ae.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oa.html`
|
|
522
|
+
`;var $r=["top","right","bottom","left"],Ir=["start","end"],Ue=$r.reduce((e,o)=>e.concat(o,o+"-"+Ir[0],o+"-"+Ir[1]),[]),Pr=Math.min,Wr=Math.max;var Aa={left:"right",right:"left",bottom:"top",top:"bottom"},Ba={start:"end",end:"start"};function Ge(e,o,n){return Wr(e,Pr(o,n))}function ge(e,o){return typeof e=="function"?e(o):e}function Gt(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Ze(e){return e==="x"?"y":"x"}function Me(e){return e==="y"?"height":"width"}function me(e){return["top","bottom"].includes(Gt(e))?"y":"x"}function Ke(e){return Ze(me(e))}function kr(e,o,n){n===void 0&&(n=!1);let i=xt(e),c=Ke(e),d=Me(c),l=c==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(l=De(l)),[l,De(l)]}function zr(e){return e.replace(/start|end/g,o=>Ba[o])}function De(e){return e.replace(/left|right|bottom|top/g,o=>Aa[o])}function Ia(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tr(e){return typeof e!="number"?Ia(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:o,y:n,width:i,height:c}=e;return{width:i,height:c,top:n,left:o,right:o+i,bottom:n+c,x:o,y:n}}function Hr(e,o,n){let{reference:i,floating:c}=e,d=me(o),l=Ke(o),p=Me(l),y=Gt(o),h=d==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(xt(o)){case"start":v[l]-=N*(n&&h?-1:1);break;case"end":v[l]+=N*(n&&h?-1:1);break}return v}var _r=async(e,o,n)=>{let{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:l}=n,p=d.filter(Boolean),y=await(l.isRTL==null?void 0:l.isRTL(o)),h=await l.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Hr(h,i,y),N=i,v={},w=0;for(let I=0;I<p.length;I++){let{name:W,fn:$}=p[I],{x:k,y:Z,data:ut,reset:G}=await $({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:l,elements:{reference:e,floating:o}});O=k??O,b=Z??b,v={...v,[W]:{...v[W],...ut}},G&&w<=50&&(w++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(h=G.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:c}):G.rects),{x:O,y:b}=Hr(h,N,y)),I=-1)}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Fe(e,o){var n;o===void 0&&(o={});let{x:i,y:c,platform:d,rects:l,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=ge(o,e),w=Tr(v),W=p[N?b==="floating"?"reference":"floating":b],$=Et(await d.getClippingRect({element:(n=await(d.isElement==null?void 0:d.isElement(W)))==null||n?W:W.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{x:i,y:c,width:l.floating.width,height:l.floating.height}:l.reference,Z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p.floating)),ut=await(d.isElement==null?void 0:d.isElement(Z))?await(d.getScale==null?void 0:d.getScale(Z))||{x:1,y:1}:{x:1,y:1},G=Et(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:k,offsetParent:Z,strategy:y}):k);return{top:($.top-G.top+w.top)/ut.y,bottom:(G.bottom-$.bottom+w.bottom)/ut.y,left:($.left-G.left+w.left)/ut.x,right:(G.right-$.right+w.right)/ut.x}}function $a(e,o,n){return(e?[...n.filter(c=>xt(c)===e),...n.filter(c=>xt(c)!==e)]:n.filter(c=>Gt(c)===c)).filter(c=>e?xt(c)===e||(o?zr(c)!==c:!1):!0)}var Ve=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,i,c;let{rects:d,middlewareData:l,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ue,autoAlignment:v=!0,...w}=ge(e,o),I=b!==void 0||N===Ue?$a(b||null,v,N):N,W=await Fe(o,w),$=((n=l.autoPlacement)==null?void 0:n.index)||0,k=I[$];if(k==null)return{};let Z=kr(k,d,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:I[0]}};let ut=[W[Gt(k)],W[Z[0]],W[Z[1]]],G=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ut}],Je=I[$+1];if(Je)return{data:{index:$+1,overflows:G},reset:{placement:Je}};let to=G.map(et=>{let Ft=xt(et.placement);return[et.placement,Ft&&O?et.overflows.slice(0,2).reduce((ga,ma)=>ga+ma,0):et.overflows[0],et.overflows]}).sort((et,Ft)=>et[1]-Ft[1]),eo=((c=to.filter(et=>et[2].slice(0,xt(et[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:c[0])||to[0][0];return eo!==p?{data:{index:$+1,overflows:G},reset:{placement:eo}}:{}}}};var je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:i,placement:c}=o,{mainAxis:d=!0,crossAxis:l=!1,limiter:p={fn:W=>{let{x:$,y:k}=W;return{x:$,y:k}}},...y}=ge(e,o),h={x:n,y:i},O=await Fe(o,y),b=me(Gt(c)),N=Ze(b),v=h[N],w=h[b];if(d){let W=N==="y"?"top":"left",$=N==="y"?"bottom":"right",k=v+O[W],Z=v-O[$];v=Ge(k,v,Z)}if(l){let W=b==="y"?"top":"left",$=b==="y"?"bottom":"right",k=w+O[W],Z=w-O[$];w=Ge(k,w,Z)}let I=p.fn({...o,[N]:v,[b]:w});return{...I,data:{x:I.x-n,y:I.y-i,enabled:{[N]:d,[b]:l}}}}}};var Ye=Math.min,Zt=Math.max,te=Math.round;var dt=e=>({x:e,y:e});function st(e){return Ur(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function pt(e){var o;return(o=(Ur(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Ur(e){return e instanceof Node||e instanceof V(e).Node}function at(e){return e instanceof Element||e instanceof V(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Dr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:n,overflowY:i,display:c}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+n)&&!["inline","contents"].includes(c)}function Gr(e){return["table","td","th"].includes(st(e))}function be(e){let o=xe(),n=Y(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function Zr(e){let o=Lt(e);for(;tt(o)&&!ee(o);){if(be(o))return o;o=Lt(o)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ee(e){return["html","body","#document"].includes(st(e))}function Y(e){return V(e).getComputedStyle(e)}function oe(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(st(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Dr(e)&&e.host||pt(e);return Dr(o)?o.host:o}function Mr(e){let o=Lt(e);return ee(o)?e.ownerDocument?e.ownerDocument.body:e.body:tt(o)&&Mt(o)?o:Mr(o)}function he(e,o,n){var i;o===void 0&&(o=[]),n===void 0&&(n=!0);let c=Mr(e),d=c===((i=e.ownerDocument)==null?void 0:i.body),l=V(c);return d?o.concat(l,l.visualViewport||[],Mt(c)?c:[],l.frameElement&&n?he(l.frameElement):[]):o.concat(c,he(c,[],n))}function Vr(e){let o=Y(e),n=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),d=c?e.offsetWidth:n,l=c?e.offsetHeight:i,p=te(n)!==d||te(i)!==l;return p&&(n=d,i=l),{width:n,height:i,$:p}}function jr(e){return at(e)?e:e.contextElement}function Kt(e){let o=jr(e);if(!tt(o))return dt(1);let n=o.getBoundingClientRect(),{width:i,height:c,$:d}=Vr(o),l=(d?te(n.width):n.width)/i,p=(d?te(n.height):n.height)/c;return(!l||!Number.isFinite(l))&&(l=1),(!p||!Number.isFinite(p))&&(p=1),{x:l,y:p}}var ka=dt(0);function Yr(e){let o=V(e);return!xe()||!o.visualViewport?ka:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function za(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==V(e)?!1:o}function re(e,o,n,i){o===void 0&&(o=!1),n===void 0&&(n=!1);let c=e.getBoundingClientRect(),d=jr(e),l=dt(1);o&&(i?at(i)&&(l=Kt(i)):l=Kt(e));let p=za(d,n,i)?Yr(d):dt(0),y=(c.left+p.x)/l.x,h=(c.top+p.y)/l.y,O=c.width/l.x,b=c.height/l.y;if(d){let N=V(d),v=i&&at(i)?V(i):i,w=N.frameElement;for(;w&&i&&v!==N;){let I=Kt(w),W=w.getBoundingClientRect(),$=Y(w),k=W.left+(w.clientLeft+parseFloat($.paddingLeft))*I.x,Z=W.top+(w.clientTop+parseFloat($.paddingTop))*I.y;y*=I.x,h*=I.y,O*=I.x,b*=I.y,y+=k,h+=Z,w=V(w).frameElement}}return Et({width:O,height:b,x:y,y:h})}function Ta(e){let{rect:o,offsetParent:n,strategy:i}=e,c=tt(n),d=pt(n);if(n===d)return o;let l={scrollLeft:0,scrollTop:0},p=dt(1),y=dt(0);if((c||!c&&i!=="fixed")&&((st(n)!=="body"||Mt(d))&&(l=oe(n)),tt(n))){let h=re(n);p=Kt(n),y.x=h.x+n.clientLeft,y.y=h.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-l.scrollLeft*p.x+y.x,y:o.y*p.y-l.scrollTop*p.y+y.y}}function Ha(e){return Array.from(e.getClientRects())}function Xr(e){return re(pt(e)).left+oe(e).scrollLeft}function _a(e){let o=pt(e),n=oe(e),i=e.ownerDocument.body,c=Zt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=Zt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),l=-n.scrollLeft+Xr(e),p=-n.scrollTop;return Y(i).direction==="rtl"&&(l+=Zt(o.clientWidth,i.clientWidth)-c),{width:c,height:d,x:l,y:p}}function Da(e,o){let n=V(e),i=pt(e),c=n.visualViewport,d=i.clientWidth,l=i.clientHeight,p=0,y=0;if(c){d=c.width,l=c.height;let h=xe();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:d,height:l,x:p,y}}function Ua(e,o){let n=re(e,!0,o==="fixed"),i=n.top+e.clientTop,c=n.left+e.clientLeft,d=tt(e)?Kt(e):dt(1),l=e.clientWidth*d.x,p=e.clientHeight*d.y,y=c*d.x,h=i*d.y;return{width:l,height:p,x:y,y:h}}function Kr(e,o,n){let i;if(o==="viewport")i=Da(e,n);else if(o==="document")i=_a(pt(e));else if(at(o))i=Ua(o,n);else{let c=Yr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return Et(i)}function qr(e,o){let n=Lt(e);return n===o||!at(n)||ee(n)?!1:Y(n).position==="fixed"||qr(n,o)}function Ga(e,o){let n=o.get(e);if(n)return n;let i=he(e,[],!1).filter(p=>at(p)&&st(p)!=="body"),c=null,d=Y(e).position==="fixed",l=d?Lt(e):e;for(;at(l)&&!ee(l);){let p=Y(l),y=be(l);!y&&p.position==="fixed"&&(c=null),(d?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Mt(l)&&!y&&qr(e,l))?i=i.filter(O=>O!==l):c=p,l=Lt(l)}return o.set(e,i),i}function Za(e){let{element:o,boundary:n,rootBoundary:i,strategy:c}=e,l=[...n==="clippingAncestors"?Ga(o,this._c):[].concat(n),i],p=l[0],y=l.reduce((h,O)=>{let b=Kr(o,O,c);return h.top=Zt(b.top,h.top),h.right=Ye(b.right,h.right),h.bottom=Ye(b.bottom,h.bottom),h.left=Zt(b.left,h.left),h},Kr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ma(e){return Vr(e)}function Ka(e,o,n){let i=tt(o),c=pt(o),d=n==="fixed",l=re(e,!0,d,o),p={scrollLeft:0,scrollTop:0},y=dt(0);if(i||!i&&!d)if((st(o)!=="body"||Mt(c))&&(p=oe(o)),i){let h=re(o,!0,d,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=Xr(c));return{x:l.left+p.scrollLeft-y.x,y:l.top+p.scrollTop-y.y,width:l.width,height:l.height}}function Fr(e,o){return!tt(e)||Y(e).position==="fixed"?null:o?o(e):e.offsetParent}function Qr(e,o){let n=V(e);if(!tt(e))return n;let i=Fr(e,o);for(;i&&Gr(i)&&Y(i).position==="static";)i=Fr(i,o);return i&&(st(i)==="html"||st(i)==="body"&&Y(i).position==="static"&&!be(i))?n:i||Zr(e)||n}var Fa=async function(e){let{reference:o,floating:n,strategy:i}=e,c=this.getOffsetParent||Qr,d=this.getDimensions;return{reference:Ka(o,await c(n),i),floating:{x:0,y:0,...await d(n)}}};function Va(e){return Y(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:Ta,getDocumentElement:pt,getClippingRect:Za,getOffsetParent:Qr,getElementRects:Fa,getClientRects:Ha,getDimensions:Ma,getScale:Kt,isElement:at,isRTL:Va};var Jr=(e,o,n)=>{let i=new Map,c={platform:Se,...n},d={...c.platform,_c:i};return _r(e,o,{...c,platform:d})};function ta(e){return ja(e)}function Xe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ja(e){for(let o=e;o;o=Xe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Xe(e);o;o=Xe(o)){if(!(o instanceof Element))continue;let n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ea(e,o,n){return Jr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,ta)},middleware:[je({crossAxis:!0}),Ve({allowedPlacements:[n]})]})}var j=function(e,o,n,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,n,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,n,d):l(o,n))||d);return c>3&&d&&Object.defineProperty(o,n,d),d},B=class extends ae.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae.Debouncer,this.revealDebouncer=new ae.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return oa.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};Rt.styles=tr;(0,pa.customElement)("ft-loader")(Rt);var Ot=S(M()),qe=S(Ee()),T=S(gt()),
|
|
552
|
+
`}};Rt.styles=tr;(0,pa.customElement)("ft-loader")(Rt);var Ot=S(M()),qe=S(Ee()),T=S(gt()),U=function(e,o,n,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,n,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,n,d):l(o,n))||d);return c>3&&d&&Object.defineProperty(o,n,d),d},L=class extends(0,Ct.toFtFormComponent)(Ct.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var n;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((n=this.form)===null||n===void 0||n.requestSubmit())})}render(){var o,n,i;let c=Ot.html`
|
|
553
553
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
555
|
variant=${this.typographyVariant}
|
|
@@ -586,7 +586,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
586
586
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
587
|
`:Ot.html`
|
|
588
588
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":J,"ft-icon":X,"ft-loader":Rt};
|
|
589
|
+
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":J,"ft-icon":X,"ft-loader":Rt};U([(0,T.property)()],L.prototype,"href",void 0);U([(0,T.property)()],L.prototype,"target",void 0);U([(0,T.property)({type:String,reflect:!0})],L.prototype,"role",void 0);U([(0,T.property)()],L.prototype,"type",void 0);U([(0,T.property)({type:Boolean})],L.prototype,"disabled",void 0);U([(0,T.property)()],L.prototype,"label",void 0);U([(0,T.property)()],L.prototype,"icon",void 0);U([(0,T.property)()],L.prototype,"iconVariant",void 0);U([(0,T.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);U([(0,T.property)({type:Boolean})],L.prototype,"loading",void 0);U([(0,T.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);U([(0,T.property)()],L.prototype,"tooltipPosition",void 0);U([(0,T.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);U([(0,T.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);U([(0,T.query)(".ft-button")],L.prototype,"button",void 0);U([(0,T.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);U([(0,T.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var Ce=function(e,o,n,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,n):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,n,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,n,d):l(o,n))||d);return c>3&&d&&Object.defineProperty(o,n,d),d},ft=class extends L{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}};ft.styles=[fa.safariEllipsisFix,ir];Ce([(0,ce.property)({type:Boolean})],ft.prototype,"primary",void 0);Ce([(0,ce.property)({type:Boolean})],ft.prototype,"outlined",void 0);Ce([(0,ce.property)({type:Boolean})],ft.prototype,"dense",void 0);Ce([(0,ce.property)({type:Boolean})],ft.prototype,"round",void 0);var le=S(gt());var Ne=S(R());var ya=S(M()),f=S(R());var ua=[ya.css`
|
|
590
590
|
:host {
|
|
591
591
|
display: inline-block;
|
|
592
592
|
max-width: 100%;
|