@fluid-topics/ft-search-input 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-input.min.js +35 -35
- package/package.json +9 -9
|
@@ -60,7 +60,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
60
60
|
* Copyright 2017 Google LLC
|
|
61
61
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
62
62
|
*/
|
|
63
|
-
var U;A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:A}),(null!==(S=E.reactiveElementVersions)&&void 0!==S?S:E.reactiveElementVersions=[]).push("1.6.1");const P=window,F=P.trustedTypes,I=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
63
|
+
var U;A.finalized=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:A}),(null!==(S=E.reactiveElementVersions)&&void 0!==S?S:E.reactiveElementVersions=[]).push("1.6.1");const P=window,F=P.trustedTypes,I=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,z="?"+L,_=`<${z}>`,B=document,D=()=>B.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,H=t=>K(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),Z="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,J=/>/g,X=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Q=/"/g,Y=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),et=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),nt=new WeakMap,ot=B.createTreeWalker(B,129,null,!1),rt=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=q;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,u=0;for(;u<i.length&&(s.lastIndex=u,l=s.exec(i),null!==l);)u=s.lastIndex,s===q?"!--"===l[1]?s=V:void 0!==l[1]?s=J:void 0!==l[2]?(Y.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=X):void 0!==l[3]&&(s=X):s===X?">"===l[0]?(s=null!=o?o:q,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?X:'"'===l[3]?Q:G):s===Q||s===G?s=X:s===V||s===J?s=q:(s=X,o=void 0);const f=s===X&&t[e+1].startsWith("/>")?" ":"";r+=s===q?i+_:c>=0?(n.push(a),i.slice(0,c)+T+i.slice(c)+L+f):i+L+(-2===c?(n.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==I?I.createHTML(a):a,n]};class st{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=rt(t,e);if(this.el=st.createElement(l,i),ot.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=ot.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(T)||e.startsWith(L)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+T).split(L),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?ft:"?"===e[1]?pt:"@"===e[1]?dt:ut})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(Y.test(n.tagName)){const t=n.textContent.split(L),e=t.length-1;if(e>0){n.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],D()),ot.nextNode(),a.push({type:2,index:++o});n.append(t[e],D())}}}else if(8===n.nodeType)if(n.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(L,t+1));)a.push({type:7,index:o}),t+=L.length-1}o++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function at(t,e,i=t,n){var o,r,s,a;if(e===et)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=W(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=at(t,l._$AS(t,e.values),l,n)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);ot.currentNode=o;let r=ot.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ct(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new vt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=ot.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ct=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=it,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=at(this,t,e),W(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==it&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=st.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new lt(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new st(t)),e}T(e){K(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(D()),this.k(D()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ut=class{constructor(t,e,i,n,o){this.type=1,this._$AH=it,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=it}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=at(this,t,e,0),r=!W(t)||t!==this._$AH&&t!==et,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=at(this,n[i+s],e,s),a===et&&(a=this._$AH[s]),r||(r=!W(a)||a!==this._$AH[s]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ft=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}};const ht=F?F.emptyScript:"";let pt=class extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ht):this.element.removeAttribute(this.name)}},dt=class extends ut{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=at(this,t,e,0))&&void 0!==i?i:it)===et)return;const n=this._$AH,o=t===it&&n!==it||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==it&&(n===it||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){at(this,t)}};const bt={O:T,P:L,A:z,C:1,M:rt,L:lt,D:H,R:at,I:ct,V:ut,H:pt,N:dt,U:ft,F:vt},yt=P.litHtmlPolyfillSupport;null==yt||yt(st,ct),(null!==(U=P.litHtmlVersions)&&void 0!==U?U:P.litHtmlVersions=[]).push("2.7.3");
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
@@ -98,17 +98,17 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
98
98
|
display: inline-block;
|
|
99
99
|
width: 0;
|
|
100
100
|
}
|
|
101
|
-
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[Oe]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Se}(t)||Array.isArray(t)||!!t[$e]||!!(null===(e=t.constructor)||void 0===e?void 0:e[$e])||Kt(t)||Ht(t))}function Lt(t,e,i){void 0===i&&(i=!1),0===Bt(t)?(i?Object.keys:Ee)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Bt(t){var e=t[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kt(t)?2:Ht(t)?3:0}function _t(t,e){return 2===Bt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Dt(t,e,i){var n=Bt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Wt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Kt(t){return ge&&t instanceof Map}function Ht(t){return me&&t instanceof Set}function Zt(t){return t.o||t.t}function qt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ke(t);delete e[Oe];for(var i=Ee(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Vt(t,e){return void 0===e&&(e=!1),Xt(t)||zt(t)||!Tt(t)||(Bt(t)>1&&(t.set=t.add=t.clear=t.delete=Jt),Object.freeze(t),e&&Lt(t,(function(t,e){return Vt(e,!0)}),!0)),t}function Jt(){It(2)}function Xt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Gt(t){var e=je[t];return e||It(18,t),e}function Qt(){return be}function Yt(t,e){e&&(Gt("Patches"),t.u=[],t.s=[],t.v=e)}function te(t){ee(t),t.p.forEach(ne),t.p=null}function ee(t){t===be&&(be=t.l)}function ie(t){return be={p:[],l:be,h:t,m:!0,_:0}}function ne(t){var e=t[Oe];0===e.i||1===e.i?e.j():e.g=!0}function oe(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||Gt("ES5").S(e,t,n),n?(i[Oe].P&&(te(e),It(4)),Tt(t)&&(t=re(e,t),e.l||ae(e,t)),e.u&&Gt("Patches").M(i[Oe].t,t,e.u,e.s)):t=re(e,i,[]),te(e),e.u&&e.v(e.u,e.s),t!==we?t:void 0}function re(t,e,i){if(Xt(e))return e;var n=e[Oe];if(!n)return Lt(e,(function(o,r){return se(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ae(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=qt(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Lt(r,(function(e,r){return se(t,n,o,e,r,i,s)})),ae(t,o,!1),i&&t.u&&Gt("Patches").N(n,i,t.u,t.s)}return n.o}function se(t,e,i,n,o,r,s){if(zt(o)){var a=re(t,o,r&&e&&3!==e.i&&!_t(e.R,n)?r.concat(n):void 0);if(Dt(i,n,a),!zt(a))return;t.m=!1}else s&&i.add(o);if(Tt(o)&&!Xt(o)){if(!t.h.D&&t._<1)return;re(t,o),e&&e.A.l||ae(t,o)}}function ae(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Vt(e,i)}function le(t,e){var i=t[Oe];return(i?Zt(i):t)[e]}function ce(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ue(t){t.P||(t.P=!0,t.l&&ue(t.l))}function fe(t){t.o||(t.o=qt(t.t))}function he(t,e,i){var n=Kt(e)?Gt("MapSet").F(e,i):Ht(e)?Gt("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:Qt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ce;i&&(o=[n],r=Ne);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):Gt("ES5").J(e,i);return(i?i.A:Qt()).p.push(n),n}function pe(t){return zt(t)||It(22,t),function t(e){if(!Tt(e))return e;var i,n=e[Oe],o=Bt(e);if(n){if(!n.P&&(n.i<4||!Gt("ES5").K(n)))return n.t;n.I=!0,i=de(e,o),n.I=!1}else i=de(e,o);return Lt(i,(function(e,o){n&&function(t,e){return 2===Bt(t)?t.get(e):t[e]}(n.t,e)===o||Dt(i,e,t(o))})),3===o?new Set(i):i}(t)}function de(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return qt(t)}var ve,be,ye="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ge="undefined"!=typeof Map,me="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,we=ye?Symbol.for("immer-nothing"):((ve={})["immer-nothing"]=!0,ve),$e=ye?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=ye?Symbol.for("immer-state"):"__$immer_state",Se=""+Object.prototype.constructor,Ee="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ke=Object.getOwnPropertyDescriptors||function(t){var e={};return Ee(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},je={},Ce={get:function(t,e){if(e===Oe)return t;var i=Zt(t);if(!_t(i,e))return function(t,e,i){var n,o=ce(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Tt(n)?n:n===le(t.t,e)?(fe(t),t.o[e]=he(t.A.h,n,t)):n},has:function(t,e){return e in Zt(t)},ownKeys:function(t){return Reflect.ownKeys(Zt(t))},set:function(t,e,i){var n=ce(Zt(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=le(Zt(t),e),r=null==o?void 0:o[Oe];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Wt(i,o)&&(void 0!==i||_t(t.t,e)))return!0;fe(t),ue(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==le(t.t,e)||e in t.t?(t.R[e]=!1,fe(t),ue(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Zt(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){It(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){It(12)}},Ne={};Lt(Ce,(function(t,e){Ne[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ne.deleteProperty=function(t,e){return Ne.set.call(this,t,e,void 0)},Ne.set=function(t,e,i){return Ce.set.call(this,t[0],e,i,t[0])};var Re=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&It(6),void 0!==n&&"function"!=typeof n&&It(7),Tt(t)){var a=ie(e),l=he(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?te(a):ee(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Yt(a,n),oe(t,a)}),(function(t){throw te(a),t})):(Yt(a,n),oe(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===we&&(s=void 0),e.D&&Vt(s,!0),n){var u=[],f=[];Gt("Patches").M(t,s,u,f),n(u,f)}return s}It(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||It(8),zt(t)&&(t=pe(t));var e=ie(this),i=he(this,t,void 0);return i[Oe].C=!0,ee(e),i},e.finishDraft=function(t,e){var i=(t&&t[Oe]).A;return Yt(i,e),oe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&It(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=Gt("Patches").$;return zt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),Me=new Re,Ae=Me.produce;function Ue(t){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(t)}function Pe(t){var e=function(t,e){if("object"!==Ue(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ue(e)?e:String(e)}function Fe(t,e,i){return(e=Pe(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ie(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ze(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ie(Object(i),!0).forEach((function(e){Fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Te(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. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Le="function"==typeof Symbol&&Symbol.observable||"@@observable",Be=function(){return Math.random().toString(36).substring(7).split("").join(".")},_e={INIT:"@@redux/INIT"+Be(),REPLACE:"@@redux/REPLACE"+Be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Be()}};function De(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Te(1));return i(De)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Te(3));return r}function f(t){if("function"!=typeof t)throw new Error(Te(4));if(l)throw new Error(Te(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Te(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(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(Te(7));if(void 0===t.type)throw new Error(Te(8));if(l)throw new Error(Te(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:_e.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));o=t,h({type:_e.REPLACE})}})[Le]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[Le]=function(){return this},t},n}function We(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:_e.INIT}))throw new Error(Te(12));if(void 0===i(void 0,{type:_e.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Te(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Ke(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function He(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Te(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Ke.apply(void 0,r)(i.dispatch),ze(ze({},i),{},{dispatch:n})}}}function Ze(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var qe=Ze();qe.withExtraArgument=Ze;var Ve,Je=qe,Xe=(Ve=function(t,e){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Ve(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Ge=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},Qe=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},Ye=Object.defineProperty,ti=Object.defineProperties,ei=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ri=function(t,e,i){return e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},si=function(t,e){for(var i in e||(e={}))ni.call(e,i)&&ri(t,i,e[i]);if(ii)for(var n=0,o=ii(e);n<o.length;n++){i=o[n];oi.call(e,i)&&ri(t,i,e[i])}return t},ai=function(t,e){return ti(t,ei(e))},li="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ke:Ke.apply(null,arguments)};var ci=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array),ui=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return Xe(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Qe([void 0],t[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],t.concat(this))))},e}(Array);function fi(t){return Tt(t)?Ae(t,(function(){})):t}function hi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new ci;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(Je.withExtraArgument(i.extraArgument)):n.push(Je));return n}(t)}}function pi(t){var e,i=hi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=We(r)}var d=a;"function"==typeof d&&(d=d(i));var v=He.apply(void 0,d),b=Ke;c&&(b=li(si({trace:!1},"object"==typeof c&&c)));var y=new ui(v),g=y;return Array.isArray(p)?g=Qe([v],p):"function"==typeof p&&(g=p(y)),De(e,f,b.apply(void 0,g))}function di(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return si(si({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function vi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function bi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:fi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?vi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=si(si({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?vi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return fi(t())};else{var c=fi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=Qe([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(zt(t))return void 0===(n=i(t,e))?t:n;if(Tt(t))return Ae(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?di(c,n):di(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var yi=["name","message","stack","code"],gi=function(t,e){this.payload=t,this.meta=e},mi=function(t,e){this.payload=t,this.meta=e},xi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=yi;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function wi(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=di(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:ai(si({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=di(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ai(si({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=di(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||xi)(t||"Rejected"),meta:ai(si({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return Ge(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new gi(t,e)},fulfillWithValue:function(t,e){return new mi(t,e)}})).then((function(e){if(e instanceof gi)throw e;return e instanceof mi?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof gi?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(wi)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var $i,Oi,Si,Ei="listenerMiddleware";di(Ei+"/add"),di(Ei+"/removeAll"),di(Ei+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Oe];return Ce.get(e,t)},set:function(e){var i=this[Oe];Ce.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Oe];if(!o.P)switch(o.i){case 5:n(o)&&ue(o);break;case 4:i(o)&&ue(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ee(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Oe){var s=e[r];if(void 0===s&&!_t(e,r))return!0;var a=i[r],l=a&&a[Oe];if(l?l.t!==s:!Wt(a,s))return!0}}var c=!!e[Oe];return n.length!==Ee(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){je[t]||(je[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=ke(i);delete r[Oe];for(var s=Ee(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:Qt(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Oe,{value:r,writable:!0}),o},S:function(t,i,o){o?zt(i)&&i[Oe].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Oe];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Lt(r,(function(e){e!==Oe&&(void 0!==o[e]||_t(o,e)?s[e]||t(r[e]):(s[e]=!0,ue(i)))})),Lt(o,(function(t){void 0!==r[t]||_t(r,t)||(s[t]=!1,ue(i))}));else if(5===a){if(n(i)&&(ue(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}();const ki=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},ji=Symbol("internalReduxEventsUnsubscribers"),Ci=Symbol("internalStoresUnsubscribers"),Ni=Symbol("internalStores");class Ri extends Mt{constructor(){super(...arguments),this[$i]=new Map,this[Oi]=new Map,this[Si]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ni].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ni].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ni].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Mi(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ni].delete(e)}setupStore(t,e){this[Ni].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ni].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Ci].has(t.store):this[Ci].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ci].set(t,e.subscribe((()=>this.updateFromStores()))),Mi(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[ji].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ci].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ji].forEach((t=>t())),this[ji]=[]}unsubscribeFromStore(t){this[Ci].has(t)&&this[Ci].get(t)(),this[Ci].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Mi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}$i=Ci,Oi=Ni,Si=ji;class Ai{static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,n=window.ftReduxStores[e];if(Mi(n))return n;if(null==i)return;const o=bi(i),r=pi({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?o.getInitialState():o.reducer(t,e)});return window.ftReduxStores[i.name]=new Ai(o,r)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=t[e];if(n)return(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ui,Pi,Fi;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Fi=null===(Pi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Pi?void 0:Pi.toString())&&void 0!==Fi?Fi:""),zi=1,Ti=2,Li=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
101
|
+
`;class Ft{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function It(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Tt,Lt,zt;const _t=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores");class Wt extends Mt{constructor(){super(...arguments),this[Tt]=new Map,this[Lt]=new Map,this[zt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Dt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:It(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Dt].delete(e)}setupStore(t,e){this[Dt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(t.store?this[Bt].has(t.store):this[Bt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Bt].set(t,e.subscribe((()=>this.updateFromStores()))),It(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[_t].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Bt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[_t].forEach((t=>t())),this[_t]=[]}unsubscribeFromStore(t){this[Bt].has(t)&&this[Bt].get(t)(),this[Bt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Kt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ht(t){return!!t&&!!t[Me]}function Zt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ae}(t)||Array.isArray(t)||!!t[Re]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Re])||Qt(t)||Yt(t))}function qt(t,e,i){void 0===i&&(i=!1),0===Vt(t)?(i?Object.keys:Ue)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Vt(t){var e=t[Me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Qt(t)?2:Yt(t)?3:0}function Jt(t,e){return 2===Vt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Xt(t,e,i){var n=Vt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function Gt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Qt(t){return ke&&t instanceof Map}function Yt(t){return je&&t instanceof Set}function te(t){return t.o||t.t}function ee(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[Me];for(var i=Ue(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function ie(t,e){return void 0===e&&(e=!1),oe(t)||Ht(t)||!Zt(t)||(Vt(t)>1&&(t.set=t.add=t.clear=t.delete=ne),Object.freeze(t),e&&qt(t,(function(t,e){return ie(e,!0)}),!0)),t}function ne(){Kt(2)}function oe(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function re(t){var e=Fe[t];return e||Kt(18,t),e}function se(){return Se}function ae(t,e){e&&(re("Patches"),t.u=[],t.s=[],t.v=e)}function le(t){ce(t),t.p.forEach(fe),t.p=null}function ce(t){t===Se&&(Se=t.l)}function ue(t){return Se={p:[],l:Se,h:t,m:!0,_:0}}function fe(t){var e=t[Me];0===e.i||1===e.i?e.j():e.g=!0}function he(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||re("ES5").S(e,t,n),n?(i[Me].P&&(le(e),Kt(4)),Zt(t)&&(t=pe(e,t),e.l||ve(e,t)),e.u&&re("Patches").M(i[Me].t,t,e.u,e.s)):t=pe(e,i,[]),le(e),e.u&&e.v(e.u,e.s),t!==Ne?t:void 0}function pe(t,e,i){if(oe(e))return e;var n=e[Me];if(!n)return qt(e,(function(o,r){return de(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ve(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=ee(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),qt(r,(function(e,r){return de(t,n,o,e,r,i,s)})),ve(t,o,!1),i&&t.u&&re("Patches").N(n,i,t.u,t.s)}return n.o}function de(t,e,i,n,o,r,s){if(Ht(o)){var a=pe(t,o,r&&e&&3!==e.i&&!Jt(e.R,n)?r.concat(n):void 0);if(Xt(i,n,a),!Ht(a))return;t.m=!1}else s&&i.add(o);if(Zt(o)&&!oe(o)){if(!t.h.D&&t._<1)return;pe(t,o),e&&e.A.l||ve(t,o)}}function ve(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ie(e,i)}function be(t,e){var i=t[Me];return(i?te(i):t)[e]}function ye(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function ge(t){t.P||(t.P=!0,t.l&&ge(t.l))}function me(t){t.o||(t.o=ee(t.t))}function xe(t,e,i){var n=Qt(e)?re("MapSet").F(e,i):Yt(e)?re("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:se(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Ie;i&&(o=[n],r=Te);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):re("ES5").J(e,i);return(i?i.A:se()).p.push(n),n}function we(t){return Ht(t)||Kt(22,t),function t(e){if(!Zt(e))return e;var i,n=e[Me],o=Vt(e);if(n){if(!n.P&&(n.i<4||!re("ES5").K(n)))return n.t;n.I=!0,i=$e(e,o),n.I=!1}else i=$e(e,o);return qt(i,(function(e,o){n&&function(t,e){return 2===Vt(t)?t.get(e):t[e]}(n.t,e)===o||Xt(i,e,t(o))})),3===o?new Set(i):i}(t)}function $e(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ee(t)}Tt=Bt,Lt=Dt,zt=_t;var Oe,Se,Ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ke="undefined"!=typeof Map,je="undefined"!=typeof Set,Ce="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ne=Ee?Symbol.for("immer-nothing"):((Oe={})["immer-nothing"]=!0,Oe),Re=Ee?Symbol.for("immer-draftable"):"__$immer_draftable",Me=Ee?Symbol.for("immer-state"):"__$immer_state",Ae=""+Object.prototype.constructor,Ue="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Ue(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Fe={},Ie={get:function(t,e){if(e===Me)return t;var i=te(t);if(!Jt(i,e))return function(t,e,i){var n,o=ye(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Zt(n)?n:n===be(t.t,e)?(me(t),t.o[e]=xe(t.A.h,n,t)):n},has:function(t,e){return e in te(t)},ownKeys:function(t){return Reflect.ownKeys(te(t))},set:function(t,e,i){var n=ye(te(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=be(te(t),e),r=null==o?void 0:o[Me];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(Gt(i,o)&&(void 0!==i||Jt(t.t,e)))return!0;me(t),ge(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==be(t.t,e)||e in t.t?(t.R[e]=!1,me(t),ge(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=te(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Kt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Kt(12)}},Te={};qt(Ie,(function(t,e){Te[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Te.deleteProperty=function(t,e){return Te.set.call(this,t,e,void 0)},Te.set=function(t,e,i){return Ie.set.call(this,t[0],e,i,t[0])};var Le=function(){function t(t){var e=this;this.O=Ce,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Kt(6),void 0!==n&&"function"!=typeof n&&Kt(7),Zt(t)){var a=ue(e),l=xe(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?le(a):ce(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return ae(a,n),he(t,a)}),(function(t){throw le(a),t})):(ae(a,n),he(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ne&&(s=void 0),e.D&&ie(s,!0),n){var u=[],f=[];re("Patches").M(t,s,u,f),n(u,f)}return s}Kt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Zt(t)||Kt(8),Ht(t)&&(t=we(t));var e=ue(this),i=xe(this,t,void 0);return i[Me].C=!0,ce(e),i},e.finishDraft=function(t,e){var i=(t&&t[Me]).A;return ae(i,e),he(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ce&&Kt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=re("Patches").$;return Ht(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),ze=new Le,_e=ze.produce;function Be(t){return Be="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},Be(t)}function De(t){var e=function(t,e){if("object"!==Be(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Be(e)?e:String(e)}function We(t,e,i){return(e=De(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ke(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function He(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(i),!0).forEach((function(e){We(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ke(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}ze.produceWithPatches.bind(ze),ze.setAutoFreeze.bind(ze),ze.setUseProxies.bind(ze),ze.applyPatches.bind(ze),ze.createDraft.bind(ze),ze.finishDraft.bind(ze);var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Ve=function(){return Math.random().toString(36).substring(7).split("").join(".")},Je={INIT:"@@redux/INIT"+Ve(),REPLACE:"@@redux/REPLACE"+Ve(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ve()}};function Xe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ze(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ze(1));return i(Xe)(t,e)}if("function"!=typeof t)throw new Error(Ze(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(Ze(3));return r}function f(t){if("function"!=typeof t)throw new Error(Ze(4));if(l)throw new Error(Ze(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ze(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Ze(7));if(void 0===t.type)throw new Error(Ze(8));if(l)throw new Error(Ze(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:Je.INIT}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ze(10));o=t,h({type:Je.REPLACE})}})[qe]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ze(11));function i(){t.next&&t.next(u())}return i(),{unsubscribe:e(i)}}})[qe]=function(){return this},t},n}function Ge(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Je.INIT}))throw new Error(Ze(12));if(void 0===i(void 0,{type:Je.PROBE_UNKNOWN_ACTION()}))throw new Error(Ze(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],u=t[l],f=c(u,e);if(void 0===f)throw e&&e.type,new Error(Ze(14));o[l]=f,n=n||f!==u}return(n=n||s.length!==Object.keys(t).length)?o:t}}function Qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function Ye(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),n=function(){throw new Error(Ze(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=Qe.apply(void 0,r)(i.dispatch),He(He({},i),{},{dispatch:n})}}}function ti(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var ei=ti();ei.withExtraArgument=ti;var ii,ni=ei,oi=(ii=function(t,e){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ii(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ii(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ri=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},si=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},ai=Object.defineProperty,li=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,fi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,pi=function(t,e,i){return e in t?ai(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},di=function(t,e){for(var i in e||(e={}))fi.call(e,i)&&pi(t,i,e[i]);if(ui)for(var n=0,o=ui(e);n<o.length;n++){i=o[n];hi.call(e,i)&&pi(t,i,e[i])}return t},vi=function(t,e){return li(t,ci(e))},bi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Qe:Qe.apply(null,arguments)};var yi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array),gi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return oi(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,si([void 0],t[0].concat(this)))):new(e.bind.apply(e,si([void 0],t.concat(this))))},e}(Array);function mi(t){return Zt(t)?_e(t,(function(){})):t}function xi(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new yi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(ni.withExtraArgument(i.extraArgument)):n.push(ni));return n}(t)}}function wi(t){var e,i=xi(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,u=n.preloadedState,f=void 0===u?void 0:u,h=n.enhancers,p=void 0===h?void 0:h;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ge(r)}var d=a;"function"==typeof d&&(d=d(i));var v=Ye.apply(void 0,d),b=Qe;c&&(b=bi(di({trace:!1},"object"==typeof c&&c)));var y=new gi(v),g=y;return Array.isArray(p)?g=si([v],p):"function"==typeof p&&(g=p(y)),Xe(e,f,b.apply(void 0,g))}function $i(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return di(di({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Oi(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function Si(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:mi(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Oi(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,u=di(di({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Oi(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return mi(t())};else{var c=mi(t);o=function(){return c}}function u(t,e){void 0===t&&(t=o());var i=si([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var n;if(Ht(t))return void 0===(n=i(t,e))?t:n;if(Zt(t))return _e(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return u.getInitialState=o,u}(n,(function(t){for(var e in u)t.addCase(e,u[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?$i(c,n):$i(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Ei=["name","message","stack","code"],ki=function(t,e){this.payload=t,this.meta=e},ji=function(t,e){this.payload=t,this.meta=e},Ci=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Ei;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ni(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var n=$i(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:vi(di({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=$i(t+"/pending",(function(t,e,i){return{payload:void 0,meta:vi(di({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=$i(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ci)(t||"Rejected"),meta:vi(di({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,l,c){var u,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function p(t){u=t,h.abort()}var d=function(){return s=this,d=null,v=function(){var s,d,v,b,y,g;return ri(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),a(o(f,t,null==(d=null==i?void 0:i.getPendingMeta)?void 0:d.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:f,signal:h.signal,abort:p,rejectWithValue:function(t,e){return new ki(t,e)},fulfillWithValue:function(t,e){return new ji(t,e)}})).then((function(e){if(e instanceof ki)throw e;return e instanceof ji?n(e.payload,f,t,e.meta):n(e,f,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof ki?r(null,f,t,g.payload,g.meta):r(g,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,d)).next())}));var s,d,v}();return Object.assign(d,{abort:p,requestId:f,arg:t,unwrap:function(){return d.then(Ni)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ri="listenerMiddleware";$i(Ri+"/add"),$i(Ri+"/removeAll"),$i(Ri+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Me];return Ie.get(e,t)},set:function(e){var i=this[Me];Ie.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][Me];if(!o.P)switch(o.i){case 5:n(o)&&ge(o);break;case 4:i(o)&&ge(o)}}}function i(t){for(var e=t.t,i=t.k,n=Ue(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==Me){var s=e[r];if(void 0===s&&!Jt(e,r))return!0;var a=i[r],l=a&&a[Me];if(l?l.t!==s:!Gt(a,s))return!0}}var c=!!e[Me];return n.length!==Ue(e).length+(c?0:1)}function n(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){Fe[t]||(Fe[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[Me];for(var s=Ue(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:se(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,Me,{value:r,writable:!0}),o},S:function(t,i,o){o?Ht(i)&&i[Me].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Me];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)qt(r,(function(e){e!==Me&&(void 0!==o[e]||Jt(o,e)?s[e]||t(r[e]):(s[e]=!0,ge(i)))})),qt(o,(function(t){void 0!==r[t]||Jt(r,t)||(s[t]=!1,ge(i))}));else if(5===a){if(n(i)&&(ge(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var u=Math.min(r.length,o.length),f=0;f<u;f++)r.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(r[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Mi{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(It(o))return o;if(null==n)return;const r=Si({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=wi({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new Mi(r,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[n]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ai=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Ui,Pi,Fi;const Ii=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Fi=null===(Pi=null===(Ui=window.safari)||void 0===Ui?void 0:Ui.pushNotification)||void 0===Pi?void 0:Pi.toString())&&void 0!==Fi?Fi:""),Ti=1,Li=2,zi=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
102
102
|
/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2017 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
106
|
-
*/class
|
|
106
|
+
*/class _i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
107
107
|
/**
|
|
108
108
|
* @license
|
|
109
109
|
* Copyright 2018 Google LLC
|
|
110
110
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
111
|
-
*/const
|
|
111
|
+
*/const Bi=zi(class extends _i{constructor(t){var e;if(super(t),t.type!==Ti||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return et}}),Di=$t.extend("--ft-ripple-color",St.colorContent),Wi={color:Di,backgroundColor:$t.extend("--ft-ripple-background-color",Di),opacityContentOnSurfacePressed:$t.external(St.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:$t.external(St.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:$t.external(St.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:$t.external(St.opacityContentOnSurfaceSelected,"Design system"),borderRadius:$t.create("--ft-ripple-border-radius","SIZE","0px")},Ki=$t.extend("--ft-ripple-color",St.colorPrimary),Hi=Ki,Zi=$t.extend("--ft-ripple-background-color",Ki),qi=$t.extend("--ft-ripple-color",St.colorSecondary),Vi=qi,Ji=$t.extend("--ft-ripple-background-color",qi),Xi=w`
|
|
112
112
|
:host {
|
|
113
113
|
display: contents;
|
|
114
114
|
}
|
|
@@ -211,7 +211,7 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
211
211
|
top: ${this.originY}px;
|
|
212
212
|
}
|
|
213
213
|
</style>
|
|
214
|
-
<div class="${
|
|
214
|
+
<div class="${Bi(t)}">
|
|
215
215
|
<div class="ft-ripple--background"></div>
|
|
216
216
|
<div class="ft-ripple--effect"></div>
|
|
217
217
|
</div>
|
|
@@ -221,7 +221,7 @@ var gt,mt;let xt=class extends A{constructor(){super(...arguments),this.renderOp
|
|
|
221
221
|
* Copyright 2020 Google LLC
|
|
222
222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
223
223
|
*/
|
|
224
|
-
const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void 0:t._$litStatic$},en=t=>({_$litStatic$:t,r:Yi}),nn=new Map,on=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=tn(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=nn.get(t))&&(s.raw=s,nn.set(t,e=s)),i=a}return t(e,...i)})(tt);var rn;!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"}(rn||(rn={}));const sn=$t.extend("--ft-typography-font-family",St.titleFont),an=$t.extend("--ft-typography-font-family",St.contentFont),ln={fontFamily:an,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},cn=$t.extend("--ft-typography-title-font-family",sn),un=$t.extend("--ft-typography-title-font-size",ln.fontSize,"20px"),fn=$t.extend("--ft-typography-title-font-weight",ln.fontWeight,"normal"),hn=$t.extend("--ft-typography-title-letter-spacing",ln.letterSpacing,"0.15px"),pn=$t.extend("--ft-typography-title-line-height",ln.lineHeight,"1.2"),dn=$t.extend("--ft-typography-title-text-transform",ln.textTransform,"inherit"),vn=$t.extend("--ft-typography-title-dense-font-family",sn),bn=$t.extend("--ft-typography-title-dense-font-size",ln.fontSize,"14px"),yn=$t.extend("--ft-typography-title-dense-font-weight",ln.fontWeight,"normal"),gn=$t.extend("--ft-typography-title-dense-letter-spacing",ln.letterSpacing,"0.105px"),mn=$t.extend("--ft-typography-title-dense-line-height",ln.lineHeight,"1.7"),xn=$t.extend("--ft-typography-title-dense-text-transform",ln.textTransform,"inherit"),wn=$t.extend("--ft-typography-subtitle1-font-family",an),$n=$t.extend("--ft-typography-subtitle1-font-size",ln.fontSize,"16px"),On=$t.extend("--ft-typography-subtitle1-font-weight",ln.fontWeight,"600"),Sn=$t.extend("--ft-typography-subtitle1-letter-spacing",ln.letterSpacing,"0.144px"),En=$t.extend("--ft-typography-subtitle1-line-height",ln.lineHeight,"1.5"),kn=$t.extend("--ft-typography-subtitle1-text-transform",ln.textTransform,"inherit"),jn=$t.extend("--ft-typography-subtitle2-font-family",an),Cn=$t.extend("--ft-typography-subtitle2-font-size",ln.fontSize,"14px"),Nn=$t.extend("--ft-typography-subtitle2-font-weight",ln.fontWeight,"normal"),Rn=$t.extend("--ft-typography-subtitle2-letter-spacing",ln.letterSpacing,"0.098px"),Mn=$t.extend("--ft-typography-subtitle2-line-height",ln.lineHeight,"1.7"),An=$t.extend("--ft-typography-subtitle2-text-transform",ln.textTransform,"inherit"),Un=$t.extend("--ft-typography-body1-font-family",an),Pn=$t.extend("--ft-typography-body1-font-size",ln.fontSize,"16px"),Fn=$t.extend("--ft-typography-body1-font-weight",ln.fontWeight,"normal"),In=$t.extend("--ft-typography-body1-letter-spacing",ln.letterSpacing,"0.496px"),
|
|
224
|
+
const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void 0:t._$litStatic$},en=t=>({_$litStatic$:t,r:Yi}),nn=new Map,on=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,u=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=tn(r));)l+=o+e[++c],u=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),u){const t=s.join("$$lit$$");void 0===(e=nn.get(t))&&(s.raw=s,nn.set(t,e=s)),i=a}return t(e,...i)})(tt);var rn;!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"}(rn||(rn={}));const sn=$t.extend("--ft-typography-font-family",St.titleFont),an=$t.extend("--ft-typography-font-family",St.contentFont),ln={fontFamily:an,fontSize:$t.create("--ft-typography-font-size","SIZE","16px"),fontWeight:$t.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:$t.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:$t.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:$t.create("--ft-typography-text-transform","UNKNOWN","inherit")},cn=$t.extend("--ft-typography-title-font-family",sn),un=$t.extend("--ft-typography-title-font-size",ln.fontSize,"20px"),fn=$t.extend("--ft-typography-title-font-weight",ln.fontWeight,"normal"),hn=$t.extend("--ft-typography-title-letter-spacing",ln.letterSpacing,"0.15px"),pn=$t.extend("--ft-typography-title-line-height",ln.lineHeight,"1.2"),dn=$t.extend("--ft-typography-title-text-transform",ln.textTransform,"inherit"),vn=$t.extend("--ft-typography-title-dense-font-family",sn),bn=$t.extend("--ft-typography-title-dense-font-size",ln.fontSize,"14px"),yn=$t.extend("--ft-typography-title-dense-font-weight",ln.fontWeight,"normal"),gn=$t.extend("--ft-typography-title-dense-letter-spacing",ln.letterSpacing,"0.105px"),mn=$t.extend("--ft-typography-title-dense-line-height",ln.lineHeight,"1.7"),xn=$t.extend("--ft-typography-title-dense-text-transform",ln.textTransform,"inherit"),wn=$t.extend("--ft-typography-subtitle1-font-family",an),$n=$t.extend("--ft-typography-subtitle1-font-size",ln.fontSize,"16px"),On=$t.extend("--ft-typography-subtitle1-font-weight",ln.fontWeight,"600"),Sn=$t.extend("--ft-typography-subtitle1-letter-spacing",ln.letterSpacing,"0.144px"),En=$t.extend("--ft-typography-subtitle1-line-height",ln.lineHeight,"1.5"),kn=$t.extend("--ft-typography-subtitle1-text-transform",ln.textTransform,"inherit"),jn=$t.extend("--ft-typography-subtitle2-font-family",an),Cn=$t.extend("--ft-typography-subtitle2-font-size",ln.fontSize,"14px"),Nn=$t.extend("--ft-typography-subtitle2-font-weight",ln.fontWeight,"normal"),Rn=$t.extend("--ft-typography-subtitle2-letter-spacing",ln.letterSpacing,"0.098px"),Mn=$t.extend("--ft-typography-subtitle2-line-height",ln.lineHeight,"1.7"),An=$t.extend("--ft-typography-subtitle2-text-transform",ln.textTransform,"inherit"),Un=$t.extend("--ft-typography-body1-font-family",an),Pn=$t.extend("--ft-typography-body1-font-size",ln.fontSize,"16px"),Fn=$t.extend("--ft-typography-body1-font-weight",ln.fontWeight,"normal"),In=$t.extend("--ft-typography-body1-letter-spacing",ln.letterSpacing,"0.496px"),Tn=$t.extend("--ft-typography-body1-line-height",ln.lineHeight,"1.5"),Ln=$t.extend("--ft-typography-body1-text-transform",ln.textTransform,"inherit"),zn=$t.extend("--ft-typography-body2-font-family",an),_n=$t.extend("--ft-typography-body2-font-size",ln.fontSize,"14px"),Bn=$t.extend("--ft-typography-body2-font-weight",ln.fontWeight,"normal"),Dn=$t.extend("--ft-typography-body2-letter-spacing",ln.letterSpacing,"0.252px"),Wn=$t.extend("--ft-typography-body2-line-height",ln.lineHeight,"1.4"),Kn=$t.extend("--ft-typography-body2-text-transform",ln.textTransform,"inherit"),Hn=$t.extend("--ft-typography-caption-font-family",an),Zn=$t.extend("--ft-typography-caption-font-size",ln.fontSize,"12px"),qn=$t.extend("--ft-typography-caption-font-weight",ln.fontWeight,"normal"),Vn=$t.extend("--ft-typography-caption-letter-spacing",ln.letterSpacing,"0.396px"),Jn=$t.extend("--ft-typography-caption-line-height",ln.lineHeight,"1.33"),Xn=$t.extend("--ft-typography-caption-text-transform",ln.textTransform,"inherit"),Gn=$t.extend("--ft-typography-breadcrumb-font-family",an),Qn=$t.extend("--ft-typography-breadcrumb-font-size",ln.fontSize,"10px"),Yn=$t.extend("--ft-typography-breadcrumb-font-weight",ln.fontWeight,"normal"),to=$t.extend("--ft-typography-breadcrumb-letter-spacing",ln.letterSpacing,"0.33px"),eo=$t.extend("--ft-typography-breadcrumb-line-height",ln.lineHeight,"1.6"),io=$t.extend("--ft-typography-breadcrumb-text-transform",ln.textTransform,"inherit"),no=$t.extend("--ft-typography-overline-font-family",an),oo=$t.extend("--ft-typography-overline-font-size",ln.fontSize,"10px"),ro=$t.extend("--ft-typography-overline-font-weight",ln.fontWeight,"normal"),so=$t.extend("--ft-typography-overline-letter-spacing",ln.letterSpacing,"1.5px"),ao=$t.extend("--ft-typography-overline-line-height",ln.lineHeight,"1.6"),lo=$t.extend("--ft-typography-overline-text-transform",ln.textTransform,"uppercase"),co={fontFamily:$t.extend("--ft-typography-button-font-family",an),fontSize:$t.extend("--ft-typography-button-font-size",ln.fontSize,"14px"),fontWeight:$t.extend("--ft-typography-button-font-weight",ln.fontWeight,"600"),letterSpacing:$t.extend("--ft-typography-button-letter-spacing",ln.letterSpacing,"1.246px"),lineHeight:$t.extend("--ft-typography-button-line-height",ln.lineHeight,"1.15"),textTransform:$t.extend("--ft-typography-button-text-transform",ln.textTransform,"uppercase")},uo=w`
|
|
225
225
|
.ft-typography--title {
|
|
226
226
|
font-family: ${cn};
|
|
227
227
|
font-size: ${un};
|
|
@@ -264,14 +264,14 @@ const Yi=Symbol.for(""),tn=t=>{if((null==t?void 0:t.r)===Yi)return null==t?void
|
|
|
264
264
|
font-size: ${Pn};
|
|
265
265
|
font-weight: ${Fn};
|
|
266
266
|
letter-spacing: ${In};
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
267
|
+
line-height: ${Tn};
|
|
268
|
+
text-transform: ${Ln};
|
|
269
269
|
}
|
|
270
270
|
`,bo=w`
|
|
271
271
|
.ft-typography--body2 {
|
|
272
|
-
font-family: ${
|
|
273
|
-
font-size: ${
|
|
274
|
-
font-weight: ${
|
|
272
|
+
font-family: ${zn};
|
|
273
|
+
font-size: ${_n};
|
|
274
|
+
font-weight: ${Bn};
|
|
275
275
|
letter-spacing: ${Dn};
|
|
276
276
|
line-height: ${Wn};
|
|
277
277
|
text-transform: ${Kn};
|
|
@@ -461,7 +461,7 @@ function(t,e,i){let n,o=t;return"object"==typeof t?(o=t.slot,n=t):n={flatten:e},
|
|
|
461
461
|
* Copyright 2017 Google LLC
|
|
462
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
463
463
|
*/
|
|
464
|
-
class Mo extends
|
|
464
|
+
class Mo extends _i{constructor(t){if(super(t),this.et=it,t.type!==Li)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===it||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Mo.directiveName="unsafeHTML",Mo.resultType=1;const Ao=zi(Mo);var Uo,Po;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Uo||(Uo={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Po||(Po={}));const Fo=new Map([...["abw"].map((t=>[t,Po.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Po.AUDIO])),...["avi"].map((t=>[t,Po.AVI])),...["chm","xhs"].map((t=>[t,Po.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Po.CODE])),...["csv"].map((t=>[t,Po.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Po.DITA])),...["epub"].map((t=>[t,Po.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Po.EXCEL])),...["flac"].map((t=>[t,Po.FLAC])),...["gif"].map((t=>[t,Po.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Po.GZIP])),...["html","htm","xhtml"].map((t=>[t,Po.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Po.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Po.JPEG])),...["json"].map((t=>[t,Po.JSON])),...["m4a","m4p"].map((t=>[t,Po.M4A])),...["mov","qt"].map((t=>[t,Po.MOV])),...["mp3"].map((t=>[t,Po.MP3])),...["mp4","m4v"].map((t=>[t,Po.MP4])),...["ogg","oga"].map((t=>[t,Po.OGG])),...["pdf","ps"].map((t=>[t,Po.PDF])),...["png"].map((t=>[t,Po.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Po.POWERPOINT])),...["rar"].map((t=>[t,Po.RAR])),...["stp"].map((t=>[t,Po.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Po.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Po.VIDEO])),...["wav"].map((t=>[t,Po.WAV])),...["wma"].map((t=>[t,Po.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Po.WORD])),...["xml","xsl","rdf"].map((t=>[t,Po.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Po.YAML])),...["zip"].map((t=>[t,Po.ZIP]))]),Io=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const To={size:$t.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:$t.extend("--ft-icon-fluid-topics-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:$t.extend("--ft-icon-file-format-font-family",$t.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:$t.extend("--ft-icon-material-font-family",$t.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:$t.create("--ft-icon-vertical-align","UNKNOWN","unset")},Lo=w`
|
|
465
465
|
:host, i.ft-icon {
|
|
466
466
|
display: inline-flex;
|
|
467
467
|
align-items: center;
|
|
@@ -470,14 +470,14 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
:host {
|
|
473
|
-
width: ${
|
|
474
|
-
height: ${
|
|
473
|
+
width: ${To.size};
|
|
474
|
+
height: ${To.size};
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
i.ft-icon {
|
|
478
478
|
width: 100%;
|
|
479
479
|
height: 100%;
|
|
480
|
-
font-size: ${
|
|
480
|
+
font-size: ${To.size};
|
|
481
481
|
line-height: 1;
|
|
482
482
|
font-weight: normal;
|
|
483
483
|
text-transform: none;
|
|
@@ -488,33 +488,33 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
488
488
|
text-rendering: auto;
|
|
489
489
|
-webkit-font-smoothing: antialiased;
|
|
490
490
|
-moz-osx-font-smoothing: grayscale;
|
|
491
|
-
vertical-align: ${
|
|
491
|
+
vertical-align: ${To.verticalAlign};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
i.ft-icon.ft-icon--fluid-topics {
|
|
495
|
-
font-family: ${
|
|
495
|
+
font-family: ${To.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
496
496
|
|
|
497
497
|
/* Ugly fix because font is broken */
|
|
498
|
-
font-size: calc(0.75 * ${
|
|
499
|
-
line-height: ${
|
|
498
|
+
font-size: calc(0.75 * ${To.size});
|
|
499
|
+
line-height: ${To.size};
|
|
500
500
|
position: relative;
|
|
501
501
|
top: -4%;
|
|
502
502
|
justify-content: center;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-icon--file-format {
|
|
506
|
-
font-family: ${
|
|
506
|
+
font-family: ${To.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-icon--material {
|
|
510
|
-
font-family: ${
|
|
510
|
+
font-family: ${To.materialFontFamily}, "Material Icons", sans-serif;
|
|
511
511
|
}
|
|
512
|
-
`;var
|
|
512
|
+
`;var zo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zo||(zo={}));var _o=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bo extends Mt{constructor(){super(...arguments),this.resolvedIcon=it}render(){const t=this.variant&&Object.values(zo).includes(this.variant)?this.variant:zo.fluid_topics,e=t!==zo.material||!!this.value;return tt`
|
|
513
513
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
514
514
|
${Ao(this.resolvedIcon)}
|
|
515
515
|
<slot ?hidden=${e}></slot>
|
|
516
516
|
</i>
|
|
517
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
517
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case zo.file_format:this.resolvedIcon=null!==(t=Po[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zo.material:this.resolvedIcon=this.value||it;break;default:this.resolvedIcon=null!==(e=Uo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Bo.elementDefinitions={},Bo.styles=Lo,_o([s()],Bo.prototype,"variant",void 0),_o([s()],Bo.prototype,"value",void 0),_o([a()],Bo.prototype,"resolvedIcon",void 0),_o([c("slot")],Bo.prototype,"slottedContent",void 0),p("ft-icon")(Bo);const Do=$t.extend("--ft-button-color",St.colorPrimary),Wo={backgroundColor:$t.extend("--ft-button-background-color",St.colorSurface),borderRadius:$t.extend("--ft-button-border-radius",St.borderRadiusL),color:Do,fontSize:$t.extend("--ft-button-font-size",co.fontSize),iconSize:$t.create("--ft-button-icon-size","SIZE","24px"),rippleColor:$t.extend("--ft-button-ripple-color",Do),verticalPadding:$t.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:$t.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:$t.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:$t.external(St.colorOpacityDisabled,"Design system")},Ko=$t.extend("--ft-button-primary-color",$t.extend("--ft-button-color",St.colorOnPrimary)),Ho={backgroundColor:$t.extend("--ft-button-primary-background-color",$t.extend("--ft-button-background-color",St.colorPrimary)),color:Ko,rippleColor:$t.extend("--ft-button-primary-ripple-color",Ko)},Zo=$t.extend("--ft-button-dense-border-radius",$t.extend("--ft-button-border-radius",St.borderRadiusM)),qo=$t.create("--ft-button-dense-vertical-padding","SIZE","2px"),Vo=$t.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Jo=$t.create("--ft-button-dense-icon-padding","SIZE","4px"),Xo=[w`
|
|
518
518
|
:host {
|
|
519
519
|
display: inline-block;
|
|
520
520
|
max-width: 100%;
|
|
@@ -556,7 +556,7 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
556
556
|
|
|
557
557
|
--ft-button-internal-line-height: max(calc(${Wo.fontSize} + 2px), ${Wo.iconSize});
|
|
558
558
|
--ft-button-internal-color: ${Wo.color};
|
|
559
|
-
${Ot(
|
|
559
|
+
${Ot(To.size,Wo.iconSize)};
|
|
560
560
|
${Ot(Wi.color,Wo.rippleColor)};
|
|
561
561
|
|
|
562
562
|
border-radius: ${Wo.borderRadius};
|
|
@@ -653,7 +653,7 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
653
653
|
}
|
|
654
654
|
`,At];var Go=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qo extends Mt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(tt`
|
|
655
655
|
<button part="button"
|
|
656
|
-
class="${
|
|
656
|
+
class="${Bi(t)}"
|
|
657
657
|
aria-label="${this.getLabel()}"
|
|
658
658
|
?disabled=${this.isDisabled()}>
|
|
659
659
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -674,7 +674,7 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
674
674
|
</ft-tooltip>
|
|
675
675
|
`:t}resolveIcon(){return this.loading?tt`
|
|
676
676
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
|
|
677
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Qo.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":jo,"ft-typography":Oo,"ft-icon":
|
|
677
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:it}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Qo.elementDefinitions={"ft-ripple":Qi,"ft-tooltip":jo,"ft-typography":Oo,"ft-icon":Bo,"ft-loader":Ro},Qo.styles=[Pt,Xo],Go([s({type:String,reflect:!0})],Qo.prototype,"role",void 0),Go([s({type:Boolean})],Qo.prototype,"primary",void 0),Go([s({type:Boolean})],Qo.prototype,"outlined",void 0),Go([s({type:Boolean})],Qo.prototype,"disabled",void 0),Go([s({type:Boolean})],Qo.prototype,"dense",void 0),Go([s({type:Boolean})],Qo.prototype,"round",void 0),Go([s()],Qo.prototype,"label",void 0),Go([s()],Qo.prototype,"icon",void 0),Go([s()],Qo.prototype,"iconVariant",void 0),Go([s({type:Boolean})],Qo.prototype,"trailingIcon",void 0),Go([s({type:Boolean})],Qo.prototype,"loading",void 0),Go([s()],Qo.prototype,"tooltipPosition",void 0),Go([s({type:Boolean})],Qo.prototype,"hideTooltip",void 0),Go([s({type:Boolean})],Qo.prototype,"forceTooltip",void 0),Go([c(".ft-button")],Qo.prototype,"button",void 0),Go([c(".ft-button--label slot")],Qo.prototype,"slottedContent",void 0),p("ft-button")(Qo);const Yo={height:$t.create("--ft-search-input-height","SIZE","38px"),borderRadius:$t.extend("--ft-search-input-border-radius",St.borderRadiusS),desktopFiltersHeight:$t.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:$t.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:$t.external(St.colorSurface,"Design system"),colorOnSurface:$t.external(St.colorOnSurface,"Design system"),colorOnSurfaceMedium:$t.external(St.colorOnSurfaceMedium,"Design system"),colorOutline:$t.external(St.colorOutline,"Design system"),colorPrimary:$t.external(St.colorPrimary,"Design system"),elevation02:$t.external(St.elevation02,"Design system"),buttonColor:$t.external(Wo.color,"Button"),buttonRippleColor:$t.external(Wo.rippleColor,"Button")},tr=w`
|
|
678
678
|
* {
|
|
679
679
|
box-sizing: border-box;
|
|
680
680
|
}
|
|
@@ -756,14 +756,14 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
756
756
|
border-right: 1px solid ${Yo.colorOutline};
|
|
757
757
|
}
|
|
758
758
|
`,er=w`
|
|
759
|
-
`,ir=
|
|
759
|
+
`,ir=Mi.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 nr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ir.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?nr.build(t):null!==(e=nr.API)&&void 0!==e?e:nr.API=nr.build()}static await(t){return new Promise((e=>{let i=nr.get(t);if(i)e(i);else{const n=ir.subscribe((()=>{i=nr.get(t),i&&(n(),e(i))}))}}))}}var or;const rr=Symbol("clearAfterUnitTest");class sr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[or]=()=>{this.defaultMessages={},this.cache=new n,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 i;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};h(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Ft(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}or=rr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new sr((async(t,e)=>(await nr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new sr((async(t,e)=>(await nr.await()).getCustomMessageContext(t,e))));const ar=window.FluidTopicsI18nService,lr=window.FluidTopicsCustomI18nService;var cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ur extends Mt{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=()=>nr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return tt`
|
|
760
760
|
<slot></slot>
|
|
761
|
-
`}updated(t){super.updated(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=>ar.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()))))}}ur.elementDefinitions={},ur.styles=er,cr([s()],ur.prototype,"baseUrl",void 0),cr([s()],ur.prototype,"apiIntegrationIdentifier",void 0),cr([s()],ur.prototype,"uiLocale",void 0),cr([d([])],ur.prototype,"availableUiLocales",void 0),cr([s({type:Boolean})],ur.prototype,"editorMode",void 0),cr([s({type:Boolean})],ur.prototype,"noCustom",void 0),cr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ur.prototype,"noCustomComponent",void 0),cr([s({type:Boolean})],ur.prototype,"withManualResources",void 0),cr([d([])],ur.prototype,"messageContexts",void 0),cr([d(void 0)],ur.prototype,"session",void 0),cr([s({type:Object})],ur.prototype,"apiProvider",void 0),p("ft-app-context")(ur);class fr extends Event{constructor(){super(fr.eventName)}}fr.eventName="search-context-clear-all-filters";var hr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const dr=Symbol("registerInterval");class vr extends(function(t){var e;class i 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[dr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[dr]):this.dispatchEvent(new pr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dr,hr([a()],i.prototype,"stateManager",void 0),i}(
|
|
762
|
-
`;var yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const gr=Symbol("i18nProperties"),mr=Symbol("i18nUnsubs");function xr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?lr:ar}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[gr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[gr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[gr]&&new Set([...this[gr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[mr].has(t)||this[mr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[mr].forEach((t=>t())),this[mr].clear()}}return e=mr,yr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class wr extends(xr(Mt)){}class $r extends(xr(
|
|
761
|
+
`}updated(t){super.updated(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=>ar.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()))))}}ur.elementDefinitions={},ur.styles=er,cr([s()],ur.prototype,"baseUrl",void 0),cr([s()],ur.prototype,"apiIntegrationIdentifier",void 0),cr([s()],ur.prototype,"uiLocale",void 0),cr([d([])],ur.prototype,"availableUiLocales",void 0),cr([s({type:Boolean})],ur.prototype,"editorMode",void 0),cr([s({type:Boolean})],ur.prototype,"noCustom",void 0),cr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ur.prototype,"noCustomComponent",void 0),cr([s({type:Boolean})],ur.prototype,"withManualResources",void 0),cr([d([])],ur.prototype,"messageContexts",void 0),cr([d(void 0)],ur.prototype,"session",void 0),cr([s({type:Object})],ur.prototype,"apiProvider",void 0),p("ft-app-context")(ur);class fr extends Event{constructor(){super(fr.eventName)}}fr.eventName="search-context-clear-all-filters";var hr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const dr=Symbol("registerInterval");class vr extends(function(t){var e;class i 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[dr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[dr]):this.dispatchEvent(new pr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dr,hr([a()],i.prototype,"stateManager",void 0),i}(Wt)){}const br=w`
|
|
762
|
+
`;var yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const gr=Symbol("i18nProperties"),mr=Symbol("i18nUnsubs");function xr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?lr:ar}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[gr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[gr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[gr]&&new Set([...this[gr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[mr].has(t)||this[mr].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[mr].forEach((t=>t())),this[mr].clear()}}return e=mr,yr([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class wr extends(xr(Mt)){}class $r extends(xr(Wt)){}var Or=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Sr extends $r{constructor(){super(),this.editorMode=!1,this.addStore(ir)}render(){return this.key&&this.context?tt`
|
|
763
763
|
<span class="ft-i18n">
|
|
764
764
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
765
765
|
</span>
|
|
766
|
-
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Sr.elementDefinitions={},Sr.styles=br,Or([
|
|
766
|
+
`:this.editorMode?"Select a context and a label key.":it}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Sr.elementDefinitions={},Sr.styles=br,Or([Ai()],Sr.prototype,"editorMode",void 0),Or([s()],Sr.prototype,"context",void 0),Or([s()],Sr.prototype,"key",void 0),Or([d([])],Sr.prototype,"args",void 0),Or([s()],Sr.prototype,"defaultMessage",void 0);class Er{static build(t){return new Er(t)}static fromGwt(t){return new Er(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>ar.resolveMessage(this.name,e,...t)})}}p("ft-i18n")(Sr);const kr=Er.build("designedSearchInput"),jr=w`
|
|
767
767
|
* {
|
|
768
768
|
box-sizing: border-box;
|
|
769
769
|
}
|
|
@@ -810,7 +810,7 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
810
810
|
* @license
|
|
811
811
|
* Copyright 2020 Google LLC
|
|
812
812
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
813
|
-
*/,{I:Cr}=bt,Nr=()=>document.createComment(""),Rr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Nr(),r),n=o.insertBefore(Nr(),r);i=new Cr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Mr=(t,e,i=t)=>(t._$AI(e,i),t),Ar={},Ur=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Pr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Fr=
|
|
813
|
+
*/,{I:Cr}=bt,Nr=()=>document.createComment(""),Rr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Nr(),r),n=o.insertBefore(Nr(),r);i=new Cr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Mr=(t,e,i=t)=>(t._$AI(e,i),t),Ar={},Ur=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Pr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Fr=zi(class extends _i{constructor(t){if(super(t),t.type!==Li)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let u,f,h=0,p=r.length-1,d=0,v=s.length-1;for(;h<=p&&d<=v;)if(null===r[h])h++;else if(null===r[p])p--;else if(l[h]===a[d])c[d]=Mr(r[h],s[d]),h++,d++;else if(l[p]===a[v])c[v]=Mr(r[p],s[v]),p--,v--;else if(l[h]===a[v])c[v]=Mr(r[h],s[v]),Rr(t,c[v+1],r[h]),h++,v--;else if(l[p]===a[d])c[d]=Mr(r[p],s[d]),Rr(t,r[h],r[p]),p--,d++;else if(void 0===u&&(u=Pr(a,d,v),f=Pr(l,h,p)),u.has(l[h]))if(u.has(l[p])){const e=f.get(a[d]),i=void 0!==e?r[e]:null;if(null===i){const e=Rr(t,r[h]);Mr(e,s[d]),c[d]=e}else c[d]=Mr(i,s[d]),Rr(t,r[h],i),r[e]=null;d++}else Ur(r[p]),p--;else Ur(r[h]),h++;for(;d<=v;){const e=Rr(t,c[v+1]);Mr(e,s[d]),c[d++]=e}for(;h<=p;){const t=r[h++];null!==t&&Ur(t)}return this.ht=a,((t,e=Ar)=>{t._$AH=e})(t,c),et}});var Ir=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Tr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Lr=class extends vr{render(){return tt`
|
|
814
814
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
815
815
|
part="container"
|
|
816
816
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
@@ -826,10 +826,10 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
826
826
|
</a>
|
|
827
827
|
`))}
|
|
828
828
|
</div>
|
|
829
|
-
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new
|
|
829
|
+
`}onSuggestKeyDown(t){var e,i,n,o,r,s;switch(t.key){case"ArrowUp":null===(n=null!==(i=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.getLastSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(s=null!==(r=null===(o=this.getFocusedSuggestionElement())||void 0===o?void 0:o.nextElementSibling)&&void 0!==r?r:this.getFirstSuggestionElement())||void 0===s||s.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Tr(e))}getIcon(t){const e="DOCUMENT"===t.type?zo.file_format:zo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Uo.BOOK:Uo.ARTICLE;break;case"DOCUMENT":i=function(t,e){var i,n,o,r;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[s,a]=((null!==(i=Io.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(r=null!==(o=null!==(n=Fo.get(a))&&void 0!==n?n:Fo.get(e))&&void 0!==o?o:Fo.get(s))&&void 0!==r?r:Po.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Uo.TOPICS}return tt`
|
|
830
830
|
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
831
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};
|
|
832
|
-
<div class="${
|
|
831
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Lr.elementDefinitions={"ft-ripple":Qi,"ft-typography":Oo,"ft-icon":Bo},Lr.styles=[Ut,jr],Ir([Ai()],Lr.prototype,"suggestResults",void 0),Lr=Ir([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){customElements.define(t,e)}}})(t,e))("ft-search-input-suggestion")],Lr);var zr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _r extends(xr(vr)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(kr)}render(){var t,e;let i={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return tt`
|
|
832
|
+
<div class="${Bi(i)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
833
833
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
834
834
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
835
835
|
<input class="ft-search-input--input ft-typography--body2"
|
|
@@ -865,4 +865,4 @@ class Mo extends Bi{constructor(t){if(super(t),this.et=it,t.type!==Ti)throw Erro
|
|
|
865
865
|
></ft-button>
|
|
866
866
|
</div>
|
|
867
867
|
</div>
|
|
868
|
-
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}
|
|
868
|
+
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var e,i;"Enter"===t.key?(null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(i=this.stateManager)||void 0===i||i.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}_r.elementDefinitions={"ft-search-input-suggestion":Lr,"ft-button":Qo},_r.styles=[bo,tr],zr([Ai()],_r.prototype,"request",void 0),zr([Ai()],_r.prototype,"liveQuery",void 0),zr([Ai()],_r.prototype,"suggestResults",void 0),zr([a()],_r.prototype,"forceCloseSuggestion",void 0),zr([c(".ft-search-input--input")],_r.prototype,"input",void 0),zr([c("ft-search-input-suggestion")],_r.prototype,"suggestion",void 0),p("ft-search-input")(_r),t.FtSearchInput=_r,t.FtSearchInputCssVariables=Yo,t.styles=tr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-input",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Search bar input for integrated search component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.0.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.0.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.0.
|
|
25
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
26
|
-
"@fluid-topics/ft-search-context": "1.0.
|
|
27
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "1.0.49",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.0.49",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.0.49",
|
|
25
|
+
"@fluid-topics/ft-ripple": "1.0.49",
|
|
26
|
+
"@fluid-topics/ft-search-context": "1.0.49",
|
|
27
|
+
"@fluid-topics/ft-typography": "1.0.49",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "1.0.49",
|
|
29
29
|
"lit": "2.7.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@fluid-topics/public-api": "1.0.39"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "77eac237aeec17a50f5bcc09890746d9a9f097f0"
|
|
35
35
|
}
|