@fluid-topics/ft-search-saved-searches 1.0.36 → 1.0.37

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.
@@ -4,16 +4,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { html, nothing, css } from "lit";
7
+ import { css, html, nothing } from "lit";
8
8
  import { property } from "lit/decorators.js";
9
9
  import { FtSearchComponent } from "@fluid-topics/ft-search-context/build/registration";
10
10
  import "@fluid-topics/ft-card";
11
11
  import "@fluid-topics/ft-icon";
12
12
  import "@fluid-topics/ft-button";
13
+ import { setVariable } from "@fluid-topics/ft-wc-utils";
13
14
  import { FtIcon } from "@fluid-topics/ft-icon";
14
15
  import { FtCard, FtCardCssVariables } from "@fluid-topics/ft-card";
15
16
  import { FtButton, FtButtonCssVariables } from "@fluid-topics/ft-button";
16
- import { setVariable } from "@fluid-topics/ft-wc-utils";
17
17
  import { FtSearchSavedSearchesCssVariables } from "./ft-search-saved-searches.css";
18
18
  import { FtRippleCssVariables } from "@fluid-topics/ft-ripple";
19
19
  import { withI18n } from "@fluid-topics/ft-i18n";
@@ -44,28 +44,44 @@ class FtSearchSavedSearch extends withI18n(FtSearchComponent) {
44
44
  }
45
45
  renderDescription() {
46
46
  var _a;
47
- return this.showDescription ? html `<div id="description" class="content">${(_a = this.search) === null || _a === void 0 ? void 0 : _a.description}</div>` : nothing;
47
+ return this.showDescription
48
+ ? html `<div id="description" class="content">${(_a = this.search) === null || _a === void 0 ? void 0 : _a.description}</div>`
49
+ : nothing;
48
50
  }
49
51
  renderSearchButton() {
50
- return this.showSearchButton ? html `<div id="searchButton" class="content"><ft-button id="search" icon="search">${savedSearches.messages.search()}</ft-button></div>` : nothing;
52
+ return this.showSearchButton
53
+ ? html `<div id="searchButton" class="content"><ft-button id="search" icon="search">${savedSearches.messages.search()}</ft-button></div>`
54
+ : nothing;
51
55
  }
52
56
  renderAlertStatus() {
53
57
  var _a;
54
- return this.showAlertStatus && ((_a = this.search) === null || _a === void 0 ? void 0 : _a.alert) ? html `<ft-icon id="alertStatus" slot="header">alert</ft-icon>` : nothing;
58
+ return this.showAlertStatus && ((_a = this.search) === null || _a === void 0 ? void 0 : _a.alert)
59
+ ? html `<ft-icon id="alertStatus" slot="header">alert</ft-icon>`
60
+ : nothing;
55
61
  }
56
62
  // See net.antidot.fluidtopics.client.application.mylibrary.shared.MyLibraryTagWidgetFactory.createMySearchTags
57
63
  renderSearchFilters() {
58
64
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
59
65
  return this.showSearchFilters ? html `<div id="searchFilters" class="content">
60
- ${((_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.searchRequest.query.length) !== null && _b !== void 0 ? _b : 0 > 0) ? this.renderMetadata(savedSearches.messages.keywords(), (_c = this.search) === null || _c === void 0 ? void 0 : _c.searchRequest.query, true) : nothing}
66
+ ${((_b = (_a = this.search) === null || _a === void 0 ? void 0 : _a.searchRequest.query.length) !== null && _b !== void 0 ? _b : 0 > 0)
67
+ ? this.renderMetadata(savedSearches.messages.keywords(), (_c = this.search) === null || _c === void 0 ? void 0 : _c.searchRequest.query, true)
68
+ : nothing}
61
69
  ${(_d = this.search) === null || _d === void 0 ? void 0 : _d.searchRequest.filters.map(f => this.renderMetadata(f.label, f.values))}
62
- ${((_g = (_f = (_e = this.search) === null || _e === void 0 ? void 0 : _e.searchRequest.contentLocale) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0 > 0) ? this.renderMetadata(savedSearches.messages.language(), (_h = this.search) === null || _h === void 0 ? void 0 : _h.searchRequest.contentLocale, true) : nothing}
63
- ${((_l = (_k = (_j = this.search) === null || _j === void 0 ? void 0 : _j.searchRequest.sort[0]) === null || _k === void 0 ? void 0 : _k.key.length) !== null && _l !== void 0 ? _l : 0 > 0) ? this.renderMetadata(savedSearches.messages.sort(), this.mapSortKey((_m = this.search) === null || _m === void 0 ? void 0 : _m.searchRequest.sort[0].key), true) : nothing}
64
- ${((_o = this.search) === null || _o === void 0 ? void 0 : _o.searchRequest.periodFilter) ? this.renderMetadata(savedSearches.messages.period(), this.mapPeriodFilter((_p = this.search) === null || _p === void 0 ? void 0 : _p.searchRequest.periodFilter), true) : nothing}
70
+ ${((_g = (_f = (_e = this.search) === null || _e === void 0 ? void 0 : _e.searchRequest.contentLocale) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0 > 0)
71
+ ? this.renderMetadata(savedSearches.messages.language(), (_h = this.search) === null || _h === void 0 ? void 0 : _h.searchRequest.contentLocale, true)
72
+ : nothing}
73
+ ${((_l = (_k = (_j = this.search) === null || _j === void 0 ? void 0 : _j.searchRequest.sort[0]) === null || _k === void 0 ? void 0 : _k.key.length) !== null && _l !== void 0 ? _l : 0 > 0)
74
+ ? this.renderMetadata(savedSearches.messages.sort(), this.mapSortKey((_m = this.search) === null || _m === void 0 ? void 0 : _m.searchRequest.sort[0].key), true)
75
+ : nothing}
76
+ ${((_o = this.search) === null || _o === void 0 ? void 0 : _o.searchRequest.periodFilter)
77
+ ? this.renderMetadata(savedSearches.messages.period(), this.mapPeriodFilter((_p = this.search) === null || _p === void 0 ? void 0 : _p.searchRequest.periodFilter), true)
78
+ : nothing}
65
79
  </div>` : nothing;
66
80
  }
67
81
  renderMetadata(key, values, highlighted = false) {
68
- return html `<ft-chip dense ?highlighted=${highlighted}><span class="metadata-label">${key}</span><span class="metadata-values">${Array.isArray(values) ? values.join(", ") : values}</span></ft-chip>`;
82
+ return html `<ft-chip dense ?highlighted=${highlighted}><span class="metadata-label">${key}</span><span class="metadata-values">${Array.isArray(values)
83
+ ? values.join(", ")
84
+ : values}</span></ft-chip>`;
69
85
  }
70
86
  mapSortKey(key) {
71
87
  switch (key) {
@@ -33,10 +33,12 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
33
33
  render() {
34
34
  var _a;
35
35
  if (this.editorMode && !this.userHasRights) {
36
- return html `<ft-typography>${savedSearches.messages.missingRole(this.requiredRole)}</ft-typography>`;
36
+ return html `
37
+ <ft-typography>${savedSearches.messages.missingRole(this.requiredRole)}</ft-typography>`;
37
38
  }
38
39
  else if (this.editorMode && this.isEmpty) {
39
- return html `<ft-typography>${savedSearches.messages.displaySavedSearchesHere()}</ft-typography>`;
40
+ return html `
41
+ <ft-typography>${savedSearches.messages.displaySavedSearchesHere()}</ft-typography>`;
40
42
  }
41
43
  else if (this.userHasRights && !this.isEmpty) {
42
44
  return html `
@@ -96,7 +98,8 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
96
98
  };
97
99
  }
98
100
  mapSearchFilter(f) {
99
- return { key: f.key,
101
+ return {
102
+ key: f.key,
100
103
  values: f.values,
101
104
  negative: f.negative
102
105
  };
@@ -108,8 +111,9 @@ class FtSearchSavedSearches extends withI18n(FtSearchComponent) {
108
111
  setSearch(mySearchRequest) {
109
112
  var _a;
110
113
  const ftSearchRequest = this.toFtSearchRequest(mySearchRequest);
111
- if (ftSearchRequest != undefined)
114
+ if (ftSearchRequest != undefined) {
112
115
  (_a = this.stateManager) === null || _a === void 0 ? void 0 : _a.setRequest(ftSearchRequest);
116
+ }
113
117
  }
114
118
  update(changedProperties) {
115
119
  super.update(changedProperties);
@@ -88,7 +88,7 @@
88
88
  opacity: ${l.opacityContentOnSurfacePressed};
89
89
  transform: translate(-50%, -50%) scale(1);
90
90
  }
91
- `;var g,y=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class b extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
91
+ `;var g,y=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class b extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
92
92
  <style>
93
93
  .ft-ripple .ft-ripple--effect,
94
94
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -105,7 +105,7 @@
105
105
  <div class="ft-ripple--background"></div>
106
106
  <div class="ft-ripple--effect"></div>
107
107
  </div>
108
- `}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}b.elementDefinitions={},b.styles=v,y([o.property({type:Boolean})],b.prototype,"primary",void 0),y([o.property({type:Boolean})],b.prototype,"secondary",void 0),y([o.property({type:Boolean})],b.prototype,"unbounded",void 0),y([o.property({type:Boolean})],b.prototype,"activated",void 0),y([o.property({type:Boolean})],b.prototype,"selected",void 0),y([o.property({type:Boolean})],b.prototype,"disabled",void 0),y([o.state()],b.prototype,"hovered",void 0),y([o.state()],b.prototype,"focused",void 0),y([o.state()],b.prototype,"pressed",void 0),y([o.state()],b.prototype,"rippling",void 0),y([o.state()],b.prototype,"rippleSize",void 0),y([o.state()],b.prototype,"originX",void 0),y([o.state()],b.prototype,"originY",void 0),y([o.query(".ft-ripple")],b.prototype,"ripple",void 0),y([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const x=window,m=x.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,E=`<${k}>`,O=document,C=()=>O.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,I="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,U=/>/g,R=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,j=/"/g,_=/^(?:script|style|textarea|title)$/i,L=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),M=new WeakMap,F=O.createTreeWalker(O,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=B;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===B?"!--"===l[1]?s=z:void 0!==l[1]?s=U:void 0!==l[2]?(_.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=R):void 0!==l[3]&&(s=R):s===R?">"===l[0]?(s=null!=n?n:B,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?R:'"'===l[3]?j:N):s===j||s===N?s=R:s===z||s===U?s=B:(s=R,n=void 0);const p=s===R&&t[i+1].startsWith("/>")?" ":"";r+=s===B?e+E:h>=0?(o.push(a),e.slice(0,h)+w+e.slice(h)+S+p):e+S+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=K.createElement(l,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(S)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(S),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?Y:"@"===i[1]?J:q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),F.nextNode(),a.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var n,r,s,a;if(i===P)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class W{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);F.currentNode=n;let r=F.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new G(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new Q(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=F.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),A(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==D&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new W(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new K(t)),i}T(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.k(C()),this.k(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=Z(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Z(this,o[e+s],i,s),a===P&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const X=m?m.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:D)===P)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const tt=x.litHtmlPolyfillSupport;null==tt||tt(K,G),(null!==(g=x.litHtmlVersions)&&void 0!==g?g:x.litHtmlVersions=[]).push("2.7.3");
108
+ `}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 i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),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 i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}b.elementDefinitions={},b.styles=v,y([o.property({type:Boolean})],b.prototype,"primary",void 0),y([o.property({type:Boolean})],b.prototype,"secondary",void 0),y([o.property({type:Boolean})],b.prototype,"unbounded",void 0),y([o.property({type:Boolean})],b.prototype,"activated",void 0),y([o.property({type:Boolean})],b.prototype,"selected",void 0),y([o.property({type:Boolean})],b.prototype,"disabled",void 0),y([o.state()],b.prototype,"hovered",void 0),y([o.state()],b.prototype,"focused",void 0),y([o.state()],b.prototype,"pressed",void 0),y([o.state()],b.prototype,"rippling",void 0),y([o.state()],b.prototype,"rippleSize",void 0),y([o.state()],b.prototype,"originX",void 0),y([o.state()],b.prototype,"originY",void 0),y([o.query(".ft-ripple")],b.prototype,"ripple",void 0),y([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const x=window,m=x.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,E=`<${k}>`,O=document,C=()=>O.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,I="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,U=/>/g,R=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,j=/"/g,_=/^(?:script|style|textarea|title)$/i,L=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),M=new WeakMap,F=O.createTreeWalker(O,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=B;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===B?"!--"===l[1]?s=z:void 0!==l[1]?s=U:void 0!==l[2]?(_.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=R):void 0!==l[3]&&(s=R):s===R?">"===l[0]?(s=null!=n?n:B,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?R:'"'===l[3]?j:N):s===j||s===N?s=R:s===z||s===U?s=B:(s=R,n=void 0);const p=s===R&&t[i+1].startsWith("/>")?" ":"";r+=s===B?e+E:h>=0?(o.push(a),e.slice(0,h)+w+e.slice(h)+S+p):e+S+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=K.createElement(l,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(S)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(S),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?Y:"@"===i[1]?J:q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),F.nextNode(),a.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var n,r,s,a;if(i===P)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=A(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class W{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);F.currentNode=n;let r=F.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new G(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new Q(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=F.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),A(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==D&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new W(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new K(t)),i}T(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.k(C()),this.k(C()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=Z(this,t,i,0),r=!A(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Z(this,o[e+s],i,s),a===P&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const X=m?m.emptyScript:"";class Y extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class J extends q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:D)===P)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const tt=x.litHtmlPolyfillSupport;null==tt||tt(K,G),(null!==(g=x.litHtmlVersions)&&void 0!==g?g:x.litHtmlVersions=[]).push("2.7.3");
109
109
  /**
110
110
  * @license
111
111
  * Copyright 2020 Google LLC
@@ -254,7 +254,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
254
254
  outline-width: ${xi.selectedOutlineWidth};
255
255
  outline-color: ${xi.selectedOutlineColor};
256
256
  border-radius: ${xi.selectedBorderRadius};
257
- ${i.setVariable(l.borderRadius,xi.selectedBorderRadius)};
257
+ ${i.setVariable(l.borderRadius,xi.selectedBorderRadius)};
258
258
  box-shadow: ${xi.elevation04};
259
259
  }
260
260
 
@@ -300,7 +300,9 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
300
300
  <slot name="action"></slot>
301
301
  </div>
302
302
  <div id="content" part="content">
303
- <ft-typography variant="body2"><slot></slot></ft-typography>
303
+ <ft-typography variant="body2">
304
+ <slot></slot>
305
+ </ft-typography>
304
306
  </div>
305
307
  </div>
306
308
  `}}Oi.elementDefinitions={"ft-ripple":b,"ft-typography":bi},Oi.styles=mi,Ei([o.property()],Oi.prototype,"title",void 0),Ei([o.property({type:Boolean})],Oi.prototype,"clickable",void 0),Ei([o.property({type:Boolean})],Oi.prototype,"selected",void 0),Ei([o.property({type:Boolean})],Oi.prototype,"noHeader",void 0),i.customElement("ft-card")(Oi);const Ci={activeButtonTextColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-active-button-text-color",i.designSystemVariables.colorPrimary),activeSearchBackgroundColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-background-color",i.designSystemVariables.colorContent),activeSearchBorderStyle:i.FtCssVariableFactory.create("--ft-search-saved-searches-active-search-border-style","UNKNOWN",null!==($i=xi.selectedOutlineStyle.lastResortDefaultValue())&&void 0!==$i?$i:"solid"),activeSearchBorderColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-border-color",i.designSystemVariables.colorPrimary),activeSearchBorderWidth:i.FtCssVariableFactory.create("--ft-search-saved-searches-active-search-border-width","SIZE",null!==(wi=xi.selectedOutlineWidth.lastResortDefaultValue())&&void 0!==wi?wi:"2px"),activeSearchBorderRadius:i.FtCssVariableFactory.extend("--ft-search-saved-searches-active-search-border-radius",i.designSystemVariables.borderRadiusM),inactiveButtonTextColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-button-text-color",i.designSystemVariables.colorPrimary),inactiveSearchBackgroundColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-background-color",i.designSystemVariables.colorContent),inactiveSearchBorderStyle:i.FtCssVariableFactory.create("--ft-search-saved-searches-inactive-search-border-style","UNKNOWN",null!==(Si=xi.outlineStyle.lastResortDefaultValue())&&void 0!==Si?Si:"solid"),inactiveSearchBorderColor:i.FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-border-color",i.designSystemVariables.colorPrimary),inactiveSearchBorderWidth:i.FtCssVariableFactory.create("--ft-search-saved-searches-inactive-search-border-width","SIZE",null!==(ki=xi.outlineWidth.lastResortDefaultValue())&&void 0!==ki?ki:"0"),inactiveSearchBorderRadius:i.FtCssVariableFactory.extend("--ft-search-saved-searches-inactive-search-border-radius",i.designSystemVariables.borderRadiusM)},Ai=e.css`
@@ -345,7 +347,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
345
347
 
346
348
  i.ft-icon.ft-icon--fluid-topics {
347
349
  font-family: ${Zi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
348
-
350
+
349
351
  /* Ugly fix because font is broken */
350
352
  font-size: calc(0.75 * ${Zi.size});
351
353
  line-height: ${Zi.size};
@@ -408,7 +410,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
408
410
  @touchstart=${this.onTouch}>
409
411
  <slot></slot>
410
412
  <div part="tooltip" role="tooltip" inert
411
- class="ft-tooltip ft-tooltip--${this.validPosition}"
413
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
412
414
  ?hidden=${!this.visible}>
413
415
  <div part="tooltip-content" class="ft-tooltip--content">
414
416
  <slot name="text"></slot>
@@ -548,7 +550,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
548
550
  border: 1px solid var(--ft-button-internal-color);
549
551
  padding: calc(${he.verticalPadding} - 1px) calc(${he.horizontalPadding} - 1px);
550
552
  }
551
-
553
+
552
554
  .ft-button.ft-button--dense {
553
555
  padding: ${fe} ${ue};
554
556
  border-radius: ${de};
@@ -558,7 +560,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
558
560
  .ft-button.ft-button--dense.ft-button--outlined {
559
561
  padding: calc(${fe} - 1px) calc(${ue} - 1px);
560
562
  }
561
-
563
+
562
564
  .ft-button:not([disabled]):hover {
563
565
  cursor: pointer;
564
566
  }
@@ -650,11 +652,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
650
652
  position="${this.tooltipPosition}">
651
653
  ${t}
652
654
  </ft-tooltip>
653
- `:t}resolveIcon(){return this.loading?e.html`
655
+ `:t}resolveIcon(){return this.loading?e.html`
654
656
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
655
657
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}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}}be.elementDefinitions={"ft-ripple":b,"ft-tooltip":ne,"ft-typography":bi,"ft-icon":Vi,"ft-loader":ae},be.styles=[i.safariEllipsisFix,ge],ye([o.property({type:String,reflect:!0})],be.prototype,"role",void 0),ye([o.property({type:Boolean})],be.prototype,"primary",void 0),ye([o.property({type:Boolean})],be.prototype,"outlined",void 0),ye([o.property({type:Boolean})],be.prototype,"disabled",void 0),ye([o.property({type:Boolean})],be.prototype,"dense",void 0),ye([o.property({type:Boolean})],be.prototype,"round",void 0),ye([o.property()],be.prototype,"label",void 0),ye([o.property()],be.prototype,"icon",void 0),ye([o.property()],be.prototype,"iconVariant",void 0),ye([o.property({type:Boolean})],be.prototype,"trailingIcon",void 0),ye([o.property({type:Boolean})],be.prototype,"loading",void 0),ye([o.property()],be.prototype,"tooltipPosition",void 0),ye([o.property({type:Boolean})],be.prototype,"hideTooltip",void 0),ye([o.property({type:Boolean})],be.prototype,"forceTooltip",void 0),ye([o.query(".ft-button")],be.prototype,"button",void 0),ye([o.query(".ft-button--label slot")],be.prototype,"slottedContent",void 0),i.customElement("ft-button")(be);const xe=e.css`
656
658
  `;var me=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const $e=Symbol("i18nProperties"),we=Symbol("i18nUnsubs");function Se(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?ji:Ni}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[$e])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[$e])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[$e]&&new Set([...this[$e].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[we].has(t)||this[we].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[we].forEach((t=>t())),this[we].clear()}}return i=we,me([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class ke extends(Se(i.FtLitElement)){}class Ee extends(Se(i.FtLitElementRedux)){}var Oe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ce extends Ee{constructor(){super(),this.editorMode=!1,this.addStore(Ii)}render(){return this.key&&this.context?e.html`
657
- <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
659
+ <span class="ft-i18n">
660
+ ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
661
+ </span>
658
662
  `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Ce.elementDefinitions={},Ce.styles=xe,Oe([i.redux()],Ce.prototype,"editorMode",void 0),Oe([o.property()],Ce.prototype,"context",void 0),Oe([o.property()],Ce.prototype,"key",void 0),Oe([i.jsonProperty([])],Ce.prototype,"args",void 0),Oe([o.property()],Ce.prototype,"defaultMessage",void 0);class Ae{static build(t){return new Ae(t)}static fromGwt(t){return new Ae(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>Ni.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(Ce);const Te=Ae.build("savedSearchesComponent"),Ie={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search"},Be=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ze={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Be,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Dt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Be),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ue=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Re={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ue,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ue)},Ne=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),_e=[i.noTextSelect,e.css`
659
663
  :host {
660
664
  display: inline-block;
@@ -811,11 +815,11 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
811
815
  icon="${this.internalIcon}"
812
816
  label="${this.iconLabel}"
813
817
  ></ft-button>
814
- `:e.html`
818
+ `:e.html`
815
819
  <div class="ft-chip--icon-container ft-no-text-select">
816
820
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
817
821
  </div>
818
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Pe))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Pe))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}De.elementDefinitions={"ft-ripple":b,"ft-typography":bi,"ft-icon":Vi,"ft-button":be},De.styles=_e,Le([o.property({type:Boolean})],De.prototype,"highlighted",void 0),Le([o.property({type:Boolean})],De.prototype,"removable",void 0),Le([o.property({type:Boolean})],De.prototype,"disabled",void 0),Le([o.property({type:Boolean})],De.prototype,"clickable",void 0),Le([o.property({type:Boolean})],De.prototype,"iconClickable",void 0),Le([o.property({type:Boolean})],De.prototype,"dense",void 0),Le([o.property({type:Boolean})],De.prototype,"multiLine",void 0),Le([o.property()],De.prototype,"label",void 0),Le([o.property()],De.prototype,"iconLabel",void 0),Le([o.property()],De.prototype,"icon",void 0),Le([o.property()],De.prototype,"iconVariant",void 0),Le([o.property({type:Boolean})],De.prototype,"trailingIcon",void 0),Le([o.query("ft-typography slot")],De.prototype,"slottedContent",void 0),i.customElement("ft-chip")(De);var Me,Fe,He,Ke,Ze,We,Ge,qe,Ve,Xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ye extends(Se(Fi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(Te,Ie)}render(){var t;return e.html`
822
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Pe))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Pe))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}De.elementDefinitions={"ft-ripple":b,"ft-typography":bi,"ft-icon":Vi,"ft-button":be},De.styles=_e,Le([o.property({type:Boolean})],De.prototype,"highlighted",void 0),Le([o.property({type:Boolean})],De.prototype,"removable",void 0),Le([o.property({type:Boolean})],De.prototype,"disabled",void 0),Le([o.property({type:Boolean})],De.prototype,"clickable",void 0),Le([o.property({type:Boolean})],De.prototype,"iconClickable",void 0),Le([o.property({type:Boolean})],De.prototype,"dense",void 0),Le([o.property({type:Boolean})],De.prototype,"multiLine",void 0),Le([o.property()],De.prototype,"label",void 0),Le([o.property()],De.prototype,"iconLabel",void 0),Le([o.property()],De.prototype,"icon",void 0),Le([o.property()],De.prototype,"iconVariant",void 0),Le([o.property({type:Boolean})],De.prototype,"trailingIcon",void 0),Le([o.query("ft-typography slot")],De.prototype,"slottedContent",void 0),i.customElement("ft-chip")(De);var Me,Fe,He,Ke,Ze,We,Ge,qe,Ve,Xe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ye extends(Se(Fi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(Te,Ie)}render(){var t;return e.html`
819
823
  <ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
820
824
  ${this.renderAlertStatus()}
821
825
  <div id="container">
@@ -879,7 +883,9 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
879
883
  margin-right: 0.4em;
880
884
  margin-left: 0.2em;
881
885
  }
882
- `,Xe([o.property()],Ye.prototype,"search",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showDescription",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showSearchFilters",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showSearchButton",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showAlertStatus",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"selected",void 0),function(t){!function(i){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var i={next:function(){var i=t.shift();return{done:void 0===i,value:i}}};return e.iterable&&(i[Symbol.iterator]=function(){return i}),i}function l(t){this.map={},t instanceof l?t.forEach((function(t,i){this.append(i,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(i){this.append(i,t[i])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(i,e){t.onload=function(){i(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var i=new FileReader,e=c(i);return i.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var i=new Uint8Array(t.byteLength);return i.set(new Uint8Array(t)),i.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,i,e,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,i=new FileReader,e=c(i),i.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var i=new Uint8Array(t),e=new Array(i.length),o=0;o<i.length;o++)e[o]=String.fromCharCode(i[o]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,i){t=r(t),i=s(i);var e=this.map[t];this.map[t]=e?e+", "+i:i},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,i){this.map[r(t)]=s(i)},l.prototype.forEach=function(t,i){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(i,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(i,e){t.push(e)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(i){t.push(i)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(i,e){t.push([e,i])})),a(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,i){var e,o,n=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new l(i.headers)),this.method=(e=i.method||this.method||"GET",o=e.toUpperCase(),u.indexOf(o)>-1?o:e),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var i=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),o=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");i.append(decodeURIComponent(o),decodeURIComponent(n))}})),i}function y(t,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new l(i.headers),this.url=i.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,i){if(-1===b.indexOf(i))throw new RangeError("Invalid status code");return new y(null,{status:i,headers:{location:t}})},i.DOMException=t.DOMException;try{new i.DOMException}catch(t){i.DOMException=function(t,i){this.message=t,this.name=i;var e=Error(t);this.stack=e.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function x(t,o){return new Promise((function(n,r){var s=new v(t,o);if(s.signal&&s.signal.aborted)return r(new i.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,i,e={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",i=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),o=e.shift().trim();if(o){var n=e.join(":").trim();i.append(o,n)}})),i)};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new y(o,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new i.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),s.headers.forEach((function(t,i){a.setRequestHeader(i,t)})),s.signal&&(s.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",h)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=y),i.Headers=l,i.Request=v,i.Response=y,i.fetch=x,Object.defineProperty(i,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Me||(Me={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Fe||(Fe={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(He||(He={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ke||(Ke={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(Ze||(Ze={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(We||(We={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ge||(Ge={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(qe||(qe={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ve||(Ve={}));class Je{async listMySearches(){var t;return(null===(t=Ii.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Bi.await()).listMySearches(Ii.getState().session.profile.userId):[]}}const Qe=i.FtReduxStore.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,i)=>{t.savedSearches=i.payload}},initialState:{savedSearches:void 0}});const to=new class{clear(){this.clearMySearches()}clearMySearches(){Qe.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new Je,i=await t.listMySearches();Qe.actions.setSavedSearches(i)}};var io=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class eo extends(Se(Fi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=Ve.SAVED_SEARCH_USER,this.addStore(Ii),this.addStore(Qe),this.addI18nContext(Te,Ie)}render(){var t;return this.editorMode&&!this.userHasRights?e.html`<ft-typography>${Te.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?e.html`<ft-typography>${Te.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?e.html`
886
+ `,Xe([o.property()],Ye.prototype,"search",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showDescription",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showSearchFilters",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showSearchButton",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"showAlertStatus",void 0),Xe([o.property({type:Boolean})],Ye.prototype,"selected",void 0),function(t){!function(i){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var i={next:function(){var i=t.shift();return{done:void 0===i,value:i}}};return e.iterable&&(i[Symbol.iterator]=function(){return i}),i}function l(t){this.map={},t instanceof l?t.forEach((function(t,i){this.append(i,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(i){this.append(i,t[i])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(i,e){t.onload=function(){i(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var i=new FileReader,e=c(i);return i.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var i=new Uint8Array(t.byteLength);return i.set(new Uint8Array(t)),i.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,i,e,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,i=new FileReader,e=c(i),i.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var i=new Uint8Array(t),e=new Array(i.length),o=0;o<i.length;o++)e[o]=String.fromCharCode(i[o]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,i){t=r(t),i=s(i);var e=this.map[t];this.map[t]=e?e+", "+i:i},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,i){this.map[r(t)]=s(i)},l.prototype.forEach=function(t,i){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(i,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(i,e){t.push(e)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(i){t.push(i)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(i,e){t.push([e,i])})),a(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,i){var e,o,n=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new l(i.headers)),this.method=(e=i.method||this.method||"GET",o=e.toUpperCase(),u.indexOf(o)>-1?o:e),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var i=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),o=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");i.append(decodeURIComponent(o),decodeURIComponent(n))}})),i}function y(t,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new l(i.headers),this.url=i.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,i){if(-1===b.indexOf(i))throw new RangeError("Invalid status code");return new y(null,{status:i,headers:{location:t}})},i.DOMException=t.DOMException;try{new i.DOMException}catch(t){i.DOMException=function(t,i){this.message=t,this.name=i;var e=Error(t);this.stack=e.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function x(t,o){return new Promise((function(n,r){var s=new v(t,o);if(s.signal&&s.signal.aborted)return r(new i.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,i,e={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",i=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),o=e.shift().trim();if(o){var n=e.join(":").trim();i.append(o,n)}})),i)};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new y(o,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new i.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),s.headers.forEach((function(t,i){a.setRequestHeader(i,t)})),s.signal&&(s.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",h)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=y),i.Headers=l,i.Request=v,i.Response=y,i.fetch=x,Object.defineProperty(i,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Me||(Me={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Fe||(Fe={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(He||(He={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ke||(Ke={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(Ze||(Ze={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(We||(We={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ge||(Ge={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(qe||(qe={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ve||(Ve={}));class Je{async listMySearches(){var t;return(null===(t=Ii.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Bi.await()).listMySearches(Ii.getState().session.profile.userId):[]}}const Qe=i.FtReduxStore.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,i)=>{t.savedSearches=i.payload}},initialState:{savedSearches:void 0}});const to=new class{clear(){this.clearMySearches()}clearMySearches(){Qe.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new Je,i=await t.listMySearches();Qe.actions.setSavedSearches(i)}};var io=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class eo extends(Se(Fi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=Ve.SAVED_SEARCH_USER,this.addStore(Ii),this.addStore(Qe),this.addI18nContext(Te,Ie)}render(){var t;return this.editorMode&&!this.userHasRights?e.html`
887
+ <ft-typography>${Te.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?e.html`
888
+ <ft-typography>${Te.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?e.html`
883
889
  <div id="container">
884
890
  ${s.repeat(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>e.html`
885
891
  <ft-search-saved-search
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(r,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,r=n._getDefinition(e);return r?p(i,r):o.set(i,n),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o,r),i.call(this,o,t,r)}else n.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n),i.call(this,n,t,null)}else r.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),r=e.get(n)||[];this[+i]=t,r.push(t),e.set(n,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(Lr){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,a);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let u=i.call(n,t);u||(u=h(t),e.call(n,t,u)),this===window.customElements&&(s.set(r,c),c.standInClass=u);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)o.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,u=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=u(i)||window.customElements,r=n._getDefinition(e);return r?p(i,r):o.set(i,n),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):o.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,r){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o,r),i.call(this,o,t,r)}else n.call(this,o,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n),i.call(this,n,t,null)}else r.call(this,n)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==r.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class o{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),r=e.get(n)||[];this[+i]=t,r.push(t),e.set(n,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new o(e)}})}}try{window.customElements.define("custom-element",null)}catch(Lr){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -39,7 +39,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var h;const u=null!=(null===(h=window.HTMLSlotElement)||void 0===h?void 0:h.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!f(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!f(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=i;0!=n--;){var o=r[n];if(!f(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}
42
+ */var u;const h=null!=(null===(u=window.HTMLSlotElement)||void 0===u?void 0:u.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function f(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,n,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(n=i;0!=n--;)if(!f(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!f(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(e,r[n]))return!1;for(n=i;0!=n--;){var o=r[n];if(!f(t[o],e[o]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const d=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function p(t,e){const i=()=>JSON.parse(JSON.stringify(t));return s({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
@@ -55,37 +55,37 @@ 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 M;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:U}),(null!==(O=E.reactiveElementVersions)&&void 0!==O?O:E.reactiveElementVersions=[]).push("1.6.1");const P=window,T=P.trustedTypes,B=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,L="?"+F,_=`<${L}>`,z=document,D=()=>z.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,H=t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,G=/>/g,X=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/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,rt=z.createTreeWalker(z,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let r,o=2===e?"<svg>":"",s=q;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===q?"!--"===l[1]?s=V:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=X):void 0!==l[3]&&(s=X):s===X?">"===l[0]?(s=null!=r?r:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?X:'"'===l[3]?Y:J):s===Y||s===J?s=X:s===V||s===G?s=q:(s=X,r=void 0);const u=s===X&&t[e+1].startsWith("/>")?" ":"";o+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+I+i.slice(c)+F+u):i+F+(-2===c?(n.push(void 0),e):u)}const a=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=st.createElement(l,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(I)||e.startsWith(F)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+I).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ut:"?"===e[1]?dt:"@"===e[1]?pt:ht})}else a.push({type:6,index:r})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(F),e=t.length-1;if(e>0){n.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],D()),rt.nextNode(),a.push({type:2,index:++r});n.append(t[e],D())}}}else if(8===n.nodeType)if(n.data===L)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var r,o,s,a;if(e===et)return e;let l=void 0!==n?null===(r=i._$Co)||void 0===r?void 0:r[n]:i._$Cl;const c=K(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);rt.currentNode=r;let o=rt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new vt(o,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(o=rt.nextNode(),s++)}return r}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 r;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===(r=null==n?void 0:n.isConnected)||void 0===r||r}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),K(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):H(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&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,r="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)===r)this._$AH.v(i);else{const t=new lt(r,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){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,r=0;for(const o of e)r===i.length?i.push(n=new t(this.k(D()),this.k(D()),this,this.options)):n=i[r],n._$AI(o),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ht=class{constructor(t,e,i,n,r){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,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 r=this.strings;let o=!1;if(void 0===r)t=at(this,t,e,0),o=!K(t)||t!==this._$AH&&t!==et,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),o||(o=!K(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!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 ft=T?T.emptyScript:"";let dt=class extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}},pt=class extends ht{constructor(t,e,i,n,r){super(t,e,i,n,r),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,r=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==it&&(n===it||r);r&&this.element.removeEventListener(this.name,this,n),o&&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:I,P:F,A:L,C:1,M:ot,L:lt,D:H,R:at,I:ct,V:ht,H:dt,N:pt,U:ut,F:vt},yt=P.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(M=P.litHtmlVersions)&&void 0!==M?M:P.litHtmlVersions=[]).push("2.7.3");
58
+ var M;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==j||j({ReactiveElement:U}),(null!==(O=E.reactiveElementVersions)&&void 0!==O?O:E.reactiveElementVersions=[]).push("1.6.1");const P=window,T=P.trustedTypes,B=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,L="?"+F,_=`<${L}>`,z=document,D=()=>z.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,H=t=>W(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,G=/>/g,X=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/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,rt=z.createTreeWalker(z,129,null,!1),ot=(t,e)=>{const i=t.length-1,n=[];let r,o=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===q?"!--"===l[1]?s=V:void 0!==l[1]?s=G:void 0!==l[2]?(Q.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=X):void 0!==l[3]&&(s=X):s===X?">"===l[0]?(s=null!=r?r:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?X:'"'===l[3]?Y:J):s===Y||s===J?s=X:s===V||s===G?s=q:(s=X,r=void 0);const h=s===X&&t[e+1].startsWith("/>")?" ":"";o+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+I+i.slice(c)+F+h):i+F+(-2===c?(n.push(void 0),e):h)}const a=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==B?B.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const s=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=st.createElement(l,i),rt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=rt.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(I)||e.startsWith(F)){const i=c[o++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+I).split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?pt:ut})}else a.push({type:6,index:r})}for(const e of t)n.removeAttribute(e)}if(Q.test(n.tagName)){const t=n.textContent.split(F),e=t.length-1;if(e>0){n.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],D()),rt.nextNode(),a.push({type:2,index:++r});n.append(t[e],D())}}}else if(8===n.nodeType)if(n.data===L)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(F,t+1));)a.push({type:7,index:r}),t+=F.length-1}r++}}static createElement(t,e){const i=z.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var r,o,s,a;if(e===et)return e;let l=void 0!==n?null===(r=i._$Co)||void 0===r?void 0:r[n]:i._$Cl;const c=K(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:z).importNode(i,!0);rt.currentNode=r;let o=rt.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new vt(o,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(o=rt.nextNode(),s++)}return r}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 r;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===(r=null==n?void 0:n.isConnected)||void 0===r||r}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),K(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):H(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&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,r="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)===r)this._$AH.v(i);else{const t=new lt(r,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){W(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,r=0;for(const o of e)r===i.length?i.push(n=new t(this.k(D()),this.k(D()),this,this.options)):n=i[r],n._$AI(o),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ut=class{constructor(t,e,i,n,r){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,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 r=this.strings;let o=!1;if(void 0===r)t=at(this,t,e,0),o=!K(t)||t!==this._$AH&&t!==et,o&&(this._$AH=t);else{const n=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),o||(o=!K(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const ft=T?T.emptyScript:"";let dt=class extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}},pt=class extends ut{constructor(t,e,i,n,r){super(t,e,i,n,r),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,r=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==it&&(n===it||r);r&&this.element.removeEventListener(this.name,this,n),o&&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:I,P:F,A:L,C:1,M:ot,L:lt,D:H,R:at,I:ct,V:ut,H:dt,N:pt,U:ht,F:vt},yt=P.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(M=P.litHtmlVersions)&&void 0!==M?M:P.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 U{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,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new ct(e.insertBefore(D(),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 St{static create(t,e,i){let n=t=>x(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}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 $t(t,e){return x(`${t.name}: ${e}`)}const Ot={colorPrimary:St.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:St.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:St.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:St.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:St.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:St.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:St.create("--ft-color-error","COLOR","#B00020"),colorOutline:St.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:St.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:St.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:St.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:St.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:St.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:St.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:St.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:St.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:St.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:St.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:St.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:St.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:St.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:St.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:St.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:St.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:St.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:St.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:St.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:St.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:St.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:St.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:St.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:St.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:St.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:St.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:St.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:St.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:St.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:St.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:St.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:St.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:St.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:St.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:St.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:St.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:St.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:St.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:St.create("--ft-border-radius-XL","SIZE","16px"),titleFont:St.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:St.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:St.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:St.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et 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 S(i,t.elementStyles),i}}var kt,Ct=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class At extends Et{constructor(){super(),this[kt]=new r(5),this[Rt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[jt])}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,r,o,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!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.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(", "))}}kt=Nt,Ct([s()],At.prototype,"exportpartsPrefix",void 0),Ct([p([])],At.prototype,"exportpartsPrefixes",void 0),Ct([s()],At.prototype,"customStylesheet",void 0);const Ut=w`
65
- .ft-no-text-select {
66
- -webkit-touch-callout: none;
67
- -webkit-user-select: none;
68
- -khtml-user-select: none;
69
- -moz-user-select: none;
70
- -ms-user-select: none;
71
- user-select: none;
72
- }
64
+ var gt,mt;let xt=class extends U{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,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new ct(e.insertBefore(D(),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 St{static create(t,e,i){let n=t=>x(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let n=t=>e.get(null!=t?t:i),r=w`var(${x(t)}, ${n(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=n,r.get=e=>w`var(${x(t)}, ${n(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}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 $t(t,e){return x(`${t.name}: ${e}`)}const Ot={colorPrimary:St.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:St.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:St.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:St.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:St.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:St.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:St.create("--ft-color-error","COLOR","#B00020"),colorOutline:St.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:St.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:St.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:St.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:St.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:St.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:St.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:St.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:St.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:St.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:St.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:St.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:St.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:St.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:St.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:St.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:St.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:St.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:St.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:St.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:St.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:St.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:St.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:St.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:St.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:St.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:St.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:St.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:St.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:St.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:St.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:St.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:St.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:St.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:St.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:St.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:St.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.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:St.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:St.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:St.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:St.create("--ft-border-radius-XL","SIZE","16px"),titleFont:St.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:St.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:St.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:St.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class Et 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 S(i,t.elementStyles),i}}var kt,Ct=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const jt=Symbol("constructorPrototype"),Rt=Symbol("constructorName"),Nt=Symbol("exportpartsDebouncer");class At extends Et{constructor(){super(),this[kt]=new r(5),this[Rt]=this.constructor.name,this[jt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rt]&&Object.setPrototypeOf(this,this[jt])}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,r,o,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!==(r=null===(n=t.getAttribute("part"))||void 0===n?void 0:n.split(" "))&&void 0!==r?r:[],i=null!==(s=null===(o=t.getAttribute("exportparts"))||void 0===o?void 0:o.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 u=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...u].join(", "))}}kt=Nt,Ct([s()],At.prototype,"exportpartsPrefix",void 0),Ct([p([])],At.prototype,"exportpartsPrefixes",void 0),Ct([s()],At.prototype,"customStylesheet",void 0);const Ut=w`
65
+ .ft-no-text-select {
66
+ -webkit-touch-callout: none;
67
+ -webkit-user-select: none;
68
+ -khtml-user-select: none;
69
+ -moz-user-select: none;
70
+ -ms-user-select: none;
71
+ user-select: none;
72
+ }
73
73
  `;w`
74
- .ft-word-wrap {
75
- white-space: normal;
76
- word-wrap: break-word;
77
- -ms-word-break: break-all;
78
- word-break: break-all;
79
- word-break: break-word;
80
- -ms-hyphens: auto;
81
- -moz-hyphens: auto;
82
- -webkit-hyphens: auto;
83
- hyphens: auto
84
- }
74
+ .ft-word-wrap {
75
+ white-space: normal;
76
+ word-wrap: break-word;
77
+ -ms-word-break: break-all;
78
+ word-break: break-all;
79
+ word-break: break-word;
80
+ -ms-hyphens: auto;
81
+ -moz-hyphens: auto;
82
+ -webkit-hyphens: auto;
83
+ hyphens: auto
84
+ }
85
85
  `;const Mt=w`
86
86
  .ft-safari-ellipsis-fix {
87
87
  margin-right: 0;
88
-
88
+
89
89
  }
90
90
 
91
91
  .ft-safari-ellipsis-fix:after {
@@ -93,7 +93,7 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
93
93
  display: inline-block;
94
94
  width: 0;
95
95
  }
96
- `;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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 Tt(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 Bt(t){return!!t&&!!t[Se]}function It(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)===$e}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Kt(t)||Wt(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Lt(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 Lt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Wt(t)?3:0}function _t(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function zt(t,e,i){var n=Lt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Dt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ye&&t instanceof Map}function Wt(t){return ge&&t instanceof Set}function Ht(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ee(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Gt(t)||Bt(t)||!It(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=Vt),Object.freeze(t),e&&Ft(t,(function(t,e){return qt(e,!0)}),!0)),t}function Vt(){Tt(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=ke[t];return e||Tt(18,t),e}function Jt(){return ve}function Yt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function Qt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function ne(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&&(Qt(e),Tt(4)),It(t)&&(t=re(e,t),e.l||se(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),Qt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function re(t,e,i){if(Gt(e))return e;var n=e[Se];if(!n)return Ft(e,(function(r,o){return oe(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Zt(n.k):n.o,o=r,s=!1;3===n.i&&(o=new Set(r),r.clear(),s=!0),Ft(o,(function(e,o){return oe(t,n,r,e,o,i,s)})),se(t,r,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function oe(t,e,i,n,r,o,s){if(Bt(r)){var a=re(t,r,o&&e&&3!==e.i&&!_t(e.R,n)?o.concat(n):void 0);if(zt(i,n,a),!Bt(a))return;t.m=!1}else s&&i.add(r);if(It(r)&&!Gt(r)){if(!t.h.D&&t._<1)return;re(t,r),e&&e.A.l||se(t,r)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function ae(t,e){var i=t[Se];return(i?Ht(i):t)[e]}function le(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 ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function he(t){t.o||(t.o=Zt(t.t))}function ue(t,e,i){var n=Kt(e)?Xt("MapSet").F(e,i):Wt(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:Jt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=Ce;i&&(r=[n],o=je);var s=Proxy.revocable(r,o),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:Jt()).p.push(n),n}function fe(t){return Bt(t)||Tt(22,t),function t(e){if(!It(e))return e;var i,n=e[Se],r=Lt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=de(e,r),n.I=!1}else i=de(e,r);return Ft(i,(function(e,r){n&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(n.t,e)===r||zt(i,e,t(r))})),3===r?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var pe,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((pe={})["immer-nothing"]=!0,pe),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",Se=be?Symbol.for("immer-state"):"__$immer_state",$e=""+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,Ee=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ke={},Ce={get:function(t,e){if(e===Se)return t;var i=Ht(t);if(!_t(i,e))return function(t,e,i){var n,r=le(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!It(n)?n:n===ae(t.t,e)?(he(t),t.o[e]=ue(t.A.h,n,t)):n},has:function(t,e){return e in Ht(t)},ownKeys:function(t){return Reflect.ownKeys(Ht(t))},set:function(t,e,i){var n=le(Ht(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=ae(Ht(t),e),o=null==r?void 0:r[Se];if(o&&o.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Dt(i,r)&&(void 0!==i||_t(t.t,e)))return!0;he(t),ce(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!==ae(t.t,e)||e in t.t?(t.R[e]=!1,he(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ht(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(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},je={};Ft(Ce,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Tt(6),void 0!==n&&"function"!=typeof n&&Tt(7),It(t)){var a=ee(e),l=ue(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Qt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),ne(t,a)}),(function(t){throw Qt(a),t})):(Yt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&qt(s,!0),n){var h=[],u=[];Xt("Patches").M(t,s,h,u),n(h,u)}return s}Tt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"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){It(t)||Tt(8),Bt(t)&&(t=fe(t));var e=ee(this),i=ue(this,t,void 0);return i[Se].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Yt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&Tt(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 r=Xt("Patches").$;return Bt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ne=new Re,Ae=Ne.produce;function Ue(t){return Ue="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},Ue(t)}function Me(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Pe(t,e,i){return(e=Me(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Te(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 Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(i),!0).forEach((function(e){Pe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Te(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ie(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 Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function ze(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ie(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ie(1));return i(ze)(t,e)}if("function"!=typeof t)throw new Error(Ie(2));var r=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ie(3));return o}function u(t){if("function"!=typeof t)throw new Error(Ie(4));if(l)throw new Error(Ie(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ie(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(Ie(7));if(void 0===t.type)throw new Error(Ie(8));if(l)throw new Error(Ie(9));try{l=!0,o=r(o,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:_e.INIT}),(n={dispatch:f,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ie(10));r=t,f({type:_e.REPLACE})}})[Fe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ie(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},n}function De(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Ie(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Ie(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},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(Ie(14));r[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?r:t}}function Ke(){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 We(){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(Ie(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=Ke.apply(void 0,o)(i.dispatch),Be(Be({},i),{},{dispatch:n})}}}function He(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var Ze=He();Ze.withExtraArgument=He;var qe,Ve=Ze,Ge=(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,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Je=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},Ye=Object.defineProperty,Qe=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},oi=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&ri(t,i,e[i]);if(ei)for(var n=0,r=ei(e);n<r.length;n++){i=r[n];ni.call(e,i)&&ri(t,i,e[i])}return t},si=function(t,e){return Qe(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var li=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(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,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array),ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(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,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array);function hi(t){return It(t)?Ae(t,(function(){})):t}function ui(){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 li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ve.withExtraArgument(i.extraArgument)):n.push(Ve));return n}(t)}}function fi(t){var e,i=ui(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,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,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;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}(o))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=De(o)}var p=a;"function"==typeof p&&(p=p(i));var v=We.apply(void 0,p),b=Ke;c&&(b=ai(oi({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(d)?g=Je([v],d):"function"==typeof d&&(g=d(y)),ze(e,u,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return oi(oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 pi(t){var e,i={},n=[],r={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,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function vi(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:hi(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?pi(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,l=e[2],c=void 0===l?void 0:l,h=oi(oi({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?pi(e):[e,i,n],s=o[0],a=o[1],l=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return hi(t())};else{var c=hi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=Je([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(Bt(t))return void 0===(n=i(t,e))?t:n;if(It(t))return Ae(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=r,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 r=n[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return o.forEach((function(t){var i,n,o=r[t],c=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(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 bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var r=n[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function xi(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=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(oi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=di(t+"/rejected",(function(t,e,n,r,o){return{payload:r,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(oi({},o||{}),{arg:n,requestId:e,rejectedWithValue:!!r,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}(),f=new s;function d(t){h=t,f.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||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(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:f.signal,abort:d,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?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 yi?o(null,u,t,g.payload,g.meta):o(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&o.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},n=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(xi)}})}}),{pending:r,rejected:o,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,Si,$i="listenerMiddleware";di($i+"/add"),di($i+"/removeAll"),di($i+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[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 r=t[e][Se];if(!r.P)switch(r.i){case 5:n(r)&&ce(r);break;case 4:i(r)&&ce(r)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==Se){var s=e[o];if(void 0===s&&!_t(e,o))return!0;var a=i[o],l=a&&a[Se];if(l?l.t!==s:!Dt(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 r={};!function(t,e){ke[t]||(ke[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=Ee(i);delete o[Se];for(var s=Oe(o),a=0;a<s.length;a++){var l=s[a];o[l]=t(l,e||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:Jt(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Se,{value:o,writable:!0}),r},S:function(t,i,r){r?Bt(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 r=i.t,o=i.k,s=i.R,a=i.i;if(4===a)Ft(o,(function(e){e!==Se&&(void 0!==r[e]||_t(r,e)?s[e]||t(o[e]):(s[e]=!0,ce(i)))})),Ft(r,(function(t){void 0!==o[t]||_t(o,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var h=Math.min(o.length,r.length),u=0;u<h;u++)o.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(o[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Oi=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(r)(t,i);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ei=Symbol("internalStoresUnsubscribers"),ki=Symbol("internalStores");class Ci extends At{constructor(){super(...arguments),this[wi]=new Map,this[Si]=new Map}getUnnamedStore(){if(this[ki].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ki].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ki].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:ji(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[ki].delete(e)}setupStore(t,e){this[ki].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ki].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&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Ei].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ei]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Ei].has(t)&&this[Ei].get(t)(),this[Ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}wi=Ei,Si=ki;class Ri{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(ji(n))return n;if(null==i)return;const r=vi(i),o=fi({reducer:r.reducer});return window.ftReduxStores[i.name]=new Ri(r,o)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,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}}})}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 Ni,Ai,Ui;const Mi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ui=null===(Ai=null===(Ni=window.safari)||void 0===Ni?void 0:Ni.pushNotification)||void 0===Ai?void 0:Ai.toString())&&void 0!==Ui?Ui:""),Pi=1,Ti=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
96
+ `;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let r=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}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 Tt(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 Bt(t){return!!t&&!!t[Se]}function It(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)===$e}(t)||Array.isArray(t)||!!t[we]||!!(null===(e=t.constructor)||void 0===e?void 0:e[we])||Kt(t)||Wt(t))}function Ft(t,e,i){void 0===i&&(i=!1),0===Lt(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 Lt(t){var e=t[Se];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Wt(t)?3:0}function _t(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function zt(t,e,i){var n=Lt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Dt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ye&&t instanceof Map}function Wt(t){return ge&&t instanceof Set}function Ht(t){return t.o||t.t}function Zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ee(t);delete e[Se];for(var i=Oe(e),n=0;n<i.length;n++){var r=i[n],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function qt(t,e){return void 0===e&&(e=!1),Gt(t)||Bt(t)||!It(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=Vt),Object.freeze(t),e&&Ft(t,(function(t,e){return qt(e,!0)}),!0)),t}function Vt(){Tt(2)}function Gt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Xt(t){var e=ke[t];return e||Tt(18,t),e}function Jt(){return ve}function Yt(t,e){e&&(Xt("Patches"),t.u=[],t.s=[],t.v=e)}function Qt(t){te(t),t.p.forEach(ie),t.p=null}function te(t){t===ve&&(ve=t.l)}function ee(t){return ve={p:[],l:ve,h:t,m:!0,_:0}}function ie(t){var e=t[Se];0===e.i||1===e.i?e.j():e.g=!0}function ne(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&&(Qt(e),Tt(4)),It(t)&&(t=re(e,t),e.l||se(e,t)),e.u&&Xt("Patches").M(i[Se].t,t,e.u,e.s)):t=re(e,i,[]),Qt(e),e.u&&e.v(e.u,e.s),t!==xe?t:void 0}function re(t,e,i){if(Gt(e))return e;var n=e[Se];if(!n)return Ft(e,(function(r,o){return oe(t,n,e,r,o,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return se(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var r=4===n.i||5===n.i?n.o=Zt(n.k):n.o,o=r,s=!1;3===n.i&&(o=new Set(r),r.clear(),s=!0),Ft(o,(function(e,o){return oe(t,n,r,e,o,i,s)})),se(t,r,!1),i&&t.u&&Xt("Patches").N(n,i,t.u,t.s)}return n.o}function oe(t,e,i,n,r,o,s){if(Bt(r)){var a=re(t,r,o&&e&&3!==e.i&&!_t(e.R,n)?o.concat(n):void 0);if(zt(i,n,a),!Bt(a))return;t.m=!1}else s&&i.add(r);if(It(r)&&!Gt(r)){if(!t.h.D&&t._<1)return;re(t,r),e&&e.A.l||se(t,r)}}function se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&qt(e,i)}function ae(t,e){var i=t[Se];return(i?Ht(i):t)[e]}function le(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 ce(t){t.P||(t.P=!0,t.l&&ce(t.l))}function ue(t){t.o||(t.o=Zt(t.t))}function he(t,e,i){var n=Kt(e)?Xt("MapSet").F(e,i):Wt(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:Jt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=n,o=Ce;i&&(r=[n],o=je);var s=Proxy.revocable(r,o),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:Jt()).p.push(n),n}function fe(t){return Bt(t)||Tt(22,t),function t(e){if(!It(e))return e;var i,n=e[Se],r=Lt(e);if(n){if(!n.P&&(n.i<4||!Xt("ES5").K(n)))return n.t;n.I=!0,i=de(e,r),n.I=!1}else i=de(e,r);return Ft(i,(function(e,r){n&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(n.t,e)===r||zt(i,e,t(r))})),3===r?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zt(t)}var pe,ve,be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ye="undefined"!=typeof Map,ge="undefined"!=typeof Set,me="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,xe=be?Symbol.for("immer-nothing"):((pe={})["immer-nothing"]=!0,pe),we=be?Symbol.for("immer-draftable"):"__$immer_draftable",Se=be?Symbol.for("immer-state"):"__$immer_state",$e=""+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,Ee=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},ke={},Ce={get:function(t,e){if(e===Se)return t;var i=Ht(t);if(!_t(i,e))return function(t,e,i){var n,r=le(e,i);return r?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!It(n)?n:n===ae(t.t,e)?(ue(t),t.o[e]=he(t.A.h,n,t)):n},has:function(t,e){return e in Ht(t)},ownKeys:function(t){return Reflect.ownKeys(Ht(t))},set:function(t,e,i){var n=le(Ht(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var r=ae(Ht(t),e),o=null==r?void 0:r[Se];if(o&&o.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Dt(i,r)&&(void 0!==i||_t(t.t,e)))return!0;ue(t),ce(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!==ae(t.t,e)||e in t.t?(t.R[e]=!1,ue(t),ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ht(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(){Tt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Tt(12)}},je={};Ft(Ce,(function(t,e){je[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),je.deleteProperty=function(t,e){return je.set.call(this,t,e,void 0)},je.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=me,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Tt(6),void 0!==n&&"function"!=typeof n&&Tt(7),It(t)){var a=ee(e),l=he(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Qt(a):te(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),ne(t,a)}),(function(t){throw Qt(a),t})):(Yt(a,n),ne(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===xe&&(s=void 0),e.D&&qt(s,!0),n){var u=[],h=[];Xt("Patches").M(t,s,u,h),n(u,h)}return s}Tt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var n,r,o=e.produce(t,i,(function(t,e){n=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,n,r]})):[o,n,r]},"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){It(t)||Tt(8),Bt(t)&&(t=fe(t));var e=ee(this),i=he(this,t,void 0);return i[Se].C=!0,te(e),i},e.finishDraft=function(t,e){var i=(t&&t[Se]).A;return Yt(i,e),ne(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!me&&Tt(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 r=Xt("Patches").$;return Bt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ne=new Re,Ae=Ne.produce;function Ue(t){return Ue="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},Ue(t)}function Me(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Pe(t,e,i){return(e=Me(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Te(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 Be(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(i),!0).forEach((function(e){Pe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Te(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ie(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 Fe="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function ze(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ie(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ie(1));return i(ze)(t,e)}if("function"!=typeof t)throw new Error(Ie(2));var r=t,o=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ie(3));return o}function h(t){if("function"!=typeof t)throw new Error(Ie(4));if(l)throw new Error(Ie(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ie(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(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(Ie(7));if(void 0===t.type)throw new Error(Ie(8));if(l)throw new Error(Ie(9));try{l=!0,o=r(o,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return f({type:_e.INIT}),(n={dispatch:f,subscribe:h,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ie(10));r=t,f({type:_e.REPLACE})}})[Fe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ie(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Fe]=function(){return this},t},n}function De(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var r=e[n];"function"==typeof t[r]&&(i[r]=t[r])}var o,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Ie(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Ie(13))}))}(i)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],h=c(u,e);if(void 0===h)throw e&&e.type,new Error(Ie(14));r[l]=h,n=n||h!==u}return(n=n||s.length!==Object.keys(t).length)?r:t}}function Ke(){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 We(){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(Ie(15))},r={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return n=Ke.apply(void 0,o)(i.dispatch),Be(Be({},i),{},{dispatch:n})}}}function He(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,n,t):e(r)}}}}var Ze=He();Ze.withExtraArgument=He;var qe,Ve=Ze,Ge=(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,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Je=function(t,e){for(var i=0,n=e.length,r=t.length;i<n;i++,r++)t[r]=e[i];return t},Ye=Object.defineProperty,Qe=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},oi=function(t,e){for(var i in e||(e={}))ii.call(e,i)&&ri(t,i,e[i]);if(ei)for(var n=0,r=ei(e);n<r.length;n++){i=r[n];ni.call(e,i)&&ri(t,i,e[i])}return t},si=function(t,e){return Qe(t,ti(e))},ai="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var li=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(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,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array),ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ge(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,Je([void 0],t[0].concat(this)))):new(e.bind.apply(e,Je([void 0],t.concat(this))))},e}(Array);function ui(t){return It(t)?Ae(t,(function(){})):t}function hi(){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 li;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Ve.withExtraArgument(i.extraArgument)):n.push(Ve));return n}(t)}}function fi(t){var e,i=hi(),n=t||{},r=n.reducer,o=void 0===r?void 0:r,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,h=void 0===u?void 0:u,f=n.enhancers,d=void 0===f?void 0:f;if("function"==typeof o)e=o;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}(o))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=De(o)}var p=a;"function"==typeof p&&(p=p(i));var v=We.apply(void 0,p),b=Ke;c&&(b=ai(oi({trace:!1},"object"==typeof c&&c)));var y=new ci(v),g=y;return Array.isArray(d)?g=Je([v],d):"function"==typeof d&&(g=d(y)),ze(e,h,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return oi(oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 pi(t){var e,i={},n=[],r={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,r},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,n,e]}function vi(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),r=t.reducers||{},o=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?pi(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,o=e[1],s=void 0===o?[]:o,l=e[2],c=void 0===l?void 0:l,u=oi(oi({},r),a);return function(t,e,i,n){void 0===i&&(i=[]);var r,o="function"==typeof e?pi(e):[e,i,n],s=o[0],a=o[1],l=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return ui(t())};else{var c=ui(t);r=function(){return c}}function u(t,e){void 0===t&&(t=r());var i=Je([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(Bt(t))return void 0===(n=i(t,e))?t:n;if(It(t))return Ae(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 u.getInitialState=r,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var r=n[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return o.forEach((function(t){var i,n,o=r[t],c=e+"/"+t;"reducer"in o?(i=o.reducer,n=o.prepare):i=o,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(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 bi=["name","message","stack","code"],yi=function(t,e){this.payload=t,this.meta=e},gi=function(t,e){this.payload=t,this.meta=e},mi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=bi;i<n.length;i++){var r=n[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function xi(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=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:si(oi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:si(oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=di(t+"/rejected",(function(t,e,n,r,o){return{payload:r,error:(i&&i.serializeError||mi)(t||"Rejected"),meta:si(oi({},o||{}),{arg:n,requestId:e,rejectedWithValue:!!r,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 u,h=(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}(),f=new s;function d(t){u=t,f.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||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return f.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:h,signal:f.signal,abort:d,rejectWithValue:function(t,e){return new yi(t,e)},fulfillWithValue:function(t,e){return new gi(t,e)}})).then((function(e){if(e instanceof yi)throw e;return e instanceof gi?n(e.payload,h,t,e.meta):n(e,h,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof yi?o(null,h,t,g.payload,g.meta):o(g,h,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&o.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{r(v.next(t))}catch(t){e(t)}},n=function(t){try{r(v.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};r((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:d,requestId:h,arg:t,unwrap:function(){return p.then(xi)}})}}),{pending:r,rejected:o,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var wi,Si,$i="listenerMiddleware";di($i+"/add"),di($i+"/removeAll"),di($i+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[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 r=t[e][Se];if(!r.P)switch(r.i){case 5:n(r)&&ce(r);break;case 4:i(r)&&ce(r)}}}function i(t){for(var e=t.t,i=t.k,n=Oe(i),r=n.length-1;r>=0;r--){var o=n[r];if(o!==Se){var s=e[o];if(void 0===s&&!_t(e,o))return!0;var a=i[o],l=a&&a[Se];if(l?l.t!==s:!Dt(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 r={};!function(t,e){ke[t]||(ke[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),r=function(e,i){if(e){for(var n=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(n,""+r,t(r,!0));return n}var o=Ee(i);delete o[Se];for(var s=Oe(o),a=0;a<s.length;a++){var l=s[a];o[l]=t(l,e||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(i),o)}(n,e),o={i:n?5:4,A:i?i.A:Jt(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Se,{value:o,writable:!0}),r},S:function(t,i,r){r?Bt(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 r=i.t,o=i.k,s=i.R,a=i.i;if(4===a)Ft(o,(function(e){e!==Se&&(void 0!==r[e]||_t(r,e)?s[e]||t(o[e]):(s[e]=!0,ce(i)))})),Ft(r,(function(t){void 0!==o[t]||_t(o,t)||(s[t]=!1,ce(i))}));else if(5===a){if(n(i)&&(ce(i),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var u=Math.min(o.length,r.length),h=0;h<u;h++)o.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&t(o[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const Oi=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const r={hasChanged:(t,e)=>!f(t,e),attribute:!1,...e};s(r)(t,i);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Ei=Symbol("internalStoresUnsubscribers"),ki=Symbol("internalStores");class Ci extends At{constructor(){super(...arguments),this[wi]=new Map,this[Si]=new Map}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[ki].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ki].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ki].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:ji(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[ki].delete(e)}setupStore(t,e){this[ki].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ki].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&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Ei].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ei]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Ei].has(t)&&this[Ei].get(t)(),this[Ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function ji(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}wi=Ei,Si=ki;class Ri{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(ji(n))return n;if(null==i)return;const r=vi(i),o=fi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?r.getInitialState():r.reducer(t,e)});return window.ftReduxStores[i.name]=new Ri(r,o)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,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 Ni,Ai,Ui;const Mi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ui=null===(Ai=null===(Ni=window.safari)||void 0===Ni?void 0:Ni.pushNotification)||void 0===Ai?void 0:Ai.toString())&&void 0!==Ui?Ui:""),Pi=1,Ti=2,Bi=t=>(...e)=>({_$litDirective$:t,values:e});
97
97
  /**
98
98
  * @license
99
99
  * Copyright 2017 Google LLC
@@ -193,7 +193,7 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
193
193
  opacity: ${_i.opacityContentOnSurfacePressed};
194
194
  transform: translate(-50%, -50%) scale(1);
195
195
  }
196
- `;var Vi=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Gi extends At{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:n,y:r}=this.getCoordinates(t),o=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-o.x:o.width/2),this.originY=Math.round(null!=r?r-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
196
+ `;var Vi=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class Gi extends At{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:n,y:r}=this.getCoordinates(t),o=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=n?n-o.x:o.width/2),this.originY=Math.round(null!=r?r-o.y:o.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return tt`
197
197
  <style>
198
198
  .ft-ripple .ft-ripple--effect,
199
199
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -210,20 +210,20 @@ var gt,mt;let xt=class extends U{constructor(){super(...arguments),this.renderOp
210
210
  <div class="ft-ripple--background"></div>
211
211
  <div class="ft-ripple--effect"></div>
212
212
  </div>
213
- `}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"),r=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",r),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",r),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,r;return null!=e.x?({x:n,y:r}=e):null!=i.touches&&(n=i.touches[0].clientX,r=i.touches[0].clientY),{x:n,y:r}}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()}}Gi.elementDefinitions={},Gi.styles=qi,Vi([s({type:Boolean})],Gi.prototype,"primary",void 0),Vi([s({type:Boolean})],Gi.prototype,"secondary",void 0),Vi([s({type:Boolean})],Gi.prototype,"unbounded",void 0),Vi([s({type:Boolean})],Gi.prototype,"activated",void 0),Vi([s({type:Boolean})],Gi.prototype,"selected",void 0),Vi([s({type:Boolean})],Gi.prototype,"disabled",void 0),Vi([a()],Gi.prototype,"hovered",void 0),Vi([a()],Gi.prototype,"focused",void 0),Vi([a()],Gi.prototype,"pressed",void 0),Vi([a()],Gi.prototype,"rippling",void 0),Vi([a()],Gi.prototype,"rippleSize",void 0),Vi([a()],Gi.prototype,"originX",void 0),Vi([a()],Gi.prototype,"originY",void 0),Vi([c(".ft-ripple")],Gi.prototype,"ripple",void 0),Vi([c(".ft-ripple--effect")],Gi.prototype,"rippleEffect",void 0),d("ft-ripple")(Gi);
213
+ `}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"),r=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",r),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",r),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,r;return null!=e.x?({x:n,y:r}=e):null!=i.touches&&(n=i.touches[0].clientX,r=i.touches[0].clientY),{x:n,y:r}}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()}}Gi.elementDefinitions={},Gi.styles=qi,Vi([s({type:Boolean})],Gi.prototype,"primary",void 0),Vi([s({type:Boolean})],Gi.prototype,"secondary",void 0),Vi([s({type:Boolean})],Gi.prototype,"unbounded",void 0),Vi([s({type:Boolean})],Gi.prototype,"activated",void 0),Vi([s({type:Boolean})],Gi.prototype,"selected",void 0),Vi([s({type:Boolean})],Gi.prototype,"disabled",void 0),Vi([a()],Gi.prototype,"hovered",void 0),Vi([a()],Gi.prototype,"focused",void 0),Vi([a()],Gi.prototype,"pressed",void 0),Vi([a()],Gi.prototype,"rippling",void 0),Vi([a()],Gi.prototype,"rippleSize",void 0),Vi([a()],Gi.prototype,"originX",void 0),Vi([a()],Gi.prototype,"originY",void 0),Vi([c(".ft-ripple")],Gi.prototype,"ripple",void 0),Vi([c(".ft-ripple--effect")],Gi.prototype,"rippleEffect",void 0),d("ft-ripple")(Gi);
214
214
  /**
215
215
  * @license
216
216
  * Copyright 2020 Google LLC
217
217
  * SPDX-License-Identifier: BSD-3-Clause
218
218
  */
219
- const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void 0:t._$litStatic$},Yi=t=>({_$litStatic$:t,r:Xi}),Qi=new Map,tn=(t=>(e,...i)=>{const n=i.length;let r,o;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(o=i[c],r=Ji(o));)l+=r+e[++c],h=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=Qi.get(t))&&(s.raw=s,Qi.set(t,e=s)),i=a}return t(e,...i)})(tt);var en;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(en||(en={}));const nn=St.extend("--ft-typography-font-family",Ot.titleFont),rn=St.extend("--ft-typography-font-family",Ot.contentFont),on={fontFamily:rn,fontSize:St.create("--ft-typography-font-size","SIZE","16px"),fontWeight:St.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:St.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:St.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:St.create("--ft-typography-text-transform","UNKNOWN","inherit")},sn=St.extend("--ft-typography-title-font-family",nn),an=St.extend("--ft-typography-title-font-size",on.fontSize,"20px"),ln=St.extend("--ft-typography-title-font-weight",on.fontWeight,"normal"),cn=St.extend("--ft-typography-title-letter-spacing",on.letterSpacing,"0.15px"),hn=St.extend("--ft-typography-title-line-height",on.lineHeight,"1.2"),un=St.extend("--ft-typography-title-text-transform",on.textTransform,"inherit"),fn=St.extend("--ft-typography-title-dense-font-family",nn),dn=St.extend("--ft-typography-title-dense-font-size",on.fontSize,"14px"),pn=St.extend("--ft-typography-title-dense-font-weight",on.fontWeight,"normal"),vn=St.extend("--ft-typography-title-dense-letter-spacing",on.letterSpacing,"0.105px"),bn=St.extend("--ft-typography-title-dense-line-height",on.lineHeight,"1.7"),yn=St.extend("--ft-typography-title-dense-text-transform",on.textTransform,"inherit"),gn=St.extend("--ft-typography-subtitle1-font-family",rn),mn=St.extend("--ft-typography-subtitle1-font-size",on.fontSize,"16px"),xn=St.extend("--ft-typography-subtitle1-font-weight",on.fontWeight,"600"),wn=St.extend("--ft-typography-subtitle1-letter-spacing",on.letterSpacing,"0.144px"),Sn=St.extend("--ft-typography-subtitle1-line-height",on.lineHeight,"1.5"),$n=St.extend("--ft-typography-subtitle1-text-transform",on.textTransform,"inherit"),On=St.extend("--ft-typography-subtitle2-font-family",rn),En=St.extend("--ft-typography-subtitle2-font-size",on.fontSize,"14px"),kn=St.extend("--ft-typography-subtitle2-font-weight",on.fontWeight,"normal"),Cn=St.extend("--ft-typography-subtitle2-letter-spacing",on.letterSpacing,"0.098px"),jn=St.extend("--ft-typography-subtitle2-line-height",on.lineHeight,"1.7"),Rn=St.extend("--ft-typography-subtitle2-text-transform",on.textTransform,"inherit"),Nn=St.extend("--ft-typography-body1-font-family",rn),An=St.extend("--ft-typography-body1-font-size",on.fontSize,"16px"),Un=St.extend("--ft-typography-body1-font-weight",on.fontWeight,"normal"),Mn=St.extend("--ft-typography-body1-letter-spacing",on.letterSpacing,"0.496px"),Pn=St.extend("--ft-typography-body1-line-height",on.lineHeight,"1.5"),Tn=St.extend("--ft-typography-body1-text-transform",on.textTransform,"inherit"),Bn={fontFamily:St.extend("--ft-typography-body2-font-family",rn),fontSize:St.extend("--ft-typography-body2-font-size",on.fontSize,"14px"),fontWeight:St.extend("--ft-typography-body2-font-weight",on.fontWeight,"normal"),letterSpacing:St.extend("--ft-typography-body2-letter-spacing",on.letterSpacing,"0.252px"),lineHeight:St.extend("--ft-typography-body2-line-height",on.lineHeight,"1.4"),textTransform:St.extend("--ft-typography-body2-text-transform",on.textTransform,"inherit")},In=St.extend("--ft-typography-caption-font-family",rn),Fn=St.extend("--ft-typography-caption-font-size",on.fontSize,"12px"),Ln=St.extend("--ft-typography-caption-font-weight",on.fontWeight,"normal"),_n=St.extend("--ft-typography-caption-letter-spacing",on.letterSpacing,"0.396px"),zn=St.extend("--ft-typography-caption-line-height",on.lineHeight,"1.33"),Dn=St.extend("--ft-typography-caption-text-transform",on.textTransform,"inherit"),Kn=St.extend("--ft-typography-breadcrumb-font-family",rn),Wn=St.extend("--ft-typography-breadcrumb-font-size",on.fontSize,"10px"),Hn=St.extend("--ft-typography-breadcrumb-font-weight",on.fontWeight,"normal"),Zn=St.extend("--ft-typography-breadcrumb-letter-spacing",on.letterSpacing,"0.33px"),qn=St.extend("--ft-typography-breadcrumb-line-height",on.lineHeight,"1.6"),Vn=St.extend("--ft-typography-breadcrumb-text-transform",on.textTransform,"inherit"),Gn=St.extend("--ft-typography-overline-font-family",rn),Xn=St.extend("--ft-typography-overline-font-size",on.fontSize,"10px"),Jn=St.extend("--ft-typography-overline-font-weight",on.fontWeight,"normal"),Yn=St.extend("--ft-typography-overline-letter-spacing",on.letterSpacing,"1.5px"),Qn=St.extend("--ft-typography-overline-line-height",on.lineHeight,"1.6"),tr=St.extend("--ft-typography-overline-text-transform",on.textTransform,"uppercase"),er={fontFamily:St.extend("--ft-typography-button-font-family",rn),fontSize:St.extend("--ft-typography-button-font-size",on.fontSize,"14px"),fontWeight:St.extend("--ft-typography-button-font-weight",on.fontWeight,"600"),letterSpacing:St.extend("--ft-typography-button-letter-spacing",on.letterSpacing,"1.246px"),lineHeight:St.extend("--ft-typography-button-line-height",on.lineHeight,"1.15"),textTransform:St.extend("--ft-typography-button-text-transform",on.textTransform,"uppercase")},ir=w`
219
+ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void 0:t._$litStatic$},Yi=t=>({_$litStatic$:t,r:Xi}),Qi=new Map,tn=(t=>(e,...i)=>{const n=i.length;let r,o;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(o=i[c],r=Ji(o));)l+=r+e[++c],u=!0;c!==n&&a.push(o),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=Qi.get(t))&&(s.raw=s,Qi.set(t,e=s)),i=a}return t(e,...i)})(tt);var en;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(en||(en={}));const nn=St.extend("--ft-typography-font-family",Ot.titleFont),rn=St.extend("--ft-typography-font-family",Ot.contentFont),on={fontFamily:rn,fontSize:St.create("--ft-typography-font-size","SIZE","16px"),fontWeight:St.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:St.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:St.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:St.create("--ft-typography-text-transform","UNKNOWN","inherit")},sn=St.extend("--ft-typography-title-font-family",nn),an=St.extend("--ft-typography-title-font-size",on.fontSize,"20px"),ln=St.extend("--ft-typography-title-font-weight",on.fontWeight,"normal"),cn=St.extend("--ft-typography-title-letter-spacing",on.letterSpacing,"0.15px"),un=St.extend("--ft-typography-title-line-height",on.lineHeight,"1.2"),hn=St.extend("--ft-typography-title-text-transform",on.textTransform,"inherit"),fn=St.extend("--ft-typography-title-dense-font-family",nn),dn=St.extend("--ft-typography-title-dense-font-size",on.fontSize,"14px"),pn=St.extend("--ft-typography-title-dense-font-weight",on.fontWeight,"normal"),vn=St.extend("--ft-typography-title-dense-letter-spacing",on.letterSpacing,"0.105px"),bn=St.extend("--ft-typography-title-dense-line-height",on.lineHeight,"1.7"),yn=St.extend("--ft-typography-title-dense-text-transform",on.textTransform,"inherit"),gn=St.extend("--ft-typography-subtitle1-font-family",rn),mn=St.extend("--ft-typography-subtitle1-font-size",on.fontSize,"16px"),xn=St.extend("--ft-typography-subtitle1-font-weight",on.fontWeight,"600"),wn=St.extend("--ft-typography-subtitle1-letter-spacing",on.letterSpacing,"0.144px"),Sn=St.extend("--ft-typography-subtitle1-line-height",on.lineHeight,"1.5"),$n=St.extend("--ft-typography-subtitle1-text-transform",on.textTransform,"inherit"),On=St.extend("--ft-typography-subtitle2-font-family",rn),En=St.extend("--ft-typography-subtitle2-font-size",on.fontSize,"14px"),kn=St.extend("--ft-typography-subtitle2-font-weight",on.fontWeight,"normal"),Cn=St.extend("--ft-typography-subtitle2-letter-spacing",on.letterSpacing,"0.098px"),jn=St.extend("--ft-typography-subtitle2-line-height",on.lineHeight,"1.7"),Rn=St.extend("--ft-typography-subtitle2-text-transform",on.textTransform,"inherit"),Nn=St.extend("--ft-typography-body1-font-family",rn),An=St.extend("--ft-typography-body1-font-size",on.fontSize,"16px"),Un=St.extend("--ft-typography-body1-font-weight",on.fontWeight,"normal"),Mn=St.extend("--ft-typography-body1-letter-spacing",on.letterSpacing,"0.496px"),Pn=St.extend("--ft-typography-body1-line-height",on.lineHeight,"1.5"),Tn=St.extend("--ft-typography-body1-text-transform",on.textTransform,"inherit"),Bn={fontFamily:St.extend("--ft-typography-body2-font-family",rn),fontSize:St.extend("--ft-typography-body2-font-size",on.fontSize,"14px"),fontWeight:St.extend("--ft-typography-body2-font-weight",on.fontWeight,"normal"),letterSpacing:St.extend("--ft-typography-body2-letter-spacing",on.letterSpacing,"0.252px"),lineHeight:St.extend("--ft-typography-body2-line-height",on.lineHeight,"1.4"),textTransform:St.extend("--ft-typography-body2-text-transform",on.textTransform,"inherit")},In=St.extend("--ft-typography-caption-font-family",rn),Fn=St.extend("--ft-typography-caption-font-size",on.fontSize,"12px"),Ln=St.extend("--ft-typography-caption-font-weight",on.fontWeight,"normal"),_n=St.extend("--ft-typography-caption-letter-spacing",on.letterSpacing,"0.396px"),zn=St.extend("--ft-typography-caption-line-height",on.lineHeight,"1.33"),Dn=St.extend("--ft-typography-caption-text-transform",on.textTransform,"inherit"),Kn=St.extend("--ft-typography-breadcrumb-font-family",rn),Wn=St.extend("--ft-typography-breadcrumb-font-size",on.fontSize,"10px"),Hn=St.extend("--ft-typography-breadcrumb-font-weight",on.fontWeight,"normal"),Zn=St.extend("--ft-typography-breadcrumb-letter-spacing",on.letterSpacing,"0.33px"),qn=St.extend("--ft-typography-breadcrumb-line-height",on.lineHeight,"1.6"),Vn=St.extend("--ft-typography-breadcrumb-text-transform",on.textTransform,"inherit"),Gn=St.extend("--ft-typography-overline-font-family",rn),Xn=St.extend("--ft-typography-overline-font-size",on.fontSize,"10px"),Jn=St.extend("--ft-typography-overline-font-weight",on.fontWeight,"normal"),Yn=St.extend("--ft-typography-overline-letter-spacing",on.letterSpacing,"1.5px"),Qn=St.extend("--ft-typography-overline-line-height",on.lineHeight,"1.6"),tr=St.extend("--ft-typography-overline-text-transform",on.textTransform,"uppercase"),er={fontFamily:St.extend("--ft-typography-button-font-family",rn),fontSize:St.extend("--ft-typography-button-font-size",on.fontSize,"14px"),fontWeight:St.extend("--ft-typography-button-font-weight",on.fontWeight,"600"),letterSpacing:St.extend("--ft-typography-button-letter-spacing",on.letterSpacing,"1.246px"),lineHeight:St.extend("--ft-typography-button-line-height",on.lineHeight,"1.15"),textTransform:St.extend("--ft-typography-button-text-transform",on.textTransform,"uppercase")},ir=w`
220
220
  .ft-typography--title {
221
221
  font-family: ${sn};
222
222
  font-size: ${an};
223
223
  font-weight: ${ln};
224
224
  letter-spacing: ${cn};
225
- line-height: ${hn};
226
- text-transform: ${un};
225
+ line-height: ${un};
226
+ text-transform: ${hn};
227
227
  }
228
228
  `,nr=w`
229
229
  .ft-typography--title-dense {
@@ -289,7 +289,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
289
289
  line-height: ${qn};
290
290
  text-transform: ${Vn};
291
291
  }
292
- `,hr=w`
292
+ `,ur=w`
293
293
  .ft-typography--overline {
294
294
  font-family: ${Gn};
295
295
  font-size: ${Xn};
@@ -298,7 +298,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
298
298
  line-height: ${Qn};
299
299
  text-transform: ${tr};
300
300
  }
301
- `,ur=w`
301
+ `,hr=w`
302
302
  .ft-typography--button {
303
303
  font-family: ${er.fontFamily};
304
304
  font-size: ${er.fontSize};
@@ -318,7 +318,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
318
318
  </${Yi(this.element)}>
319
319
  `:tn`
320
320
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
321
- `}}pr.styles=[ir,nr,rr,or,sr,ar,lr,cr,hr,ur,fr],dr([s()],pr.prototype,"element",void 0),dr([s()],pr.prototype,"variant",void 0),d("ft-typography")(pr);const vr={padding:St.create("--ft-card-padding","SIZE","12px"),outlineStyle:St.create("--ft-card-outline-style","UNKNOWN","solid"),outlineWidth:St.create("--ft-card-outline-width","SIZE","0"),outlineColor:St.extend("--ft-card-outline-color",Ot.colorPrimary),borderRadius:St.extend("--ft-card-border-radius",Ot.borderRadiusM),selectedOutlineStyle:St.create("--ft-card-selected-outline-style","UNKNOWN","solid"),selectedOutlineWidth:St.create("--ft-card-selected-outline-width","SIZE","2px"),selectedOutlineColor:St.extend("--ft-card-selected-outline-color",Ot.colorPrimary),selectedBorderRadius:St.extend("--ft-card-selected-border-radius",Ot.borderRadiusM),colorSurface:St.external(Ot.colorSurface,"Design system"),colorOnSurfaceMedium:St.external(Ot.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:St.external(Ot.colorOnSurfaceHigh,"Design system"),elevation02:St.external(Ot.elevation02,"Design system"),elevation04:St.external(Ot.elevation04,"Design system")},br=w`
321
+ `}}pr.styles=[ir,nr,rr,or,sr,ar,lr,cr,ur,hr,fr],dr([s()],pr.prototype,"element",void 0),dr([s()],pr.prototype,"variant",void 0),d("ft-typography")(pr);const vr={padding:St.create("--ft-card-padding","SIZE","12px"),outlineStyle:St.create("--ft-card-outline-style","UNKNOWN","solid"),outlineWidth:St.create("--ft-card-outline-width","SIZE","0"),outlineColor:St.extend("--ft-card-outline-color",Ot.colorPrimary),borderRadius:St.extend("--ft-card-border-radius",Ot.borderRadiusM),selectedOutlineStyle:St.create("--ft-card-selected-outline-style","UNKNOWN","solid"),selectedOutlineWidth:St.create("--ft-card-selected-outline-width","SIZE","2px"),selectedOutlineColor:St.extend("--ft-card-selected-outline-color",Ot.colorPrimary),selectedBorderRadius:St.extend("--ft-card-selected-border-radius",Ot.borderRadiusM),colorSurface:St.external(Ot.colorSurface,"Design system"),colorOnSurfaceMedium:St.external(Ot.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:St.external(Ot.colorOnSurfaceHigh,"Design system"),elevation02:St.external(Ot.elevation02,"Design system"),elevation04:St.external(Ot.elevation04,"Design system")},br=w`
322
322
  :host {
323
323
  display: block;
324
324
  }
@@ -359,7 +359,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
359
359
  outline-width: ${vr.selectedOutlineWidth};
360
360
  outline-color: ${vr.selectedOutlineColor};
361
361
  border-radius: ${vr.selectedBorderRadius};
362
- ${$t(_i.borderRadius,vr.selectedBorderRadius)};
362
+ ${$t(_i.borderRadius,vr.selectedBorderRadius)};
363
363
  box-shadow: ${vr.elevation04};
364
364
  }
365
365
 
@@ -405,7 +405,9 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
405
405
  <slot name="action"></slot>
406
406
  </div>
407
407
  <div id="content" part="content">
408
- <ft-typography variant="body2"><slot></slot></ft-typography>
408
+ <ft-typography variant="body2">
409
+ <slot></slot>
410
+ </ft-typography>
409
411
  </div>
410
412
  </div>
411
413
  `}}Sr.elementDefinitions={"ft-ripple":Gi,"ft-typography":pr},Sr.styles=br,wr([s()],Sr.prototype,"title",void 0),wr([s({type:Boolean})],Sr.prototype,"clickable",void 0),wr([s({type:Boolean})],Sr.prototype,"selected",void 0),wr([s({type:Boolean})],Sr.prototype,"noHeader",void 0),d("ft-card")(Sr);const $r={activeButtonTextColor:St.extend("--ft-search-saved-searches-active-button-text-color",Ot.colorPrimary),activeSearchBackgroundColor:St.extend("--ft-search-saved-searches-active-search-background-color",Ot.colorContent),activeSearchBorderStyle:St.create("--ft-search-saved-searches-active-search-border-style","UNKNOWN",null!==(yr=vr.selectedOutlineStyle.lastResortDefaultValue())&&void 0!==yr?yr:"solid"),activeSearchBorderColor:St.extend("--ft-search-saved-searches-active-search-border-color",Ot.colorPrimary),activeSearchBorderWidth:St.create("--ft-search-saved-searches-active-search-border-width","SIZE",null!==(gr=vr.selectedOutlineWidth.lastResortDefaultValue())&&void 0!==gr?gr:"2px"),activeSearchBorderRadius:St.extend("--ft-search-saved-searches-active-search-border-radius",Ot.borderRadiusM),inactiveButtonTextColor:St.extend("--ft-search-saved-searches-inactive-button-text-color",Ot.colorPrimary),inactiveSearchBackgroundColor:St.extend("--ft-search-saved-searches-inactive-search-background-color",Ot.colorContent),inactiveSearchBorderStyle:St.create("--ft-search-saved-searches-inactive-search-border-style","UNKNOWN",null!==(mr=vr.outlineStyle.lastResortDefaultValue())&&void 0!==mr?mr:"solid"),inactiveSearchBorderColor:St.extend("--ft-search-saved-searches-inactive-search-border-color",Ot.colorPrimary),inactiveSearchBorderWidth:St.create("--ft-search-saved-searches-inactive-search-border-width","SIZE",null!==(xr=vr.outlineWidth.lastResortDefaultValue())&&void 0!==xr?xr:"0"),inactiveSearchBorderRadius:St.extend("--ft-search-saved-searches-inactive-search-border-radius",Ot.borderRadiusM)},Or=w`
@@ -455,7 +457,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
455
457
 
456
458
  i.ft-icon.ft-icon--fluid-topics {
457
459
  font-family: ${Kr.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
458
-
460
+
459
461
  /* Ugly fix because font is broken */
460
462
  font-size: calc(0.75 * ${Kr.size});
461
463
  line-height: ${Kr.size};
@@ -518,7 +520,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
518
520
  @touchstart=${this.onTouch}>
519
521
  <slot></slot>
520
522
  <div part="tooltip" role="tooltip" inert
521
- class="ft-tooltip ft-tooltip--${this.validPosition}"
523
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
522
524
  ?hidden=${!this.visible}>
523
525
  <div part="tooltip-content" class="ft-tooltip--content">
524
526
  <slot name="text"></slot>
@@ -532,7 +534,7 @@ const Xi=Symbol.for(""),Ji=t=>{if((null==t?void 0:t.r)===Xi)return null==t?void
532
534
  * Copyright 2017 Google LLC
533
535
  * SPDX-License-Identifier: BSD-3-Clause
534
536
  */
535
- function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const r="slot"+(e?`[name=${e}]`:":not([name])"),o=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(r),s=null!=o?u(o,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==o?void 0:o.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],io.prototype,"slotNodes",void 0),eo([c(".ft-tooltip--container")],io.prototype,"container",void 0),eo([c("slot")],io.prototype,"target",void 0),eo([c(".ft-tooltip")],io.prototype,"tooltip",void 0),eo([c(".ft-tooltip--content")],io.prototype,"tooltipContent",void 0),eo([a()],io.prototype,"visible",void 0),d("ft-tooltip")(io);const no={color:St.extend("--ft-loader-color",Ot.colorPrimary),size:St.create("--ft-loader-size","SIZE","80px")},ro=w`
537
+ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:n=>({get(){var n;const r="slot"+(e?`[name=${e}]`:":not([name])"),o=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(r),s=null!=o?h(o,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==o?void 0:o.assignedNodes(n))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],io.prototype,"slotNodes",void 0),eo([c(".ft-tooltip--container")],io.prototype,"container",void 0),eo([c("slot")],io.prototype,"target",void 0),eo([c(".ft-tooltip")],io.prototype,"tooltip",void 0),eo([c(".ft-tooltip--content")],io.prototype,"tooltipContent",void 0),eo([a()],io.prototype,"visible",void 0),d("ft-tooltip")(io);const no={color:St.extend("--ft-loader-color",Ot.colorPrimary),size:St.create("--ft-loader-size","SIZE","80px")},ro=w`
536
538
  :host {
537
539
  line-height: 0;
538
540
  }
@@ -608,7 +610,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
608
610
  <div></div>
609
611
  <div></div>
610
612
  </div>
611
- `}}oo.styles=ro,d("ft-loader")(oo);const so=St.extend("--ft-button-color",Ot.colorPrimary),ao={backgroundColor:St.extend("--ft-button-background-color",Ot.colorSurface),borderRadius:St.extend("--ft-button-border-radius",Ot.borderRadiusL),color:so,fontSize:St.extend("--ft-button-font-size",er.fontSize),iconSize:St.create("--ft-button-icon-size","SIZE","24px"),rippleColor:St.extend("--ft-button-ripple-color",so),verticalPadding:St.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:St.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:St.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:St.external(Ot.colorOpacityDisabled,"Design system")},lo=St.extend("--ft-button-primary-color",St.extend("--ft-button-color",Ot.colorOnPrimary)),co={backgroundColor:St.extend("--ft-button-primary-background-color",St.extend("--ft-button-background-color",Ot.colorPrimary)),color:lo,rippleColor:St.extend("--ft-button-primary-ripple-color",lo)},ho=St.extend("--ft-button-dense-border-radius",St.extend("--ft-button-border-radius",Ot.borderRadiusM)),uo=St.create("--ft-button-dense-vertical-padding","SIZE","2px"),fo=St.create("--ft-button-dense-horizontal-padding","SIZE","4px"),po=St.create("--ft-button-dense-icon-padding","SIZE","4px"),vo=[w`
613
+ `}}oo.styles=ro,d("ft-loader")(oo);const so=St.extend("--ft-button-color",Ot.colorPrimary),ao={backgroundColor:St.extend("--ft-button-background-color",Ot.colorSurface),borderRadius:St.extend("--ft-button-border-radius",Ot.borderRadiusL),color:so,fontSize:St.extend("--ft-button-font-size",er.fontSize),iconSize:St.create("--ft-button-icon-size","SIZE","24px"),rippleColor:St.extend("--ft-button-ripple-color",so),verticalPadding:St.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:St.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:St.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:St.external(Ot.colorOpacityDisabled,"Design system")},lo=St.extend("--ft-button-primary-color",St.extend("--ft-button-color",Ot.colorOnPrimary)),co={backgroundColor:St.extend("--ft-button-primary-background-color",St.extend("--ft-button-background-color",Ot.colorPrimary)),color:lo,rippleColor:St.extend("--ft-button-primary-ripple-color",lo)},uo=St.extend("--ft-button-dense-border-radius",St.extend("--ft-button-border-radius",Ot.borderRadiusM)),ho=St.create("--ft-button-dense-vertical-padding","SIZE","2px"),fo=St.create("--ft-button-dense-horizontal-padding","SIZE","4px"),po=St.create("--ft-button-dense-icon-padding","SIZE","4px"),vo=[w`
612
614
  :host {
613
615
  display: inline-block;
614
616
  max-width: 100%;
@@ -664,17 +666,17 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
664
666
  border: 1px solid var(--ft-button-internal-color);
665
667
  padding: calc(${ao.verticalPadding} - 1px) calc(${ao.horizontalPadding} - 1px);
666
668
  }
667
-
669
+
668
670
  .ft-button.ft-button--dense {
669
- padding: ${uo} ${fo};
670
- border-radius: ${ho};
671
+ padding: ${ho} ${fo};
672
+ border-radius: ${uo};
671
673
  gap: ${po};
672
674
  }
673
675
 
674
676
  .ft-button.ft-button--dense.ft-button--outlined {
675
- padding: calc(${uo} - 1px) calc(${fo} - 1px);
677
+ padding: calc(${ho} - 1px) calc(${fo} - 1px);
676
678
  }
677
-
679
+
678
680
  .ft-button:not([disabled]):hover {
679
681
  cursor: pointer;
680
682
  }
@@ -684,7 +686,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
684
686
  }
685
687
 
686
688
  .ft-button--round.ft-button--dense {
687
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${uo});
689
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ho});
688
690
  }
689
691
 
690
692
  .ft-button[disabled] {
@@ -733,7 +735,7 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
733
735
 
734
736
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
735
737
  margin: 0 calc(${fo} * -1);
736
- padding: 0 ${uo};
738
+ padding: 0 ${ho};
737
739
  }
738
740
 
739
741
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -766,11 +768,13 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
766
768
  position="${this.tooltipPosition}">
767
769
  ${t}
768
770
  </ft-tooltip>
769
- `:t}resolveIcon(){return this.loading?tt`
771
+ `:t}resolveIcon(){return this.loading?tt`
770
772
  <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
771
773
  <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}}yo.elementDefinitions={"ft-ripple":Gi,"ft-tooltip":io,"ft-typography":pr,"ft-icon":qr,"ft-loader":oo},yo.styles=[Mt,vo],bo([s({type:String,reflect:!0})],yo.prototype,"role",void 0),bo([s({type:Boolean})],yo.prototype,"primary",void 0),bo([s({type:Boolean})],yo.prototype,"outlined",void 0),bo([s({type:Boolean})],yo.prototype,"disabled",void 0),bo([s({type:Boolean})],yo.prototype,"dense",void 0),bo([s({type:Boolean})],yo.prototype,"round",void 0),bo([s()],yo.prototype,"label",void 0),bo([s()],yo.prototype,"icon",void 0),bo([s()],yo.prototype,"iconVariant",void 0),bo([s({type:Boolean})],yo.prototype,"trailingIcon",void 0),bo([s({type:Boolean})],yo.prototype,"loading",void 0),bo([s()],yo.prototype,"tooltipPosition",void 0),bo([s({type:Boolean})],yo.prototype,"hideTooltip",void 0),bo([s({type:Boolean})],yo.prototype,"forceTooltip",void 0),bo([c(".ft-button")],yo.prototype,"button",void 0),bo([c(".ft-button--label slot")],yo.prototype,"slottedContent",void 0),d("ft-button")(yo);const go=w`
772
774
  `;var mo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const xo=Symbol("i18nProperties"),wo=Symbol("i18nUnsubs");function So(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ur:Ar}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[xo])||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[xo])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[xo]&&new Set([...this[xo].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[wo].has(t)||this[wo].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[wo].forEach((t=>t())),this[wo].clear()}}return e=wo,mo([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $o extends(So(At)){}class Oo extends(So(Ci)){}var Eo=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class ko extends Oo{constructor(){super(),this.editorMode=!1,this.addStore(kr)}render(){return this.key&&this.context?tt`
773
- <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
775
+ <span class="ft-i18n">
776
+ ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
777
+ </span>
774
778
  `: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})}}ko.elementDefinitions={},ko.styles=go,Eo([Oi()],ko.prototype,"editorMode",void 0),Eo([s()],ko.prototype,"context",void 0),Eo([s()],ko.prototype,"key",void 0),Eo([p([])],ko.prototype,"args",void 0),Eo([s()],ko.prototype,"defaultMessage",void 0);class Co{static build(t){return new Co(t)}static fromGwt(t){return new Co(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)=>Ar.resolveMessage(this.name,e,...t)})}}d("ft-i18n")(ko);const jo=Co.build("savedSearchesComponent"),Ro={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search"},No=St.extend("--ft-chip-color",Ot.colorOnSurface),Ao={backgroundColor:St.extend("--ft-chip-background-color",Ot.colorSurface),color:No,fontSize:St.extend("--ft-chip-font-size",Bn.fontSize),iconSize:St.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:St.extend("--ft-chip-ripple-color",No),horizontalPadding:St.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:St.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:St.external(Ot.colorOutline,"Design system"),opacityDisabled:St.external(Ot.colorOpacityDisabled,"Design system")},Uo=St.extend("--ft-chip-highlighted-color",St.extend("--ft-chip-color",Ot.colorOnPrimary)),Mo={backgroundColor:St.extend("--ft-chip-highlighted-background-color",St.extend("--ft-chip-background-color",Ot.colorPrimary)),color:Uo,rippleColor:St.extend("--ft-chip-highlighted-ripple-color",Uo)},Po=St.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),To=St.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Bo=[Ut,w`
775
779
  :host {
776
780
  display: inline-block;
@@ -927,11 +931,11 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
927
931
  icon="${this.internalIcon}"
928
932
  label="${this.iconLabel}"
929
933
  ></ft-button>
930
- `:tt`
934
+ `:tt`
931
935
  <div class="ft-chip--icon-container ft-no-text-select">
932
936
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
933
937
  </div>
934
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Fo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Fo))}getLabel(){return this.label||this.textContent}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()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Lo.elementDefinitions={"ft-ripple":Gi,"ft-typography":pr,"ft-icon":qr,"ft-button":yo},Lo.styles=Bo,Io([s({type:Boolean})],Lo.prototype,"highlighted",void 0),Io([s({type:Boolean})],Lo.prototype,"removable",void 0),Io([s({type:Boolean})],Lo.prototype,"disabled",void 0),Io([s({type:Boolean})],Lo.prototype,"clickable",void 0),Io([s({type:Boolean})],Lo.prototype,"iconClickable",void 0),Io([s({type:Boolean})],Lo.prototype,"dense",void 0),Io([s({type:Boolean})],Lo.prototype,"multiLine",void 0),Io([s()],Lo.prototype,"label",void 0),Io([s()],Lo.prototype,"iconLabel",void 0),Io([s()],Lo.prototype,"icon",void 0),Io([s()],Lo.prototype,"iconVariant",void 0),Io([s({type:Boolean})],Lo.prototype,"trailingIcon",void 0),Io([c("ft-typography slot")],Lo.prototype,"slottedContent",void 0),d("ft-chip")(Lo);var _o=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class zo extends(So(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(jo,Ro)}render(){var t;return tt`
938
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Fo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Fo))}getLabel(){return this.label||this.textContent}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()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Lo.elementDefinitions={"ft-ripple":Gi,"ft-typography":pr,"ft-icon":qr,"ft-button":yo},Lo.styles=Bo,Io([s({type:Boolean})],Lo.prototype,"highlighted",void 0),Io([s({type:Boolean})],Lo.prototype,"removable",void 0),Io([s({type:Boolean})],Lo.prototype,"disabled",void 0),Io([s({type:Boolean})],Lo.prototype,"clickable",void 0),Io([s({type:Boolean})],Lo.prototype,"iconClickable",void 0),Io([s({type:Boolean})],Lo.prototype,"dense",void 0),Io([s({type:Boolean})],Lo.prototype,"multiLine",void 0),Io([s()],Lo.prototype,"label",void 0),Io([s()],Lo.prototype,"iconLabel",void 0),Io([s()],Lo.prototype,"icon",void 0),Io([s()],Lo.prototype,"iconVariant",void 0),Io([s({type:Boolean})],Lo.prototype,"trailingIcon",void 0),Io([c("ft-typography slot")],Lo.prototype,"slottedContent",void 0),d("ft-chip")(Lo);var _o=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class zo extends(So(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(jo,Ro)}render(){var t;return tt`
935
939
  <ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
936
940
  ${this.renderAlertStatus()}
937
941
  <div id="container">
@@ -940,11 +944,11 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
940
944
  ${this.renderSearchButton()}
941
945
  </div>
942
946
  </ft-card>
943
- `}renderDescription(){var t;return this.showDescription?tt`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:it}renderSearchButton(){return this.showSearchButton?tt`<div id="searchButton" class="content"><ft-button id="search" icon="search">${jo.messages.search()}</ft-button></div>`:it}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?tt`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:it}renderSearchFilters(){var t,e,i,n,r,o,s,a,l,c,h,u,f,d;return this.showSearchFilters?tt`<div id="searchFilters" class="content">
947
+ `}renderDescription(){var t;return this.showDescription?tt`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:it}renderSearchButton(){return this.showSearchButton?tt`<div id="searchButton" class="content"><ft-button id="search" icon="search">${jo.messages.search()}</ft-button></div>`:it}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?tt`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:it}renderSearchFilters(){var t,e,i,n,r,o,s,a,l,c,u,h,f,d;return this.showSearchFilters?tt`<div id="searchFilters" class="content">
944
948
  ${null!==(e=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==e&&e?this.renderMetadata(jo.messages.keywords(),null===(i=this.search)||void 0===i?void 0:i.searchRequest.query,!0):it}
945
949
  ${null===(n=this.search)||void 0===n?void 0:n.searchRequest.filters.map((t=>this.renderMetadata(t.label,t.values)))}
946
950
  ${null!==(s=null===(o=null===(r=this.search)||void 0===r?void 0:r.searchRequest.contentLocale)||void 0===o?void 0:o.length)&&void 0!==s&&s?this.renderMetadata(jo.messages.language(),null===(a=this.search)||void 0===a?void 0:a.searchRequest.contentLocale,!0):it}
947
- ${null!==(h=null===(c=null===(l=this.search)||void 0===l?void 0:l.searchRequest.sort[0])||void 0===c?void 0:c.key.length)&&void 0!==h&&h?this.renderMetadata(jo.messages.sort(),this.mapSortKey(null===(u=this.search)||void 0===u?void 0:u.searchRequest.sort[0].key),!0):it}
951
+ ${null!==(u=null===(c=null===(l=this.search)||void 0===l?void 0:l.searchRequest.sort[0])||void 0===c?void 0:c.key.length)&&void 0!==u&&u?this.renderMetadata(jo.messages.sort(),this.mapSortKey(null===(h=this.search)||void 0===h?void 0:h.searchRequest.sort[0].key),!0):it}
948
952
  ${(null===(f=this.search)||void 0===f?void 0:f.searchRequest.periodFilter)?this.renderMetadata(jo.messages.period(),this.mapPeriodFilter(null===(d=this.search)||void 0===d?void 0:d.searchRequest.periodFilter),!0):it}
949
953
  </div>`:it}renderMetadata(t,e,i=!1){return tt`<ft-chip dense ?highlighted=${i}><span class="metadata-label">${t}</span><span class="metadata-values">${Array.isArray(e)?e.join(", "):e}</span></ft-chip>`}mapSortKey(t){switch(t){case"afs:relevance":return jo.messages.relevance();case"ft:lastEdition":return jo.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return jo.messages.lastWeek();case"LAST_MONTH":return jo.messages.lastMonth();case"LAST_YEAR":return jo.messages.lastYear();case"CUSTOM":return jo.messages.customPeriod();default:return"--"}}}zo.elementDefinitions={"ft-icon":qr,"ft-card":Sr,"ft-chip":Lo,"ft-button":yo},zo.styles=w`
950
954
  ft-card {
@@ -1001,12 +1005,14 @@ function(t,e,i){let n,r=t;return"object"==typeof t?(r=t.slot,n=t):n={flatten:e},
1001
1005
  * Copyright 2020 Google LLC
1002
1006
  * SPDX-License-Identifier: BSD-3-Clause
1003
1007
  */
1004
- const{I:Do}=bt,Ko=()=>document.createComment(""),Wo=(t,e,i)=>{var n;const r=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(Ko(),o),n=r.insertBefore(Ko(),o);i=new Do(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,o),t=e}}}return i},Ho=(t,e,i=t)=>(t._$AI(e,i),t),Zo={},qo=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Vo=(t,e,i)=>{const n=new Map;for(let r=e;r<=i;r++)n.set(t[r],r);return n},Go=Bi(class extends Ii{constructor(t){if(super(t),t.type!==Ti)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const r=[],o=[];let s=0;for(const e of t)r[s]=n?n(e,s):s,o[s]=i(e,s),s++;return{values:o,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var r;const o=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(o))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let h,u,f=0,d=o.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===o[f])f++;else if(null===o[d])d--;else if(l[f]===a[p])c[p]=Ho(o[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=Ho(o[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Ho(o[f],s[v]),Wo(t,c[v+1],o[f]),f++,v--;else if(l[d]===a[p])c[p]=Ho(o[d],s[p]),Wo(t,o[f],o[d]),d--,p++;else if(void 0===h&&(h=Vo(a,p,v),u=Vo(l,f,d)),h.has(l[f]))if(h.has(l[d])){const e=u.get(a[p]),i=void 0!==e?o[e]:null;if(null===i){const e=Wo(t,o[f]);Ho(e,s[p]),c[p]=e}else c[p]=Ho(i,s[p]),Wo(t,o[f],i),o[e]=null;p++}else qo(o[d]),d--;else qo(o[f]),f++;for(;p<=v;){const e=Wo(t,c[v+1]);Ho(e,s[p]),c[p++]=e}for(;f<=d;){const t=o[f++];null!==t&&qo(t)}return this.ht=a,((t,e=Zo)=>{t._$AH=e})(t,c),et}});
1008
+ const{I:Do}=bt,Ko=()=>document.createComment(""),Wo=(t,e,i)=>{var n;const r=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(Ko(),o),n=r.insertBefore(Ko(),o);i=new Do(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==o||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,o),t=e}}}return i},Ho=(t,e,i=t)=>(t._$AI(e,i),t),Zo={},qo=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Vo=(t,e,i)=>{const n=new Map;for(let r=e;r<=i;r++)n.set(t[r],r);return n},Go=Bi(class extends Ii{constructor(t){if(super(t),t.type!==Ti)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const r=[],o=[];let s=0;for(const e of t)r[s]=n?n(e,s):s,o[s]=i(e,s),s++;return{values:o,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var r;const o=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(o))return this.ht=a,s;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let u,h,f=0,d=o.length-1,p=0,v=s.length-1;for(;f<=d&&p<=v;)if(null===o[f])f++;else if(null===o[d])d--;else if(l[f]===a[p])c[p]=Ho(o[f],s[p]),f++,p++;else if(l[d]===a[v])c[v]=Ho(o[d],s[v]),d--,v--;else if(l[f]===a[v])c[v]=Ho(o[f],s[v]),Wo(t,c[v+1],o[f]),f++,v--;else if(l[d]===a[p])c[p]=Ho(o[d],s[p]),Wo(t,o[f],o[d]),d--,p++;else if(void 0===u&&(u=Vo(a,p,v),h=Vo(l,f,d)),u.has(l[f]))if(u.has(l[d])){const e=h.get(a[p]),i=void 0!==e?o[e]:null;if(null===i){const e=Wo(t,o[f]);Ho(e,s[p]),c[p]=e}else c[p]=Ho(i,s[p]),Wo(t,o[f],i),o[e]=null;p++}else qo(o[d]),d--;else qo(o[f]),f++;for(;p<=v;){const e=Wo(t,c[v+1]);Ho(e,s[p]),c[p++]=e}for(;f<=d;){const t=o[f++];null!==t&&qo(t)}return this.ht=a,((t,e=Zo)=>{t._$AH=e})(t,c),et}});
1005
1009
  /**
1006
1010
  * @license
1007
1011
  * Copyright 2017 Google LLC
1008
1012
  * SPDX-License-Identifier: BSD-3-Clause
1009
- */var Xo,Jo,Yo,Qo,ts,es,is,ns,rs;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function u(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=o(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[o(t)]},l.prototype.get=function(t){return t=o(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(o(t))},l.prototype.set=function(t,e){this.map[o(t)]=s(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}})),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;r(new y(n,i))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=m,Object.defineProperty(e,"B",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Xo||(Xo={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Jo||(Jo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Yo||(Yo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Qo||(Qo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(ts||(ts={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(es||(es={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(is||(is={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ns||(ns={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(rs||(rs={}));class os{async listMySearches(){var t;return(null===(t=kr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Cr.await()).listMySearches(kr.getState().session.profile.userId):[]}}const ss=Ri.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const as=new class{clear(){this.clearMySearches()}clearMySearches(){ss.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new os,e=await t.listMySearches();ss.actions.setSavedSearches(e)}};var ls=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class cs extends(So(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=rs.SAVED_SEARCH_USER,this.addStore(kr),this.addStore(ss),this.addI18nContext(jo,Ro)}render(){var t;return this.editorMode&&!this.userHasRights?tt`<ft-typography>${jo.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?tt`<ft-typography>${jo.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?tt`
1013
+ */var Xo,Jo,Yo,Qo,ts,es,is,ns,rs;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function o(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function u(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function h(t){var e=new FileReader,i=u(e);return e.readAsArrayBuffer(t),i}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=u(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=o(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[o(t)]},l.prototype.get=function(t){return t=o(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(o(t))},l.prototype.set=function(t,e){this.map[o(t)]=s(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,r=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(r))}})),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,n){return new Promise((function(r,o){var s=new v(t,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();e.append(n,r)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;r(new y(n,i))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=m,Object.defineProperty(e,"B",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Xo||(Xo={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Jo||(Jo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Yo||(Yo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Qo||(Qo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(ts||(ts={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(es||(es={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(is||(is={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ns||(ns={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(rs||(rs={}));class os{async listMySearches(){var t;return(null===(t=kr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Cr.await()).listMySearches(kr.getState().session.profile.userId):[]}}const ss=Ri.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,e)=>{t.savedSearches=e.payload}},initialState:{savedSearches:void 0}});const as=new class{clear(){this.clearMySearches()}clearMySearches(){ss.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new os,e=await t.listMySearches();ss.actions.setSavedSearches(e)}};var ls=function(t,e,i,n){for(var r,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,i,s):r(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};class cs extends(So(Fr)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=rs.SAVED_SEARCH_USER,this.addStore(kr),this.addStore(ss),this.addI18nContext(jo,Ro)}render(){var t;return this.editorMode&&!this.userHasRights?tt`
1014
+ <ft-typography>${jo.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?tt`
1015
+ <ft-typography>${jo.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?tt`
1010
1016
  <div id="container">
1011
1017
  ${Go(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>tt`
1012
1018
  <ft-search-saved-search
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-saved-searches",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "Displays the saved searches",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-search-context": "1.0.36",
23
- "@fluid-topics/ft-wc-utils": "1.0.36",
22
+ "@fluid-topics/ft-search-context": "1.0.37",
23
+ "@fluid-topics/ft-wc-utils": "1.0.37",
24
24
  "lit": "2.7.2"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@fluid-topics/public-api": "1.0.38"
28
28
  },
29
- "gitHead": "7ace912b9fec53f21ded2d3b32ba7d723118d334"
29
+ "gitHead": "abb2109b58b81de01332c9f036f5ff1df0861f8f"
30
30
  }