@fluid-topics/ft-reader-navigation-button 1.1.8 → 1.1.10

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.
@@ -526,7 +526,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
526
526
  }
527
527
 
528
528
  .ft-tooltip {
529
- position: absolute;
529
+ position: fixed;
530
530
  box-sizing: border-box;
531
531
  overflow: hidden;
532
532
  width: max-content;
@@ -544,7 +544,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
544
544
  position: relative;
545
545
  word-break: break-word;
546
546
  }
547
- `,Qo=["start","end"],te=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Qo[0],o+"-"+Qo[1])),[]),oe=Math.min,ee=Math.max,re=Math.round,ie=t=>({x:t,y:t}),ne={left:"right",right:"left",bottom:"top",top:"bottom"},ae={start:"end",end:"start"};function le(t,o,e){return ee(t,oe(o,e))}function ce(t,o){return"function"==typeof t?t(o):t}function se(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function fe(t){return"x"===t?"y":"x"}function de(t){return"y"===t?"height":"width"}function he(t){return["top","bottom"].includes(se(t))?"y":"x"}function ye(t){return fe(he(t))}function ge(t){return t.replace(/left|right|bottom|top/g,(t=>ne[t]))}function ue(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function be(t,o,e){let{reference:r,floating:i}=t;const n=he(o),a=ye(o),l=de(a),c=se(o),s="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(pe(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function me(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=ce(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],u=ue(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:p,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ue(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function xe(t,o,e){return(t?[...e.filter((o=>pe(o)===t)),...e.filter((o=>pe(o)!==t))]:e.filter((t=>se(t)===t))).filter((e=>!t||(pe(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ae[t]))}(e)!==e)))}const Oe=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=te,autoAlignment:h=!0,...y}=ce(t,o),g=void 0!==f||d===te?xe(f||null,h,d):d,u=await me(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=pe(t),i=ye(t),n=de(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ge(a)),[a,ge(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[se(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=pe(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),C=S.filter((t=>t[2].slice(0,pe(t[0])?2:3).every((t=>t<=0)))),w=(null==(i=C[0])?void 0:i[0])||S[0][0];return w!==l?{data:{index:b+1,overflows:v},reset:{placement:w}}:{}}}};function ve(t){return Ce(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Se(t){var o;return null==(o=(Ce(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ce(t){return t instanceof Node||t instanceof Ne(t).Node}function we(t){return t instanceof Element||t instanceof Ne(t).Element}function $e(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function Ie(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot)}function Re(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ue(t){return["table","td","th"].includes(ve(t))}function ke(t){const o=We(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function We(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ee(t){return["html","body","#document"].includes(ve(t))}function Le(t){return Ne(t).getComputedStyle(t)}function Ke(t){return we(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(t){if("html"===ve(t))return t;const o=t.assignedSlot||t.parentNode||Ie(t)&&t.host||Se(t);return Ie(o)?o.host:o}function ze(t){const o=Ze(t);return Ee(o)?t.ownerDocument?t.ownerDocument.body:t.body:$e(o)&&Re(o)?o:ze(o)}function Fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=ze(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ne(i);return n?o.concat(a,a.visualViewport||[],Re(i)?i:[],a.frameElement&&e?Fe(a.frameElement):[]):o.concat(i,Fe(i,[],e))}function Be(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=$e(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=re(e)!==n||re(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function De(t){return we(t)?t:t.contextElement}function Ae(t){const o=De(t);if(!$e(o))return ie(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Be(o);let a=(n?re(e.width):e.width)/r,l=(n?re(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const He=ie(0);function Ge(t){const o=Ne(t);return We()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:He}function Pe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=De(t);let a=ie(1);o&&(r?we(r)&&(a=Ae(r)):a=Ae(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ne(t))&&o}(n,e,r)?Ge(n):ie(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=Ne(n),o=r&&we(r)?Ne(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ae(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,p*=t.x,f*=t.y,c+=i,s+=n,e=Ne(e).frameElement}}return ue({width:p,height:f,x:c,y:s})}function Te(t){return Pe(Se(t)).left+Ke(t).scrollLeft}function je(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Ne(t),r=Se(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=We();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Se(t),e=Ke(t),r=t.ownerDocument.body,i=ee(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ee(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Te(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=ee(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Se(t));else if(we(o))r=function(t,o){const e=Pe(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=$e(t)?Ae(t):ie(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ge(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ue(r)}function Me(t,o){const e=Ze(t);return!(e===o||!we(e)||Ee(e))&&("fixed"===Le(e).position||Me(e,o))}function _e(t,o,e){const r=$e(o),i=Se(o),n="fixed"===e,a=Pe(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=ie(0);if(r||!r&&!n)if(("body"!==ve(o)||Re(i))&&(l=Ke(o)),r){const t=Pe(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=Te(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ye(t,o){return $e(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function Ve(t,o){const e=Ne(t);if(!$e(t))return e;let r=Ye(t,o);for(;r&&Ue(r)&&"static"===Le(r).position;)r=Ye(r,o);return r&&("html"===ve(r)||"body"===ve(r)&&"static"===Le(r).position&&!ke(r))?e:r||function(t){let o=Ze(t);for(;$e(o)&&!Ee(o);){if(ke(o))return o;o=Ze(o)}return null}(t)||e}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=$e(e),n=Se(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=ie(1);const c=ie(0);if((i||!i&&"fixed"!==r)&&(("body"!==ve(e)||Re(n))&&(a=Ke(e)),$e(e))){const t=Pe(e);l=Ae(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Se,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Fe(t,[],!1).filter((t=>we(t)&&"body"!==ve(t))),i=null;const n="fixed"===Le(t).position;let a=n?Ze(t):t;for(;we(a)&&!Ee(a);){const o=Le(a),e=ke(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Re(a)&&!e&&Me(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ze(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=je(o,e,i);return t.top=ee(r.top,t.top),t.right=oe(r.right,t.right),t.bottom=oe(r.bottom,t.bottom),t.left=ee(r.left,t.left),t}),je(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ve,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Ve,n=this.getDimensions;return{reference:_e(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Be(t)},getScale:Ae,isElement:we,isRTL:function(t){return"rtl"===Le(t).direction}},qe=(t,o,e)=>{const r=new Map,i={platform:Xe,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=be(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});p=null!=u?u:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=be(s,d,c))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var Je,Qe,tr,or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends o.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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
547
+ `,Qo=["start","end"],te=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Qo[0],o+"-"+Qo[1])),[]),oe=Math.min,ee=Math.max,re=Math.round,ie=t=>({x:t,y:t}),ne={left:"right",right:"left",bottom:"top",top:"bottom"},ae={start:"end",end:"start"};function le(t,o,e){return ee(t,oe(o,e))}function ce(t,o){return"function"==typeof t?t(o):t}function se(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function fe(t){return"x"===t?"y":"x"}function de(t){return"y"===t?"height":"width"}function he(t){return["top","bottom"].includes(se(t))?"y":"x"}function ye(t){return fe(he(t))}function ge(t){return t.replace(/left|right|bottom|top/g,(t=>ne[t]))}function ue(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function be(t,o,e){let{reference:r,floating:i}=t;const n=he(o),a=ye(o),l=de(a),c=se(o),s="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:p,y:r.y-i.height};break;case"bottom":h={x:p,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(pe(o)){case"start":h[a]-=d*(e&&s?-1:1);break;case"end":h[a]+=d*(e&&s?-1:1)}return h}async function me(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=ce(o,t),y=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=l[d?"floating"===f?"reference":"floating":f],u=ue(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(g)))||e?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:s,rootBoundary:p,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=ue(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+y.top)/x.y,bottom:(O.bottom-u.bottom+y.bottom)/x.y,left:(u.left-O.left+y.left)/x.x,right:(O.right-u.right+y.right)/x.x}}function xe(t,o,e){return(t?[...e.filter((o=>pe(o)===t)),...e.filter((o=>pe(o)!==t))]:e.filter((t=>se(t)===t))).filter((e=>!t||(pe(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ae[t]))}(e)!==e)))}const Oe=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:s}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:d=te,autoAlignment:h=!0,...y}=ce(t,o),g=void 0!==f||d===te?xe(f||null,h,d):d,u=await me(o,y),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=g[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=pe(t),i=ye(t),n=de(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=ge(a)),[a,ge(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(s.floating)));if(l!==m)return{reset:{placement:g[0]}};const O=[u[se(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=g[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=pe(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),C=S.filter((t=>t[2].slice(0,pe(t[0])?2:3).every((t=>t<=0)))),w=(null==(i=C[0])?void 0:i[0])||S[0][0];return w!==l?{data:{index:b+1,overflows:v},reset:{placement:w}}:{}}}};function ve(t){return Ce(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Se(t){var o;return null==(o=(Ce(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Ce(t){return t instanceof Node||t instanceof Ne(t).Node}function we(t){return t instanceof Element||t instanceof Ne(t).Element}function $e(t){return t instanceof HTMLElement||t instanceof Ne(t).HTMLElement}function Ie(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot)}function Re(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Ue(t){return["table","td","th"].includes(ve(t))}function ke(t){const o=We(),e=Le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function We(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ee(t){return["html","body","#document"].includes(ve(t))}function Le(t){return Ne(t).getComputedStyle(t)}function Ke(t){return we(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(t){if("html"===ve(t))return t;const o=t.assignedSlot||t.parentNode||Ie(t)&&t.host||Se(t);return Ie(o)?o.host:o}function ze(t){const o=Ze(t);return Ee(o)?t.ownerDocument?t.ownerDocument.body:t.body:$e(o)&&Re(o)?o:ze(o)}function Fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=ze(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ne(i);return n?o.concat(a,a.visualViewport||[],Re(i)?i:[],a.frameElement&&e?Fe(a.frameElement):[]):o.concat(i,Fe(i,[],e))}function Be(t){const o=Le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=$e(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=re(e)!==n||re(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function De(t){return we(t)?t:t.contextElement}function Ae(t){const o=De(t);if(!$e(o))return ie(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=Be(o);let a=(n?re(e.width):e.width)/r,l=(n?re(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const He=ie(0);function Ge(t){const o=Ne(t);return We()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:He}function Pe(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=De(t);let a=ie(1);o&&(r?we(r)&&(a=Ae(r)):a=Ae(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Ne(t))&&o}(n,e,r)?Ge(n):ie(0);let c=(i.left+l.x)/a.x,s=(i.top+l.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=Ne(n),o=r&&we(r)?Ne(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Ae(e),o=e.getBoundingClientRect(),r=Le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,s*=t.y,p*=t.x,f*=t.y,c+=i,s+=n,e=Ne(e).frameElement}}return ue({width:p,height:f,x:c,y:s})}function Te(t){return Pe(Se(t)).left+Ke(t).scrollLeft}function je(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Ne(t),r=Se(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=We();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=Se(t),e=Ke(t),r=t.ownerDocument.body,i=ee(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=ee(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Te(t);const l=-e.scrollTop;return"rtl"===Le(r).direction&&(a+=ee(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(Se(t));else if(we(o))r=function(t,o){const e=Pe(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=$e(t)?Ae(t):ie(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ge(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return ue(r)}function Me(t,o){const e=Ze(t);return!(e===o||!we(e)||Ee(e))&&("fixed"===Le(e).position||Me(e,o))}function _e(t,o,e){const r=$e(o),i=Se(o),n="fixed"===e,a=Pe(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=ie(0);if(r||!r&&!n)if(("body"!==ve(o)||Re(i))&&(l=Ke(o)),r){const t=Pe(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=Te(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ye(t,o){return $e(t)&&"fixed"!==Le(t).position?o?o(t):t.offsetParent:null}function Ve(t,o){const e=Ne(t);if(!$e(t))return e;let r=Ye(t,o);for(;r&&Ue(r)&&"static"===Le(r).position;)r=Ye(r,o);return r&&("html"===ve(r)||"body"===ve(r)&&"static"===Le(r).position&&!ke(r))?e:r||function(t){let o=Ze(t);for(;$e(o)&&!Ee(o);){if(ke(o))return o;o=Ze(o)}return null}(t)||e}const Xe={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=$e(e),n=Se(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=ie(1);const c=ie(0);if((i||!i&&"fixed"!==r)&&(("body"!==ve(e)||Re(n))&&(a=Ke(e)),$e(e))){const t=Pe(e);l=Ae(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:Se,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=Fe(t,[],!1).filter((t=>we(t)&&"body"!==ve(t))),i=null;const n="fixed"===Le(t).position;let a=n?Ze(t):t;for(;we(a)&&!Ee(a);){const o=Le(a),e=ke(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||Re(a)&&!e&&Me(t,a))?r=r.filter((t=>t!==a)):i=o,a=Ze(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=je(o,e,i);return t.top=ee(r.top,t.top),t.right=oe(r.right,t.right),t.bottom=oe(r.bottom,t.bottom),t.left=ee(r.left,t.left),t}),je(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ve,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Ve,n=this.getDimensions;return{reference:_e(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Be(t)},getScale:Ae,isElement:we,isRTL:function(t){return"rtl"===Le(t).direction}},qe=(t,o,e)=>{const r=new Map,i={platform:Xe,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let s=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=be(s,r,c),d=r,h={},y=0;for(let e=0;e<l.length;e++){const{name:n,fn:g}=l[e],{x:u,y:b,data:m,reset:x}=await g({x:p,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:t,floating:o}});p=null!=u?u:p,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=be(s,d,c))),e=-1)}return{x:p,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function Je(t){return function(t){for(let o=t;o;o=Qe(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=Qe(t);o;o=Qe(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function Qe(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var tr,or,er,rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends o.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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
548
548
  <div part="container"
549
549
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
550
550
  @mouseenter=${this.onHover}
@@ -552,7 +552,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
552
552
  @focusin=${this.onHover}
553
553
  @focusout=${this.onOut}
554
554
  @touchstart=${this.onTouch}>
555
- <slot></slot>
555
+ <slot part="slot"></slot>
556
556
  <div part="tooltip" role="tooltip" inert
557
557
  class="ft-tooltip ft-tooltip--${this.validPosition}"
558
558
  ?hidden=${!this.visible}>
@@ -562,19 +562,19 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
562
562
  </div>
563
563
  </div>
564
564
  </div>
565
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",qe(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ce(t,o),s={x:e,y:r},p=await me(o,c),f=he(se(i)),d=fe(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=le(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=le(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...o,[d]:h,[f]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Oe({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}er.elementDefinitions={"ft-typography":jo},er.styles=Jo,or([r.property()],er.prototype,"text",void 0),or([r.property({type:Boolean})],er.prototype,"manual",void 0),or([r.property({type:Boolean})],er.prototype,"inline",void 0),or([r.property({type:Number})],er.prototype,"delay",void 0),or([r.property()],er.prototype,"position",void 0),or([r.queryAssignedNodes()],er.prototype,"slotNodes",void 0),or([r.query(".ft-tooltip--container")],er.prototype,"container",void 0),or([r.query(".ft-tooltip")],er.prototype,"tooltip",void 0),or([r.query(".ft-tooltip--content")],er.prototype,"tooltipContent",void 0),or([r.state()],er.prototype,"visible",void 0),or([r.eventOptions({passive:!0})],er.prototype,"onTouch",null),or([r.eventOptions({passive:!0})],er.prototype,"onHover",null),or([r.eventOptions({passive:!0})],er.prototype,"onOut",null),o.customElement("ft-tooltip")(er),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Je||(Je={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Qe||(Qe={})),new Map([...["abw"].map((t=>[t,Qe.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Qe.AUDIO])),...["avi"].map((t=>[t,Qe.AVI])),...["chm","xhs"].map((t=>[t,Qe.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Qe.CODE])),...["csv"].map((t=>[t,Qe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qe.DITA])),...["epub"].map((t=>[t,Qe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qe.EXCEL])),...["flac"].map((t=>[t,Qe.FLAC])),...["gif"].map((t=>[t,Qe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qe.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Qe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qe.JPEG])),...["json"].map((t=>[t,Qe.JSON])),...["m4a","m4p"].map((t=>[t,Qe.M4A])),...["mov","qt"].map((t=>[t,Qe.MOV])),...["mp3"].map((t=>[t,Qe.MP3])),...["mp4","m4v"].map((t=>[t,Qe.MP4])),...["ogg","oga"].map((t=>[t,Qe.OGG])),...["pdf","ps"].map((t=>[t,Qe.PDF])),...["png"].map((t=>[t,Qe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qe.POWERPOINT])),...["rar"].map((t=>[t,Qe.RAR])),...["stp"].map((t=>[t,Qe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qe.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Qe.VIDEO])),...["wav"].map((t=>[t,Qe.WAV])),...["wma"].map((t=>[t,Qe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qe.YAML])),...["zip"].map((t=>[t,Qe.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(tr||(tr={}));var rr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(tr).includes(this.variant)?this.variant:tr.fluid_topics,o=t!==tr.material||!!this.value;return e.html`
565
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",qe(this.slottedElement,this.tooltip,{platform:{...Xe,getOffsetParent:t=>Xe.getOffsetParent(t,Je)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=ce(t,o),s={x:e,y:r},p=await me(o,c),f=he(se(i)),d=fe(f);let h=s[d],y=s[f];if(n){const t="y"===d?"bottom":"right";h=le(h+p["y"===d?"top":"left"],h,h-p[t])}if(a){const t="y"===f?"bottom":"right";y=le(y+p["y"===f?"top":"left"],y,y-p[t])}const g=l.fn({...o,[d]:h,[f]:y});return{...g,data:{x:g.x-e,y:g.y-r}}}}),Oe({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ir.elementDefinitions={"ft-typography":jo},ir.styles=Jo,rr([r.property()],ir.prototype,"text",void 0),rr([r.property({type:Boolean})],ir.prototype,"manual",void 0),rr([r.property({type:Boolean})],ir.prototype,"inline",void 0),rr([r.property({type:Number})],ir.prototype,"delay",void 0),rr([r.property()],ir.prototype,"position",void 0),rr([r.queryAssignedNodes()],ir.prototype,"slotNodes",void 0),rr([r.query(".ft-tooltip--container")],ir.prototype,"container",void 0),rr([r.query(".ft-tooltip")],ir.prototype,"tooltip",void 0),rr([r.query(".ft-tooltip--content")],ir.prototype,"tooltipContent",void 0),rr([r.state()],ir.prototype,"visible",void 0),rr([r.eventOptions({passive:!0})],ir.prototype,"onTouch",null),rr([r.eventOptions({passive:!0})],ir.prototype,"onHover",null),rr([r.eventOptions({passive:!0})],ir.prototype,"onOut",null),o.customElement("ft-tooltip")(ir),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(tr||(tr={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(or||(or={})),new Map([...["abw"].map((t=>[t,or.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,or.AUDIO])),...["avi"].map((t=>[t,or.AVI])),...["chm","xhs"].map((t=>[t,or.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,or.CODE])),...["csv"].map((t=>[t,or.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,or.DITA])),...["epub"].map((t=>[t,or.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,or.EXCEL])),...["flac"].map((t=>[t,or.FLAC])),...["gif"].map((t=>[t,or.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,or.GZIP])),...["html","htm","xhtml"].map((t=>[t,or.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,or.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,or.JPEG])),...["json"].map((t=>[t,or.JSON])),...["m4a","m4p"].map((t=>[t,or.M4A])),...["mov","qt"].map((t=>[t,or.MOV])),...["mp3"].map((t=>[t,or.MP3])),...["mp4","m4v"].map((t=>[t,or.MP4])),...["ogg","oga"].map((t=>[t,or.OGG])),...["pdf","ps"].map((t=>[t,or.PDF])),...["png"].map((t=>[t,or.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,or.POWERPOINT])),...["rar"].map((t=>[t,or.RAR])),...["stp"].map((t=>[t,or.STP])),...["txt","rtf","md","mdown"].map((t=>[t,or.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,or.VIDEO])),...["wav"].map((t=>[t,or.WAV])),...["wma"].map((t=>[t,or.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,or.WORD])),...["xml","xsl","rdf"].map((t=>[t,or.XML])),...["yaml","yml","x-yaml"].map((t=>[t,or.YAML])),...["zip"].map((t=>[t,or.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(er||(er={}));var nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(er).includes(this.variant)?this.variant:er.fluid_topics,o=t!==er.material||!!this.value;return e.html`
566
566
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
567
567
  ${n.unsafeHTML(this.resolvedIcon)}
568
568
  <slot ?hidden=${o}></slot>
569
569
  </i>
570
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case tr.file_format:this.resolvedIcon=null!==(t=Qe[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case tr.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Je[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ir.elementDefinitions={},ir.styles=Pt,rr([r.property()],ir.prototype,"variant",void 0),rr([r.property()],ir.prototype,"value",void 0),rr([r.state()],ir.prototype,"resolvedIcon",void 0),rr([r.query("slot")],ir.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ir);class nr extends o.FtLitElement{render(){return e.html`
570
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case er.file_format:this.resolvedIcon=null!==(t=or[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case er.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=tr[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ar.elementDefinitions={},ar.styles=Pt,nr([r.property()],ar.prototype,"variant",void 0),nr([r.property()],ar.prototype,"value",void 0),nr([r.state()],ar.prototype,"resolvedIcon",void 0),nr([r.query("slot")],ar.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ar);class lr extends o.FtLitElement{render(){return e.html`
571
571
  <div class="ft-loader">
572
572
  <div></div>
573
573
  <div></div>
574
574
  <div></div>
575
575
  <div></div>
576
576
  </div>
577
- `}}nr.styles=Ht,o.customElement("ft-loader")(nr);var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
577
+ `}}lr.styles=Ht,o.customElement("ft-loader")(lr);var cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
578
578
  <button part="button"
579
579
  class="${i.classMap(this.buttonClasses)}"
580
580
  aria-label="${this.getLabel()}"
@@ -597,7 +597,7 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
597
597
  </ft-tooltip>
598
598
  `:t}resolveIcon(){return this.loading?e.html`
599
599
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
600
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lr.elementDefinitions={"ft-ripple":to,"ft-tooltip":er,"ft-typography":jo,"ft-icon":ir,"ft-loader":nr},ar([r.property({type:String,reflect:!0})],lr.prototype,"role",void 0),ar([r.property()],lr.prototype,"type",void 0),ar([r.property({type:Boolean})],lr.prototype,"disabled",void 0),ar([r.property()],lr.prototype,"label",void 0),ar([r.property()],lr.prototype,"icon",void 0),ar([r.property()],lr.prototype,"iconVariant",void 0),ar([r.property({type:Boolean})],lr.prototype,"trailingIcon",void 0),ar([r.property({type:Boolean})],lr.prototype,"loading",void 0),ar([r.property()],lr.prototype,"tooltipPosition",void 0),ar([r.property({type:Boolean})],lr.prototype,"hideTooltip",void 0),ar([r.property({type:Boolean})],lr.prototype,"forceTooltip",void 0),ar([r.query(".ft-button")],lr.prototype,"button",void 0),ar([r.query(".ft-button--label slot")],lr.prototype,"slottedContent",void 0);var cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends lr{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"}}sr.styles=[o.safariEllipsisFix,Jt],cr([r.property({type:Boolean})],sr.prototype,"primary",void 0),cr([r.property({type:Boolean})],sr.prototype,"outlined",void 0),cr([r.property({type:Boolean})],sr.prototype,"dense",void 0),cr([r.property({type:Boolean})],sr.prototype,"round",void 0);const pr=[e.css`
600
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}sr.elementDefinitions={"ft-ripple":to,"ft-tooltip":ir,"ft-typography":jo,"ft-icon":ar,"ft-loader":lr},cr([r.property({type:String,reflect:!0})],sr.prototype,"role",void 0),cr([r.property()],sr.prototype,"type",void 0),cr([r.property({type:Boolean})],sr.prototype,"disabled",void 0),cr([r.property()],sr.prototype,"label",void 0),cr([r.property()],sr.prototype,"icon",void 0),cr([r.property()],sr.prototype,"iconVariant",void 0),cr([r.property({type:Boolean})],sr.prototype,"trailingIcon",void 0),cr([r.property({type:Boolean})],sr.prototype,"loading",void 0),cr([r.property()],sr.prototype,"tooltipPosition",void 0),cr([r.property({type:Boolean})],sr.prototype,"hideTooltip",void 0),cr([r.property({type:Boolean})],sr.prototype,"forceTooltip",void 0),cr([r.query(".ft-button")],sr.prototype,"button",void 0),cr([r.query(".ft-button--label slot")],sr.prototype,"slottedContent",void 0);var pr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fr extends sr{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"}}fr.styles=[o.safariEllipsisFix,Jt],pr([r.property({type:Boolean})],fr.prototype,"primary",void 0),pr([r.property({type:Boolean})],fr.prototype,"outlined",void 0),pr([r.property({type:Boolean})],fr.prototype,"dense",void 0),pr([r.property({type:Boolean})],fr.prototype,"round",void 0);const dr=[e.css`
601
601
  :host {
602
602
  display: inline-block;
603
603
  max-width: 100%;
@@ -815,13 +815,13 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
815
815
  width: ${S.smallIconOnlyWidth};
816
816
  padding: unset;
817
817
  }
818
- `,o.noTextSelect];var fr,dr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class hr extends lr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Po.caption1medium:Po.body2medium}}hr.styles=[o.safariEllipsisFix,pr],dr([r.property({type:Boolean})],hr.prototype,"primary",void 0),dr([r.property({type:Boolean})],hr.prototype,"secondary",void 0),dr([r.property({type:Boolean})],hr.prototype,"tertiary",void 0),dr([r.property({type:Boolean})],hr.prototype,"neutral",void 0),dr([r.property({type:Boolean})],hr.prototype,"small",void 0),o.customElement("ft-button")(sr),o.customElement("ftds-button")(hr),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(fr||(fr={}));var yr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class gr extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ur=Symbol("registerInterval");class br extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[ur]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ur]):this.dispatchEvent(new gr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=ur,yr([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}var mr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xr extends br{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=i.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
818
+ `,o.noTextSelect];var hr,yr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class gr extends sr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Po.caption1medium:Po.body2medium}}gr.styles=[o.safariEllipsisFix,dr],yr([r.property({type:Boolean})],gr.prototype,"primary",void 0),yr([r.property({type:Boolean})],gr.prototype,"secondary",void 0),yr([r.property({type:Boolean})],gr.prototype,"tertiary",void 0),yr([r.property({type:Boolean})],gr.prototype,"neutral",void 0),yr([r.property({type:Boolean})],gr.prototype,"small",void 0),o.customElement("ft-button")(fr),o.customElement("ftds-button")(gr),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(hr||(hr={}));var ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class br extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const mr=Symbol("registerInterval");class xr extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[mr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[mr]):this.dispatchEvent(new br)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=mr,ur([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}var Or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends xr{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=i.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
819
819
  <a class=${o}
820
820
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
821
821
  @click=${t=>this.onLinkClick(t)}>
822
822
  <slot></slot>
823
823
  </a>
824
- `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}xr.styles=l,mr([r.property()],xr.prototype,"tocId",void 0),mr([r.property()],xr.prototype,"section",void 0),mr([r.property({type:Number})],xr.prototype,"pageNumber",void 0),mr([r.property({type:Boolean})],xr.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(xr);var Or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends br{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Je.THIN_ARROW_RIGHT:Je.THIN_ARROW_LEFT}render(){var t,o,r,i,n;if(null==this.targetPage&&!this.editorMode)return e.nothing;const a=e.html`
824
+ `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}vr.styles=l,Or([r.property()],vr.prototype,"tocId",void 0),Or([r.property()],vr.prototype,"section",void 0),Or([r.property({type:Number})],vr.prototype,"pageNumber",void 0),Or([r.property({type:Boolean})],vr.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(vr);var Nr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Sr extends xr{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?tr.THIN_ARROW_RIGHT:tr.THIN_ARROW_LEFT}render(){var t,o,r,i,n;if(null==this.targetPage&&!this.editorMode)return e.nothing;const a=e.html`
825
825
  <ft-button ?forceTooltip=${!this.hideTooltip}
826
826
  ?hideTooltip=${this.hideTooltip}
827
827
  ?trailingIcon=${this.trailingIcon}
@@ -835,4 +835,4 @@ const Bo=Symbol.for(""),Do=t=>{if(t?.r===Bo)return t?._$litStatic$},Ao=t=>({_$li
835
835
  <ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
836
836
  ${a}
837
837
  </ft-reader-internal-link>
838
- `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,o;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(o=this.targetPage)||void 0===o?void 0:o.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}vr.elementDefinitions={"ft-button":sr,"ft-reader-internal-link":xr},vr.styles=c,Or([r.property()],vr.prototype,"target",void 0),Or([r.property()],vr.prototype,"content",void 0),Or([r.property()],vr.prototype,"tooltipPosition",void 0),Or([r.property({type:Boolean})],vr.prototype,"hideTooltip",void 0),Or([r.property()],vr.prototype,"iconVariant",void 0),Or([r.property()],vr.prototype,"icon",void 0),Or([r.property({type:Boolean})],vr.prototype,"trailingIcon",void 0),Or([r.property({type:Boolean,attribute:!1})],vr.prototype,"editorMode",void 0),Or([o.redux()],vr.prototype,"currentPage",void 0),Or([r.state()],vr.prototype,"targetPage",void 0),o.customElement("ft-reader-navigation-button")(vr),t.FtReaderNavigationButton=vr,t.FtReaderNavigationButtonCssVariables={},t.styles=c}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
838
+ `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,o;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(o=this.targetPage)||void 0===o?void 0:o.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Sr.elementDefinitions={"ft-button":fr,"ft-reader-internal-link":vr},Sr.styles=c,Nr([r.property()],Sr.prototype,"target",void 0),Nr([r.property()],Sr.prototype,"content",void 0),Nr([r.property()],Sr.prototype,"tooltipPosition",void 0),Nr([r.property({type:Boolean})],Sr.prototype,"hideTooltip",void 0),Nr([r.property()],Sr.prototype,"iconVariant",void 0),Nr([r.property()],Sr.prototype,"icon",void 0),Nr([r.property({type:Boolean})],Sr.prototype,"trailingIcon",void 0),Nr([r.property({type:Boolean,attribute:!1})],Sr.prototype,"editorMode",void 0),Nr([o.redux()],Sr.prototype,"currentPage",void 0),Nr([r.state()],Sr.prototype,"targetPage",void 0),o.customElement("ft-reader-navigation-button")(Sr),t.FtReaderNavigationButton=Sr,t.FtReaderNavigationButtonCssVariables={},t.styles=c}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(cn){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);h(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(a.set(i,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?u(e,i):n.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);r.call(this,n,i),e.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else n.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(fn){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -650,7 +650,7 @@ const _r=Symbol.for(""),Gr=t=>{if(t?.r===_r)return t?._$litStatic$},Yr=t=>({_$li
650
650
  }
651
651
 
652
652
  .ft-tooltip {
653
- position: absolute;
653
+ position: fixed;
654
654
  box-sizing: border-box;
655
655
  overflow: hidden;
656
656
  width: max-content;
@@ -668,7 +668,7 @@ const _r=Symbol.for(""),Gr=t=>{if(t?.r===_r)return t?._$litStatic$},Yr=t=>({_$li
668
668
  position: relative;
669
669
  word-break: break-word;
670
670
  }
671
- `,si=["start","end"],li=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+si[0],o+"-"+si[1])),[]),ci=Math.min,pi=Math.max,fi=Math.round,hi=t=>({x:t,y:t}),di={left:"right",right:"left",bottom:"top",top:"bottom"},ui={start:"end",end:"start"};function yi(t,o,e){return pi(t,ci(o,e))}function gi(t,o){return"function"==typeof t?t(o):t}function bi(t){return t.split("-")[0]}function mi(t){return t.split("-")[1]}function xi(t){return"x"===t?"y":"x"}function Oi(t){return"y"===t?"height":"width"}function vi(t){return["top","bottom"].includes(bi(t))?"y":"x"}function Ni(t){return xi(vi(t))}function Si(t){return t.replace(/left|right|bottom|top/g,(t=>di[t]))}function wi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ci(t,o,e){let{reference:r,floating:i}=t;const n=vi(o),a=Ni(o),s=Oi(a),l=bi(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:p,y:r.y-i.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-i.width,y:f};break;default:d={x:r.x,y:r.y}}switch(mi(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function $i(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=gi(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=wi(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=wi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Ri(t,o,e){return(t?[...e.filter((o=>mi(o)===t)),...e.filter((o=>mi(o)!==t))]:e.filter((t=>bi(t)===t))).filter((e=>!t||(mi(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ui[t]))}(e)!==e)))}const Ei=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=li,autoAlignment:d=!0,...u}=gi(t,o),y=void 0!==f||h===li?Ri(f||null,d,h):h,g=await $i(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=mi(t),i=Ni(t),n=Oi(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Si(a)),[a,Si(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[bi(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=mi(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,mi(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Ui(t){return Li(t)?(t.nodeName||"").toLowerCase():"#document"}function ki(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ii(t){var o;return null==(o=(Li(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Li(t){return t instanceof Node||t instanceof ki(t).Node}function Wi(t){return t instanceof Element||t instanceof ki(t).Element}function Ki(t){return t instanceof HTMLElement||t instanceof ki(t).HTMLElement}function Fi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ki(t).ShadowRoot)}function zi(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Di(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Zi(t){return["table","td","th"].includes(Ui(t))}function Bi(t){const o=Ai(),e=Di(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Ai(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Mi(t){return["html","body","#document"].includes(Ui(t))}function Di(t){return ki(t).getComputedStyle(t)}function Pi(t){return Wi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hi(t){if("html"===Ui(t))return t;const o=t.assignedSlot||t.parentNode||Fi(t)&&t.host||Ii(t);return Fi(o)?o.host:o}function Ti(t){const o=Hi(t);return Mi(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ki(o)&&zi(o)?o:Ti(o)}function ji(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ti(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=ki(i);return n?o.concat(a,a.visualViewport||[],zi(i)?i:[],a.frameElement&&e?ji(a.frameElement):[]):o.concat(i,ji(i,[],e))}function _i(t){const o=Di(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ki(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,s=fi(e)!==n||fi(r)!==a;return s&&(e=n,r=a),{width:e,height:r,$:s}}function Gi(t){return Wi(t)?t:t.contextElement}function Yi(t){const o=Gi(t);if(!Ki(o))return hi(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=_i(o);let a=(n?fi(e.width):e.width)/r,s=(n?fi(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Vi=hi(0);function Ji(t){const o=ki(t);return Ai()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Vi}function qi(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Gi(t);let a=hi(1);o&&(r?Wi(r)&&(a=Yi(r)):a=Yi(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ki(t))&&o}(n,e,r)?Ji(n):hi(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=ki(n),o=r&&Wi(r)?ki(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Yi(e),o=e.getBoundingClientRect(),r=Di(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=i,c+=n,e=ki(e).frameElement}}return wi({width:p,height:f,x:l,y:c})}function Xi(t){return qi(Ii(t)).left+Pi(t).scrollLeft}function Qi(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ki(t),r=Ii(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const t=Ai();(!t||t&&"fixed"===o)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)r=function(t){const o=Ii(t),e=Pi(t),r=t.ownerDocument.body,i=pi(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=pi(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Xi(t);const s=-e.scrollTop;return"rtl"===Di(r).direction&&(a+=pi(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ii(t));else if(Wi(o))r=function(t,o){const e=qi(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ki(t)?Yi(t):hi(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ji(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return wi(r)}function tn(t,o){const e=Hi(t);return!(e===o||!Wi(e)||Mi(e))&&("fixed"===Di(e).position||tn(e,o))}function on(t,o,e){const r=Ki(o),i=Ii(o),n="fixed"===e,a=qi(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hi(0);if(r||!r&&!n)if(("body"!==Ui(o)||zi(i))&&(s=Pi(o)),r){const t=qi(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else i&&(l.x=Xi(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(t,o){return Ki(t)&&"fixed"!==Di(t).position?o?o(t):t.offsetParent:null}function rn(t,o){const e=ki(t);if(!Ki(t))return e;let r=en(t,o);for(;r&&Zi(r)&&"static"===Di(r).position;)r=en(r,o);return r&&("html"===Ui(r)||"body"===Ui(r)&&"static"===Di(r).position&&!Bi(r))?e:r||function(t){let o=Hi(t);for(;Ki(o)&&!Mi(o);){if(Bi(o))return o;o=Hi(o)}return null}(t)||e}const nn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ki(e),n=Ii(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=hi(1);const l=hi(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ui(e)||zi(n))&&(a=Pi(e)),Ki(e))){const t=qi(e);s=Yi(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ii,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=ji(t,[],!1).filter((t=>Wi(t)&&"body"!==Ui(t))),i=null;const n="fixed"===Di(t).position;let a=n?Hi(t):t;for(;Wi(a)&&!Mi(a);){const o=Di(a),e=Bi(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||zi(a)&&!e&&tn(t,a))?r=r.filter((t=>t!==a)):i=o,a=Hi(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],s=n.reduce(((t,e)=>{const r=Qi(o,e,i);return t.top=pi(r.top,t.top),t.right=ci(r.right,t.right),t.bottom=ci(r.bottom,t.bottom),t.left=pi(r.left,t.left),t}),Qi(o,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rn,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||rn,n=this.getDimensions;return{reference:on(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return _i(t)},getScale:Yi,isElement:Wi,isRTL:function(t){return"rtl"===Di(t).direction}},an=(t,o,e)=>{const r=new Map,i={platform:nn,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=Ci(c,r,l),h=r,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=Ci(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:i,middlewareData:d}})(t,o,{...i,platform:n})};var sn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ln extends Fo{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 U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
671
+ `,si=["start","end"],li=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+si[0],o+"-"+si[1])),[]),ci=Math.min,pi=Math.max,fi=Math.round,hi=t=>({x:t,y:t}),di={left:"right",right:"left",bottom:"top",top:"bottom"},ui={start:"end",end:"start"};function yi(t,o,e){return pi(t,ci(o,e))}function gi(t,o){return"function"==typeof t?t(o):t}function bi(t){return t.split("-")[0]}function mi(t){return t.split("-")[1]}function xi(t){return"x"===t?"y":"x"}function Oi(t){return"y"===t?"height":"width"}function vi(t){return["top","bottom"].includes(bi(t))?"y":"x"}function Ni(t){return xi(vi(t))}function Si(t){return t.replace(/left|right|bottom|top/g,(t=>di[t]))}function wi(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ci(t,o,e){let{reference:r,floating:i}=t;const n=vi(o),a=Ni(o),s=Oi(a),l=bi(o),c="y"===n,p=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:p,y:r.y-i.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-i.width,y:f};break;default:d={x:r.x,y:r.y}}switch(mi(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function $i(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=gi(o,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),y=s[h?"floating"===f?"reference":"floating":f],g=wi(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:p,strategy:l})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=wi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(g.top-O.top+u.top)/x.y,bottom:(O.bottom-g.bottom+u.bottom)/x.y,left:(g.left-O.left+u.left)/x.x,right:(O.right-g.right+u.right)/x.x}}function Ri(t,o,e){return(t?[...e.filter((o=>mi(o)===t)),...e.filter((o=>mi(o)!==t))]:e.filter((t=>bi(t)===t))).filter((e=>!t||(mi(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>ui[t]))}(e)!==e)))}const Ei=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=o,{crossAxis:p=!1,alignment:f,allowedPlacements:h=li,autoAlignment:d=!0,...u}=gi(t,o),y=void 0!==f||h===li?Ri(f||null,d,h):h,g=await $i(o,u),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=mi(t),i=Ni(t),n=Oi(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Si(a)),[a,Si(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[bi(m)],g[x[0]],g[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=mi(t.placement);return[t.placement,o&&p?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,mi(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=w[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Ui(t){return Li(t)?(t.nodeName||"").toLowerCase():"#document"}function ki(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Ii(t){var o;return null==(o=(Li(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Li(t){return t instanceof Node||t instanceof ki(t).Node}function Wi(t){return t instanceof Element||t instanceof ki(t).Element}function Ki(t){return t instanceof HTMLElement||t instanceof ki(t).HTMLElement}function Fi(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ki(t).ShadowRoot)}function zi(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=Di(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function Zi(t){return["table","td","th"].includes(Ui(t))}function Bi(t){const o=Ai(),e=Di(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function Ai(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Mi(t){return["html","body","#document"].includes(Ui(t))}function Di(t){return ki(t).getComputedStyle(t)}function Pi(t){return Wi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hi(t){if("html"===Ui(t))return t;const o=t.assignedSlot||t.parentNode||Fi(t)&&t.host||Ii(t);return Fi(o)?o.host:o}function Ti(t){const o=Hi(t);return Mi(o)?t.ownerDocument?t.ownerDocument.body:t.body:Ki(o)&&zi(o)?o:Ti(o)}function ji(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=Ti(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=ki(i);return n?o.concat(a,a.visualViewport||[],zi(i)?i:[],a.frameElement&&e?ji(a.frameElement):[]):o.concat(i,ji(i,[],e))}function _i(t){const o=Di(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=Ki(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,s=fi(e)!==n||fi(r)!==a;return s&&(e=n,r=a),{width:e,height:r,$:s}}function Gi(t){return Wi(t)?t:t.contextElement}function Yi(t){const o=Gi(t);if(!Ki(o))return hi(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=_i(o);let a=(n?fi(e.width):e.width)/r,s=(n?fi(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Vi=hi(0);function Ji(t){const o=ki(t);return Ai()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:Vi}function qi(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=Gi(t);let a=hi(1);o&&(r?Wi(r)&&(a=Yi(r)):a=Yi(t));const s=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==ki(t))&&o}(n,e,r)?Ji(n):hi(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,p=i.width/a.x,f=i.height/a.y;if(n){const t=ki(n),o=r&&Wi(r)?ki(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=Yi(e),o=e.getBoundingClientRect(),r=Di(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;l*=t.x,c*=t.y,p*=t.x,f*=t.y,l+=i,c+=n,e=ki(e).frameElement}}return wi({width:p,height:f,x:l,y:c})}function Xi(t){return qi(Ii(t)).left+Pi(t).scrollLeft}function Qi(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=ki(t),r=Ii(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const t=Ai();(!t||t&&"fixed"===o)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,e);else if("document"===o)r=function(t){const o=Ii(t),e=Pi(t),r=t.ownerDocument.body,i=pi(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=pi(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+Xi(t);const s=-e.scrollTop;return"rtl"===Di(r).direction&&(a+=pi(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Ii(t));else if(Wi(o))r=function(t,o){const e=qi(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=Ki(t)?Yi(t):hi(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=Ji(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return wi(r)}function tn(t,o){const e=Hi(t);return!(e===o||!Wi(e)||Mi(e))&&("fixed"===Di(e).position||tn(e,o))}function on(t,o,e){const r=Ki(o),i=Ii(o),n="fixed"===e,a=qi(t,!0,n,o);let s={scrollLeft:0,scrollTop:0};const l=hi(0);if(r||!r&&!n)if(("body"!==Ui(o)||zi(i))&&(s=Pi(o)),r){const t=qi(o,!0,n,o);l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}else i&&(l.x=Xi(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function en(t,o){return Ki(t)&&"fixed"!==Di(t).position?o?o(t):t.offsetParent:null}function rn(t,o){const e=ki(t);if(!Ki(t))return e;let r=en(t,o);for(;r&&Zi(r)&&"static"===Di(r).position;)r=en(r,o);return r&&("html"===Ui(r)||"body"===Ui(r)&&"static"===Di(r).position&&!Bi(r))?e:r||function(t){let o=Hi(t);for(;Ki(o)&&!Mi(o);){if(Bi(o))return o;o=Hi(o)}return null}(t)||e}const nn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=Ki(e),n=Ii(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},s=hi(1);const l=hi(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ui(e)||zi(n))&&(a=Pi(e)),Ki(e))){const t=qi(e);s=Yi(e),l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}return{width:o.width*s.x,height:o.height*s.y,x:o.x*s.x-a.scrollLeft*s.x+l.x,y:o.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ii,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=ji(t,[],!1).filter((t=>Wi(t)&&"body"!==Ui(t))),i=null;const n="fixed"===Di(t).position;let a=n?Hi(t):t;for(;Wi(a)&&!Mi(a);){const o=Di(a),e=Bi(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||zi(a)&&!e&&tn(t,a))?r=r.filter((t=>t!==a)):i=o,a=Hi(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],s=n.reduce(((t,e)=>{const r=Qi(o,e,i);return t.top=pi(r.top,t.top),t.right=ci(r.right,t.right),t.bottom=ci(r.bottom,t.bottom),t.left=pi(r.left,t.left),t}),Qi(o,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rn,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||rn,n=this.getDimensions;return{reference:on(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return _i(t)},getScale:Yi,isElement:Wi,isRTL:function(t){return"rtl"===Di(t).direction}},an=(t,o,e)=>{const r=new Map,i={platform:nn,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:p,y:f}=Ci(c,r,l),h=r,d={},u=0;for(let e=0;e<s.length;e++){const{name:n,fn:y}=s[e],{x:g,y:b,data:m,reset:x}=await y({x:p,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});p=null!=g?g:p,f=null!=b?b:f,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:p,y:f}=Ci(c,h,l))),e=-1)}return{x:p,y:f,placement:h,strategy:i,middlewareData:d}})(t,o,{...i,platform:n})};function sn(t){return function(t){for(let o=t;o;o=ln(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=ln(t);o;o=ln(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function ln(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var cn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pn extends Fo{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 U,this.revealDebouncer=new U}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return to`
672
672
  <div part="container"
673
673
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
674
674
  @mouseenter=${this.onHover}
@@ -676,7 +676,7 @@ const _r=Symbol.for(""),Gr=t=>{if(t?.r===_r)return t?._$litStatic$},Yr=t=>({_$li
676
676
  @focusin=${this.onHover}
677
677
  @focusout=${this.onOut}
678
678
  @touchstart=${this.onTouch}>
679
- <slot></slot>
679
+ <slot part="slot"></slot>
680
680
  <div part="tooltip" role="tooltip" inert
681
681
  class="ft-tooltip ft-tooltip--${this.validPosition}"
682
682
  ?hidden=${!this.visible}>
@@ -686,25 +686,25 @@ const _r=Symbol.for(""),Gr=t=>{if(t?.r===_r)return t?._$litStatic$},Yr=t=>({_$li
686
686
  </div>
687
687
  </div>
688
688
  </div>
689
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",an(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=gi(t,o),c={x:e,y:r},p=await $i(o,l),f=vi(bi(i)),h=xi(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=yi(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=yi(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Ei({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ln.elementDefinitions={"ft-typography":Qr},ln.styles=ai,sn([w()],ln.prototype,"text",void 0),sn([w({type:Boolean})],ln.prototype,"manual",void 0),sn([w({type:Boolean})],ln.prototype,"inline",void 0),sn([w({type:Number})],ln.prototype,"delay",void 0),sn([w()],ln.prototype,"position",void 0),sn([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],ln.prototype,"slotNodes",void 0),sn([E(".ft-tooltip--container")],ln.prototype,"container",void 0),sn([E(".ft-tooltip")],ln.prototype,"tooltip",void 0),sn([E(".ft-tooltip--content")],ln.prototype,"tooltipContent",void 0),sn([C()],ln.prototype,"visible",void 0),sn([$({passive:!0})],ln.prototype,"onTouch",null),sn([$({passive:!0})],ln.prototype,"onHover",null),sn([$({passive:!0})],ln.prototype,"onOut",null),I("ft-tooltip")(ln);
689
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",an(this.slottedElement,this.tooltip,{platform:{...nn,getOffsetParent:t=>nn.getOffsetParent(t,sn)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...l}=gi(t,o),c={x:e,y:r},p=await $i(o,l),f=vi(bi(i)),h=xi(f);let d=c[h],u=c[f];if(n){const t="y"===h?"bottom":"right";d=yi(d+p["y"===h?"top":"left"],d,d-p[t])}if(a){const t="y"===f?"bottom":"right";u=yi(u+p["y"===f?"top":"left"],u,u-p[t])}const y=s.fn({...o,[h]:d,[f]:u});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Ei({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}pn.elementDefinitions={"ft-typography":Qr},pn.styles=ai,cn([w()],pn.prototype,"text",void 0),cn([w({type:Boolean})],pn.prototype,"manual",void 0),cn([w({type:Boolean})],pn.prototype,"inline",void 0),cn([w({type:Number})],pn.prototype,"delay",void 0),cn([w()],pn.prototype,"position",void 0),cn([function(t){return(o,e)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(i);return o?.assignedNodes(t)??[]}})}}()],pn.prototype,"slotNodes",void 0),cn([E(".ft-tooltip--container")],pn.prototype,"container",void 0),cn([E(".ft-tooltip")],pn.prototype,"tooltip",void 0),cn([E(".ft-tooltip--content")],pn.prototype,"tooltipContent",void 0),cn([C()],pn.prototype,"visible",void 0),cn([$({passive:!0})],pn.prototype,"onTouch",null),cn([$({passive:!0})],pn.prototype,"onHover",null),cn([$({passive:!0})],pn.prototype,"onOut",null),I("ft-tooltip")(pn);
690
690
  /**
691
691
  * @license
692
692
  * Copyright 2017 Google LLC
693
693
  * SPDX-License-Identifier: BSD-3-Clause
694
694
  */
695
- class cn extends Pr{constructor(t){if(super(t),this.et=Q,t.type!==Mr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const pn=Dr(cn);var fn,hn,dn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(fn||(fn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(hn||(hn={})),new Map([...["abw"].map((t=>[t,hn.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,hn.AUDIO])),...["avi"].map((t=>[t,hn.AVI])),...["chm","xhs"].map((t=>[t,hn.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,hn.CODE])),...["csv"].map((t=>[t,hn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,hn.DITA])),...["epub"].map((t=>[t,hn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,hn.EXCEL])),...["flac"].map((t=>[t,hn.FLAC])),...["gif"].map((t=>[t,hn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,hn.GZIP])),...["html","htm","xhtml"].map((t=>[t,hn.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,hn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,hn.JPEG])),...["json"].map((t=>[t,hn.JSON])),...["m4a","m4p"].map((t=>[t,hn.M4A])),...["mov","qt"].map((t=>[t,hn.MOV])),...["mp3"].map((t=>[t,hn.MP3])),...["mp4","m4v"].map((t=>[t,hn.MP4])),...["ogg","oga"].map((t=>[t,hn.OGG])),...["pdf","ps"].map((t=>[t,hn.PDF])),...["png"].map((t=>[t,hn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,hn.POWERPOINT])),...["rar"].map((t=>[t,hn.RAR])),...["stp"].map((t=>[t,hn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,hn.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,hn.VIDEO])),...["wav"].map((t=>[t,hn.WAV])),...["wma"].map((t=>[t,hn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,hn.WORD])),...["xml","xsl","rdf"].map((t=>[t,hn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,hn.YAML])),...["zip"].map((t=>[t,hn.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(dn||(dn={}));var un=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yn extends Fo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(dn).includes(this.variant)?this.variant:dn.fluid_topics,o=t!==dn.material||!!this.value;return to`
695
+ class fn extends Pr{constructor(t){if(super(t),this.et=Q,t.type!==Mr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}fn.directiveName="unsafeHTML",fn.resultType=1;const hn=Dr(fn);var dn,un,yn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(dn||(dn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(un||(un={})),new Map([...["abw"].map((t=>[t,un.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,un.AUDIO])),...["avi"].map((t=>[t,un.AVI])),...["chm","xhs"].map((t=>[t,un.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,un.CODE])),...["csv"].map((t=>[t,un.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,un.DITA])),...["epub"].map((t=>[t,un.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,un.EXCEL])),...["flac"].map((t=>[t,un.FLAC])),...["gif"].map((t=>[t,un.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,un.GZIP])),...["html","htm","xhtml"].map((t=>[t,un.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,un.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,un.JPEG])),...["json"].map((t=>[t,un.JSON])),...["m4a","m4p"].map((t=>[t,un.M4A])),...["mov","qt"].map((t=>[t,un.MOV])),...["mp3"].map((t=>[t,un.MP3])),...["mp4","m4v"].map((t=>[t,un.MP4])),...["ogg","oga"].map((t=>[t,un.OGG])),...["pdf","ps"].map((t=>[t,un.PDF])),...["png"].map((t=>[t,un.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,un.POWERPOINT])),...["rar"].map((t=>[t,un.RAR])),...["stp"].map((t=>[t,un.STP])),...["txt","rtf","md","mdown"].map((t=>[t,un.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,un.VIDEO])),...["wav"].map((t=>[t,un.WAV])),...["wma"].map((t=>[t,un.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,un.WORD])),...["xml","xsl","rdf"].map((t=>[t,un.XML])),...["yaml","yml","x-yaml"].map((t=>[t,un.YAML])),...["zip"].map((t=>[t,un.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(yn||(yn={}));var gn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class bn extends Fo{constructor(){super(...arguments),this.resolvedIcon=eo}render(){const t=this.variant&&Object.values(yn).includes(this.variant)?this.variant:yn.fluid_topics,o=t!==yn.material||!!this.value;return to`
696
696
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
697
- ${pn(this.resolvedIcon)}
697
+ ${hn(this.resolvedIcon)}
698
698
  <slot ?hidden=${o}></slot>
699
699
  </i>
700
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case dn.file_format:this.resolvedIcon=null!==(t=hn[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case dn.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=fn[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}yn.elementDefinitions={},yn.styles=Ur,un([w()],yn.prototype,"variant",void 0),un([w()],yn.prototype,"value",void 0),un([C()],yn.prototype,"resolvedIcon",void 0),un([E("slot")],yn.prototype,"slottedContent",void 0),I("ft-icon")(yn);class gn extends Fo{render(){return to`
700
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case yn.file_format:this.resolvedIcon=null!==(t=un[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case yn.material:this.resolvedIcon=this.value||eo;break;default:this.resolvedIcon=null!==(o=dn[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}bn.elementDefinitions={},bn.styles=Ur,gn([w()],bn.prototype,"variant",void 0),gn([w()],bn.prototype,"value",void 0),gn([C()],bn.prototype,"resolvedIcon",void 0),gn([E("slot")],bn.prototype,"slottedContent",void 0),I("ft-icon")(bn);class mn extends Fo{render(){return to`
701
701
  <div class="ft-loader">
702
702
  <div></div>
703
703
  <div></div>
704
704
  <div></div>
705
705
  <div></div>
706
706
  </div>
707
- `}}gn.styles=Rr,I("ft-loader")(gn);var bn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mn extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].setFormValue(t)}}}(Fo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
707
+ `}}mn.styles=Rr,I("ft-loader")(mn);var xn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class On extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=o}setFormValue(t){this[Go].setFormValue(t)}}}(Fo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(to`
708
708
  <button part="button"
709
709
  class="${Hr(this.buttonClasses)}"
710
710
  aria-label="${this.getLabel()}"
@@ -727,7 +727,7 @@ class cn extends Pr{constructor(t){if(super(t),this.et=Q,t.type!==Mr)throw Error
727
727
  </ft-tooltip>
728
728
  `:t}resolveIcon(){return this.loading?to`
729
729
  <ft-loader part="loader icon"></ft-loader> `:this.icon?to`
730
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mn.elementDefinitions={"ft-ripple":jr,"ft-tooltip":ln,"ft-typography":Qr,"ft-icon":yn,"ft-loader":gn},bn([w({type:String,reflect:!0})],mn.prototype,"role",void 0),bn([w()],mn.prototype,"type",void 0),bn([w({type:Boolean})],mn.prototype,"disabled",void 0),bn([w()],mn.prototype,"label",void 0),bn([w()],mn.prototype,"icon",void 0),bn([w()],mn.prototype,"iconVariant",void 0),bn([w({type:Boolean})],mn.prototype,"trailingIcon",void 0),bn([w({type:Boolean})],mn.prototype,"loading",void 0),bn([w()],mn.prototype,"tooltipPosition",void 0),bn([w({type:Boolean})],mn.prototype,"hideTooltip",void 0),bn([w({type:Boolean})],mn.prototype,"forceTooltip",void 0),bn([E(".ft-button")],mn.prototype,"button",void 0),bn([E(".ft-button--label slot")],mn.prototype,"slottedContent",void 0);var xn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class On extends mn{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"}}On.styles=[Bo,Br],xn([w({type:Boolean})],On.prototype,"primary",void 0),xn([w({type:Boolean})],On.prototype,"outlined",void 0),xn([w({type:Boolean})],On.prototype,"dense",void 0),xn([w({type:Boolean})],On.prototype,"round",void 0);const vn=[mt`
730
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:eo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}On.elementDefinitions={"ft-ripple":jr,"ft-tooltip":pn,"ft-typography":Qr,"ft-icon":bn,"ft-loader":mn},xn([w({type:String,reflect:!0})],On.prototype,"role",void 0),xn([w()],On.prototype,"type",void 0),xn([w({type:Boolean})],On.prototype,"disabled",void 0),xn([w()],On.prototype,"label",void 0),xn([w()],On.prototype,"icon",void 0),xn([w()],On.prototype,"iconVariant",void 0),xn([w({type:Boolean})],On.prototype,"trailingIcon",void 0),xn([w({type:Boolean})],On.prototype,"loading",void 0),xn([w()],On.prototype,"tooltipPosition",void 0),xn([w({type:Boolean})],On.prototype,"hideTooltip",void 0),xn([w({type:Boolean})],On.prototype,"forceTooltip",void 0),xn([E(".ft-button")],On.prototype,"button",void 0),xn([E(".ft-button--label slot")],On.prototype,"slottedContent",void 0);var vn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nn extends On{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"}}Nn.styles=[Bo,Br],vn([w({type:Boolean})],Nn.prototype,"primary",void 0),vn([w({type:Boolean})],Nn.prototype,"outlined",void 0),vn([w({type:Boolean})],Nn.prototype,"dense",void 0),vn([w({type:Boolean})],Nn.prototype,"round",void 0);const Sn=[mt`
731
731
  :host {
732
732
  display: inline-block;
733
733
  max-width: 100%;
@@ -945,13 +945,13 @@ class cn extends Pr{constructor(t){if(super(t),this.et=Q,t.type!==Mr)throw Error
945
945
  width: ${Co.smallIconOnlyWidth};
946
946
  padding: unset;
947
947
  }
948
- `,Zo];var Nn,Sn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wn extends mn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?qr.caption1medium:qr.body2medium}}wn.styles=[Bo,vn],Sn([w({type:Boolean})],wn.prototype,"primary",void 0),Sn([w({type:Boolean})],wn.prototype,"secondary",void 0),Sn([w({type:Boolean})],wn.prototype,"tertiary",void 0),Sn([w({type:Boolean})],wn.prototype,"neutral",void 0),Sn([w({type:Boolean})],wn.prototype,"small",void 0),I("ft-button")(On),I("ftds-button")(wn),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Nn||(Nn={}));var Cn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $n extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Rn=Symbol("registerInterval");class En extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Rn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Rn]):this.dispatchEvent(new $n)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Rn,Cn([C()],e.prototype,"stateManager",void 0),e}(_o)){}var Un=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class kn extends En{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=Hr({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return to`
948
+ `,Zo];var wn,Cn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $n extends On{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?qr.caption1medium:qr.body2medium}}$n.styles=[Bo,Sn],Cn([w({type:Boolean})],$n.prototype,"primary",void 0),Cn([w({type:Boolean})],$n.prototype,"secondary",void 0),Cn([w({type:Boolean})],$n.prototype,"tertiary",void 0),Cn([w({type:Boolean})],$n.prototype,"neutral",void 0),Cn([w({type:Boolean})],$n.prototype,"small",void 0),I("ft-button")(Nn),I("ftds-button")($n),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(wn||(wn={}));var Rn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class En extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Un=Symbol("registerInterval");class kn extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Un]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Un]):this.dispatchEvent(new En)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Un,Rn([C()],e.prototype,"stateManager",void 0),e}(_o)){}var In=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ln extends kn{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=Hr({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return to`
949
949
  <a class=${o}
950
950
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
951
951
  @click=${t=>this.onLinkClick(t)}>
952
952
  <slot></slot>
953
953
  </a>
954
- `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}kn.styles=Qo,Un([w()],kn.prototype,"tocId",void 0),Un([w()],kn.prototype,"section",void 0),Un([w({type:Number})],kn.prototype,"pageNumber",void 0),Un([w({type:Boolean})],kn.prototype,"removeStyle",void 0),I("ft-reader-internal-link")(kn);var In=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ln extends En{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new U(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?fn.THIN_ARROW_RIGHT:fn.THIN_ARROW_LEFT}render(){var t,o,e,r,i;if(null==this.targetPage&&!this.editorMode)return eo;const n=to`
954
+ `}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}Ln.styles=Qo,In([w()],Ln.prototype,"tocId",void 0),In([w()],Ln.prototype,"section",void 0),In([w({type:Number})],Ln.prototype,"pageNumber",void 0),In([w({type:Boolean})],Ln.prototype,"removeStyle",void 0),I("ft-reader-internal-link")(Ln);var Wn=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Kn extends kn{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new U(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?dn.THIN_ARROW_RIGHT:dn.THIN_ARROW_LEFT}render(){var t,o,e,r,i;if(null==this.targetPage&&!this.editorMode)return eo;const n=to`
955
955
  <ft-button ?forceTooltip=${!this.hideTooltip}
956
956
  ?hideTooltip=${this.hideTooltip}
957
957
  ?trailingIcon=${this.trailingIcon}
@@ -965,4 +965,4 @@ class cn extends Pr{constructor(t){if(super(t),this.et=Q,t.type!==Mr)throw Error
965
965
  <ft-reader-internal-link .tocId=${null===(i=this.targetPage)||void 0===i?void 0:i.rootTocId} removestyle>
966
966
  ${n}
967
967
  </ft-reader-internal-link>
968
- `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,o;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(o=this.targetPage)||void 0===o?void 0:o.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Ln.elementDefinitions={"ft-button":On,"ft-reader-internal-link":kn},Ln.styles=te,In([w()],Ln.prototype,"target",void 0),In([w()],Ln.prototype,"content",void 0),In([w()],Ln.prototype,"tooltipPosition",void 0),In([w({type:Boolean})],Ln.prototype,"hideTooltip",void 0),In([w()],Ln.prototype,"iconVariant",void 0),In([w()],Ln.prototype,"icon",void 0),In([w({type:Boolean})],Ln.prototype,"trailingIcon",void 0),In([w({type:Boolean,attribute:!1})],Ln.prototype,"editorMode",void 0),In([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!k(t,o),attribute:!1,...o};w(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})()],Ln.prototype,"currentPage",void 0),In([C()],Ln.prototype,"targetPage",void 0),I("ft-reader-navigation-button")(Ln),t.FtReaderNavigationButton=Ln,t.FtReaderNavigationButtonCssVariables={},t.styles=te}({});
968
+ `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,o;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(o=this.targetPage)||void 0===o?void 0:o.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Kn.elementDefinitions={"ft-button":Nn,"ft-reader-internal-link":Ln},Kn.styles=te,Wn([w()],Kn.prototype,"target",void 0),Wn([w()],Kn.prototype,"content",void 0),Wn([w()],Kn.prototype,"tooltipPosition",void 0),Wn([w({type:Boolean})],Kn.prototype,"hideTooltip",void 0),Wn([w()],Kn.prototype,"iconVariant",void 0),Wn([w()],Kn.prototype,"icon",void 0),Wn([w({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Wn([w({type:Boolean,attribute:!1})],Kn.prototype,"editorMode",void 0),Wn([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!k(t,o),attribute:!1,...o};w(i)(t,e);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})()],Kn.prototype,"currentPage",void 0),Wn([C()],Kn.prototype,"targetPage",void 0),I("ft-reader-navigation-button")(Kn),t.FtReaderNavigationButton=Kn,t.FtReaderNavigationButtonCssVariables={},t.styles=te}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.1.8",
23
- "@fluid-topics/ft-reader-context": "1.1.8",
24
- "@fluid-topics/ft-reader-internal-link": "1.1.8",
25
- "@fluid-topics/ft-tooltip": "1.1.8",
26
- "@fluid-topics/ft-wc-utils": "1.1.8",
22
+ "@fluid-topics/ft-button": "1.1.10",
23
+ "@fluid-topics/ft-reader-context": "1.1.10",
24
+ "@fluid-topics/ft-reader-internal-link": "1.1.10",
25
+ "@fluid-topics/ft-tooltip": "1.1.10",
26
+ "@fluid-topics/ft-wc-utils": "1.1.10",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "95fb2d06899d700513970ac830958922b98539df"
29
+ "gitHead": "dd861ad18248198f16fe78602cb5d72049c15ec2"
30
30
  }