@fluid-topics/ft-floating-menu 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -363,7 +363,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
363
363
  .ft-icon--material {
364
364
  font-family: ${j.materialFontFamily}, "Material Icons", sans-serif;
365
365
  }
366
- `;var Sr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),U={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:Sr,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",pt.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",Sr),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")},Or=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Ke={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:Or,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Or)},dt={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")},vr=[Cr.css`
366
+ `;var Sr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),G={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:Sr,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",pt.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",Sr),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")},Or=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Ke={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:Or,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Or)},dt={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")},vr=[Cr.css`
367
367
  :host {
368
368
  display: inline-block;
369
369
  max-width: 100%;
@@ -374,7 +374,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
374
374
  box-shadow: 0px 0px 0px transparent;
375
375
  border: 0px solid transparent;
376
376
  text-shadow: 0px 0px 0px transparent;
377
- font-size: ${U.fontSize};
377
+ font-size: ${G.fontSize};
378
378
  text-decoration: none;
379
379
  }
380
380
 
@@ -404,21 +404,21 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
404
404
  border: none;
405
405
  pointer-events: auto;
406
406
 
407
- --ft-button-internal-line-height: max(calc(${U.fontSize} + 2px), ${U.iconSize});
408
- --ft-button-internal-color: ${U.color};
409
- ${(0,C.setVariable)(j.size,U.iconSize)};
410
- ${(0,C.setVariable)(u.color,U.rippleColor)};
407
+ --ft-button-internal-line-height: max(calc(${G.fontSize} + 2px), ${G.iconSize});
408
+ --ft-button-internal-color: ${G.color};
409
+ ${(0,C.setVariable)(j.size,G.iconSize)};
410
+ ${(0,C.setVariable)(u.color,G.rippleColor)};
411
411
 
412
- border-radius: ${U.borderRadius};
413
- padding: ${U.verticalPadding} ${U.horizontalPadding};
414
- background-color: ${U.backgroundColor};
412
+ border-radius: ${G.borderRadius};
413
+ padding: ${G.verticalPadding} ${G.horizontalPadding};
414
+ background-color: ${G.backgroundColor};
415
415
  color: var(--ft-button-internal-color);
416
416
  -webkit-mask-image: radial-gradient(white, black);
417
417
  }
418
418
 
419
419
  .ft-button.ft-button--outlined {
420
420
  border: 1px solid var(--ft-button-internal-color);
421
- padding: calc(${U.verticalPadding} - 1px) calc(${U.horizontalPadding} - 1px);
421
+ padding: calc(${G.verticalPadding} - 1px) calc(${G.horizontalPadding} - 1px);
422
422
  }
423
423
 
424
424
  .ft-button.ft-button--dense {
@@ -436,7 +436,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
436
436
  }
437
437
 
438
438
  .ft-button--round {
439
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${U.verticalPadding});
439
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${G.verticalPadding});
440
440
  }
441
441
 
442
442
  .ft-button--round.ft-button--dense {
@@ -445,7 +445,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
445
445
 
446
446
  .ft-button[disabled] {
447
447
  filter: grayscale(1);
448
- opacity: ${U.opacityDisabled};
448
+ opacity: ${G.opacityDisabled};
449
449
  }
450
450
 
451
451
  .ft-button.ft-button--primary {
@@ -464,7 +464,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
464
464
  white-space: nowrap;
465
465
  text-overflow: ellipsis;
466
466
  display: block;
467
- margin: 0 ${U.iconPadding};
467
+ margin: 0 ${G.iconPadding};
468
468
  ${(0,C.setVariable)(pt.fontSize,"1em")};
469
469
  ${(0,C.setVariable)(pt.lineHeight,"var(--ft-button-internal-line-height)")};
470
470
  }
@@ -483,8 +483,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
483
483
  }
484
484
 
485
485
  .ft-button--label[hidden] + [part="icon"] {
486
- margin: 0 calc(${U.horizontalPadding} * -1);
487
- padding: 0 ${U.verticalPadding};
486
+ margin: 0 calc(${G.horizontalPadding} * -1);
487
+ padding: 0 ${G.verticalPadding};
488
488
  }
489
489
 
490
490
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
@@ -497,7 +497,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
497
497
  }
498
498
 
499
499
  ft-loader {
500
- ${(0,C.setVariable)(R.size,U.iconSize)};
500
+ ${(0,C.setVariable)(R.size,G.iconSize)};
501
501
  ${(0,C.setVariable)(R.color,"var(--ft-button-internal-color)")};
502
502
  }
503
503
  `,C.noTextSelect];var Rt=b(w());var Lr=b(w());var Er=b(W()),Z=b(st()),wr=b(we()),ne=b(w());var X=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},A=class extends ne.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 ne.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 ne.Debouncer(10),this.moveRipple=o=>{var a,i;let{x:c,y:l}=this.getCoordinates(o),s=(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-s.x:s.width/2),this.originY=Math.round(l!=null?l-s.y:s.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 Er.html`
@@ -513,7 +513,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
513
513
  </div>
514
514
  `}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)}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=(...d)=>y=>{d.forEach(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),l=d=>{["Enter"," "].includes(d.key)&&a("keyup")(d)},s={passive:!0};o.addEventListener("mouseover",this.startHover,s),o.addEventListener("mousemove",this.moveRipple,s),o.addEventListener("mouseleave",this.endHover,s),o.addEventListener("mousedown",i,s),o.addEventListener("touchstart",c,s),o.addEventListener("touchmove",this.moveRipple,s),o.addEventListener("keydown",l,s),o.addEventListener("focus",this.startFocus,s),o.addEventListener("blur",this.endFocus,s),o.addEventListener("focusin",this.startFocus,s),o.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,s),o.removeEventListener("mousemove",this.moveRipple,s),o.removeEventListener("mouseleave",this.endHover,s),o.removeEventListener("mousedown",i,s),o.removeEventListener("touchstart",c,s),o.removeEventListener("touchmove",this.moveRipple,s),o.removeEventListener("keydown",l,s),o.removeEventListener("focus",this.startFocus,s),o.removeEventListener("blur",this.endFocus,s),o.removeEventListener("focusin",this.startFocus,s),o.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,i=o,c,l;return a.x!=null?{x:c,y:l}=a:i.touches!=null&&(c=i.touches[0].clientX,l=i.touches[0].clientY),{x:c,y:l}}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=$o;X([(0,Z.property)({type:Boolean})],A.prototype,"primary",void 0);X([(0,Z.property)({type:Boolean})],A.prototype,"secondary",void 0);X([(0,Z.property)({type:Boolean})],A.prototype,"unbounded",void 0);X([(0,Z.property)({type:Boolean})],A.prototype,"activated",void 0);X([(0,Z.property)({type:Boolean})],A.prototype,"selected",void 0);X([(0,Z.property)({type:Boolean})],A.prototype,"disabled",void 0);X([(0,Z.state)()],A.prototype,"hovered",void 0);X([(0,Z.state)()],A.prototype,"focused",void 0);X([(0,Z.state)()],A.prototype,"pressed",void 0);X([(0,Z.state)()],A.prototype,"rippling",void 0);X([(0,Z.state)()],A.prototype,"originX",void 0);X([(0,Z.state)()],A.prototype,"originY",void 0);X([(0,Z.query)(".ft-ripple")],A.prototype,"ripple",void 0);X([(0,Z.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,Lr.customElement)("ft-ripple")(A);var xa=b(w());var ba=b(W()),D=b(st()),ge=b(w());var Vr=b(w());var Je=globalThis,Le=Je.trustedTypes,Rr=Le?Le.createPolicy("lit-html",{createHTML:e=>e}):void 0,Pr="$lit$",vt=`lit$${(Math.random()+"").slice(9)}$`,kr="?"+vt,Ya=`<${kr}>`,Bt=document,Re=()=>Bt.createComment(""),ce=e=>e===null||typeof e!="object"&&typeof e!="function",Tr=Array.isArray,Xa=e=>Tr(e)||typeof e?.[Symbol.iterator]=="function",Ve=`[
515
515
  \f\r]`,ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ar=/-->/g,$r=/>/g,At=RegExp(`>|${Ve}(?:([^\\s"'>=/]+)(${Ve}*=${Ve}*(?:[^
516
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Br=/'/g,Ir=/"/g,zr=/^(?:script|style|textarea|title)$/i,Hr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),_r=Hr(1),Dr=Hr(2),le=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Wr=new WeakMap,$t=Bt.createTreeWalker(Bt,129);function Ur(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rr!==void 0?Rr.createHTML(o):o}var qa=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":"",s=ie;for(let d=0;d<a;d++){let y=e[d],h,O,x=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===ie?O[1]==="!--"?s=Ar:O[1]!==void 0?s=$r:O[2]!==void 0?(zr.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=At):O[3]!==void 0&&(s=At):s===At?O[0]===">"?(s=c??ie,x=-1):O[1]===void 0?x=-2:(x=s.lastIndex-O[2].length,h=O[1],s=O[3]===void 0?At:O[3]==='"'?Ir:Br):s===Ir||s===Br?s=At:s===Ar||s===$r?s=ie:(s=At,c=void 0);let v=s===At&&e[d+1].startsWith("/>")?" ":"";l+=s===ie?y+Ya:x>=0?(i.push(h),y.slice(0,x)+Pr+y.slice(x)+vt+v):y+vt+(x===-2?d:v)}return[Ur(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),i]},se=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,s=0,d=o.length-1,y=this.parts,[h,O]=qa(o,a);if(this.el=e.createElement(h,i),$t.currentNode=this.el.content,a===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(c=$t.nextNode())!==null&&y.length<d;){if(c.nodeType===1){if(c.hasAttributes())for(let x of c.getAttributeNames())if(x.endsWith(Pr)){let N=O[s++],v=c.getAttribute(x).split(vt),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?Ye:E[1]==="?"?Xe:E[1]==="@"?qe:Vt}),c.removeAttribute(x)}else x.startsWith(vt)&&(y.push({type:6,index:l}),c.removeAttribute(x));if(zr.test(c.tagName)){let x=c.textContent.split(vt),N=x.length-1;if(N>0){c.textContent=Le?Le.emptyScript:"";for(let v=0;v<N;v++)c.append(x[v],Re()),$t.nextNode(),y.push({type:2,index:++l});c.append(x[N],Re())}}}else if(c.nodeType===8)if(c.data===kr)y.push({type:2,index:l});else{let x=-1;for(;(x=c.data.indexOf(vt,x+1))!==-1;)y.push({type:7,index:l}),x+=vt.length-1}l++}}static createElement(o,a){let i=Bt.createElement("template");return i.innerHTML=o,i}};function Kt(e,o,a=e,i){if(o===le)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=ce(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Kt(e,c._$AS(e,o.values),c,i)),o}var je=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??Bt).importNode(a,!0);$t.currentNode=c;let l=$t.nextNode(),s=0,d=0,y=i[0];for(;y!==void 0;){if(s===y.index){let h;y.type===2?h=new Ae(l,l.nextSibling,this,o):y.type===1?h=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(h=new Qe(l,this,o)),this._$AV.push(h),y=i[++d]}s!==y?.index&&(l=$t.nextNode(),s++)}return $t.currentNode=Bt,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++}},Ae=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=G,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=Kt(this,o,a),ce(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==le&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Xa(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==G&&ce(this._$AH)?this._$AA.nextSibling.data=o:this.$(Bt.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=se.createElement(Ur(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new je(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=Wr.get(o.strings);return a===void 0&&Wr.set(o.strings,a=new se(o)),a}T(o){Tr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.k(Re()),this.k(Re()),this,this.options)):i=a[c],i._$AI(l),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))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=G}_$AI(o,a=this,i,c){let l=this.strings,s=!1;if(l===void 0)o=Kt(this,o,a,0),s=!ce(o)||o!==this._$AH&&o!==le,s&&(this._$AH=o);else{let d=o,y,h;for(o=l[0],y=0;y<l.length-1;y++)h=Kt(this,d[i+y],a,y),h===le&&(h=this._$AH[y]),s||=!ce(h)||h!==this._$AH[y],h===G?o=G:o!==G&&(o+=(h??"")+l[y+1]),this._$AH[y]=h}s&&!c&&this.O(o)}O(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ye=class extends Vt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===G?void 0:o}},Xe=class extends Vt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},qe=class extends Vt{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=Kt(this,o,a,0)??G)===le)return;let i=this._$AH,c=o===G&&i!==G||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==G&&(i===G||c);c&&this.element.removeEventListener(this.name,this,i),l&&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)}},Qe=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){Kt(this,o)}};var Qa=Je.litHtmlPolyfillSupport;Qa?.(se,Ae),(Je.litHtmlVersions??=[]).push("3.1.0");var Mr=Symbol.for(""),Ja=e=>{if(e?.r===Mr)return e?._$litStatic$},to=e=>({_$litStatic$:e,r:Mr});var Gr=new Map,Zr=e=>(o,...a)=>{let i=a.length,c,l,s=[],d=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(l=a[h],(c=Ja(l))!==void 0);)y+=c+o[++h],O=!0;h!==i&&d.push(l),s.push(y),h++}if(h===i&&s.push(o[i]),O){let x=s.join("$$lit$$");(o=Gr.get(x))===void 0&&(s.raw=s,Gr.set(x,o=s)),a=d}return e(o,...a)},eo=Zr(_r),Fs=Zr(Dr);var oo=b(st()),Kr=b(w());var Nt;(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"})(Nt||(Nt={}));var Fr=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Y=class extends Kr.FtLitElement{constructor(){super(...arguments),this.variant=Nt.body1}render(){return this.element?eo`
516
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Br=/'/g,Ir=/"/g,zr=/^(?:script|style|textarea|title)$/i,Hr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),_r=Hr(1),Dr=Hr(2),le=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),Wr=new WeakMap,$t=Bt.createTreeWalker(Bt,129);function Ur(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rr!==void 0?Rr.createHTML(o):o}var qa=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":"",s=ie;for(let d=0;d<a;d++){let y=e[d],h,O,x=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===ie?O[1]==="!--"?s=Ar:O[1]!==void 0?s=$r:O[2]!==void 0?(zr.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=At):O[3]!==void 0&&(s=At):s===At?O[0]===">"?(s=c??ie,x=-1):O[1]===void 0?x=-2:(x=s.lastIndex-O[2].length,h=O[1],s=O[3]===void 0?At:O[3]==='"'?Ir:Br):s===Ir||s===Br?s=At:s===Ar||s===$r?s=ie:(s=At,c=void 0);let v=s===At&&e[d+1].startsWith("/>")?" ":"";l+=s===ie?y+Ya:x>=0?(i.push(h),y.slice(0,x)+Pr+y.slice(x)+vt+v):y+vt+(x===-2?d:v)}return[Ur(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),i]},se=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,s=0,d=o.length-1,y=this.parts,[h,O]=qa(o,a);if(this.el=e.createElement(h,i),$t.currentNode=this.el.content,a===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(c=$t.nextNode())!==null&&y.length<d;){if(c.nodeType===1){if(c.hasAttributes())for(let x of c.getAttributeNames())if(x.endsWith(Pr)){let N=O[s++],v=c.getAttribute(x).split(vt),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?Ye:E[1]==="?"?Xe:E[1]==="@"?qe:Vt}),c.removeAttribute(x)}else x.startsWith(vt)&&(y.push({type:6,index:l}),c.removeAttribute(x));if(zr.test(c.tagName)){let x=c.textContent.split(vt),N=x.length-1;if(N>0){c.textContent=Le?Le.emptyScript:"";for(let v=0;v<N;v++)c.append(x[v],Re()),$t.nextNode(),y.push({type:2,index:++l});c.append(x[N],Re())}}}else if(c.nodeType===8)if(c.data===kr)y.push({type:2,index:l});else{let x=-1;for(;(x=c.data.indexOf(vt,x+1))!==-1;)y.push({type:7,index:l}),x+=vt.length-1}l++}}static createElement(o,a){let i=Bt.createElement("template");return i.innerHTML=o,i}};function Kt(e,o,a=e,i){if(o===le)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=ce(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Kt(e,c._$AS(e,o.values),c,i)),o}var je=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??Bt).importNode(a,!0);$t.currentNode=c;let l=$t.nextNode(),s=0,d=0,y=i[0];for(;y!==void 0;){if(s===y.index){let h;y.type===2?h=new Ae(l,l.nextSibling,this,o):y.type===1?h=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(h=new Qe(l,this,o)),this._$AV.push(h),y=i[++d]}s!==y?.index&&(l=$t.nextNode(),s++)}return $t.currentNode=Bt,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++}},Ae=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=M,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=Kt(this,o,a),ce(o)?o===M||o==null||o===""?(this._$AH!==M&&this._$AR(),this._$AH=M):o!==this._$AH&&o!==le&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Xa(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==M&&ce(this._$AH)?this._$AA.nextSibling.data=o:this.$(Bt.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=se.createElement(Ur(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new je(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=Wr.get(o.strings);return a===void 0&&Wr.set(o.strings,a=new se(o)),a}T(o){Tr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.k(Re()),this.k(Re()),this,this.options)):i=a[c],i._$AI(l),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))}},Vt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=M,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=M}_$AI(o,a=this,i,c){let l=this.strings,s=!1;if(l===void 0)o=Kt(this,o,a,0),s=!ce(o)||o!==this._$AH&&o!==le,s&&(this._$AH=o);else{let d=o,y,h;for(o=l[0],y=0;y<l.length-1;y++)h=Kt(this,d[i+y],a,y),h===le&&(h=this._$AH[y]),s||=!ce(h)||h!==this._$AH[y],h===M?o=M:o!==M&&(o+=(h??"")+l[y+1]),this._$AH[y]=h}s&&!c&&this.O(o)}O(o){o===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ye=class extends Vt{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===M?void 0:o}},Xe=class extends Vt{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==M)}},qe=class extends Vt{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=Kt(this,o,a,0)??M)===le)return;let i=this._$AH,c=o===M&&i!==M||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==M&&(i===M||c);c&&this.element.removeEventListener(this.name,this,i),l&&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)}},Qe=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){Kt(this,o)}};var Qa=Je.litHtmlPolyfillSupport;Qa?.(se,Ae),(Je.litHtmlVersions??=[]).push("3.1.0");var Mr=Symbol.for(""),Ja=e=>{if(e?.r===Mr)return e?._$litStatic$},to=e=>({_$litStatic$:e,r:Mr});var Gr=new Map,Zr=e=>(o,...a)=>{let i=a.length,c,l,s=[],d=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(l=a[h],(c=Ja(l))!==void 0);)y+=c+o[++h],O=!0;h!==i&&d.push(l),s.push(y),h++}if(h===i&&s.push(o[i]),O){let x=s.join("$$lit$$");(o=Gr.get(x))===void 0&&(s.raw=s,Gr.set(x,o=s)),a=d}return e(o,...a)},eo=Zr(_r),Fs=Zr(Dr);var oo=b(st()),Kr=b(w());var Nt;(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"})(Nt||(Nt={}));var Fr=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Y=class extends Kr.FtLitElement{constructor(){super(...arguments),this.variant=Nt.body1}render(){return this.element?eo`
517
517
  <${to(this.element)}
518
518
  part="text"
519
519
  class="ft-typography ft-typography--${this.variant}">
@@ -550,7 +550,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
550
550
  position: relative;
551
551
  word-break: break-word;
552
552
  }
553
- `;var qr=["top","right","bottom","left"],Xr=["start","end"],ao=qr.reduce((e,o)=>e.concat(o,o+"-"+Xr[0],o+"-"+Xr[1]),[]),pe=Math.min,Et=Math.max,de=Math.round;var ht=e=>({x:e,y:e}),tn={left:"right",right:"left",bottom:"top",top:"bottom"},en={start:"end",end:"start"};function no(e,o,a){return Et(e,pe(o,a))}function $e(e,o){return typeof e=="function"?e(o):e}function Yt(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function io(e){return e==="x"?"y":"x"}function co(e){return e==="y"?"height":"width"}function Be(e){return["top","bottom"].includes(Yt(e))?"y":"x"}function lo(e){return io(Be(e))}function Qr(e,o,a){a===void 0&&(a=!1);let i=wt(e),c=lo(e),l=co(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=ro(s)),[s,ro(s)]}function Jr(e){return e.replace(/start|end/g,o=>en[o])}function ro(e){return e.replace(/left|right|bottom|top/g,o=>tn[o])}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function ta(e){return typeof e!="number"?on(e):{top:e,right:e,bottom:e,left:e}}function It(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ea(e,o,a){let{reference:i,floating:c}=e,l=Be(o),s=lo(o),d=co(s),y=Yt(o),h=l==="y",O=i.x+i.width/2-c.width/2,x=i.y+i.height/2-c.height/2,N=i[d]/2-c[d]/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:x};break;case"left":v={x:i.x-c.width,y:x};break;default:v={x:i.x,y:i.y}}switch(wt(o)){case"start":v[s]-=N*(a&&h?-1:1);break;case"end":v[s]+=N*(a&&h?-1:1);break}return v}var oa=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,d=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:x}=ea(h,i,y),N=i,v={},E=0;for(let P=0;P<d.length;P++){let{name:H,fn:k}=d[P],{x:_,y:V,data:St,reset:F}=await k({x:O,y:x,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:s,elements:{reference:e,floating:o}});if(O=_??O,x=V??x,v={...v,[H]:{...v[H],...St}},F&&E<=50){E++,typeof F=="object"&&(F.placement&&(N=F.placement),F.rects&&(h=F.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):F.rects),{x:O,y:x}=ea(h,N,y)),P=-1;continue}}return{x:O,y:x,placement:N,strategy:c,middlewareData:v}};async function so(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:d,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=$e(o,e),E=ta(v),H=d[N?x==="floating"?"reference":"floating":x],k=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(H)))==null||a?H:H.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:h,rootBoundary:O,strategy:y})),_=x==="floating"?{...s.floating,x:i,y:c}:s.reference,V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),St=await(l.isElement==null?void 0:l.isElement(V))?await(l.getScale==null?void 0:l.getScale(V))||{x:1,y:1}:{x:1,y:1},F=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:V,strategy:y}):_);return{top:(k.top-F.top+E.top)/St.y,bottom:(F.bottom-k.bottom+E.bottom)/St.y,left:(k.left-F.left+E.left)/St.x,right:(F.right-k.right+E.right)/St.x}}function rn(e,o,a){return(e?[...a.filter(c=>wt(c)===e),...a.filter(c=>wt(c)!==e)]:a.filter(c=>Yt(c)===c)).filter(c=>e?wt(c)===e||(o?Jr(c)!==c:!1):!0)}var po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:d,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:x,allowedPlacements:N=ao,autoAlignment:v=!0,...E}=$e(e,o),P=x!==void 0||N===ao?rn(x||null,v,N):N,H=await so(o,E),k=((a=s.autoPlacement)==null?void 0:a.index)||0,_=P[k];if(_==null)return{};let V=Qr(_,l,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(d!==_)return{reset:{placement:P[0]}};let St=[H[Yt(_)],H[V[0]],H[V[1]]],F=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:St}],mo=P[k+1];if(mo)return{data:{index:k+1,overflows:F},reset:{placement:mo}};let ho=F.map(lt=>{let oe=wt(lt.placement);return[lt.placement,oe&&O?lt.overflows.slice(0,2).reduce((Da,Ua)=>Da+Ua,0):lt.overflows[0],lt.overflows]}).sort((lt,oe)=>lt[1]-oe[1]),bo=((c=ho.filter(lt=>lt[2].slice(0,wt(lt[0])?2:3).every(oe=>oe<=0))[0])==null?void 0:c[0])||ho[0][0];return bo!==d?{data:{index:k+1,overflows:F},reset:{placement:bo}}:{}}}};var fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:d={fn:H=>{let{x:k,y:_}=H;return{x:k,y:_}}},...y}=$e(e,o),h={x:a,y:i},O=await so(o,y),x=Be(Yt(c)),N=io(x),v=h[N],E=h[x];if(l){let H=N==="y"?"top":"left",k=N==="y"?"bottom":"right",_=v+O[H],V=v-O[k];v=no(_,v,V)}if(s){let H=x==="y"?"top":"left",k=x==="y"?"bottom":"right",_=E+O[H],V=E-O[k];E=no(_,E,V)}let P=d.fn({...o,[N]:v,[x]:E});return{...P,data:{x:P.x-a,y:P.y-i}}}}};function bt(e){return aa(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function xt(e){var o;return(o=(aa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function aa(e){return e instanceof Node||e instanceof q(e).Node}function ft(e){return e instanceof Element||e instanceof q(e).Element}function nt(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function ra(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=et(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function na(e){return["table","td","th"].includes(bt(e))}function We(e){let o=Pe(),a=et(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 ia(e){let o=Wt(e);for(;nt(o)&&!fe(o);){if(We(o))return o;o=Wt(o)}return null}function Pe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fe(e){return["html","body","#document"].includes(bt(e))}function et(e){return q(e).getComputedStyle(e)}function ye(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wt(e){if(bt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ra(e)&&e.host||xt(e);return ra(o)?o.host:o}function ca(e){let o=Wt(e);return fe(o)?e.ownerDocument?e.ownerDocument.body:e.body:nt(o)&&Xt(o)?o:ca(o)}function Ie(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=ca(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=q(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ie(s.frameElement):[]):o.concat(c,Ie(c,[],a))}function pa(e){let o=et(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=nt(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,d=de(a)!==l||de(i)!==s;return d&&(a=l,i=s),{width:a,height:i,$:d}}function da(e){return ft(e)?e:e.contextElement}function qt(e){let o=da(e);if(!nt(o))return ht(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=pa(o),s=(l?de(a.width):a.width)/i,d=(l?de(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!d||!Number.isFinite(d))&&(d=1),{x:s,y:d}}var cn=ht(0);function fa(e){let o=q(e);return!Pe()||!o.visualViewport?cn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ln(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==q(e)?!1:o}function ue(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=da(e),s=ht(1);o&&(i?ft(i)&&(s=qt(i)):s=qt(e));let d=ln(l,a,i)?fa(l):ht(0),y=(c.left+d.x)/s.x,h=(c.top+d.y)/s.y,O=c.width/s.x,x=c.height/s.y;if(l){let N=q(l),v=i&&ft(i)?q(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let P=qt(E),H=E.getBoundingClientRect(),k=et(E),_=H.left+(E.clientLeft+parseFloat(k.paddingLeft))*P.x,V=H.top+(E.clientTop+parseFloat(k.paddingTop))*P.y;y*=P.x,h*=P.y,O*=P.x,x*=P.y,y+=_,h+=V,E=q(E).frameElement}}return It({width:O,height:x,x:y,y:h})}function sn(e){let{rect:o,offsetParent:a,strategy:i}=e,c=nt(a),l=xt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},d=ht(1),y=ht(0);if((c||!c&&i!=="fixed")&&((bt(a)!=="body"||Xt(l))&&(s=ye(a)),nt(a))){let h=ue(a);d=qt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-s.scrollLeft*d.x+y.x,y:o.y*d.y-s.scrollTop*d.y+y.y}}function pn(e){return Array.from(e.getClientRects())}function ya(e){return ue(xt(e)).left+ye(e).scrollLeft}function dn(e){let o=xt(e),a=ye(e),i=e.ownerDocument.body,c=Et(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Et(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+ya(e),d=-a.scrollTop;return et(i).direction==="rtl"&&(s+=Et(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:d}}function fn(e,o){let a=q(e),i=xt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,d=0,y=0;if(c){l=c.width,s=c.height;let h=Pe();(!h||h&&o==="fixed")&&(d=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:d,y}}function yn(e,o){let a=ue(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=nt(e)?qt(e):ht(1),s=e.clientWidth*l.x,d=e.clientHeight*l.y,y=c*l.x,h=i*l.y;return{width:s,height:d,x:y,y:h}}function la(e,o,a){let i;if(o==="viewport")i=fn(e,a);else if(o==="document")i=dn(xt(e));else if(ft(o))i=yn(o,a);else{let c=fa(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return It(i)}function ua(e,o){let a=Wt(e);return a===o||!ft(a)||fe(a)?!1:et(a).position==="fixed"||ua(a,o)}function un(e,o){let a=o.get(e);if(a)return a;let i=Ie(e,[],!1).filter(d=>ft(d)&&bt(d)!=="body"),c=null,l=et(e).position==="fixed",s=l?Wt(e):e;for(;ft(s)&&!fe(s);){let d=et(s),y=We(s);!y&&d.position==="fixed"&&(c=null),(l?!y&&!c:!y&&d.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&ua(e,s))?i=i.filter(O=>O!==s):c=d,s=Wt(s)}return o.set(e,i),i}function gn(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?un(o,this._c):[].concat(a),i],d=s[0],y=s.reduce((h,O)=>{let x=la(o,O,c);return h.top=Et(x.top,h.top),h.right=pe(x.right,h.right),h.bottom=pe(x.bottom,h.bottom),h.left=Et(x.left,h.left),h},la(o,d,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function mn(e){return pa(e)}function hn(e,o,a){let i=nt(o),c=xt(o),l=a==="fixed",s=ue(e,!0,l,o),d={scrollLeft:0,scrollTop:0},y=ht(0);if(i||!i&&!l)if((bt(o)!=="body"||Xt(c))&&(d=ye(o)),i){let h=ue(o,!0,l,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=ya(c));return{x:s.left+d.scrollLeft-y.x,y:s.top+d.scrollTop-y.y,width:s.width,height:s.height}}function sa(e,o){return!nt(e)||et(e).position==="fixed"?null:o?o(e):e.offsetParent}function ga(e,o){let a=q(e);if(!nt(e))return a;let i=sa(e,o);for(;i&&na(i)&&et(i).position==="static";)i=sa(i,o);return i&&(bt(i)==="html"||bt(i)==="body"&&et(i).position==="static"&&!We(i))?a:i||ia(e)||a}var bn=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||ga,l=this.getDimensions;return{reference:hn(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function xn(e){return et(e).direction==="rtl"}var ke={convertOffsetParentRelativeRectToViewportRelativeRect:sn,getDocumentElement:xt,getClippingRect:gn,getOffsetParent:ga,getElementRects:bn,getClientRects:pn,getDimensions:mn,getScale:qt,isElement:ft,isRTL:xn};var ma=(e,o,a)=>{let i=new Map,c={platform:ke,...a},l={...c.platform,_c:i};return oa(e,o,{...c,platform:l})};function ha(e){return Sn(e)}function yo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sn(e){for(let o=e;o;o=yo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=yo(e);o;o=yo(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 Te(e,o,a){return ma(e,o,{platform:{...ke,getOffsetParent:i=>ke.getOffsetParent(i,ha)},middleware:[fo({crossAxis:!0}),po({allowedPlacements:[a]})]})}var Q=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},I=class extends ge.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 ge.Debouncer,this.revealDebouncer=new ge.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ba.html`
553
+ `;var qr=["top","right","bottom","left"],Xr=["start","end"],ao=qr.reduce((e,o)=>e.concat(o,o+"-"+Xr[0],o+"-"+Xr[1]),[]),pe=Math.min,Et=Math.max,de=Math.round;var ht=e=>({x:e,y:e}),tn={left:"right",right:"left",bottom:"top",top:"bottom"},en={start:"end",end:"start"};function no(e,o,a){return Et(e,pe(o,a))}function $e(e,o){return typeof e=="function"?e(o):e}function Yt(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function io(e){return e==="x"?"y":"x"}function co(e){return e==="y"?"height":"width"}function Be(e){return["top","bottom"].includes(Yt(e))?"y":"x"}function lo(e){return io(Be(e))}function Qr(e,o,a){a===void 0&&(a=!1);let i=wt(e),c=lo(e),l=co(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=ro(s)),[s,ro(s)]}function Jr(e){return e.replace(/start|end/g,o=>en[o])}function ro(e){return e.replace(/left|right|bottom|top/g,o=>tn[o])}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function ta(e){return typeof e!="number"?on(e):{top:e,right:e,bottom:e,left:e}}function It(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function ea(e,o,a){let{reference:i,floating:c}=e,l=Be(o),s=lo(o),d=co(s),y=Yt(o),h=l==="y",O=i.x+i.width/2-c.width/2,x=i.y+i.height/2-c.height/2,N=i[d]/2-c[d]/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:x};break;case"left":v={x:i.x-c.width,y:x};break;default:v={x:i.x,y:i.y}}switch(wt(o)){case"start":v[s]-=N*(a&&h?-1:1);break;case"end":v[s]+=N*(a&&h?-1:1);break}return v}var oa=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,d=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:x}=ea(h,i,y),N=i,v={},E=0;for(let P=0;P<d.length;P++){let{name:H,fn:k}=d[P],{x:_,y:V,data:St,reset:K}=await k({x:O,y:x,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:s,elements:{reference:e,floating:o}});if(O=_??O,x=V??x,v={...v,[H]:{...v[H],...St}},K&&E<=50){E++,typeof K=="object"&&(K.placement&&(N=K.placement),K.rects&&(h=K.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):K.rects),{x:O,y:x}=ea(h,N,y)),P=-1;continue}}return{x:O,y:x,placement:N,strategy:c,middlewareData:v}};async function so(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:d,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=$e(o,e),E=ta(v),H=d[N?x==="floating"?"reference":"floating":x],k=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(H)))==null||a?H:H.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(d.floating)),boundary:h,rootBoundary:O,strategy:y})),_=x==="floating"?{...s.floating,x:i,y:c}:s.reference,V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d.floating)),St=await(l.isElement==null?void 0:l.isElement(V))?await(l.getScale==null?void 0:l.getScale(V))||{x:1,y:1}:{x:1,y:1},K=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_,offsetParent:V,strategy:y}):_);return{top:(k.top-K.top+E.top)/St.y,bottom:(K.bottom-k.bottom+E.bottom)/St.y,left:(k.left-K.left+E.left)/St.x,right:(K.right-k.right+E.right)/St.x}}function rn(e,o,a){return(e?[...a.filter(c=>wt(c)===e),...a.filter(c=>wt(c)!==e)]:a.filter(c=>Yt(c)===c)).filter(c=>e?wt(c)===e||(o?Jr(c)!==c:!1):!0)}var po=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:d,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:x,allowedPlacements:N=ao,autoAlignment:v=!0,...E}=$e(e,o),P=x!==void 0||N===ao?rn(x||null,v,N):N,H=await so(o,E),k=((a=s.autoPlacement)==null?void 0:a.index)||0,_=P[k];if(_==null)return{};let V=Qr(_,l,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(d!==_)return{reset:{placement:P[0]}};let St=[H[Yt(_)],H[V[0]],H[V[1]]],K=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:St}],mo=P[k+1];if(mo)return{data:{index:k+1,overflows:K},reset:{placement:mo}};let ho=K.map(lt=>{let oe=wt(lt.placement);return[lt.placement,oe&&O?lt.overflows.slice(0,2).reduce((Da,Ua)=>Da+Ua,0):lt.overflows[0],lt.overflows]}).sort((lt,oe)=>lt[1]-oe[1]),bo=((c=ho.filter(lt=>lt[2].slice(0,wt(lt[0])?2:3).every(oe=>oe<=0))[0])==null?void 0:c[0])||ho[0][0];return bo!==d?{data:{index:k+1,overflows:K},reset:{placement:bo}}:{}}}};var fo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:d={fn:H=>{let{x:k,y:_}=H;return{x:k,y:_}}},...y}=$e(e,o),h={x:a,y:i},O=await so(o,y),x=Be(Yt(c)),N=io(x),v=h[N],E=h[x];if(l){let H=N==="y"?"top":"left",k=N==="y"?"bottom":"right",_=v+O[H],V=v-O[k];v=no(_,v,V)}if(s){let H=x==="y"?"top":"left",k=x==="y"?"bottom":"right",_=E+O[H],V=E-O[k];E=no(_,E,V)}let P=d.fn({...o,[N]:v,[x]:E});return{...P,data:{x:P.x-a,y:P.y-i}}}}};function bt(e){return aa(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function xt(e){var o;return(o=(aa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function aa(e){return e instanceof Node||e instanceof q(e).Node}function ft(e){return e instanceof Element||e instanceof q(e).Element}function nt(e){return e instanceof HTMLElement||e instanceof q(e).HTMLElement}function ra(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=et(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function na(e){return["table","td","th"].includes(bt(e))}function We(e){let o=Pe(),a=et(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 ia(e){let o=Wt(e);for(;nt(o)&&!fe(o);){if(We(o))return o;o=Wt(o)}return null}function Pe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fe(e){return["html","body","#document"].includes(bt(e))}function et(e){return q(e).getComputedStyle(e)}function ye(e){return ft(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wt(e){if(bt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ra(e)&&e.host||xt(e);return ra(o)?o.host:o}function ca(e){let o=Wt(e);return fe(o)?e.ownerDocument?e.ownerDocument.body:e.body:nt(o)&&Xt(o)?o:ca(o)}function Ie(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=ca(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=q(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ie(s.frameElement):[]):o.concat(c,Ie(c,[],a))}function pa(e){let o=et(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=nt(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,d=de(a)!==l||de(i)!==s;return d&&(a=l,i=s),{width:a,height:i,$:d}}function da(e){return ft(e)?e:e.contextElement}function qt(e){let o=da(e);if(!nt(o))return ht(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=pa(o),s=(l?de(a.width):a.width)/i,d=(l?de(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!d||!Number.isFinite(d))&&(d=1),{x:s,y:d}}var cn=ht(0);function fa(e){let o=q(e);return!Pe()||!o.visualViewport?cn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ln(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==q(e)?!1:o}function ue(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=da(e),s=ht(1);o&&(i?ft(i)&&(s=qt(i)):s=qt(e));let d=ln(l,a,i)?fa(l):ht(0),y=(c.left+d.x)/s.x,h=(c.top+d.y)/s.y,O=c.width/s.x,x=c.height/s.y;if(l){let N=q(l),v=i&&ft(i)?q(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let P=qt(E),H=E.getBoundingClientRect(),k=et(E),_=H.left+(E.clientLeft+parseFloat(k.paddingLeft))*P.x,V=H.top+(E.clientTop+parseFloat(k.paddingTop))*P.y;y*=P.x,h*=P.y,O*=P.x,x*=P.y,y+=_,h+=V,E=q(E).frameElement}}return It({width:O,height:x,x:y,y:h})}function sn(e){let{rect:o,offsetParent:a,strategy:i}=e,c=nt(a),l=xt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},d=ht(1),y=ht(0);if((c||!c&&i!=="fixed")&&((bt(a)!=="body"||Xt(l))&&(s=ye(a)),nt(a))){let h=ue(a);d=qt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.clientTop}return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-s.scrollLeft*d.x+y.x,y:o.y*d.y-s.scrollTop*d.y+y.y}}function pn(e){return Array.from(e.getClientRects())}function ya(e){return ue(xt(e)).left+ye(e).scrollLeft}function dn(e){let o=xt(e),a=ye(e),i=e.ownerDocument.body,c=Et(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Et(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+ya(e),d=-a.scrollTop;return et(i).direction==="rtl"&&(s+=Et(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:d}}function fn(e,o){let a=q(e),i=xt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,d=0,y=0;if(c){l=c.width,s=c.height;let h=Pe();(!h||h&&o==="fixed")&&(d=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:d,y}}function yn(e,o){let a=ue(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=nt(e)?qt(e):ht(1),s=e.clientWidth*l.x,d=e.clientHeight*l.y,y=c*l.x,h=i*l.y;return{width:s,height:d,x:y,y:h}}function la(e,o,a){let i;if(o==="viewport")i=fn(e,a);else if(o==="document")i=dn(xt(e));else if(ft(o))i=yn(o,a);else{let c=fa(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return It(i)}function ua(e,o){let a=Wt(e);return a===o||!ft(a)||fe(a)?!1:et(a).position==="fixed"||ua(a,o)}function un(e,o){let a=o.get(e);if(a)return a;let i=Ie(e,[],!1).filter(d=>ft(d)&&bt(d)!=="body"),c=null,l=et(e).position==="fixed",s=l?Wt(e):e;for(;ft(s)&&!fe(s);){let d=et(s),y=We(s);!y&&d.position==="fixed"&&(c=null),(l?!y&&!c:!y&&d.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&ua(e,s))?i=i.filter(O=>O!==s):c=d,s=Wt(s)}return o.set(e,i),i}function gn(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?un(o,this._c):[].concat(a),i],d=s[0],y=s.reduce((h,O)=>{let x=la(o,O,c);return h.top=Et(x.top,h.top),h.right=pe(x.right,h.right),h.bottom=pe(x.bottom,h.bottom),h.left=Et(x.left,h.left),h},la(o,d,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function mn(e){return pa(e)}function hn(e,o,a){let i=nt(o),c=xt(o),l=a==="fixed",s=ue(e,!0,l,o),d={scrollLeft:0,scrollTop:0},y=ht(0);if(i||!i&&!l)if((bt(o)!=="body"||Xt(c))&&(d=ye(o)),i){let h=ue(o,!0,l,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=ya(c));return{x:s.left+d.scrollLeft-y.x,y:s.top+d.scrollTop-y.y,width:s.width,height:s.height}}function sa(e,o){return!nt(e)||et(e).position==="fixed"?null:o?o(e):e.offsetParent}function ga(e,o){let a=q(e);if(!nt(e))return a;let i=sa(e,o);for(;i&&na(i)&&et(i).position==="static";)i=sa(i,o);return i&&(bt(i)==="html"||bt(i)==="body"&&et(i).position==="static"&&!We(i))?a:i||ia(e)||a}var bn=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||ga,l=this.getDimensions;return{reference:hn(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function xn(e){return et(e).direction==="rtl"}var ke={convertOffsetParentRelativeRectToViewportRelativeRect:sn,getDocumentElement:xt,getClippingRect:gn,getOffsetParent:ga,getElementRects:bn,getClientRects:pn,getDimensions:mn,getScale:qt,isElement:ft,isRTL:xn};var ma=(e,o,a)=>{let i=new Map,c={platform:ke,...a},l={...c.platform,_c:i};return oa(e,o,{...c,platform:l})};function ha(e){return Sn(e)}function yo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sn(e){for(let o=e;o;o=yo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=yo(e);o;o=yo(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 Te(e,o,a){return ma(e,o,{platform:{...ke,getOffsetParent:i=>ke.getOffsetParent(i,ha)},middleware:[fo({crossAxis:!0}),po({allowedPlacements:[a]})]})}var Q=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},I=class extends ge.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 ge.Debouncer,this.revealDebouncer=new ge.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ba.html`
554
554
  <div part="container"
555
555
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
556
556
  @mouseenter=${this.onHover}
@@ -580,7 +580,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
580
580
  <div></div>
581
581
  <div></div>
582
582
  </div>
583
- `}};kt.styles=hr;(0,La.customElement)("ft-loader")(kt);var Lt=b(W()),uo=b(we()),M=b(st()),K=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},$=class extends(0,Rt.toFtFormComponent)(Rt.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 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=Lt.html`
583
+ `}};kt.styles=hr;(0,La.customElement)("ft-loader")(kt);var Lt=b(W()),uo=b(we()),U=b(st()),F=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},$=class extends(0,Rt.toFtFormComponent)(Rt.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 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=Lt.html`
584
584
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
585
585
  <ft-typography part="label"
586
586
  variant=${this.typographyVariant}
@@ -617,7 +617,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
617
617
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
618
618
  `:Lt.html`
619
619
  <slot part="icon" name="icon"></slot>
620
- `}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Rt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};$.elementDefinitions={"ft-ripple":A,"ft-tooltip":I,"ft-typography":Y,"ft-icon":J,"ft-loader":kt};K([(0,M.property)()],$.prototype,"href",void 0);K([(0,M.property)()],$.prototype,"target",void 0);K([(0,M.property)({type:String,reflect:!0})],$.prototype,"role",void 0);K([(0,M.property)()],$.prototype,"type",void 0);K([(0,M.property)({type:Boolean})],$.prototype,"disabled",void 0);K([(0,M.property)()],$.prototype,"label",void 0);K([(0,M.property)()],$.prototype,"icon",void 0);K([(0,M.property)()],$.prototype,"iconVariant",void 0);K([(0,M.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);K([(0,M.property)({type:Boolean})],$.prototype,"loading",void 0);K([(0,M.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);K([(0,M.property)()],$.prototype,"tooltipPosition",void 0);K([(0,M.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);K([(0,M.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);K([(0,M.query)(".ft-button")],$.prototype,"button",void 0);K([(0,M.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);var _e=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},it=class extends ${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"}};it.styles=[Ra.safariEllipsisFix,vr];_e([(0,he.property)({type:Boolean})],it.prototype,"primary",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"outlined",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"dense",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"round",void 0);var be=b(st());var Ue=b(w());var Aa=b(W()),f=b(w());var $a=[Aa.css`
620
+ `}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,Rt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};$.elementDefinitions={"ft-ripple":A,"ft-tooltip":I,"ft-typography":Y,"ft-icon":J,"ft-loader":kt};F([(0,U.property)()],$.prototype,"href",void 0);F([(0,U.property)()],$.prototype,"target",void 0);F([(0,U.property)({type:String,reflect:!0})],$.prototype,"role",void 0);F([(0,U.property)()],$.prototype,"type",void 0);F([(0,U.property)({type:Boolean})],$.prototype,"disabled",void 0);F([(0,U.property)()],$.prototype,"label",void 0);F([(0,U.property)()],$.prototype,"icon",void 0);F([(0,U.property)()],$.prototype,"iconVariant",void 0);F([(0,U.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);F([(0,U.property)({type:Boolean})],$.prototype,"loading",void 0);F([(0,U.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);F([(0,U.property)()],$.prototype,"tooltipPosition",void 0);F([(0,U.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);F([(0,U.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);F([(0,U.query)(".ft-button")],$.prototype,"button",void 0);F([(0,U.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);F([(0,U.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var _e=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},it=class extends ${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"}};it.styles=[Ra.safariEllipsisFix,vr];_e([(0,he.property)({type:Boolean})],it.prototype,"primary",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"outlined",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"dense",void 0);_e([(0,he.property)({type:Boolean})],it.prototype,"round",void 0);var be=b(st());var Ue=b(w());var Aa=b(W()),f=b(w());var $a=[Aa.css`
621
621
  :host {
622
622
  display: inline-block;
623
623
  max-width: 100%;