@fluid-topics/ft-infinite-scroll 1.0.59 → 1.0.60
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,14 +1,14 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
import { FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
export const FtInfiniteScrollCssVariables = {
|
|
4
|
-
padding: FtCssVariableFactory.create("--ft-infinite-scroll-padding", "SIZE", "0"),
|
|
5
|
-
itemsGap: FtCssVariableFactory.create("--ft-infinite-scroll-items-gap", "SIZE", "4px"),
|
|
4
|
+
padding: FtCssVariableFactory.create("--ft-infinite-scroll-padding", "", "SIZE", "0"),
|
|
5
|
+
itemsGap: FtCssVariableFactory.create("--ft-infinite-scroll-items-gap", "", "SIZE", "4px"),
|
|
6
6
|
/*
|
|
7
7
|
If 0px : the item is not "visible" and the scroll does not work
|
|
8
8
|
If > 1px : Can break some particular implementation where we would have empty items and it would lead to a big gap.
|
|
9
9
|
We want to make it configurable for implementations where content is loaded asynchronously in item.
|
|
10
10
|
*/
|
|
11
|
-
itemContainerMinHeight: FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height", "SIZE", ".1px"),
|
|
11
|
+
itemContainerMinHeight: FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height", "", "SIZE", ".1px"),
|
|
12
12
|
};
|
|
13
13
|
// language=CSS
|
|
14
14
|
export const styles = css `
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e,i,s,n,l){const r={padding:e.FtCssVariableFactory.create("--ft-infinite-scroll-padding","SIZE","0"),itemsGap:e.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","SIZE","4px"),itemContainerMinHeight:e.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","SIZE",".1px")},h=i.css`
|
|
1
|
+
!function(t,e,i,s,n,l){const r={padding:e.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:e.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:e.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},h=i.css`
|
|
2
2
|
.items-container {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: ${r.padding};
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,l=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);d(i,c,l);const s={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,s),this._definitionsByClass.set(i,s);let f=e.call(r,t);f||(f=p(t),o.call(r,t,f)),this===window.customElements&&(n.set(i,s),s.standInClass=f);const h=this._awaitingUpgrade.get(t);if(h){this._awaitingUpgrade.delete(t);for(const t of h)a.delete(t),y(t,s,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const s=t=>t===document||t instanceof ShadowRoot,f=t=>{let o=t.getRootNode();if(!s(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),s(o)||(o=l.get(o)?.getRootNode()||document)}return o.customElements},p=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=f(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)})},h=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(o,window.HTMLElement):h(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){h(o.elementClass),new o.elementClass}o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0!==i.get(e).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...o)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch($t){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const e=(t,
|
|
22
|
+
*/const e=(t,o)=>"method"===o.kind&&o.descriptor&&!("value"in o.descriptor)?{...o,finisher(e){e.createProperty(o.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:o.key,initializer(){"function"==typeof o.initializer&&(this[o.key]=o.initializer.call(this))},finisher(e){e.createProperty(o.key,t)}};function r(t){return(o,r)=>void 0!==r?((t,o,e)=>{o.constructor.createProperty(e,t)})(t,o,r):e(t,o)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/}function
|
|
27
|
+
*/}function i(t){return r({...t,state:!0})}
|
|
28
28
|
/**
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
@@ -35,35 +35,35 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
function
|
|
38
|
+
function a(t,o){return(({finisher:t,descriptor:o})=>(e,r)=>{var i;if(void 0===r){const r=null!==(i=e.originalKey)&&void 0!==i?i:e.key,a=null!=o?{kind:"method",placement:"prototype",key:r,descriptor:o(e.key)}:{...e,key:r};return null!=t&&(a.finisher=function(o){t(o,r)}),a}{const i=e.constructor;void 0!==o&&Object.defineProperty(e,r,o(r)),null==t||t(i,r)}})({descriptor:e=>{const r={get(){var o,e;return null!==(e=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(o){const o="symbol"==typeof e?Symbol():"__"+e;r.get=function(){var e,r;return void 0===this[o]&&(this[o]=null!==(r=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null),this[o]}}return r}})}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2021 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
|
-
*/var
|
|
43
|
+
*/var n;function l(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!l(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!l(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!l(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2019 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
const
|
|
49
|
+
const c=window,s=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),p=new WeakMap;let d=class{constructor(t,o,e){if(this._$cssResult$=!0,e!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(s&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=p.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&p.set(o,t))}return t}toString(){return this.cssText}};const h=t=>new d("string"==typeof t?t:t+"",void 0,f),y=(t,...o)=>{const e=1===t.length?t[0]:o.reduce(((o,e,r)=>o+(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[r+1]),t[0]);return new d(e,t,f)},u=(t,o)=>{s?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=c.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))},g=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return h(o)})(t):t
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
|
-
*/;var
|
|
54
|
+
*/;var b;const m=window,O=m.trustedTypes,N=O?O.emptyScript:"",v=m.reactiveElementPolyfillSupport,w={toAttribute(t,o){switch(o){case Boolean:t=t?N:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){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}},C=(t,o)=>o!==t&&(o==o||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:C};let x=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var o;this.finalize(),(null!==(o=this.h)&&void 0!==o?o:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((o,e)=>{const r=this._$Ep(e,o);void 0!==r&&(this._$Ev.set(r,e),t.push(r))})),t}static createProperty(t,o=S){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(t,o),!o.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){return{get(){return this[o]},set(r){const i=this[t];this[o]=r,this.requestUpdate(t,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of o)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(g(t))}else void 0!==t&&o.push(g(t));return o}static _$Ep(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var o,e;(null!==(o=this._$ES)&&void 0!==o?o:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var o;null===(o=this._$ES)||void 0===o||o.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])}))}createRenderRoot(){var t;const o=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return u(o,this.constructor.elementStyles),o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostConnected)||void 0===o?void 0:o.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostDisconnected)||void 0===o?void 0:o.call(t)}))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o,e=S){var r;const i=this.constructor._$Ep(t,e);if(void 0!==i&&!0===e.reflect){const a=(void 0!==(null===(r=e.converter)||void 0===r?void 0:r.toAttribute)?e.converter:w).toAttribute(o,e.type);this._$El=t,null==a?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(t,o){var e;const r=this.constructor,i=r._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=r.getPropertyOptions(i),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:w;this._$El=i,this[i]=a.fromAttribute(o,t.type),this._$El=null}}requestUpdate(t,o,e){let r=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],o)?(this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}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._$Ei&&(this._$Ei.forEach(((t,o)=>this[o]=t)),this._$Ei=void 0);let o=!1;const e=this._$AL;try{o=this.shouldUpdate(e),o?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var o;return null===(o=t.hostUpdate)||void 0===o?void 0:o.call(t)})),this.update(e)):this._$Ek()}catch(t){throw o=!1,this._$Ek(),t}o&&this._$AE(e)}willUpdate(t){}_$AE(t){var o;null===(o=this._$ES)||void 0===o||o.forEach((t=>{var o;return null===(o=t.hostUpdated)||void 0===o?void 0:o.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,o)=>this._$EO(o,this[o],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
58
58
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
59
|
*/
|
|
60
|
-
var
|
|
60
|
+
var R;x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:x}),(null!==(b=m.reactiveElementVersions)&&void 0!==b?b:m.reactiveElementVersions=[]).push("1.6.1");const U=window,E=U.trustedTypes,I=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,k="?"+W,K=`<${k}>`,Z=document,F=()=>Z.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,M=t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),$="[ \t\n\f\r]",z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,G=/>/g,j=RegExp(`>|${$}(?:([^\\s"'>=/]+)(${$}*=${$}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,H=/"/g,P=/^(?:script|style|textarea|title)$/i,_=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),Y=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),J=new WeakMap,q=Z.createTreeWalker(Z,129,null,!1),X=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=z;for(let o=0;o<e;o++){const e=t[o];let l,c,s=-1,f=0;for(;f<e.length&&(n.lastIndex=f,c=n.exec(e),null!==c);)f=n.lastIndex,n===z?"!--"===c[1]?n=D:void 0!==c[1]?n=G:void 0!==c[2]?(P.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=j):void 0!==c[3]&&(n=j):n===j?">"===c[0]?(n=null!=i?i:z,s=-1):void 0===c[1]?s=-2:(s=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?j:'"'===c[3]?H:T):n===H||n===T?n=j:n===D||n===G?n=z:(n=j,i=void 0);const p=n===j&&t[o+1].startsWith("/>")?" ":"";a+=n===z?e+K:s>=0?(r.push(l),e.slice(0,s)+L+e.slice(s)+W+p):e+W+(-2===s?(r.push(void 0),o):p)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(l):l,r]};class Q{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[c,s]=X(t,o);if(this.el=Q.createElement(c,e),q.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=q.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(L)||o.startsWith(W)){const e=s[a++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+L).split(W),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?it:"?"===o[1]?nt:"@"===o[1]?lt:rt})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(P.test(r.tagName)){const t=r.textContent.split(W),o=t.length-1;if(o>0){r.textContent=E?E.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],F()),q.nextNode(),l.push({type:2,index:++i});r.append(t[o],F())}}}else if(8===r.nodeType)if(r.data===k)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(W,t+1));)l.push({type:7,index:i}),t+=W.length-1}i++}}static createElement(t,o){const e=Z.createElement("template");return e.innerHTML=t,e}}function tt(t,o,e=t,r){var i,a,n,l;if(o===Y)return o;let c=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const s=B(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==s&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===s?c=void 0:(c=new s(t),c._$AT(t,e,r)),void 0!==r?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[r]=c:e._$Cl=c),void 0!==c&&(o=tt(t,c._$AS(t,o.values),c,r)),o}class ot{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:Z).importNode(e,!0);q.currentNode=i;let a=q.nextNode(),n=0,l=0,c=r[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new et(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new ct(a,this,t)),this._$AV.push(o),c=r[++l]}n!==(null==c?void 0:c.index)&&(a=q.nextNode(),n++)}return i}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class et{constructor(t,o,e,r){var i;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=tt(this,t,o),B(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):M(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(Z.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Q.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new ot(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=J.get(t.strings);return void 0===o&&J.set(t.strings,o=new Q(t)),o}T(t){A(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new et(this.k(F()),this.k(F()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class rt{constructor(t,o,e,r,i){this.type=1,this._$AH=V,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=tt(this,t,o,0),a=!B(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=tt(this,r[e+n],o,n),l===Y&&(l=this._$AH[n]),a||(a=!B(l)||l!==this._$AH[n]),l===V?t=V:t!==V&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const at=E?E.emptyScript:"";class nt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class lt extends rt{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=tt(this,t,o,0))&&void 0!==e?e:V)===Y)return;const r=this._$AH,i=t===V&&r!==V||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==V&&(r===V||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const st={O:L,P:W,A:k,C:1,M:X,L:ot,D:M,R:tt,I:et,V:rt,H:nt,N:lt,U:it,F:ct},ft=U.litHtmlPolyfillSupport;null==ft||ft(Q,et),(null!==(R=U.litHtmlVersions)&&void 0!==R?R:U.litHtmlVersions=[]).push("2.7.3");
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
65
|
*/
|
|
66
|
-
var ut,dt;let pt=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,i,e)=>{var s,n;const o=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:i;let r=o._$litPart$;if(void 0===r){const t=null!==(n=null==e?void 0:e.renderBefore)&&void 0!==n?n:null;o._$litPart$=r=new et(i.insertBefore(j(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}};pt.finalized=!0,pt._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:pt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:pt}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");class vt{static create(t,i,e){let s=t=>p(null!=t?t:e),n=f`var(${p(t)}, ${s(e)})`;return n.name=t,n.category=i,n.defaultValue=e,n.defaultCssValue=s,n.get=i=>f`var(${p(t)}, ${s(i)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>e,n}static extend(t,i,e){let s=t=>i.get(null!=t?t:e),n=f`var(${p(t)}, ${s(e)})`;return n.name=t,n.category=i.category,n.fallbackVariable=i,n.defaultValue=e,n.defaultCssValue=s,n.get=i=>f`var(${p(t)}, ${s(i)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>e,n}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):p(null!=i?i:t.defaultValue),s=f`var(${p(t.name)}, ${e(t.defaultValue)})`;return s.name=t.name,s.category=t.category,s.fallbackVariable=t.fallbackVariable,s.defaultValue=t.defaultValue,s.context=i,s.defaultCssValue=e,s.get=i=>f`var(${p(t.name)}, ${e(i)})`,s.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],s.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},s}}vt.create("--ft-color-primary","COLOR","#2196F3"),vt.create("--ft-color-primary-variant","COLOR","#1976D2"),vt.create("--ft-color-secondary","COLOR","#FFCC80"),vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),vt.create("--ft-color-surface","COLOR","#FFFFFF"),vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),vt.create("--ft-color-error","COLOR","#B00020"),vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),vt.create("--ft-color-opacity-high","NUMBER","1"),vt.create("--ft-color-opacity-medium","NUMBER","0.74"),vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.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)"),vt.create("--ft-border-radius-S","SIZE","4px"),vt.create("--ft-border-radius-M","SIZE","8px"),vt.create("--ft-border-radius-L","SIZE","12px"),vt.create("--ft-border-radius-XL","SIZE","16px"),vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),vt.create("--ft-transition-duration","UNKNOWN","250ms"),vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");class bt extends pt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([i,e])=>t.registry.define(i,e))));const i={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(i);return v(e,t.elementStyles),e}}var mt,xt=function(t,i,e,s){for(var n,o=arguments.length,r=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(o<3?n(r):o>3?n(i,e,r):n(i,e))||r);return o>3&&r&&Object.defineProperty(i,e,r),r};const wt=Symbol("constructorPrototype"),yt=Symbol("constructorName"),gt=Symbol("exportpartsDebouncer");class Ot extends bt{constructor(){super(),this[mt]=new i(5),this[yt]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[yt]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[gt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,s,n,o,r;const l=t=>null!=t&&t.trim().length>0,h=t.filter(l).map((t=>t.trim()));if(0===h.length)return void this.removeAttribute("exportparts");const a=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===(s=t.getAttribute("part"))||void 0===s?void 0:s.split(" "))&&void 0!==n?n:[],e=null!==(r=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>a.add(t)))}if(0===a.size)return void this.removeAttribute("exportparts");const c=[...a.values()].flatMap((t=>h.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var Nt,Ct;mt=gt,xt([s()],Ot.prototype,"exportpartsPrefix",void 0),xt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,i)=>!l(t,i),...null!=i?i:{}})}([])],Ot.prototype,"exportpartsPrefixes",void 0),xt([s()],Ot.prototype,"customStylesheet",void 0),f`
|
|
66
|
+
var pt,dt;let ht=class extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,o;const e=super.createRenderRoot();return null!==(t=(o=this.renderOptions).renderBefore)&&void 0!==t||(o.renderBefore=e.firstChild),e}update(t){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,o,e)=>{var r,i;const a=null!==(r=null==e?void 0:e.renderBefore)&&void 0!==r?r:o;let n=a._$litPart$;if(void 0===n){const t=null!==(i=null==e?void 0:e.renderBefore)&&void 0!==i?i:null;a._$litPart$=n=new et(o.insertBefore(F(),t),t,void 0,null!=e?e:{})}return n._$AI(t),n})(o,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};ht.finalized=!0,ht._$litElement$=!0,null===(pt=globalThis.litElementHydrateSupport)||void 0===pt||pt.call(globalThis,{LitElement:ht});const yt=globalThis.litElementPolyfillSupport;null==yt||yt({LitElement:ht}),(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");const ut=t=>"string"==typeof t?h(t):t;class gt{static create(t,o,e,r){const i=t=>ut(null!=t?t:r),a=y`var(${ut(t)}, ${i(r)})`;return a.name=t,a.description=t,a.category=e,a.defaultValue=r,a.defaultCssValue=i,a.get=o=>y`var(${ut(t)}, ${i(o)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,o,e,r){const i=t=>e.get(null!=t?t:r),a=y`var(${ut(t)}, ${i(r)})`;return a.name=t,a.description=o,a.category=e.category,a.fallbackVariable=e,a.defaultValue=r,a.defaultCssValue=i,a.get=o=>y`var(${ut(t)}, ${i(o)})`,a.breadcrumb=()=>[e.name,...e.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:e.lastResortDefaultValue(),a}static external(t,o){const e=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):ut(null!=o?o:t.lastResortDefaultValue()),r=y`var(${ut(t.name)}, ${e(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=e,r.get=o=>y`var(${ut(t.name)}, ${e(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const bt={colorWhite:gt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:gt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:gt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:gt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:gt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:gt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:gt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:gt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:gt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:gt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:gt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:gt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:gt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:gt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:gt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:gt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:gt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:gt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:gt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:gt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:gt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:gt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:gt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:gt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:gt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:gt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:gt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:gt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:gt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:gt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:gt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:gt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:gt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:gt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:gt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:gt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:gt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:gt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:gt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:gt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:gt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:gt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:gt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:gt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:gt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:gt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:gt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:gt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:gt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:gt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:gt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:gt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:gt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:gt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:gt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:gt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:gt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:gt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:gt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:gt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:gt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:gt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:gt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:gt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:gt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:gt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:gt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:gt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:gt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:gt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:gt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:gt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:gt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:gt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:gt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:gt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:gt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:gt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:gt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:gt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:gt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:gt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:gt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:gt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:gt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:gt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:gt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:gt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:gt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:gt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:gt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:gt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:gt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:gt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:gt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:gt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:gt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:gt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:gt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:gt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:gt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:gt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:gt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:gt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:gt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:gt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:gt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:gt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:gt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:gt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:gt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:gt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:gt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:gt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:gt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:gt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:gt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:gt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:gt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:gt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:gt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:gt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:gt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:gt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:gt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:gt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:gt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:gt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:gt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:gt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:gt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:gt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:gt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:gt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:gt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:gt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:gt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:gt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:gt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:gt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:gt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:gt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:gt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:gt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:gt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:gt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:gt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:gt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:gt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:gt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:gt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:gt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:gt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:gt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:gt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:gt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:gt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:gt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:gt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:gt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:gt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:gt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:gt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:gt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:gt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:gt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:gt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:gt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:gt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:gt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:gt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:gt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:gt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:gt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:gt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:gt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:gt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:gt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:gt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:gt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:gt.create("--ft-opacity-0","","NUMBER","0"),opacity8:gt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:gt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:gt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:gt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:gt.create("--ft-opacity-80","","NUMBER","0.8")};gt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-display-lineHeight","","SIZE","120%"),gt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),gt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),gt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-display-textCase","","UNKNOWN","none"),gt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),gt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),gt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),gt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-title-1-textCase","","UNKNOWN","none"),gt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),gt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),gt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),gt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-title-2-textCase","","UNKNOWN","none"),gt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),gt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),gt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),gt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-title-3-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),gt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),gt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),gt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),gt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),gt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none"),gt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),gt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),gt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),gt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),gt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),gt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),gt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),gt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),gt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),gt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),gt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),gt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),gt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),gt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),gt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),gt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),gt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),gt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),gt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),gt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),gt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),gt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none");const mt={backgroundActionPrimary:gt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",bt.colorBrand0),backgroundErrorPrimary:gt.extend("--ft-background-error-primary","Used as background of error components.",bt.colorRed0),backgroundErrorSubtle:gt.extend("--ft-background-error-subtle","Used as background of subtle error components.",bt.colorRed10),backgroundInfoPrimary:gt.extend("--ft-background-info-primary","Used as background of information components.",bt.colorCyan200),backgroundInfoSubtle:gt.extend("--ft-background-info-subtle","Used as background of subtle information components.",bt.colorCyan10),backgroundWarningPrimary:gt.extend("--ft-background-warning-primary","Used as background of warning components.",bt.colorOrange300),backgroundWarningSubtle:gt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",bt.colorOrange10),backgroundSuccessPrimary:gt.extend("--ft-background-success-primary","Used as background of success components.",bt.colorGreen200),backgroundSuccessSubtle:gt.extend("--ft-background-success-subtle","Used as background of subtle success components.",bt.colorGreen10),backgroundGlobalSurface:gt.extend("--ft-background-global-surface","Used as app background.",bt.colorWhite),backgroundGlobalOnSurface:gt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",bt.colorGray10),backgroundGlobalOnSurfaceDark:gt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",bt.colorGray30),contentActionPrimary:gt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",bt.colorBrand0),contentWarningPrimary:gt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",bt.colorOrange300),contentWarningIconOnly:gt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",bt.colorOrange0),contentErrorPrimary:gt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",bt.colorRed0),contentErrorIconOnly:gt.extend("--ft-content-error-icon-only","Used on error status icons alone",bt.colorRed0),contentInfoPrimary:gt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",bt.colorCyan200),contentInfoIconOnly:gt.extend("--ft-content-info-icon-only","Used on info status icons alone",bt.colorCyan0),contentSuccessIconOnly:gt.extend("--ft-content-success-icon-only","Used on success status icons alone",bt.colorGreen0),contentSuccessPrimary:gt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",bt.colorGreen200),contentGlobalPrimary:gt.extend("--ft-content-global-primary","Used for main content on the page.",bt.colorGray500),contentGlobalSecondary:gt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",bt.colorGray200),contentGlobalSubtle:gt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",bt.colorGray0),contentGlobalOnColor:gt.extend("--ft-content-global-on-color","Used for content on a dominant color.",bt.colorWhite),borderActionPrimary:gt.extend("--ft-border-action-primary","Used as border for primary action components.",bt.colorBrand0),borderActionFocusRing:gt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",bt.colorCyan0),borderWarningPrimary:gt.extend("--ft-border-warning-primary","Used as border for warning components.",bt.colorOrange30),borderSuccessPrimary:gt.extend("--ft-border-success-primary","Used as border for success components.",bt.colorGreen30),borderErrorPrimary:gt.extend("--ft-border-error-primary","Used as border for error components.",bt.colorRed30),borderInfoPrimary:gt.extend("--ft-border-info-primary","Used as border for information components.",bt.colorCyan30),borderGlobalSubtle:gt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",bt.colorGray30),borderGlobalPrimary:gt.extend("--ft-border-global-primary","Used as border for element like input.",bt.colorGray50),borderInputPrimary:gt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",bt.colorGray80)};gt.create("--ft-button-large-height","","SIZE","40px"),gt.extend("--ft-button-large-horizontal-padding","",bt.spacing4),gt.extend("--ft-button-large-gap","",bt.spacing2),gt.extend("--ft-button-large-border-radius","",bt.borderRadiusS),gt.extend("--ft-button-large-icon-size","",bt.iconSize3),gt.create("--ft-button-large-border-width","","SIZE","1px"),gt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),gt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),gt.create("--ft-button-large-icon-only-width","","SIZE","40px"),gt.create("--ft-button-small-height","","SIZE","30px"),gt.extend("--ft-button-small-horizontal-padding","",bt.spacing3),gt.extend("--ft-button-small-gap","",bt.spacing2),gt.extend("--ft-button-small-border-radius","",bt.borderRadiusS),gt.extend("--ft-button-small-icon-size","",bt.iconSize2),gt.create("--ft-button-small-border-width","","SIZE","1px"),gt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),gt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),gt.create("--ft-button-small-icon-only-width","","SIZE","30px"),gt.extend("--ft-button-primary-background-color","",mt.backgroundActionPrimary),gt.extend("--ft-button-primary-color","",mt.contentGlobalOnColor),gt.extend("--ft-button-primary-icon-color","",mt.contentGlobalOnColor),gt.extend("--ft-button-primary-state-layer-color","",mt.contentGlobalOnColor),gt.extend("--ft-button-primary-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-button-primary-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-button-primary-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-button-primary-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-button-focus-focus-ring-color","",mt.borderActionFocusRing),gt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),gt.extend("--ft-button-tertiary-color","",mt.contentActionPrimary),gt.extend("--ft-button-tertiary-icon-color","",mt.contentActionPrimary),gt.extend("--ft-button-tertiary-state-layer-color","",mt.contentActionPrimary),gt.extend("--ft-button-tertiary-state-layer-opacity-hover","",bt.opacity8),gt.extend("--ft-button-tertiary-state-layer-opacity-focus","",bt.opacity8),gt.extend("--ft-button-tertiary-state-layer-opacity-active","",bt.opacity16),gt.extend("--ft-button-tertiary-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-button-secondary-background-color","",bt.colorWhite),gt.extend("--ft-button-secondary-color","",mt.contentActionPrimary),gt.extend("--ft-button-secondary-icon-color","",mt.contentActionPrimary),gt.extend("--ft-button-secondary-state-layer-color","",mt.contentActionPrimary),gt.extend("--ft-button-secondary-state-layer-opacity-hover","",bt.opacity8),gt.extend("--ft-button-secondary-state-layer-opacity-focus","",bt.opacity8),gt.extend("--ft-button-secondary-state-layer-opacity-active","",bt.opacity16),gt.extend("--ft-button-secondary-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-button-secondary-border-color","",mt.borderActionPrimary),gt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),gt.extend("--ft-button-neutral-icon-color","",mt.contentGlobalSecondary),gt.extend("--ft-button-neutral-color","",mt.contentGlobalSecondary),gt.extend("--ft-button-neutral-state-layer-color","",mt.contentGlobalSecondary),gt.extend("--ft-button-neutral-state-layer-opacity-hover","",bt.opacity8),gt.extend("--ft-button-neutral-state-layer-opacity-focus","",bt.opacity8),gt.extend("--ft-button-neutral-state-layer-opacity-active","",bt.opacity16),gt.extend("--ft-button-neutral-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-tabs-top-left-border-radius","",bt.borderRadiusS),gt.extend("--ft-tabs-top-right-border-radius","",bt.borderRadiusS),gt.extend("--ft-tabs-label-horizontal-padding","",bt.spacing4),gt.extend("--ft-tabs-label-vertical-padding","",bt.spacing3),gt.extend("--ft-tabs-label-gap","",bt.spacing1),gt.extend("--ft-switch-group-horizontal-padding","",bt.spacing1),gt.extend("--ft-switch-group-vertical-padding","",bt.spacing1),gt.extend("--ft-switch-group-gap","",bt.spacing1),gt.extend("--ft-switch-group-background-color","",mt.backgroundGlobalSurface),gt.extend("--ft-switch-group-border-color","",mt.borderGlobalSubtle),gt.create("--ft-switch-group-border-radius","","SIZE","6px"),gt.extend("--ft-switch-label-horizontal-padding","",bt.spacing2),gt.extend("--ft-switch-label-vertical-padding","",bt.spacing1),gt.extend("--ft-switch-icon-horizontal-padding","",bt.spacing1),gt.extend("--ft-switch-icon-vertical-padding","",bt.spacing1),gt.create("--ft-switch-focus-outline-width","","SIZE","2px"),gt.extend("--ft-switch-focus-focus-ring-color","",mt.borderActionFocusRing),gt.extend("--ft-switch-option-border-radius","",bt.borderRadiusS),gt.extend("--ft-switch-off-state-layer-opacity-hover","",bt.opacity8),gt.extend("--ft-switch-off-state-layer-opacity-focus","",bt.opacity8),gt.extend("--ft-switch-off-state-layer-opacity-active","",bt.opacity16),gt.extend("--ft-switch-off-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-switch-off-color","",mt.contentGlobalSubtle),gt.extend("--ft-switch-off-state-layer-color","",mt.contentGlobalSubtle),gt.extend("--ft-chart-1-light","for area color charts",bt.colorBrand40),gt.extend("--ft-chart-1-base","for line charts",bt.colorBrand0),gt.extend("--ft-chart-2-light","for area color charts",bt.colorYellow60),gt.extend("--ft-chart-2-base","for line charts",bt.colorYellow100),gt.extend("--ft-chart-3-light","",bt.colorUltramarine40),gt.extend("--ft-chart-3-base","",bt.colorUltramarine70),gt.extend("--ft-chart-4-light","",bt.colorCyan50),gt.extend("--ft-chart-4-base","",bt.colorCyan100),gt.extend("--ft-chart-5-light","",bt.colorRed40),gt.extend("--ft-chart-5-base","",bt.colorRed60),gt.extend("--ft-chart-6-light","",bt.colorGreen40),gt.extend("--ft-chart-6-base","",bt.colorGreen70),gt.extend("--ft-chart-7-light","",bt.colorOrange70),gt.extend("--ft-chart-7-base","",bt.colorOrange100),gt.extend("--ft-chart-8-light","",bt.colorAvocado70),gt.extend("--ft-chart-8-base","",bt.colorAvocado200),gt.extend("--ft-chart-9-light","",bt.colorBrown50),gt.extend("--ft-chart-9-base","",bt.colorBrown200),gt.extend("--ft-chart-10-light","",bt.colorGray50),gt.extend("--ft-chart-10-base","",bt.colorGray80),gt.extend("--ft-chart-monochrome-10","",bt.colorBrand10),gt.extend("--ft-chart-monochrome-20","",bt.colorBrand20),gt.extend("--ft-chart-monochrome-30","",bt.colorBrand40),gt.extend("--ft-chart-monochrome-40","",bt.colorBrand60),gt.extend("--ft-chart-monochrome-50","",bt.colorBrand0),gt.extend("--ft-chart-monochrome-60","",bt.colorBrand200),gt.extend("--ft-chip-large-horizontal-padding","",bt.spacing4),gt.extend("--ft-chip-large-vertical-padding","",bt.spacing2),gt.extend("--ft-chip-large-gap","",bt.spacing1),gt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),gt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),gt.extend("--ft-chip-large-border-radius","",bt.borderRadiusPill),gt.create("--ft-chip-large-border-width","","SIZE","1px"),gt.extend("--ft-chip-large-icon-size","",bt.iconSize3),gt.extend("--ft-chip-medium-horizontal-padding","",bt.spacing3),gt.extend("--ft-chip-medium-vertical-padding","",bt.spacing1),gt.extend("--ft-chip-medium-gap","",bt.spacing1),gt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),gt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),gt.extend("--ft-chip-medium-border-radius","",bt.borderRadiusPill),gt.create("--ft-chip-medium-border-width","","SIZE","1px"),gt.extend("--ft-chip-medium-icon-size","",bt.iconSize2),gt.extend("--ft-chip-small-horizontal-padding","",bt.spacing2),gt.extend("--ft-chip-small-vertical-padding","",bt.spacing05),gt.extend("--ft-chip-small-gap","",bt.spacing1),gt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),gt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),gt.extend("--ft-chip-small-border-radius","",bt.borderRadiusPill),gt.create("--ft-chip-small-border-width","","SIZE","1px"),gt.extend("--ft-chip-small-icon-size","",bt.iconSize1),gt.extend("--ft-chip-neutral-background-color","",mt.backgroundGlobalOnSurface),gt.extend("--ft-chip-neutral-color","",mt.contentGlobalPrimary),gt.extend("--ft-chip-neutral-border-color","",mt.borderGlobalSubtle),gt.extend("--ft-chip-info-background-color","",mt.backgroundInfoSubtle),gt.extend("--ft-chip-info-color","",mt.contentInfoPrimary),gt.extend("--ft-chip-info-border-color","",mt.borderInfoPrimary),gt.extend("--ft-chip-success-background-color","",mt.backgroundSuccessSubtle),gt.extend("--ft-chip-success-color","",mt.contentSuccessPrimary),gt.extend("--ft-chip-success-border-color","",mt.borderSuccessPrimary),gt.extend("--ft-chip-warning-background-color","",mt.backgroundWarningSubtle),gt.extend("--ft-chip-warning-color","",mt.contentWarningPrimary),gt.extend("--ft-chip-warning-border-color","",mt.borderWarningPrimary),gt.extend("--ft-chip-error-background-color","",mt.backgroundErrorSubtle),gt.extend("--ft-chip-error-color","",mt.contentErrorPrimary),gt.extend("--ft-chip-error-border-color","",mt.borderErrorPrimary),gt.create("--ft-notice-border-width","","SIZE","1px"),gt.extend("--ft-notice-horizontal-padding","",bt.spacing2),gt.extend("--ft-notice-vertical-padding","",bt.spacing1),gt.extend("--ft-notice-border-radius","",bt.borderRadiusS),gt.extend("--ft-notice-gap","",bt.spacing2),gt.extend("--ft-notice-icon-size","",bt.iconSize3),gt.extend("--ft-notice-info-background-color","",mt.backgroundInfoSubtle),gt.extend("--ft-notice-info-border-color","",mt.borderInfoPrimary),gt.extend("--ft-notice-info-color","",mt.contentInfoPrimary),gt.extend("--ft-notice-warning-background-color","",mt.backgroundWarningSubtle),gt.extend("--ft-notice-warning-border-color","",mt.borderWarningPrimary),gt.extend("--ft-notice-warning-color","",mt.contentWarningPrimary),gt.extend("--ft-checkbox-label-color","",mt.contentGlobalPrimary),gt.extend("--ft-checkbox-checked-background-color","",mt.contentActionPrimary),gt.extend("--ft-checkbox-checked-state-layer-color","",mt.contentActionPrimary),gt.extend("--ft-checkbox-checked-color","",mt.contentGlobalOnColor),gt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-checkbox-checked-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-checkbox-checked-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-checkbox-unchecked-border-color","",bt.colorGray80),gt.extend("--ft-checkbox-unchecked-state-layer-color","",bt.colorGray80),gt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-checkbox-focus-focus-ring-color","",mt.borderActionFocusRing),gt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),gt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gt.extend("--ft-checkbox-gap","",bt.spacing3),gt.extend("--ft-toggle-off-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-toggle-off-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-toggle-off-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-toggle-off-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-toggle-off-background-color","",mt.contentGlobalSubtle),gt.extend("--ft-toggle-off-icon-color","",mt.contentGlobalSubtle),gt.extend("--ft-toggle-off-state-layer-color","",mt.contentGlobalSubtle),gt.extend("--ft-toggle-on-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-toggle-on-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-toggle-on-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-toggle-on-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-toggle-on-background-color","",mt.contentActionPrimary),gt.extend("--ft-toggle-on-icon-color","",mt.contentActionPrimary),gt.extend("--ft-toggle-on-state-layer-color","",mt.contentActionPrimary),gt.extend("--ft-toggle-label-color","",mt.contentGlobalPrimary),gt.extend("--ft-toggle-focus-focus-ring-color","",mt.borderActionFocusRing),gt.extend("--ft-toggle-gap","",bt.spacing3),gt.extend("--ft-radio-label-color","",mt.contentGlobalPrimary),gt.extend("--ft-radio-selected-color","",mt.contentActionPrimary),gt.extend("--ft-radio-selected-state-layer-color","",mt.contentActionPrimary),gt.extend("--ft-radio-selected-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-radio-selected-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-radio-selected-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-radio-selected-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-radio-unselected-state-layer-color","",bt.colorGray80),gt.extend("--ft-radio-unselected-state-layer-opacity-hover","",bt.opacity16),gt.extend("--ft-radio-unselected-state-layer-opacity-focus","",bt.opacity16),gt.extend("--ft-radio-unselected-state-layer-opacity-active","",bt.opacity24),gt.extend("--ft-radio-unselected-component-opacity-disabled","",bt.opacity40),gt.extend("--ft-radio-focus-focus-ring-color","",mt.borderActionFocusRing),gt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),gt.create("--ft-radio-focus-outline-width","","SIZE","2px"),gt.extend("--ft-radio-gap","",bt.spacing3),gt.extend("--ft-notification-icon-size","",bt.iconSize4),gt.extend("--ft-notification-horizontal-padding","",bt.spacing4),gt.extend("--ft-notification-vertical-padding","",bt.spacing4),gt.extend("--ft-notification-info-background-color","",mt.backgroundInfoSubtle),gt.extend("--ft-notification-info-color","",mt.contentInfoPrimary),gt.extend("--ft-notification-info-border-color","",mt.borderInfoPrimary),gt.extend("--ft-notification-success-background-color","",mt.backgroundSuccessSubtle),gt.extend("--ft-notification-success-color","",mt.contentSuccessPrimary),gt.extend("--ft-notification-success-border-color","",mt.borderSuccessPrimary),gt.extend("--ft-notification-warning-background-color","",mt.backgroundWarningSubtle),gt.extend("--ft-notification-warning-color","",mt.contentWarningPrimary),gt.extend("--ft-notification-warning-border-color","",mt.borderWarningPrimary),gt.extend("--ft-notification-error-background-color","",mt.backgroundErrorSubtle),gt.extend("--ft-notification-error-color","",mt.contentErrorPrimary),gt.extend("--ft-notification-error-border-color","",mt.borderErrorPrimary),gt.extend("--ft-notification-border-radius","",bt.borderRadiusPill),gt.create("--ft-notification-border-width","","SIZE","1px"),gt.extend("--ft-notification-gap-leading","",bt.spacing2),gt.extend("--ft-notification-gap-trailing","",bt.spacing8),gt.create("--ft-color-primary","","COLOR","#2196F3"),gt.create("--ft-color-primary-variant","","COLOR","#1976D2"),gt.create("--ft-color-secondary","","COLOR","#FFCC80"),gt.create("--ft-color-secondary-variant","","COLOR","#F57C00"),gt.create("--ft-color-surface","","COLOR","#FFFFFF"),gt.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),gt.create("--ft-color-error","","COLOR","#B00020"),gt.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),gt.create("--ft-color-opacity-high","","NUMBER","1"),gt.create("--ft-color-opacity-medium","","NUMBER","0.74"),gt.create("--ft-color-opacity-disabled","","NUMBER","0.38"),gt.create("--ft-color-on-primary","","COLOR","#FFFFFF"),gt.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),gt.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),gt.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),gt.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),gt.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),gt.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),gt.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),gt.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),gt.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),gt.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),gt.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),gt.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),gt.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),gt.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),gt.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),gt.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),gt.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),gt.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),gt.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),gt.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),gt.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),gt.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),gt.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),gt.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),gt.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),gt.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),gt.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),gt.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),gt.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),gt.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),gt.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),gt.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.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)"),gt.create("--ft-border-radius-S","","SIZE","4px"),gt.create("--ft-border-radius-M","","SIZE","8px"),gt.create("--ft-border-radius-L","","SIZE","12px"),gt.create("--ft-border-radius-XL","","SIZE","16px"),gt.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),gt.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),gt.create("--ft-transition-duration","","UNKNOWN","250ms"),gt.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out");class Ot extends ht{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return u(e,t.elementStyles),e}}var Nt,vt=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const wt=Symbol("constructorPrototype"),Ct=Symbol("constructorName"),St=Symbol("exportpartsDebouncer");class xt extends Ot{constructor(){super(),this[Nt]=new o(5),this[Ct]=this.constructor.name,this[wt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ct]&&Object.setPrototypeOf(this,this[wt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[St].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const l=t=>null!=t&&t.trim().length>0,c=t.filter(l).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const s=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(l).map((t=>t.trim())).forEach((t=>s.add(t)))}if(0===s.size)return void this.removeAttribute("exportparts");const f=[...s.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}var Rt,Ut;Nt=St,vt([r()],xt.prototype,"exportpartsPrefix",void 0),vt([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return r({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!l(t,o),...null!=o?o:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),vt([r()],xt.prototype,"customStylesheet",void 0),y`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -72,7 +72,7 @@ var ut,dt;let pt=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
72
72
|
-ms-user-select: none;
|
|
73
73
|
user-select: none;
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,y`
|
|
76
76
|
.ft-word-wrap {
|
|
77
77
|
white-space: normal;
|
|
78
78
|
word-wrap: break-word;
|
|
@@ -84,7 +84,7 @@ var ut,dt;let pt=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
84
84
|
-webkit-hyphens: auto;
|
|
85
85
|
hyphens: auto
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`,y`
|
|
88
88
|
.ft-safari-ellipsis-fix {
|
|
89
89
|
margin-right: 0;
|
|
90
90
|
|
|
@@ -95,18 +95,18 @@ var ut,dt;let pt=class extends E{constructor(){super(...arguments),this.renderOp
|
|
|
95
95
|
display: inline-block;
|
|
96
96
|
width: 0;
|
|
97
97
|
}
|
|
98
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
98
|
+
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ut=null===(Rt=window.safari)||void 0===Rt?void 0:Rt.pushNotification)||void 0===Ut||Ut.toString());
|
|
99
99
|
/**
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright 2017 Google LLC
|
|
102
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
103
|
*/
|
|
104
|
-
const Et=2,
|
|
104
|
+
const Et=2,It=t=>(...o)=>({_$litDirective$:t,values:o});class Lt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}}
|
|
105
105
|
/**
|
|
106
106
|
* @license
|
|
107
107
|
* Copyright 2020 Google LLC
|
|
108
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
-
*/const{I:
|
|
109
|
+
*/const{I:Wt}=st,kt=()=>document.createComment(""),Kt=(t,o,e)=>{var r;const i=t._$AA.parentNode,a=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(kt(),a),r=i.insertBefore(kt(),a);e=new Wt(o,r,t,t.options)}else{const o=e._$AB.nextSibling,n=e._$AM,l=n!==t;if(l){let o;null===(r=e._$AQ)||void 0===r||r.call(e,t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==n._$AU&&e._$AP(o)}if(o!==a||l){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,a),t=o}}}return e},Zt=(t,o,e=t)=>(t._$AI(o,e),t),Ft={},Bt=t=>{var o;null===(o=t._$AP)||void 0===o||o.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const t=e.nextSibling;e.remove(),e=t}},At=(t,o,e)=>{const r=new Map;for(let i=o;i<=e;i++)r.set(t[i],i);return r},Mt=It(class extends Lt{constructor(t){if(super(t),t.type!==Et)throw Error("repeat() can only be used in text expressions")}dt(t,o,e){let r;void 0===e?e=o:void 0!==o&&(r=o);const i=[],a=[];let n=0;for(const o of t)i[n]=r?r(o,n):n,a[n]=e(o,n),n++;return{values:a,keys:i}}render(t,o,e){return this.dt(t,o,e).values}update(t,[o,e,r]){var i;const a=(t=>t._$AH)(t),{values:n,keys:l}=this.dt(o,e,r);if(!Array.isArray(a))return this.ht=l,n;const c=null!==(i=this.ht)&&void 0!==i?i:this.ht=[],s=[];let f,p,d=0,h=a.length-1,y=0,u=n.length-1;for(;d<=h&&y<=u;)if(null===a[d])d++;else if(null===a[h])h--;else if(c[d]===l[y])s[y]=Zt(a[d],n[y]),d++,y++;else if(c[h]===l[u])s[u]=Zt(a[h],n[u]),h--,u--;else if(c[d]===l[u])s[u]=Zt(a[d],n[u]),Kt(t,s[u+1],a[d]),d++,u--;else if(c[h]===l[y])s[y]=Zt(a[h],n[y]),Kt(t,a[d],a[h]),h--,y++;else if(void 0===f&&(f=At(l,y,u),p=At(c,d,h)),f.has(c[d]))if(f.has(c[h])){const o=p.get(l[y]),e=void 0!==o?a[o]:null;if(null===e){const o=Kt(t,a[d]);Zt(o,n[y]),s[y]=o}else s[y]=Zt(e,n[y]),Kt(t,a[d],e),a[o]=null;y++}else Bt(a[h]),h--;else Bt(a[d]),d++;for(;y<=u;){const o=Kt(t,s[u+1]);Zt(o,n[y]),s[y++]=o}for(;d<=h;){const t=a[d++];null!==t&&Bt(t)}return this.ht=l,((t,o=Ft)=>{t._$AH=o})(t,s),Y}});
|
|
110
110
|
/**
|
|
111
111
|
* @license
|
|
112
112
|
* Copyright 2017 Google LLC
|
|
@@ -117,10 +117,10 @@ const Et=2,St=t=>(...i)=>({_$litDirective$:t,values:i});class $t{constructor(t){
|
|
|
117
117
|
* Copyright 2017 Google LLC
|
|
118
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
119
|
*/
|
|
120
|
-
class
|
|
120
|
+
class $t extends Lt{constructor(t){if(super(t),this.et=V,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const o=[t];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}}$t.directiveName="unsafeHTML",$t.resultType=1;const zt=It($t),Dt={padding:gt.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:gt.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:gt.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},Gt=y`
|
|
121
121
|
.items-container {
|
|
122
122
|
position: relative;
|
|
123
|
-
padding: ${
|
|
123
|
+
padding: ${Dt.padding};
|
|
124
124
|
outline: none;
|
|
125
125
|
}
|
|
126
126
|
|
|
@@ -142,7 +142,7 @@ class Tt extends $t{constructor(t){if(super(t),this.et=q,t.type!==Et)throw Error
|
|
|
142
142
|
By adding this gap we ensure that the previous item will be fully hidden
|
|
143
143
|
and even if its size changes, it will not impact the scroll offset
|
|
144
144
|
*/
|
|
145
|
-
margin-top: ${
|
|
145
|
+
margin-top: ${Dt.itemsGap};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.resizable:not(.rendered) {
|
|
@@ -150,24 +150,24 @@ class Tt extends $t{constructor(t){if(super(t),this.et=q,t.type!==Et)throw Error
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.item-container, .resizable.rendered {
|
|
153
|
-
min-height: ${
|
|
153
|
+
min-height: ${Dt.itemContainerMinHeight}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.rendered {
|
|
157
157
|
display: flow-root;
|
|
158
158
|
}
|
|
159
|
-
`;var
|
|
159
|
+
`;var jt=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Tt extends CustomEvent{constructor(t,o){super("visible-items-change",{detail:{visibleIndexes:t,visibleItems:o}})}}class Ht extends Event{constructor(){super("scrolled-to-target")}}class Pt extends xt{constructor(){super(...arguments),this.items=[],this.renderItem=()=>_``,this.getItemKey=(t,o)=>`${o} - ${JSON.stringify(t)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.visibleItems=[],this.scrolledToTarget=!1,this.alreadyRenderedIndexes=new Set,this.scrollDebouncer=new o(5),this.scrollDoneDebouncer=new o(10),this.onVisibilityChange=t=>{let o=new Set(this.visibleItems),e=new Set;for(let r of t){let t=+r.target.attributes.getNamedItem("data-item-index").value;r.intersectionRect.height>0?(o.add(t),e.add(t)):e.has(t)||o.delete(t)}this.visibleItems=[...o].sort(((t,o)=>t-o))},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.onResize=t=>{this.triggerFindScrollableParent();let o=this.searchFirstVisibleItem([...this.itemsContainer.children]),e=this.scrollable.scrollTop-this.getOffset(o);for(const o of t){const t=+o.target.parentElement.getAttribute("data-item-index");(this.alreadyRenderedIndexes.has(t)||o.target.classList.contains("rendered"))&&(o.target.parentElement.style.height=o.target.clientHeight+"px")}null!=o&&null!=e&&this.scrolledToTarget&&(this.scrollable.scrollTop=this.getOffset(o)+Math.min(e,o.clientHeight))},this.resizeObserver=new ResizeObserver(this.onResize),this.onMutation=()=>{[...this.itemsContainer.children].forEach((t=>{this.resizeObserver.observe(t.children.item(0)),this.intersectionObserver.observe(t)}))},this.mutationObserver=new MutationObserver(this.onMutation),this.resetVisibleItemsDebouncer=new o(10)}get scrollable(){var t;return null!==(t=this.internalScroll?this.internalScrollable:this.firstScrollableParent)&&void 0!==t?t:document.body}render(){return _`
|
|
160
160
|
<div class="items-container ${this.internalScroll?"scrollable":""}"
|
|
161
161
|
tabindex="-1"
|
|
162
162
|
@find-scrollable-parent=${this.findScrollableParent}>
|
|
163
|
-
${
|
|
163
|
+
${Mt(this.items,((t,o)=>this.getItemKey(t,o)),((t,o)=>this.renderItemContainer(t,o)))}
|
|
164
164
|
</div>
|
|
165
|
-
`}renderItemContainer(t,
|
|
166
|
-
<div id="item-${
|
|
165
|
+
`}renderItemContainer(t,o){const e=this.scrolledToTarget&&this.visibleItems.includes(o),r=this.alreadyRenderedIndexes.has(o)||this.scrolledToTarget&&o>=this.visibleItems[0]-this.renderBeforeFirst&&o<=(null!=(i=this.visibleItems)?i:[])[(null!=i?i:[]).length-1]+this.renderAfterLast;var i;r&&this.alreadyRenderedIndexes.add(o);return _`
|
|
166
|
+
<div id="item-${o}"
|
|
167
167
|
class="item-container ${e?"visible":""}"
|
|
168
|
-
data-item-index="${
|
|
169
|
-
<div class="resizable ${e?"visible":""} ${
|
|
170
|
-
${
|
|
168
|
+
data-item-index="${o}">
|
|
169
|
+
<div class="resizable ${e?"visible":""} ${r?"rendered":""}">
|
|
170
|
+
${r?(()=>{const e=this.renderItem(t,o);return"string"==typeof e?_`${zt(e)}`:e})():null}
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
|
-
`}resetScroll(){this.triggerFindScrollableParent(),this.intersectionObserver.disconnect(),this.resizeObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.scrollDebouncer.run((()=>{var t;let
|
|
173
|
+
`}resetScroll(){this.triggerFindScrollableParent(),this.intersectionObserver.disconnect(),this.resizeObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.scrollDebouncer.run((()=>{var t;let o=null!==(t=this.scrollToIndex)&&void 0!==t?t:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;o>=this.items.length&&(o=-1);let e=this.getItem(o);this.scrollToTarget(e),this.scrollDoneDebouncer.run((()=>{this.onMutation(),this.scrolledToTarget=!0}))}))}getItem(t){var o;return null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`#item-${t}`)}scrollToTarget(t){var o;if(t){let e=+(null!==(o=t.getAttribute("data-item-index"))&&void 0!==o?o:"0");this.scrollable&&0===e?this.scrollable.scrollTop=0:this.scrollable.scrollTop=this.getOffset(t)}}getOffset(t){var o;let e=0,r=t;for(;r&&r.offsetParent!==this.scrollable.offsetParent;)e+=r.offsetTop,r=r.offsetParent;return e+(null!==(o=null==r?void 0:r.offsetTop)&&void 0!==o?o:0)-this.scrollable.offsetTop}getBottomOffset(t){var o;return this.getOffset(t)+(null!==(o=null==t?void 0:t.clientHeight)&&void 0!==o?o:0)}appendItems(...t){this.items=[...this.items,...t]}prependItems(...t){this.items=[...t,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout((()=>{this.triggerFindScrollableParent(),this.initIntersectionObserver(),this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0})}),0)}initIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]})}triggerFindScrollableParent(){var t;null===(t=this.itemsContainer)||void 0===t||t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0}))}findScrollableParent(t){let o,e;t.stopPropagation();for(let r of t.composedPath()){const t=r,i=this.elementCanScroll(t);if(t.clientHeight&&t.clientHeight<t.scrollHeight&&i){o=t;break}i&&(e=t)}let r=o||e;r!==this.firstScrollableParent&&(this.firstScrollableParent=r,this.initIntersectionObserver(),this.resetScroll())}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch(t){return!1}}searchFirstVisibleItem(t,o,e){if(o=null!=o?o:0,(e=null!=e?e:t.length-1)-o<=0)return t[o];const r=Math.floor((e-o)/2)+o;return this.getOffset(t[r])>this.scrollable.scrollTop?this.searchFirstVisibleItem(t,o,r-1):this.getBottomOffset(t[r])<this.scrollable.scrollTop?this.searchFirstVisibleItem(t,r+1,e):t[r]}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver.disconnect(),this.resizeObserver.disconnect(),this.mutationObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),this.resetScroll()}update(t){super.update(t),t.has("items")&&(this.alreadyRenderedIndexes=new Set),!t.has("scrollToItem")&&!t.has("scrollToIndex")||null==this.scrollToItem&&null==this.scrollToIndex||this.resetScroll()}updated(t){super.updated(t),(t.has("visibleItems")||t.has("items"))&&this.onVisibleItemsChange(),t.has("scrolledToTarget")&&this.scrolledToTarget&&(null!=this.scrollToItem||null!=this.scrollToIndex)&&this.dispatchEvent(new Ht)}onVisibleItemsChange(){const t=this.visibleItems.every(((t,o)=>null==this.visibleItems[o+1]||t+1===this.visibleItems[o+1]));t||l(this.visibleItems,this.lastNotOkVisibleItems)?(this.resetVisibleItemsDebouncer.cancel(),this.dispatchEvent(new Tt(this.visibleItems,this.visibleItems.map((t=>this.items[t]))))):this.resetVisibleItemsDebouncer.run((()=>{this.lastNotOkVisibleItems=[...this.visibleItems],this.visibleItems=[],this.initIntersectionObserver(),this.onMutation()}))}}var _t;Pt.styles=Gt,jt([r({type:Array})],Pt.prototype,"items",void 0),jt([r({attribute:!1})],Pt.prototype,"renderItem",void 0),jt([r({attribute:!1})],Pt.prototype,"getItemKey",void 0),jt([r({type:Object})],Pt.prototype,"scrollToItem",void 0),jt([r({type:Number})],Pt.prototype,"scrollToIndex",void 0),jt([r({type:Boolean})],Pt.prototype,"internalScroll",void 0),jt([r({type:Number})],Pt.prototype,"renderBeforeFirst",void 0),jt([r({type:Number})],Pt.prototype,"renderAfterLast",void 0),jt([i({hasChanged:(t,o)=>null!=t&&null==o||t.length!==o.length||t[0]!==o[0]})],Pt.prototype,"visibleItems",void 0),jt([a(".scrollable")],Pt.prototype,"internalScrollable",void 0),jt([a(".items-container")],Pt.prototype,"itemsContainer",void 0),jt([i()],Pt.prototype,"scrolledToTarget",void 0),(_t="ft-infinite-scroll",t=>{window.customElements.get(_t)||window.customElements.define(_t,t)})(Pt),t.FtInfiniteScroll=Pt,t.FtInfiniteScrollCssVariables=Dt,t.ScrolledToTargetEvent=Ht,t.VisibleItemsChangeEvent=Tt,t.styles=Gt}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-infinite-scroll",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.60",
|
|
4
4
|
"description": "An infinite scroller.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.0.60",
|
|
23
23
|
"lit": "2.7.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "8eb7c2ef052f5d3f61ed0bf150fcaee093805450"
|
|
26
26
|
}
|