@fluid-topics/ft-chip 0.2.17 → 0.2.20

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.
@@ -73,7 +73,7 @@ var nt,rt;null==ot||ot(V,X),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
73
73
  <style>${t}</style>
74
74
  `))}
75
75
  ${this.getTemplate()}
76
- `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,r,s;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){let i=null!==(n=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=l.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];const h=[...new Set([...i,...e])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((i=>`${i}:${t}--${i}`));a.push(...h)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}pt([o()],ft.prototype,"exportpartsPrefix",void 0),pt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ft.prototype,"exportpartsPrefixes",void 0);const dt=d`
76
+ `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...i,...e).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}contentAvailableCallback(t){}}pt([o()],ft.prototype,"exportpartsPrefix",void 0),pt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],ft.prototype,"exportpartsPrefixes",void 0);const dt=d`
77
77
  .ft-no-text-select {
78
78
  -webkit-touch-callout: none;
79
79
  -webkit-user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-chip",
3
- "version": "0.2.17",
3
+ "version": "0.2.20",
4
4
  "description": "A generic Fluid Topics chip",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "^0.2.17",
23
- "@fluid-topics/ft-ripple": "^0.2.17",
24
- "@fluid-topics/ft-typography": "^0.2.17",
25
- "@fluid-topics/ft-wc-utils": "^0.2.17",
22
+ "@fluid-topics/ft-icon": "^0.2.20",
23
+ "@fluid-topics/ft-ripple": "^0.2.20",
24
+ "@fluid-topics/ft-typography": "^0.2.20",
25
+ "@fluid-topics/ft-wc-utils": "^0.2.20",
26
26
  "lit": "2.1.3"
27
27
  },
28
- "gitHead": "7f1e7d4377a6bac24d6d797b342f25166ee44031"
28
+ "gitHead": "12b770753cd907c340153c5f9fed0909ecb1eefc"
29
29
  }
@@ -1,509 +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(te){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
- */
49
- const 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
50
- /**
51
- * @license
52
- * Copyright 2017 Google LLC
53
- * SPDX-License-Identifier: BSD-3-Clause
54
- */;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){}}
55
- /**
56
- * @license
57
- * Copyright 2017 Google LLC
58
- * SPDX-License-Identifier: BSD-3-Clause
59
- */
60
- 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,A=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,L=/'/g,T=/"/g,P=/^(?:script|style|textarea|title)$/i,D=(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]?(P.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=A):void 0!==l[3]&&(s=A):s===A?">"===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]?A:'"'===l[3]?T:L):s===T||s===L?s=A:s===j||s===B?s=F:(s=A,n=void 0);const p=s===A&&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:X})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(P.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 J{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 q(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 q{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 J(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 q(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 X{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 X{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 X{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 X{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;
61
- /**
62
- * @license
63
- * Copyright 2017 Google LLC
64
- * SPDX-License-Identifier: BSD-3-Clause
65
- */
66
- var ot,nt;null==et||et(Z,q),(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 q(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")};
67
- /**
68
- * @license
69
- * Copyright 2021 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- */var ct=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};class pt 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]),D`
72
- ${t.map((t=>D`
73
- <style>${t}</style>
74
- `))}
75
- ${this.getTemplate()}
76
- `}updated(t){super.updated(t),setTimeout((()=>{var i;this.contentAvailableCallback(t),(null===(i=this.exportpartsPrefix)||void 0===i?void 0:i.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}),0)}setExportpartsAttribute(t){var i,e,o,n,r,s;let a=[];for(let l of t){let t=null==l?void 0:l.trim();if(t)for(let l of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){let i=null!==(n=null===(o=l.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],e=null!==(s=null===(r=l.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];const h=[...new Set([...i,...e])].filter((t=>null!=t&&t.trim().length>0)).map((t=>t.trim())).map((i=>`${i}:${t}--${i}`));a.push(...h)}}this.setAttribute("exportparts",a.join(", "))}contentAvailableCallback(t){}}ct([e()],pt.prototype,"exportpartsPrefix",void 0),ct([function(t,i){const o=()=>JSON.parse(JSON.stringify(t));return e({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],pt.prototype,"exportpartsPrefixes",void 0);const ft=f`
77
- .ft-no-text-select {
78
- -webkit-touch-callout: none;
79
- -webkit-user-select: none;
80
- -khtml-user-select: none;
81
- -moz-user-select: none;
82
- -ms-user-select: none;
83
- user-select: none;
84
- }
85
- `;var dt,ut,yt;const gt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(yt=null===(ut=null===(dt=window.safari)||void 0===dt?void 0:dt.pushNotification)||void 0===ut?void 0:ut.toString())&&void 0!==yt?yt:""),xt=1,vt=2,mt=t=>(...i)=>({_$litDirective$:t,values:i});
86
- /**
87
- * @license
88
- * Copyright 2017 Google LLC
89
- * SPDX-License-Identifier: BSD-3-Clause
90
- */class bt{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)}}
91
- /**
92
- * @license
93
- * Copyright 2018 Google LLC
94
- * SPDX-License-Identifier: BSD-3-Clause
95
- */const wt=mt(class extends bt{constructor(t){var i;if(super(t),t.type!==xt||"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 $t=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 Ot=at.extend("--ft-ripple-color",ht.colorContent),St={color:Ot,backgroundColor:at.extend("--ft-ripple-background-color",Ot),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")},kt=at.extend("--ft-ripple-color",ht.colorPrimary),Ct=kt,Nt=at.extend("--ft-ripple-background-color",kt),Et=at.extend("--ft-ripple-color",ht.colorSecondary),Rt=Et,Mt=at.extend("--ft-ripple-background-color",Et);class zt extends pt{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 D`
96
- <style>
97
- .ft-ripple .ft-ripple--effect,
98
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
99
- width: ${this.rippleSize}px;
100
- height: ${this.rippleSize}px;
101
- }
102
-
103
- .ft-ripple .ft-ripple--effect {
104
- left: ${this.originX}px;
105
- top: ${this.originY}px;
106
- }
107
- </style>
108
- <div class="${wt(t)}">
109
- <div class="ft-ripple--background"></div>
110
- <div class="ft-ripple--effect"></div>
111
- </div>
112
- `}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()}}zt.elementDefinitions={},zt.styles=f`
113
- :host {
114
- display: contents;
115
- }
116
-
117
- .ft-ripple {
118
- position: absolute;
119
- inset: 0;
120
- pointer-events: none;
121
- }
122
-
123
- .ft-ripple:not(.ft-ripple--unbounded) {
124
- overflow: hidden;
125
- }
126
-
127
- .ft-ripple .ft-ripple--background,
128
- .ft-ripple .ft-ripple--effect {
129
- position: absolute;
130
- opacity: 0;
131
- }
132
-
133
- .ft-ripple .ft-ripple--background {
134
- background-color: ${St.backgroundColor};
135
- }
136
-
137
- .ft-ripple .ft-ripple--effect {
138
- background-color: ${St.color};
139
- }
140
-
141
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
142
- background-color: ${Mt};
143
- }
144
-
145
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
146
- background-color: ${Rt};
147
- }
148
-
149
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
150
- background-color: ${Nt};
151
- }
152
-
153
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
154
- background-color: ${Ct};
155
- }
156
-
157
- .ft-ripple .ft-ripple--background {
158
- top: 0;
159
- left: 0;
160
- height: 100%;
161
- width: 100%;
162
- transition: opacity 75ms linear;
163
- }
164
-
165
- .ft-ripple .ft-ripple--effect,
166
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
167
- border-radius: 50%;
168
- }
169
-
170
- .ft-ripple .ft-ripple--effect {
171
- transform: translate(-50%, -50%) scale(0.15);
172
- transition: transform 300ms ease, opacity 75ms linear;
173
- }
174
-
175
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
176
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
177
- left: 50%;
178
- top: 50%;
179
- }
180
-
181
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
182
- transform: translate(-50%, -50%);
183
- }
184
-
185
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
186
- opacity: ${St.opacityContentOnSurfaceHover};
187
- }
188
-
189
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
190
- opacity: ${St.opacityContentOnSurfaceSelected};
191
- }
192
-
193
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
194
- opacity: ${St.opacityContentOnSurfaceFocused};
195
- }
196
-
197
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
198
- opacity: ${St.opacityContentOnSurfacePressed};
199
- transform: translate(-50%, -50%) scale(1);
200
- }
201
- `,$t([e({type:Boolean})],zt.prototype,"primary",void 0),$t([e({type:Boolean})],zt.prototype,"secondary",void 0),$t([e({type:Boolean})],zt.prototype,"unbounded",void 0),$t([e({type:Boolean})],zt.prototype,"activated",void 0),$t([e({type:Boolean})],zt.prototype,"selected",void 0),$t([e({type:Boolean})],zt.prototype,"disabled",void 0),$t([o()],zt.prototype,"hovered",void 0),$t([o()],zt.prototype,"focused",void 0),$t([o()],zt.prototype,"pressed",void 0),$t([o()],zt.prototype,"rippling",void 0),$t([o()],zt.prototype,"rippleSize",void 0),$t([o()],zt.prototype,"originX",void 0),$t([o()],zt.prototype,"originY",void 0),$t([n(".ft-ripple")],zt.prototype,"ripple",void 0),$t([n(".ft-ripple--effect")],zt.prototype,"rippleEffect",void 0),s("ft-ripple")(zt);
202
- /**
203
- * @license
204
- * Copyright 2020 Google LLC
205
- * SPDX-License-Identifier: BSD-3-Clause
206
- */
207
- const Ut=Symbol.for(""),Ft=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===Ut)return null===(e=t)||void 0===e?void 0:e._$litStatic$},jt=t=>({_$litStatic$:t,r:Ut}),Bt=new Map,At=(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=Ft(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=Bt.get(t))&&(s.raw=s,Bt.set(t,i=s)),e=a}return t(i,...e)})(D);var Lt,Tt=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 Pt=at.extend("--ft-typography-font-family",ht.titleFont),Dt=at.extend("--ft-typography-font-family",ht.contentFont),_t={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")},It=at.extend("--ft-typography-title-font-family",Pt),Wt=at.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Kt=at.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Ht=at.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),Zt=at.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Vt=at.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),Jt=at.extend("--ft-typography-title-dense-font-family",Pt),qt=at.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Xt=at.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),Yt=at.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Gt=at.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),Qt=at.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),ti=at.extend("--ft-typography-subtitle1-font-family",Dt),ii=at.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),ei=at.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),oi=at.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),ni=at.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),ri=at.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),si=at.extend("--ft-typography-subtitle2-font-family",Dt),ai=at.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),li=at.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),hi=at.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),ci=at.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),pi=at.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),fi=at.extend("--ft-typography-body1-font-family",Dt),di=at.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),ui=at.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),yi=at.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),gi=at.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),xi=at.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit"),vi={fontFamily:at.extend("--ft-typography-body2-font-family",Dt),fontSize:at.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),fontWeight:at.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),lineHeight:at.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),textTransform:at.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit")},mi=at.extend("--ft-typography-caption-font-family",Dt),bi=at.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),wi=at.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),$i=at.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),Oi=at.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),Si=at.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit"),ki=at.extend("--ft-typography-breadcrumb-font-family",Dt),Ci=at.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Ni=at.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Ei=at.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),Ri=at.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Mi=at.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),zi=at.extend("--ft-typography-overline-font-family",Dt),Ui=at.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Fi=at.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),ji=at.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),Bi=at.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),Ai=at.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),Li=at.extend("--ft-typography-button-font-family",Dt),Ti=at.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),Pi=at.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Di=at.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),_i=at.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Ii=at.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Wi=f`
208
- .ft-typography--title {
209
- font-family: ${It};
210
- font-size: ${Wt};
211
- font-weight: ${Kt};
212
- letter-spacing: ${Ht};
213
- line-height: ${Zt};
214
- text-transform: ${Vt};
215
- }
216
- `,Ki=f`
217
- .ft-typography--title-dense {
218
- font-family: ${Jt};
219
- font-size: ${qt};
220
- font-weight: ${Xt};
221
- letter-spacing: ${Yt};
222
- line-height: ${Gt};
223
- text-transform: ${Qt};
224
- }
225
- `,Hi=f`
226
- .ft-typography--subtitle1 {
227
- font-family: ${ti};
228
- font-size: ${ii};
229
- font-weight: ${ei};
230
- letter-spacing: ${oi};
231
- line-height: ${ni};
232
- text-transform: ${ri};
233
- }
234
- `,Zi=f`
235
- .ft-typography--subtitle2 {
236
- font-family: ${si};
237
- font-size: ${ai};
238
- font-weight: ${li};
239
- letter-spacing: ${hi};
240
- line-height: ${ci};
241
- text-transform: ${pi};
242
- }
243
-
244
- `,Vi=f`
245
- .ft-typography--body1 {
246
- font-family: ${fi};
247
- font-size: ${di};
248
- font-weight: ${ui};
249
- letter-spacing: ${yi};
250
- line-height: ${gi};
251
- text-transform: ${xi};
252
- }
253
- `,Ji=f`
254
- .ft-typography--body2 {
255
- font-family: ${vi.fontFamily};
256
- font-size: ${vi.fontSize};
257
- font-weight: ${vi.fontWeight};
258
- letter-spacing: ${vi.letterSpacing};
259
- line-height: ${vi.lineHeight};
260
- text-transform: ${vi.textTransform};
261
- }
262
- `,qi=f`
263
- .ft-typography--caption {
264
- font-family: ${mi};
265
- font-size: ${bi};
266
- font-weight: ${wi};
267
- letter-spacing: ${$i};
268
- line-height: ${Oi};
269
- text-transform: ${Si};
270
- }
271
- `,Xi=f`
272
- .ft-typography--breadcrumb {
273
- font-family: ${ki};
274
- font-size: ${Ci};
275
- font-weight: ${Ni};
276
- letter-spacing: ${Ei};
277
- line-height: ${Ri};
278
- text-transform: ${Mi};
279
- }
280
- `,Yi=f`
281
- .ft-typography--overline {
282
- font-family: ${zi};
283
- font-size: ${Ui};
284
- font-weight: ${Fi};
285
- letter-spacing: ${ji};
286
- line-height: ${Bi};
287
- text-transform: ${Ai};
288
- }
289
- `,Gi=f`
290
- .ft-typography--button {
291
- font-family: ${Li};
292
- font-size: ${Ti};
293
- font-weight: ${Pi};
294
- letter-spacing: ${Di};
295
- line-height: ${_i};
296
- text-transform: ${Ii};
297
- }
298
- `;class Qi extends pt{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?At`
299
- <${jt(this.element)}
300
- class="ft-typography ft-typography--${this.variant}">
301
- <slot></slot>
302
- </${jt(this.element)}>
303
- `:At`
304
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
305
- `}}Qi.styles=[Wi,Ki,Hi,Zi,Vi,Ji,qi,Xi,Yi,Gi,f`
306
- .ft-typography {
307
- vertical-align: inherit;
308
- }
309
- `],Tt([e()],Qi.prototype,"element",void 0),Tt([e()],Qi.prototype,"variant",void 0),s("ft-typography")(Qi);
310
- /**
311
- * @license
312
- * Copyright 2017 Google LLC
313
- * SPDX-License-Identifier: BSD-3-Clause
314
- */
315
- class te extends bt{constructor(t){if(super(t),this.it=I,t.type!==vt)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:[]}}}te.directiveName="unsafeHTML",te.resultType=1;const ie=mt(te);var ee,oe;!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;"}(ee||(ee={})),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;"}(oe||(oe={})),new Map([...["abw"].map((t=>[t,oe.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,oe.AUDIO])),...["avi"].map((t=>[t,oe.AVI])),...["chm","xhs"].map((t=>[t,oe.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,oe.CODE])),...["csv"].map((t=>[t,oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oe.DITA])),...["epub"].map((t=>[t,oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oe.EXCEL])),...["flac"].map((t=>[t,oe.FLAC])),...["gif"].map((t=>[t,oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,oe.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,oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oe.JPEG])),...["json"].map((t=>[t,oe.JSON])),...["m4a","m4p"].map((t=>[t,oe.M4A])),...["mov","qt"].map((t=>[t,oe.MOV])),...["mp3"].map((t=>[t,oe.MP3])),...["mp4","m4v"].map((t=>[t,oe.MP4])),...["ogg","oga"].map((t=>[t,oe.OGG])),...["pdf","ps"].map((t=>[t,oe.PDF])),...["png"].map((t=>[t,oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oe.POWERPOINT])),...["rar"].map((t=>[t,oe.RAR])),...["stp"].map((t=>[t,oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oe.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,oe.VIDEO])),...["wav"].map((t=>[t,oe.WAV])),...["wma"].map((t=>[t,oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oe.YAML])),...["zip"].map((t=>[t,oe.ZIP]))]);var ne,re=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"}(ne||(ne={}));const se={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 ae extends pt{constructor(){super(...arguments),this.variant=ne.fluid_topics}render(){return D`
316
- <i class="ft-icon ${"ft-icon--"+this.variant}">
317
- ${ie(this.getIcon())}
318
- <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
319
- </i>
320
- `}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===ne.file_format?null!==(t=oe[e.toUpperCase()])&&void 0!==t?t:e:this.variant===ne.fluid_topics?null!==(i=ee[e.toUpperCase()])&&void 0!==i?i:e:I}}ae.elementDefinitions={},ae.styles=f`
321
- :host {
322
- display: inline-block;
323
- }
324
- :host, i.ft-icon {
325
- width: ${se.size};
326
- height: ${se.size};
327
- text-align: center;
328
- }
329
-
330
- i.ft-icon {
331
- font-size: ${se.size};
332
- line-height: 1;
333
- font-weight: normal;
334
- text-transform: none;
335
- font-style: normal;
336
- font-variant: normal;
337
- speak: none;
338
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
339
- text-rendering: auto;
340
- -webkit-font-smoothing: antialiased;
341
- -moz-osx-font-smoothing: grayscale;
342
- }
343
-
344
- .ft-icon--fluid-topics {
345
- font-family: ${se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
346
- }
347
-
348
- .ft-icon--file-format {
349
- font-family: ${se.fileFormatFontFamily}, ft-mime, sans-serif;
350
- }
351
-
352
- .ft-icon--material {
353
- font-family: ${se.materialFontFamily}, "Material Icons", sans-serif;
354
- }
355
- `,re([e()],ae.prototype,"variant",void 0),re([n("slot")],ae.prototype,"slottedContent",void 0),s("ft-icon")(ae);var le=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 he=at.extend("--ft-chip-color",ht.colorOnSurface),ce={backgroundColor:at.extend("--ft-chip-background-color",ht.colorSurface),color:he,fontSize:at.extend("--ft-chip-font-size",vi.fontSize),iconSize:at.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:at.extend("--ft-chip-ripple-color",he),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")},pe=at.extend("--ft-chip-highlighted-color",at.extend("--ft-chip-color",ht.colorOnPrimary)),fe={backgroundColor:at.extend("--ft-chip-highlighted-background-color",at.extend("--ft-chip-background-color",ht.colorPrimary)),color:pe,rippleColor:at.extend("--ft-chip-highlighted-ripple-color",pe)},de=at.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),ue=at.create("--ft-chip-dense-vertical-padding","SIZE","4px");class ye extends CustomEvent{constructor(){super("icon-click")}}class ge extends pt{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[ft,f`
356
- :host {
357
- display: inline-block;
358
- max-width: 100%;
359
- pointer-events: none;
360
- }
361
-
362
- .ft-chip {
363
- position: relative;
364
- display: flex;
365
- justify-content: center;
366
- align-items: center;
367
- width: 100%;
368
- overflow: hidden;
369
- box-sizing: border-box;
370
- pointer-events: auto;
371
-
372
- --ft-chip-internal-font-size: ${ce.fontSize};
373
- --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
374
- ${lt(se.size,ce.iconSize)};
375
- --ft-chip-internal-vertical-padding: ${ce.verticalPadding};
376
- --ft-chip-internal-horizontal-padding: ${ce.horizontalPadding};
377
- --ft-chip-internal-icon-padding: 3px;
378
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ce.iconSize});
379
-
380
- border: 1px solid ${ce.colorOutline};
381
- color: ${ce.color};
382
- ${lt(St.color,ce.rippleColor)};
383
- border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
384
- padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
385
- background-color: ${ce.backgroundColor};
386
- line-height: var(--ft-chip-internal-content-height);
387
- }
388
-
389
- .ft-chip > *:not(ft-ripple) {
390
- position: relative;
391
- }
392
-
393
- .ft-chip--dense {
394
- --ft-chip-internal-icon-padding: 3px;
395
- --ft-chip-internal-vertical-padding: ${ue};
396
- --ft-chip-internal-horizontal-padding: ${de};
397
- --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
398
- }
399
-
400
- .ft-chip--no-content {
401
- --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
402
- }
403
-
404
- .ft-chip--disabled {
405
- cursor: default;
406
- pointer-events: none;
407
- filter: grayscale(1);
408
- opacity: ${ce.opacityDisabled};
409
- }
410
-
411
- .ft-chip--highlighted {
412
- border: none;
413
- padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
414
- background-color: ${fe.backgroundColor};
415
- ${lt(St.color,fe.rippleColor)};
416
- color: ${fe.color};
417
- }
418
-
419
- .ft-chip--clickable {
420
- cursor: pointer;
421
- -webkit-mask-image: radial-gradient(white, black);
422
- }
423
-
424
- .ft-chip:focus {
425
- outline: none;
426
- }
427
-
428
- .ft-chip--icon-container {
429
- display: inline-flex;
430
- position: relative;
431
- overflow: hidden;
432
- border-radius: 100%;
433
- justify-content: center;
434
- align-items: center;
435
- flex-shrink: 0;
436
-
437
- padding: var(--ft-chip-internal-icon-padding);
438
- margin: calc((-1) * var(--ft-chip-internal-icon-padding));
439
- }
440
-
441
- .ft-chip--icon-container > *:not(ft-ripple) {
442
- position: relative;
443
- }
444
-
445
- .ft-chip--label {
446
- vertical-align: bottom;
447
- display: block;
448
- margin: 0 var(--ft-chip-internal-horizontal-padding);
449
- ${lt(vi.fontSize,"var(--ft-chip-internal-font-size)")};
450
- ${lt(vi.lineHeight,"var(--ft-chip-internal-content-height)")};
451
- }
452
-
453
- .ft-chip--safari-fix .ft-chip--label {
454
- margin-right: 0;
455
- }
456
-
457
- .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
458
- overflow: hidden;
459
- white-space: nowrap;
460
- text-overflow: ellipsis;
461
- }
462
-
463
- .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
464
- content: "\\0000a0";
465
- display: inline-block;
466
- width: 0;
467
- }
468
-
469
- .ft-chip--no-content .ft-chip--label {
470
- display: none;
471
- }
472
-
473
- .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
474
- width: var(--ft-chip-internal-content-height);
475
- height: var(--ft-chip-internal-content-height);
476
- }
477
-
478
- .ft-chip--icon-container:focus {
479
- outline: none;
480
- }
481
-
482
- .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
483
- order: -1;
484
- }
485
- `]}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":gt};return D`
486
- <div class="${wt(t)}"
487
- aria-label="${this.getLabel()}"
488
- tabindex="${this.interactionsOnChip?0:-1}"
489
- @keyup=${this.onKeyUp}>
490
- <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
491
- <ft-typography variant="body2" element="span" class="ft-chip--label">
492
- <slot @slotchange=${this.onSlotchange}></slot>
493
- </ft-typography>
494
- ${this.internalIcon?this.renderIcon():null}
495
- </div>
496
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return D`
497
- <div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
498
- tabindex="${this.interactionsOnIcon?0:-1}"
499
- @click=${this.onIconClick}
500
- @keyup=${this.onIconKeyUp}>
501
- <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
502
- <ft-icon variant="material">${this.internalIcon}</ft-icon>
503
- </div>
504
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}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)}}ge.elementDefinitions={"ft-ripple":zt,"ft-typography":Qi,"ft-icon":ae},le([e({type:Boolean})],ge.prototype,"highlighted",void 0),le([e({type:Boolean})],ge.prototype,"removable",void 0),le([e({type:Boolean})],ge.prototype,"disabled",void 0),le([e({type:Boolean})],ge.prototype,"clickable",void 0),le([e({type:Boolean})],ge.prototype,"iconClickable",void 0),le([e({type:Boolean})],ge.prototype,"dense",void 0),le([e({type:Boolean})],ge.prototype,"multiLine",void 0),le([e({type:String})],ge.prototype,"label",void 0),le([e({type:String})],ge.prototype,"icon",void 0),le([e({type:Boolean})],ge.prototype,"trailingIcon",void 0),le([n("ft-typography slot")],ge.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]),D`
505
- ${e.map((t=>D`
506
- <style>${t}</style>
507
- `))}
508
- ${super.render()}
509
- `}},e.styles=void 0,e.elementDefinitions=o,e}(ge))}();
@@ -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