@fluid-topics/ft-trend 1.1.0 → 1.1.2
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.
- package/build/ft-trend.min.js +87 -83
- package/package.json +4 -4
package/build/ft-trend.min.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=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 s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.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 l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const 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)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.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){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class 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(
|
|
15
|
+
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,s=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 s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.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 l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const 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)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.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){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class 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(ko){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}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -34,7 +34,7 @@ const C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N},v=(t=C,o,
|
|
|
34
34
|
* Copyright 2017 Google LLC
|
|
35
35
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
36
36
|
*/
|
|
37
|
-
const E=globalThis,I=E.trustedTypes,W=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,k="?"+$,K=`<${k}>`,Z=document,
|
|
37
|
+
const E=globalThis,I=E.trustedTypes,W=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",$=`lit$${(Math.random()+"").slice(9)}$`,k="?"+$,K=`<${k}>`,Z=document,F=()=>Z.createComment(""),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,D="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,P=/>/g,H=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,T=/"/g,G=/^(?:script|style|textarea|title)$/i,j=(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);function X(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==W?W.createHTML(o):o}let Q=class t{constructor({strings:o,_$litType$:e},r){let i;this.parts=[];let a=0,n=0;const s=o.length-1,c=this.parts,[l,p]=((t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=M;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,p=0;for(;p<e.length&&(n.lastIndex=p,c=n.exec(e),null!==c);)p=n.lastIndex,n===M?"!--"===c[1]?n=B:void 0!==c[1]?n=P:void 0!==c[2]?(G.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=H):void 0!==c[3]&&(n=H):n===H?">"===c[0]?(n=i??M,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?H:'"'===c[3]?T:_):n===T||n===_?n=H:n===B||n===P?n=M:(n=H,i=void 0);const f=n===H&&t[o+1].startsWith("/>")?" ":"";a+=n===M?e+K:l>=0?(r.push(s),e.slice(0,l)+L+e.slice(l)+$+f):e+$+(-2===l?o:f)}return[X(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]})(o,e);if(this.el=t.createElement(l,r),q.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=q.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(L)){const o=p[n++],e=i.getAttribute(t).split($),r=/([.?@])?(.*)/.exec(o);c.push({type:1,index:a,name:r[2],strings:e,ctor:"."===r[1]?rt:"?"===r[1]?it:"@"===r[1]?at:et}),i.removeAttribute(t)}else t.startsWith($)&&(c.push({type:6,index:a}),i.removeAttribute(t));if(G.test(i.tagName)){const t=i.textContent.split($),o=t.length-1;if(o>0){i.textContent=I?I.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],F()),q.nextNode(),c.push({type:2,index:++a});i.append(t[o],F())}}}else if(8===i.nodeType)if(i.data===k)c.push({type:2,index:a});else{let t=-1;for(;-1!==(t=i.data.indexOf($,t+1));)c.push({type:7,index:a}),t+=$.length-1}a++}}static createElement(t,o){const e=Z.createElement("template");return e.innerHTML=t,e}};function tt(t,o,e=t,r){if(o===Y)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=z(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=tt(t,i._$AS(t,o.values),i,r)),o}let ot=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===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),z(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):(t=>A(t)||"function"==typeof t?.[Symbol.iterator])(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&&z(this._$AH)?this._$AA.nextSibling.data=t:this.$(Z.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=Q.createElement(X(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{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){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??Z).importNode(o,!0);q.currentNode=r;let i=q.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new ot(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new nt(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=q.nextNode(),a++)}return q.currentNode=Z,r}p(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++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),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(o){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const a of o)i===e.length?e.push(r=new t(this.k(F()),this.k(F()),this,this.options)):r=e[i],r._$AI(a),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},et=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}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}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=tt(this,t,o,0),a=!z(t)||t!==this._$AH&&t!==Y,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=tt(this,r[e+n],o,n),s===Y&&(s=this._$AH[n]),a||=!z(s)||s!==this._$AH[n],s===V?t=V:t!==V&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends et{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===V?void 0:t}},it=class extends et{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==V)}},at=class extends et{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=tt(this,t,o,0)??V)===Y)return;const e=this._$AH,r=t===V&&e!==V||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==V&&(e===V||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{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=E.litHtmlPolyfillSupport;st?.(Q,ot),(E.litHtmlVersions??=[]).push("3.1.0");
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2019 Google LLC
|
|
@@ -51,7 +51,7 @@ const ct=globalThis,lt=ct.ShadowRoot&&(void 0===ct.ShadyCSS||ct.ShadyCSS.nativeS
|
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
53
|
*/
|
|
54
|
-
const Lt=globalThis,$t=Lt.trustedTypes,kt=$t?$t.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,
|
|
54
|
+
const Lt=globalThis,$t=Lt.trustedTypes,kt=$t?$t.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Zt=`lit$${(Math.random()+"").slice(9)}$`,Ft="?"+Zt,zt=`<${Ft}>`,At=document,Dt=()=>At.createComment(""),Mt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Bt=Array.isArray,Pt="[ \t\n\f\r]",Ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_t=/-->/g,Tt=/>/g,Gt=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),jt=/'/g,Yt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,Jt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),qt=Symbol.for("lit-noChange"),Xt=Symbol.for("lit-nothing"),Qt=new WeakMap,to=At.createTreeWalker(At,129);function oo(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==kt?kt.createHTML(o):o}const eo=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=Ht;for(let o=0;o<e;o++){const e=t[o];let s,c,l=-1,p=0;for(;p<e.length&&(n.lastIndex=p,c=n.exec(e),null!==c);)p=n.lastIndex,n===Ht?"!--"===c[1]?n=_t:void 0!==c[1]?n=Tt:void 0!==c[2]?(Vt.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=Gt):void 0!==c[3]&&(n=Gt):n===Gt?">"===c[0]?(n=i??Ht,l=-1):void 0===c[1]?l=-2:(l=n.lastIndex-c[2].length,s=c[1],n=void 0===c[3]?Gt:'"'===c[3]?Yt:jt):n===Yt||n===jt?n=Gt:n===_t||n===Tt?n=Ht:(n=Gt,i=void 0);const f=n===Gt&&t[o+1].startsWith("/>")?" ":"";a+=n===Ht?e+zt:l>=0?(r.push(s),e.slice(0,l)+Kt+e.slice(l)+Zt+f):e+Zt+(-2===l?o:f)}return[oo(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),r]};class ro{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,s=this.parts,[c,l]=eo(t,o);if(this.el=ro.createElement(c,e),to.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=to.nextNode())&&s.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(Kt)){const o=l[a++],e=r.getAttribute(t).split(Zt),n=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:n[2],strings:e,ctor:"."===n[1]?so:"?"===n[1]?co:"@"===n[1]?lo:no}),r.removeAttribute(t)}else t.startsWith(Zt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split(Zt),o=t.length-1;if(o>0){r.textContent=$t?$t.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],Dt()),to.nextNode(),s.push({type:2,index:++i});r.append(t[o],Dt())}}}else if(8===r.nodeType)if(r.data===Ft)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(Zt,t+1));)s.push({type:7,index:i}),t+=Zt.length-1}i++}}static createElement(t,o){const e=At.createElement("template");return e.innerHTML=t,e}}function io(t,o,e=t,r){if(o===qt)return o;let i=void 0!==r?e._$Co?.[r]:e._$Cl;const a=Mt(o)?void 0:o._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),void 0===a?i=void 0:(i=new a(t),i._$AT(t,e,r)),void 0!==r?(e._$Co??=[])[r]=i:e._$Cl=i),void 0!==i&&(o=io(t,i._$AS(t,o.values),i,r)),o}class ao{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,r){this.type=2,this._$AH=Xt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=io(this,t,o),Mt(t)?t===Xt||null==t||""===t?(this._$AH!==Xt&&this._$AR(),this._$AH=Xt):t!==this._$AH&&t!==qt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Bt(t)||"function"==typeof t?.[Symbol.iterator])(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!==Xt&&Mt(this._$AH)?this._$AA.nextSibling.data=t:this.$(At.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,r="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=ro.createElement(oo(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===r)this._$AH.p(o);else{const t=new class{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){const{el:{content:o},parts:e}=this._$AD,r=(t?.creationScope??At).importNode(o,!0);to.currentNode=r;let i=to.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new ao(i,i.nextSibling,this,t):1===s.type?o=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(o=new po(i,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(i=to.nextNode(),a++)}return to.currentNode=At,r}p(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++}}(r,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=Qt.get(t.strings);return void 0===o&&Qt.set(t.strings,o=new ro(t)),o}T(t){Bt(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 ao(this.k(Dt()),this.k(Dt()),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){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class no{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,r,i){this.type=1,this._$AH=Xt,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=Xt}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=io(this,t,o,0),a=!Mt(t)||t!==this._$AH&&t!==qt,a&&(this._$AH=t);else{const r=t;let n,s;for(t=i[0],n=0;n<i.length-1;n++)s=io(this,r[e+n],o,n),s===qt&&(s=this._$AH[n]),a||=!Mt(s)||s!==this._$AH[n],s===Xt?t=Xt:t!==Xt&&(t+=(s??"")+i[n+1]),this._$AH[n]=s}a&&!r&&this.O(t)}O(t){t===Xt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class so extends no{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Xt?void 0:t}}class co extends no{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Xt)}}class lo extends no{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){if((t=io(this,t,o,0)??Xt)===qt)return;const e=this._$AH,r=t===Xt&&e!==Xt||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,i=t!==Xt&&(e===Xt||r);r&&this.element.removeEventListener(this.name,this,e),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class po{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){io(this,t)}}const fo=Lt.litHtmlPolyfillSupport;fo?.(ro,ao),(Lt.litHtmlVersions??=[]).push("3.1.0");
|
|
55
55
|
/**
|
|
56
56
|
* @license
|
|
57
57
|
* Copyright 2017 Google LLC
|
|
@@ -62,7 +62,11 @@ class ho extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2019 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/class Co extends ho{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((t,o)=>{xo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=So.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var vo,wo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 Ro=Symbol("constructorPrototype"),Uo=Symbol("constructorName"),Eo=Symbol("exportpartsDebouncer");class Io extends Co{constructor(){super(),this[vo]=new o(5),this[Uo]=this.constructor.name,this[Ro]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Uo]&&Object.setPrototypeOf(this,this[Ro])}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[Eo].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 s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=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(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}
|
|
65
|
+
*/class Co extends ho{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((t,o)=>{xo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=So.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var vo,wo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 Ro=Symbol("constructorPrototype"),Uo=Symbol("constructorName"),Eo=Symbol("exportpartsDebouncer");class Io extends Co{constructor(){super(),this[vo]=new o(5),this[Uo]=this.constructor.name,this[Ro]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Uo]&&Object.setPrototypeOf(this,this[Ro])}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[Eo].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 s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=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(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}vo=Eo,wo([w()],Io.prototype,"exportpartsPrefix",void 0),wo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return w({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)=>!R(t,o),...null!=o?o:{}})}([])],Io.prototype,"exportpartsPrefixes",void 0),wo([w()],Io.prototype,"customStylesheet",void 0);const Wo=uo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Lo,$o;yt`
|
|
66
|
+
.highlight-html-match {
|
|
67
|
+
background: ${Wo};
|
|
68
|
+
}
|
|
69
|
+
`,yt`
|
|
66
70
|
.ft-no-text-select {
|
|
67
71
|
-webkit-touch-callout: none;
|
|
68
72
|
-webkit-user-select: none;
|
|
@@ -94,108 +98,108 @@ class ho extends Wt{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
94
98
|
display: inline-block;
|
|
95
99
|
width: 0;
|
|
96
100
|
}
|
|
97
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
101
|
+
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($o=null===(Lo=window.safari)||void 0===Lo?void 0:Lo.pushNotification)||void 0===$o||$o.toString());
|
|
98
102
|
/**
|
|
99
103
|
* @license
|
|
100
104
|
* Copyright 2020 Google LLC
|
|
101
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
106
|
*/
|
|
103
|
-
const
|
|
107
|
+
const ko=Symbol.for(""),Ko=t=>{if(t?.r===ko)return t?._$litStatic$},Zo=t=>({_$litStatic$:t,r:ko}),Fo=new Map,zo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=Ko(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Fo.get(t))&&(n.raw=n,Fo.set(t,o=n)),e=s}return t(o,...e)})(j);var Ao;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ao||(Ao={}));const Do=uo.extend("--ft-typography-font-family","",No.titleFont),Mo=uo.extend("--ft-typography-font-family","",No.contentFont),Bo={fontFamily:Mo,fontSize:uo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:uo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:uo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:uo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:uo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Po=uo.extend("--ft-typography-title-font-family","",Do),Ho=uo.extend("--ft-typography-title-font-size","",Bo.fontSize,"20px"),_o=uo.extend("--ft-typography-title-font-weight","",Bo.fontWeight,"normal"),To=uo.extend("--ft-typography-title-letter-spacing","",Bo.letterSpacing,"0.15px"),Go=uo.extend("--ft-typography-title-line-height","",Bo.lineHeight,"1.2"),jo=uo.extend("--ft-typography-title-text-transform","",Bo.textTransform,"inherit"),Yo=uo.extend("--ft-typography-title-dense-font-family","",Do),Vo=uo.extend("--ft-typography-title-dense-font-size","",Bo.fontSize,"14px"),Jo=uo.extend("--ft-typography-title-dense-font-weight","",Bo.fontWeight,"normal"),qo=uo.extend("--ft-typography-title-dense-letter-spacing","",Bo.letterSpacing,"0.105px"),Xo=uo.extend("--ft-typography-title-dense-line-height","",Bo.lineHeight,"1.7"),Qo=uo.extend("--ft-typography-title-dense-text-transform","",Bo.textTransform,"inherit"),te=uo.extend("--ft-typography-subtitle1-font-family","",Mo),oe=uo.extend("--ft-typography-subtitle1-font-size","",Bo.fontSize,"16px"),ee=uo.extend("--ft-typography-subtitle1-font-weight","",Bo.fontWeight,"600"),re=uo.extend("--ft-typography-subtitle1-letter-spacing","",Bo.letterSpacing,"0.144px"),ie=uo.extend("--ft-typography-subtitle1-line-height","",Bo.lineHeight,"1.5"),ae=uo.extend("--ft-typography-subtitle1-text-transform","",Bo.textTransform,"inherit"),ne=uo.extend("--ft-typography-subtitle2-font-family","",Mo),se=uo.extend("--ft-typography-subtitle2-font-size","",Bo.fontSize,"14px"),ce=uo.extend("--ft-typography-subtitle2-font-weight","",Bo.fontWeight,"normal"),le=uo.extend("--ft-typography-subtitle2-letter-spacing","",Bo.letterSpacing,"0.098px"),pe=uo.extend("--ft-typography-subtitle2-line-height","",Bo.lineHeight,"1.7"),fe=uo.extend("--ft-typography-subtitle2-text-transform","",Bo.textTransform,"inherit"),he=uo.extend("--ft-typography-body1-font-family","",Mo),de=uo.extend("--ft-typography-body1-font-size","",Bo.fontSize,"16px"),ye=uo.extend("--ft-typography-body1-font-weight","",Bo.fontWeight,"normal"),ge=uo.extend("--ft-typography-body1-letter-spacing","",Bo.letterSpacing,"0.496px"),ue=uo.extend("--ft-typography-body1-line-height","",Bo.lineHeight,"1.5"),be=uo.extend("--ft-typography-body1-text-transform","",Bo.textTransform,"inherit"),me=uo.extend("--ft-typography-body2-font-family","",Mo),Oe=uo.extend("--ft-typography-body2-font-size","",Bo.fontSize,"14px"),Ne=uo.extend("--ft-typography-body2-font-weight","",Bo.fontWeight,"normal"),Se=uo.extend("--ft-typography-body2-letter-spacing","",Bo.letterSpacing,"0.252px"),xe=uo.extend("--ft-typography-body2-line-height","",Bo.lineHeight,"1.4"),Ce=uo.extend("--ft-typography-body2-text-transform","",Bo.textTransform,"inherit"),ve=uo.extend("--ft-typography-caption-font-family","",Mo),we=uo.extend("--ft-typography-caption-font-size","",Bo.fontSize,"12px"),Re=uo.extend("--ft-typography-caption-font-weight","",Bo.fontWeight,"normal"),Ue=uo.extend("--ft-typography-caption-letter-spacing","",Bo.letterSpacing,"0.396px"),Ee=uo.extend("--ft-typography-caption-line-height","",Bo.lineHeight,"1.33"),Ie=uo.extend("--ft-typography-caption-text-transform","",Bo.textTransform,"inherit"),We=uo.extend("--ft-typography-breadcrumb-font-family","",Mo),Le=uo.extend("--ft-typography-breadcrumb-font-size","",Bo.fontSize,"10px"),$e=uo.extend("--ft-typography-breadcrumb-font-weight","",Bo.fontWeight,"normal"),ke=uo.extend("--ft-typography-breadcrumb-letter-spacing","",Bo.letterSpacing,"0.33px"),Ke=uo.extend("--ft-typography-breadcrumb-line-height","",Bo.lineHeight,"1.6"),Ze=uo.extend("--ft-typography-breadcrumb-text-transform","",Bo.textTransform,"inherit"),Fe=uo.extend("--ft-typography-overline-font-family","",Mo),ze=uo.extend("--ft-typography-overline-font-size","",Bo.fontSize,"10px"),Ae=uo.extend("--ft-typography-overline-font-weight","",Bo.fontWeight,"normal"),De=uo.extend("--ft-typography-overline-letter-spacing","",Bo.letterSpacing,"1.5px"),Me=uo.extend("--ft-typography-overline-line-height","",Bo.lineHeight,"1.6"),Be=uo.extend("--ft-typography-overline-text-transform","",Bo.textTransform,"uppercase"),Pe=uo.extend("--ft-typography-button-font-family","",Mo),He=uo.extend("--ft-typography-button-font-size","",Bo.fontSize,"14px"),_e=uo.extend("--ft-typography-button-font-weight","",Bo.fontWeight,"600"),Te=uo.extend("--ft-typography-button-letter-spacing","",Bo.letterSpacing,"1.246px"),Ge=uo.extend("--ft-typography-button-line-height","",Bo.lineHeight,"1.15"),je=uo.extend("--ft-typography-button-text-transform","",Bo.textTransform,"uppercase"),Ye=yt`
|
|
104
108
|
.ft-typography--title {
|
|
105
|
-
font-family: ${
|
|
106
|
-
font-size: ${
|
|
107
|
-
font-weight: ${
|
|
108
|
-
letter-spacing: ${
|
|
109
|
-
line-height: ${
|
|
110
|
-
text-transform: ${
|
|
109
|
+
font-family: ${Po};
|
|
110
|
+
font-size: ${Ho};
|
|
111
|
+
font-weight: ${_o};
|
|
112
|
+
letter-spacing: ${To};
|
|
113
|
+
line-height: ${Go};
|
|
114
|
+
text-transform: ${jo};
|
|
111
115
|
}
|
|
112
|
-
`,
|
|
116
|
+
`,Ve=yt`
|
|
113
117
|
.ft-typography--title-dense {
|
|
114
|
-
font-family: ${
|
|
115
|
-
font-size: ${
|
|
116
|
-
font-weight: ${
|
|
117
|
-
letter-spacing: ${
|
|
118
|
-
line-height: ${
|
|
119
|
-
text-transform: ${
|
|
118
|
+
font-family: ${Yo};
|
|
119
|
+
font-size: ${Vo};
|
|
120
|
+
font-weight: ${Jo};
|
|
121
|
+
letter-spacing: ${qo};
|
|
122
|
+
line-height: ${Xo};
|
|
123
|
+
text-transform: ${Qo};
|
|
120
124
|
}
|
|
121
|
-
`,
|
|
125
|
+
`,Je=yt`
|
|
122
126
|
.ft-typography--subtitle1 {
|
|
123
|
-
font-family: ${
|
|
124
|
-
font-size: ${
|
|
125
|
-
font-weight: ${
|
|
126
|
-
letter-spacing: ${
|
|
127
|
-
line-height: ${
|
|
128
|
-
text-transform: ${
|
|
127
|
+
font-family: ${te};
|
|
128
|
+
font-size: ${oe};
|
|
129
|
+
font-weight: ${ee};
|
|
130
|
+
letter-spacing: ${re};
|
|
131
|
+
line-height: ${ie};
|
|
132
|
+
text-transform: ${ae};
|
|
129
133
|
}
|
|
130
|
-
`,
|
|
134
|
+
`,qe=yt`
|
|
131
135
|
.ft-typography--subtitle2 {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
136
|
+
font-family: ${ne};
|
|
137
|
+
font-size: ${se};
|
|
138
|
+
font-weight: ${ce};
|
|
139
|
+
letter-spacing: ${le};
|
|
140
|
+
line-height: ${pe};
|
|
141
|
+
text-transform: ${fe};
|
|
138
142
|
}
|
|
139
143
|
|
|
140
|
-
`,
|
|
144
|
+
`,Xe=yt`
|
|
141
145
|
.ft-typography--body1 {
|
|
142
|
-
font-family: ${
|
|
143
|
-
font-size: ${
|
|
144
|
-
font-weight: ${
|
|
145
|
-
letter-spacing: ${
|
|
146
|
-
line-height: ${
|
|
147
|
-
text-transform: ${
|
|
146
|
+
font-family: ${he};
|
|
147
|
+
font-size: ${de};
|
|
148
|
+
font-weight: ${ye};
|
|
149
|
+
letter-spacing: ${ge};
|
|
150
|
+
line-height: ${ue};
|
|
151
|
+
text-transform: ${be};
|
|
148
152
|
}
|
|
149
|
-
`,
|
|
153
|
+
`,Qe=yt`
|
|
150
154
|
.ft-typography--body2 {
|
|
151
|
-
font-family: ${
|
|
152
|
-
font-size: ${
|
|
153
|
-
font-weight: ${
|
|
154
|
-
letter-spacing: ${
|
|
155
|
-
line-height: ${
|
|
156
|
-
text-transform: ${
|
|
155
|
+
font-family: ${me};
|
|
156
|
+
font-size: ${Oe};
|
|
157
|
+
font-weight: ${Ne};
|
|
158
|
+
letter-spacing: ${Se};
|
|
159
|
+
line-height: ${xe};
|
|
160
|
+
text-transform: ${Ce};
|
|
157
161
|
}
|
|
158
|
-
`,
|
|
162
|
+
`,tr=yt`
|
|
159
163
|
.ft-typography--caption {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
164
|
+
font-family: ${ve};
|
|
165
|
+
font-size: ${we};
|
|
166
|
+
font-weight: ${Re};
|
|
167
|
+
letter-spacing: ${Ue};
|
|
168
|
+
line-height: ${Ee};
|
|
169
|
+
text-transform: ${Ie};
|
|
166
170
|
}
|
|
167
|
-
`,
|
|
171
|
+
`,or=yt`
|
|
168
172
|
.ft-typography--breadcrumb {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
173
|
+
font-family: ${We};
|
|
174
|
+
font-size: ${Le};
|
|
175
|
+
font-weight: ${$e};
|
|
176
|
+
letter-spacing: ${ke};
|
|
177
|
+
line-height: ${Ke};
|
|
178
|
+
text-transform: ${Ze};
|
|
175
179
|
}
|
|
176
|
-
`,
|
|
180
|
+
`,er=yt`
|
|
177
181
|
.ft-typography--overline {
|
|
178
|
-
font-family: ${
|
|
182
|
+
font-family: ${Fe};
|
|
179
183
|
font-size: ${ze};
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
184
|
+
font-weight: ${Ae};
|
|
185
|
+
letter-spacing: ${De};
|
|
186
|
+
line-height: ${Me};
|
|
187
|
+
text-transform: ${Be};
|
|
184
188
|
}
|
|
185
|
-
`,
|
|
189
|
+
`,rr=yt`
|
|
186
190
|
.ft-typography--button {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
191
|
+
font-family: ${Pe};
|
|
192
|
+
font-size: ${He};
|
|
193
|
+
font-weight: ${_e};
|
|
194
|
+
letter-spacing: ${Te};
|
|
195
|
+
line-height: ${Ge};
|
|
196
|
+
text-transform: ${je};
|
|
193
197
|
}
|
|
194
|
-
`,
|
|
198
|
+
`,ir=yt`
|
|
195
199
|
.ft-typography {
|
|
196
200
|
vertical-align: inherit;
|
|
197
201
|
}
|
|
198
|
-
`,
|
|
202
|
+
`,ar=[Object.keys(mo).map((t=>function(t){const o=mo[t];return yt`
|
|
199
203
|
.ft-typography--${dt(t)} {
|
|
200
204
|
font-family: ${o.fontFamily};
|
|
201
205
|
font-size: ${o.fontSize};
|
|
@@ -204,23 +208,23 @@ const $o=Symbol.for(""),ko=t=>{if(t?.r===$o)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
204
208
|
line-height: ${o.lineHeight};
|
|
205
209
|
text-transform: ${o.textCase};
|
|
206
210
|
}
|
|
207
|
-
`}(t)))];var
|
|
208
|
-
<${
|
|
211
|
+
`}(t)))];var nr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 sr extends Io{constructor(){super(...arguments),this.variant=Ao.body1}render(){return this.element?zo`
|
|
212
|
+
<${Zo(this.element)}
|
|
209
213
|
class="ft-typography ft-typography--${this.variant}">
|
|
210
214
|
<slot></slot>
|
|
211
|
-
</${
|
|
215
|
+
</${Zo(this.element)}>
|
|
212
216
|
`:zo`
|
|
213
217
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
214
|
-
`}}
|
|
218
|
+
`}}sr.styles=[Ye,Ve,Je,qe,Xe,Qe,tr,or,er,rr,ir,...ar],nr([w()],sr.prototype,"element",void 0),nr([w()],sr.prototype,"variant",void 0),U("ft-typography")(sr);const cr={textColor:uo.external(No.colorOnSurfaceHigh,"Design system"),titleColor:uo.external(No.colorOnSurfaceMedium,"Design system")},lr=yt`
|
|
215
219
|
.ft-trend {
|
|
216
220
|
text-align: center;
|
|
217
|
-
color: ${
|
|
221
|
+
color: ${cr.textColor};
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
.ft-trend > div {
|
|
221
225
|
padding-top: 5px;
|
|
222
226
|
}
|
|
223
|
-
`;var
|
|
227
|
+
`;var pr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(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 fr extends Io{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,o=Math.round(100*t);return`${o>=0?"+":"-"}${Math.abs(o)}%`}render(){return 0==this.previousValue?Jt`
|
|
224
228
|
<div class="ft-trend">
|
|
225
229
|
<ft-typography variant="subtitle2">
|
|
226
230
|
${this.label}
|
|
@@ -246,4 +250,4 @@ const $o=Symbol.for(""),ko=t=>{if(t?.r===$o)return t?._$litStatic$},Ko=t=>({_$li
|
|
|
246
250
|
</ft-typography>
|
|
247
251
|
</div>
|
|
248
252
|
</div>
|
|
249
|
-
`}}
|
|
253
|
+
`}}fr.elementDefinitions={"ft-typography":sr},fr.styles=lr,pr([w({type:String})],fr.prototype,"label",void 0),pr([w({type:Number})],fr.prototype,"currentValue",void 0),pr([w({type:Number})],fr.prototype,"previousValue",void 0),U("ft-trend")(fr),t.FtTrend=fr,t.FtTrendCssVariables=cr,t.styles=lr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-trend",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Single stat value with a trend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-typography": "1.1.2",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.1.2",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
|
|
27
27
|
}
|