@fluid-topics/ft-reader-topic-metadata 0.3.22 → 0.3.23

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.
@@ -2,12 +2,12 @@
2
2
  :host {
3
3
  display: inline-block;
4
4
  }
5
- `;var l=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const a=function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new p)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux);var h=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class f extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const c=function(t){class i extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new f)),10)}}return h([o.state()],i.prototype,"tocNode",void 0),i}(a);
5
+ `;var l=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class a extends(function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new p)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return l([o.state()],i.prototype,"stateManager",void 0),i}(i.FtLitElementRedux)){}var h,f=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class c extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class d extends(function(t){class i extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new c)),10)}}return f([o.state()],i.prototype,"tocNode",void 0),i}(a)){}
6
6
  /**
7
7
  * @license
8
8
  * Copyright 2017 Google LLC
9
9
  * SPDX-License-Identifier: BSD-3-Clause
10
- */var d;const u=window,g=u.trustedTypes,y=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,v="?"+x,m=`<${v}>`,b=document,$=(t="")=>b.createComment(t),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,C=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,N=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),A=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),T=new WeakMap,F=b.createTreeWalker(b,129,null,!1),M=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=z;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===z?"!--"===p[1]?r=O:void 0!==p[1]?r=C:void 0!==p[2]?(E.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=S):void 0!==p[3]&&(r=S):r===S?">"===p[0]?(r=null!=n?n:z,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?S:'"'===p[3]?N:j):r===N||r===j?r=S:r===O||r===C?r=z:(r=S,n=void 0);const f=r===S&&t[i+1].startsWith("/>")?" ":"";s+=r===z?e+m:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+x+f):e+x+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class _{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=M(t,i);if(this.el=_.createElement(p,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(x)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(x),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?D:"?"===i[1]?G:"@"===i[1]?H:W})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(E.test(o.tagName)){const t=o.textContent.split(x),i=t.length-1;if(i>0){o.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],$()),F.nextNode(),l.push({type:2,index:++n});o.append(t[i],$())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)l.push({type:7,index:n}),t+=x.length-1}n++}}static createElement(t,i){const e=b.createElement("template");return e.innerHTML=t,e}}function U(t,i,e=t,o){var n,s,r,l;if(i===A)return i;let p=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const a=w(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=U(t,p._$AS(t,i.values),p,o)),i}class Z{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(e,!0);F.currentNode=n;let s=F.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new R(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new L(s,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(s=F.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class R{constructor(t,i,e,o){var n;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=U(this,t,i),w(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==A&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==B&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new Z(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new _(t)),i}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new R(this.O($()),this.O($()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,n){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=U(this,t,i,0),s=!w(t)||t!==this._$AH&&t!==A,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=U(this,o[e+r],i,r),l===A&&(l=this._$AH[r]),s||(s=!w(l)||l!==this._$AH[r]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}const K=g?g.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==B?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class H extends W{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=U(this,t,i,0))&&void 0!==e?e:B)===A)return;const o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const P=u.litHtmlPolyfillSupport;null==P||P(_,R),(null!==(d=u.litHtmlVersions)&&void 0!==d?d:u.litHtmlVersions=[]).push("2.4.0");
10
+ */const u=window,g=u.trustedTypes,y=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,v="?"+x,m=`<${v}>`,b=document,$=(t="")=>b.createComment(t),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,C=/>/g,S=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),j=/'/g,N=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),A=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),T=new WeakMap,F=b.createTreeWalker(b,129,null,!1),M=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=z;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(r.lastIndex=h,p=r.exec(e),null!==p);)h=r.lastIndex,r===z?"!--"===p[1]?r=O:void 0!==p[1]?r=C:void 0!==p[2]?(E.test(p[2])&&(n=RegExp("</"+p[2],"g")),r=S):void 0!==p[3]&&(r=S):r===S?">"===p[0]?(r=null!=n?n:z,a=-1):void 0===p[1]?a=-2:(a=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?S:'"'===p[3]?N:j):r===N||r===j?r=S:r===O||r===C?r=z:(r=S,n=void 0);const f=r===S&&t[i+1].startsWith("/>")?" ":"";s+=r===z?e+m:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+x+f):e+x+(-2===a?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class _{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,a]=M(t,i);if(this.el=_.createElement(p,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(x)){const e=a[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(x),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?D:"?"===i[1]?G:"@"===i[1]?H:W})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(E.test(o.tagName)){const t=o.textContent.split(x),i=t.length-1;if(i>0){o.textContent=g?g.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],$()),F.nextNode(),l.push({type:2,index:++n});o.append(t[i],$())}}}else if(8===o.nodeType)if(o.data===v)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)l.push({type:7,index:n}),t+=x.length-1}n++}}static createElement(t,i){const e=b.createElement("template");return e.innerHTML=t,e}}function U(t,i,e=t,o){var n,s,r,l;if(i===A)return i;let p=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const a=w(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=U(t,p._$AS(t,i.values),p,o)),i}class Z{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:b).importNode(e,!0);F.currentNode=n;let s=F.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new R(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new L(s,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(s=F.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class R{constructor(t,i,e,o){var n;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=U(this,t,i),w(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==A&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>k(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==B&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(b.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new Z(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new _(t)),i}k(t){k(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new R(this.O($()),this.O($()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,n){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=U(this,t,i,0),s=!w(t)||t!==this._$AH&&t!==A,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=U(this,o[e+r],i,r),l===A&&(l=this._$AH[r]),s||(s=!w(l)||l!==this._$AH[r]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class D extends W{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}const K=g?g.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}j(t){t&&t!==B?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class H extends W{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=U(this,t,i,0))&&void 0!==e?e:B)===A)return;const o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const P=u.litHtmlPolyfillSupport;null==P||P(_,R),(null!==(h=u.litHtmlVersions)&&void 0!==h?h:u.litHtmlVersions=[]).push("2.4.0");
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2020 Google LLC
@@ -460,7 +460,7 @@ const q=Symbol.for(""),X=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
460
460
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
461
461
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
462
462
  </div>
463
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Qi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Qi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Vi.elementDefinitions={"ft-ripple":Ui,"ft-typography":yi,"ft-icon":Ki},Vi.styles=Yi,Ji([o.property({type:Boolean})],Vi.prototype,"highlighted",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"removable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"clickable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"iconClickable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"dense",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"multiLine",void 0),Ji([o.property({type:String})],Vi.prototype,"label",void 0),Ji([o.property({type:String})],Vi.prototype,"icon",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Ji([o.query("ft-typography slot")],Vi.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Vi);var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends c{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
463
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Qi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Qi))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Vi.elementDefinitions={"ft-ripple":Ui,"ft-typography":yi,"ft-icon":Ki},Vi.styles=Yi,Ji([o.property({type:Boolean})],Vi.prototype,"highlighted",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"removable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"clickable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"iconClickable",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"dense",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"multiLine",void 0),Ji([o.property({type:String})],Vi.prototype,"label",void 0),Ji([o.property({type:String})],Vi.prototype,"icon",void 0),Ji([o.property({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Ji([o.query("ft-typography slot")],Vi.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Vi);var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends d{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
464
464
  <ft-tooltip text="${this.tooltipText}">
465
465
  <ft-chip>
466
466
  ${this.renderContent()}
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const g=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(ke){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):s.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(i.has(s)){const t=this.getAttribute(s);o.call(this,s,n),e.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const g=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new s(i)}})}}try{window.customElements.define("custom-element",null)}catch(Se){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -93,118 +93,118 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
93
93
  -webkit-hyphens: auto;
94
94
  hyphens: auto
95
95
  }
96
- `;var mt,bt,wt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(bt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===bt?void 0:bt.toString())&&void 0!==wt?wt:""),Ot=y`
96
+ `;class mt extends gt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((i,e)=>{this[e]=i(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}}var bt,wt,$t;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(bt=window.safari)||void 0===bt?void 0:bt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),kt=y`
97
97
  :host {
98
98
  display: inline-block;
99
99
  }
100
- `;var kt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class St extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ct=function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new St)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return kt([n()],i.prototype,"stateManager",void 0),i}(class extends gt{get store(){return this.internalStore}set store(t){this.internalStore=t,this.store&&this.setupStore()}updateFromStore(){const t=this.store.getState();this.reduxProperties&&this.reduxProperties.forEach(((i,e)=>{this[e]=i(t,this)}))}setupStore(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),this.updateFromStore(),this.unsubscribeFromStore=this.store.subscribe((()=>{this.updateFromStore()})),this.onStoreAvailable(),this.requestUpdate()}onStoreAvailable(){}connectedCallback(){super.connectedCallback(),this.store&&this.setupStore()}disconnectedCallback(){this.unsubscribeFromStore&&this.unsubscribeFromStore(),super.disconnectedCallback()}});var Nt=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Et extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Rt=function(t){class i extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Et)),10)}}return Nt([n()],i.prototype,"tocNode",void 0),i}(Ct),Mt=Symbol.for(""),zt=t=>{if((null==t?void 0:t.r)===Mt)return null==t?void 0:t._$litStatic$},Ut=t=>({_$litStatic$:t,r:Mt}),Ft=new Map,jt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=zt(s));)l+=n+i[++h],c=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Ft.get(t))&&(r.raw=r,Ft.set(t,i=r)),e=a}return t(i,...e)})(Z);
100
+ `;var St=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ct extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Nt extends(function(t){class i extends t{setReaderStateManager(t){this.stateManager=t,this.store=t.store}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Ct)),10)}disconnectedCallback(){super.disconnectedCallback(),this.store=void 0,this.stateManager=void 0}}return St([n()],i.prototype,"stateManager",void 0),i}(mt)){}var Et=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Rt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Mt extends(function(t){class i extends t{connectedCallback(){super.connectedCallback(),setTimeout((()=>this.dispatchEvent(new Rt)),10)}}return Et([n()],i.prototype,"tocNode",void 0),i}(Nt)){}
101
101
  /**
102
102
  * @license
103
103
  * Copyright 2020 Google LLC
104
104
  * SPDX-License-Identifier: BSD-3-Clause
105
- */var At;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(At||(At={}));const Bt=dt.extend("--ft-typography-font-family",vt.titleFont),Lt=dt.extend("--ft-typography-font-family",vt.contentFont),Tt={fontFamily:Lt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Pt=dt.extend("--ft-typography-title-font-family",Bt),It=dt.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),_t=dt.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),Dt=dt.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),Wt=dt.extend("--ft-typography-title-line-height",Tt.lineHeight,"1.2"),Kt=dt.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),Ht=dt.extend("--ft-typography-title-dense-font-family",Bt),Zt=dt.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Vt=dt.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),Jt=dt.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),qt=dt.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"1.7"),Xt=dt.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),Yt=dt.extend("--ft-typography-subtitle1-font-family",Lt),Gt=dt.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),Qt=dt.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),ti=dt.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),ii=dt.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"1.5"),ei=dt.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),oi=dt.extend("--ft-typography-subtitle2-font-family",Lt),ni=dt.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),si=dt.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),ri=dt.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),ai=dt.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"1.7"),li=dt.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),hi=dt.extend("--ft-typography-body1-font-family",Lt),ci=dt.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),pi=dt.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),fi=dt.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),di=dt.extend("--ft-typography-body1-line-height",Tt.lineHeight,"1.5"),ui=dt.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit"),vi={fontFamily:dt.extend("--ft-typography-body2-font-family",Lt),fontSize:dt.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),letterSpacing:dt.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),lineHeight:dt.extend("--ft-typography-body2-line-height",Tt.lineHeight,"1.4"),textTransform:dt.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit")},yi=dt.extend("--ft-typography-caption-font-family",Lt),gi=dt.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),xi=dt.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),mi=dt.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),bi=dt.extend("--ft-typography-caption-line-height",Tt.lineHeight,"1.33"),wi=dt.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit"),$i=dt.extend("--ft-typography-breadcrumb-font-family",Lt),Oi=dt.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),ki=dt.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Si=dt.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Ci=dt.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"1.6"),Ni=dt.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),Ei=dt.extend("--ft-typography-overline-font-family",Lt),Ri=dt.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),Mi=dt.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),zi=dt.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),Ui=dt.extend("--ft-typography-overline-line-height",Tt.lineHeight,"1.6"),Fi=dt.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),ji=dt.extend("--ft-typography-button-font-family",Lt),Ai=dt.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),Bi=dt.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),Li=dt.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),Ti=dt.extend("--ft-typography-button-line-height",Tt.lineHeight,"1.15"),Pi=dt.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase"),Ii=y`
105
+ */const zt=Symbol.for(""),Ut=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},Ft=t=>({_$litStatic$:t,r:zt}),jt=new Map,At=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=Ut(s));)l+=n+i[++h],c=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=jt.get(t))&&(r.raw=r,jt.set(t,i=r)),e=a}return t(i,...e)})(Z);var Bt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Bt||(Bt={}));const Lt=dt.extend("--ft-typography-font-family",vt.titleFont),Tt=dt.extend("--ft-typography-font-family",vt.contentFont),Pt={fontFamily:Tt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},It=dt.extend("--ft-typography-title-font-family",Lt),_t=dt.extend("--ft-typography-title-font-size",Pt.fontSize,"20px"),Dt=dt.extend("--ft-typography-title-font-weight",Pt.fontWeight,"normal"),Wt=dt.extend("--ft-typography-title-letter-spacing",Pt.letterSpacing,"0.15px"),Kt=dt.extend("--ft-typography-title-line-height",Pt.lineHeight,"1.2"),Ht=dt.extend("--ft-typography-title-text-transform",Pt.textTransform,"inherit"),Zt=dt.extend("--ft-typography-title-dense-font-family",Lt),Vt=dt.extend("--ft-typography-title-dense-font-size",Pt.fontSize,"14px"),Jt=dt.extend("--ft-typography-title-dense-font-weight",Pt.fontWeight,"normal"),qt=dt.extend("--ft-typography-title-dense-letter-spacing",Pt.letterSpacing,"0.105px"),Xt=dt.extend("--ft-typography-title-dense-line-height",Pt.lineHeight,"1.7"),Yt=dt.extend("--ft-typography-title-dense-text-transform",Pt.textTransform,"inherit"),Gt=dt.extend("--ft-typography-subtitle1-font-family",Tt),Qt=dt.extend("--ft-typography-subtitle1-font-size",Pt.fontSize,"16px"),ti=dt.extend("--ft-typography-subtitle1-font-weight",Pt.fontWeight,"600"),ii=dt.extend("--ft-typography-subtitle1-letter-spacing",Pt.letterSpacing,"0.144px"),ei=dt.extend("--ft-typography-subtitle1-line-height",Pt.lineHeight,"1.5"),oi=dt.extend("--ft-typography-subtitle1-text-transform",Pt.textTransform,"inherit"),ni=dt.extend("--ft-typography-subtitle2-font-family",Tt),si=dt.extend("--ft-typography-subtitle2-font-size",Pt.fontSize,"14px"),ri=dt.extend("--ft-typography-subtitle2-font-weight",Pt.fontWeight,"normal"),ai=dt.extend("--ft-typography-subtitle2-letter-spacing",Pt.letterSpacing,"0.098px"),li=dt.extend("--ft-typography-subtitle2-line-height",Pt.lineHeight,"1.7"),hi=dt.extend("--ft-typography-subtitle2-text-transform",Pt.textTransform,"inherit"),ci=dt.extend("--ft-typography-body1-font-family",Tt),pi=dt.extend("--ft-typography-body1-font-size",Pt.fontSize,"16px"),fi=dt.extend("--ft-typography-body1-font-weight",Pt.fontWeight,"normal"),di=dt.extend("--ft-typography-body1-letter-spacing",Pt.letterSpacing,"0.496px"),ui=dt.extend("--ft-typography-body1-line-height",Pt.lineHeight,"1.5"),vi=dt.extend("--ft-typography-body1-text-transform",Pt.textTransform,"inherit"),yi={fontFamily:dt.extend("--ft-typography-body2-font-family",Tt),fontSize:dt.extend("--ft-typography-body2-font-size",Pt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-body2-font-weight",Pt.fontWeight,"normal"),letterSpacing:dt.extend("--ft-typography-body2-letter-spacing",Pt.letterSpacing,"0.252px"),lineHeight:dt.extend("--ft-typography-body2-line-height",Pt.lineHeight,"1.4"),textTransform:dt.extend("--ft-typography-body2-text-transform",Pt.textTransform,"inherit")},gi=dt.extend("--ft-typography-caption-font-family",Tt),xi=dt.extend("--ft-typography-caption-font-size",Pt.fontSize,"12px"),mi=dt.extend("--ft-typography-caption-font-weight",Pt.fontWeight,"normal"),bi=dt.extend("--ft-typography-caption-letter-spacing",Pt.letterSpacing,"0.396px"),wi=dt.extend("--ft-typography-caption-line-height",Pt.lineHeight,"1.33"),$i=dt.extend("--ft-typography-caption-text-transform",Pt.textTransform,"inherit"),Oi=dt.extend("--ft-typography-breadcrumb-font-family",Tt),ki=dt.extend("--ft-typography-breadcrumb-font-size",Pt.fontSize,"10px"),Si=dt.extend("--ft-typography-breadcrumb-font-weight",Pt.fontWeight,"normal"),Ci=dt.extend("--ft-typography-breadcrumb-letter-spacing",Pt.letterSpacing,"0.33px"),Ni=dt.extend("--ft-typography-breadcrumb-line-height",Pt.lineHeight,"1.6"),Ei=dt.extend("--ft-typography-breadcrumb-text-transform",Pt.textTransform,"inherit"),Ri=dt.extend("--ft-typography-overline-font-family",Tt),Mi=dt.extend("--ft-typography-overline-font-size",Pt.fontSize,"10px"),zi=dt.extend("--ft-typography-overline-font-weight",Pt.fontWeight,"normal"),Ui=dt.extend("--ft-typography-overline-letter-spacing",Pt.letterSpacing,"1.5px"),Fi=dt.extend("--ft-typography-overline-line-height",Pt.lineHeight,"1.6"),ji=dt.extend("--ft-typography-overline-text-transform",Pt.textTransform,"uppercase"),Ai=dt.extend("--ft-typography-button-font-family",Tt),Bi=dt.extend("--ft-typography-button-font-size",Pt.fontSize,"14px"),Li=dt.extend("--ft-typography-button-font-weight",Pt.fontWeight,"600"),Ti=dt.extend("--ft-typography-button-letter-spacing",Pt.letterSpacing,"1.246px"),Pi=dt.extend("--ft-typography-button-line-height",Pt.lineHeight,"1.15"),Ii=dt.extend("--ft-typography-button-text-transform",Pt.textTransform,"uppercase"),_i=y`
106
106
  .ft-typography--title {
107
- font-family: ${Pt};
108
- font-size: ${It};
109
- font-weight: ${_t};
110
- letter-spacing: ${Dt};
111
- line-height: ${Wt};
112
- text-transform: ${Kt};
113
- }
114
- `,_i=y`
115
- .ft-typography--title-dense {
116
- font-family: ${Ht};
117
- font-size: ${Zt};
118
- font-weight: ${Vt};
119
- letter-spacing: ${Jt};
120
- line-height: ${qt};
121
- text-transform: ${Xt};
107
+ font-family: ${It};
108
+ font-size: ${_t};
109
+ font-weight: ${Dt};
110
+ letter-spacing: ${Wt};
111
+ line-height: ${Kt};
112
+ text-transform: ${Ht};
122
113
  }
123
114
  `,Di=y`
124
- .ft-typography--subtitle1 {
125
- font-family: ${Yt};
126
- font-size: ${Gt};
127
- font-weight: ${Qt};
128
- letter-spacing: ${ti};
129
- line-height: ${ii};
130
- text-transform: ${ei};
115
+ .ft-typography--title-dense {
116
+ font-family: ${Zt};
117
+ font-size: ${Vt};
118
+ font-weight: ${Jt};
119
+ letter-spacing: ${qt};
120
+ line-height: ${Xt};
121
+ text-transform: ${Yt};
131
122
  }
132
123
  `,Wi=y`
133
- .ft-typography--subtitle2 {
134
- font-family: ${oi};
135
- font-size: ${ni};
136
- font-weight: ${si};
137
- letter-spacing: ${ri};
138
- line-height: ${ai};
139
- text-transform: ${li};
124
+ .ft-typography--subtitle1 {
125
+ font-family: ${Gt};
126
+ font-size: ${Qt};
127
+ font-weight: ${ti};
128
+ letter-spacing: ${ii};
129
+ line-height: ${ei};
130
+ text-transform: ${oi};
140
131
  }
141
-
142
132
  `,Ki=y`
143
- .ft-typography--body1 {
144
- font-family: ${hi};
145
- font-size: ${ci};
146
- font-weight: ${pi};
147
- letter-spacing: ${fi};
148
- line-height: ${di};
149
- text-transform: ${ui};
133
+ .ft-typography--subtitle2 {
134
+ font-family: ${ni};
135
+ font-size: ${si};
136
+ font-weight: ${ri};
137
+ letter-spacing: ${ai};
138
+ line-height: ${li};
139
+ text-transform: ${hi};
150
140
  }
141
+
151
142
  `,Hi=y`
152
- .ft-typography--body2 {
153
- font-family: ${vi.fontFamily};
154
- font-size: ${vi.fontSize};
155
- font-weight: ${vi.fontWeight};
156
- letter-spacing: ${vi.letterSpacing};
157
- line-height: ${vi.lineHeight};
158
- text-transform: ${vi.textTransform};
143
+ .ft-typography--body1 {
144
+ font-family: ${ci};
145
+ font-size: ${pi};
146
+ font-weight: ${fi};
147
+ letter-spacing: ${di};
148
+ line-height: ${ui};
149
+ text-transform: ${vi};
159
150
  }
160
151
  `,Zi=y`
161
- .ft-typography--caption {
162
- font-family: ${yi};
163
- font-size: ${gi};
164
- font-weight: ${xi};
165
- letter-spacing: ${mi};
166
- line-height: ${bi};
167
- text-transform: ${wi};
152
+ .ft-typography--body2 {
153
+ font-family: ${yi.fontFamily};
154
+ font-size: ${yi.fontSize};
155
+ font-weight: ${yi.fontWeight};
156
+ letter-spacing: ${yi.letterSpacing};
157
+ line-height: ${yi.lineHeight};
158
+ text-transform: ${yi.textTransform};
168
159
  }
169
160
  `,Vi=y`
170
- .ft-typography--breadcrumb {
171
- font-family: ${$i};
172
- font-size: ${Oi};
173
- font-weight: ${ki};
174
- letter-spacing: ${Si};
175
- line-height: ${Ci};
176
- text-transform: ${Ni};
161
+ .ft-typography--caption {
162
+ font-family: ${gi};
163
+ font-size: ${xi};
164
+ font-weight: ${mi};
165
+ letter-spacing: ${bi};
166
+ line-height: ${wi};
167
+ text-transform: ${$i};
177
168
  }
178
169
  `,Ji=y`
179
- .ft-typography--overline {
180
- font-family: ${Ei};
181
- font-size: ${Ri};
182
- font-weight: ${Mi};
183
- letter-spacing: ${zi};
184
- line-height: ${Ui};
185
- text-transform: ${Fi};
170
+ .ft-typography--breadcrumb {
171
+ font-family: ${Oi};
172
+ font-size: ${ki};
173
+ font-weight: ${Si};
174
+ letter-spacing: ${Ci};
175
+ line-height: ${Ni};
176
+ text-transform: ${Ei};
186
177
  }
187
178
  `,qi=y`
188
- .ft-typography--button {
189
- font-family: ${ji};
190
- font-size: ${Ai};
191
- font-weight: ${Bi};
192
- letter-spacing: ${Li};
193
- line-height: ${Ti};
194
- text-transform: ${Pi};
179
+ .ft-typography--overline {
180
+ font-family: ${Ri};
181
+ font-size: ${Mi};
182
+ font-weight: ${zi};
183
+ letter-spacing: ${Ui};
184
+ line-height: ${Fi};
185
+ text-transform: ${ji};
195
186
  }
196
187
  `,Xi=y`
188
+ .ft-typography--button {
189
+ font-family: ${Ai};
190
+ font-size: ${Bi};
191
+ font-weight: ${Li};
192
+ letter-spacing: ${Ti};
193
+ line-height: ${Pi};
194
+ text-transform: ${Ii};
195
+ }
196
+ `,Yi=y`
197
197
  .ft-typography {
198
198
  vertical-align: inherit;
199
199
  }
200
- `;var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Gi extends gt{constructor(){super(...arguments),this.variant=At.body1}render(){return this.element?jt`
201
- <${Ut(this.element)}
200
+ `;var Gi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Qi extends gt{constructor(){super(...arguments),this.variant=Bt.body1}render(){return this.element?At`
201
+ <${Ft(this.element)}
202
202
  class="ft-typography ft-typography--${this.variant}">
203
203
  <slot></slot>
204
- </${Ut(this.element)}>
205
- `:jt`
204
+ </${Ft(this.element)}>
205
+ `:At`
206
206
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
207
- `}}Gi.styles=[Ii,_i,Di,Wi,Ki,Hi,Zi,Vi,Ji,qi,Xi],Yi([o()],Gi.prototype,"element",void 0),Yi([o()],Gi.prototype,"variant",void 0),h("ft-typography")(Gi);const Qi=dt.create("--ft-tooltip-distance","SIZE","4px"),te=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ie=dt.create("--ft-tooltip-background-color","COLOR","#666666"),ee=dt.create("--ft-tooltip-z-index","NUMBER","1"),oe=dt.external(vt.borderRadiusS,"Design system"),ne=dt.create("--ft-tooltip-max-width","SIZE","150px"),se=y`
207
+ `}}Qi.styles=[_i,Di,Wi,Ki,Hi,Zi,Vi,Ji,qi,Xi,Yi],Gi([o()],Qi.prototype,"element",void 0),Gi([o()],Qi.prototype,"variant",void 0),h("ft-typography")(Qi);const te=dt.create("--ft-tooltip-distance","SIZE","4px"),ie=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ee=dt.create("--ft-tooltip-background-color","COLOR","#666666"),oe=dt.create("--ft-tooltip-z-index","NUMBER","1"),ne=dt.external(vt.borderRadiusS,"Design system"),se=dt.create("--ft-tooltip-max-width","SIZE","150px"),re=y`
208
208
  .ft-tooltip--container {
209
209
  display: block;
210
210
  position: relative;
@@ -220,23 +220,23 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
220
220
  box-sizing: border-box;
221
221
  overflow: hidden;
222
222
  width: max-content;
223
- max-width: ${ne};
223
+ max-width: ${se};
224
224
  text-align: center;
225
- padding: ${Qi};
226
- z-index: ${ee};
225
+ padding: ${te};
226
+ z-index: ${oe};
227
227
  }
228
228
 
229
229
  .ft-tooltip--content {
230
230
  padding: 4px 8px;
231
- border-radius: ${oe};
232
- background-color: ${ie};
233
- color: ${te};
231
+ border-radius: ${ne};
232
+ background-color: ${ee};
233
+ color: ${ie};
234
234
  top: -500px;
235
235
  left: -500px;
236
236
  position: relative;
237
237
  word-break: break-word;
238
238
  }
239
- `;var re=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ae extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return Z`
239
+ `;var ae=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class le extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return Z`
240
240
  <div part="container"
241
241
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
242
242
  @mouseenter=${this.onHover}
@@ -252,24 +252,24 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
252
252
  </div>
253
253
  <slot></slot>
254
254
  </div>
255
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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.position){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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${ne})`}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())}}ae.elementDefinitions={"ft-typography":Gi},ae.styles=se,re([o()],ae.prototype,"text",void 0),re([o({type:Boolean})],ae.prototype,"manual",void 0),re([o({type:Boolean})],ae.prototype,"inline",void 0),re([o({type:Number})],ae.prototype,"delay",void 0),re([o()],ae.prototype,"position",void 0),re([
255
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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.position){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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.position){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${se})`}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())}}le.elementDefinitions={"ft-typography":Qi},le.styles=re,ae([o()],le.prototype,"text",void 0),ae([o({type:Boolean})],le.prototype,"manual",void 0),ae([o({type:Boolean})],le.prototype,"inline",void 0),ae([o({type:Number})],le.prototype,"delay",void 0),ae([o()],le.prototype,"position",void 0),ae([
256
256
  /**
257
257
  * @license
258
258
  * Copyright 2017 Google LLC
259
259
  * SPDX-License-Identifier: BSD-3-Clause
260
260
  */
261
- function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ae.prototype,"slotNodes",void 0),re([r(".ft-tooltip--container")],ae.prototype,"container",void 0),re([r("slot")],ae.prototype,"target",void 0),re([r(".ft-tooltip")],ae.prototype,"tooltip",void 0),re([r(".ft-tooltip--content")],ae.prototype,"tooltipContent",void 0),re([n()],ae.prototype,"visible",void 0),h("ft-tooltip")(ae);
261
+ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],le.prototype,"slotNodes",void 0),ae([r(".ft-tooltip--container")],le.prototype,"container",void 0),ae([r("slot")],le.prototype,"target",void 0),ae([r(".ft-tooltip")],le.prototype,"tooltip",void 0),ae([r(".ft-tooltip--content")],le.prototype,"tooltipContent",void 0),ae([n()],le.prototype,"visible",void 0),h("ft-tooltip")(le);
262
262
  /**
263
263
  * @license
264
264
  * Copyright 2017 Google LLC
265
265
  * SPDX-License-Identifier: BSD-3-Clause
266
266
  */
267
- const le=1,he=2,ce=t=>(...i)=>({_$litDirective$:t,values:i});class pe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
267
+ const he=1,ce=2,pe=t=>(...i)=>({_$litDirective$:t,values:i});class fe{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
268
268
  /**
269
269
  * @license
270
270
  * Copyright 2018 Google LLC
271
271
  * SPDX-License-Identifier: BSD-3-Clause
272
- */const fe=ce(class extends pe{constructor(t){var i;if(super(t),t.type!==le||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),de=dt.extend("--ft-ripple-color",vt.colorContent),ue={color:de,backgroundColor:dt.extend("--ft-ripple-background-color",de),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},ve=dt.extend("--ft-ripple-color",vt.colorPrimary),ye=ve,ge=dt.extend("--ft-ripple-background-color",ve),xe=dt.extend("--ft-ripple-color",vt.colorSecondary),me=xe,be=dt.extend("--ft-ripple-background-color",xe),we=y`
272
+ */const de=pe(class extends fe{constructor(t){var i;if(super(t),t.type!==he||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const n=t.element.classList;this.nt.forEach((t=>{t in i||(n.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),ue=dt.extend("--ft-ripple-color",vt.colorContent),ve={color:ue,backgroundColor:dt.extend("--ft-ripple-background-color",ue),opacityContentOnSurfacePressed:dt.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(vt.opacityContentOnSurfaceSelected,"Design system")},ye=dt.extend("--ft-ripple-color",vt.colorPrimary),ge=ye,xe=dt.extend("--ft-ripple-background-color",ye),me=dt.extend("--ft-ripple-color",vt.colorSecondary),be=me,we=dt.extend("--ft-ripple-background-color",me),$e=y`
273
273
  :host {
274
274
  display: contents;
275
275
  }
@@ -291,27 +291,27 @@ const le=1,he=2,ce=t=>(...i)=>({_$litDirective$:t,values:i});class pe{constructo
291
291
  }
292
292
 
293
293
  .ft-ripple .ft-ripple--background {
294
- background-color: ${ue.backgroundColor};
294
+ background-color: ${ve.backgroundColor};
295
295
  }
296
296
 
297
297
  .ft-ripple .ft-ripple--effect {
298
- background-color: ${ue.color};
298
+ background-color: ${ve.color};
299
299
  }
300
300
 
301
301
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
302
- background-color: ${be};
302
+ background-color: ${we};
303
303
  }
304
304
 
305
305
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
306
- background-color: ${me};
306
+ background-color: ${be};
307
307
  }
308
308
 
309
309
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
310
- background-color: ${ge};
310
+ background-color: ${xe};
311
311
  }
312
312
 
313
313
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
314
- background-color: ${ye};
314
+ background-color: ${ge};
315
315
  }
316
316
 
317
317
  .ft-ripple .ft-ripple--background {
@@ -343,22 +343,22 @@ const le=1,he=2,ce=t=>(...i)=>({_$litDirective$:t,values:i});class pe{constructo
343
343
  }
344
344
 
345
345
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
346
- opacity: ${ue.opacityContentOnSurfaceHover};
346
+ opacity: ${ve.opacityContentOnSurfaceHover};
347
347
  }
348
348
 
349
349
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
350
- opacity: ${ue.opacityContentOnSurfaceSelected};
350
+ opacity: ${ve.opacityContentOnSurfaceSelected};
351
351
  }
352
352
 
353
353
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
354
- opacity: ${ue.opacityContentOnSurfaceFocused};
354
+ opacity: ${ve.opacityContentOnSurfaceFocused};
355
355
  }
356
356
 
357
357
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
358
- opacity: ${ue.opacityContentOnSurfacePressed};
358
+ opacity: ${ve.opacityContentOnSurfacePressed};
359
359
  transform: translate(-50%, -50%) scale(1);
360
360
  }
361
- `;var $e=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Oe extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
361
+ `;var Oe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ke extends gt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
362
362
  <style>
363
363
  .ft-ripple .ft-ripple--effect,
364
364
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -371,29 +371,29 @@ const le=1,he=2,ce=t=>(...i)=>({_$litDirective$:t,values:i});class pe{constructo
371
371
  top: ${this.originY}px;
372
372
  }
373
373
  </style>
374
- <div class="${fe(t)}">
374
+ <div class="${de(t)}">
375
375
  <div class="ft-ripple--background"></div>
376
376
  <div class="ft-ripple--effect"></div>
377
377
  </div>
378
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Oe.elementDefinitions={},Oe.styles=we,$e([o({type:Boolean})],Oe.prototype,"primary",void 0),$e([o({type:Boolean})],Oe.prototype,"secondary",void 0),$e([o({type:Boolean})],Oe.prototype,"unbounded",void 0),$e([o({type:Boolean})],Oe.prototype,"activated",void 0),$e([o({type:Boolean})],Oe.prototype,"selected",void 0),$e([o({type:Boolean})],Oe.prototype,"disabled",void 0),$e([n()],Oe.prototype,"hovered",void 0),$e([n()],Oe.prototype,"focused",void 0),$e([n()],Oe.prototype,"pressed",void 0),$e([n()],Oe.prototype,"rippling",void 0),$e([n()],Oe.prototype,"rippleSize",void 0),$e([n()],Oe.prototype,"originX",void 0),$e([n()],Oe.prototype,"originY",void 0),$e([r(".ft-ripple")],Oe.prototype,"ripple",void 0),$e([r(".ft-ripple--effect")],Oe.prototype,"rippleEffect",void 0),h("ft-ripple")(Oe);
378
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ke.elementDefinitions={},ke.styles=$e,Oe([o({type:Boolean})],ke.prototype,"primary",void 0),Oe([o({type:Boolean})],ke.prototype,"secondary",void 0),Oe([o({type:Boolean})],ke.prototype,"unbounded",void 0),Oe([o({type:Boolean})],ke.prototype,"activated",void 0),Oe([o({type:Boolean})],ke.prototype,"selected",void 0),Oe([o({type:Boolean})],ke.prototype,"disabled",void 0),Oe([n()],ke.prototype,"hovered",void 0),Oe([n()],ke.prototype,"focused",void 0),Oe([n()],ke.prototype,"pressed",void 0),Oe([n()],ke.prototype,"rippling",void 0),Oe([n()],ke.prototype,"rippleSize",void 0),Oe([n()],ke.prototype,"originX",void 0),Oe([n()],ke.prototype,"originY",void 0),Oe([r(".ft-ripple")],ke.prototype,"ripple",void 0),Oe([r(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),h("ft-ripple")(ke);
379
379
  /**
380
380
  * @license
381
381
  * Copyright 2017 Google LLC
382
382
  * SPDX-License-Identifier: BSD-3-Clause
383
383
  */
384
- class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ke.directiveName="unsafeHTML",ke.resultType=1;const Se=ce(ke);var Ce,Ne;!function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ce||(Ce={})),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;"}(Ne||(Ne={})),new Map([...["abw"].map((t=>[t,Ne.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,Ne.AUDIO])),...["avi"].map((t=>[t,Ne.AVI])),...["chm","xhs"].map((t=>[t,Ne.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,Ne.CODE])),...["csv"].map((t=>[t,Ne.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ne.DITA])),...["epub"].map((t=>[t,Ne.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ne.EXCEL])),...["flac"].map((t=>[t,Ne.FLAC])),...["gif"].map((t=>[t,Ne.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ne.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ne.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,Ne.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ne.JPEG])),...["json"].map((t=>[t,Ne.JSON])),...["m4a","m4p"].map((t=>[t,Ne.M4A])),...["mov","qt"].map((t=>[t,Ne.MOV])),...["mp3"].map((t=>[t,Ne.MP3])),...["mp4","m4v"].map((t=>[t,Ne.MP4])),...["ogg","oga"].map((t=>[t,Ne.OGG])),...["pdf","ps"].map((t=>[t,Ne.PDF])),...["png"].map((t=>[t,Ne.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ne.POWERPOINT])),...["rar"].map((t=>[t,Ne.RAR])),...["stp"].map((t=>[t,Ne.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ne.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,Ne.VIDEO])),...["wav"].map((t=>[t,Ne.WAV])),...["wma"].map((t=>[t,Ne.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ne.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ne.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ne.YAML])),...["zip"].map((t=>[t,Ne.ZIP]))]);const Ee={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Re=y`
384
+ class Se extends fe{constructor(t){if(super(t),this.it=J,t.type!==ce)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Se.directiveName="unsafeHTML",Se.resultType=1;const Ce=pe(Se);var Ne,Ee;!function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ne||(Ne={})),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;"}(Ee||(Ee={})),new Map([...["abw"].map((t=>[t,Ee.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,Ee.AUDIO])),...["avi"].map((t=>[t,Ee.AVI])),...["chm","xhs"].map((t=>[t,Ee.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,Ee.CODE])),...["csv"].map((t=>[t,Ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ee.DITA])),...["epub"].map((t=>[t,Ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ee.EXCEL])),...["flac"].map((t=>[t,Ee.FLAC])),...["gif"].map((t=>[t,Ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ee.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,Ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ee.JPEG])),...["json"].map((t=>[t,Ee.JSON])),...["m4a","m4p"].map((t=>[t,Ee.M4A])),...["mov","qt"].map((t=>[t,Ee.MOV])),...["mp3"].map((t=>[t,Ee.MP3])),...["mp4","m4v"].map((t=>[t,Ee.MP4])),...["ogg","oga"].map((t=>[t,Ee.OGG])),...["pdf","ps"].map((t=>[t,Ee.PDF])),...["png"].map((t=>[t,Ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ee.POWERPOINT])),...["rar"].map((t=>[t,Ee.RAR])),...["stp"].map((t=>[t,Ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ee.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,Ee.VIDEO])),...["wav"].map((t=>[t,Ee.WAV])),...["wma"].map((t=>[t,Ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ee.YAML])),...["zip"].map((t=>[t,Ee.ZIP]))]);const Re={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Me=y`
385
385
  :host {
386
386
  display: inline-block;
387
387
  }
388
388
 
389
389
  :host, i.ft-icon {
390
- width: ${Ee.size};
391
- height: ${Ee.size};
390
+ width: ${Re.size};
391
+ height: ${Re.size};
392
392
  text-align: center;
393
393
  }
394
394
 
395
395
  i.ft-icon {
396
- font-size: ${Ee.size};
396
+ font-size: ${Re.size};
397
397
  line-height: 1;
398
398
  font-weight: normal;
399
399
  text-transform: none;
@@ -404,26 +404,26 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
404
404
  text-rendering: auto;
405
405
  -webkit-font-smoothing: antialiased;
406
406
  -moz-osx-font-smoothing: grayscale;
407
- vertical-align: ${Ee.verticalAlign};
407
+ vertical-align: ${Re.verticalAlign};
408
408
  }
409
409
 
410
410
  .ft-icon--fluid-topics {
411
- font-family: ${Ee.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
411
+ font-family: ${Re.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
412
412
  }
413
413
 
414
414
  .ft-icon--file-format {
415
- font-family: ${Ee.fileFormatFontFamily}, ft-mime, sans-serif;
415
+ font-family: ${Re.fileFormatFontFamily}, ft-mime, sans-serif;
416
416
  }
417
417
 
418
418
  .ft-icon--material {
419
- font-family: ${Ee.materialFontFamily}, "Material Icons", sans-serif;
419
+ font-family: ${Re.materialFontFamily}, "Material Icons", sans-serif;
420
420
  }
421
- `;var Me;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Me||(Me={}));var ze=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ue extends gt{constructor(){super(...arguments),this.variant=Me.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
421
+ `;var ze;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ze||(ze={}));var Ue=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Fe extends gt{constructor(){super(...arguments),this.variant=ze.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
422
422
  <i class="ft-icon ${"ft-icon--"+this.variant}">
423
- ${Se(this.resolvedIcon)}
423
+ ${Ce(this.resolvedIcon)}
424
424
  <slot ?hidden=${t}></slot>
425
425
  </i>
426
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Me.file_format:this.resolvedIcon=null!==(t=Ne[e.toUpperCase()])&&void 0!==t?t:e;break;case Me.fluid_topics:this.resolvedIcon=null!==(i=Ce[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ue.elementDefinitions={},Ue.styles=Re,ze([o()],Ue.prototype,"variant",void 0),ze([o()],Ue.prototype,"value",void 0),ze([n()],Ue.prototype,"resolvedIcon",void 0),ze([r("slot")],Ue.prototype,"slottedContent",void 0),h("ft-icon")(Ue);const Fe=dt.extend("--ft-chip-color",vt.colorOnSurface),je={backgroundColor:dt.extend("--ft-chip-background-color",vt.colorSurface),color:Fe,fontSize:dt.extend("--ft-chip-font-size",vi.fontSize),iconSize:dt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:dt.extend("--ft-chip-ripple-color",Fe),horizontalPadding:dt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:dt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:dt.external(vt.colorOutline,"Design system"),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Ae=dt.extend("--ft-chip-highlighted-color",dt.extend("--ft-chip-color",vt.colorOnPrimary)),Be={backgroundColor:dt.extend("--ft-chip-highlighted-background-color",dt.extend("--ft-chip-background-color",vt.colorPrimary)),color:Ae,rippleColor:dt.extend("--ft-chip-highlighted-ripple-color",Ae)},Le=dt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Te=dt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Pe=[xt,y`
426
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case ze.file_format:this.resolvedIcon=null!==(t=Ee[e.toUpperCase()])&&void 0!==t?t:e;break;case ze.fluid_topics:this.resolvedIcon=null!==(i=Ne[e.toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Fe.elementDefinitions={},Fe.styles=Me,Ue([o()],Fe.prototype,"variant",void 0),Ue([o()],Fe.prototype,"value",void 0),Ue([n()],Fe.prototype,"resolvedIcon",void 0),Ue([r("slot")],Fe.prototype,"slottedContent",void 0),h("ft-icon")(Fe);const je=dt.extend("--ft-chip-color",vt.colorOnSurface),Ae={backgroundColor:dt.extend("--ft-chip-background-color",vt.colorSurface),color:je,fontSize:dt.extend("--ft-chip-font-size",yi.fontSize),iconSize:dt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:dt.extend("--ft-chip-ripple-color",je),horizontalPadding:dt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:dt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:dt.external(vt.colorOutline,"Design system"),opacityDisabled:dt.external(vt.colorOpacityDisabled,"Design system")},Be=dt.extend("--ft-chip-highlighted-color",dt.extend("--ft-chip-color",vt.colorOnPrimary)),Le={backgroundColor:dt.extend("--ft-chip-highlighted-background-color",dt.extend("--ft-chip-background-color",vt.colorPrimary)),color:Be,rippleColor:dt.extend("--ft-chip-highlighted-ripple-color",Be)},Te=dt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Pe=dt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ie=[xt,y`
427
427
  :host {
428
428
  display: inline-block;
429
429
  max-width: 100%;
@@ -440,20 +440,20 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
440
440
  box-sizing: border-box;
441
441
  pointer-events: auto;
442
442
 
443
- --ft-chip-internal-font-size: ${je.fontSize};
443
+ --ft-chip-internal-font-size: ${Ae.fontSize};
444
444
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
445
- ${ut(Ee.size,je.iconSize)};
446
- --ft-chip-internal-vertical-padding: ${je.verticalPadding};
447
- --ft-chip-internal-horizontal-padding: ${je.horizontalPadding};
445
+ ${ut(Re.size,Ae.iconSize)};
446
+ --ft-chip-internal-vertical-padding: ${Ae.verticalPadding};
447
+ --ft-chip-internal-horizontal-padding: ${Ae.horizontalPadding};
448
448
  --ft-chip-internal-icon-padding: 3px;
449
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${je.iconSize});
449
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ae.iconSize});
450
450
 
451
- border: 1px solid ${je.colorOutline};
452
- color: ${je.color};
453
- ${ut(ue.color,je.rippleColor)};
451
+ border: 1px solid ${Ae.colorOutline};
452
+ color: ${Ae.color};
453
+ ${ut(ve.color,Ae.rippleColor)};
454
454
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
455
455
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
456
- background-color: ${je.backgroundColor};
456
+ background-color: ${Ae.backgroundColor};
457
457
  line-height: var(--ft-chip-internal-content-height);
458
458
  }
459
459
 
@@ -463,8 +463,8 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
463
463
 
464
464
  .ft-chip--dense {
465
465
  --ft-chip-internal-icon-padding: 3px;
466
- --ft-chip-internal-vertical-padding: ${Te};
467
- --ft-chip-internal-horizontal-padding: ${Le};
466
+ --ft-chip-internal-vertical-padding: ${Pe};
467
+ --ft-chip-internal-horizontal-padding: ${Te};
468
468
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
469
469
  }
470
470
 
@@ -476,15 +476,15 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
476
476
  cursor: default;
477
477
  pointer-events: none;
478
478
  filter: grayscale(1);
479
- opacity: ${je.opacityDisabled};
479
+ opacity: ${Ae.opacityDisabled};
480
480
  }
481
481
 
482
482
  .ft-chip--highlighted {
483
483
  border: none;
484
484
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
485
- background-color: ${Be.backgroundColor};
486
- ${ut(ue.color,Be.rippleColor)};
487
- color: ${Be.color};
485
+ background-color: ${Le.backgroundColor};
486
+ ${ut(ve.color,Le.rippleColor)};
487
+ color: ${Le.color};
488
488
  }
489
489
 
490
490
  .ft-chip--clickable {
@@ -517,8 +517,8 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
517
517
  vertical-align: bottom;
518
518
  display: block;
519
519
  margin: 0 var(--ft-chip-internal-horizontal-padding);
520
- ${ut(vi.fontSize,"var(--ft-chip-internal-font-size)")};
521
- ${ut(vi.lineHeight,"var(--ft-chip-internal-content-height)")};
520
+ ${ut(yi.fontSize,"var(--ft-chip-internal-font-size)")};
521
+ ${ut(yi.lineHeight,"var(--ft-chip-internal-content-height)")};
522
522
  }
523
523
 
524
524
  .ft-chip--safari-fix .ft-chip--label {
@@ -553,8 +553,8 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
553
553
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
554
554
  order: -1;
555
555
  }
556
- `];var Ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class _e extends CustomEvent{constructor(){super("icon-click")}}class De extends gt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":$t};return Z`
557
- <div class="${fe(t)}"
556
+ `];var _e=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class De extends CustomEvent{constructor(){super("icon-click")}}class We extends gt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ot};return Z`
557
+ <div class="${de(t)}"
558
558
  aria-label="${this.getLabel()}"
559
559
  tabindex="${this.interactionsOnChip?0:-1}"
560
560
  @keyup=${this.onKeyUp}>
@@ -572,7 +572,7 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
572
572
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
573
573
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
574
574
  </div>
575
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new _e))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new _e))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}De.elementDefinitions={"ft-ripple":Oe,"ft-typography":Gi,"ft-icon":Ue},De.styles=Pe,Ie([o({type:Boolean})],De.prototype,"highlighted",void 0),Ie([o({type:Boolean})],De.prototype,"removable",void 0),Ie([o({type:Boolean})],De.prototype,"disabled",void 0),Ie([o({type:Boolean})],De.prototype,"clickable",void 0),Ie([o({type:Boolean})],De.prototype,"iconClickable",void 0),Ie([o({type:Boolean})],De.prototype,"dense",void 0),Ie([o({type:Boolean})],De.prototype,"multiLine",void 0),Ie([o({type:String})],De.prototype,"label",void 0),Ie([o({type:String})],De.prototype,"icon",void 0),Ie([o({type:Boolean})],De.prototype,"trailingIcon",void 0),Ie([r("ft-typography slot")],De.prototype,"slottedContent",void 0),h("ft-chip")(De);var We=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ke extends Rt{constructor(){super(...arguments),this.editorMode=!1}render(){return Z`
575
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new De))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new De))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}We.elementDefinitions={"ft-ripple":ke,"ft-typography":Qi,"ft-icon":Fe},We.styles=Ie,_e([o({type:Boolean})],We.prototype,"highlighted",void 0),_e([o({type:Boolean})],We.prototype,"removable",void 0),_e([o({type:Boolean})],We.prototype,"disabled",void 0),_e([o({type:Boolean})],We.prototype,"clickable",void 0),_e([o({type:Boolean})],We.prototype,"iconClickable",void 0),_e([o({type:Boolean})],We.prototype,"dense",void 0),_e([o({type:Boolean})],We.prototype,"multiLine",void 0),_e([o({type:String})],We.prototype,"label",void 0),_e([o({type:String})],We.prototype,"icon",void 0),_e([o({type:Boolean})],We.prototype,"trailingIcon",void 0),_e([r("ft-typography slot")],We.prototype,"slottedContent",void 0),h("ft-chip")(We);var Ke=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class He extends Mt{constructor(){super(...arguments),this.editorMode=!1}render(){return Z`
576
576
  <ft-tooltip text="${this.tooltipText}">
577
577
  <ft-chip>
578
578
  ${this.renderContent()}
@@ -585,4 +585,4 @@ class ke extends pe{constructor(t){if(super(t),this.it=J,t.type!==he)throw Error
585
585
  display: none !important;
586
586
  }
587
587
  </style>
588
- `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode.contentId).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}Ke.elementDefinitions={"ft-tooltip":ae,"ft-chip":De},Ke.styles=Ot,We([o()],Ke.prototype,"key",void 0),We([n()],Ke.prototype,"editorMode",void 0),We([n()],Ke.prototype,"metadata",void 0),h("ft-reader-topic-metadata")(Ke),t.FtReaderTopicMetadata=Ke,t.FtReaderTopicMetadataCssVariables={},t.styles=Ot,Object.defineProperty(t,"i",{value:!0})}({});
588
+ `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}updated(t){super.updated(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode.contentId).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}He.elementDefinitions={"ft-tooltip":le,"ft-chip":We},He.styles=kt,Ke([o()],He.prototype,"key",void 0),Ke([n()],He.prototype,"editorMode",void 0),Ke([n()],He.prototype,"metadata",void 0),h("ft-reader-topic-metadata")(He),t.FtReaderTopicMetadata=He,t.FtReaderTopicMetadataCssVariables={},t.styles=kt,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-metadata",
3
- "version": "0.3.22",
3
+ "version": "0.3.23",
4
4
  "description": "Metadata of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,8 +19,8 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "0.3.22",
22
+ "@fluid-topics/ft-wc-utils": "0.3.23",
23
23
  "lit": "2.2.8"
24
24
  },
25
- "gitHead": "5ca6dd4bc6ec9dca0bf645892ec3f07e4b62683d"
25
+ "gitHead": "7fb0bb52d064423f63bfd9c36c5454d65aa890d6"
26
26
  }