@fluid-topics/ft-icon 0.1.2 → 0.1.6
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-icon.d.ts +7 -6
- package/build/ft-icon.js +14 -10
- package/build/ft-icon.min.js +52 -16
- package/package.json +3 -3
package/build/ft-icon.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
1
|
+
import { ElementDefinitionsMap, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export * from "./icons";
|
|
3
3
|
export declare enum FtIconVariants {
|
|
4
4
|
fluid_topics = "fluid-topics",
|
|
@@ -7,10 +7,11 @@ export declare enum FtIconVariants {
|
|
|
7
7
|
export interface FtIconProperties {
|
|
8
8
|
variant: FtIconVariants;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
export declare const FtIconCssVariables: {
|
|
11
|
+
size: FtCssVariable;
|
|
12
|
+
fluidTopicsFontFamily: FtCssVariable;
|
|
13
|
+
fileFormatFontFamily: FtCssVariable;
|
|
14
|
+
};
|
|
14
15
|
export declare const FtIconFluidTopics: import("lit").CSSResult;
|
|
15
16
|
export declare const FtIconFileFormat: import("lit").CSSResult;
|
|
16
17
|
export declare class FtIcon extends FtLitElement implements FtIconProperties {
|
|
@@ -18,7 +19,7 @@ export declare class FtIcon extends FtLitElement implements FtIconProperties {
|
|
|
18
19
|
protected getStyles(): import("lit").CSSResult[];
|
|
19
20
|
variant: FtIconVariants;
|
|
20
21
|
private slottedContent?;
|
|
21
|
-
protected getTemplate(): import("lit-html").TemplateResult<
|
|
22
|
+
protected getTemplate(): import("lit-html").TemplateResult<1>;
|
|
22
23
|
get textContent(): string;
|
|
23
24
|
private getIcon;
|
|
24
25
|
}
|
package/build/ft-icon.js
CHANGED
|
@@ -4,11 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { css } from "lit";
|
|
8
|
-
import { html } from "lit/static-html.js";
|
|
7
|
+
import { css, html } from "lit";
|
|
9
8
|
import { property, query } from "lit/decorators.js";
|
|
10
|
-
import { customElement, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
11
|
-
import { unsafeHTML } from "lit
|
|
9
|
+
import { customElement, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
10
|
+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
12
11
|
import { FtFileFormatIcons, FtIcons } from "./icons";
|
|
13
12
|
export * from "./icons";
|
|
14
13
|
export var FtIconVariants;
|
|
@@ -16,11 +15,16 @@ export var FtIconVariants;
|
|
|
16
15
|
FtIconVariants["fluid_topics"] = "fluid-topics";
|
|
17
16
|
FtIconVariants["file_format"] = "file-format";
|
|
18
17
|
})(FtIconVariants || (FtIconVariants = {}));
|
|
18
|
+
export const FtIconCssVariables = {
|
|
19
|
+
size: FtCssVariable.create("--ft-icon-font-size", "SIZE", "24px"),
|
|
20
|
+
fluidTopicsFontFamily: FtCssVariable.extend("--ft-icon-fluid-topics-font-family", FtCssVariable.create("--ft-icon-font-family", "UNKNOWN", "ft-icons")),
|
|
21
|
+
fileFormatFontFamily: FtCssVariable.extend("--ft-icon-file-format-font-family", FtCssVariable.create("--ft-icon-font-family", "UNKNOWN", "ft-mime")),
|
|
22
|
+
};
|
|
19
23
|
// language=CSS
|
|
20
24
|
export const FtIconFluidTopics = css `
|
|
21
25
|
.ft-icon--fluid-topics {
|
|
22
|
-
font-family:
|
|
23
|
-
font-size:
|
|
26
|
+
font-family: ${FtIconCssVariables.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
27
|
+
font-size: ${FtIconCssVariables.size};
|
|
24
28
|
line-height: 1;
|
|
25
29
|
font-weight: normal;
|
|
26
30
|
text-transform: none;
|
|
@@ -36,8 +40,8 @@ export const FtIconFluidTopics = css `
|
|
|
36
40
|
// language=CSS
|
|
37
41
|
export const FtIconFileFormat = css `
|
|
38
42
|
.ft-icon--file-format {
|
|
39
|
-
font-family:
|
|
40
|
-
font-size:
|
|
43
|
+
font-family: ${FtIconCssVariables.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
44
|
+
font-size: ${FtIconCssVariables.size};
|
|
41
45
|
line-height: 1;
|
|
42
46
|
font-weight: normal;
|
|
43
47
|
text-transform: none;
|
|
@@ -63,8 +67,8 @@ let FtIcon = class FtIcon extends FtLitElement {
|
|
|
63
67
|
css `
|
|
64
68
|
:host, i.ft-icon {
|
|
65
69
|
display: inline-block;
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
70
|
+
width: ${FtIconCssVariables.size};
|
|
71
|
+
height: ${FtIconCssVariables.size};
|
|
68
72
|
text-align: center;
|
|
69
73
|
}
|
|
70
74
|
`
|
package/build/ft-icon.min.js
CHANGED
|
@@ -4,66 +4,102 @@
|
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new Map;class
|
|
7
|
+
const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=n.get(this.cssText);return e&&void 0===t&&(n.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const s=t=>new o("string"==typeof t?t:t+"",i),r=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(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.")})(i)+t[n+1]),t[0]);return new o(n,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return s(e)})(t):t
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/;var
|
|
12
|
+
*/;var c;const h=window.trustedTypes,p=h?h.emptyScript:"",u=window.reactiveElementPolyfillSupport,d={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:f};class v extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Eh(i,e);void 0!==n&&(this._$Eu.set(n,i),t.push(n))})),t}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=x){var n,o;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:d.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,n,o;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(o=null!==(n=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof a?a:null)&&void 0!==o?o:d.fromAttribute;this._$Ei=r,this[r]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
var m;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:v}),(null!==(
|
|
18
|
+
var m;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:v}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.2.2");const b=globalThis.trustedTypes,g=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,y="?"+w,O=`<${y}>`,E=document,N=(t="")=>E.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M=/-->/g,$=/>/g,U=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,k=/"/g,F=/^(?:script|style|textarea|title)$/i,A=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),T=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),_=new WeakMap,B=E.createTreeWalker(E,129,null,!1),W=(t,e)=>{const i=t.length-1,n=[];let o,s=2===e?"<svg>":"",r=S;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===S?"!--"===l[1]?r=M:void 0!==l[1]?r=$:void 0!==l[2]?(F.test(l[2])&&(o=RegExp("</"+l[2],"g")),r=U):void 0!==l[3]&&(r=U):r===U?">"===l[0]?(r=null!=o?o:S,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?U:'"'===l[3]?k:j):r===k||r===j?r=U:r===M||r===$?r=S:(r=U,o=void 0);const p=r===U&&t[e+1].startsWith("/>")?" ":"";s+=r===S?i+O:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+w+p):i+w+(-2===c?(n.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,n]};class z{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const r=t.length-1,a=this.parts,[l,c]=W(t,e);if(this.el=z.createElement(l,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=B.nextNode())&&a.length<r;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(w)){const i=c[s++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?P:"?"===e[1]?Z:"@"===e[1]?q:D})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(F.test(n.tagName)){const t=n.textContent.split(w),e=t.length-1;if(e>0){n.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],N()),B.nextNode(),a.push({type:2,index:++o});n.append(t[e],N())}}}else if(8===n.nodeType)if(n.data===y)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(w,t+1));)a.push({type:7,index:o}),t+=w.length-1}o++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,n){var o,s,r,a;if(e===T)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const c=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=K(t,l._$AS(t,e.values),l,n)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(i,!0);B.currentNode=o;let s=B.nextNode(),r=0,a=0,l=n[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new H(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new J(s,this,t)),this.v.push(e),l=n[++a]}r!==(null==l?void 0:l.index)&&(s=B.nextNode(),r++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{constructor(t,e,i,n){var o;this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),R(t)?t===L||null==t||""===t?(this._$AH!==L&&this._$AR(),this._$AH=L):t!==this._$AH&&t!==T&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==L&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(E.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=z.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new I(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=_.get(t.strings);return void 0===e&&_.set(t.strings,e=new z(t)),e}A(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new H(this.M(N()),this.M(N()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class D{constructor(t,e,i,n,o){this.type=1,this._$AH=L,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=L}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let s=!1;if(void 0===o)t=K(this,t,e,0),s=!R(t)||t!==this._$AH&&t!==T,s&&(this._$AH=t);else{const n=t;let r,a;for(t=o[0],r=0;r<o.length-1;r++)a=K(this,n[i+r],e,r),a===T&&(a=this._$AH[r]),s||(s=!R(a)||a!==this._$AH[r]),a===L?t=L:t!==L&&(t+=(null!=a?a:"")+o[r+1]),this._$AH[r]=a}s&&!n&&this.k(t)}k(t){t===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends D{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===L?void 0:t}}const V=b?b.emptyScript:"";class Z extends D{constructor(){super(...arguments),this.type=4}k(t){t&&t!==L?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class q extends D{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=K(this,t,e,0))&&void 0!==i?i:L)===T)return;const n=this._$AH,o=t===L&&n!==L||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==L&&(n===L||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
23
|
*/
|
|
24
|
-
var G,Q;null==
|
|
25
|
-
/**
|
|
26
|
-
* @license
|
|
27
|
-
* Copyright 2020 Google LLC
|
|
28
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/
|
|
30
|
-
const tt=new Map,et=(t=>(e,...i)=>{var n;const s=i.length;let o,r;const l=[],a=[];let c,h=0,u=!1;for(;h<s;){for(c=e[h];h<s&&void 0!==(r=i[h],o=null===(n=r)||void 0===n?void 0:n._$litStatic$);)c+=o+e[++h],u=!0;a.push(r),l.push(c),h++}if(h===s&&l.push(e[s]),u){const t=l.join("$$lit$$");void 0===(e=tt.get(t))&&(l.raw=l,tt.set(t,e=l)),i=a}return t(e,...i)})(_),it=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
24
|
+
var G,Q;null==X||X(z,H),(null!==(m=globalThis.litHtmlVersions)&&void 0!==m?m:globalThis.litHtmlVersions=[]).push("2.1.3");class Y extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var n,o;const s=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let r=s._$litPart$;if(void 0===r){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=r=new H(e.insertBefore(N(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return T}}Y.finalized=!0,Y._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:Y});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Y}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
|
|
31
25
|
/**
|
|
32
26
|
* @license
|
|
33
27
|
* Copyright 2017 Google LLC
|
|
34
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
29
|
*/
|
|
30
|
+
const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
|
|
36
31
|
/**
|
|
37
32
|
* @license
|
|
38
33
|
* Copyright 2021 Google LLC
|
|
39
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
35
|
*/
|
|
41
|
-
var nt;null===(nt=window.HTMLSlotElement)||void 0===nt||nt.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,n=[];!(i=t.next()).done;)n.push(i.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var s,o=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),r=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,n){return e=t(e,i),n&&Reflect.setPrototypeOf(e,n.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=n(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)s=Object.setPrototypeOf;else{var l;t:{var a={};try{a.__proto__={a:!0},l=a.a;break t}catch(t){}l=!1}s=l?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=s;if(!ShadowRoot.prototype.createElement){var h,u=window.HTMLElement,d=window.customElements.define,p=window.customElements.get,f=window.customElements,v=new WeakMap,m=new WeakMap,x=new WeakMap,w=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=i.prototype.attributeChangedCallback,s=new Set(i.observedAttributes||[]);if(g(i,s,n),n={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:s},this.l.set(t,n),this.o.set(i,n),(s=p.call(f,t))||(s=b(t),d.call(f,t,s)),this===window.customElements&&(x.set(i,n),n.s=s),s=this.h.get(t)){this.h.delete(t);for(var o=(s=e(s)).next();!o.done;o=s.next())o=o.value,m.delete(o),S(o,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){E.push(this),f.upgrade.apply(f,arguments),E.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var n=this.h.get(e);n||this.h.set(e,n=new Set),i?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=h;if(t)return h=void 0,t;var e=x.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(u,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),v.set(t,e),t},window.HTMLElement.prototype=u.prototype;var b=function(t){function e(){var e=Reflect.construct(u,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=E[E.length-1])instanceof CustomElementRegistry){var n=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(n=w.get(i))?void 0:n.getRootNode())||document)}n=i.customElements}return(i=(n=n||window.customElements).j(t))?S(e,i):m.set(e,n),e}return o.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=v.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):m.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=v.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):m.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=v.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=v.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=v.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=v.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=v.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},g=function(t,e,i){if(0!==e.size&&void 0!==i){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,s){if(t=t.toLowerCase(),e.has(t)){var o=this.getAttribute(t);n.call(this,t,s),i.call(this,t,o,s)}else n.call(this,t,s)});var s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);s.call(this,t),i.call(this,t,n,null)}else s.call(this,t)})}},y=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===u?Object.setPrototypeOf(t,window.HTMLElement):y(e)},S=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),v.set(t,e),h=t;try{new e.g}catch(t){y(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=$.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var E=[document],j=function(t,e,i){var n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){E.push(this);var t=n.apply(i||this,arguments);return void 0!==t&&w.set(t,this),E.pop(),t}};j(ShadowRoot,"createElement",document),j(ShadowRoot,"importNode",document),j(Element,"insertAdjacentHTML");var k=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){E.push(this),e.set.call(this,t),E.pop()}}))};if(k(Element),k(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var C=new WeakMap,M=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return e=M.call.apply(M,[this].concat(i(e))),C.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,n=e[t];e[t]=function(t){for(var e=[],s=0;s<arguments.length;++s)e[s]=arguments[s];if(s=C.get(this),!0!==v.get(s).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(i(e)))}}));var O=function(t){var e=r(Array,[].concat(i(t)),this.constructor);return e.h=t,e},A=O,T=Array;if(A.prototype=n(T.prototype),A.prototype.constructor=A,c)c(A,T);else for(var R in T)if("prototype"!=R)if(Object.defineProperties){var _=Object.getOwnPropertyDescriptor(T,R);_&&Object.defineProperty(A,R,_)}else A[R]=T[R];A.u=T.prototype,o.Object.defineProperty(O.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var z=function(t){var e=this,i=new Map;t.forEach((function(t,n){var s=t.getAttribute("name"),o=i.get(s)||[];e[+n]=t,o.push(t),i.set(s,o)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new O(t))}))};z.prototype.namedItem=function(t){return this[t]};var U=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=U.get.call(this,[]),i=[],n=(t=e(t)).next();!n.done;n=t.next()){n=n.value;var s=v.get(n);s&&!0!==s.formAssociated||i.push(n)}return new z(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(rt){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.warn(e,i,n,t)}}}class st extends(
|
|
36
|
+
var it;null===(it=window.HTMLSlotElement)||void 0===it||it.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,n=[];!(i=t.next()).done;)n.push(i.value);t=n}return t}var n="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,s=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),r=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,n){return e=t(e,i),n&&Reflect.setPrototypeOf(e,n.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=n(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)o=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}o=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var c=o;if(!ShadowRoot.prototype.createElement){var h,p=window.HTMLElement,u=window.customElements.define,d=window.customElements.get,f=window.customElements,x=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var n=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(w(i,o,n),n={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:n,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:o},this.l.set(t,n),this.o.set(i,n),(o=d.call(f,t))||(o=g(t),u.call(f,t,o)),this===window.customElements&&(m.set(i,n),n.s=o),o=this.h.get(t)){this.h.delete(t);for(var s=(o=e(o)).next();!s.done;s=o.next())s=s.value,v.delete(s),O(s,n,!0)}return void 0!==(n=this.i.get(t))&&(n.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){N.push(this),f.upgrade.apply(f,arguments),N.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var n=this.h.get(e);n||this.h.set(e,n=new Set),i?n.add(t):n.delete(t)},window.HTMLElement=function(){var t=h;if(t)return h=void 0,t;var e=m.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),x.set(t,e),t},window.HTMLElement.prototype=p.prototype;var g=function(t){function e(){var e=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=N[N.length-1])instanceof CustomElementRegistry){var n=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(n=b.get(i))?void 0:n.getRootNode())||document)}n=i.customElements}return(i=(n=n||window.customElements).j(t))?O(e,i):v.set(e,n),e}return s.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=x.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):v.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=x.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):v.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=x.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=x.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=x.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},w=function(t,e,i){if(0!==e.size&&void 0!==i){var n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var s=this.getAttribute(t);n.call(this,t,o),i.call(this,t,s,o)}else n.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);o.call(this,t),i.call(this,t,n,null)}else o.call(this,t)})}},y=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===p?Object.setPrototypeOf(t,window.HTMLElement):y(e)},O=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),x.set(t,e),h=t;try{new e.g}catch(t){y(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},E=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=E.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var N=[document],R=function(t,e,i){var n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){N.push(this);var t=n.apply(i||this,arguments);return void 0!==t&&b.set(t,this),N.pop(),t}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");var C=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){N.push(this),e.set.call(this,t),N.pop()}}))};if(C(Element),C(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var S=new WeakMap,M=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];return e=M.call.apply(M,[this].concat(i(e))),S.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,n=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=S.get(this),!0!==x.get(o).formAssociated)throw new DOMException("Failed to execute "+n+" on 'ElementInternals': The target element is not a form-associated custom element.");null==n||n.call.apply(n,[this].concat(i(e)))}}));var $=function(t){var e=r(Array,[].concat(i(t)),this.constructor);return e.h=t,e},U=$,j=Array;if(U.prototype=n(j.prototype),U.prototype.constructor=U,c)c(U,j);else for(var k in j)if("prototype"!=k)if(Object.defineProperties){var F=Object.getOwnPropertyDescriptor(j,k);F&&Object.defineProperty(U,k,F)}else U[k]=j[k];U.u=j.prototype,s.Object.defineProperty($.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var A=function(t){var e=this,i=new Map;t.forEach((function(t,n){var o=t.getAttribute("name"),s=i.get(o)||[];e[+n]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new $(t))}))};A.prototype.namedItem=function(t){return this[t]};var T=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=T.get.call(this,[]),i=[],n=(t=e(t)).next();!n.done;n=t.next()){n=n.value;var o=x.get(n);o&&!0!==o.formAssociated||i.push(n)}return new A(i)}})}}}.call(self);try{window.customElements.define("custom-element",null)}catch(lt){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{try{t.bind(window.customElements)(e,i,n)}catch(t){console.warn(e,i,n,t)}}}class nt{constructor(t,e,i,n,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=n,this.context=o,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return r`var(${s(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):s(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}nt.create("--ft-color-primary","COLOR","#2196F3"),nt.create("--ft-color-primary-variant","COLOR","#1976D2"),nt.create("--ft-color-secondary","COLOR","#FFCC80"),nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),nt.create("--ft-color-surface","COLOR","#FFFFFF"),nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),nt.create("--ft-color-error","COLOR","#B00020"),nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),nt.create("--ft-color-opacity-high","NUMBER","1"),nt.create("--ft-color-opacity-medium","NUMBER","0.74"),nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.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)"),nt.create("--ft-border-radius-S","SIZE","4px"),nt.create("--ft-border-radius-M","SIZE","8px"),nt.create("--ft-border-radius-L","SIZE","12px"),nt.create("--ft-border-radius-XL","SIZE","16px"),nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),nt.create("--ft-transition-duration","UNKNOWN","250ms"),nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out");class ot extends(
|
|
42
37
|
/**
|
|
43
38
|
* @license
|
|
44
39
|
* Copyright 2021 Google LLC
|
|
45
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
41
|
*/
|
|
47
|
-
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const
|
|
42
|
+
function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:n}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...n,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),A`${t.map((t=>A`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var st,rt;r`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(rt=null===(st=window.safari)||void 0===st?void 0:st.pushNotification)||void 0===rt||rt.toString());
|
|
48
43
|
/**
|
|
49
44
|
* @license
|
|
50
45
|
* Copyright 2017 Google LLC
|
|
51
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
-
|
|
47
|
+
*/
|
|
48
|
+
const at=2;
|
|
53
49
|
/**
|
|
54
50
|
* @license
|
|
55
51
|
* Copyright 2017 Google LLC
|
|
56
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
53
|
*/
|
|
58
|
-
class rt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=U,t.type!==ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===U||null==t)return this.vt=void 0,this.it=t;if(t===z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}rt.directiveName="unsafeHTML",rt.resultType=1;const lt=(t=>(...e)=>({_$litDirective$:t,values:e}))(rt);var at,ct,ht,ut;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ct=null===(at=window.safari)||void 0===at?void 0:at.pushNotification)||void 0===ct||ct.toString()),t.FtIcons=void 0,(ht=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="",ht.THIN_ARROW_RIGHT="",ht.MY_COLLECTIONS="",ht.OFFLINE_SETTINGS="",ht.MY_LIBRARY="",ht.RATE_PLAIN="",ht.RATE="",ht.FEEDBACK_PLAIN="",ht.STAR_PLAIN="",ht.STAR="",ht.THUMBS_DOWN_PLAIN="",ht.THUMBS_DOWN="",ht.THUMBS_UP_PLAIN="",ht.THUMBS_UP="",ht.PAUSE="",ht.PLAY="",ht.RELATIVES_PLAIN="",ht.RELATIVES="",ht.SHORTCUT_MENU="",ht.PRINT="",ht.DEFAULT_ROLES="",ht.ACCOUNT_SETTINGS="",ht.ONLINE="",ht.OFFLINE="",ht.UPLOAD="",ht.BOOK_PLAIN="",ht.SYNC="",ht.SHARED_PBK="",ht.COLLECTIONS="",ht.SEARCH_IN_PUBLICATION="",ht.BOOKS="",ht.LOCKER="",ht.ARROW_DOWN="",ht.ARROW_LEFT="",ht.ARROW_RIGHT="",ht.ARROW_UP="",ht.SAVE="",ht.MAILS_AND_NOTIFICATIONS="",ht.DOT="",ht.MINUS="",ht.PLUS="",ht.FILTERS="",ht.STRIPE_ARROW_RIGHT="",ht.STRIPE_ARROW_LEFT="",ht.ATTACHMENTS="",ht.ADD_BOOKMARK="",ht.BOOKMARK="",ht.EXPORT="",ht.MENU="",ht.TAG="",ht.TAG_PLAIN="",ht.COPY_TO_CLIPBOARD="",ht.COLUMNS="",ht.ARTICLE="",ht.CLOSE_PLAIN="",ht.CHECK_PLAIN="",ht.LOGOUT="",ht.SIGN_IN="",ht.THIN_ARROW="",ht.TRIANGLE_BOTTOM="",ht.TRIANGLE_LEFT="",ht.TRIANGLE_RIGHT="",ht.TRIANGLE_TOP="",ht.FACET_HAS_DESCENDANT="",ht.MINUS_PLAIN="",ht.PLUS_PLAIN="",ht.INFO="",ht.ICON_EXPAND="",ht.ICON_COLLAPSE="",ht.ADD_TO_PBK="",ht.ALERT="",ht.ADD_ALERT="",ht.BACK_TO_SEARCH="",ht.DOWNLOAD="",ht.EDIT="",ht.FEEDBACK="",ht.MODIFY_PBK="",ht.SCHEDULED="",ht.SEARCH="",ht.SHARE="󨃱",ht.TOC="",ht.WRITE_UGC="",ht.TRASH="",ht.EXTLINK="",ht.CALENDAR="",ht.BOOK="",ht.DOWNLOAD_PLAIN="",ht.CHECK="",ht.TOPICS="",ht.EYE="\f06e",ht.DISC="",ht.CIRCLE="",ht.SHARED="",ht.SORT_UNSORTED="",ht.SORT_UP="",ht.SORT_DOWN="",ht.WORKING="",ht.CLOSE="",ht.ZOOM_OUT="",ht.ZOOM_IN="",ht.ZOOM_REALSIZE="",ht.ZOOM_FULLSCREEN="",ht.ADMIN_RESTRICTED="",ht.ADMIN_THEME="",ht.WARNING="",ht.CONTEXT="",ht.SEARCH_HOME="",ht.STEPS="",ht.HOME="",ht.TRANSLATE="",ht.USER="",ht.ADMIN="",ht.ANALYTICS="",ht.ADMIN_KHUB="",ht.ADMIN_USERS="",ht.ADMIN_INTEGRATION="",ht.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(ut=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",ut.ABW="",ut.AUDIO="",ut.AVI="",ut.CHM="",ut.CODE="",ut.CSV="",ut.DITA="",ut.EPUB="",ut.EXCEL="",ut.FLAC="",ut.GIF="",ut.GZIP="",ut.HTML="",ut.IMAGE="",ut.JPEG="",ut.JSON="",ut.M4A="",ut.MOV="",ut.MP3="",ut.MP4="",ut.OGG="",ut.PDF="",ut.PNG="",ut.POWERPOINT="",ut.RAR="",ut.STP="",ut.TEXT="",ut.VIDEO="",ut.WAV="",ut.WMA="",ut.WORD="",ut.XML="",ut.YAML="",ut.ZIP="";const dt=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),pt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var ft,vt=function(t,e,i,n){for(var s,o=arguments.length,r=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(o<3?s(r):o>3?s(e,i,r):s(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};t.FtIconVariants=void 0,(ft=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",ft.file_format="file-format";const mt=o`.ft-icon--fluid-topics{font-family:var(--ft-icon-fluid-topics-font-family, var(--ft-icon-font-family, "ft-icons")),ft-icons,fticons,sans-serif;font-size:var(--ft-icon-font-size,24px);line-height:1;font-weight:400;text-transform:none;font-style:normal;font-variant:normal;speak:none;text-shadow:1px 1px 1px rgba(0,0,0,.004);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`,xt=o`.ft-icon--file-format{font-family:var(--ft-icon-file-format-font-family, var(--ft-icon-font-family, "ft-mime")),ft-mime,sans-serif;font-size:var(--ft-icon-font-size,24px);line-height:1;font-weight:400;text-transform:none;font-style:normal;font-variant:normal;speak:none;text-shadow:1px 1px 1px rgba(0,0,0,.004);text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`;var wt;t.FtIcon=class extends st{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics}getStyles(){return[mt,xt,o`:host,i.ft-icon{display:inline-block;width:var(--ft-icon-font-size,24px);height:var(--ft-icon-font-size,24px);text-align:center}`]}getTemplate(){return et`<slot @slotchange="${()=>this.requestUpdate()}" hidden></slot><i class="ft-icon ${"ft-icon--"+this.variant}">${lt(this.getIcon())}</i>`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var e,i;return this.variant===t.FtIconVariants.file_format?null!==(e=t.FtFileFormatIcons[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent:null!==(i=t.FtIcons[this.textContent.toUpperCase()])&&void 0!==i?i:this.textContent}},t.FtIcon.elementDefinitions={},vt([function(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):it(t,e)
|
|
54
|
+
class lt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=L,t.type!==at)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===L||null==t)return this.vt=void 0,this.it=t;if(t===T)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}lt.directiveName="unsafeHTML",lt.resultType=1;const ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(lt);var ht,pt;t.FtIcons=void 0,(ht=t.FtIcons||(t.FtIcons={})).THIN_ARROW_LEFT="",ht.THIN_ARROW_RIGHT="",ht.MY_COLLECTIONS="",ht.OFFLINE_SETTINGS="",ht.MY_LIBRARY="",ht.RATE_PLAIN="",ht.RATE="",ht.FEEDBACK_PLAIN="",ht.STAR_PLAIN="",ht.STAR="",ht.THUMBS_DOWN_PLAIN="",ht.THUMBS_DOWN="",ht.THUMBS_UP_PLAIN="",ht.THUMBS_UP="",ht.PAUSE="",ht.PLAY="",ht.RELATIVES_PLAIN="",ht.RELATIVES="",ht.SHORTCUT_MENU="",ht.PRINT="",ht.DEFAULT_ROLES="",ht.ACCOUNT_SETTINGS="",ht.ONLINE="",ht.OFFLINE="",ht.UPLOAD="",ht.BOOK_PLAIN="",ht.SYNC="",ht.SHARED_PBK="",ht.COLLECTIONS="",ht.SEARCH_IN_PUBLICATION="",ht.BOOKS="",ht.LOCKER="",ht.ARROW_DOWN="",ht.ARROW_LEFT="",ht.ARROW_RIGHT="",ht.ARROW_UP="",ht.SAVE="",ht.MAILS_AND_NOTIFICATIONS="",ht.DOT="",ht.MINUS="",ht.PLUS="",ht.FILTERS="",ht.STRIPE_ARROW_RIGHT="",ht.STRIPE_ARROW_LEFT="",ht.ATTACHMENTS="",ht.ADD_BOOKMARK="",ht.BOOKMARK="",ht.EXPORT="",ht.MENU="",ht.TAG="",ht.TAG_PLAIN="",ht.COPY_TO_CLIPBOARD="",ht.COLUMNS="",ht.ARTICLE="",ht.CLOSE_PLAIN="",ht.CHECK_PLAIN="",ht.LOGOUT="",ht.SIGN_IN="",ht.THIN_ARROW="",ht.TRIANGLE_BOTTOM="",ht.TRIANGLE_LEFT="",ht.TRIANGLE_RIGHT="",ht.TRIANGLE_TOP="",ht.FACET_HAS_DESCENDANT="",ht.MINUS_PLAIN="",ht.PLUS_PLAIN="",ht.INFO="",ht.ICON_EXPAND="",ht.ICON_COLLAPSE="",ht.ADD_TO_PBK="",ht.ALERT="",ht.ADD_ALERT="",ht.BACK_TO_SEARCH="",ht.DOWNLOAD="",ht.EDIT="",ht.FEEDBACK="",ht.MODIFY_PBK="",ht.SCHEDULED="",ht.SEARCH="",ht.SHARE="󨃱",ht.TOC="",ht.WRITE_UGC="",ht.TRASH="",ht.EXTLINK="",ht.CALENDAR="",ht.BOOK="",ht.DOWNLOAD_PLAIN="",ht.CHECK="",ht.TOPICS="",ht.EYE="\f06e",ht.DISC="",ht.CIRCLE="",ht.SHARED="",ht.SORT_UNSORTED="",ht.SORT_UP="",ht.SORT_DOWN="",ht.WORKING="",ht.CLOSE="",ht.ZOOM_OUT="",ht.ZOOM_IN="",ht.ZOOM_REALSIZE="",ht.ZOOM_FULLSCREEN="",ht.ADMIN_RESTRICTED="",ht.ADMIN_THEME="",ht.WARNING="",ht.CONTEXT="",ht.SEARCH_HOME="",ht.STEPS="",ht.HOME="",ht.TRANSLATE="",ht.USER="",ht.ADMIN="",ht.ANALYTICS="",ht.ADMIN_KHUB="",ht.ADMIN_USERS="",ht.ADMIN_INTEGRATION="",ht.ADMIN_PORTAL="",t.FtFileFormatIcons=void 0,(pt=t.FtFileFormatIcons||(t.FtFileFormatIcons={})).UNKNOWN="",pt.ABW="",pt.AUDIO="",pt.AVI="",pt.CHM="",pt.CODE="",pt.CSV="",pt.DITA="",pt.EPUB="",pt.EXCEL="",pt.FLAC="",pt.GIF="",pt.GZIP="",pt.HTML="",pt.IMAGE="",pt.JPEG="",pt.JSON="",pt.M4A="",pt.MOV="",pt.MP3="",pt.MP4="",pt.OGG="",pt.PDF="",pt.PNG="",pt.POWERPOINT="",pt.RAR="",pt.STP="",pt.TEXT="",pt.VIDEO="",pt.WAV="",pt.WMA="",pt.WORD="",pt.XML="",pt.YAML="",pt.ZIP="";const ut=new Map([...["abw"].map((e=>[e,t.FtFileFormatIcons.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((e=>[e,t.FtFileFormatIcons.AUDIO])),...["avi"].map((e=>[e,t.FtFileFormatIcons.AVI])),...["chm","xhs"].map((e=>[e,t.FtFileFormatIcons.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((e=>[e,t.FtFileFormatIcons.CODE])),...["csv"].map((e=>[e,t.FtFileFormatIcons.CSV])),...["dita","ditamap","ditaval"].map((e=>[e,t.FtFileFormatIcons.DITA])),...["epub"].map((e=>[e,t.FtFileFormatIcons.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((e=>[e,t.FtFileFormatIcons.EXCEL])),...["flac"].map((e=>[e,t.FtFileFormatIcons.FLAC])),...["gif"].map((e=>[e,t.FtFileFormatIcons.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((e=>[e,t.FtFileFormatIcons.GZIP])),...["html","htm","xhtml"].map((e=>[e,t.FtFileFormatIcons.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((e=>[e,t.FtFileFormatIcons.IMAGE])),...["jpeg","jpg","jpe"].map((e=>[e,t.FtFileFormatIcons.JPEG])),...["json"].map((e=>[e,t.FtFileFormatIcons.JSON])),...["m4a","m4p"].map((e=>[e,t.FtFileFormatIcons.M4A])),...["mov","qt"].map((e=>[e,t.FtFileFormatIcons.MOV])),...["mp3"].map((e=>[e,t.FtFileFormatIcons.MP3])),...["mp4","m4v"].map((e=>[e,t.FtFileFormatIcons.MP4])),...["ogg","oga"].map((e=>[e,t.FtFileFormatIcons.OGG])),...["pdf","ps"].map((e=>[e,t.FtFileFormatIcons.PDF])),...["png"].map((e=>[e,t.FtFileFormatIcons.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((e=>[e,t.FtFileFormatIcons.POWERPOINT])),...["rar"].map((e=>[e,t.FtFileFormatIcons.RAR])),...["stp"].map((e=>[e,t.FtFileFormatIcons.STP])),...["txt","rtf","md","mdown"].map((e=>[e,t.FtFileFormatIcons.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((e=>[e,t.FtFileFormatIcons.VIDEO])),...["wav"].map((e=>[e,t.FtFileFormatIcons.WAV])),...["wma"].map((e=>[e,t.FtFileFormatIcons.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((e=>[e,t.FtFileFormatIcons.WORD])),...["xml","xsl","rdf"].map((e=>[e,t.FtFileFormatIcons.XML])),...["yaml","yml","x-yaml"].map((e=>[e,t.FtFileFormatIcons.YAML])),...["zip"].map((e=>[e,t.FtFileFormatIcons.ZIP]))]),dt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var ft,xt=function(t,e,i,n){for(var o,s=arguments.length,r=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,i,r):o(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};t.FtIconVariants=void 0,(ft=t.FtIconVariants||(t.FtIconVariants={})).fluid_topics="fluid-topics",ft.file_format="file-format";const vt={size:nt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:nt.extend("--ft-icon-fluid-topics-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:nt.extend("--ft-icon-file-format-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},mt=r`
|
|
55
|
+
.ft-icon--fluid-topics {
|
|
56
|
+
font-family: ${vt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
57
|
+
font-size: ${vt.size};
|
|
58
|
+
line-height: 1;
|
|
59
|
+
font-weight: normal;
|
|
60
|
+
text-transform: none;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-variant: normal;
|
|
63
|
+
speak: none;
|
|
64
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
65
|
+
text-rendering: auto;
|
|
66
|
+
-webkit-font-smoothing: antialiased;
|
|
67
|
+
-moz-osx-font-smoothing: grayscale;
|
|
68
|
+
}
|
|
69
|
+
`,bt=r`
|
|
70
|
+
.ft-icon--file-format {
|
|
71
|
+
font-family: ${vt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
72
|
+
font-size: ${vt.size};
|
|
73
|
+
line-height: 1;
|
|
74
|
+
font-weight: normal;
|
|
75
|
+
text-transform: none;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-variant: normal;
|
|
78
|
+
speak: none;
|
|
79
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
80
|
+
text-rendering: auto;
|
|
81
|
+
-webkit-font-smoothing: antialiased;
|
|
82
|
+
-moz-osx-font-smoothing: grayscale;
|
|
83
|
+
}
|
|
84
|
+
`;var gt;t.FtIcon=class extends ot{constructor(){super(...arguments),this.variant=t.FtIconVariants.fluid_topics}getStyles(){return[mt,bt,r`
|
|
85
|
+
:host, i.ft-icon {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
width: ${vt.size};
|
|
88
|
+
height: ${vt.size};
|
|
89
|
+
text-align: center;
|
|
90
|
+
}
|
|
91
|
+
`]}getTemplate(){return A`
|
|
92
|
+
<slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
|
|
93
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">${ct(this.getIcon())}</i>
|
|
94
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var e,i;return this.variant===t.FtIconVariants.file_format?null!==(e=t.FtFileFormatIcons[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent:null!==(i=t.FtIcons[this.textContent.toUpperCase()])&&void 0!==i?i:this.textContent}},t.FtIcon.elementDefinitions={},xt([function(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):et(t,e)
|
|
59
95
|
/**
|
|
60
96
|
* @license
|
|
61
97
|
* Copyright 2017 Google LLC
|
|
62
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
|
-
*/}()],t.FtIcon.prototype,"variant",void 0),
|
|
99
|
+
*/}()],t.FtIcon.prototype,"variant",void 0),xt([
|
|
64
100
|
/**
|
|
65
101
|
* @license
|
|
66
102
|
* Copyright 2017 Google LLC
|
|
67
103
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
104
|
*/
|
|
69
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,n)=>{var
|
|
105
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,n)=>{var o;if(void 0===n){const n=null!==(o=i.originalKey)&&void 0!==o?o:i.key,s=null!=e?{kind:"method",placement:"prototype",key:n,descriptor:e(i.key)}:{...i,key:n};return null!=t&&(s.finisher=function(e){t(e,n)}),s}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,n,e(n)),null==t||t(o,n)}})({descriptor:i=>{const n={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[e]&&(this[e]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==n?n:null),this[e]}}return n}})}("slot")],t.FtIcon.prototype,"slottedContent",void 0),t.FtIcon=xt([(gt="ft-icon",t=>{window.customElements.get(gt)||window.customElements.define(gt,t)})],t.FtIcon),t.FtIconCssVariables=vt,t.FtIconFileFormat=bt,t.FtIconFluidTopics=mt,t.resolveFileFormatIcon=function(e,i){var n,o,s,r;e=(null!=e?e:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[a,l]=((null!==(n=dt.get(e))&&void 0!==n?n:e)+"/").split("/");return null!==(r=null!==(s=null!==(o=ut.get(l))&&void 0!==o?o:ut.get(i))&&void 0!==s?s:ut.get(a))&&void 0!==r?r:t.FtFileFormatIcons.UNKNOWN},Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-icon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Typography components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "^0.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "^0.1.6",
|
|
23
23
|
"lit": "^2.0.2"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "c441937eb1375dc40ff477dec50b917f2adf3b38"
|
|
26
26
|
}
|