@fluid-topics/ft-search-selected-facets 1.1.6 → 1.1.8

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.
@@ -1587,7 +1587,7 @@ const Zt=Symbol.for(""),Tt=t=>{if(t?.r===Zt)return t?._$litStatic$},Pt=t=>({_$li
1587
1587
  slot:not([name]) {
1588
1588
  display: none;
1589
1589
  }
1590
- `];var en=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class on extends CustomEvent{constructor(t){super("change",{detail:t})}}class rn extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return e.flatDeep(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return o.html`
1590
+ `];var en=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class on extends CustomEvent{constructor(t){super("change",{detail:t})}}class rn extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return e.flatDeep(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return e.flatDeep(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return o.html`
1591
1591
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1592
1592
  part="container">
1593
1593
  ${this.label||t?o.html`
@@ -58,7 +58,7 @@ const C={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},E=(t=C,e,
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const P=globalThis,T=P.trustedTypes,M=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,_="?"+Z,H=`<${_}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,st=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ht=G.createTreeWalker(G,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==M?M.createHTML(e):e}const pt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=Q;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,h=0;for(;h<o.length&&(s.lastIndex=h,l=s.exec(o),null!==l);)h=s.lastIndex,s===Q?"!--"===l[1]?s=tt:void 0!==l[1]?s=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=ot):void 0!==l[3]&&(s=ot):s===ot?">"===l[0]?(s=r??Q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ot:'"'===l[3]?rt:it):s===rt||s===it?s=ot:s===tt||s===et?s=Q:(s=ot,r=void 0);const f=s===ot&&t[e+1].startsWith("/>")?" ":"";n+=s===Q?o+H:c>=0?(i.push(a),o.slice(0,c)+K+o.slice(c)+Z+f):o+Z+(-2===c?e:f)}return[ft(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let ut=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,h]=pt(e,o);if(this.el=t.createElement(c,i),ht.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ht.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=h[s++],o=r.getAttribute(t).split(Z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?vt:"?"===i[1]?mt:"@"===i[1]?xt:bt}),r.removeAttribute(t)}else t.startsWith(Z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(Z),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],V()),ht.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===_)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Z,t+1));)l.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,e){const o=G.createElement("template");return o.innerHTML=t,o}};function dt(t,e,o=t,i){if(e===at)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=q(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=dt(t,r._$AS(t,e.values),r,i)),e}let yt=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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??G).importNode(e,!0);ht.currentNode=i;let r=ht.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new gt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new Ot(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ht.nextNode(),n++)}return ht.currentNode=G,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=dt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(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!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new yt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){Y(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(V()),this.k(V()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=lt}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=dt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=dt(this,i[o+s],e,s),a===at&&(a=this._$AH[s]),n||=!q(a)||a!==this._$AH[s],a===lt?t=lt:t!==lt&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends bt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},mt=class extends bt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends bt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??lt)===at)return;const o=this._$AH,i=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==lt&&(o===lt||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};const wt={j:K,P:Z,A:_,C:1,M:pt,L:yt,R:X,V:dt,D:gt,I:bt,H:mt,N:xt,U:vt,B:Ot},St=P.litHtmlPolyfillSupport;St?.(ut,gt),(P.litHtmlVersions??=[]).push("3.1.0");
61
+ */const P=globalThis,M=P.trustedTypes,T=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,_="?"+Z,H=`<${_}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,st=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ht=G.createTreeWalker(G,129);function ft(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==T?T.createHTML(e):e}const pt=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",s=Q;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,h=0;for(;h<o.length&&(s.lastIndex=h,l=s.exec(o),null!==l);)h=s.lastIndex,s===Q?"!--"===l[1]?s=tt:void 0!==l[1]?s=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),s=ot):void 0!==l[3]&&(s=ot):s===ot?">"===l[0]?(s=r??Q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?ot:'"'===l[3]?rt:it):s===rt||s===it?s=ot:s===tt||s===et?s=Q:(s=ot,r=void 0);const f=s===ot&&t[e+1].startsWith("/>")?" ":"";n+=s===Q?o+H:c>=0?(i.push(a),o.slice(0,c)+K+o.slice(c)+Z+f):o+Z+(-2===c?e:f)}return[ft(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};let ut=class t{constructor({strings:e,_$litType$:o},i){let r;this.parts=[];let n=0,s=0;const a=e.length-1,l=this.parts,[c,h]=pt(e,o);if(this.el=t.createElement(c,i),ht.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ht.nextNode())&&l.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(K)){const e=h[s++],o=r.getAttribute(t).split(Z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:o,ctor:"."===i[1]?vt:"?"===i[1]?mt:"@"===i[1]?xt:bt}),r.removeAttribute(t)}else t.startsWith(Z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(Z),e=t.length-1;if(e>0){r.textContent=M?M.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],V()),ht.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===_)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(Z,t+1));)l.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,e){const o=G.createElement("template");return o.innerHTML=t,o}};function dt(t,e,o=t,i){if(e===at)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=q(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=dt(t,r._$AS(t,e.values),r,i)),e}let yt=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){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??G).importNode(e,!0);ht.currentNode=i;let r=ht.nextNode(),n=0,s=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new gt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new Ot(r,this,t)),this._$AV.push(e),a=o[++s]}n!==a?.index&&(r=ht.nextNode(),n++)}return ht.currentNode=G,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=dt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(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!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(ft(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new yt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){Y(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let i,r=0;for(const n of e)r===o.length?o.push(i=new t(this.k(V()),this.k(V()),this,this.options)):i=o[r],i._$AI(n),r++;r<o.length&&(this._$AR(i&&i._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=lt}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=dt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==at,n&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=dt(this,i[o+s],e,s),a===at&&(a=this._$AH[s]),n||=!q(a)||a!==this._$AH[s],a===lt?t=lt:t!==lt&&(t+=(a??"")+r[s+1]),this._$AH[s]=a}n&&!i&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends bt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},mt=class extends bt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends bt{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??lt)===at)return;const o=this._$AH,i=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==lt&&(o===lt||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}};const wt={j:K,P:Z,A:_,C:1,M:pt,L:yt,R:X,V:dt,D:gt,I:bt,H:mt,N:xt,U:vt,B:Ot},St=P.litHtmlPolyfillSupport;St?.(ut,gt),(P.litHtmlVersions??=[]).push("3.1.0");
62
62
  /**
63
63
  * @license
64
64
  * Copyright 2019 Google LLC
@@ -69,7 +69,7 @@ const Nt=globalThis,$t=Nt.ShadowRoot&&(void 0===Nt.ShadyCSS||Nt.ShadyCSS.nativeS
69
69
  * @license
70
70
  * Copyright 2017 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Wt,getOwnPropertyNames:jt,getOwnPropertySymbols:Ft,getPrototypeOf:zt}=Object,Dt=globalThis,Bt=Dt.trustedTypes,Pt=Bt?Bt.emptyScript:"",Tt=Dt.reactiveElementPolyfillSupport,Mt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Zt=(t,e)=>!Lt(t,e),_t={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Zt};Symbol.metadata??=Symbol("metadata"),Dt.litPropertyMetadata??=new WeakMap;let Ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&At(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Wt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_t}static _$Ei(){if(this.hasOwnProperty(Mt("elementProperties")))return;const t=zt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mt("properties"))){const t=this.properties,e=[...jt(t),...Ft(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Ut(t))}else void 0!==t&&e.push(Ut(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=Nt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Zt)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Mt("elementProperties")]=new Map,Ht[Mt("finalized")]=new Map,Tt?.({ReactiveElement:Ht}),(Dt.reactiveElementVersions??=[]).push("2.0.2");
72
+ */,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Wt,getOwnPropertyNames:jt,getOwnPropertySymbols:Ft,getPrototypeOf:zt}=Object,Dt=globalThis,Bt=Dt.trustedTypes,Pt=Bt?Bt.emptyScript:"",Mt=Dt.reactiveElementPolyfillSupport,Tt=(t,e)=>t,Kt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Zt=(t,e)=>!Lt(t,e),_t={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Zt};Symbol.metadata??=Symbol("metadata"),Dt.litPropertyMetadata??=new WeakMap;let Ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=_t){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&At(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=Wt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??_t}static _$Ei(){if(this.hasOwnProperty(Tt("elementProperties")))return;const t=zt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tt("properties"))){const t=this.properties,e=[...jt(t),...Ft(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Ut(t))}else void 0!==t&&e.push(Ut(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=Nt.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:Kt).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kt;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Zt)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Tt("elementProperties")]=new Map,Ht[Tt("finalized")]=new Map,Mt?.({ReactiveElement:Ht}),(Dt.reactiveElementVersions??=[]).push("2.0.2");
73
73
  /**
74
74
  * @license
75
75
  * Copyright 2017 Google LLC
@@ -86,7 +86,7 @@ let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={ho
86
86
  * @license
87
87
  * Copyright 2019 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */class Be extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=ze.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Te=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Me=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Ze=Symbol("exportpartsDebouncer");class _e extends Be{constructor(){super(),this[Pe]=new W(5),this[Ke]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[Ze].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,o,i,r,n,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).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(", "))}}Pe=Ze,Te([k()],_e.prototype,"exportpartsPrefix",void 0),Te([B([])],_e.prototype,"exportpartsPrefixes",void 0),Te([k()],_e.prototype,"customStylesheet",void 0);const He=Ie.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");It`
89
+ */class Be extends Ee{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=ze.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Pe,Me=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};const Te=Symbol("constructorPrototype"),Ke=Symbol("constructorName"),Ze=Symbol("exportpartsDebouncer");class _e extends Be{constructor(){super(),this[Pe]=new W(5),this[Ke]=this.constructor.name,this[Te]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ke]&&Object.setPrototypeOf(this,this[Te])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[Ze].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,o,i,r,n,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=null!==(s=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...o).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(", "))}}Pe=Ze,Me([k()],_e.prototype,"exportpartsPrefix",void 0),Me([B([])],_e.prototype,"exportpartsPrefixes",void 0),Me([k()],_e.prototype,"customStylesheet",void 0);const He=Ie.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");It`
90
90
  .highlight-html-match {
91
91
  background: ${He};
92
92
  }
@@ -122,7 +122,7 @@ let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={ho
122
122
  display: inline-block;
123
123
  width: 0;
124
124
  }
125
- `;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ye=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!z(t,e),attribute:!1,...e};k(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Xe{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Je(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,to,eo;const oo=Symbol("internalReduxEventsUnsubscribers"),io=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class no extends _e{constructor(){super(...arguments),this[Qe]=new Map,this[to]=new Map,this[eo]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Je(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[io].has(t.store):this[io].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[io].set(t,e.subscribe((()=>this.updateFromStores()))),Je(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[io].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[io].has(t)&&this[io].get(t)(),this[io].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(t){return!!t&&!!t[Vo]}function lo(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===qo}(t)||Array.isArray(t)||!!t[Go]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Go])||yo(t)||go(t))}function co(t,e,o){void 0===o&&(o=!1),0===ho(t)?(o?Object.keys:Yo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ho(t){var e=t[Vo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yo(t)?2:go(t)?3:0}function fo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,o){var i=ho(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yo(t){return Ko&&t instanceof Map}function go(t){return Zo&&t instanceof Set}function bo(t){return t.o||t.t}function vo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xo(t);delete e[Vo];for(var o=Yo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),Oo(t)||ao(t)||!lo(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=xo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function xo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wo(t){var e=Jo[t];return e||so(18,t),e}function So(){return To}function No(t,e){e&&(wo("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Co(t),t.p.forEach(ko),t.p=null}function Co(t){t===To&&(To=t.l)}function Eo(t){return To={p:[],l:To,h:t,m:!0,_:0}}function ko(t){var e=t[Vo];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||wo("ES5").S(e,t,i),i?(o[Vo].P&&($o(e),so(4)),lo(t)&&(t=Io(e,t),e.l||Lo(e,t)),e.u&&wo("Patches").M(o[Vo].t,t,e.u,e.s)):t=Io(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==Ho?t:void 0}function Io(t,e,o){if(Oo(e))return e;var i=e[Vo];if(!i)return co(e,(function(r,n){return Uo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Lo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=vo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),co(n,(function(e,n){return Uo(t,i,r,e,n,o,s)})),Lo(t,r,!1),o&&t.u&&wo("Patches").N(i,o,t.u,t.s)}return i.o}function Uo(t,e,o,i,r,n,s){if(ao(r)){var a=Io(t,r,n&&e&&3!==e.i&&!fo(e.R,i)?n.concat(i):void 0);if(po(o,i,a),!ao(a))return;t.m=!1}else s&&o.add(r);if(lo(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Io(t,r),e&&e.A.l||Lo(t,r)}}function Lo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Ao(t,e){var o=t[Vo];return(o?bo(o):t)[e]}function Wo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function jo(t){t.P||(t.P=!0,t.l&&jo(t.l))}function Fo(t){t.o||(t.o=vo(t.t))}function zo(t,e,o){var i=yo(e)?wo("MapSet").F(e,o):go(e)?wo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:So(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Qo;o&&(r=[i],n=ti);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):wo("ES5").J(e,o);return(o?o.A:So()).p.push(i),i}function Do(t){return ao(t)||so(22,t),function t(e){if(!lo(e))return e;var o,i=e[Vo],r=ho(e);if(i){if(!i.P&&(i.i<4||!wo("ES5").K(i)))return i.t;i.I=!0,o=Bo(e,r),i.I=!1}else o=Bo(e,r);return co(o,(function(e,r){i&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(i.t,e)===r||po(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vo(t)}Qe=io,to=ro,eo=oo;var Po,To,Mo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,_o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ho=Mo?Symbol.for("immer-nothing"):((Po={})["immer-nothing"]=!0,Po),Go=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",Vo=Mo?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Yo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xo=Object.getOwnPropertyDescriptors||function(t){var e={};return Yo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jo={},Qo={get:function(t,e){if(e===Vo)return t;var o=bo(t);if(!fo(o,e))return function(t,e,o){var i,r=Wo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!lo(i)?i:i===Ao(t.t,e)?(Fo(t),t.o[e]=zo(t.A.h,i,t)):i},has:function(t,e){return e in bo(t)},ownKeys:function(t){return Reflect.ownKeys(bo(t))},set:function(t,e,o){var i=Wo(bo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ao(bo(t),e),n=null==r?void 0:r[Vo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,r)&&(void 0!==o||fo(t.t,e)))return!0;Fo(t),jo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ao(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),jo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=bo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},ti={};co(Qo,(function(t,e){ti[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ti.deleteProperty=function(t,e){return ti.set.call(this,t,e,void 0)},ti.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var ei=function(){function t(t){var e=this;this.O=_o,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&so(6),void 0!==i&&"function"!=typeof i&&so(7),lo(t)){var a=Eo(e),l=zo(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?$o(a):Co(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return No(a,i),Ro(t,a)}),(function(t){throw $o(a),t})):(No(a,i),Ro(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Ho&&(s=void 0),e.D&&mo(s,!0),i){var h=[],f=[];wo("Patches").M(t,s,h,f),i(h,f)}return s}so(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,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){lo(t)||so(8),ao(t)&&(t=Do(t));var e=Eo(this),o=zo(this,t,void 0);return o[Vo].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Vo]).A;return No(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_o&&so(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=wo("Patches").$;return ao(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),oi=new ei,ii=oi.produce;function ri(t){return ri="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},ri(t)}function ni(t){var e=function(t,e){if("object"!==ri(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ri(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ri(e)?e:String(e)}function si(t,e,o){return(e=ni(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ai(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function li(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ai(Object(o),!0).forEach((function(e){si(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ai(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ci(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. "}oi.produceWithPatches.bind(oi),oi.setAutoFreeze.bind(oi),oi.setUseProxies.bind(oi),oi.applyPatches.bind(oi),oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var hi="function"==typeof Symbol&&Symbol.observable||"@@observable",fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},pi={INIT:"@@redux/INIT"+fi(),REPLACE:"@@redux/REPLACE"+fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fi()}};function ui(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ci(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ci(1));return o(ui)(t,e)}if("function"!=typeof t)throw new Error(ci(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(ci(3));return n}function f(t){if("function"!=typeof t)throw new Error(ci(4));if(l)throw new Error(ci(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ci(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(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(ci(7));if(void 0===t.type)throw new Error(ci(8));if(l)throw new Error(ci(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:pi.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ci(10));r=t,p({type:pi.REPLACE})}})[hi]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ci(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[hi]=function(){return this},t},i}function di(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:pi.INIT}))throw new Error(ci(12));if(void 0===o(void 0,{type:pi.PROBE_UNKNOWN_ACTION()}))throw new Error(ci(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ci(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function yi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 gi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ci(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=yi.apply(void 0,n)(o.dispatch),li(li({},o),{},{dispatch:i})}}}function bi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var vi=bi();vi.withExtraArgument=bi;var mi,xi=vi,Oi=(mi=function(t,e){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},mi(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 o(){this.constructor=t}mi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},Si=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ni=Object.defineProperty,$i=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ii=function(t,e,o){return e in t?Ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ui=function(t,e){for(var o in e||(e={}))ki.call(e,o)&&Ii(t,o,e[o]);if(Ei)for(var i=0,r=Ei(e);i<r.length;i++){o=r[i];Ri.call(e,o)&&Ii(t,o,e[o])}return t},Li=function(t,e){return $i(t,Ci(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]?yi:yi.apply(null,arguments)};var Wi=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array),ji=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array);function Fi(t){return lo(t)?ii(t,(function(){})):t}function zi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Wi;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(xi.withExtraArgument(o.extraArgument)):i.push(xi));return i}(t)}}function Di(t){var e,o=zi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))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=di(n)}var d=a;"function"==typeof d&&(d=d(o));var y=gi.apply(void 0,d),g=yi;c&&(g=Ai(Ui({trace:!1},"object"==typeof c&&c)));var b=new ji(y),v=b;return Array.isArray(u)?v=Si([y],u):"function"==typeof u&&(v=u(b)),ui(e,f,g.apply(void 0,v))}function Bi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ui(Ui({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ti(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Fi(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Pi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Ui(Ui({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Pi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fi(t())};else{var c=Fi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=Si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ao(t))return void 0===(i=o(t,e))?t:i;if(lo(t))return ii(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Bi(c,i):Bi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Mi=["name","message","stack","code"],Ki=function(t,e){this.payload=t,this.meta=e},Zi=function(t,e){this.payload=t,this.meta=e},_i=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Mi;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Hi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Bi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Li(Ui({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Bi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Li(Ui({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Bi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||_i)(t||"Rejected"),meta:Li(Ui({},n||{}),{arg:i,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,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function u(t){h=t,p.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,g,b,v;return wi(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new Ki(t,e)},fulfillWithValue:function(t,e){return new Zi(t,e)}})).then((function(e){if(e instanceof Ki)throw e;return e instanceof Zi?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Ki?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:u,requestId:f,arg:t,unwrap:function(){return d.then(Hi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Gi="listenerMiddleware";Bi(Gi+"/add"),Bi(Gi+"/removeAll"),Bi(Gi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Vo];return Qo.get(e,t)},set:function(e){var o=this[Vo];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Vo];if(!r.P)switch(r.i){case 5:i(r)&&jo(r);break;case 4:o(r)&&jo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Yo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Vo){var s=e[n];if(void 0===s&&!fo(e,n))return!0;var a=o[n],l=a&&a[Vo];if(l?l.t!==s:!uo(a,s))return!0}}var c=!!e[Vo];return i.length!==Yo(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Jo[t]||(Jo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Xo(o);delete n[Vo];for(var s=Yo(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:So(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Vo,{value:n,writable:!0}),r},S:function(t,o,r){r?ao(o)&&o[Vo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Vo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)co(n,(function(e){e!==Vo&&(void 0!==r[e]||fo(r,e)?s[e]||t(n[e]):(s[e]=!0,jo(o)))})),co(r,(function(t){void 0!==n[t]||fo(n,t)||(s[t]=!1,jo(o))}));else if(5===a){if(i(o)&&(jo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Vi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Je(r))return r;if(null==i)return;const n=Ti({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=Di({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Vi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const qi=Symbol("elementInternals");var Yi,Xi,Ji;const Qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ji=null===(Xi=null===(Yi=window.safari)||void 0===Yi?void 0:Yi.pushNotification)||void 0===Xi?void 0:Xi.toString())&&void 0!==Ji?Ji:""),tr=1,er=2,or=t=>(...e)=>({_$litDirective$:t,values:e});
125
+ `;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ye=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!z(t,e),attribute:!1,...e};k(r)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}};class Xe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Je(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,to,eo;const oo=Symbol("internalReduxEventsUnsubscribers"),io=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class no extends _e{constructor(){super(...arguments),this[Qe]=new Map,this[to]=new Map,this[eo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Je(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[io].has(t.store):this[io].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[io].set(t,e.subscribe((()=>this.updateFromStores()))),Je(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[oo].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[io].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[oo].forEach((t=>t())),this[oo]=[]}unsubscribeFromStore(t){this[io].has(t)&&this[io].get(t)(),this[io].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function so(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(t){return!!t&&!!t[Vo]}function lo(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===qo}(t)||Array.isArray(t)||!!t[Go]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Go])||yo(t)||go(t))}function co(t,e,o){void 0===o&&(o=!1),0===ho(t)?(o?Object.keys:Yo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function ho(t){var e=t[Vo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:yo(t)?2:go(t)?3:0}function fo(t,e){return 2===ho(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function po(t,e,o){var i=ho(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function yo(t){return Ko&&t instanceof Map}function go(t){return Zo&&t instanceof Set}function bo(t){return t.o||t.t}function vo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xo(t);delete e[Vo];for(var o=Yo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),Oo(t)||ao(t)||!lo(t)||(ho(t)>1&&(t.set=t.add=t.clear=t.delete=xo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function xo(){so(2)}function Oo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function wo(t){var e=Jo[t];return e||so(18,t),e}function So(){return Mo}function No(t,e){e&&(wo("Patches"),t.u=[],t.s=[],t.v=e)}function $o(t){Co(t),t.p.forEach(ko),t.p=null}function Co(t){t===Mo&&(Mo=t.l)}function Eo(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function ko(t){var e=t[Vo];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||wo("ES5").S(e,t,i),i?(o[Vo].P&&($o(e),so(4)),lo(t)&&(t=Io(e,t),e.l||Lo(e,t)),e.u&&wo("Patches").M(o[Vo].t,t,e.u,e.s)):t=Io(e,o,[]),$o(e),e.u&&e.v(e.u,e.s),t!==Ho?t:void 0}function Io(t,e,o){if(Oo(e))return e;var i=e[Vo];if(!i)return co(e,(function(r,n){return Uo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return Lo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=vo(i.k):i.o,n=r,s=!1;3===i.i&&(n=new Set(r),r.clear(),s=!0),co(n,(function(e,n){return Uo(t,i,r,e,n,o,s)})),Lo(t,r,!1),o&&t.u&&wo("Patches").N(i,o,t.u,t.s)}return i.o}function Uo(t,e,o,i,r,n,s){if(ao(r)){var a=Io(t,r,n&&e&&3!==e.i&&!fo(e.R,i)?n.concat(i):void 0);if(po(o,i,a),!ao(a))return;t.m=!1}else s&&o.add(r);if(lo(r)&&!Oo(r)){if(!t.h.D&&t._<1)return;Io(t,r),e&&e.A.l||Lo(t,r)}}function Lo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Ao(t,e){var o=t[Vo];return(o?bo(o):t)[e]}function Wo(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function jo(t){t.P||(t.P=!0,t.l&&jo(t.l))}function Fo(t){t.o||(t.o=vo(t.t))}function zo(t,e,o){var i=yo(e)?wo("MapSet").F(e,o):go(e)?wo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:So(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Qo;o&&(r=[i],n=ti);var s=Proxy.revocable(r,n),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(e,o):wo("ES5").J(e,o);return(o?o.A:So()).p.push(i),i}function Do(t){return ao(t)||so(22,t),function t(e){if(!lo(e))return e;var o,i=e[Vo],r=ho(e);if(i){if(!i.P&&(i.i<4||!wo("ES5").K(i)))return i.t;i.I=!0,o=Bo(e,r),i.I=!1}else o=Bo(e,r);return co(o,(function(e,r){i&&function(t,e){return 2===ho(t)?t.get(e):t[e]}(i.t,e)===r||po(o,e,t(r))})),3===r?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return vo(t)}Qe=io,to=ro,eo=oo,no.reduxProperties=new Map,no.reduxReactiveProperties=new Set,no.reduxEventListeners=new Map;var Po,Mo,To="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ko="undefined"!=typeof Map,Zo="undefined"!=typeof Set,_o="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ho=To?Symbol.for("immer-nothing"):((Po={})["immer-nothing"]=!0,Po),Go=To?Symbol.for("immer-draftable"):"__$immer_draftable",Vo=To?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Yo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xo=Object.getOwnPropertyDescriptors||function(t){var e={};return Yo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Jo={},Qo={get:function(t,e){if(e===Vo)return t;var o=bo(t);if(!fo(o,e))return function(t,e,o){var i,r=Wo(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!lo(i)?i:i===Ao(t.t,e)?(Fo(t),t.o[e]=zo(t.A.h,i,t)):i},has:function(t,e){return e in bo(t)},ownKeys:function(t){return Reflect.ownKeys(bo(t))},set:function(t,e,o){var i=Wo(bo(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=Ao(bo(t),e),n=null==r?void 0:r[Vo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,r)&&(void 0!==o||fo(t.t,e)))return!0;Fo(t),jo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ao(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),jo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=bo(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){so(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){so(12)}},ti={};co(Qo,(function(t,e){ti[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ti.deleteProperty=function(t,e){return ti.set.call(this,t,e,void 0)},ti.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var ei=function(){function t(t){var e=this;this.O=_o,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof o&&so(6),void 0!==i&&"function"!=typeof i&&so(7),lo(t)){var a=Eo(e),l=zo(e,t,void 0),c=!0;try{s=o(l),c=!1}finally{c?$o(a):Co(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return No(a,i),Ro(t,a)}),(function(t){throw $o(a),t})):(No(a,i),Ro(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=o(t))&&(s=t),s===Ho&&(s=void 0),e.D&&mo(s,!0),i){var h=[],f=[];wo("Patches").M(t,s,h,f),i(h,f)}return s}so(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,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){lo(t)||so(8),ao(t)&&(t=Do(t));var e=Eo(this),o=zo(this,t,void 0);return o[Vo].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Vo]).A;return No(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!_o&&so(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=wo("Patches").$;return ao(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),oi=new ei,ii=oi.produce;function ri(t){return ri="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},ri(t)}function ni(t){var e=function(t,e){if("object"!==ri(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==ri(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ri(e)?e:String(e)}function si(t,e,o){return(e=ni(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ai(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function li(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ai(Object(o),!0).forEach((function(e){si(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ai(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ci(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. "}oi.produceWithPatches.bind(oi),oi.setAutoFreeze.bind(oi),oi.setUseProxies.bind(oi),oi.applyPatches.bind(oi),oi.createDraft.bind(oi),oi.finishDraft.bind(oi);var hi="function"==typeof Symbol&&Symbol.observable||"@@observable",fi=function(){return Math.random().toString(36).substring(7).split("").join(".")},pi={INIT:"@@redux/INIT"+fi(),REPLACE:"@@redux/REPLACE"+fi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fi()}};function ui(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ci(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ci(1));return o(ui)(t,e)}if("function"!=typeof t)throw new Error(ci(2));var r=t,n=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(ci(3));return n}function f(t){if("function"!=typeof t)throw new Error(ci(4));if(l)throw new Error(ci(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(ci(6));e=!1,c();var o=a.indexOf(t);a.splice(o,1),s=null}}}function p(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(ci(7));if(void 0===t.type)throw new Error(ci(8));if(l)throw new Error(ci(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=s=a,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:pi.INIT}),(i={dispatch:p,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ci(10));r=t,p({type:pi.REPLACE})}})[hi]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ci(11));function o(){t.next&&t.next(h())}return o(),{unsubscribe:e(o)}}})[hi]=function(){return this},t},i}function di(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}var n,s=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:pi.INIT}))throw new Error(ci(12));if(void 0===o(void 0,{type:pi.PROBE_UNKNOWN_ACTION()}))throw new Error(ci(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=o[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ci(14));r[l]=f,i=i||f!==h}return(i=i||s.length!==Object.keys(t).length)?r:t}}function yi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 gi(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),i=function(){throw new Error(ci(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=yi.apply(void 0,n)(o.dispatch),li(li({},o),{},{dispatch:i})}}}function bi(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var vi=bi();vi.withExtraArgument=bi;var mi,xi=vi,Oi=(mi=function(t,e){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},mi(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 o(){this.constructor=t}mi(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wi=function(t,e){var o,i,r,n,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){s.label=n[1];break}if(6===n[0]&&s.label<r[1]){s.label=r[1],r=n;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(n);break}r[2]&&s.ops.pop(),s.trys.pop();continue}n=e.call(t,s)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},Si=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},Ni=Object.defineProperty,$i=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Ei=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Ri=Object.prototype.propertyIsEnumerable,Ii=function(t,e,o){return e in t?Ni(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ui=function(t,e){for(var o in e||(e={}))ki.call(e,o)&&Ii(t,o,e[o]);if(Ei)for(var i=0,r=Ei(e);i<r.length;i++){o=r[i];Ri.call(e,o)&&Ii(t,o,e[o])}return t},Li=function(t,e){return $i(t,Ci(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]?yi:yi.apply(null,arguments)};var Wi=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array),ji=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return Oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Si([void 0],t[0].concat(this)))):new(e.bind.apply(e,Si([void 0],t.concat(this))))},e}(Array);function Fi(t){return lo(t)?ii(t,(function(){})):t}function zi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Wi;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(xi.withExtraArgument(o.extraArgument)):i.push(xi));return i}(t)}}function Di(t){var e,o=zi(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,s=i.middleware,a=void 0===s?o():s,l=i.devTools,c=void 0===l||l,h=i.preloadedState,f=void 0===h?void 0:h,p=i.enhancers,u=void 0===p?void 0:p;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))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=di(n)}var d=a;"function"==typeof d&&(d=d(o));var y=gi.apply(void 0,d),g=yi;c&&(g=Ai(Ui({trace:!1},"object"==typeof c&&c)));var b=new ji(y),v=b;return Array.isArray(u)?v=Si([y],u):"function"==typeof u&&(v=u(b)),ui(e,f,g.apply(void 0,v))}function Bi(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Ui(Ui({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Pi(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Mi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Fi(t.initialState),r=t.reducers||{},n=Object.keys(r),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Pi(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],s=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Ui(Ui({},r),a);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Pi(e):[e,o,i],s=n[0],a=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fi(t())};else{var c=Fi(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var o=Si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[l]),o.reduce((function(t,o){if(o){var i;if(ao(t))return void 0===(i=o(t,e))?t:i;if(lo(t))return ii(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return h.getInitialState=r,h}(i,(function(t){for(var e in h)t.addCase(e,h[e]);for(var o=0,i=s;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,i,n=r[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,s[t]=o,a[c]=o,l[t]=i?Bi(c,i):Bi(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:s,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Ti=["name","message","stack","code"],Ki=function(t,e){this.payload=t,this.meta=e},Zi=function(t,e){this.payload=t,this.meta=e},_i=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=Ti;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Hi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var i=Bi(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:Li(Ui({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Bi(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Li(Ui({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Bi(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||_i)(t||"Rejected"),meta:Li(Ui({},n||{}),{arg:i,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,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),p=new s;function u(t){h=t,p.abort()}var d=function(){return s=this,d=null,y=function(){var s,d,y,g,b,v;return wi(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(s=null==o?void 0:o.condition)?void 0:s.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(r(f,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:p.signal,abort:u,rejectWithValue:function(t,e){return new Ki(t,e)},fulfillWithValue:function(t,e){return new Zi(t,e)}})).then((function(e){if(e instanceof Ki)throw e;return e instanceof Zi?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Ki?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||a(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(s,d)).next())}));var s,d,y}();return Object.assign(d,{abort:u,requestId:f,arg:t,unwrap:function(){return d.then(Hi)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Gi="listenerMiddleware";Bi(Gi+"/add"),Bi(Gi+"/removeAll"),Bi(Gi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Vo];return Qo.get(e,t)},set:function(e){var o=this[Vo];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Vo];if(!r.P)switch(r.i){case 5:i(r)&&jo(r);break;case 4:o(r)&&jo(r)}}}function o(t){for(var e=t.t,o=t.k,i=Yo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Vo){var s=e[n];if(void 0===s&&!fo(e,n))return!0;var a=o[n],l=a&&a[Vo];if(l?l.t!==s:!uo(a,s))return!0}}var c=!!e[Vo];return i.length!==Yo(e).length+(c?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Jo[t]||(Jo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Xo(o);delete n[Vo];for(var s=Yo(n),a=0;a<s.length;a++){var l=s[a];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(i,e),n={i:i?5:4,A:o?o.A:So(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Vo,{value:n,writable:!0}),r},S:function(t,o,r){r?ao(o)&&o[Vo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Vo];if(o){var r=o.t,n=o.k,s=o.R,a=o.i;if(4===a)co(n,(function(e){e!==Vo&&(void 0!==r[e]||fo(r,e)?s[e]||t(n[e]):(s[e]=!0,jo(o)))})),co(r,(function(t){void 0!==n[t]||fo(n,t)||(s[t]=!1,jo(o))}));else if(5===a){if(i(o)&&(jo(o),s.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<n.length;c++)s[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Vi{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Je(r))return r;if(null==i)return;const n=Mi({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=Di({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[i.name]=new Vi(n,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Xe,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const qi=Symbol("elementInternals");var Yi,Xi,Ji;const Qi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ji=null===(Xi=null===(Yi=window.safari)||void 0===Yi?void 0:Yi.pushNotification)||void 0===Xi?void 0:Xi.toString())&&void 0!==Ji?Ji:""),tr=1,er=2,or=t=>(...e)=>({_$litDirective$:t,values:e});
126
126
  /**
127
127
  * @license
128
128
  * Copyright 2017 Google LLC
@@ -150,7 +150,7 @@ let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={ho
150
150
  */var yr,gr,br,vr,mr,xr,Or,wr,Sr,Nr,$r,Cr,Er,kr;!function(t){!function(e){var o={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(o.arrayBuffer)var i=["[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&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(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 o.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,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.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(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),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,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){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=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),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 g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(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)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(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 o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={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 o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new b(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(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&&o.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=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{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"}(yr||(yr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(gr||(gr={})),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"}(br||(br={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(vr||(vr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(mr||(mr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(xr||(xr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Or||(Or={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(wr||(wr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Sr||(Sr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Nr||(Nr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}($r||($r={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Cr||(Cr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Er||(Er={})),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"}(kr||(kr={})),kr.PERSONAL_BOOK_SHARE_USER,kr.PERSONAL_BOOK_USER,kr.HTML_EXPORT_USER,kr.PERSONAL_BOOK_USER,kr.PDF_EXPORT_USER,kr.PERSONAL_BOOK_USER,kr.KHUB_ADMIN,kr.CONTENT_PUBLISHER,kr.ADMIN,kr.KHUB_ADMIN,kr.USERS_ADMIN,kr.PORTAL_ADMIN,kr.DEVELOPER,kr.BETA_USER,kr.DEBUG_USER;const Rr=It`
151
151
  `,Ir=Vi.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Ur{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ir.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Ur.build(t):null!==(e=Ur.API)&&void 0!==e?e:Ur.API=Ur.build()}static await(t){return new Promise((e=>{let o=Ur.get(t);if(o)e(o);else{const i=Ir.subscribe((()=>{o=Ur.get(t),o&&(i(),e(o))}))}}))}}var Lr;const Ar=Symbol("clearAfterUnitTest");class Wr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Lr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Ir.getState().uiLocale,Ir.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ir.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};z(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new qe(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>j(0).then((()=>t())).catch((()=>null)))))}}Lr=Ar,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Wr((async(t,e)=>(await Ur.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Wr((async(t,e)=>(await Ur.await()).getCustomMessageContext(t,e))));const jr=window.FluidTopicsI18nService,Fr=window.FluidTopicsCustomI18nService;var zr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Dr extends _e{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ur.get(),this.cache=new r,this.cleanSessionDebouncer=new W}render(){return pe`
152
152
  <slot></slot>
153
- `}update(t){super.update(t),t.has("baseUrl")&&Ir.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ir.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ir.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ir.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ir.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ir.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ir.actions.setSession(this.session),t.has("availableUiLocales")&&Ir.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>jr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Dr.elementDefinitions={},Dr.styles=Rr,zr([k()],Dr.prototype,"baseUrl",void 0),zr([k()],Dr.prototype,"apiIntegrationIdentifier",void 0),zr([k()],Dr.prototype,"uiLocale",void 0),zr([B([])],Dr.prototype,"availableUiLocales",void 0),zr([k({type:Boolean})],Dr.prototype,"editorMode",void 0),zr([k({type:Boolean})],Dr.prototype,"noCustom",void 0),zr([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Dr.prototype,"noCustomComponent",void 0),zr([k({type:Boolean})],Dr.prototype,"withManualResources",void 0),zr([B([])],Dr.prototype,"messageContexts",void 0),zr([B(void 0)],Dr.prototype,"session",void 0),zr([k({type:Object})],Dr.prototype,"apiProvider",void 0);class Br{async listMySearches(){var t;return(null===(t=Ir.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ur.await()).listMySearches(Ir.getState().session.profile.userId):[]}}const Pr=new r;class Tr{async listMyBookmarks(){return Pr.get("bookmarks",(async()=>(await Ur.await()).listMyBookmarks(Ir.getState().session.profile.userId)))}clearCache(){Pr.clear("bookmarks")}}const Mr=Vi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Kr=new class{constructor(){this.currentSession=Ir.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Tr,Ir.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ir.getState();z(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Mr.actions.savedSearches(void 0)}clearMyBookmarks(){Mr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Br,e=await t.listMySearches();Mr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Mr.actions.bookmarks(e)}}};D("ft-app-context")(Dr);class Zr{static async build(){return new Zr(await Ur.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const _r=t=>t.request.virtualField===wr.TITLE_ONLY&&t.request.scope===Er.DOCUMENTS;class Hr extends Event{constructor(){super(Hr.eventName)}}Hr.eventName="search-context-clear-all-filters";class Gr{static build(t){return new Gr((t=>Vi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:dr}))(t.trim()||"context"),Zr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new W(100),this.suggestDebouncer=new W(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await j(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(wr.TITLE_ONLY),this.store.actions.setRequestScope(Er.DOCUMENTS)):(this.store.actions.setRequestVirtualField(wr.EVERYWHERE),this.store.actions.setRequestScope(Er.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return _r(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Hr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Vr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class qr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Yr=Symbol("registerInterval");class Xr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Yr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Yr]):this.dispatchEvent(new qr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yr,Vr([R()],o.prototype,"stateManager",void 0),o}(no)){}
153
+ `}update(t){super.update(t),t.has("baseUrl")&&Ir.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ir.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ir.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ir.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ir.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ir.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ir.actions.setSession(this.session),t.has("availableUiLocales")&&Ir.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>jr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}Dr.elementDefinitions={},Dr.styles=Rr,zr([k()],Dr.prototype,"baseUrl",void 0),zr([k()],Dr.prototype,"apiIntegrationIdentifier",void 0),zr([k()],Dr.prototype,"uiLocale",void 0),zr([B([])],Dr.prototype,"availableUiLocales",void 0),zr([k({type:Boolean})],Dr.prototype,"editorMode",void 0),zr([k({type:Boolean})],Dr.prototype,"noCustom",void 0),zr([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Dr.prototype,"noCustomComponent",void 0),zr([k({type:Boolean})],Dr.prototype,"withManualResources",void 0),zr([B([])],Dr.prototype,"messageContexts",void 0),zr([B(void 0)],Dr.prototype,"session",void 0),zr([k({type:Object})],Dr.prototype,"apiProvider",void 0);class Br{async listMySearches(){var t;return(null===(t=Ir.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ur.await()).listMySearches(Ir.getState().session.profile.userId):[]}}const Pr=new r;class Mr{async listMyBookmarks(){return Pr.get("bookmarks",(async()=>(await Ur.await()).listMyBookmarks(Ir.getState().session.profile.userId)))}clearCache(){Pr.clear("bookmarks")}}const Tr=Vi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Kr=new class{constructor(){this.currentSession=Ir.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mr,Ir.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ir.getState();z(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Tr.actions.savedSearches(void 0)}clearMyBookmarks(){Tr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Br,e=await t.listMySearches();Tr.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Tr.actions.bookmarks(e)}}};D("ft-app-context")(Dr);class Zr{static async build(){return new Zr(await Ur.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const _r=t=>t.request.virtualField===wr.TITLE_ONLY&&t.request.scope===Er.DOCUMENTS;class Hr extends Event{constructor(){super(Hr.eventName)}}Hr.eventName="search-context-clear-all-filters";class Gr{static build(t){return new Gr((t=>Vi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:dr}))(t.trim()||"context"),Zr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new W(100),this.suggestDebouncer=new W(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await j(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(wr.TITLE_ONLY),this.store.actions.setRequestScope(Er.DOCUMENTS)):(this.store.actions.setRequestVirtualField(wr.EVERYWHERE),this.store.actions.setRequestScope(Er.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return _r(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Hr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var Vr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class qr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Yr=Symbol("registerInterval");class Xr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Yr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Yr]):this.dispatchEvent(new qr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yr,Vr([R()],o.prototype,"stateManager",void 0),o}(no)){}
154
154
  /**
155
155
  * @license
156
156
  * Copyright 2018 Google LLC
@@ -284,7 +284,7 @@ let Ee=class extends Ht{constructor(){super(...arguments),this.renderOptions={ho
284
284
  * Copyright 2020 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const fn=Symbol.for(""),pn=t=>{if(t?.r===fn)return t?._$litStatic$},un=t=>({_$litStatic$:t,r:fn}),dn=new Map,yn=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=pn(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=dn.get(t))&&(s.raw=s,dn.set(t,e=s)),o=a}return t(e,...o)})(st);var gn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(gn||(gn={}));const bn=Ie.extend("--ft-typography-font-family","",Fe.titleFont),vn=Ie.extend("--ft-typography-font-family","",Fe.contentFont),mn={fontFamily:vn,fontSize:Ie.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ie.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ie.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ie.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ie.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xn=Ie.extend("--ft-typography-title-font-family","",bn),On=Ie.extend("--ft-typography-title-font-size","",mn.fontSize,"20px"),wn=Ie.extend("--ft-typography-title-font-weight","",mn.fontWeight,"normal"),Sn=Ie.extend("--ft-typography-title-letter-spacing","",mn.letterSpacing,"0.15px"),Nn=Ie.extend("--ft-typography-title-line-height","",mn.lineHeight,"1.2"),$n=Ie.extend("--ft-typography-title-text-transform","",mn.textTransform,"inherit"),Cn=Ie.extend("--ft-typography-title-dense-font-family","",bn),En=Ie.extend("--ft-typography-title-dense-font-size","",mn.fontSize,"14px"),kn=Ie.extend("--ft-typography-title-dense-font-weight","",mn.fontWeight,"normal"),Rn=Ie.extend("--ft-typography-title-dense-letter-spacing","",mn.letterSpacing,"0.105px"),In=Ie.extend("--ft-typography-title-dense-line-height","",mn.lineHeight,"1.7"),Un=Ie.extend("--ft-typography-title-dense-text-transform","",mn.textTransform,"inherit"),Ln=Ie.extend("--ft-typography-subtitle1-font-family","",vn),An=Ie.extend("--ft-typography-subtitle1-font-size","",mn.fontSize,"16px"),Wn=Ie.extend("--ft-typography-subtitle1-font-weight","",mn.fontWeight,"600"),jn=Ie.extend("--ft-typography-subtitle1-letter-spacing","",mn.letterSpacing,"0.144px"),Fn=Ie.extend("--ft-typography-subtitle1-line-height","",mn.lineHeight,"1.5"),zn=Ie.extend("--ft-typography-subtitle1-text-transform","",mn.textTransform,"inherit"),Dn=Ie.extend("--ft-typography-subtitle2-font-family","",vn),Bn=Ie.extend("--ft-typography-subtitle2-font-size","",mn.fontSize,"14px"),Pn=Ie.extend("--ft-typography-subtitle2-font-weight","",mn.fontWeight,"normal"),Tn=Ie.extend("--ft-typography-subtitle2-letter-spacing","",mn.letterSpacing,"0.098px"),Mn=Ie.extend("--ft-typography-subtitle2-line-height","",mn.lineHeight,"1.7"),Kn=Ie.extend("--ft-typography-subtitle2-text-transform","",mn.textTransform,"inherit"),Zn=Ie.extend("--ft-typography-body1-font-family","",vn),_n=Ie.extend("--ft-typography-body1-font-size","",mn.fontSize,"16px"),Hn=Ie.extend("--ft-typography-body1-font-weight","",mn.fontWeight,"normal"),Gn=Ie.extend("--ft-typography-body1-letter-spacing","",mn.letterSpacing,"0.496px"),Vn=Ie.extend("--ft-typography-body1-line-height","",mn.lineHeight,"1.5"),qn=Ie.extend("--ft-typography-body1-text-transform","",mn.textTransform,"inherit"),Yn={fontFamily:Ie.extend("--ft-typography-body2-font-family","",vn),fontSize:Ie.extend("--ft-typography-body2-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-body2-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-body2-letter-spacing","",mn.letterSpacing,"0.252px"),lineHeight:Ie.extend("--ft-typography-body2-line-height","",mn.lineHeight,"1.4"),textTransform:Ie.extend("--ft-typography-body2-text-transform","",mn.textTransform,"inherit")},Xn=Ie.extend("--ft-typography-caption-font-family","",vn),Jn=Ie.extend("--ft-typography-caption-font-size","",mn.fontSize,"12px"),Qn=Ie.extend("--ft-typography-caption-font-weight","",mn.fontWeight,"normal"),ts=Ie.extend("--ft-typography-caption-letter-spacing","",mn.letterSpacing,"0.396px"),es=Ie.extend("--ft-typography-caption-line-height","",mn.lineHeight,"1.33"),os=Ie.extend("--ft-typography-caption-text-transform","",mn.textTransform,"inherit"),is=Ie.extend("--ft-typography-breadcrumb-font-family","",vn),rs=Ie.extend("--ft-typography-breadcrumb-font-size","",mn.fontSize,"10px"),ns=Ie.extend("--ft-typography-breadcrumb-font-weight","",mn.fontWeight,"normal"),ss=Ie.extend("--ft-typography-breadcrumb-letter-spacing","",mn.letterSpacing,"0.33px"),as=Ie.extend("--ft-typography-breadcrumb-line-height","",mn.lineHeight,"1.6"),ls=Ie.extend("--ft-typography-breadcrumb-text-transform","",mn.textTransform,"inherit"),cs=Ie.extend("--ft-typography-overline-font-family","",vn),hs=Ie.extend("--ft-typography-overline-font-size","",mn.fontSize,"10px"),fs=Ie.extend("--ft-typography-overline-font-weight","",mn.fontWeight,"normal"),ps=Ie.extend("--ft-typography-overline-letter-spacing","",mn.letterSpacing,"1.5px"),us=Ie.extend("--ft-typography-overline-line-height","",mn.lineHeight,"1.6"),ds=Ie.extend("--ft-typography-overline-text-transform","",mn.textTransform,"uppercase"),ys={fontFamily:Ie.extend("--ft-typography-button-font-family","",vn),fontSize:Ie.extend("--ft-typography-button-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-button-font-weight","",mn.fontWeight,"600"),letterSpacing:Ie.extend("--ft-typography-button-letter-spacing","",mn.letterSpacing,"1.246px"),lineHeight:Ie.extend("--ft-typography-button-line-height","",mn.lineHeight,"1.15"),textTransform:Ie.extend("--ft-typography-button-text-transform","",mn.textTransform,"uppercase")},gs=It`
287
+ const fn=Symbol.for(""),pn=t=>{if(t?.r===fn)return t?._$litStatic$},un=t=>({_$litStatic$:t,r:fn}),dn=new Map,yn=(t=>(e,...o)=>{const i=o.length;let r,n;const s=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=pn(n));)l+=r+e[++c],h=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),h){const t=s.join("$$lit$$");void 0===(e=dn.get(t))&&(s.raw=s,dn.set(t,e=s)),o=a}return t(e,...o)})(st);var gn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(gn||(gn={}));const bn=Ie.extend("--ft-typography-font-family","",Fe.titleFont),vn=Ie.extend("--ft-typography-font-family","",Fe.contentFont),mn={fontFamily:vn,fontSize:Ie.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ie.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ie.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ie.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ie.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xn=Ie.extend("--ft-typography-title-font-family","",bn),On=Ie.extend("--ft-typography-title-font-size","",mn.fontSize,"20px"),wn=Ie.extend("--ft-typography-title-font-weight","",mn.fontWeight,"normal"),Sn=Ie.extend("--ft-typography-title-letter-spacing","",mn.letterSpacing,"0.15px"),Nn=Ie.extend("--ft-typography-title-line-height","",mn.lineHeight,"1.2"),$n=Ie.extend("--ft-typography-title-text-transform","",mn.textTransform,"inherit"),Cn=Ie.extend("--ft-typography-title-dense-font-family","",bn),En=Ie.extend("--ft-typography-title-dense-font-size","",mn.fontSize,"14px"),kn=Ie.extend("--ft-typography-title-dense-font-weight","",mn.fontWeight,"normal"),Rn=Ie.extend("--ft-typography-title-dense-letter-spacing","",mn.letterSpacing,"0.105px"),In=Ie.extend("--ft-typography-title-dense-line-height","",mn.lineHeight,"1.7"),Un=Ie.extend("--ft-typography-title-dense-text-transform","",mn.textTransform,"inherit"),Ln=Ie.extend("--ft-typography-subtitle1-font-family","",vn),An=Ie.extend("--ft-typography-subtitle1-font-size","",mn.fontSize,"16px"),Wn=Ie.extend("--ft-typography-subtitle1-font-weight","",mn.fontWeight,"600"),jn=Ie.extend("--ft-typography-subtitle1-letter-spacing","",mn.letterSpacing,"0.144px"),Fn=Ie.extend("--ft-typography-subtitle1-line-height","",mn.lineHeight,"1.5"),zn=Ie.extend("--ft-typography-subtitle1-text-transform","",mn.textTransform,"inherit"),Dn=Ie.extend("--ft-typography-subtitle2-font-family","",vn),Bn=Ie.extend("--ft-typography-subtitle2-font-size","",mn.fontSize,"14px"),Pn=Ie.extend("--ft-typography-subtitle2-font-weight","",mn.fontWeight,"normal"),Mn=Ie.extend("--ft-typography-subtitle2-letter-spacing","",mn.letterSpacing,"0.098px"),Tn=Ie.extend("--ft-typography-subtitle2-line-height","",mn.lineHeight,"1.7"),Kn=Ie.extend("--ft-typography-subtitle2-text-transform","",mn.textTransform,"inherit"),Zn=Ie.extend("--ft-typography-body1-font-family","",vn),_n=Ie.extend("--ft-typography-body1-font-size","",mn.fontSize,"16px"),Hn=Ie.extend("--ft-typography-body1-font-weight","",mn.fontWeight,"normal"),Gn=Ie.extend("--ft-typography-body1-letter-spacing","",mn.letterSpacing,"0.496px"),Vn=Ie.extend("--ft-typography-body1-line-height","",mn.lineHeight,"1.5"),qn=Ie.extend("--ft-typography-body1-text-transform","",mn.textTransform,"inherit"),Yn={fontFamily:Ie.extend("--ft-typography-body2-font-family","",vn),fontSize:Ie.extend("--ft-typography-body2-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-body2-font-weight","",mn.fontWeight,"normal"),letterSpacing:Ie.extend("--ft-typography-body2-letter-spacing","",mn.letterSpacing,"0.252px"),lineHeight:Ie.extend("--ft-typography-body2-line-height","",mn.lineHeight,"1.4"),textTransform:Ie.extend("--ft-typography-body2-text-transform","",mn.textTransform,"inherit")},Xn=Ie.extend("--ft-typography-caption-font-family","",vn),Jn=Ie.extend("--ft-typography-caption-font-size","",mn.fontSize,"12px"),Qn=Ie.extend("--ft-typography-caption-font-weight","",mn.fontWeight,"normal"),ts=Ie.extend("--ft-typography-caption-letter-spacing","",mn.letterSpacing,"0.396px"),es=Ie.extend("--ft-typography-caption-line-height","",mn.lineHeight,"1.33"),os=Ie.extend("--ft-typography-caption-text-transform","",mn.textTransform,"inherit"),is=Ie.extend("--ft-typography-breadcrumb-font-family","",vn),rs=Ie.extend("--ft-typography-breadcrumb-font-size","",mn.fontSize,"10px"),ns=Ie.extend("--ft-typography-breadcrumb-font-weight","",mn.fontWeight,"normal"),ss=Ie.extend("--ft-typography-breadcrumb-letter-spacing","",mn.letterSpacing,"0.33px"),as=Ie.extend("--ft-typography-breadcrumb-line-height","",mn.lineHeight,"1.6"),ls=Ie.extend("--ft-typography-breadcrumb-text-transform","",mn.textTransform,"inherit"),cs=Ie.extend("--ft-typography-overline-font-family","",vn),hs=Ie.extend("--ft-typography-overline-font-size","",mn.fontSize,"10px"),fs=Ie.extend("--ft-typography-overline-font-weight","",mn.fontWeight,"normal"),ps=Ie.extend("--ft-typography-overline-letter-spacing","",mn.letterSpacing,"1.5px"),us=Ie.extend("--ft-typography-overline-line-height","",mn.lineHeight,"1.6"),ds=Ie.extend("--ft-typography-overline-text-transform","",mn.textTransform,"uppercase"),ys={fontFamily:Ie.extend("--ft-typography-button-font-family","",vn),fontSize:Ie.extend("--ft-typography-button-font-size","",mn.fontSize,"14px"),fontWeight:Ie.extend("--ft-typography-button-font-weight","",mn.fontWeight,"600"),letterSpacing:Ie.extend("--ft-typography-button-letter-spacing","",mn.letterSpacing,"1.246px"),lineHeight:Ie.extend("--ft-typography-button-line-height","",mn.lineHeight,"1.15"),textTransform:Ie.extend("--ft-typography-button-text-transform","",mn.textTransform,"uppercase")},gs=It`
288
288
  .ft-typography--title {
289
289
  font-family: ${xn};
290
290
  font-size: ${On};
@@ -316,8 +316,8 @@ const fn=Symbol.for(""),pn=t=>{if(t?.r===fn)return t?._$litStatic$},un=t=>({_$li
316
316
  font-family: ${Dn};
317
317
  font-size: ${Bn};
318
318
  font-weight: ${Pn};
319
- letter-spacing: ${Tn};
320
- line-height: ${Mn};
319
+ letter-spacing: ${Mn};
320
+ line-height: ${Tn};
321
321
  text-transform: ${Kn};
322
322
  }
323
323
 
@@ -523,7 +523,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
523
523
  transform: translate(calc(0.35 * ${Bs.size}), 0);
524
524
  }
525
525
  }
526
- `,Ts=Ie.extend("--ft-button-color","",Fe.colorPrimary),Ms={backgroundColor:Ie.extend("--ft-button-background-color","",Fe.colorSurface),borderRadius:Ie.extend("--ft-button-border-radius","",Fe.borderRadiusL),color:Ts,fontSize:Ie.extend("--ft-button-font-size","",ys.fontSize),iconSize:Ie.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ie.extend("--ft-button-ripple-color","",Ts),verticalPadding:Ie.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ie.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ie.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ie.external(Fe.colorOpacityDisabled,"Design system")},Ks=Ie.extend("--ft-button-primary-color","",Ie.extend("--ft-button-color","",Fe.colorOnPrimary)),Zs={backgroundColor:Ie.extend("--ft-button-primary-background-color","",Ie.extend("--ft-button-background-color","",Fe.colorPrimary)),color:Ks,rippleColor:Ie.extend("--ft-button-primary-ripple-color","",Ks)},_s=Ie.extend("--ft-button-dense-border-radius","",Ie.extend("--ft-button-border-radius","",Fe.borderRadiusM)),Hs=Ie.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Gs=Ie.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Vs=Ie.create("--ft-button-dense-icon-padding","","SIZE","4px"),qs=[It`
526
+ `,Ms=Ie.extend("--ft-button-color","",Fe.colorPrimary),Ts={backgroundColor:Ie.extend("--ft-button-background-color","",Fe.colorSurface),borderRadius:Ie.extend("--ft-button-border-radius","",Fe.borderRadiusL),color:Ms,fontSize:Ie.extend("--ft-button-font-size","",ys.fontSize),iconSize:Ie.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ie.extend("--ft-button-ripple-color","",Ms),verticalPadding:Ie.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ie.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ie.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ie.external(Fe.colorOpacityDisabled,"Design system")},Ks=Ie.extend("--ft-button-primary-color","",Ie.extend("--ft-button-color","",Fe.colorOnPrimary)),Zs={backgroundColor:Ie.extend("--ft-button-primary-background-color","",Ie.extend("--ft-button-background-color","",Fe.colorPrimary)),color:Ks,rippleColor:Ie.extend("--ft-button-primary-ripple-color","",Ks)},_s=Ie.extend("--ft-button-dense-border-radius","",Ie.extend("--ft-button-border-radius","",Fe.borderRadiusM)),Hs=Ie.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Gs=Ie.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Vs=Ie.create("--ft-button-dense-icon-padding","","SIZE","4px"),qs=[It`
527
527
  :host {
528
528
  display: inline-block;
529
529
  max-width: 100%;
@@ -534,7 +534,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
534
534
  box-shadow: 0px 0px 0px transparent;
535
535
  border: 0px solid transparent;
536
536
  text-shadow: 0px 0px 0px transparent;
537
- font-size: ${Ms.fontSize};
537
+ font-size: ${Ts.fontSize};
538
538
  }
539
539
 
540
540
  button:hover {
@@ -563,21 +563,21 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
563
563
  border: none;
564
564
  pointer-events: auto;
565
565
 
566
- --ft-button-internal-line-height: max(calc(${Ms.fontSize} + 2px), ${Ms.iconSize});
567
- --ft-button-internal-color: ${Ms.color};
568
- ${Ue(Ws.size,Ms.iconSize)};
569
- ${Ue(tn.color,Ms.rippleColor)};
566
+ --ft-button-internal-line-height: max(calc(${Ts.fontSize} + 2px), ${Ts.iconSize});
567
+ --ft-button-internal-color: ${Ts.color};
568
+ ${Ue(Ws.size,Ts.iconSize)};
569
+ ${Ue(tn.color,Ts.rippleColor)};
570
570
 
571
- border-radius: ${Ms.borderRadius};
572
- padding: ${Ms.verticalPadding} ${Ms.horizontalPadding};
573
- background-color: ${Ms.backgroundColor};
571
+ border-radius: ${Ts.borderRadius};
572
+ padding: ${Ts.verticalPadding} ${Ts.horizontalPadding};
573
+ background-color: ${Ts.backgroundColor};
574
574
  color: var(--ft-button-internal-color);
575
575
  -webkit-mask-image: radial-gradient(white, black);
576
576
  }
577
577
 
578
578
  .ft-button.ft-button--outlined {
579
579
  border: 1px solid var(--ft-button-internal-color);
580
- padding: calc(${Ms.verticalPadding} - 1px) calc(${Ms.horizontalPadding} - 1px);
580
+ padding: calc(${Ts.verticalPadding} - 1px) calc(${Ts.horizontalPadding} - 1px);
581
581
  }
582
582
 
583
583
  .ft-button.ft-button--dense {
@@ -595,7 +595,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
595
595
  }
596
596
 
597
597
  .ft-button--round {
598
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ms.verticalPadding});
598
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ts.verticalPadding});
599
599
  }
600
600
 
601
601
  .ft-button--round.ft-button--dense {
@@ -604,7 +604,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
604
604
 
605
605
  .ft-button[disabled] {
606
606
  filter: grayscale(1);
607
- opacity: ${Ms.opacityDisabled};
607
+ opacity: ${Ts.opacityDisabled};
608
608
  }
609
609
 
610
610
  .ft-button.ft-button--primary {
@@ -623,7 +623,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
623
623
  white-space: nowrap;
624
624
  text-overflow: ellipsis;
625
625
  display: block;
626
- margin: 0 ${Ms.iconPadding};
626
+ margin: 0 ${Ts.iconPadding};
627
627
  ${Ue(ys.fontSize,"1em")};
628
628
  ${Ue(ys.lineHeight,"var(--ft-button-internal-line-height)")};
629
629
  }
@@ -642,8 +642,8 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
642
642
  }
643
643
 
644
644
  .ft-button--label[hidden] + ft-icon {
645
- margin: 0 calc(${Ms.horizontalPadding} * -1);
646
- padding: 0 ${Ms.verticalPadding};
645
+ margin: 0 calc(${Ts.horizontalPadding} * -1);
646
+ padding: 0 ${Ts.verticalPadding};
647
647
  }
648
648
 
649
649
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
@@ -657,7 +657,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
657
657
  }
658
658
 
659
659
  ft-loader {
660
- ${Ue(Bs.size,Ms.iconSize)};
660
+ ${Ue(Bs.size,Ts.iconSize)};
661
661
  ${Ue(Bs.color,"var(--ft-button-internal-color)")};
662
662
  }
663
663
  `,Ge],Ys=Ie.create("--ft-tooltip-distance","","SIZE","4px"),Xs=Ie.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Js=Ie.create("--ft-tooltip-background-color","","COLOR","#666666"),Qs=Ie.create("--ft-tooltip-z-index","","NUMBER","100"),ta=Ie.external(Fe.borderRadiusS,"Design system"),ea=Ie.create("--ft-tooltip-max-width","","SIZE","150px"),oa=It`
@@ -689,7 +689,7 @@ class Is extends ir{constructor(t){if(super(t),this.et=lt,t.type!==er)throw Erro
689
689
  position: relative;
690
690
  word-break: break-word;
691
691
  }
692
- `,ia=["start","end"],ra=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ia[0],e+"-"+ia[1])),[]),na=Math.min,sa=Math.max,aa=Math.round,la=t=>({x:t,y:t}),ca={left:"right",right:"left",bottom:"top",top:"bottom"},ha={start:"end",end:"start"};function fa(t,e,o){return sa(t,na(e,o))}function pa(t,e){return"function"==typeof t?t(e):t}function ua(t){return t.split("-")[0]}function da(t){return t.split("-")[1]}function ya(t){return"x"===t?"y":"x"}function ga(t){return"y"===t?"height":"width"}function ba(t){return["top","bottom"].includes(ua(t))?"y":"x"}function va(t){return ya(ba(t))}function ma(t){return t.replace(/left|right|bottom|top/g,(t=>ca[t]))}function xa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Oa(t,e,o){let{reference:i,floating:r}=t;const n=ba(e),s=va(e),a=ga(s),l=ua(e),c="y"===n,h=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let u;switch(l){case"top":u={x:h,y:i.y-r.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:f};break;case"left":u={x:i.x-r.width,y:f};break;default:u={x:i.x,y:i.y}}switch(da(e)){case"start":u[s]-=p*(o&&c?-1:1);break;case"end":u[s]+=p*(o&&c?-1:1)}return u}async function wa(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:u=0}=pa(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=a[p?"floating"===f?"reference":"floating":f],g=xa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),b="floating"===f?{...s.floating,x:i,y:r}:s.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+d.top)/m.y,bottom:(x.bottom-g.bottom+d.bottom)/m.y,left:(g.left-x.left+d.left)/m.x,right:(x.right-g.right+d.right)/m.x}}function Sa(t,e,o){return(t?[...o.filter((e=>da(e)===t)),...o.filter((e=>da(e)!==t))]:o.filter((t=>ua(t)===t))).filter((o=>!t||(da(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ha[t]))}(o)!==o)))}const Na=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:p=ra,autoAlignment:u=!0,...d}=pa(t,e),y=void 0!==f||p===ra?Sa(f||null,u,p):p,g=await wa(e,d),b=(null==(o=s.autoPlacement)?void 0:o.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,o){void 0===o&&(o=!1);const i=da(t),r=va(t),n=ga(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=ma(s)),[s,ma(s)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==v)return{reset:{placement:y[0]}};const x=[g[ua(v)],g[m[0]],g[m[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:v,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=da(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,da(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==a?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function $a(t){return ka(t)?(t.nodeName||"").toLowerCase():"#document"}function Ca(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ea(t){var e;return null==(e=(ka(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ka(t){return t instanceof Node||t instanceof Ca(t).Node}function Ra(t){return t instanceof Element||t instanceof Ca(t).Element}function Ia(t){return t instanceof HTMLElement||t instanceof Ca(t).HTMLElement}function Ua(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ca(t).ShadowRoot)}function La(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=za(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Aa(t){return["table","td","th"].includes($a(t))}function Wa(t){const e=ja(),o=za(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fa(t){return["html","body","#document"].includes($a(t))}function za(t){return Ca(t).getComputedStyle(t)}function Da(t){return Ra(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ba(t){if("html"===$a(t))return t;const e=t.assignedSlot||t.parentNode||Ua(t)&&t.host||Ea(t);return Ua(e)?e.host:e}function Pa(t){const e=Ba(t);return Fa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(e)&&La(e)?e:Pa(e)}function Ta(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Pa(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=Ca(r);return n?e.concat(s,s.visualViewport||[],La(r)?r:[],s.frameElement&&o?Ta(s.frameElement):[]):e.concat(r,Ta(r,[],o))}function Ma(t){const e=za(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ia(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=aa(o)!==n||aa(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Ka(t){return Ra(t)?t:t.contextElement}function Za(t){const e=Ka(t);if(!Ia(e))return la(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Ma(e);let s=(n?aa(o.width):o.width)/i,a=(n?aa(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _a=la(0);function Ha(t){const e=Ca(t);return ja()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_a}function Ga(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Ka(t);let s=la(1);e&&(i?Ra(i)&&(s=Za(i)):s=Za(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ca(t))&&e}(n,o,i)?Ha(n):la(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,h=r.width/s.x,f=r.height/s.y;if(n){const t=Ca(n),e=i&&Ra(i)?Ca(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Za(o),e=o.getBoundingClientRect(),i=za(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,f*=t.y,l+=r,c+=n,o=Ca(o).frameElement}}return xa({width:h,height:f,x:l,y:c})}function Va(t){return Ga(Ea(t)).left+Da(t).scrollLeft}function qa(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ca(t),i=Ea(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=ja();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ea(t),o=Da(t),i=t.ownerDocument.body,r=sa(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=sa(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+Va(t);const a=-o.scrollTop;return"rtl"===za(i).direction&&(s+=sa(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(Ea(t));else if(Ra(e))i=function(t,e){const o=Ga(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Ia(t)?Za(t):la(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=Ha(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return xa(i)}function Ya(t,e){const o=Ba(t);return!(o===e||!Ra(o)||Fa(o))&&("fixed"===za(o).position||Ya(o,e))}function Xa(t,e,o){const i=Ia(e),r=Ea(e),n="fixed"===o,s=Ga(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=la(0);if(i||!i&&!n)if(("body"!==$a(e)||La(r))&&(a=Da(e)),i){const t=Ga(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Va(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ja(t,e){return Ia(t)&&"fixed"!==za(t).position?e?e(t):t.offsetParent:null}function Qa(t,e){const o=Ca(t);if(!Ia(t))return o;let i=Ja(t,e);for(;i&&Aa(i)&&"static"===za(i).position;)i=Ja(i,e);return i&&("html"===$a(i)||"body"===$a(i)&&"static"===za(i).position&&!Wa(i))?o:i||function(t){let e=Ba(t);for(;Ia(e)&&!Fa(e);){if(Wa(e))return e;e=Ba(e)}return null}(t)||o}const tl={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ia(o),n=Ea(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=la(1);const l=la(0);if((r||!r&&"fixed"!==i)&&(("body"!==$a(o)||La(n))&&(s=Da(o)),Ia(o))){const t=Ga(o);a=Za(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Ea,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Ta(t,[],!1).filter((t=>Ra(t)&&"body"!==$a(t))),r=null;const n="fixed"===za(t).position;let s=n?Ba(t):t;for(;Ra(s)&&!Fa(s);){const e=za(s),o=Wa(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||La(s)&&!o&&Ya(t,s))?i=i.filter((t=>t!==s)):r=e,s=Ba(s)}return e.set(t,i),i}(e,this._c):[].concat(o),s=[...n,i],a=s[0],l=s.reduce(((t,o)=>{const i=qa(e,o,r);return t.top=sa(i.top,t.top),t.right=na(i.right,t.right),t.bottom=na(i.bottom,t.bottom),t.left=sa(i.left,t.left),t}),qa(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Qa,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Qa,n=this.getDimensions;return{reference:Xa(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ma(t)},getScale:Za,isElement:Ra,isRTL:function(t){return"rtl"===za(t).direction}},el=(t,e,o)=>{const i=new Map,r={platform:tl,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:f}=Oa(c,i,l),p=i,u={},d=0;for(let o=0;o<a.length;o++){const{name:n,fn:y}=a[o],{x:g,y:b,data:v,reset:m}=await y({x:h,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:u,rects:c,platform:s,elements:{reference:t,floating:e}});h=null!=g?g:h,f=null!=b?b:f,u={...u,[n]:{...u[n],...v}},m&&d<=50&&(d++,"object"==typeof m&&(m.placement&&(p=m.placement),m.rects&&(c=!0===m.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:h,y:f}=Oa(c,p,l))),o=-1)}return{x:h,y:f,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};var ol=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class il extends _e{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new W,this.revealDebouncer=new W}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return pe`
692
+ `,ia=["start","end"],ra=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ia[0],e+"-"+ia[1])),[]),na=Math.min,sa=Math.max,aa=Math.round,la=t=>({x:t,y:t}),ca={left:"right",right:"left",bottom:"top",top:"bottom"},ha={start:"end",end:"start"};function fa(t,e,o){return sa(t,na(e,o))}function pa(t,e){return"function"==typeof t?t(e):t}function ua(t){return t.split("-")[0]}function da(t){return t.split("-")[1]}function ya(t){return"x"===t?"y":"x"}function ga(t){return"y"===t?"height":"width"}function ba(t){return["top","bottom"].includes(ua(t))?"y":"x"}function va(t){return ya(ba(t))}function ma(t){return t.replace(/left|right|bottom|top/g,(t=>ca[t]))}function xa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Oa(t,e,o){let{reference:i,floating:r}=t;const n=ba(e),s=va(e),a=ga(s),l=ua(e),c="y"===n,h=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let u;switch(l){case"top":u={x:h,y:i.y-r.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:f};break;case"left":u={x:i.x-r.width,y:f};break;default:u={x:i.x,y:i.y}}switch(da(e)){case"start":u[s]-=p*(o&&c?-1:1);break;case"end":u[s]+=p*(o&&c?-1:1)}return u}async function wa(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:p=!1,padding:u=0}=pa(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=a[p?"floating"===f?"reference":"floating":f],g=xa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),b="floating"===f?{...s.floating,x:i,y:r}:s.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(a.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+d.top)/m.y,bottom:(x.bottom-g.bottom+d.bottom)/m.y,left:(g.left-x.left+d.left)/m.x,right:(x.right-g.right+d.right)/m.x}}function Sa(t,e,o){return(t?[...o.filter((e=>da(e)===t)),...o.filter((e=>da(e)!==t))]:o.filter((t=>ua(t)===t))).filter((o=>!t||(da(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>ha[t]))}(o)!==o)))}const Na=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:p=ra,autoAlignment:u=!0,...d}=pa(t,e),y=void 0!==f||p===ra?Sa(f||null,u,p):p,g=await wa(e,d),b=(null==(o=s.autoPlacement)?void 0:o.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,o){void 0===o&&(o=!1);const i=da(t),r=va(t),n=ga(r);let s="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=ma(s)),[s,ma(s)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(a!==v)return{reset:{placement:y[0]}};const x=[g[ua(v)],g[m[0]],g[m[1]]],O=[...(null==(i=s.autoPlacement)?void 0:i.overflows)||[],{placement:v,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=da(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,da(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==a?{data:{index:b+1,overflows:O},reset:{placement:$}}:{}}}};function $a(t){return ka(t)?(t.nodeName||"").toLowerCase():"#document"}function Ca(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ea(t){var e;return null==(e=(ka(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ka(t){return t instanceof Node||t instanceof Ca(t).Node}function Ra(t){return t instanceof Element||t instanceof Ca(t).Element}function Ia(t){return t instanceof HTMLElement||t instanceof Ca(t).HTMLElement}function Ua(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ca(t).ShadowRoot)}function La(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=za(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function Aa(t){return["table","td","th"].includes($a(t))}function Wa(t){const e=ja(),o=za(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fa(t){return["html","body","#document"].includes($a(t))}function za(t){return Ca(t).getComputedStyle(t)}function Da(t){return Ra(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ba(t){if("html"===$a(t))return t;const e=t.assignedSlot||t.parentNode||Ua(t)&&t.host||Ea(t);return Ua(e)?e.host:e}function Pa(t){const e=Ba(t);return Fa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ia(e)&&La(e)?e:Pa(e)}function Ma(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Pa(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),s=Ca(r);return n?e.concat(s,s.visualViewport||[],La(r)?r:[],s.frameElement&&o?Ma(s.frameElement):[]):e.concat(r,Ma(r,[],o))}function Ta(t){const e=za(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=Ia(t),n=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=aa(o)!==n||aa(i)!==s;return a&&(o=n,i=s),{width:o,height:i,$:a}}function Ka(t){return Ra(t)?t:t.contextElement}function Za(t){const e=Ka(t);if(!Ia(e))return la(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=Ta(e);let s=(n?aa(o.width):o.width)/i,a=(n?aa(o.height):o.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const _a=la(0);function Ha(t){const e=Ca(t);return ja()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_a}function Ga(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=Ka(t);let s=la(1);e&&(i?Ra(i)&&(s=Za(i)):s=Za(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ca(t))&&e}(n,o,i)?Ha(n):la(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,h=r.width/s.x,f=r.height/s.y;if(n){const t=Ca(n),e=i&&Ra(i)?Ca(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Za(o),e=o.getBoundingClientRect(),i=za(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,f*=t.y,l+=r,c+=n,o=Ca(o).frameElement}}return xa({width:h,height:f,x:l,y:c})}function Va(t){return Ga(Ea(t)).left+Da(t).scrollLeft}function qa(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=Ca(t),i=Ea(t),r=o.visualViewport;let n=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){n=r.width,s=r.height;const t=ja();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:s,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=Ea(t),o=Da(t),i=t.ownerDocument.body,r=sa(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=sa(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+Va(t);const a=-o.scrollTop;return"rtl"===za(i).direction&&(s+=sa(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:s,y:a}}(Ea(t));else if(Ra(e))i=function(t,e){const o=Ga(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=Ia(t)?Za(t):la(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=Ha(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return xa(i)}function Ya(t,e){const o=Ba(t);return!(o===e||!Ra(o)||Fa(o))&&("fixed"===za(o).position||Ya(o,e))}function Xa(t,e,o){const i=Ia(e),r=Ea(e),n="fixed"===o,s=Ga(t,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=la(0);if(i||!i&&!n)if(("body"!==$a(e)||La(r))&&(a=Da(e)),i){const t=Ga(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Va(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Ja(t,e){return Ia(t)&&"fixed"!==za(t).position?e?e(t):t.offsetParent:null}function Qa(t,e){const o=Ca(t);if(!Ia(t))return o;let i=Ja(t,e);for(;i&&Aa(i)&&"static"===za(i).position;)i=Ja(i,e);return i&&("html"===$a(i)||"body"===$a(i)&&"static"===za(i).position&&!Wa(i))?o:i||function(t){let e=Ba(t);for(;Ia(e)&&!Fa(e);){if(Wa(e))return e;e=Ba(e)}return null}(t)||o}const tl={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=Ia(o),n=Ea(o);if(o===n)return e;let s={scrollLeft:0,scrollTop:0},a=la(1);const l=la(0);if((r||!r&&"fixed"!==i)&&(("body"!==$a(o)||La(n))&&(s=Da(o)),Ia(o))){const t=Ga(o);a=Za(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-s.scrollLeft*a.x+l.x,y:e.y*a.y-s.scrollTop*a.y+l.y}},getDocumentElement:Ea,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Ma(t,[],!1).filter((t=>Ra(t)&&"body"!==$a(t))),r=null;const n="fixed"===za(t).position;let s=n?Ba(t):t;for(;Ra(s)&&!Fa(s);){const e=za(s),o=Wa(s);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||La(s)&&!o&&Ya(t,s))?i=i.filter((t=>t!==s)):r=e,s=Ba(s)}return e.set(t,i),i}(e,this._c):[].concat(o),s=[...n,i],a=s[0],l=s.reduce(((t,o)=>{const i=qa(e,o,r);return t.top=sa(i.top,t.top),t.right=na(i.right,t.right),t.bottom=na(i.bottom,t.bottom),t.left=sa(i.left,t.left),t}),qa(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Qa,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Qa,n=this.getDimensions;return{reference:Xa(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ta(t)},getScale:Za,isElement:Ra,isRTL:function(t){return"rtl"===za(t).direction}},el=(t,e,o)=>{const i=new Map,r={platform:tl,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:s}=o,a=n.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:f}=Oa(c,i,l),p=i,u={},d=0;for(let o=0;o<a.length;o++){const{name:n,fn:y}=a[o],{x:g,y:b,data:v,reset:m}=await y({x:h,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:u,rects:c,platform:s,elements:{reference:t,floating:e}});h=null!=g?g:h,f=null!=b?b:f,u={...u,[n]:{...u[n],...v}},m&&d<=50&&(d++,"object"==typeof m&&(m.placement&&(p=m.placement),m.rects&&(c=!0===m.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:h,y:f}=Oa(c,p,l))),o=-1)}return{x:h,y:f,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};var ol=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class il extends _e{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new W,this.revealDebouncer=new W}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return pe`
693
693
  <div part="container"
694
694
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
695
695
  @mouseenter=${this.onHover}
@@ -1051,9 +1051,9 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1051
1051
  }
1052
1052
 
1053
1053
  .ft-chip--icon-button {
1054
- ${Ue(Ms.iconSize,ul.iconSize)};
1055
- ${Ue(Ms.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1056
- ${Ue(Ms.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1054
+ ${Ue(Ts.iconSize,ul.iconSize)};
1055
+ ${Ue(Ts.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
1056
+ ${Ue(Ts.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
1057
1057
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
1058
1058
  }
1059
1059
 
@@ -1130,7 +1130,7 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1130
1130
  `;var Al=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Wl extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class jl extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Fl extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class zl extends no{get stateManager(){return null==this._stateManager&&(this._stateManager=Gr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Ir)}render(){return pe`
1131
1131
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1132
1132
  `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new jl(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Fl(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Wl(t))}reloadSavedSearches(){Kr.clearMySearches()}clear(){this.stateManager.clear()}}zl.elementDefinitions={},zl.styles=Ll,Al([k()],zl.prototype,"query",void 0),Al([k()],zl.prototype,"contentLocale",void 0),Al([k({type:Number})],zl.prototype,"pageSize",void 0),Al([k({type:Boolean})],zl.prototype,"searchInDocumentTitlesOnly",void 0),Al([k()],zl.prototype,"scope",void 0),Al([k({type:Boolean})],zl.prototype,"ignoreEmptyQuery",void 0),Al([B([])],zl.prototype,"filters",void 0),Al([B([])],zl.prototype,"sort",void 0),Al([Ye({store:"search"})],zl.prototype,"request",void 0),Al([Ye({store:"search"})],zl.prototype,"paging",void 0),Al([Ye({store:"search",selector:t=>t.spellcheck})],zl.prototype,"autocorrect",void 0),Al([Ye({store:Ir.name})],zl.prototype,"session",void 0),D("ft-search-context")(zl);const Dl=It`
1133
- `,Bl=Ie.extend("--ft-checkbox-text-color","",Fe.colorOnSurfaceHigh),Pl=Ie.external(Fe.colorPrimary,"Design system"),Tl=Ie.external(Fe.colorOnPrimary,"Design system"),Ml=Ie.extend("--ft-checkbox-border-color","",Fe.colorOnSurfaceMedium),Kl=Ie.external(Fe.colorOnSurfaceDisabled,"Design system"),Zl=It`
1133
+ `,Bl=Ie.extend("--ft-checkbox-text-color","",Fe.colorOnSurfaceHigh),Pl=Ie.external(Fe.colorPrimary,"Design system"),Ml=Ie.external(Fe.colorOnPrimary,"Design system"),Tl=Ie.extend("--ft-checkbox-border-color","",Fe.colorOnSurfaceMedium),Kl=Ie.external(Fe.colorOnSurfaceDisabled,"Design system"),Zl=It`
1134
1134
  * {
1135
1135
  box-sizing: border-box;
1136
1136
  }
@@ -1169,13 +1169,13 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1169
1169
 
1170
1170
  .ft-checkbox--box {
1171
1171
  display: flex;
1172
- border: 2px solid ${Ml};
1172
+ border: 2px solid ${Tl};
1173
1173
  border-radius: 2px;
1174
1174
 
1175
1175
  width: 18px;
1176
1176
  height: 18px;
1177
1177
 
1178
- color: ${Tl};
1178
+ color: ${Ml};
1179
1179
  }
1180
1180
 
1181
1181
 
@@ -1402,7 +1402,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1402
1402
  }
1403
1403
 
1404
1404
  ft-button {
1405
- ${Ue(Ms.color,rc.colorOnSurface)};
1405
+ ${Ue(Ts.color,rc.colorOnSurface)};
1406
1406
  }
1407
1407
 
1408
1408
  ft-radio, ft-checkbox {
@@ -1563,8 +1563,8 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1563
1563
  z-index: ${lc.buttonsZIndex};
1564
1564
  opacity: 1;
1565
1565
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1566
- ${Ue(Ms.backgroundColor,"transparent")};
1567
- ${Ue(Ms.color,lc.buttonsColor)};
1566
+ ${Ue(Ts.backgroundColor,"transparent")};
1567
+ ${Ue(Ts.color,lc.buttonsColor)};
1568
1568
  }
1569
1569
 
1570
1570
  .ft-snap-scroll--previous[hidden],
@@ -1660,7 +1660,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1660
1660
  .ft-filter--header ft-button {
1661
1661
  flex-shrink: 0;
1662
1662
  margin-left: auto;
1663
- ${Ue(Ms.iconSize,"18px")};
1663
+ ${Ue(Ts.iconSize,"18px")};
1664
1664
  }
1665
1665
 
1666
1666
  .ft-filter--label {
@@ -1743,7 +1743,7 @@ function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}
1743
1743
  slot:not([name]) {
1744
1744
  display: none;
1745
1745
  }
1746
- `];var Oc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class wc extends CustomEvent{constructor(t){super("change",{detail:t})}}class Sc extends _e{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new W(300),this.changeDebouncer=new W(10),this.lastDispatchedValues=[]}get flatOptions(){return F(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return pe`
1746
+ `];var Oc=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class wc extends CustomEvent{constructor(t){super("change",{detail:t})}}class Sc extends _e{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new W(300),this.changeDebouncer=new W(10),this.lastDispatchedValues=[]}get flatOptions(){return F(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get childrenFilteredFlatOptions(){return F(this.options,(t=>{var e;return t.selected?[]:null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.childrenFilteredFlatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return pe`
1747
1747
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1748
1748
  part="container">
1749
1749
  ${this.label||t?pe`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-selected-facets",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "List of selected facets in a designed search page context",
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-chip": "1.1.6",
23
- "@fluid-topics/ft-search-context": "1.1.6",
24
- "@fluid-topics/ft-search-type": "1.1.6",
25
- "@fluid-topics/ft-tooltip": "1.1.6",
26
- "@fluid-topics/ft-wc-utils": "1.1.6",
22
+ "@fluid-topics/ft-chip": "1.1.8",
23
+ "@fluid-topics/ft-search-context": "1.1.8",
24
+ "@fluid-topics/ft-search-type": "1.1.8",
25
+ "@fluid-topics/ft-tooltip": "1.1.8",
26
+ "@fluid-topics/ft-wc-utils": "1.1.8",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "9d7e94e5e79a15dc5d23714fc33db8342837b804"
29
+ "gitHead": "95fb2d06899d700513970ac830958922b98539df"
30
30
  }