@fluid-topics/ft-chip 0.2.16 → 0.2.19

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.
@@ -1,508 +0,0 @@
1
- !function(){
2
- /**
3
- * @license
4
- * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- *
15
- * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
- */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=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&&(s.set(n,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=s.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=g[g.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):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.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 r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let g=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){g.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const v=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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 r{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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Qi){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class t{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
- /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */const i=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function e(t){return(e,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,e,o):i(t,e)
23
- /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */}function o(t){return e({...t,state:!0})}
28
- /**
29
- * @license
30
- * Copyright 2017 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */
33
- /**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */
38
- function n(t,i){return(({finisher:t,descriptor:i})=>(e,o)=>{var n;if(void 0===o){const o=null!==(n=e.originalKey)&&void 0!==n?n:e.key,r=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(r.finisher=function(i){t(i,o)}),r}{const n=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(n,o)}})({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
39
- /**
40
- * @license
41
- * Copyright 2021 Google LLC
42
- * SPDX-License-Identifier: BSD-3-Clause
43
- */var r;null===(r=window.HTMLSlotElement)||void 0===r||r.prototype.assignedElements;const s=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
44
- /**
45
- * @license
46
- * Copyright 2019 Google LLC
47
- * SPDX-License-Identifier: BSD-3-Clause
48
- */,a=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),h=new Map;class c{constructor(t,i){if(this._$cssResult$=!0,i!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=h.get(this.cssText);return a&&void 0===t&&(h.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const p=t=>new c("string"==typeof t?t:t+"",l),f=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new c(e,l)},d=(t,i)=>{a?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},u=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return p(i)})(t):t
49
- /**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */;var y;const g=window.trustedTypes,x=g?g.emptyScript:"",v=window.reactiveElementPolyfillSupport,m={toAttribute(t,i){switch(i){case Boolean:t=t?x:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},b=(t,i)=>i!==t&&(i==i||t==t),w={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:b};class $ extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=w){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||w}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(u(t))}else void 0!==t&&i.push(u(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return d(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=w){var o,n;const r=this.constructor._$Eh(t,e);if(void 0!==r&&!0===e.reflect){const s=(null!==(n=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:m.toAttribute)(i,e.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,i){var e,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(e=a)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:m.fromAttribute;this._$Ei=s,this[s]=l(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||b)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
54
- /**
55
- * @license
56
- * Copyright 2017 Google LLC
57
- * SPDX-License-Identifier: BSD-3-Clause
58
- */
59
- var O;$.finalized=!0,$.elementProperties=new Map,$.elementStyles=[],$.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:$}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const S=globalThis.trustedTypes,k=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C=`lit$${(Math.random()+"").slice(9)}$`,N="?"+C,E=`<${N}>`,R=document,M=(t="")=>R.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,B=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,T=/"/g,D=/^(?:script|style|textarea|title)$/i,P=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),W=new WeakMap,K=R.createTreeWalker(R,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=F;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===F?"!--"===l[1]?s=j:void 0!==l[1]?s=B:void 0!==l[2]?(D.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?T:A):s===T||s===A?s=L:s===j||s===B?s=F:(s=L,n=void 0);const p=s===L&&t[i+1].startsWith("/>")?" ":"";r+=s===F?e+E:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+C+p):e+C+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(a):a,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=Z.createElement(l,e),K.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=K.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(C)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(C),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?Q:"@"===i[1]?tt:J})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(D.test(o.tagName)){const t=o.textContent.split(C),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],M()),K.nextNode(),a.push({type:2,index:++n});o.append(t[i],M())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(C,t+1));)a.push({type:7,index:n}),t+=C.length-1}n++}}static createElement(t,i){const e=R.createElement("template");return e.innerHTML=t,e}}function V(t,i,e=t,o){var n,r,s,a;if(i===_)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const h=z(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=V(t,l._$AS(t,i.values),l,o)),i}class q{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:R).importNode(e,!0);K.currentNode=n;let r=K.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new X(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new it(r,this,t)),this.v.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=K.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class X{constructor(t,i,e,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=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._$Cg}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=V(this,t,i),z(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return U(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new q(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new Z(t)),i}S(t){U(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 X(this.M(M()),this.M(M()),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._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class J{constructor(t,i,e,o,n){this.type=1,this._$AH=I,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=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=V(this,t,i,0),r=!z(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=V(this,o[e+s],i,s),a===_&&(a=this._$AH[s]),r||(r=!z(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends J{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const G=S?S.emptyScript:"";class Q extends J{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class tt extends J{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=V(this,t,i,0))&&void 0!==e?e:I)===_)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 it{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){V(this,t)}}const et=window.litHtmlPolyfillSupport;
60
- /**
61
- * @license
62
- * Copyright 2017 Google LLC
63
- * SPDX-License-Identifier: BSD-3-Clause
64
- */
65
- var ot,nt;null==et||et(Z,X),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,n;const r=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new X(i.insertBefore(M(),t),t,void 0,null!=e?e:{})}return s._$AI(t),s})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}rt.finalized=!0,rt._$litElement$=!0,null===(ot=globalThis.litElementHydrateSupport)||void 0===ot||ot.call(globalThis,{LitElement:rt});const st=globalThis.litElementPolyfillSupport;null==st||st({LitElement:rt}),(null!==(nt=globalThis.litElementVersions)&&void 0!==nt?nt:globalThis.litElementVersions=[]).push("3.2.0");class at{constructor(t,i,e,o,n){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new at(t,i,void 0,e)}static extend(t,i,e){return new at(t,i.category,i,e)}static external(t,i){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return f`var(${p(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):p(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function lt(t,i){return p(`${t.name}: ${i}`)}const ht={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:at.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:at.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:at.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:at.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:at.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:at.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:at.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:at.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:at.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
66
- /**
67
- * @license
68
- * Copyright 2021 Google LLC
69
- * SPDX-License-Identifier: BSD-3-Clause
70
- */class ct extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return d(n,this.constructor.elementStyles),n}}}(rt)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),P`
71
- ${t.map((t=>P`
72
- <style>${t}</style>
73
- `))}
74
- ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const pt=f`
76
- .ft-no-text-select {
77
- -webkit-touch-callout: none;
78
- -webkit-user-select: none;
79
- -khtml-user-select: none;
80
- -moz-user-select: none;
81
- -ms-user-select: none;
82
- user-select: none;
83
- }
84
- `;var ft,dt,ut;const yt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ut=null===(dt=null===(ft=window.safari)||void 0===ft?void 0:ft.pushNotification)||void 0===dt?void 0:dt.toString())&&void 0!==ut?ut:""),gt=1,xt=2,vt=t=>(...i)=>({_$litDirective$:t,values:i});
85
- /**
86
- * @license
87
- * Copyright 2017 Google LLC
88
- * SPDX-License-Identifier: BSD-3-Clause
89
- */class mt{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)}}
90
- /**
91
- * @license
92
- * Copyright 2018 Google LLC
93
- * SPDX-License-Identifier: BSD-3-Clause
94
- */const bt=vt(class extends mt{constructor(t){var i;if(super(t),t.type!==gt||"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.et){this.et=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.et.add(t);return this.render(i)}const n=t.element.classList;this.et.forEach((t=>{t in i||(n.remove(t),this.et.delete(t))}));for(const t in i){const e=!!i[t];e===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.et.add(t)):(n.remove(t),this.et.delete(t)))}return _}});var wt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const $t=at.extend("--ft-ripple-color",ht.colorContent),Ot={color:$t,backgroundColor:at.extend("--ft-ripple-background-color",$t),opacityContentOnSurfacePressed:at.external(ht.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:at.external(ht.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:at.external(ht.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:at.external(ht.opacityContentOnSurfaceSelected,"Design system")},St=at.extend("--ft-ripple-color",ht.colorPrimary),kt=St,Ct=at.extend("--ft-ripple-background-color",St),Nt=at.extend("--ft-ripple-color",ht.colorSecondary),Et=Nt,Rt=at.extend("--ft-ripple-background-color",Nt);class Mt extends ct{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 t(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),r=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-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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 P`
95
- <style>
96
- .ft-ripple .ft-ripple--effect,
97
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
98
- width: ${this.rippleSize}px;
99
- height: ${this.rippleSize}px;
100
- }
101
-
102
- .ft-ripple .ft-ripple--effect {
103
- left: ${this.originX}px;
104
- top: ${this.originY}px;
105
- }
106
- </style>
107
- <div class="${bt(t)}">
108
- <div class="ft-ripple--background"></div>
109
- <div class="ft-ripple--effect"></div>
110
- </div>
111
- `}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()}}Mt.elementDefinitions={},Mt.styles=f`
112
- :host {
113
- display: contents;
114
- }
115
-
116
- .ft-ripple {
117
- position: absolute;
118
- inset: 0;
119
- pointer-events: none;
120
- }
121
-
122
- .ft-ripple:not(.ft-ripple--unbounded) {
123
- overflow: hidden;
124
- }
125
-
126
- .ft-ripple .ft-ripple--background,
127
- .ft-ripple .ft-ripple--effect {
128
- position: absolute;
129
- opacity: 0;
130
- }
131
-
132
- .ft-ripple .ft-ripple--background {
133
- background-color: ${Ot.backgroundColor};
134
- }
135
-
136
- .ft-ripple .ft-ripple--effect {
137
- background-color: ${Ot.color};
138
- }
139
-
140
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
141
- background-color: ${Rt};
142
- }
143
-
144
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
145
- background-color: ${Et};
146
- }
147
-
148
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
149
- background-color: ${Ct};
150
- }
151
-
152
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
153
- background-color: ${kt};
154
- }
155
-
156
- .ft-ripple .ft-ripple--background {
157
- top: 0;
158
- left: 0;
159
- height: 100%;
160
- width: 100%;
161
- transition: opacity 75ms linear;
162
- }
163
-
164
- .ft-ripple .ft-ripple--effect,
165
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
166
- border-radius: 50%;
167
- }
168
-
169
- .ft-ripple .ft-ripple--effect {
170
- transform: translate(-50%, -50%) scale(0.15);
171
- transition: transform 300ms ease, opacity 75ms linear;
172
- }
173
-
174
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
175
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
176
- left: 50%;
177
- top: 50%;
178
- }
179
-
180
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
181
- transform: translate(-50%, -50%);
182
- }
183
-
184
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
185
- opacity: ${Ot.opacityContentOnSurfaceHover};
186
- }
187
-
188
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
189
- opacity: ${Ot.opacityContentOnSurfaceSelected};
190
- }
191
-
192
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
193
- opacity: ${Ot.opacityContentOnSurfaceFocused};
194
- }
195
-
196
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
197
- opacity: ${Ot.opacityContentOnSurfacePressed};
198
- transform: translate(-50%, -50%) scale(1);
199
- }
200
- `,wt([e({type:Boolean})],Mt.prototype,"primary",void 0),wt([e({type:Boolean})],Mt.prototype,"secondary",void 0),wt([e({type:Boolean})],Mt.prototype,"unbounded",void 0),wt([e({type:Boolean})],Mt.prototype,"activated",void 0),wt([e({type:Boolean})],Mt.prototype,"selected",void 0),wt([e({type:Boolean})],Mt.prototype,"disabled",void 0),wt([o()],Mt.prototype,"hovered",void 0),wt([o()],Mt.prototype,"focused",void 0),wt([o()],Mt.prototype,"pressed",void 0),wt([o()],Mt.prototype,"rippling",void 0),wt([o()],Mt.prototype,"rippleSize",void 0),wt([o()],Mt.prototype,"originX",void 0),wt([o()],Mt.prototype,"originY",void 0),wt([n(".ft-ripple")],Mt.prototype,"ripple",void 0),wt([n(".ft-ripple--effect")],Mt.prototype,"rippleEffect",void 0),s("ft-ripple")(Mt);
201
- /**
202
- * @license
203
- * Copyright 2020 Google LLC
204
- * SPDX-License-Identifier: BSD-3-Clause
205
- */
206
- const zt=Symbol.for(""),Ut=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===zt)return null===(e=t)||void 0===e?void 0:e._$litStatic$},Ft=t=>({_$litStatic$:t,r:zt}),jt=new Map,Bt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Ut(r));)l+=n+i[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=jt.get(t))&&(s.raw=s,jt.set(t,i=s)),e=a}return t(i,...e)})(P);var Lt,At=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!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"}(Lt||(Lt={}));const Tt=at.extend("--ft-typography-font-family",ht.titleFont),Dt=at.extend("--ft-typography-font-family",ht.contentFont),Pt={fontFamily:Dt,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},_t=at.extend("--ft-typography-title-font-family",Tt),It=at.extend("--ft-typography-title-font-size",Pt.fontSize,"20px"),Wt=at.extend("--ft-typography-title-font-weight",Pt.fontWeight,"normal"),Kt=at.extend("--ft-typography-title-letter-spacing",Pt.letterSpacing,"0.15px"),Ht=at.extend("--ft-typography-title-line-height",Pt.lineHeight,"1.2"),Zt=at.extend("--ft-typography-title-text-transform",Pt.textTransform,"inherit"),Vt=at.extend("--ft-typography-title-dense-font-family",Tt),qt=at.extend("--ft-typography-title-dense-font-size",Pt.fontSize,"14px"),Xt=at.extend("--ft-typography-title-dense-font-weight",Pt.fontWeight,"normal"),Jt=at.extend("--ft-typography-title-dense-letter-spacing",Pt.letterSpacing,"0.105px"),Yt=at.extend("--ft-typography-title-dense-line-height",Pt.lineHeight,"1.7"),Gt=at.extend("--ft-typography-title-dense-text-transform",Pt.textTransform,"inherit"),Qt=at.extend("--ft-typography-subtitle1-font-family",Dt),ti=at.extend("--ft-typography-subtitle1-font-size",Pt.fontSize,"16px"),ii=at.extend("--ft-typography-subtitle1-font-weight",Pt.fontWeight,"600"),ei=at.extend("--ft-typography-subtitle1-letter-spacing",Pt.letterSpacing,"0.144px"),oi=at.extend("--ft-typography-subtitle1-line-height",Pt.lineHeight,"1.5"),ni=at.extend("--ft-typography-subtitle1-text-transform",Pt.textTransform,"inherit"),ri=at.extend("--ft-typography-subtitle2-font-family",Dt),si=at.extend("--ft-typography-subtitle2-font-size",Pt.fontSize,"14px"),ai=at.extend("--ft-typography-subtitle2-font-weight",Pt.fontWeight,"normal"),li=at.extend("--ft-typography-subtitle2-letter-spacing",Pt.letterSpacing,"0.098px"),hi=at.extend("--ft-typography-subtitle2-line-height",Pt.lineHeight,"1.7"),ci=at.extend("--ft-typography-subtitle2-text-transform",Pt.textTransform,"inherit"),pi=at.extend("--ft-typography-body1-font-family",Dt),fi=at.extend("--ft-typography-body1-font-size",Pt.fontSize,"16px"),di=at.extend("--ft-typography-body1-font-weight",Pt.fontWeight,"normal"),ui=at.extend("--ft-typography-body1-letter-spacing",Pt.letterSpacing,"0.496px"),yi=at.extend("--ft-typography-body1-line-height",Pt.lineHeight,"1.5"),gi=at.extend("--ft-typography-body1-text-transform",Pt.textTransform,"inherit"),xi={fontFamily:at.extend("--ft-typography-body2-font-family",Dt),fontSize:at.extend("--ft-typography-body2-font-size",Pt.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",Pt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",Pt.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",Pt.lineHeight,"1.4"),textTransform:at.extend("--ft-typography-body2-text-transform",Pt.textTransform,"inherit")},vi=at.extend("--ft-typography-caption-font-family",Dt),mi=at.extend("--ft-typography-caption-font-size",Pt.fontSize,"12px"),bi=at.extend("--ft-typography-caption-font-weight",Pt.fontWeight,"normal"),wi=at.extend("--ft-typography-caption-letter-spacing",Pt.letterSpacing,"0.396px"),$i=at.extend("--ft-typography-caption-line-height",Pt.lineHeight,"1.33"),Oi=at.extend("--ft-typography-caption-text-transform",Pt.textTransform,"inherit"),Si=at.extend("--ft-typography-breadcrumb-font-family",Dt),ki=at.extend("--ft-typography-breadcrumb-font-size",Pt.fontSize,"10px"),Ci=at.extend("--ft-typography-breadcrumb-font-weight",Pt.fontWeight,"normal"),Ni=at.extend("--ft-typography-breadcrumb-letter-spacing",Pt.letterSpacing,"0.33px"),Ei=at.extend("--ft-typography-breadcrumb-line-height",Pt.lineHeight,"1.6"),Ri=at.extend("--ft-typography-breadcrumb-text-transform",Pt.textTransform,"inherit"),Mi=at.extend("--ft-typography-overline-font-family",Dt),zi=at.extend("--ft-typography-overline-font-size",Pt.fontSize,"10px"),Ui=at.extend("--ft-typography-overline-font-weight",Pt.fontWeight,"normal"),Fi=at.extend("--ft-typography-overline-letter-spacing",Pt.letterSpacing,"1.5px"),ji=at.extend("--ft-typography-overline-line-height",Pt.lineHeight,"1.6"),Bi=at.extend("--ft-typography-overline-text-transform",Pt.textTransform,"uppercase"),Li=at.extend("--ft-typography-button-font-family",Dt),Ai=at.extend("--ft-typography-button-font-size",Pt.fontSize,"14px"),Ti=at.extend("--ft-typography-button-font-weight",Pt.fontWeight,"600"),Di=at.extend("--ft-typography-button-letter-spacing",Pt.letterSpacing,"1.246px"),Pi=at.extend("--ft-typography-button-line-height",Pt.lineHeight,"1.15"),_i=at.extend("--ft-typography-button-text-transform",Pt.textTransform,"uppercase"),Ii=f`
207
- .ft-typography--title {
208
- font-family: ${_t};
209
- font-size: ${It};
210
- font-weight: ${Wt};
211
- letter-spacing: ${Kt};
212
- line-height: ${Ht};
213
- text-transform: ${Zt};
214
- }
215
- `,Wi=f`
216
- .ft-typography--title-dense {
217
- font-family: ${Vt};
218
- font-size: ${qt};
219
- font-weight: ${Xt};
220
- letter-spacing: ${Jt};
221
- line-height: ${Yt};
222
- text-transform: ${Gt};
223
- }
224
- `,Ki=f`
225
- .ft-typography--subtitle1 {
226
- font-family: ${Qt};
227
- font-size: ${ti};
228
- font-weight: ${ii};
229
- letter-spacing: ${ei};
230
- line-height: ${oi};
231
- text-transform: ${ni};
232
- }
233
- `,Hi=f`
234
- .ft-typography--subtitle2 {
235
- font-family: ${ri};
236
- font-size: ${si};
237
- font-weight: ${ai};
238
- letter-spacing: ${li};
239
- line-height: ${hi};
240
- text-transform: ${ci};
241
- }
242
-
243
- `,Zi=f`
244
- .ft-typography--body1 {
245
- font-family: ${pi};
246
- font-size: ${fi};
247
- font-weight: ${di};
248
- letter-spacing: ${ui};
249
- line-height: ${yi};
250
- text-transform: ${gi};
251
- }
252
- `,Vi=f`
253
- .ft-typography--body2 {
254
- font-family: ${xi.fontFamily};
255
- font-size: ${xi.fontSize};
256
- font-weight: ${xi.fontWeight};
257
- letter-spacing: ${xi.letterSpacing};
258
- line-height: ${xi.lineHeight};
259
- text-transform: ${xi.textTransform};
260
- }
261
- `,qi=f`
262
- .ft-typography--caption {
263
- font-family: ${vi};
264
- font-size: ${mi};
265
- font-weight: ${bi};
266
- letter-spacing: ${wi};
267
- line-height: ${$i};
268
- text-transform: ${Oi};
269
- }
270
- `,Xi=f`
271
- .ft-typography--breadcrumb {
272
- font-family: ${Si};
273
- font-size: ${ki};
274
- font-weight: ${Ci};
275
- letter-spacing: ${Ni};
276
- line-height: ${Ei};
277
- text-transform: ${Ri};
278
- }
279
- `,Ji=f`
280
- .ft-typography--overline {
281
- font-family: ${Mi};
282
- font-size: ${zi};
283
- font-weight: ${Ui};
284
- letter-spacing: ${Fi};
285
- line-height: ${ji};
286
- text-transform: ${Bi};
287
- }
288
- `,Yi=f`
289
- .ft-typography--button {
290
- font-family: ${Li};
291
- font-size: ${Ai};
292
- font-weight: ${Ti};
293
- letter-spacing: ${Di};
294
- line-height: ${Pi};
295
- text-transform: ${_i};
296
- }
297
- `;class Gi extends ct{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?Bt`
298
- <${Ft(this.element)}
299
- class="ft-typography ft-typography--${this.variant}">
300
- <slot></slot>
301
- </${Ft(this.element)}>
302
- `:Bt`
303
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
304
- `}}Gi.styles=[Ii,Wi,Ki,Hi,Zi,Vi,qi,Xi,Ji,Yi,f`
305
- .ft-typography {
306
- vertical-align: inherit;
307
- }
308
- `],At([e()],Gi.prototype,"element",void 0),At([e()],Gi.prototype,"variant",void 0),s("ft-typography")(Gi);
309
- /**
310
- * @license
311
- * Copyright 2017 Google LLC
312
- * SPDX-License-Identifier: BSD-3-Clause
313
- */
314
- class Qi extends mt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.ft=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const te=vt(Qi);var ie,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;"}(ie||(ie={})),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]))]);var oe,ne=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oe||(oe={}));const re={size:at.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class se extends ct{constructor(){super(...arguments),this.variant=oe.fluid_topics}render(){return P`
315
- <i class="ft-icon ${"ft-icon--"+this.variant}">
316
- ${te(this.getIcon())}
317
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
318
- </i>
319
- `}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:""}getIcon(){var t,i;let e=this.textContent;return this.variant===oe.file_format?null!==(t=ee[e.toUpperCase()])&&void 0!==t?t:e:this.variant===oe.fluid_topics?null!==(i=ie[e.toUpperCase()])&&void 0!==i?i:e:I}}se.elementDefinitions={},se.styles=f`
320
- :host {
321
- display: inline-block;
322
- }
323
- :host, i.ft-icon {
324
- width: ${re.size};
325
- height: ${re.size};
326
- text-align: center;
327
- }
328
-
329
- i.ft-icon {
330
- font-size: ${re.size};
331
- line-height: 1;
332
- font-weight: normal;
333
- text-transform: none;
334
- font-style: normal;
335
- font-variant: normal;
336
- speak: none;
337
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
338
- text-rendering: auto;
339
- -webkit-font-smoothing: antialiased;
340
- -moz-osx-font-smoothing: grayscale;
341
- }
342
-
343
- .ft-icon--fluid-topics {
344
- font-family: ${re.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
345
- }
346
-
347
- .ft-icon--file-format {
348
- font-family: ${re.fileFormatFontFamily}, ft-mime, sans-serif;
349
- }
350
-
351
- .ft-icon--material {
352
- font-family: ${re.materialFontFamily}, "Material Icons", sans-serif;
353
- }
354
- `,ne([e()],se.prototype,"variant",void 0),ne([n("slot")],se.prototype,"slottedContent",void 0),s("ft-icon")(se);var ae=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const le=at.extend("--ft-chip-color",ht.colorOnSurface),he={backgroundColor:at.extend("--ft-chip-background-color",ht.colorSurface),color:le,fontSize:at.extend("--ft-chip-font-size",xi.fontSize),iconSize:at.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:at.extend("--ft-chip-ripple-color",le),horizontalPadding:at.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:at.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:at.external(ht.colorOutline,"Design system"),opacityDisabled:at.external(ht.colorOpacityDisabled,"Design system")},ce=at.extend("--ft-chip-highlighted-color",at.extend("--ft-chip-color",ht.colorOnPrimary)),pe={backgroundColor:at.extend("--ft-chip-highlighted-background-color",at.extend("--ft-chip-background-color",ht.colorPrimary)),color:ce,rippleColor:at.extend("--ft-chip-highlighted-ripple-color",ce)},fe=at.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),de=at.create("--ft-chip-dense-vertical-padding","SIZE","4px");class ue extends CustomEvent{constructor(){super("icon-click")}}class ye extends ct{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}static get styles(){return[pt,f`
355
- :host {
356
- display: inline-block;
357
- max-width: 100%;
358
- pointer-events: none;
359
- }
360
-
361
- .ft-chip {
362
- position: relative;
363
- display: flex;
364
- justify-content: center;
365
- align-items: center;
366
- width: 100%;
367
- overflow: hidden;
368
- box-sizing: border-box;
369
- pointer-events: auto;
370
-
371
- --ft-chip-internal-font-size: ${he.fontSize};
372
- --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
373
- ${lt(re.size,he.iconSize)};
374
- --ft-chip-internal-vertical-padding: ${he.verticalPadding};
375
- --ft-chip-internal-horizontal-padding: ${he.horizontalPadding};
376
- --ft-chip-internal-icon-padding: 3px;
377
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${he.iconSize});
378
-
379
- border: 1px solid ${he.colorOutline};
380
- color: ${he.color};
381
- ${lt(Ot.color,he.rippleColor)};
382
- border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
383
- padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
384
- background-color: ${he.backgroundColor};
385
- line-height: var(--ft-chip-internal-content-height);
386
- }
387
-
388
- .ft-chip > *:not(ft-ripple) {
389
- position: relative;
390
- }
391
-
392
- .ft-chip--dense {
393
- --ft-chip-internal-icon-padding: 3px;
394
- --ft-chip-internal-vertical-padding: ${de};
395
- --ft-chip-internal-horizontal-padding: ${fe};
396
- --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
397
- }
398
-
399
- .ft-chip--no-content {
400
- --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
401
- }
402
-
403
- .ft-chip--disabled {
404
- cursor: default;
405
- pointer-events: none;
406
- filter: grayscale(1);
407
- opacity: ${he.opacityDisabled};
408
- }
409
-
410
- .ft-chip--highlighted {
411
- border: none;
412
- padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
413
- background-color: ${pe.backgroundColor};
414
- ${lt(Ot.color,pe.rippleColor)};
415
- color: ${pe.color};
416
- }
417
-
418
- .ft-chip--clickable {
419
- cursor: pointer;
420
- -webkit-mask-image: radial-gradient(white, black);
421
- }
422
-
423
- .ft-chip:focus {
424
- outline: none;
425
- }
426
-
427
- .ft-chip--icon-container {
428
- display: inline-flex;
429
- position: relative;
430
- overflow: hidden;
431
- border-radius: 100%;
432
- justify-content: center;
433
- align-items: center;
434
- flex-shrink: 0;
435
-
436
- padding: var(--ft-chip-internal-icon-padding);
437
- margin: calc((-1) * var(--ft-chip-internal-icon-padding));
438
- }
439
-
440
- .ft-chip--icon-container > *:not(ft-ripple) {
441
- position: relative;
442
- }
443
-
444
- .ft-chip--label {
445
- vertical-align: bottom;
446
- display: block;
447
- margin: 0 var(--ft-chip-internal-horizontal-padding);
448
- ${lt(xi.fontSize,"var(--ft-chip-internal-font-size)")};
449
- ${lt(xi.lineHeight,"var(--ft-chip-internal-content-height)")};
450
- }
451
-
452
- .ft-chip--safari-fix .ft-chip--label {
453
- margin-right: 0;
454
- }
455
-
456
- .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
457
- overflow: hidden;
458
- white-space: nowrap;
459
- text-overflow: ellipsis;
460
- }
461
-
462
- .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
463
- content: "\\0000a0";
464
- display: inline-block;
465
- width: 0;
466
- }
467
-
468
- .ft-chip--no-content .ft-chip--label {
469
- display: none;
470
- }
471
-
472
- .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
473
- width: var(--ft-chip-internal-content-height);
474
- height: var(--ft-chip-internal-content-height);
475
- }
476
-
477
- .ft-chip--icon-container:focus {
478
- outline: none;
479
- }
480
-
481
- .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
482
- order: -1;
483
- }
484
- `]}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":yt};return P`
485
- <div class="${bt(t)}"
486
- aria-label="${this.getLabel()}"
487
- tabindex="${this.interactionsOnChip?0:-1}"
488
- @keyup=${this.onKeyUp}>
489
- <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
490
- <ft-typography variant="body2" element="span" class="ft-chip--label">
491
- <slot @slotchange=${this.onSlotchange}></slot>
492
- </ft-typography>
493
- ${this.internalIcon?this.renderIcon():null}
494
- </div>
495
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return P`
496
- <div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
497
- tabindex="${this.interactionsOnIcon?0:-1}"
498
- @click=${this.onIconClick}
499
- @keyup=${this.onIconKeyUp}>
500
- <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
501
- <ft-icon variant="material">${this.internalIcon}</ft-icon>
502
- </div>
503
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ue))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ue))}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)}}ye.elementDefinitions={"ft-ripple":Mt,"ft-typography":Gi,"ft-icon":se},ae([e({type:Boolean})],ye.prototype,"highlighted",void 0),ae([e({type:Boolean})],ye.prototype,"removable",void 0),ae([e({type:Boolean})],ye.prototype,"disabled",void 0),ae([e({type:Boolean})],ye.prototype,"clickable",void 0),ae([e({type:Boolean})],ye.prototype,"iconClickable",void 0),ae([e({type:Boolean})],ye.prototype,"dense",void 0),ae([e({type:Boolean})],ye.prototype,"multiLine",void 0),ae([e({type:String})],ye.prototype,"label",void 0),ae([e({type:String})],ye.prototype,"icon",void 0),ae([e({type:Boolean})],ye.prototype,"trailingIcon",void 0),ae([n("ft-typography slot")],ye.prototype,"slottedContent",void 0),s("ft-chip")(function t(i){var e;let o;if("elementDefinitions"in i){o={};const e=i.elementDefinitions;for(let i in e)o[i]=t(e[i])}return e=class extends i{render(){var t;let e=null!==(t=i.styles)&&void 0!==t?t:[];return Array.isArray(e)||(e=[e]),P`
504
- ${e.map((t=>P`
505
- <style>${t}</style>
506
- `))}
507
- ${super.render()}
508
- `}},e.styles=void 0,e.elementDefinitions=o,e}(ye))}();
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=inline-styles.d.ts.map
@@ -1,4 +0,0 @@
1
- import { customElement, InlineStyles } from "@fluid-topics/ft-wc-utils";
2
- import { FtChip } from "./ft-chip";
3
- customElement("ft-chip")(InlineStyles(FtChip));
4
- //# sourceMappingURL=inline-styles.js.map