@fluid-topics/ft-snap-scroll 0.1.17 → 0.2.1
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-snap-scroll.d.ts +2 -2
- package/build/ft-snap-scroll.inline-styles.js +773 -0
- package/build/ft-snap-scroll.js +131 -137
- package/build/ft-snap-scroll.light.js +402 -449
- package/build/ft-snap-scroll.min.js +442 -478
- package/build/index.d.ts +2 -0
- package/build/index.js +5 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +6 -6
|
@@ -1,68 +1,77 @@
|
|
|
1
1
|
!function(t){
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
|
-
* Copyright
|
|
5
|
-
*
|
|
4
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
5
|
+
* This code may only be used under the BSD style license found at
|
|
6
|
+
* http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at
|
|
8
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
9
|
+
* The complete set of contributors may be found at
|
|
10
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
11
|
+
* Code distributed by Google as part of the polymer project is also
|
|
12
|
+
* subject to an additional IP rights grant found at
|
|
13
|
+
* http://polymer.github.io/PATENTS.txt
|
|
14
|
+
*
|
|
15
|
+
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
6
16
|
*/
|
|
7
|
-
const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let p=e.call(o,t);p||(p=c(t),i.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let i=t.getRootNode();if(!h(i)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},c=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=p(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=x.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let y=[document];const v=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){y.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),y.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const b=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){y.push(this),e.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ee){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.warn(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){this.callbacks=[t],this.debounce(i)}queue(t,i){this.callbacks.push(t),this.debounce(i)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
8
18
|
/**
|
|
9
19
|
* @license
|
|
10
20
|
* Copyright 2017 Google LLC
|
|
11
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
|
|
22
|
+
*/const e=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(e){e.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(e){e.createProperty(i.key,t)}};function o(t){return(i,o)=>void 0!==o?((t,i,e)=>{i.constructor.createProperty(e,t)})(t,i,o):e(t,i)
|
|
13
23
|
/**
|
|
14
24
|
* @license
|
|
15
25
|
* Copyright 2017 Google LLC
|
|
16
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/
|
|
18
|
-
var y;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(l=globalThis.reactiveElementVersions)&&void 0!==l?l:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,z=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,T=/'/g,M=/"/g,A=/^(?:script|style|textarea|title)$/i,F=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),_=new WeakMap,B=O.createTreeWalker(O,129,null,!1),L=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",s=E;for(let e=0;e<i;e++){const i=t[e];let a,c,l=-1,p=0;for(;p<i.length&&(s.lastIndex=p,c=s.exec(i),null!==c);)p=s.lastIndex,s===E?"!--"===c[1]?s=R:void 0!==c[1]?s=z:void 0!==c[2]?(A.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=N):void 0!==c[3]&&(s=N):s===N?">"===c[0]?(s=null!=o?o:E,l=-1):void 0===c[1]?l=-2:(l=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?N:'"'===c[3]?M:T):s===M||s===T?s=N:s===R||s===z?s=E:(s=N,o=void 0);const d=s===N&&t[e+1].startsWith("/>")?" ":"";n+=s===E?i+$:l>=0?(r.push(a),i.slice(0,l)+"$lit$"+i.slice(l)+x+d):i+x+(-2===l?(r.push(void 0),e):d)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==b?b.createHTML(a):a,r]};class D{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const s=t.length-1,a=this.parts,[c,l]=L(t,e);if(this.el=D.createElement(c,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=B.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=l[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?Z:"@"===e[1]?q:W})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(A.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),B.nextNode(),a.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,r){var o,n,s,a;if(e===j)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const l=k(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==l&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===l?c=void 0:(c=new l(t),c._$AT(t,i,r)),void 0!==r?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=I(t,c._$AS(t,e.values),c,r)),e}class P{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(i,!0);B.currentNode=o;let n=B.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new H(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new G(n,this,t)),this.v.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(n=B.nextNode(),s++)}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,r){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.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=I(this,t,e),k(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==j&&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!==U&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=D.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new P(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 D(t)),e}A(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new H(this.M(S()),this.M(S()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 W{constructor(t,e,i,r,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=I(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=I(this,r[i+s],e,s),a===j&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}n&&!r&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const K=g?g.emptyScript:"";class Z extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:U)===j)return;const r=this._$AH,o=t===U&&r!==U||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==U&&(r===U||o);o&&this.element.removeEventListener(this.name,this,r),n&&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 G{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){I(this,t)}}const X=window.litHtmlPolyfillSupport;
|
|
27
|
+
*/}function s(t){return o({...t,state:!0})}
|
|
19
28
|
/**
|
|
20
29
|
* @license
|
|
21
30
|
* Copyright 2017 Google LLC
|
|
22
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/
|
|
24
|
-
var J,Y;null==X||X(D,H),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.1.3");class Q 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 r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let s=n._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=s=new H(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 j}}Q.finalized=!0,Q._$litElement$=!0,null===(J=globalThis.litElementHydrateSupport)||void 0===J||J.call(globalThis,{LitElement:Q});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Q}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.1.2");
|
|
32
|
+
*/const n=({finisher:t,descriptor:i})=>(e,o)=>{var s;if(void 0===o){const o=null!==(s=e.originalKey)&&void 0!==s?s:e.key,n=null!=i?{kind:"method",placement:"prototype",key:o,descriptor:i(e.key)}:{...e,key:o};return null!=t&&(n.finisher=function(i){t(i,o)}),n}{const s=e.constructor;void 0!==i&&Object.defineProperty(e,o,i(o)),null==t||t(s,o)}}
|
|
25
33
|
/**
|
|
26
34
|
* @license
|
|
27
35
|
* Copyright 2017 Google LLC
|
|
28
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
|
|
30
|
-
const et=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
|
|
37
|
+
*/;function r(t,i){return n({descriptor:e=>{const o={get(){var i,e;return null!==(e=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==e?e:null},enumerable:!0,configurable:!0};if(i){const i="symbol"==typeof e?Symbol():"__"+e;o.get=function(){var e,o;return void 0===this[i]&&(this[i]=null!==(o=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==o?o:null),this[i]}}return o}})}
|
|
31
38
|
/**
|
|
32
39
|
* @license
|
|
33
|
-
* Copyright
|
|
40
|
+
* Copyright 2021 Google LLC
|
|
34
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
|
|
42
|
+
*/var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)}
|
|
36
43
|
/**
|
|
37
44
|
* @license
|
|
38
|
-
* Copyright
|
|
45
|
+
* Copyright 2019 Google LLC
|
|
39
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
40
|
-
|
|
47
|
+
*/,p=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),f=new Map;class d{constructor(t,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=f.get(this.cssText);return p&&void 0===t&&(f.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new d("string"==typeof t?t:t+"",c),x=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new d(e,c)},y=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=window.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},v=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return u(i)})(t):t
|
|
41
48
|
/**
|
|
42
49
|
* @license
|
|
43
50
|
* Copyright 2017 Google LLC
|
|
44
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
-
|
|
52
|
+
*/;var b;const g=window.trustedTypes,m=g?g.emptyScript:"",w=window.reactiveElementPolyfillSupport,$={toAttribute(t,i){switch(i){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,i)=>i!==t&&(i==i||t==t),S={attribute:!0,type:String,converter:$,reflect:!1,hasChanged:O};class k extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var i;null!==(i=this.l)&&void 0!==i||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Eh(e,i);void 0!==o&&(this._$Eu.set(o,e),t.push(o))})),t}static createProperty(t,i=S){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const s=this[t];this[i]=o,this.requestUpdate(t,s,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||S}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(v(t))}else void 0!==t&&i.push(v(t));return i}static _$Eh(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$Eg)&&void 0!==i?i:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$Eg)||void 0===i||i.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Et.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return y(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$ES(t,i,e=S){var o,s;const n=this.constructor._$Eh(t,e);if(void 0!==n&&!0===e.reflect){const r=(null!==(s=null===(o=e.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:$.toAttribute)(i,e.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,i){var e,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(e=l)||void 0===e?void 0:e.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:$.fromAttribute;this._$Ei=r,this[r]=a(i,t.type),this._$Ei=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||O)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,e))):o=!1),!this.isUpdatePending&&o&&(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,i)=>this[i]=t)),this._$Et=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$EU()}catch(t){throw i=!1,this._$EU(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$Eg)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,i)=>this._$ES(i,this[i],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
46
53
|
/**
|
|
47
54
|
* @license
|
|
48
55
|
* Copyright 2017 Google LLC
|
|
49
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
|
-
|
|
57
|
+
*/
|
|
58
|
+
var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:k}),(null!==(b=globalThis.reactiveElementVersions)&&void 0!==b?b:globalThis.reactiveElementVersions=[]).push("1.2.2");const N=globalThis.trustedTypes,E=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,z=`lit$${(Math.random()+"").slice(9)}$`,R="?"+z,M=`<${R}>`,F=document,U=(t="")=>F.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L=/-->/g,_=/>/g,A=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,D=/'/g,P=/"/g,I=/^(?:script|style|textarea|title)$/i,W=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),q=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===B?"!--"===a[1]?r=L:void 0!==a[1]?r=_:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=A):void 0!==a[3]&&(r=A):r===A?">"===a[0]?(r=null!=s?s:B,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?A:'"'===a[3]?P:D):r===P||r===D?r=A:r===L||r===_?r=B:(r=A,s=void 0);const c=r===A&&t[i+1].startsWith("/>")?" ":"";n+=r===B?e+M:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+z+c):e+z+(-2===h?(o.push(void 0),i):c)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(l):l,o]};class X{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=q(t,i);if(this.el=X.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(z)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?tt:"?"===i[1]?et:"@"===i[1]?ot:Q})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=N?N.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],U()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],U())}}}else if(8===o.nodeType)if(o.data===R)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:s}),t+=z.length-1}s++}}static createElement(t,i){const e=F.createElement("template");return e.innerHTML=t,e}}function J(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const h=T(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=J(t,a._$AS(t,i.values),a,o)),i}class Y{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:F).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new G(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new st(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=J(this,t,i),T(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==H&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return j(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==K&&T(this._$AH)?this._$AA.nextSibling.data=t:this.S(F.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new Y(s,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new X(t)),i}A(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.M(U()),this.M(U()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Q{constructor(t,i,e,o,s){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=J(this,t,i,0),n=!T(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=J(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!T(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===K?void 0:t}}const it=N?N.emptyScript:"";class et extends Q{constructor(){super(...arguments),this.type=4}k(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends Q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=J(this,t,i,0))&&void 0!==e?e:K)===H)return;const o=this._$AH,s=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==K&&(o===K||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){J(this,t)}}const nt=window.litHtmlPolyfillSupport;
|
|
51
59
|
/**
|
|
52
60
|
* @license
|
|
53
|
-
* Copyright
|
|
61
|
+
* Copyright 2017 Google LLC
|
|
54
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/var at;const ct=null!=(null===(at=window.HTMLSlotElement)||void 0===at?void 0:at.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));(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,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=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),s=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,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(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 c={};try{c.__proto__={a:!0},a=c.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 l=o;if(!ShadowRoot.prototype.createElement){var p,d=window.HTMLElement,h=window.customElements.define,u=window.customElements.get,f=window.customElements,m=new WeakMap,v=new WeakMap,y=new WeakMap,g=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 r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,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,r),this.o.set(i,r),(o=u.call(f,t))||(o=b(t),h.call(f,t,o)),this===window.customElements&&(y.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,v.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),f.upgrade.apply(f,arguments),S.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 r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=p;if(t)return p=void 0,t;var e=y.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(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):v.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):v.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.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=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),p=t;try{new e.g}catch(t){w(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)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&g.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var C=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(C(Element),C(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=e[t];e[t]=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];if(o=E.get(this),!0!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var z=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},N=z,T=Array;if(N.prototype=r(T.prototype),N.prototype.constructor=N,l)l(N,T);else for(var M in T)if("prototype"!=M)if(Object.defineProperties){var A=Object.getOwnPropertyDescriptor(T,M);A&&Object.defineProperty(N,M,A)}else N[M]=T[M];N.u=T.prototype,n.Object.defineProperty(z.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 F=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new z(t))}))};F.prototype.namedItem=function(t){return this[t]};var j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=j.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new F(i)}})}}}).call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(wt){const t=window.customElements.define;window.customElements.define=(e,i,r)=>{try{t.bind(window.customElements)(e,i,r)}catch(t){console.warn(e,i,r,t)}}}class lt{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}const pt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class dt{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,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 dt(t,e,void 0,i)}static extend(t,e,i){return new dt(t,e.category,e,i)}static external(t,e){return new dt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(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()]:[]}}function ht(t,e){return n(`${t.name}: ${e}`)}const ut={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:dt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:dt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:dt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:dt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:dt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:dt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:dt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:dt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:dt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
63
|
+
*/
|
|
64
|
+
var rt,lt;null==nt||nt(X,G),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.1.3");class at extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new G(i.insertBefore(U(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return H}}at.finalized=!0,at._$litElement$=!0,null===(rt=globalThis.litElementHydrateSupport)||void 0===rt||rt.call(globalThis,{LitElement:at});const ht=globalThis.litElementPolyfillSupport;null==ht||ht({LitElement:at}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.1.2");class pt{constructor(t,i,e,o,s){this.name=t,this.category=i,this.fallbackVariable=e,this.defaultValue=o,this.context=s,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,i,e){return new pt(t,i,void 0,e)}static extend(t,i,e){return new pt(t,i.category,i,e)}static external(t,i){return new pt(t.name,t.category,t.fallbackVariable,t.defaultValue,i)}get(t){return x`var(${u(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):u(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,i;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(i=this.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}function ct(t,i){return u(`${t.name}: ${i}`)}const ft={colorPrimary:pt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:pt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:pt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:pt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:pt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:pt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:pt.create("--ft-color-error","COLOR","#B00020"),colorOutline:pt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:pt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:pt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:pt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:pt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:pt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:pt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:pt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:pt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:pt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:pt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:pt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:pt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:pt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:pt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:pt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:pt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:pt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:pt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:pt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:pt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:pt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:pt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:pt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:pt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:pt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:pt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:pt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:pt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:pt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:pt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:pt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:pt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:pt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:pt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:pt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:pt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:pt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:pt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:pt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:pt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:pt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:pt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:pt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:pt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:pt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:pt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:pt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:pt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:pt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:pt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:pt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:pt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:pt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:pt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
56
65
|
/**
|
|
57
66
|
* @license
|
|
58
67
|
* Copyright 2021 Google LLC
|
|
59
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
|
-
*/class
|
|
61
|
-
${t.map((t=>
|
|
69
|
+
*/class dt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return y(s,this.constructor.elementStyles),s}}}(at)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
|
|
70
|
+
${t.map((t=>W`
|
|
62
71
|
<style>${t}</style>
|
|
63
72
|
`))}
|
|
64
73
|
${this.getTemplate()}
|
|
65
|
-
`}
|
|
74
|
+
`}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const ut=x`
|
|
66
75
|
.ft-no-text-select {
|
|
67
76
|
-webkit-touch-callout: none;
|
|
68
77
|
-webkit-user-select: none;
|
|
@@ -71,340 +80,217 @@ const et=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e
|
|
|
71
80
|
-ms-user-select: none;
|
|
72
81
|
user-select: none;
|
|
73
82
|
}
|
|
74
|
-
`;var
|
|
83
|
+
`;var xt,yt,vt;const bt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(vt=null===(yt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===yt?void 0:yt.toString())&&void 0!==vt?vt:""),gt=1,mt=2,wt=t=>(...i)=>({_$litDirective$:t,values:i});
|
|
75
84
|
/**
|
|
76
85
|
* @license
|
|
77
86
|
* Copyright 2017 Google LLC
|
|
78
87
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
79
|
-
*/class $t{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
80
|
-
/**
|
|
81
|
-
* @license
|
|
82
|
-
* Copyright 2018 Google LLC
|
|
83
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/const Ot=wt(class extends $t{constructor(t){var e;if(super(t),t.type!==xt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return j}});
|
|
85
|
-
/*! *****************************************************************************
|
|
86
|
-
Copyright (c) Microsoft Corporation.
|
|
87
|
-
|
|
88
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
89
|
-
purpose with or without fee is hereby granted.
|
|
90
|
-
|
|
91
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
92
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
93
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
94
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
95
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
96
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
97
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
98
|
-
***************************************************************************** */var St=function(t,e){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},St(t,e)};var kt=function(){return kt=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kt.apply(this,arguments)};function Ct(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function Et(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
|
|
99
|
-
/**
|
|
100
|
-
* @license
|
|
101
|
-
* Copyright 2018 Google Inc.
|
|
102
|
-
*
|
|
103
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
104
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
105
|
-
* in the Software without restriction, including without limitation the rights
|
|
106
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
107
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
108
|
-
* furnished to do so, subject to the following conditions:
|
|
109
|
-
*
|
|
110
|
-
* The above copyright notice and this permission notice shall be included in
|
|
111
|
-
* all copies or substantial portions of the Software.
|
|
112
|
-
*
|
|
113
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
114
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
115
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
116
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
117
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
118
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
119
|
-
* THE SOFTWARE.
|
|
120
|
-
*/
|
|
121
|
-
/**
|
|
122
|
-
* @license
|
|
123
|
-
* Copyright 2018 Google LLC
|
|
124
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
125
|
-
*/
|
|
126
|
-
const Rt=()=>{},zt={get passive(){return!1}};document.addEventListener("x",Rt,zt),document.removeEventListener("x",Rt);
|
|
127
|
-
/**
|
|
128
|
-
* @license
|
|
129
|
-
* Copyright 2018 Google LLC
|
|
130
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
131
|
-
*/
|
|
132
|
-
class Nt extends Q{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
|
|
133
|
-
/**
|
|
134
|
-
* @license
|
|
135
|
-
* Copyright 2016 Google Inc.
|
|
136
|
-
*
|
|
137
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
138
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
139
|
-
* in the Software without restriction, including without limitation the rights
|
|
140
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
141
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
142
|
-
* furnished to do so, subject to the following conditions:
|
|
143
|
-
*
|
|
144
|
-
* The above copyright notice and this permission notice shall be included in
|
|
145
|
-
* all copies or substantial portions of the Software.
|
|
146
|
-
*
|
|
147
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
148
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
149
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
150
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
151
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
152
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
153
|
-
* THE SOFTWARE.
|
|
154
|
-
*/var Tt=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),Mt={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},At={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ft={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
|
|
155
|
-
/**
|
|
156
|
-
* @license
|
|
157
|
-
* Copyright 2016 Google Inc.
|
|
158
|
-
*
|
|
159
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
160
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
161
|
-
* in the Software without restriction, including without limitation the rights
|
|
162
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
163
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
164
|
-
* furnished to do so, subject to the following conditions:
|
|
165
|
-
*
|
|
166
|
-
* The above copyright notice and this permission notice shall be included in
|
|
167
|
-
* all copies or substantial portions of the Software.
|
|
168
|
-
*
|
|
169
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
170
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
171
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
172
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
173
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
174
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
175
|
-
* THE SOFTWARE.
|
|
176
|
-
*/
|
|
177
|
-
/**
|
|
178
|
-
* @license
|
|
179
|
-
* Copyright 2016 Google Inc.
|
|
180
|
-
*
|
|
181
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
182
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
183
|
-
* in the Software without restriction, including without limitation the rights
|
|
184
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
185
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
186
|
-
* furnished to do so, subject to the following conditions:
|
|
187
|
-
*
|
|
188
|
-
* The above copyright notice and this permission notice shall be included in
|
|
189
|
-
* all copies or substantial portions of the Software.
|
|
190
|
-
*
|
|
191
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
192
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
193
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
194
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
195
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
196
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
197
|
-
* THE SOFTWARE.
|
|
198
|
-
*/
|
|
199
|
-
var jt=["touchstart","pointerdown","mousedown","keydown"],Ut=["touchend","pointerup","mouseup","contextmenu"],_t=[],Bt=function(t){function e(i){var r=t.call(this,kt(kt({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}St(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Mt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return At},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ft},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=Et(jt),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerInteractionHandler(n,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=Et(Ut),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerDocumentInteractionHandler(n,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=Et(jt),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=Et(Ut),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&_t.length>0&&_t.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(_t.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){_t=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,n=e.cssClasses,s=n.FG_DEACTIVATION,a=n.FG_ACTIVATION,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",p="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),h=d.startPoint,u=d.endPoint;l=h.x+"px, "+h.y+"px",p=u.x+"px, "+u.y+"px"}this.adapter.updateCssVariable(r,l),this.adapter.updateCssVariable(o,p),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),c)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,n=e.x,s=e.y,a=n+i.left,c=s+i.top;if("touchstart"===t.type){var l=t;r=l.changedTouches[0].pageX-a,o=l.changedTouches[0].pageY-c}else{var p=t;r=p.pageX-a,o=p.pageY-c}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),Ft.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=kt({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(Tt),Lt=Bt;
|
|
88
|
+
*/class $t{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
|
|
200
89
|
/**
|
|
201
90
|
* @license
|
|
202
91
|
* Copyright 2018 Google LLC
|
|
203
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<div class="mdc-ripple-surface mdc-ripple-upgraded ${Ot(i)}"
|
|
212
|
-
style="${Dt({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}Ct([st(".mdc-ripple-surface")],It.prototype,"mdcRoot",void 0),Ct([rt({type:Boolean})],It.prototype,"primary",void 0),Ct([rt({type:Boolean})],It.prototype,"accent",void 0),Ct([rt({type:Boolean})],It.prototype,"unbounded",void 0),Ct([rt({type:Boolean})],It.prototype,"disabled",void 0),Ct([rt({type:Boolean})],It.prototype,"activated",void 0),Ct([rt({type:Boolean})],It.prototype,"selected",void 0),Ct([rt({type:Boolean})],It.prototype,"internalUseStateLayerCustomProperties",void 0),Ct([ot()],It.prototype,"hovering",void 0),Ct([ot()],It.prototype,"bgFocused",void 0),Ct([ot()],It.prototype,"fgActivation",void 0),Ct([ot()],It.prototype,"fgDeactivation",void 0),Ct([ot()],It.prototype,"fgScale",void 0),Ct([ot()],It.prototype,"fgSize",void 0),Ct([ot()],It.prototype,"translateStart",void 0),Ct([ot()],It.prototype,"translateEnd",void 0),Ct([ot()],It.prototype,"leftPos",void 0),Ct([ot()],It.prototype,"topPos",void 0);
|
|
213
|
-
/**
|
|
214
|
-
* @license
|
|
215
|
-
* Copyright 2021 Google LLC
|
|
216
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
217
|
-
*/
|
|
218
|
-
const Pt=s`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
|
|
219
|
-
/**
|
|
220
|
-
* @license
|
|
221
|
-
* Copyright 2018 Google LLC
|
|
222
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
223
|
-
*/;let Ht=class extends It{};Ht.styles=[Pt],Ht=Ct([et("mwc-ripple")],Ht);
|
|
224
|
-
/**
|
|
225
|
-
* @license
|
|
226
|
-
* Copyright 2020 Google LLC
|
|
227
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
228
|
-
*/
|
|
229
|
-
class Wt{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var Vt=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Kt={color:dt.extend("--ft-ripple-color",ut.colorContent),primaryColor:dt.extend("--ft-ripple-primary-color",dt.extend("--ft-ripple-color",ut.colorPrimary)),secondaryColor:dt.extend("--ft-ripple-secondary-color",dt.extend("--ft-ripple-color",ut.colorSecondary)),opacityContentOnSurfacePressed:dt.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(ut.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:dt.external(ut.opacityContentOnSurfaceDragged,"Design system")};let Zt=class extends ft{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return s`
|
|
230
|
-
:host {
|
|
231
|
-
display: contents;
|
|
232
|
-
|
|
233
|
-
--mdc-ripple-color: ${Kt.color};
|
|
234
|
-
--mdc-ripple-press-opacity: ${Kt.opacityContentOnSurfacePressed};
|
|
235
|
-
--mdc-ripple-hover-opacity: ${Kt.opacityContentOnSurfaceHover};
|
|
236
|
-
--mdc-ripple-focus-opacity: ${Kt.opacityContentOnSurfaceFocused};
|
|
237
|
-
--mdc-ripple-selected-opacity: ${Kt.opacityContentOnSurfaceSelected};
|
|
238
|
-
--mdc-ripple-activated-opacity: ${Kt.opacityContentOnSurfaceDragged};
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
mwc-ripple.ft-ripple--secondary {
|
|
242
|
-
--mdc-ripple-color: ${Kt.secondaryColor};
|
|
243
|
-
}
|
|
93
|
+
*/const Ot=wt(class extends $t{constructor(t){var i;if(super(t),t.type!==gt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.et)||void 0===e?void 0:e.has(t))&&this.st.add(t);return this.render(i)}const s=t.element.classList;this.st.forEach((t=>{t in i||(s.remove(t),this.st.delete(t))}));for(const t in i){const e=!!i[t];e===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return H}});var St=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const kt={color:pt.extend("--ft-ripple-color",ft.colorContent),primaryColor:pt.extend("--ft-ripple-primary-color",pt.extend("--ft-ripple-color",ft.colorPrimary)),secondaryColor:pt.extend("--ft-ripple-secondary-color",pt.extend("--ft-ripple-color",ft.colorSecondary)),opacityContentOnSurfacePressed:pt.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:pt.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:pt.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:pt.external(ft.opacityContentOnSurfaceSelected,"Design system")};class Ct extends dt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
|
|
94
|
+
<style>
|
|
95
|
+
.ft-ripple .ft-ripple--effect,
|
|
96
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
97
|
+
width: ${this.rippleSize}px;
|
|
98
|
+
height: ${this.rippleSize}px;
|
|
99
|
+
}
|
|
244
100
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
101
|
+
.ft-ripple .ft-ripple--effect {
|
|
102
|
+
left: ${this.originX}px;
|
|
103
|
+
top: ${this.originY}px;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
106
|
+
<div class="${Ot(t)}">
|
|
107
|
+
<div class="ft-ripple--background"></div>
|
|
108
|
+
<div class="ft-ripple--effect"></div>
|
|
109
|
+
</div>
|
|
110
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ct.elementDefinitions={},Ct.styles=x`
|
|
111
|
+
:host {
|
|
112
|
+
display: contents;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ft-ripple {
|
|
116
|
+
position: absolute;
|
|
117
|
+
inset: 0;
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.ft-ripple .ft-ripple--background,
|
|
126
|
+
.ft-ripple .ft-ripple--effect {
|
|
127
|
+
position: absolute;
|
|
128
|
+
opacity: 0;
|
|
129
|
+
background-color: ${kt.color};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background,
|
|
133
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
134
|
+
background-color: ${kt.secondaryColor};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
138
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
139
|
+
background-color: ${kt.primaryColor};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ft-ripple .ft-ripple--background {
|
|
143
|
+
top: 0;
|
|
144
|
+
left: 0;
|
|
145
|
+
height: 100%;
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.ft-ripple .ft-ripple--effect,
|
|
150
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
151
|
+
border-radius: 50%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ft-ripple .ft-ripple--effect {
|
|
155
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
156
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
160
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
161
|
+
left: 50%;
|
|
162
|
+
top: 50%;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
166
|
+
transform: translate(-50%, -50%);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
170
|
+
opacity: ${kt.opacityContentOnSurfaceHover};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
174
|
+
opacity: ${kt.opacityContentOnSurfaceSelected};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
178
|
+
opacity: ${kt.opacityContentOnSurfaceFocused};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
182
|
+
opacity: ${kt.opacityContentOnSurfacePressed};
|
|
183
|
+
transform: translate(-50%, -50%) scale(1);
|
|
184
|
+
}
|
|
185
|
+
`,St([o({type:Boolean})],Ct.prototype,"primary",void 0),St([o({type:Boolean})],Ct.prototype,"secondary",void 0),St([o({type:Boolean})],Ct.prototype,"unbounded",void 0),St([o({type:Boolean})],Ct.prototype,"activated",void 0),St([o({type:Boolean})],Ct.prototype,"selected",void 0),St([o({type:Boolean})],Ct.prototype,"disabled",void 0),St([s()],Ct.prototype,"hovered",void 0),St([s()],Ct.prototype,"focused",void 0),St([s()],Ct.prototype,"pressed",void 0),St([s()],Ct.prototype,"rippling",void 0),St([s()],Ct.prototype,"rippleSize",void 0),St([s()],Ct.prototype,"originX",void 0),St([s()],Ct.prototype,"originY",void 0),St([r(".ft-ripple")],Ct.prototype,"ripple",void 0),St([r(".ft-ripple--effect")],Ct.prototype,"rippleEffect",void 0),h("ft-ripple")(Ct);
|
|
257
186
|
/**
|
|
258
187
|
* @license
|
|
259
188
|
* Copyright 2020 Google LLC
|
|
260
189
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
261
190
|
*/
|
|
262
|
-
const
|
|
191
|
+
const Nt=t=>({_$litStatic$:t}),Et=new Map,zt=(t=>(i,...e)=>{var o;const s=e.length;let n,r;const l=[],a=[];let h,p=0,c=!1;for(;p<s;){for(h=i[p];p<s&&void 0!==(r=e[p],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)h+=n+i[++p],c=!0;a.push(r),l.push(h),p++}if(p===s&&l.push(i[s]),c){const t=l.join("$$lit$$");void 0===(i=Et.get(t))&&(l.raw=l,Et.set(t,i=l)),e=a}return t(i,...e)})(W);var Rt,Mt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!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"}(Rt||(Rt={}));const Ft=pt.extend("--ft-typography-font-family",ft.titleFont),Ut=pt.extend("--ft-typography-font-family",ft.contentFont),Tt={fontFamily:Ut,fontSize:pt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:pt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:pt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:pt.create("--ft-typography-line-height","SIZE","24px"),textTransform:pt.create("--ft-typography-text-transform","UNKNOWN","inherit")},jt=pt.extend("--ft-typography-title-font-family",Ft),Bt=pt.extend("--ft-typography-title-font-size",Tt.fontSize,"20px"),Lt=pt.extend("--ft-typography-title-font-weight",Tt.fontWeight,"normal"),_t=pt.extend("--ft-typography-title-letter-spacing",Tt.letterSpacing,"0.15px"),At=pt.extend("--ft-typography-title-line-height",Tt.lineHeight,"24px"),Dt=pt.extend("--ft-typography-title-text-transform",Tt.textTransform,"inherit"),Pt=pt.extend("--ft-typography-title-dense-font-family",Ft),It=pt.extend("--ft-typography-title-dense-font-size",Tt.fontSize,"14px"),Wt=pt.extend("--ft-typography-title-dense-font-weight",Tt.fontWeight,"normal"),Ht=pt.extend("--ft-typography-title-dense-letter-spacing",Tt.letterSpacing,"0.105px"),Kt=pt.extend("--ft-typography-title-dense-line-height",Tt.lineHeight,"24px"),Zt=pt.extend("--ft-typography-title-dense-text-transform",Tt.textTransform,"inherit"),Vt=pt.extend("--ft-typography-subtitle1-font-family",Ut),qt=pt.extend("--ft-typography-subtitle1-font-size",Tt.fontSize,"16px"),Xt=pt.extend("--ft-typography-subtitle1-font-weight",Tt.fontWeight,"600"),Jt=pt.extend("--ft-typography-subtitle1-letter-spacing",Tt.letterSpacing,"0.144px"),Yt=pt.extend("--ft-typography-subtitle1-line-height",Tt.lineHeight,"24px"),Gt=pt.extend("--ft-typography-subtitle1-text-transform",Tt.textTransform,"inherit"),Qt=pt.extend("--ft-typography-subtitle2-font-family",Ut),ti=pt.extend("--ft-typography-subtitle2-font-size",Tt.fontSize,"14px"),ii=pt.extend("--ft-typography-subtitle2-font-weight",Tt.fontWeight,"normal"),ei=pt.extend("--ft-typography-subtitle2-letter-spacing",Tt.letterSpacing,"0.098px"),oi=pt.extend("--ft-typography-subtitle2-line-height",Tt.lineHeight,"24px"),si=pt.extend("--ft-typography-subtitle2-text-transform",Tt.textTransform,"inherit"),ni=pt.extend("--ft-typography-body1-font-family",Ut),ri=pt.extend("--ft-typography-body1-font-size",Tt.fontSize,"16px"),li=pt.extend("--ft-typography-body1-font-weight",Tt.fontWeight,"normal"),ai=pt.extend("--ft-typography-body1-letter-spacing",Tt.letterSpacing,"0.496px"),hi=pt.extend("--ft-typography-body1-line-height",Tt.lineHeight,"24px"),pi=pt.extend("--ft-typography-body1-text-transform",Tt.textTransform,"inherit"),ci=pt.extend("--ft-typography-body2-font-family",Ut),fi=pt.extend("--ft-typography-body2-font-size",Tt.fontSize,"14px"),di=pt.extend("--ft-typography-body2-font-weight",Tt.fontWeight,"normal"),ui=pt.extend("--ft-typography-body2-letter-spacing",Tt.letterSpacing,"0.252px"),xi=pt.extend("--ft-typography-body2-line-height",Tt.lineHeight,"20px"),yi=pt.extend("--ft-typography-body2-text-transform",Tt.textTransform,"inherit"),vi=pt.extend("--ft-typography-caption-font-family",Ut),bi=pt.extend("--ft-typography-caption-font-size",Tt.fontSize,"12px"),gi=pt.extend("--ft-typography-caption-font-weight",Tt.fontWeight,"normal"),mi=pt.extend("--ft-typography-caption-letter-spacing",Tt.letterSpacing,"0.396px"),wi=pt.extend("--ft-typography-caption-line-height",Tt.lineHeight,"16px"),$i=pt.extend("--ft-typography-caption-text-transform",Tt.textTransform,"inherit"),Oi=pt.extend("--ft-typography-breadcrumb-font-family",Ut),Si=pt.extend("--ft-typography-breadcrumb-font-size",Tt.fontSize,"10px"),ki=pt.extend("--ft-typography-breadcrumb-font-weight",Tt.fontWeight,"normal"),Ci=pt.extend("--ft-typography-breadcrumb-letter-spacing",Tt.letterSpacing,"0.33px"),Ni=pt.extend("--ft-typography-breadcrumb-line-height",Tt.lineHeight,"16px"),Ei=pt.extend("--ft-typography-breadcrumb-text-transform",Tt.textTransform,"inherit"),zi=pt.extend("--ft-typography-overline-font-family",Ut),Ri=pt.extend("--ft-typography-overline-font-size",Tt.fontSize,"10px"),Mi=pt.extend("--ft-typography-overline-font-weight",Tt.fontWeight,"normal"),Fi=pt.extend("--ft-typography-overline-letter-spacing",Tt.letterSpacing,"1.5px"),Ui=pt.extend("--ft-typography-overline-line-height",Tt.lineHeight,"16px"),Ti=pt.extend("--ft-typography-overline-text-transform",Tt.textTransform,"uppercase"),ji={fontFamily:pt.extend("--ft-typography-button-font-family",Ut),fontSize:pt.extend("--ft-typography-button-font-size",Tt.fontSize,"14px"),fontWeight:pt.extend("--ft-typography-button-font-weight",Tt.fontWeight,"600"),letterSpacing:pt.extend("--ft-typography-button-letter-spacing",Tt.letterSpacing,"1.246px"),lineHeight:pt.extend("--ft-typography-button-line-height",Tt.lineHeight,"16px"),textTransform:pt.extend("--ft-typography-button-text-transform",Tt.textTransform,"uppercase")},Bi=x`
|
|
263
192
|
.ft-typography--title {
|
|
264
|
-
font-family: ${
|
|
265
|
-
font-size: ${
|
|
266
|
-
font-weight: ${
|
|
267
|
-
letter-spacing: ${
|
|
268
|
-
line-height: ${
|
|
269
|
-
text-transform: ${
|
|
193
|
+
font-family: ${jt};
|
|
194
|
+
font-size: ${Bt};
|
|
195
|
+
font-weight: ${Lt};
|
|
196
|
+
letter-spacing: ${_t};
|
|
197
|
+
line-height: ${At};
|
|
198
|
+
text-transform: ${Dt};
|
|
270
199
|
}
|
|
271
|
-
`,
|
|
200
|
+
`,Li=x`
|
|
272
201
|
.ft-typography--title-dense {
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
202
|
+
font-family: ${Pt};
|
|
203
|
+
font-size: ${It};
|
|
204
|
+
font-weight: ${Wt};
|
|
205
|
+
letter-spacing: ${Ht};
|
|
206
|
+
line-height: ${Kt};
|
|
207
|
+
text-transform: ${Zt};
|
|
279
208
|
}
|
|
280
|
-
`,
|
|
209
|
+
`,_i=x`
|
|
281
210
|
.ft-typography--subtitle1 {
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
211
|
+
font-family: ${Vt};
|
|
212
|
+
font-size: ${qt};
|
|
213
|
+
font-weight: ${Xt};
|
|
214
|
+
letter-spacing: ${Jt};
|
|
215
|
+
line-height: ${Yt};
|
|
216
|
+
text-transform: ${Gt};
|
|
288
217
|
}
|
|
289
|
-
`,
|
|
218
|
+
`,Ai=x`
|
|
290
219
|
.ft-typography--subtitle2 {
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
220
|
+
font-family: ${Qt};
|
|
221
|
+
font-size: ${ti};
|
|
222
|
+
font-weight: ${ii};
|
|
223
|
+
letter-spacing: ${ei};
|
|
224
|
+
line-height: ${oi};
|
|
225
|
+
text-transform: ${si};
|
|
297
226
|
}
|
|
298
227
|
|
|
299
|
-
`,
|
|
228
|
+
`,Di=x`
|
|
300
229
|
.ft-typography--body1 {
|
|
301
|
-
font-family: ${
|
|
302
|
-
font-size: ${
|
|
303
|
-
font-weight: ${
|
|
304
|
-
letter-spacing: ${
|
|
305
|
-
line-height: ${
|
|
306
|
-
text-transform: ${
|
|
230
|
+
font-family: ${ni};
|
|
231
|
+
font-size: ${ri};
|
|
232
|
+
font-weight: ${li};
|
|
233
|
+
letter-spacing: ${ai};
|
|
234
|
+
line-height: ${hi};
|
|
235
|
+
text-transform: ${pi};
|
|
307
236
|
}
|
|
308
|
-
`,
|
|
237
|
+
`,Pi=x`
|
|
309
238
|
.ft-typography--body2 {
|
|
310
|
-
font-family: ${
|
|
311
|
-
font-size: ${
|
|
312
|
-
font-weight: ${
|
|
313
|
-
letter-spacing: ${
|
|
314
|
-
line-height: ${
|
|
315
|
-
text-transform: ${
|
|
239
|
+
font-family: ${ci};
|
|
240
|
+
font-size: ${fi};
|
|
241
|
+
font-weight: ${di};
|
|
242
|
+
letter-spacing: ${ui};
|
|
243
|
+
line-height: ${xi};
|
|
244
|
+
text-transform: ${yi};
|
|
316
245
|
}
|
|
317
|
-
`,
|
|
246
|
+
`,Ii=x`
|
|
318
247
|
.ft-typography--caption {
|
|
319
|
-
font-family: ${
|
|
320
|
-
font-size: ${
|
|
321
|
-
font-weight: ${
|
|
322
|
-
letter-spacing: ${
|
|
323
|
-
line-height: ${
|
|
324
|
-
text-transform: ${
|
|
248
|
+
font-family: ${vi};
|
|
249
|
+
font-size: ${bi};
|
|
250
|
+
font-weight: ${gi};
|
|
251
|
+
letter-spacing: ${mi};
|
|
252
|
+
line-height: ${wi};
|
|
253
|
+
text-transform: ${$i};
|
|
325
254
|
}
|
|
326
|
-
`,
|
|
255
|
+
`,Wi=x`
|
|
327
256
|
.ft-typography--breadcrumb {
|
|
328
|
-
font-family: ${
|
|
329
|
-
font-size: ${
|
|
330
|
-
font-weight: ${
|
|
331
|
-
letter-spacing: ${
|
|
332
|
-
line-height: ${
|
|
333
|
-
text-transform: ${
|
|
257
|
+
font-family: ${Oi};
|
|
258
|
+
font-size: ${Si};
|
|
259
|
+
font-weight: ${ki};
|
|
260
|
+
letter-spacing: ${Ci};
|
|
261
|
+
line-height: ${Ni};
|
|
262
|
+
text-transform: ${Ei};
|
|
334
263
|
}
|
|
335
|
-
`,
|
|
264
|
+
`,Hi=x`
|
|
336
265
|
.ft-typography--overline {
|
|
337
|
-
font-family: ${
|
|
338
|
-
font-size: ${
|
|
339
|
-
font-weight: ${
|
|
340
|
-
letter-spacing: ${
|
|
341
|
-
line-height: ${
|
|
342
|
-
text-transform: ${
|
|
266
|
+
font-family: ${zi};
|
|
267
|
+
font-size: ${Ri};
|
|
268
|
+
font-weight: ${Mi};
|
|
269
|
+
letter-spacing: ${Fi};
|
|
270
|
+
line-height: ${Ui};
|
|
271
|
+
text-transform: ${Ti};
|
|
343
272
|
}
|
|
344
|
-
`,
|
|
273
|
+
`,Ki=x`
|
|
345
274
|
.ft-typography--button {
|
|
346
|
-
font-family: ${
|
|
347
|
-
font-size: ${
|
|
348
|
-
font-weight: ${
|
|
349
|
-
letter-spacing: ${
|
|
350
|
-
line-height: ${
|
|
351
|
-
text-transform: ${
|
|
275
|
+
font-family: ${ji.fontFamily};
|
|
276
|
+
font-size: ${ji.fontSize};
|
|
277
|
+
font-weight: ${ji.fontWeight};
|
|
278
|
+
letter-spacing: ${ji.letterSpacing};
|
|
279
|
+
line-height: ${ji.lineHeight};
|
|
280
|
+
text-transform: ${ji.textTransform};
|
|
352
281
|
}
|
|
353
|
-
`;
|
|
354
|
-
.
|
|
355
|
-
vertical-align: inherit;
|
|
356
|
-
}
|
|
357
|
-
`]}getTemplate(){return this.element?Xt`
|
|
358
|
-
<${qt(this.element)}
|
|
282
|
+
`;class Zi extends dt{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?zt`
|
|
283
|
+
<${Nt(this.element)}
|
|
359
284
|
class="ft-typography ft-typography--${this.variant}">
|
|
360
285
|
<slot></slot>
|
|
361
|
-
</${
|
|
362
|
-
`:
|
|
286
|
+
</${Nt(this.element)}>
|
|
287
|
+
`:zt`
|
|
363
288
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
364
|
-
`}}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
* Copyright 2021 Google LLC
|
|
368
|
-
* SPDX-LIcense-Identifier: Apache-2.0
|
|
369
|
-
*/
|
|
370
|
-
const fi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
|
|
371
|
-
/**
|
|
372
|
-
* @license
|
|
373
|
-
* Copyright 2018 Google LLC
|
|
374
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
375
|
-
*/;let mi=class extends Q{render(){return F`<span><slot></slot></span>`}};mi.styles=[fi],mi=Ct([et("mwc-icon")],mi);var vi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const yi=dt.create("--ft-tooltip-distance","SIZE","4px"),gi=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=dt.create("--ft-tooltip-background-color","COLOR","#666666"),xi=dt.create("--ft-tooltip-z-index","NUMBER","1"),wi=dt.external(ut.borderRadiusS,"Design system");let $i=class extends ft{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new lt,this.revealDebouncer=new lt}getStyles(){return s`
|
|
376
|
-
.ft-tooltip--container {
|
|
377
|
-
display: block;
|
|
378
|
-
position: relative;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.ft-tooltip--inline {
|
|
382
|
-
display: inline-block;
|
|
383
|
-
max-width: 100%;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.ft-tooltip {
|
|
387
|
-
position: absolute;
|
|
388
|
-
box-sizing: border-box;
|
|
389
|
-
overflow: hidden;
|
|
390
|
-
width: max-content;
|
|
391
|
-
max-width: 150px;
|
|
392
|
-
text-align: center;
|
|
393
|
-
padding: ${yi};
|
|
394
|
-
z-index: ${xi};
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.ft-tooltip--content {
|
|
398
|
-
padding: 4px 8px;
|
|
399
|
-
border-radius: ${wi};
|
|
400
|
-
background-color: ${bi};
|
|
401
|
-
color: ${gi};
|
|
402
|
-
top: -500px;
|
|
403
|
-
left: -500px;
|
|
404
|
-
position: relative;
|
|
405
|
-
word-break: break-word;
|
|
289
|
+
`}}Zi.styles=[Bi,Li,_i,Ai,Di,Pi,Ii,Wi,Hi,Ki,x`
|
|
290
|
+
.ft-typography {
|
|
291
|
+
vertical-align: inherit;
|
|
406
292
|
}
|
|
407
|
-
`}
|
|
293
|
+
`],Mt([o()],Zi.prototype,"element",void 0),Mt([o()],Zi.prototype,"variant",void 0),h("ft-typography")(Zi);var Vi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const qi=pt.create("--ft-tooltip-distance","SIZE","4px"),Xi=pt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ji=pt.create("--ft-tooltip-background-color","COLOR","#666666"),Yi=pt.create("--ft-tooltip-z-index","NUMBER","1"),Gi=pt.external(ft.borderRadiusS,"Design system");class Qi extends dt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i,this.revealDebouncer=new i}render(){return W`
|
|
408
294
|
<div part="container"
|
|
409
295
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
410
296
|
@mouseenter=${this.onHover}
|
|
@@ -419,13 +305,45 @@ const fi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
|
|
|
419
305
|
</div>
|
|
420
306
|
<slot></slot>
|
|
421
307
|
</div>
|
|
422
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const
|
|
308
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Qi.elementDefinitions={"ft-typography":Zi},Qi.styles=x`
|
|
309
|
+
.ft-tooltip--container {
|
|
310
|
+
display: block;
|
|
311
|
+
position: relative;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.ft-tooltip--inline {
|
|
315
|
+
display: inline-block;
|
|
316
|
+
max-width: 100%;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.ft-tooltip {
|
|
320
|
+
position: absolute;
|
|
321
|
+
box-sizing: border-box;
|
|
322
|
+
overflow: hidden;
|
|
323
|
+
width: max-content;
|
|
324
|
+
max-width: 150px;
|
|
325
|
+
text-align: center;
|
|
326
|
+
padding: ${qi};
|
|
327
|
+
z-index: ${Yi};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ft-tooltip--content {
|
|
331
|
+
padding: 4px 8px;
|
|
332
|
+
border-radius: ${Gi};
|
|
333
|
+
background-color: ${Ji};
|
|
334
|
+
color: ${Xi};
|
|
335
|
+
top: -500px;
|
|
336
|
+
left: -500px;
|
|
337
|
+
position: relative;
|
|
338
|
+
word-break: break-word;
|
|
339
|
+
}
|
|
340
|
+
`,Vi([o()],Qi.prototype,"text",void 0),Vi([o({type:Boolean})],Qi.prototype,"manual",void 0),Vi([o({type:Boolean})],Qi.prototype,"inline",void 0),Vi([o({type:Number})],Qi.prototype,"delay",void 0),Vi([o()],Qi.prototype,"position",void 0),Vi([
|
|
423
341
|
/**
|
|
424
342
|
* @license
|
|
425
343
|
* Copyright 2017 Google LLC
|
|
426
344
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
345
|
*/
|
|
428
|
-
function(t,e
|
|
346
|
+
function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Qi.prototype,"slotNodes",void 0),Vi([r(".ft-tooltip--container")],Qi.prototype,"container",void 0),Vi([r("slot")],Qi.prototype,"target",void 0),Vi([r(".ft-tooltip")],Qi.prototype,"tooltip",void 0),Vi([r(".ft-tooltip--content")],Qi.prototype,"tooltipContent",void 0),Vi([s()],Qi.prototype,"visible",void 0),h("ft-tooltip")(Qi);const te={color:pt.extend("--ft-loader-color",ft.colorPrimary),size:pt.create("--ft-loader-size","SIZE","80px")};class ie extends dt{static get styles(){return x`
|
|
429
347
|
:host {
|
|
430
348
|
line-height: 0;
|
|
431
349
|
}
|
|
@@ -434,8 +352,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
434
352
|
display: inline-block;
|
|
435
353
|
position: relative;
|
|
436
354
|
|
|
437
|
-
width: ${
|
|
438
|
-
height: ${
|
|
355
|
+
width: ${te.size};
|
|
356
|
+
height: ${te.size};
|
|
439
357
|
}
|
|
440
358
|
|
|
441
359
|
.ft-loader div {
|
|
@@ -444,7 +362,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
444
362
|
width: 25%;
|
|
445
363
|
height: 25%;
|
|
446
364
|
border-radius: 50%;
|
|
447
|
-
background: ${
|
|
365
|
+
background: ${te.color};
|
|
448
366
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
449
367
|
}
|
|
450
368
|
|
|
@@ -491,20 +409,65 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
491
409
|
transform: translate(0, 0);
|
|
492
410
|
}
|
|
493
411
|
100% {
|
|
494
|
-
transform: translate(calc(0.35 * ${
|
|
412
|
+
transform: translate(calc(0.35 * ${te.size}), 0);
|
|
495
413
|
}
|
|
496
414
|
}
|
|
497
|
-
`}
|
|
415
|
+
`}render(){return W`
|
|
498
416
|
<div class="ft-loader">
|
|
499
417
|
<div></div>
|
|
500
418
|
<div></div>
|
|
501
419
|
<div></div>
|
|
502
420
|
<div></div>
|
|
503
421
|
</div>
|
|
504
|
-
`}}
|
|
422
|
+
`}}h("ft-loader")(ie);
|
|
423
|
+
/**
|
|
424
|
+
* @license
|
|
425
|
+
* Copyright 2017 Google LLC
|
|
426
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
427
|
+
*/
|
|
428
|
+
class ee extends $t{constructor(t){if(super(t),this.it=K,t.type!==mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.it=t;if(t===H)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 i=[t];return i.raw=i,this.vt={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ee.directiveName="unsafeHTML",ee.resultType=1;const oe=wt(ee);var se,ne;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(se||(se={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ne||(ne={})),new Map([...["abw"].map((t=>[t,ne.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ne.AUDIO])),...["avi"].map((t=>[t,ne.AVI])),...["chm","xhs"].map((t=>[t,ne.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ne.CODE])),...["csv"].map((t=>[t,ne.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ne.DITA])),...["epub"].map((t=>[t,ne.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ne.EXCEL])),...["flac"].map((t=>[t,ne.FLAC])),...["gif"].map((t=>[t,ne.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ne.GZIP])),...["html","htm","xhtml"].map((t=>[t,ne.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ne.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ne.JPEG])),...["json"].map((t=>[t,ne.JSON])),...["m4a","m4p"].map((t=>[t,ne.M4A])),...["mov","qt"].map((t=>[t,ne.MOV])),...["mp3"].map((t=>[t,ne.MP3])),...["mp4","m4v"].map((t=>[t,ne.MP4])),...["ogg","oga"].map((t=>[t,ne.OGG])),...["pdf","ps"].map((t=>[t,ne.PDF])),...["png"].map((t=>[t,ne.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ne.POWERPOINT])),...["rar"].map((t=>[t,ne.RAR])),...["stp"].map((t=>[t,ne.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ne.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ne.VIDEO])),...["wav"].map((t=>[t,ne.WAV])),...["wma"].map((t=>[t,ne.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ne.WORD])),...["xml","xsl","rdf"].map((t=>[t,ne.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ne.YAML])),...["zip"].map((t=>[t,ne.ZIP]))]);var re,le=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(re||(re={}));const ae={size:pt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:pt.extend("--ft-icon-fluid-topics-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:pt.extend("--ft-icon-file-format-font-family",pt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:pt.extend("--ft-icon-material-font-family",pt.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class he extends dt{constructor(){super(...arguments),this.variant=re.fluid_topics}render(){return W`
|
|
429
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
430
|
+
${oe(this.getIcon())}
|
|
431
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
432
|
+
</i>
|
|
433
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let e=this.textContent;return this.variant===re.file_format?null!==(t=ne[e.toUpperCase()])&&void 0!==t?t:e:this.variant===re.fluid_topics?null!==(i=se[e.toUpperCase()])&&void 0!==i?i:e:K}}he.elementDefinitions={},he.styles=x`
|
|
434
|
+
:host, i.ft-icon {
|
|
435
|
+
display: inline-block;
|
|
436
|
+
width: ${ae.size};
|
|
437
|
+
height: ${ae.size};
|
|
438
|
+
text-align: center;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
i.ft-icon {
|
|
442
|
+
font-size: ${ae.size};
|
|
443
|
+
line-height: 1;
|
|
444
|
+
font-weight: normal;
|
|
445
|
+
text-transform: none;
|
|
446
|
+
font-style: normal;
|
|
447
|
+
font-variant: normal;
|
|
448
|
+
speak: none;
|
|
449
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
450
|
+
text-rendering: auto;
|
|
451
|
+
-webkit-font-smoothing: antialiased;
|
|
452
|
+
-moz-osx-font-smoothing: grayscale;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.ft-icon--fluid-topics {
|
|
456
|
+
font-family: ${ae.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.ft-icon--file-format {
|
|
460
|
+
font-family: ${ae.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.ft-icon--material {
|
|
464
|
+
font-family: ${ae.materialFontFamily}, "Material Icons", sans-serif;
|
|
465
|
+
}
|
|
466
|
+
`,le([o()],he.prototype,"variant",void 0),le([r("slot")],he.prototype,"slottedContent",void 0),h("ft-icon")(he);var pe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const ce=pt.extend("--ft-button-color",ft.colorPrimary),fe={backgroundColor:pt.extend("--ft-button-background-color",ft.colorSurface),borderRadius:pt.extend("--ft-button-border-radius",ft.borderRadiusL),color:ce,fontSize:pt.extend("--ft-button-font-size",ji.fontSize),iconSize:pt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:pt.extend("--ft-button-ripple-color",ce),opacityDisabled:pt.external(ft.colorOpacityDisabled,"Design system")},de=pt.extend("--ft-button-primary-color",pt.extend("--ft-button-color",ft.colorOnPrimary)),ue={backgroundColor:pt.extend("--ft-button-primary-background-color",pt.extend("--ft-button-background-color",ft.colorPrimary)),color:de,rippleColor:pt.extend("--ft-button-primary-ripple-color",de)},xe=pt.extend("--ft-button-dense-border-radius",pt.extend("--ft-button-border-radius",ft.borderRadiusM));class ye extends dt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[ut,x`
|
|
505
467
|
:host {
|
|
506
468
|
display: inline-block;
|
|
507
469
|
max-width: 100%;
|
|
470
|
+
pointer-events: none;
|
|
508
471
|
}
|
|
509
472
|
|
|
510
473
|
button {
|
|
@@ -537,19 +500,20 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
537
500
|
overflow: hidden;
|
|
538
501
|
box-sizing: border-box;
|
|
539
502
|
border: none;
|
|
503
|
+
pointer-events: auto;
|
|
540
504
|
|
|
541
|
-
--ft-button-internal-font-size: ${
|
|
505
|
+
--ft-button-internal-font-size: ${fe.fontSize};
|
|
542
506
|
--ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
|
|
543
|
-
--ft-button-internal-color: ${
|
|
544
|
-
|
|
507
|
+
--ft-button-internal-color: ${fe.color};
|
|
508
|
+
${ct(ae.size,fe.iconSize)};
|
|
545
509
|
--ft-button-internal-vertical-padding: 6px;
|
|
546
510
|
--ft-button-internal-horizontal-padding: 8px;
|
|
547
|
-
${
|
|
548
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height),
|
|
511
|
+
${ct(kt.color,fe.rippleColor)};
|
|
512
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${fe.iconSize});
|
|
549
513
|
|
|
550
|
-
border-radius: ${
|
|
514
|
+
border-radius: ${fe.borderRadius};
|
|
551
515
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
552
|
-
background-color: ${
|
|
516
|
+
background-color: ${fe.backgroundColor};
|
|
553
517
|
color: var(--ft-button-internal-color);
|
|
554
518
|
-webkit-mask-image: radial-gradient(white, black);
|
|
555
519
|
}
|
|
@@ -561,7 +525,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
561
525
|
.ft-button--dense {
|
|
562
526
|
--ft-button-internal-vertical-padding: 2px;
|
|
563
527
|
--ft-button-internal-horizontal-padding: 4px;
|
|
564
|
-
border-radius: ${
|
|
528
|
+
border-radius: ${xe};
|
|
565
529
|
}
|
|
566
530
|
|
|
567
531
|
.ft-button--round {
|
|
@@ -570,12 +534,13 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
570
534
|
|
|
571
535
|
.ft-button[disabled] {
|
|
572
536
|
filter: grayscale(1);
|
|
573
|
-
opacity: ${
|
|
537
|
+
opacity: ${fe.opacityDisabled};
|
|
574
538
|
}
|
|
575
539
|
|
|
576
540
|
.ft-button.ft-button--primary {
|
|
577
|
-
background-color: ${
|
|
578
|
-
--ft-button-internal-color: ${
|
|
541
|
+
background-color: ${ue.backgroundColor};
|
|
542
|
+
--ft-button-internal-color: ${ue.color};
|
|
543
|
+
${ct(kt.color,ue.rippleColor)};
|
|
579
544
|
}
|
|
580
545
|
|
|
581
546
|
.ft-button.ft-button--outlined {
|
|
@@ -593,8 +558,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
593
558
|
text-overflow: ellipsis;
|
|
594
559
|
display: block;
|
|
595
560
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
596
|
-
${
|
|
597
|
-
${
|
|
561
|
+
${ct(ji.fontSize,"var(--ft-button-internal-font-size)")};
|
|
562
|
+
${ct(ji.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
598
563
|
}
|
|
599
564
|
|
|
600
565
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -611,26 +576,25 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
611
576
|
display: none;
|
|
612
577
|
}
|
|
613
578
|
|
|
614
|
-
|
|
579
|
+
ft-icon {
|
|
615
580
|
flex-shrink: 0;
|
|
616
|
-
width: var(--mdc-icon-size);
|
|
617
581
|
}
|
|
618
582
|
|
|
619
|
-
.ft-button--label[hidden] +
|
|
583
|
+
.ft-button--label[hidden] + ft-icon {
|
|
620
584
|
margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
|
|
621
585
|
padding: 0 var(--ft-button-internal-vertical-padding);
|
|
622
586
|
}
|
|
623
587
|
|
|
624
|
-
.ft-button:not(.ft-button--trailing-icon)
|
|
588
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
625
589
|
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
626
590
|
order: -1;
|
|
627
591
|
}
|
|
628
592
|
|
|
629
593
|
ft-loader {
|
|
630
|
-
${
|
|
631
|
-
${
|
|
594
|
+
${ct(te.size,fe.iconSize)};
|
|
595
|
+
${ct(te.color,"var(--ft-button-internal-color)")};
|
|
632
596
|
}
|
|
633
|
-
`]}
|
|
597
|
+
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":bt,"ft-no-text-select":!0};return this.addTooltip(W`
|
|
634
598
|
<button part="button"
|
|
635
599
|
class="${Ot(t)}"
|
|
636
600
|
aria-label="${this.getLabel()}"
|
|
@@ -644,148 +608,23 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
644
608
|
</ft-typography>
|
|
645
609
|
${this.resolveIcon()}
|
|
646
610
|
</button>
|
|
647
|
-
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:
|
|
611
|
+
`)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:W`
|
|
648
612
|
<ft-tooltip part="tooltip"
|
|
649
613
|
text="${this.getLabel()}"
|
|
650
614
|
position="${this.tooltipPosition}">
|
|
651
615
|
${t}
|
|
652
616
|
</ft-tooltip>
|
|
653
|
-
`}resolveIcon(){return this.loading?
|
|
654
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
655
|
-
<
|
|
656
|
-
.ft-snap-scroll {
|
|
657
|
-
box-sizing: border-box;
|
|
658
|
-
position: relative;
|
|
659
|
-
display: flex;
|
|
660
|
-
|
|
661
|
-
--ft-snap-scroll-transparent-color: transparent;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
665
|
-
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
666
|
-
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
667
|
-
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
.ft-snap-scroll,
|
|
671
|
-
.ft-snap-scroll--content {
|
|
672
|
-
overflow: hidden;
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
.ft-snap-scroll--limit-size,
|
|
676
|
-
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
677
|
-
width: 100%;
|
|
678
|
-
height: 100%;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.ft-snap-scroll--content {
|
|
682
|
-
flex-grow: 1;
|
|
683
|
-
flex-shrink: 1;
|
|
684
|
-
box-sizing: border-box;
|
|
685
|
-
scroll-snap-align: start;
|
|
686
|
-
display: flex;
|
|
687
|
-
flex-wrap: nowrap;
|
|
688
|
-
align-items: flex-start;
|
|
689
|
-
justify-content: flex-start;
|
|
690
|
-
gap: ${ji.gap};
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
694
|
-
display: none;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
698
|
-
-ms-overflow-style: none;
|
|
699
|
-
scrollbar-width: none;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
.ft-snap-scroll--content::slotted(*) {
|
|
703
|
-
flex-shrink: 0;
|
|
704
|
-
flex-grow: 1;
|
|
705
|
-
max-height: 100%;
|
|
706
|
-
max-width: 100%;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
.ft-snap-scroll--horizontal,
|
|
710
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
711
|
-
width: 100%;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.ft-snap-scroll--vertical,
|
|
715
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
716
|
-
height: 100%;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
720
|
-
flex-direction: row;
|
|
721
|
-
overflow-x: auto;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
725
|
-
flex-direction: column;
|
|
726
|
-
overflow-y: auto;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
.ft-snap-scroll--previous,
|
|
730
|
-
.ft-snap-scroll--next {
|
|
731
|
-
position: absolute;
|
|
732
|
-
display: flex;
|
|
733
|
-
z-index: ${ji.buttonsZIndex};
|
|
734
|
-
opacity: 1;
|
|
735
|
-
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
736
|
-
${ht(Ri.backgroundColor,"transparent")};
|
|
737
|
-
${ht(Ri.color,ji.buttonsColor)};
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
.ft-snap-scroll--previous[hidden],
|
|
741
|
-
.ft-snap-scroll--next[hidden] {
|
|
742
|
-
z-index: -1;
|
|
743
|
-
opacity: 0;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
747
|
-
top: 0;
|
|
748
|
-
left: -1px;
|
|
749
|
-
bottom: 0;
|
|
750
|
-
background: linear-gradient(to right, ${ji.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
754
|
-
top: -1px;
|
|
755
|
-
left: 0;
|
|
756
|
-
right: 0;
|
|
757
|
-
background: linear-gradient(to bottom, ${ji.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
761
|
-
top: 0;
|
|
762
|
-
right: -1px;
|
|
763
|
-
bottom: 0;
|
|
764
|
-
background: linear-gradient(to left, ${ji.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
768
|
-
left: 0;
|
|
769
|
-
right: 0;
|
|
770
|
-
bottom: -1px;
|
|
771
|
-
background: linear-gradient(to top, ${ji.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
775
|
-
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
776
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
777
|
-
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
778
|
-
background-color: ${ji.colorSurface};
|
|
779
|
-
}
|
|
780
|
-
`}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}getTemplate(){const t=Ot({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":bt}),e=this.controls&&this.withScroll;return F`
|
|
617
|
+
`}resolveIcon(){return this.loading?W`
|
|
618
|
+
<ft-loader></ft-loader> `:this.icon?W`
|
|
619
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ye.elementDefinitions={"ft-ripple":Ct,"ft-tooltip":Qi,"ft-typography":Zi,"ft-icon":he,"ft-loader":ie},pe([o({type:Boolean})],ye.prototype,"primary",void 0),pe([o({type:Boolean})],ye.prototype,"outlined",void 0),pe([o({type:Boolean})],ye.prototype,"disabled",void 0),pe([o({type:Boolean})],ye.prototype,"dense",void 0),pe([o({type:Boolean})],ye.prototype,"round",void 0),pe([o({type:String})],ye.prototype,"label",void 0),pe([o({type:String})],ye.prototype,"icon",void 0),pe([o({type:Boolean})],ye.prototype,"trailingIcon",void 0),pe([o({type:Boolean})],ye.prototype,"loading",void 0),pe([o({type:String})],ye.prototype,"tooltipPosition",void 0),pe([r(".ft-button")],ye.prototype,"button",void 0),pe([r(".ft-button--label slot")],ye.prototype,"slottedContent",void 0),h("ft-button")(ye);var ve=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const be={buttonsColor:pt.extend("--ft-snap-scroll-buttons-color",ft.colorPrimary),buttonsZIndex:pt.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:pt.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:pt.external(ft.colorSurface,"Design system")};class ge extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class me extends dt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i(200),this.updateScrollDebouncer=new i(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Ot({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":bt}),i=this.controls&&this.withScroll;return W`
|
|
781
620
|
<div part="container" class="${t}">
|
|
782
621
|
<ft-button
|
|
783
622
|
class="ft-snap-scroll--previous"
|
|
784
623
|
part="controls"
|
|
785
624
|
primary
|
|
786
625
|
icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
|
|
787
|
-
?hidden=${!
|
|
788
|
-
?disabled=${!
|
|
626
|
+
?hidden=${!i||this.startReached}
|
|
627
|
+
?disabled=${!i||this.startReached}
|
|
789
628
|
@click=${this.previous}
|
|
790
629
|
></ft-button>
|
|
791
630
|
<slot class="ft-snap-scroll--content"
|
|
@@ -796,9 +635,134 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
|
|
|
796
635
|
part="controls"
|
|
797
636
|
primary
|
|
798
637
|
icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
|
|
799
|
-
?hidden=${!
|
|
800
|
-
?disabled=${!
|
|
638
|
+
?hidden=${!i||this.endReached}
|
|
639
|
+
?disabled=${!i||this.endReached}
|
|
801
640
|
@click=${this.next}
|
|
802
641
|
></ft-button>
|
|
803
642
|
</div>
|
|
804
|
-
`}updated(t){var
|
|
643
|
+
`}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ge(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}me.elementDefinitions={"ft-button":ye},me.styles=x`
|
|
644
|
+
.ft-snap-scroll {
|
|
645
|
+
box-sizing: border-box;
|
|
646
|
+
position: relative;
|
|
647
|
+
display: flex;
|
|
648
|
+
|
|
649
|
+
--ft-snap-scroll-transparent-color: transparent;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.ft-snap-scroll.ft-snap-scroll--safari-fix {
|
|
653
|
+
/* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
|
|
654
|
+
/* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
|
|
655
|
+
--ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.ft-snap-scroll,
|
|
659
|
+
.ft-snap-scroll--content {
|
|
660
|
+
overflow: hidden;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.ft-snap-scroll--limit-size,
|
|
664
|
+
.ft-snap-scroll--limit-size .ft-snap-scroll--content {
|
|
665
|
+
width: 100%;
|
|
666
|
+
height: 100%;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
.ft-snap-scroll--content {
|
|
670
|
+
flex-grow: 1;
|
|
671
|
+
flex-shrink: 1;
|
|
672
|
+
box-sizing: border-box;
|
|
673
|
+
scroll-snap-align: start;
|
|
674
|
+
display: flex;
|
|
675
|
+
flex-wrap: nowrap;
|
|
676
|
+
align-items: flex-start;
|
|
677
|
+
justify-content: flex-start;
|
|
678
|
+
gap: ${be.gap};
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
682
|
+
display: none;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
|
|
686
|
+
-ms-overflow-style: none;
|
|
687
|
+
scrollbar-width: none;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.ft-snap-scroll--content::slotted(*) {
|
|
691
|
+
flex-shrink: 0;
|
|
692
|
+
flex-grow: 1;
|
|
693
|
+
max-height: 100%;
|
|
694
|
+
max-width: 100%;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.ft-snap-scroll--horizontal,
|
|
698
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
699
|
+
width: 100%;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.ft-snap-scroll--vertical,
|
|
703
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
704
|
+
height: 100%;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--content {
|
|
708
|
+
flex-direction: row;
|
|
709
|
+
overflow-x: auto;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--content {
|
|
713
|
+
flex-direction: column;
|
|
714
|
+
overflow-y: auto;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.ft-snap-scroll--previous,
|
|
718
|
+
.ft-snap-scroll--next {
|
|
719
|
+
position: absolute;
|
|
720
|
+
display: flex;
|
|
721
|
+
z-index: ${be.buttonsZIndex};
|
|
722
|
+
opacity: 1;
|
|
723
|
+
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
724
|
+
${ct(fe.backgroundColor,"transparent")};
|
|
725
|
+
${ct(fe.color,be.buttonsColor)};
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.ft-snap-scroll--previous[hidden],
|
|
729
|
+
.ft-snap-scroll--next[hidden] {
|
|
730
|
+
z-index: -1;
|
|
731
|
+
opacity: 0;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous {
|
|
735
|
+
top: 0;
|
|
736
|
+
left: -1px;
|
|
737
|
+
bottom: 0;
|
|
738
|
+
background: linear-gradient(to right, ${be.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
742
|
+
top: -1px;
|
|
743
|
+
left: 0;
|
|
744
|
+
right: 0;
|
|
745
|
+
background: linear-gradient(to bottom, ${be.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
749
|
+
top: 0;
|
|
750
|
+
right: -1px;
|
|
751
|
+
bottom: 0;
|
|
752
|
+
background: linear-gradient(to left, ${be.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
756
|
+
left: 0;
|
|
757
|
+
right: 0;
|
|
758
|
+
bottom: -1px;
|
|
759
|
+
background: linear-gradient(to top, ${be.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
763
|
+
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
764
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
765
|
+
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
766
|
+
background-color: ${be.colorSurface};
|
|
767
|
+
}
|
|
768
|
+
`,ve([o({type:Boolean})],me.prototype,"horizontal",void 0),ve([o({type:Boolean})],me.prototype,"hideScrollbar",void 0),ve([o({type:Boolean})],me.prototype,"controls",void 0),ve([o({type:Boolean})],me.prototype,"limitSize",void 0),ve([s()],me.prototype,"elements",void 0),ve([s()],me.prototype,"currentElement",void 0),ve([s()],me.prototype,"withScroll",void 0),ve([s()],me.prototype,"startReached",void 0),ve([s()],me.prototype,"endReached",void 0),ve([r(".ft-snap-scroll--content")],me.prototype,"contentSlot",void 0),h("ft-snap-scroll")(me),t.CurrentElementChange=ge,t.FtSnapScroll=me,t.FtSnapScrollCssVariables=be,Object.defineProperty(t,"t",{value:!0})}({});
|