@fluid-topics/ft-button 1.2.60 → 1.2.62

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.
@@ -34,6 +34,7 @@ export declare class FtBaseButton extends FtBaseButton_base implements FtBaseBut
34
34
  tooltipPosition: Position;
35
35
  hideTooltip: boolean;
36
36
  forceTooltip: boolean;
37
+ activated: boolean;
37
38
  private button?;
38
39
  private slottedContent?;
39
40
  private tooltip?;
@@ -34,6 +34,7 @@ class FtBaseButton extends toFtFormComponent(FtLitElement) {
34
34
  this.tooltipPosition = "bottom";
35
35
  this.hideTooltip = false;
36
36
  this.forceTooltip = false;
37
+ this.activated = false;
37
38
  this.addEventListener("click", (e) => {
38
39
  var _a;
39
40
  if (this.isDisabled()) {
@@ -49,7 +50,10 @@ class FtBaseButton extends toFtFormComponent(FtLitElement) {
49
50
  render() {
50
51
  var _a, _b, _c;
51
52
  const content = html `
52
- <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
53
+ <ft-ripple part="ripple"
54
+ ?disabled=${this.isDisabled()}
55
+ ?activated=${this.activated}
56
+ ></ft-ripple>
53
57
  <ft-typography part="label"
54
58
  variant=${this.typographyVariant}
55
59
  element="span"
@@ -187,6 +191,9 @@ __decorate([
187
191
  __decorate([
188
192
  property({ type: Boolean })
189
193
  ], FtBaseButton.prototype, "forceTooltip", void 0);
194
+ __decorate([
195
+ property({ type: Boolean })
196
+ ], FtBaseButton.prototype, "activated", void 0);
190
197
  __decorate([
191
198
  query(".ft-button")
192
199
  ], FtBaseButton.prototype, "button", void 0);
@@ -332,7 +332,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
332
332
  .ft-icon--material {
333
333
  font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
334
334
  }
335
- `,Q.noTextSelect];var rr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),z={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:rr,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",ot.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",rr),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},ar=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),we={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:ar,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ar)},rt={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ir=[nr.css`
335
+ `,Q.noTextSelect];var rr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),H={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:rr,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",ot.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",rr),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},ar=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),we={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:ar,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ar)},rt={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ir=[nr.css`
336
336
  :host {
337
337
  display: inline-block;
338
338
  max-width: 100%;
@@ -343,7 +343,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
343
343
  box-shadow: 0px 0px 0px transparent;
344
344
  border: 0px solid transparent;
345
345
  text-shadow: 0px 0px 0px transparent;
346
- font-size: ${z.fontSize};
346
+ font-size: ${H.fontSize};
347
347
  text-decoration: none;
348
348
  }
349
349
 
@@ -373,21 +373,21 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
373
373
  border: none;
374
374
  pointer-events: auto;
375
375
 
376
- --ft-button-internal-line-height: max(calc(${z.fontSize} + 2px), ${z.iconSize});
377
- --ft-button-internal-color: ${z.color};
378
- ${(0,C.setVariable)(K.size,z.iconSize)};
379
- ${(0,C.setVariable)(u.color,z.rippleColor)};
376
+ --ft-button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
377
+ --ft-button-internal-color: ${H.color};
378
+ ${(0,C.setVariable)(K.size,H.iconSize)};
379
+ ${(0,C.setVariable)(u.color,H.rippleColor)};
380
380
 
381
- border-radius: ${z.borderRadius};
382
- padding: ${z.verticalPadding} ${z.horizontalPadding};
383
- background-color: ${z.backgroundColor};
381
+ border-radius: ${H.borderRadius};
382
+ padding: ${H.verticalPadding} ${H.horizontalPadding};
383
+ background-color: ${H.backgroundColor};
384
384
  color: var(--ft-button-internal-color);
385
385
  -webkit-mask-image: radial-gradient(white, black);
386
386
  }
387
387
 
388
388
  .ft-button.ft-button--outlined {
389
389
  border: 1px solid var(--ft-button-internal-color);
390
- padding: calc(${z.verticalPadding} - 1px) calc(${z.horizontalPadding} - 1px);
390
+ padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
391
391
  }
392
392
 
393
393
  .ft-button.ft-button--dense {
@@ -405,7 +405,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
405
405
  }
406
406
 
407
407
  .ft-button--round {
408
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${z.verticalPadding});
408
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${H.verticalPadding});
409
409
  }
410
410
 
411
411
  .ft-button--round.ft-button--dense {
@@ -414,7 +414,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
414
414
 
415
415
  .ft-button[disabled] {
416
416
  filter: grayscale(1);
417
- opacity: ${z.opacityDisabled};
417
+ opacity: ${H.opacityDisabled};
418
418
  }
419
419
 
420
420
  .ft-button.ft-button--primary {
@@ -433,7 +433,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
433
433
  white-space: nowrap;
434
434
  text-overflow: ellipsis;
435
435
  display: block;
436
- margin: 0 ${z.iconPadding};
436
+ margin: 0 ${H.iconPadding};
437
437
  ${(0,C.setVariable)(ot.fontSize,"1em")};
438
438
  ${(0,C.setVariable)(ot.lineHeight,"var(--ft-button-internal-line-height)")};
439
439
  }
@@ -452,8 +452,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
452
452
  }
453
453
 
454
454
  .ft-button--label[hidden] + [part="icon"] {
455
- margin: 0 calc(${z.horizontalPadding} * -1);
456
- padding: 0 ${z.verticalPadding};
455
+ margin: 0 calc(${H.horizontalPadding} * -1);
456
+ padding: 0 ${H.verticalPadding};
457
457
  }
458
458
 
459
459
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -466,7 +466,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
466
466
  }
467
467
 
468
468
  ft-loader {
469
- ${(0,C.setVariable)(E.size,z.iconSize)};
469
+ ${(0,C.setVariable)(E.size,H.iconSize)};
470
470
  ${(0,C.setVariable)(E.color,"var(--ft-button-internal-color)")};
471
471
  }
472
472
  `,C.noTextSelect];var Ct=S(R());var sr=S(R());var lr=S(M()),D=S(gt()),dr=S(Ee()),Yt=S(R());var F=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},A=class extends Yt.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.originX=0,this.originY=0,this.debouncer=new Yt.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Yt.Debouncer(10),this.moveRipple=o=>{var a,i;let{x:c,y:d}=this.getCoordinates(o),l=(i=(a=this.ripple)===null||a===void 0?void 0:a.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(c!=null?c-l.x:l.width/2),this.originY=Math.round(d!=null?d-l.y:l.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"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 lr.html`
@@ -482,7 +482,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
482
482
  </div>
483
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 a,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.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,a;let i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((a=this.target)!==null&&a!==void 0?a: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 a=(...p)=>y=>{p.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),d=p=>{["Enter"," "].includes(p.key)&&a("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 a=o,i=o,c,d;return a.x!=null?{x:c,y:d}=a: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 a of o.composedPath()){if(a===this.target)break;if("hasAttribute"in a&&a.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()),T=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
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,gr=/"/g,xr=/^(?:script|style|textarea|title)$/i,ke=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),Sr=ke(1),Or=ke(2),Cr=ke(3),Qt=Symbol.for("lit-noChange"),H=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 a=e.length-1,i=[],c,d=o===2?"<svg>":o===3?"<math>":"",l=Xt;for(let p=0;p<a;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[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},Jt=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let d=0,l=0,p=o.length-1,y=this.parts,[h,O]=Ea(o,a);if(this.el=e.createElement(h,i),Nt.currentNode=this.el.content,a===2||a===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,a){let i=wt.createElement("template");return i.innerHTML=o,i}};function _t(e,o,a=e,i){if(o===Qt)return o;let c=i!==void 0?a._$Co?.[i]:a._$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,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=_t(e,c._$AS(e,o.values),c,i)),o}var Re=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:i}=this._$AD,c=(o?.creationScope??wt).importNode(a,!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 a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},ue=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=_t(this,o,a),qt(o)?o===H||o==null||o===""?(this._$AH!==H&&this._$AR(),this._$AH=H):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!==H&&qt(this._$AH)?this._$AA.nextSibling.data=o:this.T(wt.createTextNode(o)),this._$AH=o}$(o){let{values:a,_$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(a);else{let d=new Re(c,this),l=d.u(this.options);d.p(a),this.T(l),this._$AH=d}}_$AC(o){let a=mr.get(o.strings);return a===void 0&&mr.set(o.strings,a=new Jt(o)),a}k(o){We(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let d of o)c===a.length?a.push(i=new e(this.O(ye()),this.O(ye()),this,this.options)):i=a[c],i._$AI(d),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);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,a,i,c,d){this.type=1,this._$AH=H,this._$AN=void 0,this.element=o,this.name=a,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=H}_$AI(o,a=this,i,c){let d=this.strings,l=!1;if(d===void 0)o=_t(this,o,a,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],a,y),h===Qt&&(h=this._$AH[y]),l||=!qt(h)||h!==this._$AH[y],h===H?o=H:o!==H&&(o+=(h??"")+d[y+1]),this._$AH[y]=h}l&&!c&&this.j(o)}j(o){o===H?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===H?void 0:o}},Be=class extends Dt{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==H)}},Ie=class extends Dt{constructor(o,a,i,c,d){super(o,a,i,c,d),this.type=5}_$AI(o,a=this){if((o=_t(this,o,a,0)??H)===Qt)return;let i=this._$AH,c=o===H&&i!==H||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,d=o!==H&&(i===H||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,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,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$},Te=e=>({_$litStatic$:e,r:wr});var Nr=new Map,ze=e=>(o,...a)=>{let i=a.length,c,d,l=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(d=a[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)),a=p}return e(o,...a)},He=ze(Sr),Ad=ze(Or),Bd=ze(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,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},J=class extends Lr.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?He`
485
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ur=/'/g,gr=/"/g,xr=/^(?:script|style|textarea|title)$/i,ke=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),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 a=e.length-1,i=[],c,d=o===2?"<svg>":o===3?"<math>":"",l=Xt;for(let p=0;p<a;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[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},Jt=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let d=0,l=0,p=o.length-1,y=this.parts,[h,O]=Ea(o,a);if(this.el=e.createElement(h,i),Nt.currentNode=this.el.content,a===2||a===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,a){let i=wt.createElement("template");return i.innerHTML=o,i}};function _t(e,o,a=e,i){if(o===Qt)return o;let c=i!==void 0?a._$Co?.[i]:a._$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,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=_t(e,c._$AS(e,o.values),c,i)),o}var Re=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:i}=this._$AD,c=(o?.creationScope??wt).importNode(a,!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 a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},ue=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=_t(this,o,a),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:a,_$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(a);else{let d=new Re(c,this),l=d.u(this.options);d.p(a),this.T(l),this._$AH=d}}_$AC(o){let a=mr.get(o.strings);return a===void 0&&mr.set(o.strings,a=new Jt(o)),a}k(o){We(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let d of o)c===a.length?a.push(i=new e(this.O(ye()),this.O(ye()),this,this.options)):i=a[c],i._$AI(d),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);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,a,i,c,d){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=a,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,a=this,i,c){let d=this.strings,l=!1;if(d===void 0)o=_t(this,o,a,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],a,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,a,i,c,d){super(o,a,i,c,d),this.type=5}_$AI(o,a=this){if((o=_t(this,o,a,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,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,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$},Te=e=>({_$litStatic$:e,r:wr});var Nr=new Map,ze=e=>(o,...a)=>{let i=a.length,c,d,l=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(d=a[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)),a=p}return e(o,...a)},He=ze(Sr),Ad=ze(Or),Bd=ze(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,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},J=class extends Lr.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?He`
486
486
  <${Te(this.element)}
487
487
  part="text"
488
488
  class="ft-typography ft-typography--${this.variant}">
@@ -519,7 +519,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
519
519
  position: relative;
520
520
  word-break: break-word;
521
521
  }
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,a){return Wr(e,Pr(o,a))}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,a){a===void 0&&(a=!1);let i=xt(e),c=Ke(e),d=Me(c),l=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(l=De(l)),[l,De(l)]}function Tr(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 zr(e){return typeof e!="number"?Ia(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function Hr(e,o,a){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*(a&&h?-1:1);break;case"end":v[l]+=N*(a&&h?-1:1);break}return v}var _r=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:l}=a,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 a;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=zr(v),W=p[N?b==="floating"?"reference":"floating":b],$=Et(await d.getClippingRect({element:(a=await(d.isElement==null?void 0:d.isElement(W)))==null||a?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,a){return(e?[...a.filter(c=>xt(c)===e),...a.filter(c=>xt(c)!==e)]:a.filter(c=>Gt(c)===c)).filter(c=>e?xt(c)===e||(o?Tr(c)!==c:!1):!0)}var Ve=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,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),$=((a=l.autoPlacement)==null?void 0:a.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]]],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:a,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:a,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-a,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:a,overflowY:i,display:c}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Gr(e){return["table","td","th"].includes(st(e))}function be(e){let o=xe(),a=Y(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.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,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!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&&a?he(l.frameElement):[]):o.concat(c,he(c,[],a))}function Vr(e){let o=Y(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),d=c?e.offsetWidth:a,l=c?e.offsetHeight:i,p=te(a)!==d||te(i)!==l;return p&&(a=d,i=l),{width:a,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 a=o.getBoundingClientRect(),{width:i,height:c,$:d}=Vr(o),l=(d?te(a.width):a.width)/i,p=(d?te(a.height):a.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 Ta(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function re(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),d=jr(e),l=dt(1);o&&(i?at(i)&&(l=Kt(i)):l=Kt(e));let p=Ta(d,a,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 za(e){let{rect:o,offsetParent:a,strategy:i}=e,c=tt(a),d=pt(a);if(a===d)return o;let l={scrollLeft:0,scrollTop:0},p=dt(1),y=dt(0);if((c||!c&&i!=="fixed")&&((st(a)!=="body"||Mt(d))&&(l=oe(a)),tt(a))){let h=re(a);p=Kt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.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),a=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=-a.scrollLeft+Xr(e),p=-a.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 a=V(e),i=pt(e),c=a.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 a=re(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.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,a){let i;if(o==="viewport")i=Da(e,a);else if(o==="document")i=_a(pt(e));else if(at(o))i=Ua(o,a);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 a=Lt(e);return a===o||!at(a)||ee(a)?!1:Y(a).position==="fixed"||qr(a,o)}function Ga(e,o){let a=o.get(e);if(a)return a;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:a,rootBoundary:i,strategy:c}=e,l=[...a==="clippingAncestors"?Ga(o,this._c):[].concat(a),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,a){let i=tt(o),c=pt(o),d=a==="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 a=V(e);if(!tt(e))return a;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))?a:i||Zr(e)||a}var Fa=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Qr,d=this.getDimensions;return{reference:Ka(o,await c(a),i),floating:{x:0,y:0,...await d(a)}}};function Va(e){return Y(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:za,getDocumentElement:pt,getClippingRect:Za,getOffsetParent:Qr,getElementRects:Fa,getClientRects:Ha,getDimensions:Ma,getScale:Kt,isElement:at,isRTL:Va};var Jr=(e,o,a)=>{let i=new Map,c={platform:Se,...a},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 a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ea(e,o,a){return Jr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,ta)},middleware:[je({crossAxis:!0}),Ve({allowedPlacements:[a]})]})}var j=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,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,a){return Wr(e,Pr(o,a))}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,a){a===void 0&&(a=!1);let i=xt(e),c=Ke(e),d=Me(c),l=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(l=De(l)),[l,De(l)]}function Tr(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 zr(e){return typeof e!="number"?Ia(e):{top:e,right:e,bottom:e,left:e}}function Et(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function Hr(e,o,a){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*(a&&h?-1:1);break;case"end":v[l]+=N*(a&&h?-1:1);break}return v}var _r=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:l}=a,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 a;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=zr(v),W=p[N?b==="floating"?"reference":"floating":b],$=Et(await d.getClippingRect({element:(a=await(d.isElement==null?void 0:d.isElement(W)))==null||a?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,a){return(e?[...a.filter(c=>xt(c)===e),...a.filter(c=>xt(c)!==e)]:a.filter(c=>Gt(c)===c)).filter(c=>e?xt(c)===e||(o?Tr(c)!==c:!1):!0)}var Ve=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,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),$=((a=l.autoPlacement)==null?void 0:a.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:a,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:a,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-a,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:a,overflowY:i,display:c}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Gr(e){return["table","td","th"].includes(st(e))}function be(e){let o=xe(),a=Y(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.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,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!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&&a?he(l.frameElement):[]):o.concat(c,he(c,[],a))}function Vr(e){let o=Y(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=tt(e),d=c?e.offsetWidth:a,l=c?e.offsetHeight:i,p=te(a)!==d||te(i)!==l;return p&&(a=d,i=l),{width:a,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 a=o.getBoundingClientRect(),{width:i,height:c,$:d}=Vr(o),l=(d?te(a.width):a.width)/i,p=(d?te(a.height):a.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 Ta(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function re(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),d=jr(e),l=dt(1);o&&(i?at(i)&&(l=Kt(i)):l=Kt(e));let p=Ta(d,a,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 za(e){let{rect:o,offsetParent:a,strategy:i}=e,c=tt(a),d=pt(a);if(a===d)return o;let l={scrollLeft:0,scrollTop:0},p=dt(1),y=dt(0);if((c||!c&&i!=="fixed")&&((st(a)!=="body"||Mt(d))&&(l=oe(a)),tt(a))){let h=re(a);p=Kt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.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),a=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=-a.scrollLeft+Xr(e),p=-a.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 a=V(e),i=pt(e),c=a.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 a=re(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.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,a){let i;if(o==="viewport")i=Da(e,a);else if(o==="document")i=_a(pt(e));else if(at(o))i=Ua(o,a);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 a=Lt(e);return a===o||!at(a)||ee(a)?!1:Y(a).position==="fixed"||qr(a,o)}function Ga(e,o){let a=o.get(e);if(a)return a;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:a,rootBoundary:i,strategy:c}=e,l=[...a==="clippingAncestors"?Ga(o,this._c):[].concat(a),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,a){let i=tt(o),c=pt(o),d=a==="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 a=V(e);if(!tt(e))return a;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))?a:i||Zr(e)||a}var Fa=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||Qr,d=this.getDimensions;return{reference:Ka(o,await c(a),i),floating:{x:0,y:0,...await d(a)}}};function Va(e){return Y(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:za,getDocumentElement:pt,getClippingRect:Za,getOffsetParent:Qr,getElementRects:Fa,getClientRects:Ha,getDimensions:Ma,getScale:Kt,isElement:at,isRTL:Va};var Jr=(e,o,a)=>{let i=new Map,c={platform:Se,...a},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 a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ea(e,o,a){return Jr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,ta)},middleware:[je({crossAxis:!0}),Ve({allowedPlacements:[a]})]})}var j=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,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,8 +549,11 @@ 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()),_=S(gt()),G=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},L=class extends(0,Ct.toFtFormComponent)(Ct.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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 a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,i;let c=Ot.html`
553
- <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
552
+ `}};Rt.styles=tr;(0,pa.customElement)("ft-loader")(Rt);var Ot=S(M()),qe=S(Ee()),z=S(gt()),U=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,d),d},L=class extends(0,Ct.toFtFormComponent)(Ct.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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.activated=!1,this.addEventListener("click",o=>{var a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,i;let c=Ot.html`
553
+ <ft-ripple part="ripple"
554
+ ?disabled=${this.isDisabled()}
555
+ ?activated=${this.activated}
556
+ ></ft-ripple>
554
557
  <ft-typography part="label"
555
558
  variant=${this.typographyVariant}
556
559
  element="span"
@@ -586,7 +589,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
586
589
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
587
590
  `:Ot.html`
588
591
  <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)}showTemporaryTooltip(o,a){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(o,a)}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};G([(0,_.property)()],L.prototype,"href",void 0);G([(0,_.property)()],L.prototype,"target",void 0);G([(0,_.property)()],L.prototype,"type",void 0);G([(0,_.property)({type:Boolean})],L.prototype,"disabled",void 0);G([(0,_.property)()],L.prototype,"label",void 0);G([(0,_.property)()],L.prototype,"icon",void 0);G([(0,_.property)()],L.prototype,"iconVariant",void 0);G([(0,_.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);G([(0,_.property)({type:Boolean})],L.prototype,"loading",void 0);G([(0,_.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);G([(0,_.property)()],L.prototype,"tooltipPosition",void 0);G([(0,_.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);G([(0,_.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);G([(0,_.query)(".ft-button")],L.prototype,"button",void 0);G([(0,_.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);G([(0,_.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var Ce=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,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`
592
+ `}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)}showTemporaryTooltip(o,a){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(o,a)}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,z.property)()],L.prototype,"href",void 0);U([(0,z.property)()],L.prototype,"target",void 0);U([(0,z.property)()],L.prototype,"type",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"disabled",void 0);U([(0,z.property)()],L.prototype,"label",void 0);U([(0,z.property)()],L.prototype,"icon",void 0);U([(0,z.property)()],L.prototype,"iconVariant",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"loading",void 0);U([(0,z.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);U([(0,z.property)()],L.prototype,"tooltipPosition",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"activated",void 0);U([(0,z.query)(".ft-button")],L.prototype,"button",void 0);U([(0,z.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);U([(0,z.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var Ce=function(e,o,a,i){var c=arguments.length,d=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(d=(c<3?l(d):c>3?l(o,a,d):l(o,a))||d);return c>3&&d&&Object.defineProperty(o,a,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
593
  :host {
591
594
  display: inline-block;
592
595
  max-width: 100%;