@fluid-topics/ft-switch 1.2.15 → 1.2.16

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.
@@ -47,7 +47,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
47
47
  input::-webkit-search-results-decoration {
48
48
  display: none;
49
49
  }
50
- `;var Os={};var ni={};W(ni,{ParametrizedLabelResolver:()=>oi});var oi=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Pi={};W(Pi,{FtCommandQueue:()=>Ar,FtLitElementRedux:()=>Pt,FtReduxStore:()=>Ti,clearAllStores:()=>Mp,isFtReduxStore:()=>gt,redux:()=>ep,reduxEventListener:()=>tp,reduxReactive:()=>Qd});var Qd=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ep=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:pr,attribute:!1,...e};L(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},tp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Ar=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function gt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Es,Cs,ws,so=Symbol("internalReduxEventsUnsubscribers"),je=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),Pt=class extends j{constructor(){super(...arguments),this[Es]=new Map,this[Cs]=new Map,this[ws]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[bt].get(e)}addStore(e,o){var n;o=(n=o??(gt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[bt].delete(o)}setupStore(e,o){this[bt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[je].has(e.store):this[je].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[je].set(e,o.subscribe(()=>this.updateFromStores())),gt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[so].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[je].forEach((e,o)=>this.unsubscribeFromStore(o)),this[so].forEach(e=>e()),this[so]=[]}unsubscribeFromStore(e){this[je].has(e)&&this[je].get(e)(),this[je].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Es=je,Cs=bt,ws=so;Pt.reduxProperties=new Map;Pt.reduxReactiveProperties=new Set;Pt.reduxEventListeners=new Map;function fe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function De(t){return!!t&&!!t[G]}function be(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===lp}(t)||Array.isArray(t)||!!t[Ls]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ls])||fi(t)||hi(t))}function xt(t,e,o){o===void 0&&(o=!1),kt(t)===0?(o?Object.keys:It)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function kt(t){var e=t[G];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fi(t)?2:hi(t)?3:0}function Lt(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function rp(t,e){return kt(t)===2?t.get(e):t[e]}function Is(t,e,o){var n=kt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ks(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function fi(t){return sp&&t instanceof Map}function hi(t){return cp&&t instanceof Set}function Ve(t){return t.o||t.t}function yi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ds(t);delete e[G];for(var o=It(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mi(t,e){return e===void 0&&(e=!1),gi(t)||De(t)||!be(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=op),Object.freeze(t),e&&xt(t,function(o,n){return mi(n,!0)},!0)),t}function op(){fe(2)}function gi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function _e(t){var e=ui[t];return e||fe(18,t),e}function np(t,e){ui[t]||(ui[t]=e)}function li(){return Nr}function ii(t,e){e&&(_e("Patches"),t.u=[],t.s=[],t.v=e)}function co(t){di(t),t.p.forEach(ip),t.p=null}function di(t){t===Nr&&(Nr=t.l)}function As(t){return Nr={p:[],l:Nr,h:t,m:!0,_:0}}function ip(t){var e=t[G];e.i===0||e.i===1?e.j():e.g=!0}function ai(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||_e("ES5").S(e,t,n),n?(o[G].P&&(co(e),fe(4)),be(t)&&(t=lo(e,t),e.l||po(e,t)),e.u&&_e("Patches").M(o[G].t,t,e.u,e.s)):t=lo(e,o,[]),co(e),e.u&&e.v(e.u,e.s),t!==Us?t:void 0}function lo(t,e,o){if(gi(e))return e;var n=e[G];if(!n)return xt(e,function(l,d){return Rs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=yi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),xt(a,function(l,d){return Rs(t,n,i,l,d,o,s)}),po(t,i,!1),o&&t.u&&_e("Patches").N(n,o,t.u,t.s)}return n.o}function Rs(t,e,o,n,i,a,s){if(De(i)){var l=lo(t,i,a&&e&&e.i!==3&&!Lt(e.R,n)?a.concat(n):void 0);if(Is(o,n,l),!De(l))return;t.m=!1}else s&&o.add(i);if(be(i)&&!gi(i)){if(!t.h.D&&t._<1)return;lo(t,i),e&&e.A.l||po(t,i)}}function po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&mi(e,o)}function si(t,e){var o=t[G];return(o?Ve(o):t)[e]}function Ns(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ke(t){t.P||(t.P=!0,t.l&&Ke(t.l))}function ci(t){t.o||(t.o=yi(t.t))}function pi(t,e,o){var n=fi(e)?_e("MapSet").F(e,o):hi(e)?_e("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:li(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=_r;s&&(d=[l],p=Rr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):_e("ES5").J(e,o);return(o?o.A:li()).p.push(n),n}function ap(t){return De(t)||fe(22,t),function e(o){if(!be(o))return o;var n,i=o[G],a=kt(o);if(i){if(!i.P&&(i.i<4||!_e("ES5").K(i)))return i.t;i.I=!0,n=_s(o,a),i.I=!1}else n=_s(o,a);return xt(n,function(s,l){i&&rp(i.t,s)===l||Is(n,s,e(l))}),a===3?new Set(n):n}(t)}function _s(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yi(t)}function $s(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[G];return _r.get(p,s)},set:function(p){var h=this[G];_r.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][G];if(!d.P)switch(d.i){case 5:n(d)&&Ke(d);break;case 4:o(d)&&Ke(d)}}}function o(s){for(var l=s.t,d=s.k,p=It(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==G){var m=l[f];if(m===void 0&&!Lt(l,f))return!0;var g=d[f],b=g&&g[G];if(b?b.t!==m:!ks(g,m))return!0}}var S=!!l[G];return p.length!==It(l).length+(S?0:1)}function n(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 i(s){s.g&&fe(3,JSON.stringify(Ve(s)))}var a={};np("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var g=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=Ds(m);delete S[G];for(var C=It(S),A=0;A<C.length;A++){var R=C[A];S[R]=t(R,f||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(d,s),h={i:d?5:4,A:l?l.A:li(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,G,{value:h,writable:!0}),p},S:function(s,l,d){d?De(l)&&l[G].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[G];if(f){var m=f.t,g=f.k,b=f.R,S=f.i;if(S===4)xt(g,function(v){v!==G&&(m[v]!==void 0||Lt(m,v)?b[v]||p(g[v]):(b[v]=!0,Ke(f)))}),xt(m,function(v){g[v]!==void 0||Lt(g,v)||(b[v]=!1,Ke(f))});else if(S===5){if(n(f)&&(Ke(f),b.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)b[C]=!1;else for(var A=m.length;A<g.length;A++)b[A]=!0;for(var R=Math.min(g.length,m.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ts,Nr,bi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sp=typeof Map<"u",cp=typeof Set<"u",Ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Us=bi?Symbol.for("immer-nothing"):((Ts={})["immer-nothing"]=!0,Ts),Ls=bi?Symbol.for("immer-draftable"):"__$immer_draftable",G=bi?Symbol.for("immer-state"):"__$immer_state";var lp=""+Object.prototype.constructor,It=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ds=Object.getOwnPropertyDescriptors||function(t){var e={};return It(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ui={},_r={get:function(t,e){if(e===G)return t;var o=Ve(t);if(!Lt(o,e))return function(i,a,s){var l,d=Ns(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!be(n)?n:n===si(t.t,e)?(ci(t),t.o[e]=pi(t.A.h,n,t)):n},has:function(t,e){return e in Ve(t)},ownKeys:function(t){return Reflect.ownKeys(Ve(t))},set:function(t,e,o){var n=Ns(Ve(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=si(Ve(t),e),a=i?.[G];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ks(o,i)&&(o!==void 0||Lt(t.t,e)))return!0;ci(t),Ke(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return si(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ci(t),Ke(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ve(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){fe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){fe(12)}},Rr={};xt(_r,function(t,e){Rr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Rr.deleteProperty=function(t,e){return Rr.set.call(this,t,e,void 0)},Rr.set=function(t,e,o){return _r.set.call(this,t[0],e,o,t[0])};var dp=function(){function t(o){var n=this;this.O=Ps,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(S){var C=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(S,function(v){var E;return(E=a).call.apply(E,[C,v].concat(R))})}}var p;if(typeof a!="function"&&fe(6),s!==void 0&&typeof s!="function"&&fe(7),be(i)){var h=As(n),f=pi(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?co(h):di(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return ii(h,s),ai(S,h)},function(S){throw co(h),S}):(ii(h,s),ai(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Us&&(p=void 0),n.D&&mi(p,!0),s){var g=[],b=[];_e("Patches").M(i,p,g,b),s(g,b)}return p}fe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(g){return i.apply(void 0,[g].concat(f))})};var s,l,d=n.produce(i,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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){be(o)||fe(8),De(o)&&(o=ap(o));var n=As(this),i=pi(this,o,void 0);return i[G].C=!0,di(n),i},e.finishDraft=function(o,n){var i=o&&o[G],a=i.A;return ii(a,n),ai(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ps&&fe(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=_e("Patches").$;return De(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),de=new dp,pp=de.produce,gg=de.produceWithPatches.bind(de),bg=de.setAutoFreeze.bind(de),xg=de.setUseProxies.bind(de),vg=de.applyPatches.bind(de),Sg=de.createDraft.bind(de),Og=de.finishDraft.bind(de),uo=pp;function Ze(t){"@babel/helpers - typeof";return Ze=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},Ze(t)}function xi(t,e){if(Ze(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ze(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vi(t){var e=xi(t,"string");return Ze(e)==="symbol"?e:String(e)}function Si(t,e,o){return e=vi(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ms(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function fo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ms(Object(o),!0).forEach(function(n){Si(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function oe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oi=function(){return Math.random().toString(36).substring(7).split("").join(".")},ho={INIT:"@@redux/INIT"+Oi(),REPLACE:"@@redux/REPLACE"+Oi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oi()}};function up(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(oe(1));return o(Ei)(t,e)}if(typeof t!="function")throw new Error(oe(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(oe(3));return a}function f(S){if(typeof S!="function")throw new Error(oe(4));if(d)throw new Error(oe(5));var C=!0;return p(),l.push(S),function(){if(C){if(d)throw new Error(oe(6));C=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function m(S){if(!up(S))throw new Error(oe(7));if(typeof S.type>"u")throw new Error(oe(8));if(d)throw new Error(oe(9));try{d=!0,a=i(a,S)}finally{d=!1}for(var C=s=l,A=0;A<C.length;A++){var R=C[A];R()}return S}function g(S){if(typeof S!="function")throw new Error(oe(10));i=S,m({type:ho.REPLACE})}function b(){var S,C=f;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(oe(11));function O(){R.next&&R.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[Bs]=function(){return this},S}return m({type:ho.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:g},n[Bs]=b,n}function fp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ho.INIT});if(typeof n>"u")throw new Error(oe(12));if(typeof o(void 0,{type:ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function Ws(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{fp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,g={},b=0;b<a.length;b++){var S=a[b],C=o[S],A=p[S],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(oe(14))}g[S]=R,m=m||R!==A}return m=m||a.length!==Object.keys(p).length,m?g:p}}function $t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Fs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(oe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=$t.apply(void 0,l)(i.dispatch),fo(fo({},i),{},{dispatch:a})}}}function Hs(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var zs=Hs();zs.withExtraArgument=Hs;var Ci=zs;var Zs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),hp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,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(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ut=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},yp=Object.defineProperty,mp=Object.defineProperties,gp=Object.getOwnPropertyDescriptors,Gs=Object.getOwnPropertySymbols,bp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,js=function(t,e,o){return e in t?yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},qe=function(t,e){for(var o in e||(e={}))bp.call(e,o)&&js(t,o,e[o]);if(Gs)for(var n=0,i=Gs(e);n<i.length;n++){var o=i[n];xp.call(e,o)&&js(t,o,e[o])}return t},wi=function(t,e){return mp(t,gp(e))},vp=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Sp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$t:$t.apply(null,arguments)},Wg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Op(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Ep=function(t){Zs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ut([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ut([void 0],o.concat(this))))},e}(Array),Cp=function(t){Zs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ut([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ut([void 0],o.concat(this))))},e}(Array);function Ni(t){return be(t)?uo(t,function(){}):t}function wp(t){return typeof t=="boolean"}function Ap(){return function(e){return Rp(e)}}function Rp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Ep;if(o&&(wp(o)?l.push(Ci):l.push(Ci.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Ai=!0;function qs(t){var e=Ap(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,g;if(typeof i=="function")g=i;else if(Op(i))g=Ws(i);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 b=s;if(typeof b=="function"&&(b=b(e),!Ai&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ai&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Fs.apply(void 0,b),C=$t;d&&(C=Sp(qe({trace:!Ai},typeof d=="object"&&d)));var A=new Cp(S),R=A;Array.isArray(m)?R=Ut([S],m):typeof m=="function"&&(R=m(A));var O=C.apply(void 0,R);return Ei(g,h,O)}function Ye(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return qe(qe({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ys(t){var e={},o=[],n,i={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,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Np(t){return typeof t=="function"}function _p(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ys(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Np(t))d=function(){return Ni(t())};else{var p=Ni(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var g=Ut([a[m.type]],s.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(De(b)){var C=b,A=S(C,m);return A===void 0?b:A}else{if(be(b))return uo(b,function(R){return S(R,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},f)}return h.getInitialState=d,h}function Tp(t,e){return t+"/"+e}function Xs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ni(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Tp(e,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,a[h]=g,s[m]=g,l[h]=b?Ye(m,b):Ye(m)});function d(){var h=typeof t.extraReducers=="function"?Ys(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,S=h[2],C=S===void 0?void 0:S,A=qe(qe({},m),s);return _p(o,function(R){for(var O in A)R.addCase(O,A[O]);for(var v=0,E=b;v<E.length;v++){var N=E[v];R.addMatcher(N.matcher,N.reducer)}C&&R.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Pp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Lp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Pp[Math.random()*64|0];return e},Ip=["name","message","stack","code"],Ri=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),kp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ip;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Gg=function(){function t(e,o,n){var i=Ye(e+"/fulfilled",function(h,f,m,g){return{payload:h,meta:wi(qe({},g||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ye(e+"/pending",function(h,f,m){return{payload:void 0,meta:wi(qe({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ye(e+"/rejected",function(h,f,m,g,b){return{payload:g,error:(n&&n.serializeError||kp)(h||"Rejected"),meta:wi(qe({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!g,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(f,m,g){var b=n?.idGenerator?n.idGenerator(h):Lp(),S=new d,C,A=!1;function R(v){C=v,S.abort()}var O=function(){return vp(this,null,function(){var v,E,N,I,M,D,T;return hp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),I=(v=n?.condition)==null?void 0:v.call(n,h,{getState:m,extra:g}),Up(I)?[4,I]:[3,2];case 1:I=y.sent(),y.label=2;case 2:if(I===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,M=new Promise(function(x,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:C||"Aborted"})})}),f(a(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:m,extra:g}))),[4,Promise.race([M,Promise.resolve(o(h,{dispatch:f,getState:m,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(x,_){return new Ri(x,_)},fulfillWithValue:function(x,_){return new Vs(x,_)}})).then(function(x){if(x instanceof Ri)throw x;return x instanceof Vs?i(x.payload,b,h,x.meta):i(x,b,h)})])];case 3:return N=y.sent(),[3,5];case 4:return D=y.sent(),N=D instanceof Ri?s(null,b,h,D.payload,D.meta):s(D,b,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(N)&&N.meta.condition,T||f(N),[2,N]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then($p)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function $p(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Up(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Js="listener",Qs="completed",ec="cancelled",jg="task-"+ec,Vg="task-"+Qs,Kg=Js+"-"+ec,Zg=Js+"-"+Qs;var _i="listenerMiddleware";var qg=Ye(_i+"/add"),Yg=Ye(_i+"/removeAll"),Xg=Ye(_i+"/remove");var Ks,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ks||(Ks=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Dp=function(t){return function(e){setTimeout(e,t)}},Qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dp(10);$s();window.ftReduxStores||(window.ftReduxStores={});var Ti=class t extends ft{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(gt(a))return a;if(i==null)return;let s=Xs({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=qs({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[i.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ar,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[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 Mp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))gt(e)&&e.clear()}var ki={};W(ki,{scrollHelper:()=>Bp});var Li,yo=new Map,Ii=class{lock(e,o){if(o){let n=yo.get(o);if(n==null||n===e)return yo.set(o,e),o}}release(e,o){o&&yo.get(o)===e&&yo.delete(o)}findFirstScrollableParent(e){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.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)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){let n=0;for(;o&&o.offsetParent!==e.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=ur(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Li=window.FluidTopicsScrollHelper)!==null&&Li!==void 0?Li:new Ii;var Bp=window.FluidTopicsScrollHelper;var $i={};W($i,{shadowQuerySelector:()=>Wp,shadowQuerySelectorAll:()=>Fp});function Wp(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Fp(t,e,...o){let n=[...t.querySelectorAll(e)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Ui={};W(Ui,{SearchPlaceConverter:()=>bo,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>wc,serializeRequest:()=>Gp});var Hp=al(rc(),1);var oc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(oc||(oc={}));var nc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(nc||(nc={}));var ic;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(ic||(ic={}));var ac;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ac||(ac={}));var sc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sc||(sc={}));var cc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(cc||(cc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(dc||(dc={}));var pc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(pc||(pc={}));var uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(uc||(uc={}));var fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fc||(fc={}));var hc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hc||(hc={}));var vc=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var yc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(yc||(yc={}));var mc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(mc||(mc={}));var gc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(gc||(gc={}));var Tr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tr||(Tr={}));var Sc=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(bc||(bc={}));var xc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xc||(xc={}));var Q;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(Q||(Q={}));var Oc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Oc||(Oc={}));var Ec;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ec||(Ec={}));var gb={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN],[Q.DEVELOPER]:[Q.BETA_USER,Q.DEBUG_USER]};function zp(t){return`"${t}"`}function Cc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new bo(t).serialize(e)}var H;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(H||(H={}));var jp=new Set(Object.values(H));function wc(t){return jp.has(t)}var bo=class{constructor(e,o={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,g,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(H.LOCALE,e.contentLocale):S.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(H.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(H.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(H.SORT,"last_update");let C=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(E=>{var N,I;let M=((I=(N=E.valueFilter)===null||N===void 0?void 0:N.values)!==null&&I!==void 0?I:[]).map(D=>this.escapeFilters(D)).map(D=>encodeURIComponent(zp(Cc(D)))).join("_");return`${E.key}~${M}`}).join("*");S.append(H.VALUE_FILTERS,v)}let A=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let v=A.map(E=>{var N;return`${E.key}~${(N=E.dateFilter)===null||N===void 0?void 0:N.type.toLowerCase()}`}).join("*");S.append(H.DATE_FILTERS,v)}let R=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let v=R.map(E=>{var N,I;return`${E.key}~${(N=E.rangeFilter)===null||N===void 0?void 0:N.from}_${(I=E.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");S.append(H.RANGE_FILTERS,v)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in O)S.append(v,O[v]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((b=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(H.PER_PAGE,String(e.paging.perPage)),S}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l,d,p;let h=e.get(H.LOCALE)==="all"?void 0:e.get(H.LOCALE),f=((o=e.get(H.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(H.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),g=(i=e.get(H.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=e.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S={};for(let C of e.keys())wc(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(H.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:vc(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:ur(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(H.FILTERS)&&(d=this.parseValueFilters((o=e.get(H.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(H.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(H.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(H.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(H.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Cc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Tr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Sc(e))return[{key:"ft:lastEdition",dateFilter:{type:Tr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Di={};W(Di,{toFtFormComponent:()=>Vp});var xo=Symbol("elementInternals");function Vp(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[xo].form}constructor(...i){super(i),this[xo]=this.attachInternals(),this[xo].role=e}setFormValue(i){this[xo].setFormValue(i)}}return o}var Bi={};W(Bi,{DateFormatter:()=>Mi});var Mi=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,i)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Wi,Fi,Hi,zi,Gi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Hi=(Fi=(Wi=window.safari)===null||Wi===void 0?void 0:Wi.pushNotification)===null||Fi===void 0?void 0:Fi.toString())!==null&&Hi!==void 0?Hi:"")==="[object SafariRemoteNotification]",Kp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(zi=window.ftGlobals)!==null&&zi!==void 0?zi:{lit:Uo,litDecorators:Mo,litRepeat:Bo,litClassMap:Wo,litStyleMap:Fo,litUnsafeHTML:zo,wcUtils:{...Xo,...jo,...Qo,...Bi,...en,...on,...In,...qo,...Zn,...Ln,...Jn,...Yn,...vs,...tn,...ei,...ri,...Os,...ni,...Pi,...qn,...ki,...$i,...Ui,...Di,isSafari:Gi,isTouchScreen:Kp,setVariable:re}};var Ac=r.extend("--ft-ripple-color","",F.colorContent),Me={color:Ac,backgroundColor:r.extend("--ft-ripple-background-color","",Ac),opacityContentOnSurfacePressed:r.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Rc=r.extend("--ft-ripple-color","",F.colorPrimary),Nc={color:Rc,backgroundColor:r.extend("--ft-ripple-background-color","",Rc)},_c=r.extend("--ft-ripple-color","",F.colorSecondary),Tc={color:_c,backgroundColor:r.extend("--ft-ripple-background-color","",_c)},Pc=$`
50
+ `;var Os={};var ni={};W(ni,{ParametrizedLabelResolver:()=>oi});var oi=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,i;e=this.resolvePluralKey(e,o);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...o)}static replaceParameters(e,...o){return o.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=i=>o?.includes("date")?e.toLocaleDateString(i):o?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var Pi={};W(Pi,{FtCommandQueue:()=>Ar,FtLitElementRedux:()=>Pt,FtReduxStore:()=>Ti,clearAllStores:()=>Mp,isFtReduxStore:()=>gt,redux:()=>ep,reduxEventListener:()=>tp,reduxReactive:()=>Qd});var Qd=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ep=t=>{let e=t??{};return(o,n)=>{var i;let a={hasChanged:pr,attribute:!1,...e};L(a)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[n],store:e.store})}},tp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Ar=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function gt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Es,Cs,ws,so=Symbol("internalReduxEventsUnsubscribers"),je=Symbol("internalStoresUnsubscribers"),bt=Symbol("internalStores"),Pt=class extends j{constructor(){super(...arguments),this[Es]=new Map,this[Cs]=new Map,this[ws]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[bt].get(e)}addStore(e,o){var n;o=(n=o??(gt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[bt].delete(o)}setupStore(e,o){this[bt].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[bt].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let i=this.getStore(e.store);i&&(e.store?this[je].has(e.store):this[je].size>0)&&(this[o]=e.selector(i.getState(),this))}})}subscribeToStore(e,o){var n;this[je].set(e,o.subscribe(()=>this.updateFromStores())),gt(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||o.name===i.store)){let s=l=>this[a](l);o.addEventListener(i.eventName,s),this[so].push(()=>o.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[je].forEach((e,o)=>this.unsubscribeFromStore(o)),this[so].forEach(e=>e()),this[so]=[]}unsubscribeFromStore(e){this[je].has(e)&&this[je].get(e)(),this[je].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Es=je,Cs=bt,ws=so;Pt.reduxProperties=new Map;Pt.reduxReactiveProperties=new Set;Pt.reduxEventListeners=new Map;function fe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function De(t){return!!t&&!!t[G]}function be(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===lp}(t)||Array.isArray(t)||!!t[Ls]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ls])||fi(t)||hi(t))}function xt(t,e,o){o===void 0&&(o=!1),kt(t)===0?(o?Object.keys:It)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function kt(t){var e=t[G];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fi(t)?2:hi(t)?3:0}function Lt(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function rp(t,e){return kt(t)===2?t.get(e):t[e]}function Is(t,e,o){var n=kt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function ks(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function fi(t){return sp&&t instanceof Map}function hi(t){return cp&&t instanceof Set}function Ve(t){return t.o||t.t}function yi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ds(t);delete e[G];for(var o=It(e),n=0;n<o.length;n++){var i=o[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mi(t,e){return e===void 0&&(e=!1),gi(t)||De(t)||!be(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=op),Object.freeze(t),e&&xt(t,function(o,n){return mi(n,!0)},!0)),t}function op(){fe(2)}function gi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function _e(t){var e=ui[t];return e||fe(18,t),e}function np(t,e){ui[t]||(ui[t]=e)}function li(){return Nr}function ii(t,e){e&&(_e("Patches"),t.u=[],t.s=[],t.v=e)}function co(t){di(t),t.p.forEach(ip),t.p=null}function di(t){t===Nr&&(Nr=t.l)}function As(t){return Nr={p:[],l:Nr,h:t,m:!0,_:0}}function ip(t){var e=t[G];e.i===0||e.i===1?e.j():e.g=!0}function ai(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||_e("ES5").S(e,t,n),n?(o[G].P&&(co(e),fe(4)),be(t)&&(t=lo(e,t),e.l||po(e,t)),e.u&&_e("Patches").M(o[G].t,t,e.u,e.s)):t=lo(e,o,[]),co(e),e.u&&e.v(e.u,e.s),t!==Us?t:void 0}function lo(t,e,o){if(gi(e))return e;var n=e[G];if(!n)return xt(e,function(l,d){return Rs(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return po(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=yi(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),xt(a,function(l,d){return Rs(t,n,i,l,d,o,s)}),po(t,i,!1),o&&t.u&&_e("Patches").N(n,o,t.u,t.s)}return n.o}function Rs(t,e,o,n,i,a,s){if(De(i)){var l=lo(t,i,a&&e&&e.i!==3&&!Lt(e.R,n)?a.concat(n):void 0);if(Is(o,n,l),!De(l))return;t.m=!1}else s&&o.add(i);if(be(i)&&!gi(i)){if(!t.h.D&&t._<1)return;lo(t,i),e&&e.A.l||po(t,i)}}function po(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&mi(e,o)}function si(t,e){var o=t[G];return(o?Ve(o):t)[e]}function Ns(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function Ke(t){t.P||(t.P=!0,t.l&&Ke(t.l))}function ci(t){t.o||(t.o=yi(t.t))}function pi(t,e,o){var n=fi(e)?_e("MapSet").F(e,o):hi(e)?_e("MapSet").T(e,o):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:li(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,p=_r;s&&(d=[l],p=Rr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(e,o):_e("ES5").J(e,o);return(o?o.A:li()).p.push(n),n}function ap(t){return De(t)||fe(22,t),function e(o){if(!be(o))return o;var n,i=o[G],a=kt(o);if(i){if(!i.P&&(i.i<4||!_e("ES5").K(i)))return i.t;i.I=!0,n=_s(o,a),i.I=!1}else n=_s(o,a);return xt(n,function(s,l){i&&rp(i.t,s)===l||Is(n,s,e(l))}),a===3?new Set(n):n}(t)}function _s(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yi(t)}function $s(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[G];return _r.get(p,s)},set:function(p){var h=this[G];_r.set(h,s,p)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][G];if(!d.P)switch(d.i){case 5:n(d)&&Ke(d);break;case 4:o(d)&&Ke(d)}}}function o(s){for(var l=s.t,d=s.k,p=It(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==G){var m=l[f];if(m===void 0&&!Lt(l,f))return!0;var g=d[f],b=g&&g[G];if(b?b.t!==m:!ks(g,m))return!0}}var S=!!l[G];return p.length!==It(l).length+(S?0:1)}function n(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 i(s){s.g&&fe(3,JSON.stringify(Ve(s)))}var a={};np("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var g=Array(m.length),b=0;b<m.length;b++)Object.defineProperty(g,""+b,t(b,!0));return g}var S=Ds(m);delete S[G];for(var C=It(S),A=0;A<C.length;A++){var R=C[A];S[R]=t(R,f||!!S[R].enumerable)}return Object.create(Object.getPrototypeOf(m),S)}(d,s),h={i:d?5:4,A:l?l.A:li(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,G,{value:h,writable:!0}),p},S:function(s,l,d){d?De(l)&&l[G].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[G];if(f){var m=f.t,g=f.k,b=f.R,S=f.i;if(S===4)xt(g,function(v){v!==G&&(m[v]!==void 0||Lt(m,v)?b[v]||p(g[v]):(b[v]=!0,Ke(f)))}),xt(m,function(v){g[v]!==void 0||Lt(g,v)||(b[v]=!1,Ke(f))});else if(S===5){if(n(f)&&(Ke(f),b.length=!0),g.length<m.length)for(var C=g.length;C<m.length;C++)b[C]=!1;else for(var A=m.length;A<g.length;A++)b[A]=!0;for(var R=Math.min(g.length,m.length),O=0;O<R;O++)g.hasOwnProperty(O)||(b[O]=!0),b[O]===void 0&&p(g[O])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ts,Nr,bi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",sp=typeof Map<"u",cp=typeof Set<"u",Ps=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Us=bi?Symbol.for("immer-nothing"):((Ts={})["immer-nothing"]=!0,Ts),Ls=bi?Symbol.for("immer-draftable"):"__$immer_draftable",G=bi?Symbol.for("immer-state"):"__$immer_state";var lp=""+Object.prototype.constructor,It=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ds=Object.getOwnPropertyDescriptors||function(t){var e={};return It(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},ui={},_r={get:function(t,e){if(e===G)return t;var o=Ve(t);if(!Lt(o,e))return function(i,a,s){var l,d=Ns(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,o,e);var n=o[e];return t.I||!be(n)?n:n===si(t.t,e)?(ci(t),t.o[e]=pi(t.A.h,n,t)):n},has:function(t,e){return e in Ve(t)},ownKeys:function(t){return Reflect.ownKeys(Ve(t))},set:function(t,e,o){var n=Ns(Ve(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var i=si(Ve(t),e),a=i?.[G];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ks(o,i)&&(o!==void 0||Lt(t.t,e)))return!0;ci(t),Ke(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return si(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ci(t),Ke(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Ve(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){fe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){fe(12)}},Rr={};xt(_r,function(t,e){Rr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Rr.deleteProperty=function(t,e){return Rr.set.call(this,t,e,void 0)},Rr.set=function(t,e,o){return _r.set.call(this,t[0],e,o,t[0])};var dp=function(){function t(o){var n=this;this.O=Ps,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(S){var C=this;S===void 0&&(S=l);for(var A=arguments.length,R=Array(A>1?A-1:0),O=1;O<A;O++)R[O-1]=arguments[O];return d.produce(S,function(v){var E;return(E=a).call.apply(E,[C,v].concat(R))})}}var p;if(typeof a!="function"&&fe(6),s!==void 0&&typeof s!="function"&&fe(7),be(i)){var h=As(n),f=pi(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?co(h):di(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(S){return ii(h,s),ai(S,h)},function(S){throw co(h),S}):(ii(h,s),ai(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===Us&&(p=void 0),n.D&&mi(p,!0),s){var g=[],b=[];_e("Patches").M(i,p,g,b),s(g,b)}return p}fe(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(g){return i.apply(void 0,[g].concat(f))})};var s,l,d=n.produce(i,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 o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){be(o)||fe(8),De(o)&&(o=ap(o));var n=As(this),i=pi(this,o,void 0);return i[G].C=!0,di(n),i},e.finishDraft=function(o,n){var i=o&&o[G],a=i.A;return ii(a,n),ai(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Ps&&fe(20),this.O=o},e.applyPatches=function(o,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}i>-1&&(n=n.slice(i+1));var s=_e("Patches").$;return De(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),de=new dp,pp=de.produce,gg=de.produceWithPatches.bind(de),bg=de.setAutoFreeze.bind(de),xg=de.setUseProxies.bind(de),vg=de.applyPatches.bind(de),Sg=de.createDraft.bind(de),Og=de.finishDraft.bind(de),uo=pp;function Ze(t){"@babel/helpers - typeof";return Ze=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},Ze(t)}function xi(t,e){if(Ze(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(Ze(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vi(t){var e=xi(t,"string");return Ze(e)==="symbol"?e:String(e)}function Si(t,e,o){return e=vi(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ms(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,n)}return o}function fo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Ms(Object(o),!0).forEach(function(n){Si(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ms(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function oe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Bs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Oi=function(){return Math.random().toString(36).substring(7).split("").join(".")},ho={INIT:"@@redux/INIT"+Oi(),REPLACE:"@@redux/REPLACE"+Oi(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Oi()}};function up(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Ei(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(oe(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(oe(1));return o(Ei)(t,e)}if(typeof t!="function")throw new Error(oe(2));var i=t,a=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(oe(3));return a}function f(S){if(typeof S!="function")throw new Error(oe(4));if(d)throw new Error(oe(5));var C=!0;return p(),l.push(S),function(){if(C){if(d)throw new Error(oe(6));C=!1,p();var R=l.indexOf(S);l.splice(R,1),s=null}}}function m(S){if(!up(S))throw new Error(oe(7));if(typeof S.type>"u")throw new Error(oe(8));if(d)throw new Error(oe(9));try{d=!0,a=i(a,S)}finally{d=!1}for(var C=s=l,A=0;A<C.length;A++){var R=C[A];R()}return S}function g(S){if(typeof S!="function")throw new Error(oe(10));i=S,m({type:ho.REPLACE})}function b(){var S,C=f;return S={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(oe(11));function O(){R.next&&R.next(h())}O();var v=C(O);return{unsubscribe:v}}},S[Bs]=function(){return this},S}return m({type:ho.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:g},n[Bs]=b,n}function fp(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:ho.INIT});if(typeof n>"u")throw new Error(oe(12));if(typeof o(void 0,{type:ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(oe(13))})}function Ws(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(o[i]=t[i])}var a=Object.keys(o),s,l;try{fp(o)}catch(d){l=d}return function(p,h){if(p===void 0&&(p={}),l)throw l;if(0)var f;for(var m=!1,g={},b=0;b<a.length;b++){var S=a[b],C=o[S],A=p[S],R=C(A,h);if(typeof R>"u"){var O=h&&h.type;throw new Error(oe(14))}g[S]=R,m=m||R!==A}return m=m||a.length!==Object.keys(p).length,m?g:p}}function $t(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Fs(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(oe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=$t.apply(void 0,l)(i.dispatch),fo(fo({},i),{},{dispatch:a})}}}function Hs(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var zs=Hs();zs.withExtraArgument=Hs;var Ci=zs;var Zs=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),hp=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,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(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,i=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ut=function(t,e){for(var o=0,n=e.length,i=t.length;o<n;o++,i++)t[i]=e[o];return t},yp=Object.defineProperty,mp=Object.defineProperties,gp=Object.getOwnPropertyDescriptors,Gs=Object.getOwnPropertySymbols,bp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable,js=function(t,e,o){return e in t?yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},qe=function(t,e){for(var o in e||(e={}))bp.call(e,o)&&js(t,o,e[o]);if(Gs)for(var n=0,i=Gs(e);n<i.length;n++){var o=i[n];xp.call(e,o)&&js(t,o,e[o])}return t},wi=function(t,e){return mp(t,gp(e))},vp=function(t,e,o){return new Promise(function(n,i){var a=function(d){try{l(o.next(d))}catch(p){i(p)}},s=function(d){try{l(o.throw(d))}catch(p){i(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((o=o.apply(t,e)).next())})};var Sp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$t:$t.apply(null,arguments)},Wg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Op(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Ep=function(t){Zs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ut([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ut([void 0],o.concat(this))))},e}(Array),Cp=function(t){Zs(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Ut([void 0],o[0].concat(this)))):new(e.bind.apply(e,Ut([void 0],o.concat(this))))},e}(Array);function Ni(t){return be(t)?uo(t,function(){}):t}function wp(t){return typeof t=="boolean"}function Ap(){return function(e){return Rp(e)}}function Rp(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new Ep;if(o&&(wp(o)?l.push(Ci):l.push(Ci.withExtraArgument(o.extraArgument))),0){if(i)var d;if(s)var p}return l}var Ai=!0;function qs(t){var e=Ap(),o=t||{},n=o.reducer,i=n===void 0?void 0:n,a=o.middleware,s=a===void 0?e():a,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,h=p===void 0?void 0:p,f=o.enhancers,m=f===void 0?void 0:f,g;if(typeof i=="function")g=i;else if(Op(i))g=Ws(i);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 b=s;if(typeof b=="function"&&(b=b(e),!Ai&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ai&&b.some(function(v){return typeof v!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Fs.apply(void 0,b),C=$t;d&&(C=Sp(qe({trace:!Ai},typeof d=="object"&&d)));var A=new Cp(S),R=A;Array.isArray(m)?R=Ut([S],m):typeof m=="function"&&(R=m(A));var O=C.apply(void 0,R);return Ei(g,h,O)}function Ye(t,e){function o(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return qe(qe({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Ys(t){var e={},o=[],n,i={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,i},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,o,n]}function Np(t){return typeof t=="function"}function _p(t,e,o,n){o===void 0&&(o=[]);var i=typeof e=="function"?Ys(e):[e,o,n],a=i[0],s=i[1],l=i[2],d;if(Np(t))d=function(){return Ni(t())};else{var p=Ni(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var g=Ut([a[m.type]],s.filter(function(b){var S=b.matcher;return S(m)}).map(function(b){var S=b.reducer;return S}));return g.filter(function(b){return!!b}).length===0&&(g=[l]),g.reduce(function(b,S){if(S)if(De(b)){var C=b,A=S(C,m);return A===void 0?b:A}else{if(be(b))return uo(b,function(R){return S(R,m)});var A=S(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},f)}return h.getInitialState=d,h}function Tp(t,e){return t+"/"+e}function Xs(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:Ni(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(h){var f=n[h],m=Tp(e,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,a[h]=g,s[m]=g,l[h]=b?Ye(m,b):Ye(m)});function d(){var h=typeof t.extraReducers=="function"?Ys(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,S=h[2],C=S===void 0?void 0:S,A=qe(qe({},m),s);return _p(o,function(R){for(var O in A)R.addCase(O,A[O]);for(var v=0,E=b;v<E.length;v++){var N=E[v];R.addMatcher(N.matcher,N.reducer)}C&&R.addDefaultCase(C)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var Pp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Lp=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Pp[Math.random()*64|0];return e},Ip=["name","message","stack","code"],Ri=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Vs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),kp=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=Ip;o<n.length;o++){var i=n[o];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Gg=function(){function t(e,o,n){var i=Ye(e+"/fulfilled",function(h,f,m,g){return{payload:h,meta:wi(qe({},g||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=Ye(e+"/pending",function(h,f,m){return{payload:void 0,meta:wi(qe({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=Ye(e+"/rejected",function(h,f,m,g,b){return{payload:g,error:(n&&n.serializeError||kp)(h||"Rejected"),meta:wi(qe({},b||{}),{arg:m,requestId:f,rejectedWithValue:!!g,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(f,m,g){var b=n?.idGenerator?n.idGenerator(h):Lp(),S=new d,C,A=!1;function R(v){C=v,S.abort()}var O=function(){return vp(this,null,function(){var v,E,N,I,M,D,T;return hp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),I=(v=n?.condition)==null?void 0:v.call(n,h,{getState:m,extra:g}),Up(I)?[4,I]:[3,2];case 1:I=y.sent(),y.label=2;case 2:if(I===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,M=new Promise(function(x,_){return S.signal.addEventListener("abort",function(){return _({name:"AbortError",message:C||"Aborted"})})}),f(a(b,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:b,arg:h},{getState:m,extra:g}))),[4,Promise.race([M,Promise.resolve(o(h,{dispatch:f,getState:m,extra:g,requestId:b,signal:S.signal,abort:R,rejectWithValue:function(x,_){return new Ri(x,_)},fulfillWithValue:function(x,_){return new Vs(x,_)}})).then(function(x){if(x instanceof Ri)throw x;return x instanceof Vs?i(x.payload,b,h,x.meta):i(x,b,h)})])];case 3:return N=y.sent(),[3,5];case 4:return D=y.sent(),N=D instanceof Ri?s(null,b,h,D.payload,D.meta):s(D,b,h),[3,5];case 5:return T=n&&!n.dispatchConditionRejection&&s.match(N)&&N.meta.condition,T||f(N),[2,N]}})})}();return Object.assign(O,{abort:R,requestId:b,arg:h,unwrap:function(){return O.then($p)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function $p(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Up(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Js="listener",Qs="completed",ec="cancelled",jg="task-"+ec,Vg="task-"+Qs,Kg=Js+"-"+ec,Zg=Js+"-"+Qs;var _i="listenerMiddleware";var qg=Ye(_i+"/add"),Yg=Ye(_i+"/removeAll"),Xg=Ye(_i+"/remove");var Ks,Jg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Ks||(Ks=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Dp=function(t){return function(e){setTimeout(e,t)}},Qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Dp(10);$s();window.ftReduxStores||(window.ftReduxStores={});var Ti=class t extends ft{static get(e){var o;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(gt(a))return a;if(i==null)return;let s=Xs({...i,reducers:(o=i.reducers)!==null&&o!==void 0?o:{}}),l=qs({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[i.name]=new t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ar,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[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 Mp(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))gt(e)&&e.clear()}var ki={};W(ki,{scrollHelper:()=>Bp});var Li,yo=new Map,Ii=class{lock(e,o){if(o){let n=yo.get(o);if(n==null||n===e)return yo.set(o,e),o}}release(e,o){o&&yo.get(o)===e&&yo.delete(o)}findFirstScrollableParent(e){let o,n=i=>{var a;i.stopPropagation();let s,l;for(let d of i.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)}o=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,i;let a=0;for(;o&&o.offsetParent!==e.offsetParent;)a+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return a+((i=o?.offsetTop)!==null&&i!==void 0?i:0)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,l=ur(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(o?.position,l)*(a-s)+s;n.scrollTo({behavior:o?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Li=window.FluidTopicsScrollHelper)!==null&&Li!==void 0?Li:new Ii;var Bp=window.FluidTopicsScrollHelper;var $i={};W($i,{shadowQuerySelector:()=>Wp,shadowQuerySelectorAll:()=>Fp});function Wp(t,e,...o){var n;let i=t.querySelector(e);for(let a of o)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Fp(t,e,...o){let n=[...t.querySelectorAll(e)];for(let i of o)n=n.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return n}var Ui={};W(Ui,{SearchPlaceConverter:()=>bo,SearchPlaceQueryParams:()=>H,isSearchPlaceQueryParams:()=>wc,serializeRequest:()=>Gp});var Hp=al(rc(),1);var oc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(oc||(oc={}));var nc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(nc||(nc={}));var ic;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(ic||(ic={}));var ac;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(ac||(ac={}));var sc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(sc||(sc={}));var cc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(cc||(cc={}));var lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(lc||(lc={}));var dc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(dc||(dc={}));var pc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(pc||(pc={}));var uc;(function(t){t.ASC="ASC",t.DESC="DESC"})(uc||(uc={}));var fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(fc||(fc={}));var hc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(hc||(hc={}));var vc=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var yc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(yc||(yc={}));var mc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(mc||(mc={}));var gc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(gc||(gc={}));var Tr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Tr||(Tr={}));var Sc=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(bc||(bc={}));var xc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(xc||(xc={}));var Q;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(Q||(Q={}));var Oc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Oc||(Oc={}));var Ec;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ec||(Ec={}));var gb={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN],[Q.DEVELOPER]:[Q.BETA_USER,Q.DEBUG_USER]};function zp(t){return`"${t}"`}function Cc(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Gp(t,e){return new bo(t).serialize(e)}var H;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(H||(H={}));var jp=new Set(Object.values(H));function wc(t){return jp.has(t)}var bo=class{constructor(e,o={},n=20,i=!1,a="en-US"){this.baseUrl=e,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=i,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,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).toString(),i=o==null||o.trim().length===0,a=new URL(i?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return a.search=n,a.toString()}toURLSearchParams(e,o=!1){var n,i,a,s,l,d,p,h,f,m,g,b;let S=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&S.append(H.LOCALE,e.contentLocale):S.append(H.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&S.append(H.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&S.append(H.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&S.append(H.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&S.append(H.SORT,"last_update");let C=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(v=>v.valueFilter))!==null&&s!==void 0?s:[];if(C.length>0){let v=C.map(E=>{var N,I;let M=((I=(N=E.valueFilter)===null||N===void 0?void 0:N.values)!==null&&I!==void 0?I:[]).map(D=>this.escapeFilters(D)).map(D=>encodeURIComponent(zp(Cc(D)))).join("_");return`${E.key}~${M}`}).join("*");S.append(H.VALUE_FILTERS,v)}let A=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(v=>v.dateFilter))!==null&&d!==void 0?d:[];if(A.length>0){let v=A.map(E=>{var N;return`${E.key}~${(N=E.dateFilter)===null||N===void 0?void 0:N.type.toLowerCase()}`}).join("*");S.append(H.DATE_FILTERS,v)}let R=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(v=>v.rangeFilter))!==null&&h!==void 0?h:[];if(R.length>0){let v=R.map(E=>{var N,I;return`${E.key}~${(N=E.rangeFilter)===null||N===void 0?void 0:N.from}_${(I=E.rangeFilter)===null||I===void 0?void 0:I.to}`}).join("*");S.append(H.RANGE_FILTERS,v)}let O=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let v in O)S.append(v,O[v]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((b=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&b!==void 0?b:this.defaultPerPage)!=this.defaultPerPage&&S.append(H.PER_PAGE,String(e.paging.perPage)),S}parse(e){var o;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(o=this.scopeMapping[a])!==null&&o!==void 0?o:i.scope}}fromURLSearchParams(e){var o,n,i,a,s,l,d,p;let h=e.get(H.LOCALE)==="all"?void 0:e.get(H.LOCALE),f=((o=e.get(H.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(H.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),g=(i=e.get(H.SCOPE))!==null&&i!==void 0?i:"default",b=+((a=e.get(H.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),S={};for(let C of e.keys())wc(C)||(S[C]=e.get(C));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(H.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[g])!==null&&l!==void 0?l:"DEFAULT",virtualField:vc(f)?f:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:ur(1,isNaN(b)?this.defaultPerPage:b,1e3)},otherQueryParams:S}}parseCompatFilters(e){var o,n,i,a,s,l;let d=[];return e.has(H.FILTERS)&&(d=this.parseValueFilters((o=e.get(H.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(H.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(H.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(H.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(H.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(H.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Cc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Tr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[o,n,i]of this.filtersEscapeMapping)e=e.replace(i,o);return e}parseLegacyPeriodFilter(e){if(Sc(e))return[{key:"ft:lastEdition",dateFilter:{type:Tr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var Di={};W(Di,{toFtFormComponent:()=>Vp});var xo=Symbol("elementInternals");function Vp(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[xo].form}constructor(...i){super(i),this[xo]=this.attachInternals(),this[xo].role=e}setFormValue(i){this[xo].setFormValue(i)}}return o}var Bi={};W(Bi,{DateFormatter:()=>Mi});var Mi=class{static format(e,o,n,i){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,i)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var Wi,Fi,Hi,zi,Gi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Hi=(Fi=(Wi=window.safari)===null||Wi===void 0?void 0:Wi.pushNotification)===null||Fi===void 0?void 0:Fi.toString())!==null&&Hi!==void 0?Hi:"")==="[object SafariRemoteNotification]",Kp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(zi=window.ftGlobals)!==null&&zi!==void 0?zi:{lit:Uo,litDecorators:Mo,litRepeat:Bo,litClassMap:Wo,litStyleMap:Fo,litUnsafeHTML:zo,wcUtils:{...Xo,...jo,...Qo,...Bi,...en,...on,...In,...qo,...Zn,...Ln,...Jn,...Yn,...vs,...tn,...ei,...ri,...Os,...ni,...Pi,...qn,...ki,...$i,...Ui,...Di,isSafari:Gi,isTouchScreen:Kp,setVariable:re}};var Ac=r.extend("--ft-ripple-color","",F.colorContent),Me={color:Ac,backgroundColor:r.extend("--ft-ripple-background-color","",Ac),opacityContentOnSurfacePressed:r.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Rc=r.extend("--ft-ripple-color","",F.colorPrimary),Nc={color:Rc,backgroundColor:r.extend("--ft-ripple-background-color","",Rc)},_c=r.extend("--ft-ripple-color","",F.colorSecondary),Tc={color:_c,backgroundColor:r.extend("--ft-ripple-background-color","",_c)},Pc=$`
51
51
  :host {
52
52
  display: contents;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-switch",
3
- "version": "1.2.15",
3
+ "version": "1.2.16",
4
4
  "description": "two-state",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.2.15",
23
- "@fluid-topics/ft-ripple": "1.2.15",
24
- "@fluid-topics/ft-tooltip": "1.2.15",
25
- "@fluid-topics/ft-typography": "1.2.15",
26
- "@fluid-topics/ft-wc-utils": "1.2.15",
22
+ "@fluid-topics/ft-icon": "1.2.16",
23
+ "@fluid-topics/ft-ripple": "1.2.16",
24
+ "@fluid-topics/ft-tooltip": "1.2.16",
25
+ "@fluid-topics/ft-typography": "1.2.16",
26
+ "@fluid-topics/ft-wc-utils": "1.2.16",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "158c47a3701bd302f5e9ed9103d9709158596371"
29
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
30
30
  }