@fluid-topics/ft-reader-feedback 1.0.47 → 1.0.48
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-reader-feedback.min.js +67 -67
- package/package.json +5 -5
|
@@ -55,13 +55,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var
|
|
58
|
+
var T;I.finalized=!0,I.elementProperties=new Map,I.elementStyles=[],I.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:I}),(null!==(k=O.reactiveElementVersions)&&void 0!==k?k:O.reactiveElementVersions=[]).push("1.6.1");const M=window,A=M.trustedTypes,U=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,P="?"+z,D=`<${P}>`,L=document,B=()=>L.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,K=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),V="[ \t\n\f\r]",Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,G=/>/g,J=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),et=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),nt=new WeakMap,ot=L.createTreeWalker(L,129,null,!1),rt=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=Z;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===Z?"!--"===l[1]?s=q:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=J):void 0!==l[3]&&(s=J):s===J?">"===l[0]?(s=null!=o?o:Z,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?J:'"'===l[3]?Y:X):s===Y||s===X?s=J:s===q||s===G?s=Z:(s=J,o=void 0);const u=s===J&&t[e+1].startsWith("/>")?" ":"";r+=s===Z?i+D:c>=0?(n.push(a),i.slice(0,c)+F+i.slice(c)+z+u):i+z+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=rt(t,e);if(this.el=st.createElement(l,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=ot.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(F)||e.startsWith(z)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+F).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?ft:"@"===e[1]?pt:ht})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(z),e=t.length-1;if(e>0){n.textContent=A?A.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],B()),ot.nextNode(),a.push({type:2,index:++o});n.append(t[e],B())}}}else if(8===n.nodeType)if(n.data===P)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(z,t+1));)a.push({type:7,index:o}),t+=z.length-1}o++}}static createElement(t,e){const i=L.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var o,r,s,a;if(e===et)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=W(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=at(t,l._$AS(t,e.values),l,n)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:L).importNode(i,!0);ot.currentNode=o;let r=ot.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new vt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=ot.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ct=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),W(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):K(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==it&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=st.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new lt(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){H(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(B()),this.k(B()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ht=class{constructor(t,e,i,n,o){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=at(this,t,e,0),r=!W(t)||t!==this._$AH&&t!==et,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),r||(r=!W(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ut=class extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const dt=A?A.emptyScript:"";let ft=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,dt):this.element.removeAttribute(this.name)}},pt=class extends ht{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:it)===et)return;const n=this._$AH,o=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==it&&(n===it||o);o&&this.element.removeEventListener(this.name,this,n),r&&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)}},vt=class{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){at(this,t)}};const bt={O:F,P:z,A:P,C:1,M:rt,L:lt,D:K,R:at,I:ct,V:ht,H:ft,N:pt,U:ut,F:vt},yt=M.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(T=M.litHtmlVersions)&&void 0!==T?T:M.litHtmlVersions=[]).push("2.7.3");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ct(e.insertBefore(L(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let n=t=>x(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return x(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Ot extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class _t extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Et,Ct=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Rt=Symbol("constructorPrototype"),jt=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class It extends _t{constructor(){super(),this[Et]=new o(5),this[jt]=this.constructor.name,this[Rt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jt]&&Object.setPrototypeOf(this,this[Rt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Et=Nt,Ct([s()],It.prototype,"exportpartsPrefix",void 0),Ct([p([])],It.prototype,"exportpartsPrefixes",void 0),Ct([s()],It.prototype,"customStylesheet",void 0);const Mt=w`
|
|
64
|
+
var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new ct(e.insertBefore(B(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return et}};xt.finalized=!0,xt._$litElement$=!0,null===(gt=globalThis.litElementHydrateSupport)||void 0===gt||gt.call(globalThis,{LitElement:xt});const wt=globalThis.litElementPolyfillSupport;null==wt||wt({LitElement:xt}),(null!==(mt=globalThis.litElementVersions)&&void 0!==mt?mt:globalThis.litElementVersions=[]).push("3.3.2");class $t{static create(t,e,i){let n=t=>x(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[],o.lastResortDefaultValue=()=>i,o}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),o=w`var(${x(t)}, ${n(i)})`;return o.name=t,o.category=e.category,o.fallbackVariable=e,o.defaultValue=i,o.defaultCssValue=n,o.get=e=>w`var(${x(t)}, ${n(e)})`,o.breadcrumb=()=>[e.name,...e.breadcrumb()],o.lastResortDefaultValue=()=>i,o}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),n=w`var(${x(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=i,n.get=e=>w`var(${x(t.name)}, ${i(e)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},n}}function St(t,e){return x(`${t.name}: ${e}`)}const kt={colorPrimary:$t.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:$t.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:$t.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:$t.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:$t.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:$t.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:$t.create("--ft-color-error","COLOR","#B00020"),colorOutline:$t.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:$t.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:$t.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:$t.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:$t.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:$t.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:$t.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:$t.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:$t.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:$t.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:$t.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:$t.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:$t.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:$t.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:$t.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:$t.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:$t.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:$t.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:$t.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:$t.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:$t.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:$t.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:$t.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:$t.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:$t.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:$t.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:$t.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:$t.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:$t.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:$t.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:$t.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:$t.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:$t.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:$t.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:$t.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:$t.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:$t.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.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:$t.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:$t.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:$t.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:$t.create("--ft-border-radius-XL","SIZE","16px"),titleFont:$t.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:$t.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:$t.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:$t.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Ot extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class _t extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return $(i,t.elementStyles),i}}var Et,Ct=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Rt=Symbol("constructorPrototype"),jt=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class It extends _t{constructor(){super(),this[Et]=new o(5),this[jt]=this.constructor.name,this[Rt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[jt]&&Object.setPrototypeOf(this,this[Rt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Nt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,n,o,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(o=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==o?o:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Et=Nt,Ct([s()],It.prototype,"exportpartsPrefix",void 0),Ct([p([])],It.prototype,"exportpartsPrefixes",void 0),Ct([s()],It.prototype,"customStylesheet",void 0);const Tt=w`
|
|
65
65
|
.ft-no-text-select {
|
|
66
66
|
-webkit-touch-callout: none;
|
|
67
67
|
-webkit-user-select: none;
|
|
@@ -82,7 +82,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
82
82
|
-webkit-hyphens: auto;
|
|
83
83
|
hyphens: auto
|
|
84
84
|
}
|
|
85
|
-
`;const
|
|
85
|
+
`;const Mt=w`
|
|
86
86
|
.ft-safari-ellipsis-fix {
|
|
87
87
|
margin-right: 0;
|
|
88
88
|
|
|
@@ -93,7 +93,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
93
93
|
display: inline-block;
|
|
94
94
|
width: 0;
|
|
95
95
|
}
|
|
96
|
-
`;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(t){return!!t&&!!t[Se]}function zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===ke}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Ht(t)||Kt(t))}function Pt(t,e,i){void 0===i&&(i=!1),0===Dt(t)?(i?Object.keys:Oe)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Dt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ht(t)?2:Kt(t)?3:0}function Bt(t,e){return 2===Dt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Lt(t,e,i){var n=Dt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ht(t){return ge&&t instanceof Map}function Kt(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function Vt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=_e(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Jt(t)||Ft(t)||!zt(t)||(Dt(t)>1&&(t.set=t.add=t.clear=t.delete=Gt),Object.freeze(t),e&&Pt(t,(function(t,e){return qt(e,!0)}),!0)),t}function Gt(){Ut(2)}function Jt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=Ee[t];return e||Ut(18,t),e}function Yt(){return be}function Qt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Xt("ES5").S(e,t,n),n?(i[Se].P&&(te(e),Ut(4)),zt(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Jt(e))return e;var n=e[Se];if(!n)return Pt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=Vt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Pt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(Ft(o)){var a=re(t,o,r&&e&&3!==e.i&&!Bt(e.R,n)?r.concat(n):void 0);if(Lt(i,n,a),!Ft(a))return;t.m=!1}else s&&i.add(o);if(zt(o)&&!Jt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function le(t,e){var i=t[Se];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function he(t){t.P||(t.P=!0,t.l&&he(t.l))}function ue(t){t.o||(t.o=Vt(t.t))}function de(t,e,i){var n=Ht(e)?Xt("MapSet").F(e,i):Kt(e)?Xt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Yt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ce;i&&(o=[n],r=Re);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Xt("ES5").J(e,i);return(i?i.A:Yt()).p.push(n),n}function fe(t){return Ft(t)||Ut(22,t),function t(e){if(!zt(e))return e;var i,n=e[Se],o=Dt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=pe(e,o),n.I=!1}else i=pe(e,o);return Pt(i,(function(e,o){n&&function(t,e){return 2===Dt(t)?t.get(e):t[e]}(n.t,e)===o||Lt(i,e,t(o))})),3===o?new Set(i):i}(t)}function pe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Vt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Se=ye?Symbol.for("immer-state"):"__$immer_state",ke=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_e=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ee={},Ce={get:function(t,e){if(e===Se)return t;var i=Zt(t);if(!Bt(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!zt(n)?n:n===le(t.t,e)?(ue(t),t.o[e]=de(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Se];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||Bt(t.t,e)))return!0;ue(t),he(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,ue(t),he(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ut(12)}},Re={};Pt(Ce,(function(t,e){Re[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Re.deleteProperty=function(t,e){return Re.set.call(this,t,e,void 0)},Re.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var je=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ut(6),void 0!==n&&"function"!=typeof n&&Ut(7),zt(t)){var a=ie(e),l=de(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Qt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Qt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&qt(s,!0),n){var h=[],u=[];Xt("Patches").M(t,s,h,u),n(h,u)}return s}Ut(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){zt(t)||Ut(8),Ft(t)&&(t=fe(t));var e=ie(this),i=de(this,t,void 0);return i[Se].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Qt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&Ut(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Xt("Patches").$;return Ft(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Ne=new je,Ie=Ne.produce;function Me(t){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Me(t)}function Te(t){var e=function(t,e){if("object"!==Me(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Me(e)?e:String(e)}function Ae(t,e,i){return(e=Te(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Fe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){Ae(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Ne.produceWithPatches.bind(Ne),Ne.setAutoFreeze.bind(Ne),Ne.setUseProxies.bind(Ne),Ne.applyPatches.bind(Ne),Ne.createDraft.bind(Ne),Ne.finishDraft.bind(Ne);var Pe="function"==typeof Symbol&&Symbol.observable||"@@observable",De=function(){return Math.random().toString(36).substring(7).split("").join(".")},Be={INIT:"@@redux/INIT"+De(),REPLACE:"@@redux/REPLACE"+De(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+De()}};function Le(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ze(1));return i(Le)(t,e)}if("function"!=typeof t)throw new Error(ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(ze(3));return r}function u(t){if("function"!=typeof t)throw new Error(ze(4));if(l)throw new Error(ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ze(7));if(void 0===t.type)throw new Error(ze(8));if(l)throw new Error(ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Be.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ze(10));o=t,d({type:Be.REPLACE})}})[Pe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ze(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Pe]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Be.INIT}))throw new Error(ze(12));if(void 0===i(void 0,{type:Be.PROBE_UNKNOWN_ACTION()}))throw new Error(ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(ze(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function He(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=He.apply(void 0,r)(i.dispatch),Fe(Fe({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var Ve=Ze();Ve.withExtraArgument=Ze;var qe,Ge=Ve,Je=(qe=function(t,e){return qe=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])},qe(t,e)},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}qe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Xe=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Ye=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Qe=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?He:He.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array),hi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Je(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ye([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ye([void 0],t.concat(this))))},e}(Array);function ui(t){return zt(t)?Ie(t,(function(){})):t}function di(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ge.withExtraArgument(i.extraArgument)):n.push(Ge));return n}(t)}}function fi(t){var e,i=di(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=We(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Ke.apply(void 0,p),b=He;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new hi(v),g=y;return Array.isArray(f)?g=Ye([v],f):"function"==typeof f&&(g=f(y)),Le(e,u,b.apply(void 0,g))}function pi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:ui(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return ui(t())};else{var c=ui(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=Ye([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Ft(t))return void 0===(n=i(t,e))?t:n;if(zt(t))return Ie(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?pi(c,n):pi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=pi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=pi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=pi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return Xe(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Si,ki,Oi="listenerMiddleware";pi(Oi+"/add"),pi(Oi+"/removeAll"),pi(Oi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Se];return Ce.get(e,t)},set:function(e){var i=this[Se];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Se];if(!o.P)switch(o.i){case 5:n(o)&&he(o);break;case 4:i(o)&&he(o)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Se){var s=e[r];if(void 0===s&&!Bt(e,r))return!0;var a=i[r],l=a&&a[Se];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Se];return n.length!==Oe(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ee[t]||(Ee[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=_e(i);delete r[Se];for(var s=Oe(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Yt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Se,{value:r,writable:!0}),o},S:function(t,i,o){o?Ft(i)&&i[Se].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Se];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Pt(r,(function(e){e!==Se&&(void 0!==o[e]||Bt(o,e)?s[e]||t(r[e]):(s[e]=!0,he(i)))})),Pt(o,(function(t){void 0!==r[t]||Bt(r,t)||(s[t]=!1,he(i))}));else if(5===a){if(n(i)&&(he(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const _i=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!d(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ei=Symbol("internalReduxEventsUnsubscribers"),Ci=Symbol("internalStoresUnsubscribers"),Ri=Symbol("internalStores");class ji extends It{constructor(){super(...arguments),this[$i]=new Map,this[Si]=new Map,this[ki]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ri].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ri].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ni(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ri].delete(e)}setupStore(t,e){this[Ri].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ri].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Ci].has(t.store):this[Ci].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ci].set(t,e.subscribe((()=>this.updateFromStores()))),Ni(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Ei].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ci].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ei].forEach((t=>t())),this[Ei]=[]}unsubscribeFromStore(t){this[Ci].has(t)&&this[Ci].get(t)(),this[Ci].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ni(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}$i=Ci,Si=Ri,ki=Ei;class Ii{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ni(n))return n;if(null==i)return;const o=bi(i),r=fi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?o.getInitialState():o.reducer(t,e)});return window.ftReduxStores[i.name]=new Ii(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Mi,Ti,Ai;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Ti=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Ti?void 0:Ti.toString())&&void 0!==Ai?Ai:"");var Fi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Di extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,Fi([a()],i.prototype,"stateManager",void 0),i}(ji)){}const Bi=$t.extend("--ft-ripple-color",kt.colorContent),Li={color:Bi,backgroundColor:$t.extend("--ft-ripple-background-color",Bi),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Wi=$t.extend("--ft-ripple-color",kt.colorPrimary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Zi=$t.extend("--ft-ripple-color",kt.colorSecondary),Vi=Zi,qi=$t.extend("--ft-ripple-background-color",Zi),Gi=w`
|
|
96
|
+
`;class At{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ut(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ft,zt,Pt;const Dt=Symbol("internalReduxEventsUnsubscribers"),Lt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores");class Wt extends It{constructor(){super(...arguments),this[Ft]=new Map,this[zt]=new Map,this[Pt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Bt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ut(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Bt].delete(e)}setupStore(t,e){this[Bt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Lt].has(t.store):this[Lt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Lt].set(t,e.subscribe((()=>this.updateFromStores()))),Ut(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Dt].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Lt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Dt].forEach((t=>t())),this[Dt]=[]}unsubscribeFromStore(t){this[Lt].has(t)&&this[Lt].get(t)(),this[Lt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ht(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Kt(t){return!!t&&!!t[Ne]}function Vt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ie}(t)||Array.isArray(t)||!!t[je]||!!(null===(e=t.constructor)||void 0===e?void 0:e[je])||Yt(t)||Qt(t))}function Zt(t,e,i){void 0===i&&(i=!1),0===qt(t)?(i?Object.keys:Te)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function qt(t){var e=t[Ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yt(t)?2:Qt(t)?3:0}function Gt(t,e){return 2===qt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Jt(t,e,i){var n=qt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Xt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Yt(t){return _e&&t instanceof Map}function Qt(t){return Ee&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[Ne];for(var i=Te(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Kt(t)||!Vt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&Zt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Ht(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Ae[t];return e||Ht(18,t),e}function se(){return ke}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(ue),t.p=null}function ce(t){t===ke&&(ke=t.l)}function he(t){return ke={p:[],l:ke,h:t,m:!0,_:0}}function ue(t){var e=t[Ne];0===e.i||1===e.i?e.j():e.g=!0}function de(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Ne].P&&(le(e),Ht(4)),Vt(t)&&(t=fe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Ne].t,t,e.u,e.s)):t=fe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Re?t:void 0}function fe(t,e,i){if(oe(e))return e;var n=e[Ne];if(!n)return Zt(e,(function(o,r){return pe(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Zt(r,(function(e,r){return pe(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function pe(t,e,i,n,o,r,s){if(Kt(o)){var a=fe(t,o,r&&e&&3!==e.i&&!Gt(e.R,n)?r.concat(n):void 0);if(Jt(i,n,a),!Kt(a))return;t.m=!1}else s&&i.add(o);if(Vt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;fe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Ne];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Yt(e)?re("MapSet").F(e,i):Qt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ue;i&&(o=[n],r=Fe);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Kt(t)||Ht(22,t),function t(e){if(!Vt(e))return e;var i,n=e[Ne],o=qt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return Zt(i,(function(e,o){n&&function(t,e){return 2===qt(t)?t.get(e):t[e]}(n.t,e)===o||Jt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Ft=Lt,zt=Bt,Pt=Dt;var Se,ke,Oe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),_e="undefined"!=typeof Map,Ee="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Re=Oe?Symbol.for("immer-nothing"):((Se={})["immer-nothing"]=!0,Se),je=Oe?Symbol.for("immer-draftable"):"__$immer_draftable",Ne=Oe?Symbol.for("immer-state"):"__$immer_state",Ie=""+Object.prototype.constructor,Te="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Te(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Ae={},Ue={get:function(t,e){if(e===Ne)return t;var i=te(t);if(!Gt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Vt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Ne];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Xt(i,o)&&(void 0!==i||Gt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Ht(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ht(12)}},Fe={};Zt(Ue,(function(t,e){Fe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Fe.deleteProperty=function(t,e){return Fe.set.call(this,t,e,void 0)},Fe.set=function(t,e,i){return Ue.set.call(this,t[0],e,i,t[0])};var ze=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Ht(6),void 0!==n&&"function"!=typeof n&&Ht(7),Vt(t)){var a=he(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),de(t,a)}),(function(t){throw le(a),t})):(ae(a,n),de(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Re&&(s=void 0),e.D&&ie(s,!0),n){var h=[],u=[];re("Patches").M(t,s,h,u),n(h,u)}return s}Ht(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Vt(t)||Ht(8),Kt(t)&&(t=we(t));var e=he(this),i=xe(this,t,void 0);return i[Ne].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Ne]).A;return ae(i,e),de(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Ht(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Kt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Pe=new ze,De=Pe.produce;function Le(t){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Le(t)}function Be(t){var e=function(t,e){if("object"!==Le(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Le(e)?e:String(e)}function We(t,e,i){return(e=Be(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function He(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ke(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?He(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Pe.produceWithPatches.bind(Pe),Pe.setAutoFreeze.bind(Pe),Pe.setUseProxies.bind(Pe),Pe.applyPatches.bind(Pe),Pe.createDraft.bind(Pe),Pe.finishDraft.bind(Pe);var Ze="function"==typeof Symbol&&Symbol.observable||"@@observable",qe=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ge={INIT:"@@redux/INIT"+qe(),REPLACE:"@@redux/REPLACE"+qe(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qe()}};function Je(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ve(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ve(1));return i(Je)(t,e)}if("function"!=typeof t)throw new Error(Ve(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ve(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ve(4));if(l)throw new Error(Ve(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ve(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ve(7));if(void 0===t.type)throw new Error(Ve(8));if(l)throw new Error(Ve(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Ge.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ve(10));o=t,d({type:Ge.REPLACE})}})[Ze]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ve(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Ze]=function(){return this},t},n}function Xe(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ge.INIT}))throw new Error(Ve(12));if(void 0===i(void 0,{type:Ge.PROBE_UNKNOWN_ACTION()}))throw new Error(Ve(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ve(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ve(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ye.apply(void 0,r)(i.dispatch),Ke(Ke({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=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])},ii(t,e)},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}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,fi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},pi=function(t,e){for(var i in e||(e={}))ui.call(e,i)&&fi(t,i,e[i]);if(hi)for(var n=0,o=hi(e);n<o.length;n++){i=o[n];di.call(e,i)&&fi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ye:Ye.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Vt(t)?De(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Xe(r)}var p=a;"function"==typeof p&&(p=p(i));var v=Qe.apply(void 0,p),b=Ye;c&&(b=bi(pi({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(f)?g=si([v],f):"function"==typeof f&&(g=f(y)),Je(e,u,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return pi(pi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Si(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function ki(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Si(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=pi(pi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Si(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Kt(t))return void 0===(n=i(t,e))?t:n;if(Vt(t))return De(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Oi=["name","message","stack","code"],_i=function(t,e){this.payload=t,this.meta=e},Ei=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Oi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ri(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(pi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(pi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(pi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var h,u=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new _i(t,e)},fulfillWithValue:function(t,e){return new Ei(t,e)}})).then((function(e){if(e instanceof _i)throw e;return e instanceof Ei?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof _i?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(Ri)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var ji="listenerMiddleware";$i(ji+"/add"),$i(ji+"/removeAll"),$i(ji+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Ne];return Ue.get(e,t)},set:function(e){var i=this[Ne];Ue.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Ne];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Te(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Ne){var s=e[r];if(void 0===s&&!Gt(e,r))return!0;var a=i[r],l=a&&a[Ne];if(l?l.t!==s:!Xt(a,s))return!0}}var c=!!e[Ne];return n.length!==Te(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Ae[t]||(Ae[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Me(i);delete r[Ne];for(var s=Te(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Ne,{value:r,writable:!0}),o},S:function(t,i,o){o?Kt(i)&&i[Ne].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Ne];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Zt(r,(function(e){e!==Ne&&(void 0!==o[e]||Gt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),Zt(o,(function(t){void 0!==r[t]||Gt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();class Ni{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Ut(n))return n;if(null==i)return;const o=ki(i),r=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return o.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return o.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Ni(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ii=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!d(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ti,Mi,Ai;const Ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ai=null===(Mi=null===(Ti=window.safari)||void 0===Ti?void 0:Ti.pushNotification)||void 0===Mi?void 0:Mi.toString())&&void 0!==Ai?Ai:"");var Fi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Pi=Symbol("registerInterval");class Di extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Pi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Pi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Pi,Fi([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const Li=$t.extend("--ft-ripple-color",kt.colorContent),Bi={color:Li,backgroundColor:$t.extend("--ft-ripple-background-color",Li),opacityContentOnSurfacePressed:$t.external(kt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(kt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(kt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(kt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Wi=$t.extend("--ft-ripple-color",kt.colorPrimary),Hi=Wi,Ki=$t.extend("--ft-ripple-background-color",Wi),Vi=$t.extend("--ft-ripple-color",kt.colorSecondary),Zi=Vi,qi=$t.extend("--ft-ripple-background-color",Vi),Gi=w`
|
|
97
97
|
:host {
|
|
98
98
|
display: contents;
|
|
99
99
|
}
|
|
@@ -106,7 +106,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
106
106
|
|
|
107
107
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
108
108
|
overflow: hidden;
|
|
109
|
-
border-radius: ${
|
|
109
|
+
border-radius: ${Bi.borderRadius};
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.ft-ripple .ft-ripple--background,
|
|
@@ -116,11 +116,11 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ft-ripple .ft-ripple--background {
|
|
119
|
-
background-color: ${
|
|
119
|
+
background-color: ${Bi.backgroundColor};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ft-ripple .ft-ripple--effect {
|
|
123
|
-
background-color: ${
|
|
123
|
+
background-color: ${Bi.color};
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -128,7 +128,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
131
|
-
background-color: ${
|
|
131
|
+
background-color: ${Zi};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -168,22 +168,22 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
171
|
-
opacity: ${
|
|
171
|
+
opacity: ${Bi.opacityContentOnSurfaceHover};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
175
|
-
opacity: ${
|
|
175
|
+
opacity: ${Bi.opacityContentOnSurfaceSelected};
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
179
|
-
opacity: ${
|
|
179
|
+
opacity: ${Bi.opacityContentOnSurfaceFocused};
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
183
|
-
opacity: ${
|
|
183
|
+
opacity: ${Bi.opacityContentOnSurfacePressed};
|
|
184
184
|
transform: translate(-50%, -50%) scale(1);
|
|
185
185
|
}
|
|
186
|
-
`,Ji=$t.extend("--ft-typography-font-family",kt.titleFont),Xi=$t.extend("--ft-typography-font-family",kt.contentFont),Yi={fontFamily:Xi,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qi={fontFamily:$t.extend("--ft-typography-title-font-family",Ji),fontSize:$t.extend("--ft-typography-title-font-size",Yi.fontSize,"20px"),fontWeight:$t.extend("--ft-typography-title-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-letter-spacing",Yi.letterSpacing,"0.15px"),lineHeight:$t.extend("--ft-typography-title-line-height",Yi.lineHeight,"1.2"),textTransform:$t.extend("--ft-typography-title-text-transform",Yi.textTransform,"inherit")},tn={fontFamily:$t.extend("--ft-typography-title-dense-font-family",Ji),fontSize:$t.extend("--ft-typography-title-dense-font-size",Yi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-title-dense-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-dense-letter-spacing",Yi.letterSpacing,"0.105px"),lineHeight:$t.extend("--ft-typography-title-dense-line-height",Yi.lineHeight,"1.7"),textTransform:$t.extend("--ft-typography-title-dense-text-transform",Yi.textTransform,"inherit")},en=$t.extend("--ft-typography-subtitle1-font-family",Xi),nn=$t.extend("--ft-typography-subtitle1-font-size",Yi.fontSize,"16px"),on=$t.extend("--ft-typography-subtitle1-font-weight",Yi.fontWeight,"600"),rn=$t.extend("--ft-typography-subtitle1-letter-spacing",Yi.letterSpacing,"0.144px"),sn=$t.extend("--ft-typography-subtitle1-line-height",Yi.lineHeight,"1.5"),an=$t.extend("--ft-typography-subtitle1-text-transform",Yi.textTransform,"inherit"),ln=$t.extend("--ft-typography-subtitle2-font-family",Xi),cn=$t.extend("--ft-typography-subtitle2-font-size",Yi.fontSize,"14px"),hn=$t.extend("--ft-typography-subtitle2-font-weight",Yi.fontWeight,"normal"),un=$t.extend("--ft-typography-subtitle2-letter-spacing",Yi.letterSpacing,"0.098px"),dn=$t.extend("--ft-typography-subtitle2-line-height",Yi.lineHeight,"1.7"),fn=$t.extend("--ft-typography-subtitle2-text-transform",Yi.textTransform,"inherit"),pn={fontFamily:$t.extend("--ft-typography-body1-font-family",Xi),fontSize:$t.extend("--ft-typography-body1-font-size",Yi.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",Yi.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",Yi.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",Yi.textTransform,"inherit")},vn=$t.extend("--ft-typography-body2-font-family",Xi),bn=$t.extend("--ft-typography-body2-font-size",Yi.fontSize,"14px"),yn=$t.extend("--ft-typography-body2-font-weight",Yi.fontWeight,"normal"),gn=$t.extend("--ft-typography-body2-letter-spacing",Yi.letterSpacing,"0.252px"),mn=$t.extend("--ft-typography-body2-line-height",Yi.lineHeight,"1.4"),xn=$t.extend("--ft-typography-body2-text-transform",Yi.textTransform,"inherit"),wn={fontFamily:$t.extend("--ft-typography-caption-font-family",Xi),fontSize:$t.extend("--ft-typography-caption-font-size",Yi.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",Yi.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",Yi.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",Yi.textTransform,"inherit")},$n=$t.extend("--ft-typography-breadcrumb-font-family",Xi),Sn=$t.extend("--ft-typography-breadcrumb-font-size",Yi.fontSize,"10px"),kn=$t.extend("--ft-typography-breadcrumb-font-weight",Yi.fontWeight,"normal"),On=$t.extend("--ft-typography-breadcrumb-letter-spacing",Yi.letterSpacing,"0.33px"),_n=$t.extend("--ft-typography-breadcrumb-line-height",Yi.lineHeight,"1.6"),En=$t.extend("--ft-typography-breadcrumb-text-transform",Yi.textTransform,"inherit"),Cn=$t.extend("--ft-typography-overline-font-family",Xi),Rn=$t.extend("--ft-typography-overline-font-size",Yi.fontSize,"10px"),jn=$t.extend("--ft-typography-overline-font-weight",Yi.fontWeight,"normal"),Nn=$t.extend("--ft-typography-overline-letter-spacing",Yi.letterSpacing,"1.5px"),In=$t.extend("--ft-typography-overline-line-height",Yi.lineHeight,"1.6"),
|
|
186
|
+
`,Ji=$t.extend("--ft-typography-font-family",kt.titleFont),Xi=$t.extend("--ft-typography-font-family",kt.contentFont),Yi={fontFamily:Xi,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},Qi={fontFamily:$t.extend("--ft-typography-title-font-family",Ji),fontSize:$t.extend("--ft-typography-title-font-size",Yi.fontSize,"20px"),fontWeight:$t.extend("--ft-typography-title-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-letter-spacing",Yi.letterSpacing,"0.15px"),lineHeight:$t.extend("--ft-typography-title-line-height",Yi.lineHeight,"1.2"),textTransform:$t.extend("--ft-typography-title-text-transform",Yi.textTransform,"inherit")},tn={fontFamily:$t.extend("--ft-typography-title-dense-font-family",Ji),fontSize:$t.extend("--ft-typography-title-dense-font-size",Yi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-title-dense-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-title-dense-letter-spacing",Yi.letterSpacing,"0.105px"),lineHeight:$t.extend("--ft-typography-title-dense-line-height",Yi.lineHeight,"1.7"),textTransform:$t.extend("--ft-typography-title-dense-text-transform",Yi.textTransform,"inherit")},en=$t.extend("--ft-typography-subtitle1-font-family",Xi),nn=$t.extend("--ft-typography-subtitle1-font-size",Yi.fontSize,"16px"),on=$t.extend("--ft-typography-subtitle1-font-weight",Yi.fontWeight,"600"),rn=$t.extend("--ft-typography-subtitle1-letter-spacing",Yi.letterSpacing,"0.144px"),sn=$t.extend("--ft-typography-subtitle1-line-height",Yi.lineHeight,"1.5"),an=$t.extend("--ft-typography-subtitle1-text-transform",Yi.textTransform,"inherit"),ln=$t.extend("--ft-typography-subtitle2-font-family",Xi),cn=$t.extend("--ft-typography-subtitle2-font-size",Yi.fontSize,"14px"),hn=$t.extend("--ft-typography-subtitle2-font-weight",Yi.fontWeight,"normal"),un=$t.extend("--ft-typography-subtitle2-letter-spacing",Yi.letterSpacing,"0.098px"),dn=$t.extend("--ft-typography-subtitle2-line-height",Yi.lineHeight,"1.7"),fn=$t.extend("--ft-typography-subtitle2-text-transform",Yi.textTransform,"inherit"),pn={fontFamily:$t.extend("--ft-typography-body1-font-family",Xi),fontSize:$t.extend("--ft-typography-body1-font-size",Yi.fontSize,"16px"),fontWeight:$t.extend("--ft-typography-body1-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-body1-letter-spacing",Yi.letterSpacing,"0.496px"),lineHeight:$t.extend("--ft-typography-body1-line-height",Yi.lineHeight,"1.5"),textTransform:$t.extend("--ft-typography-body1-text-transform",Yi.textTransform,"inherit")},vn=$t.extend("--ft-typography-body2-font-family",Xi),bn=$t.extend("--ft-typography-body2-font-size",Yi.fontSize,"14px"),yn=$t.extend("--ft-typography-body2-font-weight",Yi.fontWeight,"normal"),gn=$t.extend("--ft-typography-body2-letter-spacing",Yi.letterSpacing,"0.252px"),mn=$t.extend("--ft-typography-body2-line-height",Yi.lineHeight,"1.4"),xn=$t.extend("--ft-typography-body2-text-transform",Yi.textTransform,"inherit"),wn={fontFamily:$t.extend("--ft-typography-caption-font-family",Xi),fontSize:$t.extend("--ft-typography-caption-font-size",Yi.fontSize,"12px"),fontWeight:$t.extend("--ft-typography-caption-font-weight",Yi.fontWeight,"normal"),letterSpacing:$t.extend("--ft-typography-caption-letter-spacing",Yi.letterSpacing,"0.396px"),lineHeight:$t.extend("--ft-typography-caption-line-height",Yi.lineHeight,"1.33"),textTransform:$t.extend("--ft-typography-caption-text-transform",Yi.textTransform,"inherit")},$n=$t.extend("--ft-typography-breadcrumb-font-family",Xi),Sn=$t.extend("--ft-typography-breadcrumb-font-size",Yi.fontSize,"10px"),kn=$t.extend("--ft-typography-breadcrumb-font-weight",Yi.fontWeight,"normal"),On=$t.extend("--ft-typography-breadcrumb-letter-spacing",Yi.letterSpacing,"0.33px"),_n=$t.extend("--ft-typography-breadcrumb-line-height",Yi.lineHeight,"1.6"),En=$t.extend("--ft-typography-breadcrumb-text-transform",Yi.textTransform,"inherit"),Cn=$t.extend("--ft-typography-overline-font-family",Xi),Rn=$t.extend("--ft-typography-overline-font-size",Yi.fontSize,"10px"),jn=$t.extend("--ft-typography-overline-font-weight",Yi.fontWeight,"normal"),Nn=$t.extend("--ft-typography-overline-letter-spacing",Yi.letterSpacing,"1.5px"),In=$t.extend("--ft-typography-overline-line-height",Yi.lineHeight,"1.6"),Tn=$t.extend("--ft-typography-overline-text-transform",Yi.textTransform,"uppercase"),Mn={fontFamily:$t.extend("--ft-typography-button-font-family",Xi),fontSize:$t.extend("--ft-typography-button-font-size",Yi.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",Yi.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",Yi.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",Yi.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",Yi.textTransform,"uppercase")},An=w`
|
|
187
187
|
.ft-typography--title {
|
|
188
188
|
font-family: ${Qi.fontFamily};
|
|
189
189
|
font-size: ${Qi.fontSize};
|
|
@@ -238,7 +238,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
238
238
|
line-height: ${mn};
|
|
239
239
|
text-transform: ${xn};
|
|
240
240
|
}
|
|
241
|
-
`,
|
|
241
|
+
`,Ln=w`
|
|
242
242
|
.ft-typography--caption {
|
|
243
243
|
font-family: ${wn.fontFamily};
|
|
244
244
|
font-size: ${wn.fontSize};
|
|
@@ -247,7 +247,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
247
247
|
line-height: ${wn.lineHeight};
|
|
248
248
|
text-transform: ${wn.textTransform};
|
|
249
249
|
}
|
|
250
|
-
`,
|
|
250
|
+
`,Bn=w`
|
|
251
251
|
.ft-typography--breadcrumb {
|
|
252
252
|
font-family: ${$n};
|
|
253
253
|
font-size: ${Sn};
|
|
@@ -263,22 +263,22 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
263
263
|
font-weight: ${jn};
|
|
264
264
|
letter-spacing: ${Nn};
|
|
265
265
|
line-height: ${In};
|
|
266
|
-
text-transform: ${
|
|
266
|
+
text-transform: ${Tn};
|
|
267
267
|
}
|
|
268
268
|
`,Hn=w`
|
|
269
269
|
.ft-typography--button {
|
|
270
|
-
font-family: ${
|
|
271
|
-
font-size: ${
|
|
272
|
-
font-weight: ${
|
|
273
|
-
letter-spacing: ${
|
|
274
|
-
line-height: ${
|
|
275
|
-
text-transform: ${
|
|
270
|
+
font-family: ${Mn.fontFamily};
|
|
271
|
+
font-size: ${Mn.fontSize};
|
|
272
|
+
font-weight: ${Mn.fontWeight};
|
|
273
|
+
letter-spacing: ${Mn.letterSpacing};
|
|
274
|
+
line-height: ${Mn.lineHeight};
|
|
275
|
+
text-transform: ${Mn.textTransform};
|
|
276
276
|
}
|
|
277
277
|
`,Kn=w`
|
|
278
278
|
.ft-typography {
|
|
279
279
|
vertical-align: inherit;
|
|
280
280
|
}
|
|
281
|
-
`,
|
|
281
|
+
`,Vn={color:$t.extend("--ft-loader-color",kt.colorPrimary),size:$t.create("--ft-loader-size","SIZE","80px")},Zn=w`
|
|
282
282
|
:host {
|
|
283
283
|
line-height: 0;
|
|
284
284
|
}
|
|
@@ -287,8 +287,8 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
287
287
|
display: inline-block;
|
|
288
288
|
position: relative;
|
|
289
289
|
|
|
290
|
-
width: ${
|
|
291
|
-
height: ${
|
|
290
|
+
width: ${Vn.size};
|
|
291
|
+
height: ${Vn.size};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
.ft-loader div {
|
|
@@ -297,7 +297,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
297
297
|
width: 25%;
|
|
298
298
|
height: 25%;
|
|
299
299
|
border-radius: 50%;
|
|
300
|
-
background: ${
|
|
300
|
+
background: ${Vn.color};
|
|
301
301
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
302
302
|
}
|
|
303
303
|
|
|
@@ -344,7 +344,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
344
344
|
transform: translate(0, 0);
|
|
345
345
|
}
|
|
346
346
|
100% {
|
|
347
|
-
transform: translate(calc(0.35 * ${
|
|
347
|
+
transform: translate(calc(0.35 * ${Vn.size}), 0);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
`,qn={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Gn=w`
|
|
@@ -395,7 +395,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
395
395
|
.ft-icon--material {
|
|
396
396
|
font-family: ${qn.materialFontFamily}, "Material Icons", sans-serif;
|
|
397
397
|
}
|
|
398
|
-
`,Jn=$t.extend("--ft-button-color",kt.colorPrimary),Xn={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Jn,fontSize:$t.extend("--ft-button-font-size",
|
|
398
|
+
`,Jn=$t.extend("--ft-button-color",kt.colorPrimary),Xn={backgroundColor:$t.extend("--ft-button-background-color",kt.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",kt.borderRadiusL),color:Jn,fontSize:$t.extend("--ft-button-font-size",Mn.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Jn),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(kt.colorOpacityDisabled,"Design system")},Yn=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",kt.colorOnPrimary)),Qn={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",kt.colorPrimary)),color:Yn,rippleColor:$t.extend("--ft-button-primary-ripple-color",Yn)},to=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",kt.borderRadiusM)),eo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),io=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),no=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),oo=[w`
|
|
399
399
|
:host {
|
|
400
400
|
display: inline-block;
|
|
401
401
|
max-width: 100%;
|
|
@@ -438,7 +438,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
438
438
|
--ft-button-internal-line-height: max(calc(${Xn.fontSize} + 2px), ${Xn.iconSize});
|
|
439
439
|
--ft-button-internal-color: ${Xn.color};
|
|
440
440
|
${St(qn.size,Xn.iconSize)};
|
|
441
|
-
${St(
|
|
441
|
+
${St(Bi.color,Xn.rippleColor)};
|
|
442
442
|
|
|
443
443
|
border-radius: ${Xn.borderRadius};
|
|
444
444
|
padding: ${Xn.verticalPadding} ${Xn.horizontalPadding};
|
|
@@ -482,7 +482,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
482
482
|
.ft-button.ft-button--primary {
|
|
483
483
|
background-color: ${Qn.backgroundColor};
|
|
484
484
|
--ft-button-internal-color: ${Qn.color};
|
|
485
|
-
${St(
|
|
485
|
+
${St(Bi.color,Qn.rippleColor)};
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-button:focus {
|
|
@@ -496,8 +496,8 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
496
496
|
text-overflow: ellipsis;
|
|
497
497
|
display: block;
|
|
498
498
|
margin: 0 ${Xn.iconPadding};
|
|
499
|
-
${St(
|
|
500
|
-
${St(
|
|
499
|
+
${St(Mn.fontSize,"1em")};
|
|
500
|
+
${St(Mn.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button--dense .ft-button--label {
|
|
@@ -529,10 +529,10 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
ft-loader {
|
|
532
|
-
${St(
|
|
533
|
-
${St(
|
|
532
|
+
${St(Vn.size,Xn.iconSize)};
|
|
533
|
+
${St(Vn.color,"var(--ft-button-internal-color)")};
|
|
534
534
|
}
|
|
535
|
-
`,
|
|
535
|
+
`,Tt],ro={textColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceHigh),backgroundColor:$t.extend("--ft-switch-background-color",kt.colorSurface),selectedTextColor:$t.extend("--ft-switch-selected-text-color",kt.colorPrimary),selectedBackgroundColor:$t.extend("--ft-switch-selected-background-color",kt.colorPrimary),borderColor:$t.extend("--ft-switch-border-color",kt.colorOutline),borderRadius:$t.extend("--ft-switch-border-radius",kt.borderRadiusL),fontSize:$t.extend("--ft-switch-font-size",Mn.fontSize),iconSize:$t.create("--ft-switch-icon-size","SIZE","24px"),iconColor:$t.extend("--ft-switch-text-color",kt.colorOnSurfaceMedium),rippleColor:$t.extend("--ft-switch-ripple-color",kt.colorPrimary),outlineColor:$t.extend("--ft-switch-outline-color",kt.colorPrimary)},so={feedbackInputMinWidth:$t.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:$t.external(kt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:$t.extend("--ft-reader-feedback-send-feedback-color",kt.colorOnPrimary),sendFeedbackBackgroundColor:$t.extend("--ft-reader-feedback-send-feedback-background-color",kt.colorPrimary),filledRatingColor:$t.extend("--ft-reader-feedback-filled-rating-color",kt.colorPrimary),emptyRatingColor:$t.extend("--ft-reader-feedback-empty-rating-color",kt.colorOnSurfaceMedium),mainTitleFontSize:$t.external(Qi.fontSize,"Typography"),sectionTitleFontSize:$t.external(tn.fontSize,"Typography")},ao=w`
|
|
536
536
|
.ft-reader-feedback {
|
|
537
537
|
box-sizing: border-box;
|
|
538
538
|
display: flex;
|
|
@@ -617,7 +617,7 @@ var gt,mt;let xt=class extends I{constructor(){super(...arguments),this.renderOp
|
|
|
617
617
|
</${ho(this.element)}>
|
|
618
618
|
`:fo`
|
|
619
619
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
620
|
-
`}}bo.styles=[An,Un,Fn,zn,Pn,Dn,Bn,
|
|
620
|
+
`}}bo.styles=[An,Un,Fn,zn,Pn,Dn,Ln,Bn,Wn,Hn,Kn],vo([s()],bo.prototype,"element",void 0),vo([s()],bo.prototype,"variant",void 0),f("ft-typography")(bo);
|
|
621
621
|
/**
|
|
622
622
|
* @license
|
|
623
623
|
* Copyright 2017 Google LLC
|
|
@@ -633,7 +633,7 @@ const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{constructo
|
|
|
633
633
|
${$o(this.resolvedIcon)}
|
|
634
634
|
<slot ?hidden=${e}></slot>
|
|
635
635
|
</i>
|
|
636
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oo.file_format:this.resolvedIcon=null!==(t=ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=So[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Eo.elementDefinitions={},Eo.styles=Gn,_o([s()],Eo.prototype,"variant",void 0),_o([s()],Eo.prototype,"value",void 0),_o([a()],Eo.prototype,"resolvedIcon",void 0),_o([c("slot")],Eo.prototype,"slottedContent",void 0),f("ft-icon")(Eo);const Co=$t.create("--ft-tooltip-distance","SIZE","4px"),Ro=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),jo=$t.create("--ft-tooltip-background-color","COLOR","#666666"),No=$t.create("--ft-tooltip-z-index","NUMBER","1"),Io=$t.external(kt.borderRadiusS,"Design system"),
|
|
636
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Oo.file_format:this.resolvedIcon=null!==(t=ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=So[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Eo.elementDefinitions={},Eo.styles=Gn,_o([s()],Eo.prototype,"variant",void 0),_o([s()],Eo.prototype,"value",void 0),_o([a()],Eo.prototype,"resolvedIcon",void 0),_o([c("slot")],Eo.prototype,"slottedContent",void 0),f("ft-icon")(Eo);const Co=$t.create("--ft-tooltip-distance","SIZE","4px"),Ro=$t.create("--ft-tooltip-color","COLOR","#FFFFFF"),jo=$t.create("--ft-tooltip-background-color","COLOR","#666666"),No=$t.create("--ft-tooltip-z-index","NUMBER","1"),Io=$t.external(kt.borderRadiusS,"Design system"),To=$t.create("--ft-tooltip-max-width","SIZE","150px"),Mo=w`
|
|
637
637
|
.ft-tooltip--container {
|
|
638
638
|
display: block;
|
|
639
639
|
position: relative;
|
|
@@ -649,7 +649,7 @@ const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{constructo
|
|
|
649
649
|
box-sizing: border-box;
|
|
650
650
|
overflow: hidden;
|
|
651
651
|
width: max-content;
|
|
652
|
-
max-width: ${
|
|
652
|
+
max-width: ${To};
|
|
653
653
|
text-align: center;
|
|
654
654
|
padding: ${Co};
|
|
655
655
|
z-index: ${No};
|
|
@@ -683,7 +683,7 @@ const yo=1,go=2,mo=t=>(...e)=>({_$litDirective$:t,values:e});class xo{constructo
|
|
|
683
683
|
</div>
|
|
684
684
|
</div>
|
|
685
685
|
</div>
|
|
686
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${
|
|
686
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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.validPosition){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,n=(e.width-this.tooltip.clientWidth)/2;let o=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,o=n;break;case"bottom":r=e.height,o=n;break;case"left":r=i,o=-this.tooltip.clientWidth;break;case"right":r=i,o=e.width}e.left+o+this.tooltip.clientWidth>window.innerWidth&&(o=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+o<0&&(o=4-e.left);const s=this.tooltip.style;s.left=o+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${To})`}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())}}Uo.elementDefinitions={"ft-typography":bo},Uo.styles=Mo,Ao([s()],Uo.prototype,"text",void 0),Ao([s({type:Boolean})],Uo.prototype,"manual",void 0),Ao([s({type:Boolean})],Uo.prototype,"inline",void 0),Ao([s({type:Number})],Uo.prototype,"delay",void 0),Ao([s()],Uo.prototype,"position",void 0),Ao([
|
|
687
687
|
/**
|
|
688
688
|
* @license
|
|
689
689
|
* Copyright 2017 Google LLC
|
|
@@ -712,7 +712,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
712
712
|
<div class="ft-ripple--background"></div>
|
|
713
713
|
<div class="ft-ripple--effect"></div>
|
|
714
714
|
</div>
|
|
715
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Po.elementDefinitions={},Po.styles=Gi,zo([s({type:Boolean})],Po.prototype,"primary",void 0),zo([s({type:Boolean})],Po.prototype,"secondary",void 0),zo([s({type:Boolean})],Po.prototype,"unbounded",void 0),zo([s({type:Boolean})],Po.prototype,"activated",void 0),zo([s({type:Boolean})],Po.prototype,"selected",void 0),zo([s({type:Boolean})],Po.prototype,"disabled",void 0),zo([a()],Po.prototype,"hovered",void 0),zo([a()],Po.prototype,"focused",void 0),zo([a()],Po.prototype,"pressed",void 0),zo([a()],Po.prototype,"rippling",void 0),zo([a()],Po.prototype,"rippleSize",void 0),zo([a()],Po.prototype,"originX",void 0),zo([a()],Po.prototype,"originY",void 0),zo([c(".ft-ripple")],Po.prototype,"ripple",void 0),zo([c(".ft-ripple--effect")],Po.prototype,"rippleEffect",void 0),f("ft-ripple")(Po);const Do={borderRadiusLeft:$t.extend("--ft-switch-option-border-radius-left",kt.borderRadiusL),borderRadiusRight:$t.extend("--ft-switch-option-border-radius-right",kt.borderRadiusL),borderWidthLeft:$t.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:$t.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:$t.create("--ft-switch-option-border-width-vertical","SIZE","1px")},
|
|
715
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),n=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",i),t.removeEventListener("touchstart",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Po.elementDefinitions={},Po.styles=Gi,zo([s({type:Boolean})],Po.prototype,"primary",void 0),zo([s({type:Boolean})],Po.prototype,"secondary",void 0),zo([s({type:Boolean})],Po.prototype,"unbounded",void 0),zo([s({type:Boolean})],Po.prototype,"activated",void 0),zo([s({type:Boolean})],Po.prototype,"selected",void 0),zo([s({type:Boolean})],Po.prototype,"disabled",void 0),zo([a()],Po.prototype,"hovered",void 0),zo([a()],Po.prototype,"focused",void 0),zo([a()],Po.prototype,"pressed",void 0),zo([a()],Po.prototype,"rippling",void 0),zo([a()],Po.prototype,"rippleSize",void 0),zo([a()],Po.prototype,"originX",void 0),zo([a()],Po.prototype,"originY",void 0),zo([c(".ft-ripple")],Po.prototype,"ripple",void 0),zo([c(".ft-ripple--effect")],Po.prototype,"rippleEffect",void 0),f("ft-ripple")(Po);const Do={borderRadiusLeft:$t.extend("--ft-switch-option-border-radius-left",kt.borderRadiusL),borderRadiusRight:$t.extend("--ft-switch-option-border-radius-right",kt.borderRadiusL),borderWidthLeft:$t.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:$t.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:$t.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Lo=w`
|
|
716
716
|
.ft-switch-option {
|
|
717
717
|
position: relative;
|
|
718
718
|
display: inline-block;
|
|
@@ -764,8 +764,8 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
764
764
|
text-overflow: ellipsis;
|
|
765
765
|
display: block;
|
|
766
766
|
margin: 0 8px;
|
|
767
|
-
${St(
|
|
768
|
-
${St(
|
|
767
|
+
${St(Mn.fontSize,ro.fontSize)};
|
|
768
|
+
${St(Mn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
769
769
|
}
|
|
770
770
|
|
|
771
771
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
@@ -777,7 +777,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
.ft-switch-option--ripple {
|
|
780
|
-
${St(
|
|
780
|
+
${St(Bi.color,ro.rippleColor)};
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -796,7 +796,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
796
796
|
.ft-switch-option--selected ft-icon {
|
|
797
797
|
color: ${ro.selectedTextColor};
|
|
798
798
|
}
|
|
799
|
-
`;var
|
|
799
|
+
`;var Bo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Ho extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Ko extends It{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ho(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(tt`
|
|
800
800
|
<label part="label" for="input" class=${Fo(t)}
|
|
801
801
|
@click=${this.onChange}>
|
|
802
802
|
<div class="ft-switch-option--content">
|
|
@@ -820,14 +820,14 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
820
820
|
</ft-tooltip>
|
|
821
821
|
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Wo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?tt`
|
|
822
822
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
823
|
-
`:it}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ko.elementDefinitions={"ft-ripple":Po,"ft-typography":bo,"ft-tooltip":Uo,"ft-icon":Eo},Ko.styles=[
|
|
823
|
+
`:it}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ko.elementDefinitions={"ft-ripple":Po,"ft-typography":bo,"ft-tooltip":Uo,"ft-icon":Eo},Ko.styles=[Mt,Lo],Bo([s()],Ko.prototype,"value",void 0),Bo([s()],Ko.prototype,"icon",void 0),Bo([s()],Ko.prototype,"iconVariant",void 0),Bo([s()],Ko.prototype,"label",void 0),Bo([s()],Ko.prototype,"tooltipPosition",void 0),Bo([s({type:Boolean,reflect:!0})],Ko.prototype,"selected",void 0),Bo([s({type:Boolean})],Ko.prototype,"trailingIcon",void 0),Bo([s({type:Boolean})],Ko.prototype,"unselectable",void 0),Bo([c(".ft-switch-option--content slot")],Ko.prototype,"slottedContent",void 0),Bo([c(".ft-switch-option--input")],Ko.prototype,"input",void 0);var Vo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zo extends CustomEvent{constructor(t){super("change",{detail:t})}}class qo extends It{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){super.updated(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return tt`
|
|
824
824
|
<div @keydown=${this.onKeyDown} tabindex="0" class="${Fo(t)}">
|
|
825
825
|
<slot @slotchange=${this.onSlotchange}
|
|
826
826
|
@option-change=${this.onOptionChangeByScript}
|
|
827
827
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
828
828
|
></slot>
|
|
829
829
|
</div>
|
|
830
|
-
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ko&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new
|
|
830
|
+
`}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ko&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Zo(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}qo.elementDefinitions={},qo.styles=w`
|
|
831
831
|
:host {
|
|
832
832
|
display: inline-block;
|
|
833
833
|
}
|
|
@@ -861,7 +861,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
861
861
|
--ft-switch-internal-vertical-padding: 2px;
|
|
862
862
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
863
863
|
}
|
|
864
|
-
`,
|
|
864
|
+
`,Vo([s({type:Boolean})],qo.prototype,"dense",void 0),Vo([s({type:Boolean})],qo.prototype,"unselectable",void 0),Vo([c(".ft-switch slot")],qo.prototype,"slottedContent",void 0),Vo([a()],qo.prototype,"selectedOption",void 0),Vo([c(".ft-switch")],qo.prototype,"ftSwitchDiv",void 0),f("ft-switch")(qo),f("ft-switch-option")(Ko);const Go=$t.external(kt.colorOutline,"Design system"),Jo=$t.external(kt.colorOnSurfaceMedium,"Design system"),Xo=w`
|
|
865
865
|
:host {
|
|
866
866
|
display: block;
|
|
867
867
|
}
|
|
@@ -890,7 +890,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
890
890
|
@touchstart=${this.initDragFromTouch}>
|
|
891
891
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
892
892
|
</div>
|
|
893
|
-
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Qo(i,n))}}tr.elementDefinitions={"ft-icon":Eo},tr.styles=[
|
|
893
|
+
`}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new Qo(i,n))}}tr.elementDefinitions={"ft-icon":Eo},tr.styles=[Tt,Xo],Yo([s({type:Number})],tr.prototype,"initialWidth",void 0),Yo([s({type:Number})],tr.prototype,"initialHeight",void 0),Yo([s()],tr.prototype,"icon",void 0),Yo([s()],tr.prototype,"iconVariant",void 0),Yo([s()],tr.prototype,"cursor",void 0),Yo([a()],tr.prototype,"dragging",void 0),f("ft-resizer")(tr);const er={fontSize:$t.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:$t.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:$t.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:$t.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:$t.create("--ft-input-label-max-width","SIZE","100%"),borderColor:$t.extend("--ft-input-label-border-color",kt.colorOutline),textColor:$t.extend("--ft-input-label-text-color",kt.colorOnSurfaceMedium),disabledTextColor:$t.extend("--ft-input-label-disabled-text-color",kt.colorOnSurfaceDisabled),colorSurface:$t.external(kt.colorSurface,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},ir=w`
|
|
894
894
|
.ft-input-label {
|
|
895
895
|
position: absolute;
|
|
896
896
|
inset: 0;
|
|
@@ -1021,7 +1021,7 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
1021
1021
|
</div>
|
|
1022
1022
|
`:null}
|
|
1023
1023
|
</div>
|
|
1024
|
-
`}}or.elementDefinitions={},or.styles=[
|
|
1024
|
+
`}}or.elementDefinitions={},or.styles=[Ln,ir],nr([s({type:String})],or.prototype,"text",void 0),nr([s({type:Boolean})],or.prototype,"raised",void 0),nr([s({type:Boolean})],or.prototype,"outlined",void 0),nr([s({type:Boolean})],or.prototype,"disabled",void 0),nr([s({type:Boolean})],or.prototype,"error",void 0),f("ft-input-label")(or);const rr={fontSize:$t.create("--ft-text-area-font-size","SIZE","14px"),labelSize:$t.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:$t.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:$t.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:$t.extend("--ft-text-area-helper-color",kt.colorOnSurfaceMedium),colorPrimary:$t.external(kt.colorPrimary,"Design system"),colorOnSurface:$t.external(kt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:$t.external(kt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:$t.external(kt.borderRadiusS,"Design system"),colorError:$t.external(kt.colorError,"Design system")},sr=w`
|
|
1025
1025
|
*:focus {
|
|
1026
1026
|
outline: none;
|
|
1027
1027
|
}
|
|
@@ -1054,8 +1054,8 @@ const Fo=mo(class extends xo{constructor(t){var e;if(super(t),t.type!==yo||"clas
|
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
.ft-text-area--input-panel ft-ripple {
|
|
1057
|
-
${St(
|
|
1058
|
-
${St(
|
|
1057
|
+
${St(Bi.opacityContentOnSurfaceHover,"0.08")};
|
|
1058
|
+
${St(Bi.opacityContentOnSurfacePressed,"0.04")};
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
1061
|
.ft-text-area--input {
|
|
@@ -1181,7 +1181,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1181
1181
|
<div></div>
|
|
1182
1182
|
<div></div>
|
|
1183
1183
|
</div>
|
|
1184
|
-
`}}yr.styles=
|
|
1184
|
+
`}}yr.styles=Zn,f("ft-loader")(yr);var gr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class mr extends It{constructor(){super(...arguments),this.role="button",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.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}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-no-text-select":!0};return this.addTooltipIfNeeded(tt`
|
|
1185
1185
|
<button part="button"
|
|
1186
1186
|
class="${Fo(t)}"
|
|
1187
1187
|
aria-label="${this.getLabel()}"
|
|
@@ -1204,15 +1204,15 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1204
1204
|
</ft-tooltip>
|
|
1205
1205
|
`:t}resolveIcon(){return this.loading?tt`
|
|
1206
1206
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
|
|
1207
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}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}}mr.elementDefinitions={"ft-ripple":Po,"ft-tooltip":Uo,"ft-typography":bo,"ft-icon":Eo,"ft-loader":yr},mr.styles=[
|
|
1207
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}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}}mr.elementDefinitions={"ft-ripple":Po,"ft-tooltip":Uo,"ft-typography":bo,"ft-icon":Eo,"ft-loader":yr},mr.styles=[Mt,oo],gr([s({type:String,reflect:!0})],mr.prototype,"role",void 0),gr([s({type:Boolean})],mr.prototype,"primary",void 0),gr([s({type:Boolean})],mr.prototype,"outlined",void 0),gr([s({type:Boolean})],mr.prototype,"disabled",void 0),gr([s({type:Boolean})],mr.prototype,"dense",void 0),gr([s({type:Boolean})],mr.prototype,"round",void 0),gr([s()],mr.prototype,"label",void 0),gr([s()],mr.prototype,"icon",void 0),gr([s()],mr.prototype,"iconVariant",void 0),gr([s({type:Boolean})],mr.prototype,"trailingIcon",void 0),gr([s({type:Boolean})],mr.prototype,"loading",void 0),gr([s()],mr.prototype,"tooltipPosition",void 0),gr([s({type:Boolean})],mr.prototype,"hideTooltip",void 0),gr([s({type:Boolean})],mr.prototype,"forceTooltip",void 0),gr([c(".ft-button")],mr.prototype,"button",void 0),gr([c(".ft-button--label slot")],mr.prototype,"slottedContent",void 0),f("ft-button")(mr);const xr=w`
|
|
1208
1208
|
`,wr=w`
|
|
1209
|
-
`,$r=
|
|
1209
|
+
`,$r=Ni.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Sr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=$r.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Sr.build(t):null!==(e=Sr.API)&&void 0!==e?e:Sr.API=Sr.build()}static await(t){return new Promise((e=>{let i=Sr.get(t);if(i)e(i);else{const n=$r.subscribe((()=>{i=Sr.get(t),i&&(n(),e(i))}))}}))}}var kr;const Or=Symbol("clearAfterUnitTest");class _r{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[kr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=$r.getState().uiLocale,$r.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=$r.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};d(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new At(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}kr=Or,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new _r((async(t,e)=>(await Sr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new _r((async(t,e)=>(await Sr.await()).getCustomMessageContext(t,e))));const Er=window.FluidTopicsI18nService,Cr=window.FluidTopicsCustomI18nService;var Rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class jr extends It{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Sr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
|
|
1210
1210
|
<slot></slot>
|
|
1211
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&$r.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&$r.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&$r.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&$r.actions.setNoCustom(this.noCustom),t.has("editorMode")&&$r.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&$r.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&$r.actions.setSession(this.session),t.has("availableUiLocales")&&$r.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Er.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}jr.elementDefinitions={},jr.styles=wr,Rr([s()],jr.prototype,"baseUrl",void 0),Rr([s()],jr.prototype,"apiIntegrationIdentifier",void 0),Rr([s()],jr.prototype,"uiLocale",void 0),Rr([p([])],jr.prototype,"availableUiLocales",void 0),Rr([s({type:Boolean})],jr.prototype,"editorMode",void 0),Rr([s({type:Boolean})],jr.prototype,"noCustom",void 0),Rr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Rr([s({type:Boolean})],jr.prototype,"withManualResources",void 0),Rr([p([])],jr.prototype,"messageContexts",void 0),Rr([p(void 0)],jr.prototype,"session",void 0),Rr([s({type:Object})],jr.prototype,"apiProvider",void 0),f("ft-app-context")(jr);var Nr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ir=Symbol("i18nProperties"),
|
|
1211
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&$r.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&$r.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&$r.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&$r.actions.setNoCustom(this.noCustom),t.has("editorMode")&&$r.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&$r.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&$r.actions.setSession(this.session),t.has("availableUiLocales")&&$r.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Er.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}jr.elementDefinitions={},jr.styles=wr,Rr([s()],jr.prototype,"baseUrl",void 0),Rr([s()],jr.prototype,"apiIntegrationIdentifier",void 0),Rr([s()],jr.prototype,"uiLocale",void 0),Rr([p([])],jr.prototype,"availableUiLocales",void 0),Rr([s({type:Boolean})],jr.prototype,"editorMode",void 0),Rr([s({type:Boolean})],jr.prototype,"noCustom",void 0),Rr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Rr([s({type:Boolean})],jr.prototype,"withManualResources",void 0),Rr([p([])],jr.prototype,"messageContexts",void 0),Rr([p(void 0)],jr.prototype,"session",void 0),Rr([s({type:Object})],jr.prototype,"apiProvider",void 0),f("ft-app-context")(jr);var Nr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ir=Symbol("i18nProperties"),Tr=Symbol("i18nUnsubs");function Mr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Cr:Er}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[Ir])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[Ir])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ir]&&new Set([...this[Ir].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Tr].has(t)||this[Tr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Tr].forEach((t=>t())),this[Tr].clear()}}return e=Tr,Nr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ar extends(Mr(It)){}class Ur extends(Mr(Wt)){}var Fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zr extends Ur{constructor(){super(),this.editorMode=!1,this.addStore($r)}render(){return this.key&&this.context?tt`
|
|
1212
1212
|
<span class="ft-i18n">
|
|
1213
1213
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1214
1214
|
</span>
|
|
1215
|
-
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}zr.elementDefinitions={},zr.styles=xr,Fr([
|
|
1215
|
+
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}zr.elementDefinitions={},zr.styles=xr,Fr([Ii()],zr.prototype,"editorMode",void 0),Fr([s()],zr.prototype,"context",void 0),Fr([s()],zr.prototype,"key",void 0),Fr([p([])],zr.prototype,"args",void 0),Fr([s()],zr.prototype,"defaultMessage",void 0);class Pr{static build(t){return new Pr(t)}static fromGwt(t){return new Pr(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Er.resolveMessage(this.name,e,...t)})}}const Dr=(t,e)=>(i,n)=>{var o,r;i.constructor.createProperty(n,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(o=t.key)&&void 0!==o?o:n};i[Ir]=null!==(r=i[Ir])&&void 0!==r?r:new Map,i[Ir].set(n,s)};f("ft-i18n")(zr);const Lr=Pr.build("integratedFeedbackComponent"),Br={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Wr=Pr.build("inDesignerFeedbackComponent"),Hr={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Kr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vr extends Ar{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Lr,Br),this.addI18nContext(Wr,Hr)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?tt`
|
|
1216
1216
|
<div class="ft-reader-feedback">
|
|
1217
1217
|
${this.hideTitle?it:tt`
|
|
1218
1218
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1232,11 +1232,11 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1232
1232
|
${this.renderRatingDate()}
|
|
1233
1233
|
</ft-typography>
|
|
1234
1234
|
</div>
|
|
1235
|
-
`:this.placeholderInEditor(this.userHasRatingRole?Wr.messages.ratingNotConfigured():Wr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return
|
|
1235
|
+
`:this.placeholderInEditor(this.userHasRatingRole?Wr.messages.ratingNotConfigured():Wr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Lr.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Lr.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Lr.messages.ratedToday():Lr.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return tt`
|
|
1236
1236
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1237
1237
|
${br(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return tt`
|
|
1238
1238
|
<ft-button round part="rating-stars-${n}"
|
|
1239
|
-
label="${
|
|
1239
|
+
label="${Lr.messages.starsRating(n)}"
|
|
1240
1240
|
tooltipPosition="top"
|
|
1241
1241
|
.iconVariant=${this.iconVariant}
|
|
1242
1242
|
icon="${i?this.filledStarIcon:this.emptyStarIcon}"
|
|
@@ -1253,13 +1253,13 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1253
1253
|
?selected=${e}
|
|
1254
1254
|
.iconVariant=${this.iconVariant}
|
|
1255
1255
|
icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1256
|
-
${
|
|
1256
|
+
${Lr.messages.like()}
|
|
1257
1257
|
</ft-switch-option>
|
|
1258
1258
|
<ft-switch-option .value=${0}
|
|
1259
1259
|
?selected=${t}
|
|
1260
1260
|
.iconVariant=${this.iconVariant}
|
|
1261
1261
|
icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1262
|
-
${
|
|
1262
|
+
${Lr.messages.dislike()}
|
|
1263
1263
|
</ft-switch-option>
|
|
1264
1264
|
</ft-switch>
|
|
1265
1265
|
`;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return tt`
|
|
@@ -1268,11 +1268,11 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1268
1268
|
part="rating rating-dichotomous">
|
|
1269
1269
|
<ft-switch-option .value=${1}
|
|
1270
1270
|
?selected=${n}>
|
|
1271
|
-
${
|
|
1271
|
+
${Lr.messages.dichotomousYes()}
|
|
1272
1272
|
</ft-switch-option>
|
|
1273
1273
|
<ft-switch-option .value=${0}
|
|
1274
1274
|
?selected=${i}>
|
|
1275
|
-
${
|
|
1275
|
+
${Lr.messages.dichotomousNo()}
|
|
1276
1276
|
</ft-switch-option>
|
|
1277
1277
|
</ft-switch>
|
|
1278
1278
|
`}return it}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=tt`
|
|
@@ -1281,7 +1281,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1281
1281
|
?disabled=${!this.feedbackMessage}
|
|
1282
1282
|
@click=${()=>t?this.onMailerFeedbackSent():this.sendFeedback()}
|
|
1283
1283
|
part="send-feedback">
|
|
1284
|
-
${
|
|
1284
|
+
${Lr.messages.okButton()}
|
|
1285
1285
|
</ft-button>
|
|
1286
1286
|
`;return t&&(e=tt`
|
|
1287
1287
|
<a class="ft-reader-feedback--feedback-link" href="${t}">
|
|
@@ -1294,7 +1294,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1294
1294
|
</ft-typography>
|
|
1295
1295
|
<ft-text-area outlined
|
|
1296
1296
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1297
|
-
label="${
|
|
1297
|
+
label="${Lr.messages.feedbackInputLabel()}"
|
|
1298
1298
|
@live-change=${t=>this.feedbackMessage=t.detail.trim()}
|
|
1299
1299
|
></ft-text-area>
|
|
1300
1300
|
${e}
|
|
@@ -1307,7 +1307,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1307
1307
|
<ft-icon>INFO</ft-icon>
|
|
1308
1308
|
</ft-tooltip>
|
|
1309
1309
|
</div>
|
|
1310
|
-
`:it}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}
|
|
1310
|
+
`:it}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Vr.elementDefinitions={"ft-button":mr,"ft-typography":bo,"ft-icon":Eo,"ft-tooltip":Uo,"ft-switch":qo,"ft-switch-option":Ko,"ft-text-area":lr},Vr.styles=ao,Kr([s({type:Boolean})],Vr.prototype,"editorMode",void 0),Kr([s({type:Boolean})],Vr.prototype,"hideTitle",void 0),Kr([s({type:Boolean})],Vr.prototype,"ratingAllowed",void 0),Kr([s({attribute:!1})],Vr.prototype,"i18nProperties",void 0),Kr([s({attribute:!1})],Vr.prototype,"ratingSummary",void 0),Kr([s({attribute:!1})],Vr.prototype,"user",void 0),Kr([c(".ft-reader-feedback--feedback-input")],Vr.prototype,"feedbackInput",void 0),Kr([a()],Vr.prototype,"feedbackMessage",void 0),Kr([s()],Vr.prototype,"iconVariant",void 0),Kr([s()],Vr.prototype,"emptyStarIcon",void 0),Kr([s()],Vr.prototype,"filledStarIcon",void 0),Kr([s()],Vr.prototype,"emptyLikeIcon",void 0),Kr([s()],Vr.prototype,"filledLikeIcon",void 0),Kr([s()],Vr.prototype,"emptyDislikeIcon",void 0),Kr([s()],Vr.prototype,"filledDislikeIcon",void 0),Kr([s()],Vr.prototype,"feedbackMailLinkBuilder",void 0);const Zr=Pr.fromGwt("server");class qr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){var r;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=n.bodyMetadataIds)&&void 0!==r?r:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const n=encodeURIComponent(this.subject+" "+this.subjectMetadata),o=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Zr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${n}&body=${o}`}}var Gr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Jr extends(Mr(Di)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Oo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:Lr.properties.mapFeedbackMainTitle(),ratingSectionTitle:Lr.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Lr.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Lr.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore($r)}render(){return this.map&&(this.editorMode||this.componentVisible)?tt`
|
|
1311
1311
|
<ft-reader-feedback
|
|
1312
1312
|
ratingAllowed
|
|
1313
1313
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1333,7 +1333,7 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1333
1333
|
display: none !important;
|
|
1334
1334
|
}
|
|
1335
1335
|
</style>
|
|
1336
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,n;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:
|
|
1336
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,n;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new Ot({type:"info",message:Lr.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Jr.elementDefinitions={"ft-reader-feedback":Vr},Gr([Ii({store:$r.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Jr.prototype,"user",void 0),Gr([Ii({store:"reader"})],Jr.prototype,"map",void 0),Gr([Ii({store:$r.name})],Jr.prototype,"editorMode",void 0),Gr([Ii({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Jr.prototype,"configuration",void 0),Gr([a()],Jr.prototype,"ratingSummary",void 0),Gr([s({type:Boolean})],Jr.prototype,"hideTitle",void 0),Gr([s()],Jr.prototype,"iconVariant",void 0),Gr([s()],Jr.prototype,"emptyStarIcon",void 0),Gr([s()],Jr.prototype,"filledStarIcon",void 0),Gr([s()],Jr.prototype,"emptyLikeIcon",void 0),Gr([s()],Jr.prototype,"filledLikeIcon",void 0),Gr([s()],Jr.prototype,"emptyDislikeIcon",void 0),Gr([s()],Jr.prototype,"filledDislikeIcon",void 0),Gr([c("ft-reader-feedback")],Jr.prototype,"readerFeedback",void 0),Gr([Dr(Zr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Jr.prototype,"mailSubject",void 0);var Xr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Qr=Symbol("registerInterval");class ts extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Qr]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Qr]):this.dispatchEvent(new Yr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Qr,Xr([a()],i.prototype,"tocNode",void 0),Xr([a()],i.prototype,"disableContextInteractions",void 0),i}(Di)){}var es=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class is extends(Mr(ts)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Oo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:Lr.properties.topicFeedbackMainTitle(),ratingSectionTitle:Lr.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Lr.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Lr.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore($r)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?tt`
|
|
1337
1337
|
<ft-reader-feedback
|
|
1338
1338
|
.i18nProperties=${this.i18nProperties}
|
|
1339
1339
|
?ratingAllowed=${this.tocNode.hasRating}
|
|
@@ -1359,4 +1359,4 @@ const{I:cr}=bt,hr=()=>document.createComment(""),ur=(t,e,i)=>{var n;const o=t._$
|
|
|
1359
1359
|
display: none !important;
|
|
1360
1360
|
}
|
|
1361
1361
|
</style>
|
|
1362
|
-
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,n;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:
|
|
1362
|
+
`}get componentVisible(){var t;return!!this.user&&this.user.roles.includes("FEEDBACK_USER")||!!this.user&&this.user.roles.includes("RATING_USER")&&"NO_RATING"!==(null===(t=this.ratingSummary)||void 0===t?void 0:t.type)}updated(t){var e,i,n;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(n=this.user)||void 0===n?void 0:n.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new Ot({type:"info",message:Lr.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ot({type:"info",message:Wr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ot({type:"error",message:Lr.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}is.elementDefinitions={"ft-reader-feedback":Vr},es([Ii({store:$r.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],is.prototype,"user",void 0),es([Ii({store:"reader"})],is.prototype,"map",void 0),es([Ii({store:$r.name})],is.prototype,"editorMode",void 0),es([Ii({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],is.prototype,"configuration",void 0),es([a()],is.prototype,"ratingSummary",void 0),es([s({type:Boolean})],is.prototype,"hideTitle",void 0),es([s()],is.prototype,"iconVariant",void 0),es([s()],is.prototype,"emptyStarIcon",void 0),es([s()],is.prototype,"filledStarIcon",void 0),es([s()],is.prototype,"emptyLikeIcon",void 0),es([s()],is.prototype,"filledLikeIcon",void 0),es([s()],is.prototype,"emptyDislikeIcon",void 0),es([s()],is.prototype,"filledDislikeIcon",void 0),es([c("ft-reader-feedback")],is.prototype,"readerFeedback",void 0),es([Dr(Zr.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],is.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")(Jr),f("ft-reader-topic-feedback")(is),t.FtReaderFeedbackCssVariables=so,t.FtReaderMapFeedback=Jr,t.FtReaderTopicFeedback=is,t.styles=ao}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-feedback",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "Feedback forms for a map and its topics in an integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.0.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.0.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.0.48",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.0.48",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.0.48",
|
|
25
25
|
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "a07dca06ede4358afbfe00c06b1ea1da90e3ff51"
|
|
28
28
|
}
|