@fluid-topics/ft-search-bar 1.2.8 → 1.2.9
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-bar.light.js +29 -29
- package/build/ft-search-bar.min.js +20 -20
- package/package.json +15 -15
|
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
47
47
|
input::-webkit-search-results-decoration {
|
|
48
48
|
display: none;
|
|
49
49
|
}
|
|
50
|
-
`;var tc={};var ka={};se(ka,{ParametrizedLabelResolver:()=>Kt});var Kt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var is={};se(is,{FtCommandQueue:()=>zo,FtLitElementRedux:()=>Vr,FtReduxStore:()=>wr,clearAllStores:()=>Mu,isFtReduxStore:()=>Or,redux:()=>rc,reduxEventListener:()=>ru,reduxReactive:()=>tu});var tu=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},rc=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Eo,attribute:!1,...e};y(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},ru=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)};var zo=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}};function Or(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var oc,ic,nc,Ni=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),Cr=Symbol("internalStores"),Vr=class extends M{constructor(){super(...arguments),this[oc]=new Map,this[ic]=new Map,this[nc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Cr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Cr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Cr].get(e)}addStore(e,t){var i;t=(i=t??(Or(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Cr].delete(t)}setupStore(e,t){this[Cr].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Cr].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let i=this.constructor.getPropertyOptions(t);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Zt].has(e.store):this[Zt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var i;this[Zt].set(e,t.subscribe(()=>this.updateFromStores())),Or(t)&&t.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.addEventListener(n.eventName,s),this[Ni].push(()=>t.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Zt].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Ni].forEach(e=>e()),this[Ni]=[]}unsubscribeFromStore(e){this[Zt].has(e)&&this[Zt].get(e)(),this[Zt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=Zt,ic=Cr,nc=Ni;Vr.reduxProperties=new Map;Vr.reduxReactiveProperties=new Set;Vr.reduxEventListeners=new Map;function rt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(r){return!!r&&!!r[fe]}function lt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===du}(r)||Array.isArray(r)||!!r[fc]||!!(!((e=r.constructor)===null||e===void 0)&&e[fc])||za(r)||Wa(r))}function Er(r,e,t){t===void 0&&(t=!1),Kr(r)===0?(t?Object.keys:Gr)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function Kr(r){var e=r[fe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:za(r)?2:Wa(r)?3:0}function jr(r,e){return Kr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function ou(r,e){return Kr(r)===2?r.get(e):r[e]}function uc(r,e,t){var i=Kr(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function hc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function za(r){return lu&&r instanceof Map}function Wa(r){return cu&&r instanceof Set}function qt(r){return r.o||r.t}function Ha(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=gc(r);delete e[fe];for(var t=Gr(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Va(r,e){return e===void 0&&(e=!1),ja(r)||Ft(r)||!lt(r)||(Kr(r)>1&&(r.set=r.add=r.clear=r.delete=iu),Object.freeze(r),e&&Er(r,function(t,i){return Va(i,!0)},!0)),r}function iu(){rt(2)}function ja(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function vt(r){var e=Ua[r];return e||rt(18,r),e}function nu(r,e){Ua[r]||(Ua[r]=e)}function Fa(){return Ho}function Pa(r,e){e&&(vt("Patches"),r.u=[],r.s=[],r.v=e)}function _i(r){Da(r),r.p.forEach(au),r.p=null}function Da(r){r===Ho&&(Ho=r.l)}function ac(r){return Ho={p:[],l:Ho,h:r,m:!0,_:0}}function au(r){var e=r[fe];e.i===0||e.i===1?e.j():e.g=!0}function Ia(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||vt("ES5").S(e,r,i),i?(t[fe].P&&(_i(e),rt(4)),lt(r)&&(r=ki(e,r),e.l||Pi(e,r)),e.u&&vt("Patches").M(t[fe].t,r,e.u,e.s)):r=ki(e,t,[]),_i(e),e.u&&e.v(e.u,e.s),r!==mc?r:void 0}function ki(r,e,t){if(ja(e))return e;var i=e[fe];if(!i)return Er(e,function(l,d){return sc(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return Pi(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ha(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Er(a,function(l,d){return sc(r,i,n,l,d,t,s)}),Pi(r,n,!1),t&&r.u&&vt("Patches").N(i,t,r.u,r.s)}return i.o}function sc(r,e,t,i,n,a,s){if(Ft(n)){var l=ki(r,n,a&&e&&e.i!==3&&!jr(e.R,i)?a.concat(i):void 0);if(uc(t,i,l),!Ft(l))return;r.m=!1}else s&&t.add(n);if(lt(n)&&!ja(n)){if(!r.h.D&&r._<1)return;ki(r,n),e&&e.A.l||Pi(r,n)}}function Pi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Va(e,t)}function Ta(r,e){var t=r[fe];return(t?qt(t):r)[e]}function lc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Yt(r){r.P||(r.P=!0,r.l&&Yt(r.l))}function Ba(r){r.o||(r.o=Ha(r.t))}function Ma(r,e,t){var i=za(e)?vt("MapSet").F(e,t):Wa(e)?vt("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Fa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Vo;s&&(d=[l],p=Wo);var h=Proxy.revocable(d,p),u=h.revoke,g=h.proxy;return l.k=g,l.j=u,g}(e,t):vt("ES5").J(e,t);return(t?t.A:Fa()).p.push(i),i}function su(r){return Ft(r)||rt(22,r),function e(t){if(!lt(t))return t;var i,n=t[fe],a=Kr(t);if(n){if(!n.P&&(n.i<4||!vt("ES5").K(n)))return n.t;n.I=!0,i=cc(t,a),n.I=!1}else i=cc(t,a);return Er(i,function(s,l){n&&ou(n.t,s)===l||uc(i,s,e(l))}),a===3?new Set(i):i}(r)}function cc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Ha(r)}function yc(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[fe];return Vo.get(p,s)},set:function(p){var h=this[fe];Vo.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][fe];if(!d.P)switch(d.i){case 5:i(d)&&Yt(d);break;case 4:t(d)&&Yt(d)}}}function t(s){for(var l=s.t,d=s.k,p=Gr(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==fe){var g=l[u];if(g===void 0&&!jr(l,u))return!0;var x=d[u],S=x&&x[fe];if(S?S.t!==g:!hc(x,g))return!0}}var E=!!l[fe];return p.length!==Gr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&rt(3,JSON.stringify(qt(s)))}var a={};nu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,g){if(u){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,r(S,!0));return x}var E=gc(g);delete E[fe];for(var k=Gr(E),P=0;P<k.length;P++){var I=k[P];E[I]=r(I,u||!!E[I].enumerable)}return Object.create(Object.getPrototypeOf(g),E)}(d,s),h={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,fe,{value:h,writable:!0}),p},S:function(s,l,d){d?Ft(l)&&l[fe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[fe];if(u){var g=u.t,x=u.k,S=u.R,E=u.i;if(E===4)Er(x,function(C){C!==fe&&(g[C]!==void 0||jr(g,C)?S[C]||p(x[C]):(S[C]=!0,Yt(u)))}),Er(g,function(C){x[C]!==void 0||jr(x,C)||(S[C]=!1,Yt(u))});else if(E===5){if(i(u)&&(Yt(u),S.length=!0),x.length<g.length)for(var k=x.length;k<g.length;k++)S[k]=!1;else for(var P=g.length;P<x.length;P++)S[P]=!0;for(var I=Math.min(x.length,g.length),A=0;A<I;A++)x.hasOwnProperty(A)||(S[A]=!0),S[A]===void 0&&p(x[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var dc,Ho,Ga=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lu=typeof Map<"u",cu=typeof Set<"u",pc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=Ga?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),fc=Ga?Symbol.for("immer-draftable"):"__$immer_draftable",fe=Ga?Symbol.for("immer-state"):"__$immer_state";var du=""+Object.prototype.constructor,Gr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(r){var e={};return Gr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Ua={},Vo={get:function(r,e){if(e===fe)return r;var t=qt(r);if(!jr(t,e))return function(n,a,s){var l,d=lc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!lt(i)?i:i===Ta(r.t,e)?(Ba(r),r.o[e]=Ma(r.A.h,i,r)):i},has:function(r,e){return e in qt(r)},ownKeys:function(r){return Reflect.ownKeys(qt(r))},set:function(r,e,t){var i=lc(qt(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ta(qt(r),e),a=n?.[fe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(hc(t,n)&&(t!==void 0||jr(r.t,e)))return!0;Ba(r),Yt(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ta(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ba(r),Yt(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=qt(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){rt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){rt(12)}},Wo={};Er(Vo,function(r,e){Wo[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wo.deleteProperty=function(r,e){return Wo.set.call(this,r,e,void 0)},Wo.set=function(r,e,t){return Vo.set.call(this,r[0],e,t,r[0])};var pu=function(){function r(t){var i=this;this.O=pc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var k=this;E===void 0&&(E=l);for(var P=arguments.length,I=Array(P>1?P-1:0),A=1;A<P;A++)I[A-1]=arguments[A];return d.produce(E,function(C){var R;return(R=a).call.apply(R,[k,C].concat(I))})}}var p;if(typeof a!="function"&&rt(6),s!==void 0&&typeof s!="function"&&rt(7),lt(n)){var h=ac(i),u=Ma(i,n,void 0),g=!0;try{p=a(u),g=!1}finally{g?_i(h):Da(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Pa(h,s),Ia(E,h)},function(E){throw _i(h),E}):(Pa(h,s),Ia(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===mc&&(p=void 0),i.D&&Va(p,!0),s){var x=[],S=[];vt("Patches").M(n,p,x,S),s(x,S)}return p}rt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),g=1;g<h;g++)u[g-1]=arguments[g];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(u))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){lt(t)||rt(8),Ft(t)&&(t=su(t));var i=ac(this),n=Ma(this,t,void 0);return n[fe].C=!0,Da(i),n},e.finishDraft=function(t,i){var n=t&&t[fe],a=n.A;return Pa(a,i),Ia(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!pc&&rt(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=vt("Patches").$;return Ft(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Xe=new pu,fu=Xe.produce,mv=Xe.produceWithPatches.bind(Xe),gv=Xe.setAutoFreeze.bind(Xe),bv=Xe.setUseProxies.bind(Xe),vv=Xe.applyPatches.bind(Xe),xv=Xe.createDraft.bind(Xe),Sv=Xe.finishDraft.bind(Xe),Ii=fu;function Xt(r){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(r)}function Ka(r,e){if(Xt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Xt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Za(r){var e=Ka(r,"string");return Xt(e)==="symbol"?e:String(e)}function qa(r,e,t){return e=Za(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function bc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Ti(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bc(Object(t),!0).forEach(function(i){qa(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):bc(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function Ie(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var vc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bi={INIT:"@@redux/INIT"+Ya(),REPLACE:"@@redux/REPLACE"+Ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ya()}};function uu(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Xa(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ie(1));return t(Xa)(r,e)}if(typeof r!="function")throw new Error(Ie(2));var n=r,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Ie(3));return a}function u(E){if(typeof E!="function")throw new Error(Ie(4));if(d)throw new Error(Ie(5));var k=!0;return p(),l.push(E),function(){if(k){if(d)throw new Error(Ie(6));k=!1,p();var I=l.indexOf(E);l.splice(I,1),s=null}}}function g(E){if(!uu(E))throw new Error(Ie(7));if(typeof E.type>"u")throw new Error(Ie(8));if(d)throw new Error(Ie(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var k=s=l,P=0;P<k.length;P++){var I=k[P];I()}return E}function x(E){if(typeof E!="function")throw new Error(Ie(10));n=E,g({type:Bi.REPLACE})}function S(){var E,k=u;return E={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Ie(11));function A(){I.next&&I.next(h())}A();var C=k(A);return{unsubscribe:C}}},E[vc]=function(){return this},E}return g({type:Bi.INIT}),i={dispatch:g,subscribe:u,getState:h,replaceReducer:x},i[vc]=S,i}function hu(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Bi.INIT});if(typeof i>"u")throw new Error(Ie(12));if(typeof t(void 0,{type:Bi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function xc(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{hu(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var g=!1,x={},S=0;S<a.length;S++){var E=a[S],k=t[E],P=p[E],I=k(P,h);if(typeof I>"u"){var A=h&&h.type;throw new Error(Ie(14))}x[E]=I,g=g||I!==P}return g=g||a.length!==Object.keys(p).length,g?x:p}}function Zr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Sc(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Ie(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Zr.apply(void 0,l)(n.dispatch),Ti(Ti({},n),{},{dispatch:a})}}}function Oc(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Cc=Oc();Cc.withExtraArgument=Oc;var Ja=Cc;var $c=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),yu=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qr=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},mu=Object.defineProperty,gu=Object.defineProperties,bu=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,wc=function(r,e,t){return e in r?mu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Jt=function(r,e){for(var t in e||(e={}))vu.call(e,t)&&wc(r,t,e[t]);if(Ec)for(var i=0,n=Ec(e);i<n.length;i++){var t=n[i];xu.call(e,t)&&wc(r,t,e[t])}return r},Qa=function(r,e){return gu(r,bu(e))},Su=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(p){n(p)}},s=function(d){try{l(t.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})};var Ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zr:Zr.apply(null,arguments)},Mv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Cu(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Eu=function(r){$c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,qr([void 0],t[0].concat(this)))):new(e.bind.apply(e,qr([void 0],t.concat(this))))},e}(Array),wu=function(r){$c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,qr([void 0],t[0].concat(this)))):new(e.bind.apply(e,qr([void 0],t.concat(this))))},e}(Array);function rs(r){return lt(r)?Ii(r,function(){}):r}function Au(r){return typeof r=="boolean"}function Ru(){return function(e){return $u(e)}}function $u(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Eu;if(t&&(Au(t)?l.push(Ja):l.push(Ja.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var p}return l}var es=!0;function Lc(r){var e=Ru(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,u=t.enhancers,g=u===void 0?void 0:u,x;if(typeof n=="function")x=n;else if(Cu(n))x=xc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!es&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!es&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Sc.apply(void 0,S),k=Zr;d&&(k=Ou(Jt({trace:!es},typeof d=="object"&&d)));var P=new wu(E),I=P;Array.isArray(g)?I=qr([E],g):typeof g=="function"&&(I=g(P));var A=k.apply(void 0,I);return Xa(x,h,A)}function Qt(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Jt(Jt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function Nc(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function Lu(r){return typeof r=="function"}function Nu(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?Nc(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(Lu(r))d=function(){return rs(r())};else{var p=rs(r);d=function(){return p}}function h(u,g){u===void 0&&(u=d());var x=qr([a[g.type]],s.filter(function(S){var E=S.matcher;return E(g)}).map(function(S){var E=S.reducer;return E}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,E){if(E)if(Ft(S)){var k=S,P=E(k,g);return P===void 0?S:P}else{if(lt(S))return Ii(S,function(I){return E(I,g)});var P=E(S,g);if(P===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return S},u)}return h.getInitialState=d,h}function _u(r,e){return r+"/"+e}function _c(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:rs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var u=i[h],g=_u(e,h),x,S;"reducer"in u?(x=u.reducer,S=u.prepare):x=u,a[h]=x,s[g]=x,l[h]=S?Qt(g,S):Qt(g)});function d(){var h=typeof r.extraReducers=="function"?Nc(r.extraReducers):[r.extraReducers],u=h[0],g=u===void 0?{}:u,x=h[1],S=x===void 0?[]:x,E=h[2],k=E===void 0?void 0:E,P=Jt(Jt({},g),s);return Nu(t,function(I){for(var A in P)I.addCase(A,P[A]);for(var C=0,R=S;C<R.length;C++){var B=R[C];I.addMatcher(B.matcher,B.reducer)}k&&I.addDefaultCase(k)})}var p;return{name:e,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var ku="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pu=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=ku[Math.random()*64|0];return e},Iu=["name","message","stack","code"],ts=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ac=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Tu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=Iu;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Hv=function(){function r(e,t,i){var n=Qt(e+"/fulfilled",function(h,u,g,x){return{payload:h,meta:Qa(Jt({},x||{}),{arg:g,requestId:u,requestStatus:"fulfilled"})}}),a=Qt(e+"/pending",function(h,u,g){return{payload:void 0,meta:Qa(Jt({},g||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Qt(e+"/rejected",function(h,u,g,x,S){return{payload:x,error:(i&&i.serializeError||Tu)(h||"Rejected"),meta:Qa(Jt({},S||{}),{arg:g,requestId:u,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(u,g,x){var S=i?.idGenerator?i.idGenerator(h):Pu(),E=new d,k,P=!1;function I(C){k=C,E.abort()}var A=function(){return Su(this,null,function(){var C,R,B,j,oe,ee,U;return yu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),j=(C=i?.condition)==null?void 0:C.call(i,h,{getState:g,extra:x}),Fu(j)?[4,j]:[3,2];case 1:j=m.sent(),m.label=2;case 2:if(j===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,oe=new Promise(function(O,F){return E.signal.addEventListener("abort",function(){return F({name:"AbortError",message:k||"Aborted"})})}),u(a(S,h,(R=i?.getPendingMeta)==null?void 0:R.call(i,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:u,getState:g,extra:x,requestId:S,signal:E.signal,abort:I,rejectWithValue:function(O,F){return new ts(O,F)},fulfillWithValue:function(O,F){return new Ac(O,F)}})).then(function(O){if(O instanceof ts)throw O;return O instanceof Ac?n(O.payload,S,h,O.meta):n(O,S,h)})])];case 3:return B=m.sent(),[3,5];case 4:return ee=m.sent(),B=ee instanceof ts?s(null,S,h,ee.payload,ee.meta):s(ee,S,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(B)&&B.meta.condition,U||u(B),[2,B]}})})}();return Object.assign(A,{abort:I,requestId:S,arg:h,unwrap:function(){return A.then(Bu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function Bu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Fu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var kc="listener",Pc="completed",Ic="cancelled",Vv="task-"+Ic,jv="task-"+Pc,Gv=kc+"-"+Ic,Kv=kc+"-"+Pc;var os="listenerMiddleware";var Zv=Qt(os+"/add"),qv=Qt(os+"/removeAll"),Yv=Qt(os+"/remove");var Rc,Xv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Rc||(Rc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Du=function(r){return function(e){setTimeout(e,r)}},Jv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Du(10);yc();window.ftReduxStores||(window.ftReduxStores={});var wr=class r extends gr{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Or(a))return a;if(n==null)return;let s=_c({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Lc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new zo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Mu(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Or(e)&&e.clear()}var ss={};se(ss,{scrollHelper:()=>Uu});var ns,Fi=new Map,as=class{lock(e,t){if(t){let i=Fi.get(t);if(i==null||i===e)return Fi.set(t,e),t}}release(e,t){t&&Fi.get(t)===e&&Fi.delete(t)}findFirstScrollableParent(e){let t,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",i),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",i),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let i=0;for(;t&&t.offsetParent!==e.offsetParent;)i+=t.offsetTop,t=t.offsetParent;return i+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=wo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(ns=window.FluidTopicsScrollHelper)!==null&&ns!==void 0?ns:new as;var Uu=window.FluidTopicsScrollHelper;var ls={};se(ls,{shadowQuerySelector:()=>zu,shadowQuerySelectorAll:()=>Wu});function zu(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Wu(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var cs={};se(cs,{SearchPlaceConverter:()=>Ar,SearchPlaceQueryParams:()=>le,isSearchPlaceQueryParams:()=>id,serializeRequest:()=>ju});var Hu=gp(Bc(),1);var Fc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Fc||(Fc={}));var Dc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Dc||(Dc={}));var Mc;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Mc||(Mc={}));var Uc;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Uc||(Uc={}));var zc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(zc||(zc={}));var Wc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Wc||(Wc={}));var Hc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Hc||(Hc={}));var Vc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Vc||(Vc={}));var jc;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(jc||(jc={}));var Gc;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gc||(Gc={}));var Kc;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Kc||(Kc={}));var Zc;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Zc||(Zc={}));var ed=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var qc;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(qc||(qc={}));var Yc;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Yc||(Yc={}));var Xc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Xc||(Xc={}));var jo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(jo||(jo={}));var td=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var Jc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Jc||(Jc={}));var Qc;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Qc||(Qc={}));var Le;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(Le||(Le={}));var rd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(rd||(rd={}));var mx={[Le.PERSONAL_BOOK_SHARE_USER]:[Le.PERSONAL_BOOK_USER],[Le.HTML_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.PDF_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.KHUB_ADMIN]:[Le.CONTENT_PUBLISHER],[Le.ADMIN]:[Le.KHUB_ADMIN,Le.USERS_ADMIN,Le.PORTAL_ADMIN],[Le.DEVELOPER]:[Le.BETA_USER,Le.DEBUG_USER]};function Vu(r){return`"${r}"`}function od(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function ju(r,e){return new Ar(r).serialize(e)}var le;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(le||(le={}));var Gu=new Set(Object.values(le));function id(r){return Gu.has(r)}var Ar=class{constructor(e,t={},i=20,n=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=t,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=this.toURLSearchParams(e).toString(),n=t==null||t.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return a.search=i,a.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,p,h,u,g,x,S;let E=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&E.append(le.LOCALE,e.contentLocale):E.append(le.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(le.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&E.append(le.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(le.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&E.append(le.SORT,"last_update");let k=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(k.length>0){let C=k.map(R=>{var B,j;let oe=((j=(B=R.valueFilter)===null||B===void 0?void 0:B.values)!==null&&j!==void 0?j:[]).map(ee=>this.escapeFilters(ee)).map(ee=>encodeURIComponent(Vu(od(ee)))).join("_");return`${R.key}~${oe}`}).join("*");E.append(le.VALUE_FILTERS,C)}let P=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let C=P.map(R=>{var B;return`${R.key}~${(B=R.dateFilter)===null||B===void 0?void 0:B.type.toLowerCase()}`}).join("*");E.append(le.DATE_FILTERS,C)}let I=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&h!==void 0?h:[];if(I.length>0){let C=I.map(R=>{var B,j;return`${R.key}~${(B=R.rangeFilter)===null||B===void 0?void 0:B.from}_${(j=R.rangeFilter)===null||j===void 0?void 0:j.to}`}).join("*");E.append(le.RANGE_FILTERS,C)}let A=(u=e.otherQueryParams)!==null&&u!==void 0?u:{};for(let C in A)E.append(C,A[C]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(le.PER_PAGE,String(e.paging.perPage)),E}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l,d,p;let h=e.get(le.LOCALE)==="all"?void 0:e.get(le.LOCALE),u=((t=e.get(le.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=((i=e.get(le.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),x=(n=e.get(le.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=e.get(le.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let k of e.keys())id(k)||(E[k]=e.get(k));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(le.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:ed(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:wo(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:E}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(le.FILTERS)&&(d=this.parseValueFilters((t=e.get(le.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(le.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(le.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(le.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(le.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(le.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(od).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:jo[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(td(e))return[{key:"ft:lastEdition",dateFilter:{type:jo[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ps={};se(ps,{toFtFormComponent:()=>ds});var Ui=Symbol("elementInternals");function ds(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Ui].form}constructor(...n){super(n),this[Ui]=this.attachInternals(),this[Ui].role=e}setFormValue(n){this[Ui].setFormValue(n)}}return t}var fs={};se(fs,{DateFormatter:()=>Xr});var Xr=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(i,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var us,hs,ys,ms,Rr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ys=(hs=(us=window.safari)===null||us===void 0?void 0:us.pushNotification)===null||hs===void 0?void 0:hs.toString())!==null&&ys!==void 0?ys:"")==="[object SafariRemoteNotification]",gs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ms=window.ftGlobals)!==null&&ms!==void 0?ms:{lit:un,litDecorators:gn,litRepeat:bn,litClassMap:vn,litStyleMap:xn,litUnsafeHTML:On,wcUtils:{...Ln,...En,..._n,...fs,...kn,...In,...ca,...$n,...Ca,...la,...Aa,...wa,...Ql,...Pn,...La,..._a,...tc,...ka,...is,...Ea,...ss,...ls,...cs,...ps,isSafari:Rr,isTouchScreen:gs,setVariable:v}};var ot;(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(ot||(ot={}));var nd=L`
|
|
50
|
+
`;var tc={};var ka={};se(ka,{ParametrizedLabelResolver:()=>Kt});var Kt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var i,n;e=this.resolvePluralKey(e,t);let a=(n=(i=this.labels[e])!==null&&i!==void 0?i:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((i,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(i,s))),e}resolvePluralKey(e,t){for(let i of t)if(typeof i=="number"){let n=`${String(e)}[\\=${i}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let i=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return i(document.documentElement.lang)}catch{return i()}}};var is={};se(is,{FtCommandQueue:()=>zo,FtLitElementRedux:()=>Vr,FtReduxStore:()=>wr,clearAllStores:()=>Mu,isFtReduxStore:()=>Or,redux:()=>rc,reduxEventListener:()=>ru,reduxReactive:()=>tu});var tu=()=>(r,e)=>{var t;let i=r.constructor;i.reduxReactiveProperties=new Set(i.reduxReactiveProperties),(t=i.reduxReactiveProperties)===null||t===void 0||t.add(e)},rc=r=>{let e=r??{};return(t,i)=>{var n;let a={hasChanged:Eo,attribute:!1,...e};y(a)(t,i);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[i],store:e.store})}},ru=r=>(e,t)=>{let i=e.constructor;i.reduxEventListeners=new Map(i.reduxEventListeners),i.reduxEventListeners.set(t,r)};var zo=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(i=>i.type===e);return t&&(this.queue=this.queue.filter(i=>i!==t)),t}};function Or(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var oc,ic,nc,Ni=Symbol("internalReduxEventsUnsubscribers"),Zt=Symbol("internalStoresUnsubscribers"),Cr=Symbol("internalStores"),Vr=class extends M{constructor(){super(...arguments),this[oc]=new Map,this[ic]=new Map,this[nc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Cr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Cr].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Cr].get(e)}addStore(e,t){var i;t=(i=t??(Or(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Cr].delete(t)}setupStore(e,t){this[Cr].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Cr].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let i=this.constructor.getPropertyOptions(t);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Zt].has(e.store):this[Zt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var i;this[Zt].set(e,t.subscribe(()=>this.updateFromStores())),Or(t)&&t.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.addEventListener(n.eventName,s),this[Ni].push(()=>t.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Zt].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Ni].forEach(e=>e()),this[Ni]=[]}unsubscribeFromStore(e){this[Zt].has(e)&&this[Zt].get(e)(),this[Zt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=Zt,ic=Cr,nc=Ni;Vr.reduxProperties=new Map;Vr.reduxReactiveProperties=new Set;Vr.reduxEventListeners=new Map;function rt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ft(r){return!!r&&!!r[fe]}function lt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===du}(r)||Array.isArray(r)||!!r[fc]||!!(!((e=r.constructor)===null||e===void 0)&&e[fc])||za(r)||Wa(r))}function Er(r,e,t){t===void 0&&(t=!1),Kr(r)===0?(t?Object.keys:Gr)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function Kr(r){var e=r[fe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:za(r)?2:Wa(r)?3:0}function jr(r,e){return Kr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function ou(r,e){return Kr(r)===2?r.get(e):r[e]}function uc(r,e,t){var i=Kr(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function hc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function za(r){return lu&&r instanceof Map}function Wa(r){return cu&&r instanceof Set}function qt(r){return r.o||r.t}function Ha(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=gc(r);delete e[fe];for(var t=Gr(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Va(r,e){return e===void 0&&(e=!1),ja(r)||Ft(r)||!lt(r)||(Kr(r)>1&&(r.set=r.add=r.clear=r.delete=iu),Object.freeze(r),e&&Er(r,function(t,i){return Va(i,!0)},!0)),r}function iu(){rt(2)}function ja(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function vt(r){var e=Ua[r];return e||rt(18,r),e}function nu(r,e){Ua[r]||(Ua[r]=e)}function Fa(){return Ho}function Pa(r,e){e&&(vt("Patches"),r.u=[],r.s=[],r.v=e)}function _i(r){Da(r),r.p.forEach(au),r.p=null}function Da(r){r===Ho&&(Ho=r.l)}function ac(r){return Ho={p:[],l:Ho,h:r,m:!0,_:0}}function au(r){var e=r[fe];e.i===0||e.i===1?e.j():e.g=!0}function Ia(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.O||vt("ES5").S(e,r,i),i?(t[fe].P&&(_i(e),rt(4)),lt(r)&&(r=ki(e,r),e.l||Pi(e,r)),e.u&&vt("Patches").M(t[fe].t,r,e.u,e.s)):r=ki(e,t,[]),_i(e),e.u&&e.v(e.u,e.s),r!==mc?r:void 0}function ki(r,e,t){if(ja(e))return e;var i=e[fe];if(!i)return Er(e,function(l,d){return sc(r,i,e,l,d,t)},!0),e;if(i.A!==r)return e;if(!i.P)return Pi(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ha(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Er(a,function(l,d){return sc(r,i,n,l,d,t,s)}),Pi(r,n,!1),t&&r.u&&vt("Patches").N(i,t,r.u,r.s)}return i.o}function sc(r,e,t,i,n,a,s){if(Ft(n)){var l=ki(r,n,a&&e&&e.i!==3&&!jr(e.R,i)?a.concat(i):void 0);if(uc(t,i,l),!Ft(l))return;r.m=!1}else s&&t.add(n);if(lt(n)&&!ja(n)){if(!r.h.D&&r._<1)return;ki(r,n),e&&e.A.l||Pi(r,n)}}function Pi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Va(e,t)}function Ta(r,e){var t=r[fe];return(t?qt(t):r)[e]}function lc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Yt(r){r.P||(r.P=!0,r.l&&Yt(r.l))}function Ba(r){r.o||(r.o=Ha(r.t))}function Ma(r,e,t){var i=za(e)?vt("MapSet").F(e,t):Wa(e)?vt("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Fa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,p=Vo;s&&(d=[l],p=Wo);var h=Proxy.revocable(d,p),u=h.revoke,g=h.proxy;return l.k=g,l.j=u,g}(e,t):vt("ES5").J(e,t);return(t?t.A:Fa()).p.push(i),i}function su(r){return Ft(r)||rt(22,r),function e(t){if(!lt(t))return t;var i,n=t[fe],a=Kr(t);if(n){if(!n.P&&(n.i<4||!vt("ES5").K(n)))return n.t;n.I=!0,i=cc(t,a),n.I=!1}else i=cc(t,a);return Er(i,function(s,l){n&&ou(n.t,s)===l||uc(i,s,e(l))}),a===3?new Set(i):i}(r)}function cc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Ha(r)}function yc(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[fe];return Vo.get(p,s)},set:function(p){var h=this[fe];Vo.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][fe];if(!d.P)switch(d.i){case 5:i(d)&&Yt(d);break;case 4:t(d)&&Yt(d)}}}function t(s){for(var l=s.t,d=s.k,p=Gr(d),h=p.length-1;h>=0;h--){var u=p[h];if(u!==fe){var g=l[u];if(g===void 0&&!jr(l,u))return!0;var x=d[u],S=x&&x[fe];if(S?S.t!==g:!hc(x,g))return!0}}var E=!!l[fe];return p.length!==Gr(l).length+(E?0:1)}function i(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var p=0;p<l.length;p++)if(!l.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&rt(3,JSON.stringify(qt(s)))}var a={};nu("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(u,g){if(u){for(var x=Array(g.length),S=0;S<g.length;S++)Object.defineProperty(x,""+S,r(S,!0));return x}var E=gc(g);delete E[fe];for(var k=Gr(E),P=0;P<k.length;P++){var I=k[P];E[I]=r(I,u||!!E[I].enumerable)}return Object.create(Object.getPrototypeOf(g),E)}(d,s),h={i:d?5:4,A:l?l.A:Fa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,fe,{value:h,writable:!0}),p},S:function(s,l,d){d?Ft(l)&&l[fe].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var u=h[fe];if(u){var g=u.t,x=u.k,S=u.R,E=u.i;if(E===4)Er(x,function(C){C!==fe&&(g[C]!==void 0||jr(g,C)?S[C]||p(x[C]):(S[C]=!0,Yt(u)))}),Er(g,function(C){x[C]!==void 0||jr(x,C)||(S[C]=!1,Yt(u))});else if(E===5){if(i(u)&&(Yt(u),S.length=!0),x.length<g.length)for(var k=x.length;k<g.length;k++)S[k]=!1;else for(var P=g.length;P<x.length;P++)S[P]=!0;for(var I=Math.min(x.length,g.length),A=0;A<I;A++)x.hasOwnProperty(A)||(S[A]=!0),S[A]===void 0&&p(x[A])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):i(s)}})}var dc,Ho,Ga=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lu=typeof Map<"u",cu=typeof Set<"u",pc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=Ga?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),fc=Ga?Symbol.for("immer-draftable"):"__$immer_draftable",fe=Ga?Symbol.for("immer-state"):"__$immer_state";var du=""+Object.prototype.constructor,Gr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(r){var e={};return Gr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Ua={},Vo={get:function(r,e){if(e===fe)return r;var t=qt(r);if(!jr(t,e))return function(n,a,s){var l,d=lc(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!lt(i)?i:i===Ta(r.t,e)?(Ba(r),r.o[e]=Ma(r.A.h,i,r)):i},has:function(r,e){return e in qt(r)},ownKeys:function(r){return Reflect.ownKeys(qt(r))},set:function(r,e,t){var i=lc(qt(r),e);if(i?.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Ta(qt(r),e),a=n?.[fe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(hc(t,n)&&(t!==void 0||jr(r.t,e)))return!0;Ba(r),Yt(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ta(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ba(r),Yt(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=qt(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){rt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){rt(12)}},Wo={};Er(Vo,function(r,e){Wo[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Wo.deleteProperty=function(r,e){return Wo.set.call(this,r,e,void 0)},Wo.set=function(r,e,t){return Vo.set.call(this,r[0],e,t,r[0])};var pu=function(){function r(t){var i=this;this.O=pc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=i;return function(E){var k=this;E===void 0&&(E=l);for(var P=arguments.length,I=Array(P>1?P-1:0),A=1;A<P;A++)I[A-1]=arguments[A];return d.produce(E,function(C){var R;return(R=a).call.apply(R,[k,C].concat(I))})}}var p;if(typeof a!="function"&&rt(6),s!==void 0&&typeof s!="function"&&rt(7),lt(n)){var h=ac(i),u=Ma(i,n,void 0),g=!0;try{p=a(u),g=!1}finally{g?_i(h):Da(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(E){return Pa(h,s),Ia(E,h)},function(E){throw _i(h),E}):(Pa(h,s),Ia(p,h))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===mc&&(p=void 0),i.D&&Va(p,!0),s){var x=[],S=[];vt("Patches").M(n,p,x,S),s(x,S)}return p}rt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var h=arguments.length,u=Array(h>1?h-1:0),g=1;g<h;g++)u[g-1]=arguments[g];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(u))})};var s,l,d=i.produce(n,a,function(p,h){s=p,l=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){lt(t)||rt(8),Ft(t)&&(t=su(t));var i=ac(this),n=Ma(this,t,void 0);return n[fe].C=!0,Da(i),n},e.finishDraft=function(t,i){var n=t&&t[fe],a=n.A;return Pa(a,i),Ia(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!pc&&rt(20),this.O=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var s=vt("Patches").$;return Ft(t)?s(t,i):this.produce(t,function(l){return s(l,i)})},r}(),Xe=new pu,fu=Xe.produce,mv=Xe.produceWithPatches.bind(Xe),gv=Xe.setAutoFreeze.bind(Xe),bv=Xe.setUseProxies.bind(Xe),vv=Xe.applyPatches.bind(Xe),xv=Xe.createDraft.bind(Xe),Sv=Xe.finishDraft.bind(Xe),Ii=fu;function Xt(r){"@babel/helpers - typeof";return Xt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(r)}function Ka(r,e){if(Xt(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(Xt(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Za(r){var e=Ka(r,"string");return Xt(e)==="symbol"?e:String(e)}function qa(r,e,t){return e=Za(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function bc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,i)}return t}function Ti(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?bc(Object(t),!0).forEach(function(i){qa(r,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):bc(Object(t)).forEach(function(i){Object.defineProperty(r,i,Object.getOwnPropertyDescriptor(t,i))})}return r}function Te(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var vc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ya=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bi={INIT:"@@redux/INIT"+Ya(),REPLACE:"@@redux/REPLACE"+Ya(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ya()}};function uu(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Xa(r,e,t){var i;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Te(1));return t(Xa)(r,e)}if(typeof r!="function")throw new Error(Te(2));var n=r,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(Te(3));return a}function u(E){if(typeof E!="function")throw new Error(Te(4));if(d)throw new Error(Te(5));var k=!0;return p(),l.push(E),function(){if(k){if(d)throw new Error(Te(6));k=!1,p();var I=l.indexOf(E);l.splice(I,1),s=null}}}function g(E){if(!uu(E))throw new Error(Te(7));if(typeof E.type>"u")throw new Error(Te(8));if(d)throw new Error(Te(9));try{d=!0,a=n(a,E)}finally{d=!1}for(var k=s=l,P=0;P<k.length;P++){var I=k[P];I()}return E}function x(E){if(typeof E!="function")throw new Error(Te(10));n=E,g({type:Bi.REPLACE})}function S(){var E,k=u;return E={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Te(11));function A(){I.next&&I.next(h())}A();var C=k(A);return{unsubscribe:C}}},E[vc]=function(){return this},E}return g({type:Bi.INIT}),i={dispatch:g,subscribe:u,getState:h,replaceReducer:x},i[vc]=S,i}function hu(r){Object.keys(r).forEach(function(e){var t=r[e],i=t(void 0,{type:Bi.INIT});if(typeof i>"u")throw new Error(Te(12));if(typeof t(void 0,{type:Bi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function xc(r){for(var e=Object.keys(r),t={},i=0;i<e.length;i++){var n=e[i];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{hu(t)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var u;for(var g=!1,x={},S=0;S<a.length;S++){var E=a[S],k=t[E],P=p[E],I=k(P,h);if(typeof I>"u"){var A=h&&h.type;throw new Error(Te(14))}x[E]=I,g=g||I!==P}return g=g||a.length!==Object.keys(p).length,g?x:p}}function Zr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Sc(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Te(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Zr.apply(void 0,l)(n.dispatch),Ti(Ti({},n),{},{dispatch:a})}}}function Oc(r){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var Cc=Oc();Cc.withExtraArgument=Oc;var Ja=Cc;var $c=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),yu=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(p){return function(h){return d([p,h])}}function d(p){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(h){p=[6,h],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qr=function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r},mu=Object.defineProperty,gu=Object.defineProperties,bu=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,vu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,wc=function(r,e,t){return e in r?mu(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Jt=function(r,e){for(var t in e||(e={}))vu.call(e,t)&&wc(r,t,e[t]);if(Ec)for(var i=0,n=Ec(e);i<n.length;i++){var t=n[i];xu.call(e,t)&&wc(r,t,e[t])}return r},Qa=function(r,e){return gu(r,bu(e))},Su=function(r,e,t){return new Promise(function(i,n){var a=function(d){try{l(t.next(d))}catch(p){n(p)}},s=function(d){try{l(t.throw(d))}catch(p){n(p)}},l=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})};var Ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Zr:Zr.apply(null,arguments)},Mv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Cu(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var Eu=function(r){$c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,qr([void 0],t[0].concat(this)))):new(e.bind.apply(e,qr([void 0],t.concat(this))))},e}(Array),wu=function(r){$c(e,r);function e(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,qr([void 0],t[0].concat(this)))):new(e.bind.apply(e,qr([void 0],t.concat(this))))},e}(Array);function rs(r){return lt(r)?Ii(r,function(){}):r}function Au(r){return typeof r=="boolean"}function Ru(){return function(e){return $u(e)}}function $u(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,i=r.immutableCheck,n=i===void 0?!0:i,a=r.serializableCheck,s=a===void 0?!0:a,l=new Eu;if(t&&(Au(t)?l.push(Ja):l.push(Ja.withExtraArgument(t.extraArgument))),0){if(n)var d;if(s)var p}return l}var es=!0;function Lc(r){var e=Ru(),t=r||{},i=t.reducer,n=i===void 0?void 0:i,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,p=t.preloadedState,h=p===void 0?void 0:p,u=t.enhancers,g=u===void 0?void 0:u,x;if(typeof n=="function")x=n;else if(Cu(n))x=xc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var S=s;if(typeof S=="function"&&(S=S(e),!es&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!es&&S.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Sc.apply(void 0,S),k=Zr;d&&(k=Ou(Jt({trace:!es},typeof d=="object"&&d)));var P=new wu(E),I=P;Array.isArray(g)?I=qr([E],g):typeof g=="function"&&(I=g(P));var A=k.apply(void 0,I);return Xa(x,h,A)}function Qt(r,e){function t(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Jt(Jt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:i[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(i){return i.type===r},t}function Nc(r){var e={},t=[],i,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return r(n),[e,t,i]}function Lu(r){return typeof r=="function"}function Nu(r,e,t,i){t===void 0&&(t=[]);var n=typeof e=="function"?Nc(e):[e,t,i],a=n[0],s=n[1],l=n[2],d;if(Lu(r))d=function(){return rs(r())};else{var p=rs(r);d=function(){return p}}function h(u,g){u===void 0&&(u=d());var x=qr([a[g.type]],s.filter(function(S){var E=S.matcher;return E(g)}).map(function(S){var E=S.reducer;return E}));return x.filter(function(S){return!!S}).length===0&&(x=[l]),x.reduce(function(S,E){if(E)if(Ft(S)){var k=S,P=E(k,g);return P===void 0?S:P}else{if(lt(S))return Ii(S,function(I){return E(I,g)});var P=E(S,g);if(P===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return S},u)}return h.getInitialState=d,h}function _u(r,e){return r+"/"+e}function _c(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:rs(r.initialState),i=r.reducers||{},n=Object.keys(i),a={},s={},l={};n.forEach(function(h){var u=i[h],g=_u(e,h),x,S;"reducer"in u?(x=u.reducer,S=u.prepare):x=u,a[h]=x,s[g]=x,l[h]=S?Qt(g,S):Qt(g)});function d(){var h=typeof r.extraReducers=="function"?Nc(r.extraReducers):[r.extraReducers],u=h[0],g=u===void 0?{}:u,x=h[1],S=x===void 0?[]:x,E=h[2],k=E===void 0?void 0:E,P=Jt(Jt({},g),s);return Nu(t,function(I){for(var A in P)I.addCase(A,P[A]);for(var C=0,R=S;C<R.length;C++){var B=R[C];I.addMatcher(B.matcher,B.reducer)}k&&I.addDefaultCase(k)})}var p;return{name:e,reducer:function(h,u){return p||(p=d()),p(h,u)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var ku="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pu=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=ku[Math.random()*64|0];return e},Iu=["name","message","stack","code"],ts=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ac=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Tu=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,i=Iu;t<i.length;t++){var n=i[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Hv=function(){function r(e,t,i){var n=Qt(e+"/fulfilled",function(h,u,g,x){return{payload:h,meta:Qa(Jt({},x||{}),{arg:g,requestId:u,requestStatus:"fulfilled"})}}),a=Qt(e+"/pending",function(h,u,g){return{payload:void 0,meta:Qa(Jt({},g||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Qt(e+"/rejected",function(h,u,g,x,S){return{payload:x,error:(i&&i.serializeError||Tu)(h||"Rejected"),meta:Qa(Jt({},S||{}),{arg:g,requestId:u,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function p(h){return function(u,g,x){var S=i?.idGenerator?i.idGenerator(h):Pu(),E=new d,k,P=!1;function I(C){k=C,E.abort()}var A=function(){return Su(this,null,function(){var C,R,B,j,oe,ee,U;return yu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),j=(C=i?.condition)==null?void 0:C.call(i,h,{getState:g,extra:x}),Fu(j)?[4,j]:[3,2];case 1:j=m.sent(),m.label=2;case 2:if(j===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,oe=new Promise(function(O,F){return E.signal.addEventListener("abort",function(){return F({name:"AbortError",message:k||"Aborted"})})}),u(a(S,h,(R=i?.getPendingMeta)==null?void 0:R.call(i,{requestId:S,arg:h},{getState:g,extra:x}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:u,getState:g,extra:x,requestId:S,signal:E.signal,abort:I,rejectWithValue:function(O,F){return new ts(O,F)},fulfillWithValue:function(O,F){return new Ac(O,F)}})).then(function(O){if(O instanceof ts)throw O;return O instanceof Ac?n(O.payload,S,h,O.meta):n(O,S,h)})])];case 3:return B=m.sent(),[3,5];case 4:return ee=m.sent(),B=ee instanceof ts?s(null,S,h,ee.payload,ee.meta):s(ee,S,h),[3,5];case 5:return U=i&&!i.dispatchConditionRejection&&s.match(B)&&B.meta.condition,U||u(B),[2,B]}})})}();return Object.assign(A,{abort:I,requestId:S,arg:h,unwrap:function(){return A.then(Bu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function Bu(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Fu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var kc="listener",Pc="completed",Ic="cancelled",Vv="task-"+Ic,jv="task-"+Pc,Gv=kc+"-"+Ic,Kv=kc+"-"+Pc;var os="listenerMiddleware";var Zv=Qt(os+"/add"),qv=Qt(os+"/removeAll"),Yv=Qt(os+"/remove");var Rc,Xv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Rc||(Rc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Du=function(r){return function(e){setTimeout(e,r)}},Jv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Du(10);yc();window.ftReduxStores||(window.ftReduxStores={});var wr=class r extends gr{static get(e){var t;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Or(a))return a;if(n==null)return;let s=_c({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Lc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(e,t){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new zo,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let s=n,l=i[s];return l?(...d)=>{let p=l(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Mu(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Or(e)&&e.clear()}var ss={};se(ss,{scrollHelper:()=>Uu});var ns,Fi=new Map,as=class{lock(e,t){if(t){let i=Fi.get(t);if(i==null||i===e)return Fi.set(t,e),t}}release(e,t){t&&Fi.get(t)===e&&Fi.delete(t)}findFirstScrollableParent(e){let t,i=n=>{var a;n.stopPropagation();let s,l;for(let d of n.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&l==null&&(l=p)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",i),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",i),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let i=0;for(;t&&t.offsetParent!==e.offsetParent;)i+=t.offsetTop,t=t.offsetParent;return i+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let i=this.findFirstScrollableParent(e);if(e&&this.lock(this,i)){let n=this.getAbsoluteScrollOffset(i,e),a=n-i.clientHeight+e.clientHeight,s=n,l=wo(0,(s-i.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;i.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,i);this.release(this,i)}};window.FluidTopicsScrollHelper=(ns=window.FluidTopicsScrollHelper)!==null&&ns!==void 0?ns:new as;var Uu=window.FluidTopicsScrollHelper;var ls={};se(ls,{shadowQuerySelector:()=>zu,shadowQuerySelectorAll:()=>Wu});function zu(r,e,...t){var i;let n=r.querySelector(e);for(let a of t)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}function Wu(r,e,...t){let i=[...r.querySelectorAll(e)];for(let n of t)i=i.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return i}var cs={};se(cs,{SearchPlaceConverter:()=>Ar,SearchPlaceQueryParams:()=>le,isSearchPlaceQueryParams:()=>id,serializeRequest:()=>ju});var Hu=gp(Bc(),1);var Fc;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Fc||(Fc={}));var Dc;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Dc||(Dc={}));var Mc;(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Mc||(Mc={}));var Uc;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Uc||(Uc={}));var zc;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(zc||(zc={}));var Wc;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Wc||(Wc={}));var Hc;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Hc||(Hc={}));var Vc;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Vc||(Vc={}));var jc;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(jc||(jc={}));var Gc;(function(r){r.ASC="ASC",r.DESC="DESC"})(Gc||(Gc={}));var Kc;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Kc||(Kc={}));var Zc;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Zc||(Zc={}));var ed=r=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(r);var qc;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(qc||(qc={}));var Yc;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Yc||(Yc={}));var Xc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Xc||(Xc={}));var jo;(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(jo||(jo={}));var td=r=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(r);var Jc;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Jc||(Jc={}));var Qc;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Qc||(Qc={}));var Le;(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN",r.DEVELOPER="DEVELOPER"})(Le||(Le={}));var rd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(rd||(rd={}));var mx={[Le.PERSONAL_BOOK_SHARE_USER]:[Le.PERSONAL_BOOK_USER],[Le.HTML_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.PDF_EXPORT_USER]:[Le.PERSONAL_BOOK_USER],[Le.KHUB_ADMIN]:[Le.CONTENT_PUBLISHER],[Le.ADMIN]:[Le.KHUB_ADMIN,Le.USERS_ADMIN,Le.PORTAL_ADMIN],[Le.DEVELOPER]:[Le.BETA_USER,Le.DEBUG_USER]};function Vu(r){return`"${r}"`}function od(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function ju(r,e){return new Ar(r).serialize(e)}var le;(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page"})(le||(le={}));var Gu=new Set(Object.values(le));function id(r){return Gu.has(r)}var Ar=class{constructor(e,t={},i=20,n=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=t,this.defaultPerPage=i,this.allLanguagesAllowed=n,this.defaultContentLocale=a,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let i=this.toURLSearchParams(e).toString(),n=t==null||t.trim().length===0,a=new URL(n?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return a.search=i,a.toString()}toURLSearchParams(e,t=!1){var i,n,a,s,l,d,p,h,u,g,x,S;let E=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&E.append(le.LOCALE,e.contentLocale):E.append(le.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((i=e.query)===null||i===void 0?void 0:i.length)>0&&E.append(le.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&E.append(le.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&E.append(le.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&E.append(le.SORT,"last_update");let k=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(C=>C.valueFilter))!==null&&s!==void 0?s:[];if(k.length>0){let C=k.map(R=>{var B,j;let oe=((j=(B=R.valueFilter)===null||B===void 0?void 0:B.values)!==null&&j!==void 0?j:[]).map(ee=>this.escapeFilters(ee)).map(ee=>encodeURIComponent(Vu(od(ee)))).join("_");return`${R.key}~${oe}`}).join("*");E.append(le.VALUE_FILTERS,C)}let P=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(C=>C.dateFilter))!==null&&d!==void 0?d:[];if(P.length>0){let C=P.map(R=>{var B;return`${R.key}~${(B=R.dateFilter)===null||B===void 0?void 0:B.type.toLowerCase()}`}).join("*");E.append(le.DATE_FILTERS,C)}let I=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(C=>C.rangeFilter))!==null&&h!==void 0?h:[];if(I.length>0){let C=I.map(R=>{var B,j;return`${R.key}~${(B=R.rangeFilter)===null||B===void 0?void 0:B.from}_${(j=R.rangeFilter)===null||j===void 0?void 0:j.to}`}).join("*");E.append(le.RANGE_FILTERS,C)}let A=(u=e.otherQueryParams)!==null&&u!==void 0?u:{};for(let C in A)E.append(C,A[C]);return!((g=e.paging)===null||g===void 0)&&g.perPage&&((S=(x=e.paging)===null||x===void 0?void 0:x.perPage)!==null&&S!==void 0?S:this.defaultPerPage)!=this.defaultPerPage&&E.append(le.PER_PAGE,String(e.paging.perPage)),E}parse(e){var t;let i=e.split("?"),n=this.fromURLSearchParams(new URLSearchParams(i.slice(1).join("?"))),a=i[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,i,n,a,s,l,d,p;let h=e.get(le.LOCALE)==="all"?void 0:e.get(le.LOCALE),u=((t=e.get(le.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=((i=e.get(le.SORT))!==null&&i!==void 0?i:"DEFAULT").toUpperCase(),x=(n=e.get(le.SCOPE))!==null&&n!==void 0?n:"default",S=+((a=e.get(le.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),E={};for(let k of e.keys())id(k)||(E[k]=e.get(k));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(le.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[x])!==null&&l!==void 0?l:"DEFAULT",virtualField:ed(u)?u:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[g])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:wo(1,isNaN(S)?this.defaultPerPage:S,40)},otherQueryParams:E}}parseCompatFilters(e){var t,i,n,a,s,l;let d=[];return e.has(le.FILTERS)&&(d=this.parseValueFilters((t=e.get(le.FILTERS))!==null&&t!==void 0?t:"")),(i=e.has(le.PERIOD))!==null&&i!==void 0&&i&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(le.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(le.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(le.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(le.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(od).map(i=>this.unescapeFilterValue(i)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:jo[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(t,i);return e}superEscapeFilters(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replaceAll(i,n);return e}unescapeFilterValue(e){for(let[t,i,n]of this.filtersEscapeMapping)e=e.replace(n,t);return e}parseLegacyPeriodFilter(e){if(td(e))return[{key:"ft:lastEdition",dateFilter:{type:jo[e]}}];if(e.startsWith("CUSTOM_")){let[t,i,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:i,to:n}}]}return[]}};var ps={};se(ps,{toFtFormComponent:()=>ds});var Ui=Symbol("elementInternals");function ds(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Ui].form}constructor(...n){super(n),this[Ui]=this.attachInternals(),this[Ui].role=e}setFormValue(n){this[Ui].setFormValue(n)}}return t}var fs={};se(fs,{DateFormatter:()=>Xr});var Xr=class{static format(e,t,i,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(i,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var us,hs,ys,ms,Rr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ys=(hs=(us=window.safari)===null||us===void 0?void 0:us.pushNotification)===null||hs===void 0?void 0:hs.toString())!==null&&ys!==void 0?ys:"")==="[object SafariRemoteNotification]",gs="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ms=window.ftGlobals)!==null&&ms!==void 0?ms:{lit:un,litDecorators:gn,litRepeat:bn,litClassMap:vn,litStyleMap:xn,litUnsafeHTML:On,wcUtils:{...Ln,...En,..._n,...fs,...kn,...In,...ca,...$n,...Ca,...la,...Aa,...wa,...Ql,...Pn,...La,..._a,...tc,...ka,...is,...Ea,...ss,...ls,...cs,...ps,isSafari:Rr,isTouchScreen:gs,setVariable:v}};var ot;(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(ot||(ot={}));var nd=L`
|
|
51
51
|
.ft-size-watcher--pixel {
|
|
52
52
|
width: 0;
|
|
53
53
|
height: 0;
|
|
@@ -618,7 +618,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
618
618
|
<div></div>
|
|
619
619
|
<div></div>
|
|
620
620
|
</div>
|
|
621
|
-
`}};$r.styles=Pd;H("ft-loader")($r);var
|
|
621
|
+
`}};$r.styles=Pd;H("ft-loader")($r);var Pe=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},me=class extends ds(M,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,i;let n=w`
|
|
622
622
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
623
623
|
<ft-typography part="label"
|
|
624
624
|
variant=${this.typographyVariant}
|
|
@@ -655,7 +655,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
655
655
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
656
656
|
`:w`
|
|
657
657
|
<slot part="icon" name="icon"></slot>
|
|
658
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return Mr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
658
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.textContent}get textContent(){return Mr(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};me.elementDefinitions={"ft-ripple":J,"ft-tooltip":he,"ft-typography":ae,"ft-icon":ye,"ft-loader":$r};Pe([y()],me.prototype,"href",void 0);Pe([y()],me.prototype,"target",void 0);Pe([y({type:String,reflect:!0})],me.prototype,"role",void 0);Pe([y()],me.prototype,"type",void 0);Pe([y({type:Boolean})],me.prototype,"disabled",void 0);Pe([y()],me.prototype,"label",void 0);Pe([y()],me.prototype,"icon",void 0);Pe([y()],me.prototype,"iconVariant",void 0);Pe([y({type:Boolean})],me.prototype,"trailingIcon",void 0);Pe([y({type:Boolean})],me.prototype,"loading",void 0);Pe([y({attribute:"aria-label"})],me.prototype,"ariaLabel",void 0);Pe([y()],me.prototype,"tooltipPosition",void 0);Pe([y({type:Boolean})],me.prototype,"hideTooltip",void 0);Pe([y({type:Boolean})],me.prototype,"forceTooltip",void 0);Pe([D(".ft-button")],me.prototype,"button",void 0);Pe([D(".ft-button--label slot")],me.prototype,"slottedContent",void 0);Pe([D("[part=tooltip]")],me.prototype,"tooltip",void 0);var Hi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},we=class extends me{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"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}}get typographyVariant(){return"button"}};we.styles=[Mo,Fd];Hi([y({type:Boolean})],we.prototype,"primary",void 0);Hi([y({type:Boolean})],we.prototype,"outlined",void 0);Hi([y({type:Boolean})],we.prototype,"dense",void 0);Hi([y({type:Boolean})],we.prototype,"round",void 0);var Ud=[L`
|
|
659
659
|
:host {
|
|
660
660
|
display: inline-block;
|
|
661
661
|
max-width: 100%;
|
|
@@ -1121,7 +1121,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1121
1121
|
.ftds--size-small.ft-button--icon-only {
|
|
1122
1122
|
width: ${b.smallIconOnlyWidth};
|
|
1123
1123
|
}
|
|
1124
|
-
`,Sr];var Vi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dt=class extends Li(
|
|
1124
|
+
`,Sr];var Vi=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},dt=class extends Li(me){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Pt.brand,this.iconVariant=De.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case $e.large:return it.body2medium;case $e.medium:return it.caption1medium;case $e.small:return it.caption2medium}}};dt.styles=[Mo,Ud];Vi([y({type:Boolean})],dt.prototype,"primary",void 0);Vi([y({type:Boolean})],dt.prototype,"secondary",void 0);Vi([y({type:Boolean})],dt.prototype,"tertiary",void 0);Vi([y({type:Boolean})],dt.prototype,"round",void 0);H("ft-button")(we);H("ftds-button")(dt);var Ut={textColor:o.extend("--ft-checkbox-text-color","",$.colorOnSurfaceHigh),fontSize:o.extend("--ft-checkbox-font-size","",T.fontSize),colorPrimary:o.external($.colorPrimary,"Design system"),colorOnPrimary:o.external($.colorOnPrimary,"Design system"),borderColor:o.extend("--ft-checkbox-border-color","",$.colorOnSurfaceMedium),colorOnSurfaceDisabled:o.external($.colorOnSurfaceDisabled,"Design system")},zd=L`
|
|
1125
1125
|
* {
|
|
1126
1126
|
box-sizing: border-box;
|
|
1127
1127
|
}
|
|
@@ -1750,7 +1750,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1750
1750
|
slot:not([name]) {
|
|
1751
1751
|
display: none;
|
|
1752
1752
|
}
|
|
1753
|
-
`];var
|
|
1753
|
+
`];var ge=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ws=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ne=class extends M{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ce(300),this.changeDebouncer=new ce(10),this.lastDispatchedValues=[]}get flatOptions(){return qe(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return qe(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return w`
|
|
1754
1754
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1755
1755
|
part="container">
|
|
1756
1756
|
${!this.label&&!e?null:w`
|
|
@@ -1827,7 +1827,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1827
1827
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1828
1828
|
noValuesLabel="${this.noValuesLabel}"
|
|
1829
1829
|
></ft-filter-level>
|
|
1830
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=i.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Fe(this.lastDispatchedValues,e)||(this.dispatchEvent(new ws(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ne.elementDefinitions={"ft-button":we,"ft-filter-level":Oe,"ft-snap-scroll":Ee,"ft-typography":ae};ne.styles=Gd;
|
|
1830
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=i.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;Fe(this.lastDispatchedValues,e)||(this.dispatchEvent(new ws(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};ne.elementDefinitions={"ft-button":we,"ft-filter-level":Oe,"ft-snap-scroll":Ee,"ft-typography":ae};ne.styles=Gd;ge([y({type:String})],ne.prototype,"id",void 0);ge([y({type:String})],ne.prototype,"label",void 0);ge([y({type:String})],ne.prototype,"filterPlaceHolder",void 0);ge([y({type:String})],ne.prototype,"clearButtonLabel",void 0);ge([y({type:String})],ne.prototype,"moreValuesButtonLabel",void 0);ge([y({type:String})],ne.prototype,"noValuesLabel",void 0);ge([_e([])],ne.prototype,"options",void 0);ge([y({type:Boolean})],ne.prototype,"multivalued",void 0);ge([y({type:Boolean})],ne.prototype,"disabled",void 0);ge([y({type:Boolean})],ne.prototype,"raiseSelectedOptions",void 0);ge([y({type:Boolean})],ne.prototype,"displayCount",void 0);ge([y({type:Number})],ne.prototype,"displayedValuesLimit",void 0);ge([y({type:Boolean})],ne.prototype,"hideClearButton",void 0);ge([D(".ft-filter--slot")],ne.prototype,"slotElement",void 0);ge([D(".ft-filter--container")],ne.prototype,"container",void 0);ge([D(".ft-filter--values")],ne.prototype,"valuesContainer",void 0);ge([D(".ft-filter--levels")],ne.prototype,"levelsContainer",void 0);ge([W()],ne.prototype,"lastLevelHasHiddenvalues",void 0);ge([D(".ft-filter--filter input")],ne.prototype,"filterInput",void 0);ge([hn(".ft-filter--levels ft-filter-level")],ne.prototype,"levels",void 0);ge([W()],ne.prototype,"withScroll",void 0);ge([W()],ne.prototype,"filter",void 0);ge([W()],ne.prototype,"slideIn",void 0);ge([W()],ne.prototype,"slideOut",void 0);var ao=function(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Qe=class extends M{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return w`
|
|
1831
1831
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1832
1832
|
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Qe.elementDefinitions={};ao([y({type:String})],Qe.prototype,"label",void 0);ao([y({type:Object,converter:r=>r})],Qe.prototype,"value",void 0);ao([y({type:Boolean,reflect:!0})],Qe.prototype,"selected",void 0);ao([y({type:Object})],Qe.prototype,"subOptions",void 0);ao([_e({})],Qe.prototype,"renderOption",void 0);ao([D(".ft-filter-option--slot")],Qe.prototype,"slotElement",void 0);H("ft-filter")(ne);H("ft-filter-option")(Qe);var Kd=L`
|
|
1833
1833
|
.ft-accordion {
|
|
@@ -2532,31 +2532,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2532
2532
|
<ft-ripple ?primary=${t} ?activated=${t}></ft-ripple>
|
|
2533
2533
|
<span>${e.label}</span>
|
|
2534
2534
|
</div>
|
|
2535
|
-
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen&&(this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px",To(this.mainPanel,this.optionsMenu,"bottom").then(({x:n,y:a})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${a}px`}))}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break}l?.focus()}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var t,i;if(!Fe((t=this.selectedOption)===null||t===void 0?void 0:t.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};de.elementDefinitions={"ft-input-label":tt,"ft-typography":ae,"ft-ripple":J,"ft-icon":ye};de.styles=[io,tr,rp];ve([y({type:String})],de.prototype,"label",void 0);ve([y({type:String})],de.prototype,"ariaLabel",void 0);ve([y({type:String})],de.prototype,"helper",void 0);ve([y({type:Boolean})],de.prototype,"outlined",void 0);ve([y({type:Boolean})],de.prototype,"disabled",void 0);ve([y({type:Boolean})],de.prototype,"error",void 0);ve([y({type:Boolean})],de.prototype,"fixedMenuPosition",void 0);ve([y({type:Array})],de.prototype,"options",void 0);ve([W()],de.prototype,"selectedOption",void 0);ve([W()],de.prototype,"optionsDisplayed",void 0);ve([W()],de.prototype,"focusOptions",void 0);ve([D(".ft-select")],de.prototype,"container",void 0);ve([D(".ft-select--options")],de.prototype,"optionsMenu",void 0);ve([D(".ft-select--input-panel")],de.prototype,"mainPanel",void 0);ve([D(".ft-select--option:first-child")],de.prototype,"firstOption",void 0);ve([D(".ft-select--option:focus")],de.prototype,"focusedOption",void 0);ve([D(".ft-select--option.ft-select--option-selected")],de.prototype,"selectedOptionElement",void 0);ve([D(".ft-select--option:last-child")],de.prototype,"lastOption",void 0);ve([D("slot")],de.prototype,"optionsSlot",void 0);H("ft-select")(de);H("ft-select-option")(wt);var
|
|
2535
|
+
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,i;super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen&&(this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px",To(this.mainPanel,this.optionsMenu,"bottom").then(({x:n,y:a})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${a}px`}))}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation();let i=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,i,n,a,s;let l;switch(e.key){case"Escape":this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),l=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),l=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break}l?.focus()}onOptionKeyDown(e,t){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(t),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var t,i;if(!Fe((t=this.selectedOption)===null||t===void 0?void 0:t.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};de.elementDefinitions={"ft-input-label":tt,"ft-typography":ae,"ft-ripple":J,"ft-icon":ye};de.styles=[io,tr,rp];ve([y({type:String})],de.prototype,"label",void 0);ve([y({type:String})],de.prototype,"ariaLabel",void 0);ve([y({type:String})],de.prototype,"helper",void 0);ve([y({type:Boolean})],de.prototype,"outlined",void 0);ve([y({type:Boolean})],de.prototype,"disabled",void 0);ve([y({type:Boolean})],de.prototype,"error",void 0);ve([y({type:Boolean})],de.prototype,"fixedMenuPosition",void 0);ve([y({type:Array})],de.prototype,"options",void 0);ve([W()],de.prototype,"selectedOption",void 0);ve([W()],de.prototype,"optionsDisplayed",void 0);ve([W()],de.prototype,"focusOptions",void 0);ve([D(".ft-select")],de.prototype,"container",void 0);ve([D(".ft-select--options")],de.prototype,"optionsMenu",void 0);ve([D(".ft-select--input-panel")],de.prototype,"mainPanel",void 0);ve([D(".ft-select--option:first-child")],de.prototype,"firstOption",void 0);ve([D(".ft-select--option:focus")],de.prototype,"focusedOption",void 0);ve([D(".ft-select--option.ft-select--option-selected")],de.prototype,"selectedOptionElement",void 0);ve([D(".ft-select--option:last-child")],de.prototype,"lastOption",void 0);ve([D("slot")],de.prototype,"optionsSlot",void 0);H("ft-select")(de);H("ft-select-option")(wt);var Ie={display:o.create("--ft-skeleton--display","","DISPLAY","block"),width:o.create("--ft-skeleton--width","","SIZE","100%"),height:o.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.external($.borderRadiusM,"Design system")},op=L`
|
|
2536
2536
|
:host {
|
|
2537
|
-
width: ${
|
|
2538
|
-
height: ${
|
|
2539
|
-
display: ${
|
|
2537
|
+
width: ${Ie.width};
|
|
2538
|
+
height: ${Ie.height};
|
|
2539
|
+
display: ${Ie.display};
|
|
2540
2540
|
overflow: hidden;
|
|
2541
|
-
border-radius: ${
|
|
2541
|
+
border-radius: ${Ie.borderRadiusM};
|
|
2542
2542
|
background: linear-gradient(
|
|
2543
2543
|
90deg,
|
|
2544
2544
|
transparent,
|
|
2545
|
-
${
|
|
2546
|
-
${
|
|
2547
|
-
transparent ${
|
|
2548
|
-
), ${
|
|
2545
|
+
${Ie.glareColor} calc(0.45 * ${Ie.glareWidth}),
|
|
2546
|
+
${Ie.glareColor} calc(0.55 * ${Ie.glareWidth}),
|
|
2547
|
+
transparent ${Ie.glareWidth}
|
|
2548
|
+
), ${Ie.backgroundColor};
|
|
2549
2549
|
background-repeat: repeat-y;
|
|
2550
2550
|
background-size: 100vw 100vh;
|
|
2551
2551
|
background-attachment: fixed;
|
|
2552
|
-
background-position: calc(${
|
|
2553
|
-
animation: shine ${
|
|
2552
|
+
background-position: calc(${Ie.glareWidth} * -1) 0;
|
|
2553
|
+
animation: shine ${Ie.animationDuration} infinite;
|
|
2554
2554
|
animation-timing-function: linear;
|
|
2555
2555
|
}
|
|
2556
2556
|
|
|
2557
2557
|
@keyframes shine {
|
|
2558
2558
|
to {
|
|
2559
|
-
background-position: calc(100vw + ${
|
|
2559
|
+
background-position: calc(100vw + ${Ie.glareWidth}) 0, calc(${Ie.glareWidth} * -1) 0;
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
2562
|
`;var V={height:o.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:o.extend("--ft-search-bar-border-radius","",$.borderRadiusS),mobileOpenPosition:o.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:o.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:o.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:o.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:o.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:o.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:o.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:o.external($.colorSurface,"Design system"),colorOnSurface:o.external($.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.external($.colorOnSurfaceMedium,"Design system"),colorOutline:o.external($.colorOutline,"Design system"),colorPrimary:o.external($.colorPrimary,"Design system"),elevation02:o.external($.elevation02,"Design system"),buttonColor:o.external(te.color,"Button"),buttonRippleColor:o.external(te.rippleColor,"Button")},ip=L`
|
|
@@ -2607,8 +2607,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
2607
2607
|
}
|
|
2608
2608
|
|
|
2609
2609
|
.ft-search-bar--skeleton {
|
|
2610
|
-
${v(
|
|
2611
|
-
${v(
|
|
2610
|
+
${v(Ie.height,V.height)};
|
|
2611
|
+
${v(Ie.borderRadiusM,V.borderRadius)};
|
|
2612
2612
|
}
|
|
2613
2613
|
|
|
2614
2614
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-bar",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "Search bar component using Fluid Topics public API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-accordion": "1.2.
|
|
23
|
-
"@fluid-topics/ft-app-context": "1.2.
|
|
24
|
-
"@fluid-topics/ft-button": "1.2.
|
|
25
|
-
"@fluid-topics/ft-chip": "1.2.
|
|
26
|
-
"@fluid-topics/ft-filter": "1.2.
|
|
27
|
-
"@fluid-topics/ft-icon": "1.2.
|
|
28
|
-
"@fluid-topics/ft-select": "1.2.
|
|
29
|
-
"@fluid-topics/ft-size-watcher": "1.2.
|
|
30
|
-
"@fluid-topics/ft-skeleton": "1.2.
|
|
31
|
-
"@fluid-topics/ft-snap-scroll": "1.2.
|
|
32
|
-
"@fluid-topics/ft-tooltip": "1.2.
|
|
33
|
-
"@fluid-topics/ft-typography": "1.2.
|
|
34
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-accordion": "1.2.9",
|
|
23
|
+
"@fluid-topics/ft-app-context": "1.2.9",
|
|
24
|
+
"@fluid-topics/ft-button": "1.2.9",
|
|
25
|
+
"@fluid-topics/ft-chip": "1.2.9",
|
|
26
|
+
"@fluid-topics/ft-filter": "1.2.9",
|
|
27
|
+
"@fluid-topics/ft-icon": "1.2.9",
|
|
28
|
+
"@fluid-topics/ft-select": "1.2.9",
|
|
29
|
+
"@fluid-topics/ft-size-watcher": "1.2.9",
|
|
30
|
+
"@fluid-topics/ft-skeleton": "1.2.9",
|
|
31
|
+
"@fluid-topics/ft-snap-scroll": "1.2.9",
|
|
32
|
+
"@fluid-topics/ft-tooltip": "1.2.9",
|
|
33
|
+
"@fluid-topics/ft-typography": "1.2.9",
|
|
34
|
+
"@fluid-topics/ft-wc-utils": "1.2.9",
|
|
35
35
|
"lit": "3.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@fluid-topics/public-api": "1.0.78"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "d845852f5b176916a556b5a23d38be9472fa1fc6"
|
|
41
41
|
}
|