@fluid-topics/ft-snap-scroll 1.2.14 → 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 Ps={};var ma={};z(ma,{ParametrizedLabelResolver:()=>ya});var ya=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,a;t=this.resolvePluralKey(t,o);let i=(a=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&a!==void 0?a:"";return e.replaceParameters(i,...o)}static replaceParameters(t,...o){return o.forEach((n,a)=>t=t.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let a=`${String(t)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=a=>o?.includes("date")?t.toLocaleDateString(a):o?.includes("time")?t.toLocaleTimeString(a):t.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var za={};z(za,{FtCommandQueue:()=>kr,FtLitElementRedux:()=>Fe,FtReduxStore:()=>Ha,clearAllStores:()=>Yp,isFtReduxStore:()=>we,redux:()=>up,reduxEventListener:()=>fp,reduxReactive:()=>pp});var pp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},up=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:vr,attribute:!1,...t};P(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}},fp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var kr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function we(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ls,Is,$s,vo=Symbol("internalReduxEventsUnsubscribers"),Qt=Symbol("internalStoresUnsubscribers"),Re=Symbol("internalStores"),Fe=class extends j{constructor(){super(...arguments),this[Ls]=new Map,this[Is]=new Map,this[$s]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Re].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Re].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Re].get(t)}addStore(t,o){var n;o=(n=o??(we(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Re].delete(o)}setupStore(t,o){this[Re].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Re].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(t.store);a&&(t.store?this[Qt].has(t.store):this[Qt].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[Qt].set(t,o.subscribe(()=>this.updateFromStores())),we(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[vo].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qt].forEach((t,o)=>this.unsubscribeFromStore(o)),this[vo].forEach(t=>t()),this[vo]=[]}unsubscribeFromStore(t){this[Qt].has(t)&&this[Qt].get(t)(),this[Qt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ls=Qt,Is=Re,$s=vo;Fe.reduxProperties=new Map;Fe.reduxReactiveProperties=new Set;Fe.reduxEventListeners=new Map;function bt(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gt(e){return!!e&&!!e[K]}function Ot(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Sp}(e)||Array.isArray(e)||!!e[Ws]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ws])||Aa(e)||wa(e))}function Ne(e,t,o){o===void 0&&(o=!1),ze(e)===0?(o?Object.keys:He)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function ze(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Aa(e)?2:wa(e)?3:0}function We(e,t){return ze(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hp(e,t){return ze(e)===2?e.get(t):e[t]}function Hs(e,t,o){var n=ze(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function zs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Aa(e){return xp&&e instanceof Map}function wa(e){return vp&&e instanceof Set}function te(e){return e.o||e.t}function Ra(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=js(e);delete t[K];for(var o=He(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Na(e,t){return t===void 0&&(t=!1),_a(e)||Gt(e)||!Ot(e)||(ze(e)>1&&(e.set=e.add=e.clear=e.delete=yp),Object.freeze(e),t&&Ne(e,function(o,n){return Na(n,!0)},!0)),e}function yp(){bt(2)}function _a(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var t=Ca[e];return t||bt(18,e),t}function mp(e,t){Ca[e]||(Ca[e]=t)}function Sa(){return Ur}function ga(e,t){t&&(Pt("Patches"),e.u=[],e.s=[],e.v=t)}function So(e){Oa(e),e.p.forEach(gp),e.p=null}function Oa(e){e===Ur&&(Ur=e.l)}function ks(e){return Ur={p:[],l:Ur,h:e,m:!0,_:0}}function gp(e){var t=e[K];t.i===0||t.i===1?t.j():t.g=!0}function ba(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Pt("ES5").S(t,e,n),n?(o[K].P&&(So(t),bt(4)),Ot(e)&&(e=Oo(t,e),t.l||Eo(t,e)),t.u&&Pt("Patches").M(o[K].t,e,t.u,t.s)):e=Oo(t,o,[]),So(t),t.u&&t.v(t.u,t.s),e!==Vs?e:void 0}function Oo(e,t,o){if(_a(t))return t;var n=t[K];if(!n)return Ne(t,function(l,d){return Ds(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ra(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Ne(i,function(l,d){return Ds(e,n,a,l,d,o,s)}),Eo(e,a,!1),o&&e.u&&Pt("Patches").N(n,o,e.u,e.s)}return n.o}function Ds(e,t,o,n,a,i,s){if(Gt(a)){var l=Oo(e,a,i&&t&&t.i!==3&&!We(t.R,n)?i.concat(n):void 0);if(Hs(o,n,l),!Gt(l))return;e.m=!1}else s&&o.add(a);if(Ot(a)&&!_a(a)){if(!e.h.D&&e._<1)return;Oo(e,a),t&&t.A.l||Eo(e,a)}}function Eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Na(t,o)}function xa(e,t){var o=e[K];return(o?te(o):e)[t]}function Us(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ee(e){e.P||(e.P=!0,e.l&&ee(e.l))}function va(e){e.o||(e.o=Ra(e.t))}function Ea(e,t,o){var n=Aa(t)?Pt("MapSet").F(t,o):wa(t)?Pt("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Sa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Br;s&&(d=[l],p=Dr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,o):Pt("ES5").J(t,o);return(o?o.A:Sa()).p.push(n),n}function bp(e){return Gt(e)||bt(22,e),function t(o){if(!Ot(o))return o;var n,a=o[K],i=ze(o);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=Bs(o,i),a.I=!1}else n=Bs(o,i);return Ne(n,function(s,l){a&&hp(a.t,s)===l||Hs(n,s,t(l))}),i===3?new Set(n):n}(e)}function Bs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ra(e)}function Gs(){function e(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[K];return Br.get(p,s)},set:function(p){var h=this[K];Br.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][K];if(!d.P)switch(d.i){case 5:n(d)&&ee(d);break;case 4:o(d)&&ee(d)}}}function o(s){for(var l=s.t,d=s.k,p=He(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==K){var m=l[f];if(m===void 0&&!We(l,f))return!0;var b=d[f],x=b&&b[K];if(x?x.t!==m:!zs(b,m))return!0}}var O=!!l[K];return p.length!==He(l).length+(O?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 a(s){s.g&&bt(3,JSON.stringify(te(s)))}var i={};mp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=js(m);delete O[K];for(var R=He(O),_=0;_<R.length;_++){var T=R[_];O[T]=e(T,f||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:Sa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:h,writable:!0}),p},S:function(s,l,d){d?Gt(l)&&l[K].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[K];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)Ne(b,function(S){S!==K&&(m[S]!==void 0||We(m,S)?x[S]||p(b[S]):(x[S]=!0,ee(f)))}),Ne(m,function(S){b[S]!==void 0||We(b,S)||(x[S]=!1,ee(f))});else if(O===5){if(n(f)&&(ee(f),x.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)x[R]=!1;else for(var _=m.length;_<b.length;_++)x[_]=!0;for(var T=Math.min(b.length,m.length),E=0;E<T;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ms,Ur,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xp=typeof Map<"u",vp=typeof Set<"u",Fs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Vs=Ta?Symbol.for("immer-nothing"):((Ms={})["immer-nothing"]=!0,Ms),Ws=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",K=Ta?Symbol.for("immer-state"):"__$immer_state";var Sp=""+Object.prototype.constructor,He=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,js=Object.getOwnPropertyDescriptors||function(e){var t={};return He(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Ca={},Br={get:function(e,t){if(t===K)return e;var o=te(e);if(!We(o,t))return function(a,i,s){var l,d=Us(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ot(n)?n:n===xa(e.t,t)?(va(e),e.o[t]=Ea(e.A.h,n,e)):n},has:function(e,t){return t in te(e)},ownKeys:function(e){return Reflect.ownKeys(te(e))},set:function(e,t,o){var n=Us(te(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=xa(te(e),t),i=a?.[K];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(zs(o,a)&&(o!==void 0||We(e.t,t)))return!0;va(e),ee(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return xa(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,va(e),ee(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=te(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bt(12)}},Dr={};Ne(Br,function(e,t){Dr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Dr.deleteProperty=function(e,t){return Dr.set.call(this,e,t,void 0)},Dr.set=function(e,t,o){return Br.set.call(this,e[0],t,o,e[0])};var Op=function(){function e(o){var n=this;this.O=Fs,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var R=this;O===void 0&&(O=l);for(var _=arguments.length,T=Array(_>1?_-1:0),E=1;E<_;E++)T[E-1]=arguments[E];return d.produce(O,function(S){var C;return(C=i).call.apply(C,[R,S].concat(T))})}}var p;if(typeof i!="function"&&bt(6),s!==void 0&&typeof s!="function"&&bt(7),Ot(a)){var h=ks(n),f=Ea(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?So(h):Oa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return ga(h,s),ba(O,h)},function(O){throw So(h),O}):(ga(h,s),ba(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Vs&&(p=void 0),n.D&&Na(p,!0),s){var b=[],x=[];Pt("Patches").M(a,p,b,x),s(b,x)}return p}bt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="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(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,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 t=e.prototype;return t.createDraft=function(o){Ot(o)||bt(8),Gt(o)&&(o=bp(o));var n=ks(this),a=Ea(this,o,void 0);return a[K].C=!0,Oa(n),a},t.finishDraft=function(o,n){var a=o&&o[K],i=a.A;return ga(i,n),ba(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Fs&&bt(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Pt("Patches").$;return Gt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),gt=new Op,Ep=gt.produce,Ng=gt.produceWithPatches.bind(gt),_g=gt.setAutoFreeze.bind(gt),Tg=gt.setUseProxies.bind(gt),Pg=gt.applyPatches.bind(gt),Lg=gt.createDraft.bind(gt),Ig=gt.finishDraft.bind(gt),Co=Ep;function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function Pa(e,t){if(re(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(re(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function La(e){var t=Pa(e,"string");return re(t)==="symbol"?t:String(t)}function Ia(e,t,o){return t=La(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ks(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Ao(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Ks(Object(o),!0).forEach(function(n){Ia(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ks(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ct(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},wo={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function Cp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ka(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ct(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ct(1));return o(ka)(e,t)}if(typeof e!="function")throw new Error(ct(2));var a=e,i=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ct(3));return i}function f(O){if(typeof O!="function")throw new Error(ct(4));if(d)throw new Error(ct(5));var R=!0;return p(),l.push(O),function(){if(R){if(d)throw new Error(ct(6));R=!1,p();var T=l.indexOf(O);l.splice(T,1),s=null}}}function m(O){if(!Cp(O))throw new Error(ct(7));if(typeof O.type>"u")throw new Error(ct(8));if(d)throw new Error(ct(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var R=s=l,_=0;_<R.length;_++){var T=R[_];T()}return O}function b(O){if(typeof O!="function")throw new Error(ct(10));a=O,m({type:wo.REPLACE})}function x(){var O,R=f;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ct(11));function E(){T.next&&T.next(h())}E();var S=R(E);return{unsubscribe:S}}},O[Zs]=function(){return this},O}return m({type:wo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Zs]=x,n}function Ap(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:wo.INIT});if(typeof n>"u")throw new Error(ct(12));if(typeof o(void 0,{type:wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ct(13))})}function qs(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),s,l;try{Ap(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,b={},x=0;x<i.length;x++){var O=i[x],R=o[O],_=p[O],T=R(_,h);if(typeof T>"u"){var E=h&&h.type;throw new Error(ct(14))}b[O]=T,m=m||T!==_}return m=m||i.length!==Object.keys(p).length,m?b:p}}function Ge(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ys(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ct(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return i=Ge.apply(void 0,l)(a.dispatch),Ao(Ao({},a),{},{dispatch:i})}}}function Xs(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var Js=Xs();Js.withExtraArgument=Xs;var Da=Js;var oc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),wp=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,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,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ve=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Rp=Object.defineProperty,Np=Object.defineProperties,_p=Object.getOwnPropertyDescriptors,Qs=Object.getOwnPropertySymbols,Tp=Object.prototype.hasOwnProperty,Pp=Object.prototype.propertyIsEnumerable,tc=function(e,t,o){return t in e?Rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},oe=function(e,t){for(var o in t||(t={}))Tp.call(t,o)&&tc(e,o,t[o]);if(Qs)for(var n=0,a=Qs(t);n<a.length;n++){var o=a[n];Pp.call(t,o)&&tc(e,o,t[o])}return e},Ua=function(e,t){return Np(e,_p(t))},Lp=function(e,t,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(e,t)).next())})};var Ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ge:Ge.apply(null,arguments)},Xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function $p(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var kp=function(e){oc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ve([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ve([void 0],o.concat(this))))},t}(Array),Dp=function(e){oc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ve([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ve([void 0],o.concat(this))))},t}(Array);function Fa(e){return Ot(e)?Co(e,function(){}):e}function Up(e){return typeof e=="boolean"}function Bp(){return function(t){return Mp(t)}}function Mp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new kp;if(o&&(Up(o)?l.push(Da):l.push(Da.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var Ba=!0;function nc(e){var t=Bp(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?t():i,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,b;if(typeof a=="function")b=a;else if($p(a))b=qs(a);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 x=s;if(typeof x=="function"&&(x=x(t),!Ba&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ba&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ys.apply(void 0,x),R=Ge;d&&(R=Ip(oe({trace:!Ba},typeof d=="object"&&d)));var _=new Dp(O),T=_;Array.isArray(m)?T=Ve([O],m):typeof m=="function"&&(T=m(_));var E=R.apply(void 0,T);return ka(b,h,E)}function ne(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return oe(oe({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function ac(e){var t={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Fp(e){return typeof e=="function"}function Wp(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?ac(t):[t,o,n],i=a[0],s=a[1],l=a[2],d;if(Fp(e))d=function(){return Fa(e())};else{var p=Fa(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=Ve([i[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Gt(x)){var R=x,_=O(R,m);return _===void 0?x:_}else{if(Ot(x))return Co(x,function(T){return O(T,m)});var _=O(x,m);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},f)}return h.getInitialState=d,h}function Hp(e,t){return e+"/"+t}function ic(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Fa(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Hp(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?ne(m,x):ne(m)});function d(){var h=typeof e.extraReducers=="function"?ac(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],R=O===void 0?void 0:O,_=oe(oe({},m),s);return Wp(o,function(T){for(var E in _)T.addCase(E,_[E]);for(var S=0,C=x;S<C.length;S++){var L=C[S];T.addMatcher(L.matcher,L.reducer)}R&&T.addDefaultCase(R)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var zp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=zp[Math.random()*64|0];return t},Vp=["name","message","stack","code"],Ma=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ec=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),jp=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Vp;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},eb=function(){function e(t,o,n){var a=ne(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Ua(oe({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ne(t+"/pending",function(h,f,m){return{payload:void 0,meta:Ua(oe({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ne(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||jp)(h||"Rejected"),meta:Ua(oe({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,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,b){var x=n?.idGenerator?n.idGenerator(h):Gp(),O=new d,R,_=!1;function T(S){R=S,O.abort()}var E=function(){return Lp(this,null,function(){var S,C,L,U,W,F,$;return wp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),Zp(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(x,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:T,rejectWithValue:function(v,I){return new Ma(v,I)},fulfillWithValue:function(v,I){return new ec(v,I)}})).then(function(v){if(v instanceof Ma)throw v;return v instanceof ec?a(v.payload,x,h,v.meta):a(v,x,h)})])];case 3:return L=y.sent(),[3,5];case 4:return F=y.sent(),L=F instanceof Ma?s(null,x,h,F.payload,F.meta):s(F,x,h),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(L)&&L.meta.condition,$||f(L),[2,L]}})})}();return Object.assign(E,{abort:T,requestId:x,arg:h,unwrap:function(){return E.then(Kp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Kp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sc="listener",cc="completed",lc="cancelled",rb="task-"+lc,ob="task-"+cc,nb=sc+"-"+lc,ab=sc+"-"+cc;var Wa="listenerMiddleware";var ib=ne(Wa+"/add"),sb=ne(Wa+"/removeAll"),cb=ne(Wa+"/remove");var rc,lb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rc||(rc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},qp=function(e){return function(t){setTimeout(t,e)}},db=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qp(10);Gs();window.ftReduxStores||(window.ftReduxStores={});var Ha=class e extends Se{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(we(i))return i;if(a==null)return;let s=ic({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=nc({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[a.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,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(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Yp(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))we(t)&&t.clear()}var ja={};z(ja,{scrollHelper:()=>Xp});var Ga,Ro=new Map,Va=class{lock(t,o){if(o){let n=Ro.get(o);if(n==null||n===t)return Ro.set(o,t),o}}release(t,o){o&&Ro.get(o)===t&&Ro.delete(o)}findFirstScrollableParent(t){let o,n=a=>{var i;a.stopPropagation();let s,l;for(let d of a.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=(i=s??l)!==null&&i!==void 0?i:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){let n=0;for(;o&&o.offsetParent!==t.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,t),i=a-n.clientHeight+t.clientHeight,s=a,l=Sr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ga=window.FluidTopicsScrollHelper)!==null&&Ga!==void 0?Ga:new Va;var Xp=window.FluidTopicsScrollHelper;var Ka={};z(Ka,{shadowQuerySelector:()=>Jp,shadowQuerySelectorAll:()=>Qp});function Jp(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Qp(e,t,...o){let n=[...e.querySelectorAll(t)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var Za={};z(Za,{SearchPlaceConverter:()=>To,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>$c,serializeRequest:()=>ru});var tu=vl(pc(),1);var uc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(uc||(uc={}));var fc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(fc||(fc={}));var hc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(hc||(hc={}));var yc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(yc||(yc={}));var mc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(mc||(mc={}));var gc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(gc||(gc={}));var bc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(bc||(bc={}));var xc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(xc||(xc={}));var vc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(vc||(vc={}));var Sc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Sc||(Sc={}));var Oc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Oc||(Oc={}));var Ec;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ec||(Ec={}));var _c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var Cc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Cc||(Cc={}));var Ac;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ac||(Ac={}));var wc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(wc||(wc={}));var Mr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Mr||(Mr={}));var Tc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Rc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Rc||(Rc={}));var Nc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Nc||(Nc={}));var ot;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(ot||(ot={}));var Pc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Pc||(Pc={}));var Lc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Lc||(Lc={}));var Nb={[ot.PERSONAL_BOOK_SHARE_USER]:[ot.PERSONAL_BOOK_USER],[ot.HTML_EXPORT_USER]:[ot.PERSONAL_BOOK_USER],[ot.PDF_EXPORT_USER]:[ot.PERSONAL_BOOK_USER],[ot.KHUB_ADMIN]:[ot.CONTENT_PUBLISHER],[ot.ADMIN]:[ot.KHUB_ADMIN,ot.USERS_ADMIN,ot.PORTAL_ADMIN],[ot.DEVELOPER]:[ot.BETA_USER,ot.DEBUG_USER]};function eu(e){return`"${e}"`}function Ic(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function ru(e,t){return new To(e).serialize(t)}var G;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(G||(G={}));var ou=new Set(Object.values(G));function $c(e){return ou.has(e)}var To=class{constructor(t,o={},n=20,a=!1,i="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(t,o=!1){var n,a,i,s,l,d,p,h,f,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(G.LOCALE,t.contentLocale):O.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(G.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(G.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(G.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((a=t.sort)===null||a===void 0?void 0:a.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(G.SORT,"last_update");let R=(s=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(R.length>0){let S=R.map(C=>{var L,U;let W=((U=(L=C.valueFilter)===null||L===void 0?void 0:L.values)!==null&&U!==void 0?U:[]).map(F=>this.escapeFilters(F)).map(F=>encodeURIComponent(eu(Ic(F)))).join("_");return`${C.key}~${W}`}).join("*");O.append(G.VALUE_FILTERS,S)}let _=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(_.length>0){let S=_.map(C=>{var L;return`${C.key}~${(L=C.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");O.append(G.DATE_FILTERS,S)}let T=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(T.length>0){let S=T.map(C=>{var L,U;return`${C.key}~${(L=C.rangeFilter)===null||L===void 0?void 0:L.from}_${(U=C.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");O.append(G.RANGE_FILTERS,S)}let E=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let S in E)O.append(S,E[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(G.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(t){var o,n,a,i,s,l,d,p;let h=t.get(G.LOCALE)==="all"?void 0:t.get(G.LOCALE),f=((o=t.get(G.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(G.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=t.get(G.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=t.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let R of t.keys())$c(R)||(O[R]=t.get(R));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(G.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:_c(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(t),facets:[],paging:{page:1,perPage:Sr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,a,i,s,l;let d=[];return t.has(G.FILTERS)&&(d=this.parseValueFilters((o=t.get(G.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(G.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=t.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=t.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Ic).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Mr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replaceAll(n,a);return t}unescapeFilterValue(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replace(a,o);return t}parseLegacyPeriodFilter(t){if(Tc(t))return[{key:"ft:lastEdition",dateFilter:{type:Mr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ya={};z(Ya,{toFtFormComponent:()=>qa});var Po=Symbol("elementInternals");function qa(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Po].form}constructor(...a){super(a),this[Po]=this.attachInternals(),this[Po].role=t}setFormValue(a){this[Po].setFormValue(a)}}return o}var Ja={};z(Ja,{DateFormatter:()=>Xa});var Xa=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,a)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var Qa,ti,ei,ri,Fr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ei=(ti=(Qa=window.safari)===null||Qa===void 0?void 0:Qa.pushNotification)===null||ti===void 0?void 0:ti.toString())!==null&&ei!==void 0?ei:"")==="[object SafariRemoteNotification]",nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ri=window.ftGlobals)!==null&&ri!==void 0?ri:{lit:qo,litDecorators:Xo,litRepeat:Jo,litClassMap:Qo,litStyleMap:tn,litUnsafeHTML:rn,wcUtils:{...pn,...nn,...fn,...Ja,...hn,...gn,...jn,...ln,...sa,...Vn,...pa,...la,..._s,...yn,...fa,...ha,...Ps,...ma,...za,...ca,...ja,...Ka,...Za,...Ya,isSafari:Fr,isTouchScreen:nu,setVariable:A}};var kc=r.extend("--ft-ripple-color","",V.colorContent),w={color:kc,backgroundColor:r.extend("--ft-ripple-background-color","",kc),opacityContentOnSurfacePressed:r.external(V.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(V.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(V.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(V.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Dc=r.extend("--ft-ripple-color","",V.colorPrimary),Uc={color:Dc,backgroundColor:r.extend("--ft-ripple-background-color","",Dc)},Bc=r.extend("--ft-ripple-color","",V.colorSecondary),Mc={color:Bc,backgroundColor:r.extend("--ft-ripple-background-color","",Bc)},Fc=D`
50
+ `;var Ps={};var ma={};z(ma,{ParametrizedLabelResolver:()=>ya});var ya=class e{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var n,a;t=this.resolvePluralKey(t,o);let i=(a=(n=this.labels[t])!==null&&n!==void 0?n:this.defaultLabels[t])!==null&&a!==void 0?a:"";return e.replaceParameters(i,...o)}static replaceParameters(t,...o){return o.forEach((n,a)=>t=t.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>e.formatValue(n,s))),t}resolvePluralKey(t,o){for(let n of o)if(typeof n=="number"){let a=`${String(t)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return t}static formatValue(t,o){return t instanceof Date?e.formatDate(t,o):t??""}static formatDate(t,o){let n=a=>o?.includes("date")?t.toLocaleDateString(a):o?.includes("time")?t.toLocaleTimeString(a):t.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var za={};z(za,{FtCommandQueue:()=>kr,FtLitElementRedux:()=>Fe,FtReduxStore:()=>Ha,clearAllStores:()=>Yp,isFtReduxStore:()=>we,redux:()=>up,reduxEventListener:()=>fp,reduxReactive:()=>pp});var pp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},up=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:vr,attribute:!1,...t};P(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=t.selector)!==null&&a!==void 0?a:l=>l[n],store:t.store})}},fp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var kr=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(n=>n.type===t);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function we(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ls,Is,$s,vo=Symbol("internalReduxEventsUnsubscribers"),Qt=Symbol("internalStoresUnsubscribers"),Re=Symbol("internalStores"),Fe=class extends j{constructor(){super(...arguments),this[Ls]=new Map,this[Is]=new Map,this[$s]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Re].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Re].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Re].get(t)}addStore(t,o){var n;o=(n=o??(we(t)?t.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[Re].delete(o)}setupStore(t,o){this[Re].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Re].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(t.store);a&&(t.store?this[Qt].has(t.store):this[Qt].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[Qt].set(t,o.subscribe(()=>this.updateFromStores())),we(o)&&o.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,i)=>{if(typeof this[i]=="function"&&(!a.store||o.name===a.store)){let s=l=>this[i](l);o.addEventListener(a.eventName,s),this[vo].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qt].forEach((t,o)=>this.unsubscribeFromStore(o)),this[vo].forEach(t=>t()),this[vo]=[]}unsubscribeFromStore(t){this[Qt].has(t)&&this[Qt].get(t)(),this[Qt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ls=Qt,Is=Re,$s=vo;Fe.reduxProperties=new Map;Fe.reduxReactiveProperties=new Set;Fe.reduxEventListeners=new Map;function bt(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gt(e){return!!e&&!!e[K]}function Ot(e){var t;return!!e&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Sp}(e)||Array.isArray(e)||!!e[Ws]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ws])||Aa(e)||wa(e))}function Ne(e,t,o){o===void 0&&(o=!1),ze(e)===0?(o?Object.keys:He)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function ze(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Aa(e)?2:wa(e)?3:0}function We(e,t){return ze(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hp(e,t){return ze(e)===2?e.get(t):e[t]}function Hs(e,t,o){var n=ze(e);n===2?e.set(t,o):n===3?e.add(o):e[t]=o}function zs(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Aa(e){return xp&&e instanceof Map}function wa(e){return vp&&e instanceof Set}function te(e){return e.o||e.t}function Ra(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=js(e);delete t[K];for(var o=He(t),n=0;n<o.length;n++){var a=o[n],i=t[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function Na(e,t){return t===void 0&&(t=!1),_a(e)||Gt(e)||!Ot(e)||(ze(e)>1&&(e.set=e.add=e.clear=e.delete=yp),Object.freeze(e),t&&Ne(e,function(o,n){return Na(n,!0)},!0)),e}function yp(){bt(2)}function _a(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var t=Ca[e];return t||bt(18,e),t}function mp(e,t){Ca[e]||(Ca[e]=t)}function Sa(){return Ur}function ga(e,t){t&&(Pt("Patches"),e.u=[],e.s=[],e.v=t)}function So(e){Oa(e),e.p.forEach(gp),e.p=null}function Oa(e){e===Ur&&(Ur=e.l)}function ks(e){return Ur={p:[],l:Ur,h:e,m:!0,_:0}}function gp(e){var t=e[K];t.i===0||t.i===1?t.j():t.g=!0}function ba(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Pt("ES5").S(t,e,n),n?(o[K].P&&(So(t),bt(4)),Ot(e)&&(e=Oo(t,e),t.l||Eo(t,e)),t.u&&Pt("Patches").M(o[K].t,e,t.u,t.s)):e=Oo(t,o,[]),So(t),t.u&&t.v(t.u,t.s),e!==Vs?e:void 0}function Oo(e,t,o){if(_a(t))return t;var n=t[K];if(!n)return Ne(t,function(l,d){return Ds(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Eo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Ra(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Ne(i,function(l,d){return Ds(e,n,a,l,d,o,s)}),Eo(e,a,!1),o&&e.u&&Pt("Patches").N(n,o,e.u,e.s)}return n.o}function Ds(e,t,o,n,a,i,s){if(Gt(a)){var l=Oo(e,a,i&&t&&t.i!==3&&!We(t.R,n)?i.concat(n):void 0);if(Hs(o,n,l),!Gt(l))return;e.m=!1}else s&&o.add(a);if(Ot(a)&&!_a(a)){if(!e.h.D&&e._<1)return;Oo(e,a),t&&t.A.l||Eo(e,a)}}function Eo(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Na(t,o)}function xa(e,t){var o=e[K];return(o?te(o):e)[t]}function Us(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var n=Object.getOwnPropertyDescriptor(o,t);if(n)return n;o=Object.getPrototypeOf(o)}}function ee(e){e.P||(e.P=!0,e.l&&ee(e.l))}function va(e){e.o||(e.o=Ra(e.t))}function Ea(e,t,o){var n=Aa(t)?Pt("MapSet").F(t,o):wa(t)?Pt("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Sa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Br;s&&(d=[l],p=Dr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,o):Pt("ES5").J(t,o);return(o?o.A:Sa()).p.push(n),n}function bp(e){return Gt(e)||bt(22,e),function t(o){if(!Ot(o))return o;var n,a=o[K],i=ze(o);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=Bs(o,i),a.I=!1}else n=Bs(o,i);return Ne(n,function(s,l){a&&hp(a.t,s)===l||Hs(n,s,t(l))}),i===3?new Set(n):n}(e)}function Bs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ra(e)}function Gs(){function e(s,l){var d=i[s];return d?d.enumerable=l:i[s]=d={configurable:!0,enumerable:l,get:function(){var p=this[K];return Br.get(p,s)},set:function(p){var h=this[K];Br.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][K];if(!d.P)switch(d.i){case 5:n(d)&&ee(d);break;case 4:o(d)&&ee(d)}}}function o(s){for(var l=s.t,d=s.k,p=He(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==K){var m=l[f];if(m===void 0&&!We(l,f))return!0;var b=d[f],x=b&&b[K];if(x?x.t!==m:!zs(b,m))return!0}}var O=!!l[K];return p.length!==He(l).length+(O?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 a(s){s.g&&bt(3,JSON.stringify(te(s)))}var i={};mp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,e(x,!0));return b}var O=js(m);delete O[K];for(var R=He(O),_=0;_<R.length;_++){var T=R[_];O[T]=e(T,f||!!O[T].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:Sa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,K,{value:h,writable:!0}),p},S:function(s,l,d){d?Gt(l)&&l[K].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[K];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)Ne(b,function(S){S!==K&&(m[S]!==void 0||We(m,S)?x[S]||p(b[S]):(x[S]=!0,ee(f)))}),Ne(m,function(S){b[S]!==void 0||We(b,S)||(x[S]=!1,ee(f))});else if(O===5){if(n(f)&&(ee(f),x.length=!0),b.length<m.length)for(var R=b.length;R<m.length;R++)x[R]=!1;else for(var _=m.length;_<b.length;_++)x[_]=!0;for(var T=Math.min(b.length,m.length),E=0;E<T;E++)b.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&p(b[E])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var Ms,Ur,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",xp=typeof Map<"u",vp=typeof Set<"u",Fs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Vs=Ta?Symbol.for("immer-nothing"):((Ms={})["immer-nothing"]=!0,Ms),Ws=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",K=Ta?Symbol.for("immer-state"):"__$immer_state";var Sp=""+Object.prototype.constructor,He=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,js=Object.getOwnPropertyDescriptors||function(e){var t={};return He(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Ca={},Br={get:function(e,t){if(t===K)return e;var o=te(e);if(!We(o,t))return function(a,i,s){var l,d=Us(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,o,t);var n=o[t];return e.I||!Ot(n)?n:n===xa(e.t,t)?(va(e),e.o[t]=Ea(e.A.h,n,e)):n},has:function(e,t){return t in te(e)},ownKeys:function(e){return Reflect.ownKeys(te(e))},set:function(e,t,o){var n=Us(te(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=xa(te(e),t),i=a?.[K];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(zs(o,a)&&(o!==void 0||We(e.t,t)))return!0;va(e),ee(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return xa(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,va(e),ee(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=te(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bt(12)}},Dr={};Ne(Br,function(e,t){Dr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Dr.deleteProperty=function(e,t){return Dr.set.call(this,e,t,void 0)},Dr.set=function(e,t,o){return Br.set.call(this,e[0],t,o,e[0])};var Op=function(){function e(o){var n=this;this.O=Fs,this.D=!0,this.produce=function(a,i,s){if(typeof a=="function"&&typeof i!="function"){var l=i;i=a;var d=n;return function(O){var R=this;O===void 0&&(O=l);for(var _=arguments.length,T=Array(_>1?_-1:0),E=1;E<_;E++)T[E-1]=arguments[E];return d.produce(O,function(S){var C;return(C=i).call.apply(C,[R,S].concat(T))})}}var p;if(typeof i!="function"&&bt(6),s!==void 0&&typeof s!="function"&&bt(7),Ot(a)){var h=ks(n),f=Ea(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?So(h):Oa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return ga(h,s),ba(O,h)},function(O){throw So(h),O}):(ga(h,s),ba(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Vs&&(p=void 0),n.D&&Na(p,!0),s){var b=[],x=[];Pt("Patches").M(a,p,b,x),s(b,x)}return p}bt(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="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(b){return a.apply(void 0,[b].concat(f))})};var s,l,d=n.produce(a,i,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 t=e.prototype;return t.createDraft=function(o){Ot(o)||bt(8),Gt(o)&&(o=bp(o));var n=ks(this),a=Ea(this,o,void 0);return a[K].C=!0,Oa(n),a},t.finishDraft=function(o,n){var a=o&&o[K],i=a.A;return ga(i,n),ba(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Fs&&bt(20),this.O=o},t.applyPatches=function(o,n){var a;for(a=n.length-1;a>=0;a--){var i=n[a];if(i.path.length===0&&i.op==="replace"){o=i.value;break}}a>-1&&(n=n.slice(a+1));var s=Pt("Patches").$;return Gt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),gt=new Op,Ep=gt.produce,Ng=gt.produceWithPatches.bind(gt),_g=gt.setAutoFreeze.bind(gt),Tg=gt.setUseProxies.bind(gt),Pg=gt.applyPatches.bind(gt),Lg=gt.createDraft.bind(gt),Ig=gt.finishDraft.bind(gt),Co=Ep;function re(e){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},re(e)}function Pa(e,t){if(re(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(re(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function La(e){var t=Pa(e,"string");return re(t)==="symbol"?t:String(t)}function Ia(e,t,o){return t=La(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ks(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,n)}return o}function Ao(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Ks(Object(o),!0).forEach(function(n){Ia(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ks(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ct(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Zs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),$a=function(){return Math.random().toString(36).substring(7).split("").join(".")},wo={INIT:"@@redux/INIT"+$a(),REPLACE:"@@redux/REPLACE"+$a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+$a()}};function Cp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ka(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ct(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ct(1));return o(ka)(e,t)}if(typeof e!="function")throw new Error(ct(2));var a=e,i=t,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function h(){if(d)throw new Error(ct(3));return i}function f(O){if(typeof O!="function")throw new Error(ct(4));if(d)throw new Error(ct(5));var R=!0;return p(),l.push(O),function(){if(R){if(d)throw new Error(ct(6));R=!1,p();var T=l.indexOf(O);l.splice(T,1),s=null}}}function m(O){if(!Cp(O))throw new Error(ct(7));if(typeof O.type>"u")throw new Error(ct(8));if(d)throw new Error(ct(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var R=s=l,_=0;_<R.length;_++){var T=R[_];T()}return O}function b(O){if(typeof O!="function")throw new Error(ct(10));a=O,m({type:wo.REPLACE})}function x(){var O,R=f;return O={subscribe:function(T){if(typeof T!="object"||T===null)throw new Error(ct(11));function E(){T.next&&T.next(h())}E();var S=R(E);return{unsubscribe:S}}},O[Zs]=function(){return this},O}return m({type:wo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Zs]=x,n}function Ap(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:wo.INIT});if(typeof n>"u")throw new Error(ct(12));if(typeof o(void 0,{type:wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ct(13))})}function qs(e){for(var t=Object.keys(e),o={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(o[a]=e[a])}var i=Object.keys(o),s,l;try{Ap(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,b={},x=0;x<i.length;x++){var O=i[x],R=o[O],_=p[O],T=R(_,h);if(typeof T>"u"){var E=h&&h.type;throw new Error(ct(14))}b[O]=T,m=m||T!==_}return m=m||i.length!==Object.keys(p).length,m?b:p}}function Ge(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ys(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(ct(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return i=Ge.apply(void 0,l)(a.dispatch),Ao(Ao({},a),{},{dispatch:i})}}}function Xs(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,e):s(l)}}};return t}var Js=Xs();Js.withExtraArgument=Xs;var Da=Js;var oc=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function n(){this.constructor=t}t.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),wp=function(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,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,a&&(i=p[0]&2?a.return:p[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,p[1])).done)return i;switch(a=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,a=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){o.label=p[1];break}if(p[0]===6&&o.label<i[1]){o.label=i[1],i=p;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(p);break}i[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(h){p=[6,h],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Ve=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Rp=Object.defineProperty,Np=Object.defineProperties,_p=Object.getOwnPropertyDescriptors,Qs=Object.getOwnPropertySymbols,Tp=Object.prototype.hasOwnProperty,Pp=Object.prototype.propertyIsEnumerable,tc=function(e,t,o){return t in e?Rp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},oe=function(e,t){for(var o in t||(t={}))Tp.call(t,o)&&tc(e,o,t[o]);if(Qs)for(var n=0,a=Qs(t);n<a.length;n++){var o=a[n];Pp.call(t,o)&&tc(e,o,t[o])}return e},Ua=function(e,t){return Np(e,_p(t))},Lp=function(e,t,o){return new Promise(function(n,a){var i=function(d){try{l(o.next(d))}catch(p){a(p)}},s=function(d){try{l(o.throw(d))}catch(p){a(p)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(i,s)};l((o=o.apply(e,t)).next())})};var Ip=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ge:Ge.apply(null,arguments)},Xg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function $p(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var kp=function(e){oc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ve([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ve([void 0],o.concat(this))))},t}(Array),Dp=function(e){oc(t,e);function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=e.apply(this,o)||this;return Object.setPrototypeOf(a,t.prototype),a}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Ve([void 0],o[0].concat(this)))):new(t.bind.apply(t,Ve([void 0],o.concat(this))))},t}(Array);function Fa(e){return Ot(e)?Co(e,function(){}):e}function Up(e){return typeof e=="boolean"}function Bp(){return function(t){return Mp(t)}}function Mp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,n=e.immutableCheck,a=n===void 0?!0:n,i=e.serializableCheck,s=i===void 0?!0:i,l=new kp;if(o&&(Up(o)?l.push(Da):l.push(Da.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var Ba=!0;function nc(e){var t=Bp(),o=e||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?t():i,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,b;if(typeof a=="function")b=a;else if($p(a))b=qs(a);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 x=s;if(typeof x=="function"&&(x=x(t),!Ba&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ba&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ys.apply(void 0,x),R=Ge;d&&(R=Ip(oe({trace:!Ba},typeof d=="object"&&d)));var _=new Dp(O),T=_;Array.isArray(m)?T=Ve([O],m):typeof m=="function"&&(T=m(_));var E=R.apply(void 0,T);return ka(b,h,E)}function ne(e,t){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(t){var i=t.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return oe(oe({type:e,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:e,payload:n[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(n){return n.type===e},o}function ac(e){var t={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return e(a),[t,o,n]}function Fp(e){return typeof e=="function"}function Wp(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?ac(t):[t,o,n],i=a[0],s=a[1],l=a[2],d;if(Fp(e))d=function(){return Fa(e())};else{var p=Fa(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=Ve([i[m.type]],s.filter(function(x){var O=x.matcher;return O(m)}).map(function(x){var O=x.reducer;return O}));return b.filter(function(x){return!!x}).length===0&&(b=[l]),b.reduce(function(x,O){if(O)if(Gt(x)){var R=x,_=O(R,m);return _===void 0?x:_}else{if(Ot(x))return Co(x,function(T){return O(T,m)});var _=O(x,m);if(_===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return x},f)}return h.getInitialState=d,h}function Hp(e,t){return e+"/"+t}function ic(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Fa(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Hp(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?ne(m,x):ne(m)});function d(){var h=typeof e.extraReducers=="function"?ac(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],R=O===void 0?void 0:O,_=oe(oe({},m),s);return Wp(o,function(T){for(var E in _)T.addCase(E,_[E]);for(var S=0,C=x;S<C.length;S++){var L=C[S];T.addMatcher(L.matcher,L.reducer)}R&&T.addDefaultCase(R)})}var p;return{name:t,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var zp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=zp[Math.random()*64|0];return t},Vp=["name","message","stack","code"],Ma=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ec=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),jp=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,n=Vp;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},eb=function(){function e(t,o,n){var a=ne(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Ua(oe({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=ne(t+"/pending",function(h,f,m){return{payload:void 0,meta:Ua(oe({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=ne(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||jp)(h||"Rejected"),meta:Ua(oe({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,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,b){var x=n?.idGenerator?n.idGenerator(h):Gp(),O=new d,R,_=!1;function T(S){R=S,O.abort()}var E=function(){return Lp(this,null,function(){var S,C,L,U,W,F,$;return wp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),U=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),Zp(U)?[4,U]:[3,2];case 1:U=y.sent(),y.label=2;case 2:if(U===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,W=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:R||"Aborted"})})}),f(i(x,h,(C=n?.getPendingMeta)==null?void 0:C.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([W,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:T,rejectWithValue:function(v,I){return new Ma(v,I)},fulfillWithValue:function(v,I){return new ec(v,I)}})).then(function(v){if(v instanceof Ma)throw v;return v instanceof ec?a(v.payload,x,h,v.meta):a(v,x,h)})])];case 3:return L=y.sent(),[3,5];case 4:return F=y.sent(),L=F instanceof Ma?s(null,x,h,F.payload,F.meta):s(F,x,h),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(L)&&L.meta.condition,$||f(L),[2,L]}})})}();return Object.assign(E,{abort:T,requestId:x,arg:h,unwrap:function(){return E.then(Kp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Kp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Zp(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sc="listener",cc="completed",lc="cancelled",rb="task-"+lc,ob="task-"+cc,nb=sc+"-"+lc,ab=sc+"-"+cc;var Wa="listenerMiddleware";var ib=ne(Wa+"/add"),sb=ne(Wa+"/removeAll"),cb=ne(Wa+"/remove");var rc,lb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(rc||(rc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},qp=function(e){return function(t){setTimeout(t,e)}},db=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:qp(10);Gs();window.ftReduxStores||(window.ftReduxStores={});var Ha=class e extends Se{static get(t){var o;let n=typeof t=="string"?t:t.name,a=typeof t=="string"?void 0:t,i=window.ftReduxStores[n];if(we(i))return i;if(a==null)return;let s=ic({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=nc({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[a.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new kr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,i)=>{let s=a,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(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Yp(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))we(t)&&t.clear()}var ja={};z(ja,{scrollHelper:()=>Xp});var Ga,Ro=new Map,Va=class{lock(t,o){if(o){let n=Ro.get(o);if(n==null||n===t)return Ro.set(o,t),o}}release(t,o){o&&Ro.get(o)===t&&Ro.delete(o)}findFirstScrollableParent(t){let o,n=a=>{var i;a.stopPropagation();let s,l;for(let d of a.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=(i=s??l)!==null&&i!==void 0?i:document.body};return t.addEventListener("find-scrollable-parent",n),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,o){var n,a;let i=0;for(;o&&o.offsetParent!==t.offsetParent;)i+=(n=o.offsetTop)!==null&&n!==void 0?n:0,o=o.offsetParent;return i+((a=o?.offsetTop)!==null&&a!==void 0?a:0)-t.offsetTop}computeTopOffsetRatio(t,o){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(t,o){let n=this.findFirstScrollableParent(t);if(t&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,t),i=a-n.clientHeight+t.clientHeight,s=a,l=Sr(0,(s-n.scrollTop)/(s-i),1),d=this.computeTopOffsetRatio(o?.position,l)*(i-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",t,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(Ga=window.FluidTopicsScrollHelper)!==null&&Ga!==void 0?Ga:new Va;var Xp=window.FluidTopicsScrollHelper;var Ka={};z(Ka,{shadowQuerySelector:()=>Jp,shadowQuerySelectorAll:()=>Qp});function Jp(e,t,...o){var n;let a=e.querySelector(t);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Qp(e,t,...o){let n=[...e.querySelectorAll(t)];for(let a of o)n=n.flatMap(i=>{var s,l;return[...(l=(s=i.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(a))!==null&&l!==void 0?l:[]]});return n}var Za={};z(Za,{SearchPlaceConverter:()=>To,SearchPlaceQueryParams:()=>G,isSearchPlaceQueryParams:()=>$c,serializeRequest:()=>ru});var tu=vl(pc(),1);var uc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(uc||(uc={}));var fc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(fc||(fc={}));var hc;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(hc||(hc={}));var yc;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT"})(yc||(yc={}));var mc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(mc||(mc={}));var gc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(gc||(gc={}));var bc;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(bc||(bc={}));var xc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(xc||(xc={}));var vc;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(vc||(vc={}));var Sc;(function(e){e.ASC="ASC",e.DESC="DESC"})(Sc||(Sc={}));var Oc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Oc||(Oc={}));var Ec;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Ec||(Ec={}));var _c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var Cc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Cc||(Cc={}));var Ac;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Ac||(Ac={}));var wc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(wc||(wc={}));var Mr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Mr||(Mr={}));var Tc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Rc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Rc||(Rc={}));var Nc;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Nc||(Nc={}));var ot;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN",e.DEVELOPER="DEVELOPER"})(ot||(ot={}));var Pc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Pc||(Pc={}));var Lc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Lc||(Lc={}));var Nb={[ot.PERSONAL_BOOK_SHARE_USER]:[ot.PERSONAL_BOOK_USER],[ot.HTML_EXPORT_USER]:[ot.PERSONAL_BOOK_USER],[ot.PDF_EXPORT_USER]:[ot.PERSONAL_BOOK_USER],[ot.KHUB_ADMIN]:[ot.CONTENT_PUBLISHER],[ot.ADMIN]:[ot.KHUB_ADMIN,ot.USERS_ADMIN,ot.PORTAL_ADMIN],[ot.DEVELOPER]:[ot.BETA_USER,ot.DEBUG_USER]};function eu(e){return`"${e}"`}function Ic(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function ru(e,t){return new To(e).serialize(t)}var G;(function(e){e.LOCALE="content-lang",e.QUERY="query",e.SCOPE="scope",e.FILTERS="filters",e.VIRTUAL_FIELD="virtual-field",e.PERIOD="period",e.VALUE_FILTERS="value-filters",e.DATE_FILTERS="date-filters",e.RANGE_FILTERS="range-filters",e.SORT="sort",e.PER_PAGE="per-page"})(G||(G={}));var ou=new Set(Object.values(G));function $c(e){return ou.has(e)}var To=class{constructor(t,o={},n=20,a=!1,i="en-US"){this.baseUrl=t,this.predefinedSorts=o,this.defaultPerPage=n,this.allLanguagesAllowed=a,this.defaultContentLocale=i,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(t,o){return this.serializeToCurrentPageIfPossible(t,o??"/search")}serializeToCurrentPageIfPossible(t,o){let n=this.toURLSearchParams(t).toString(),a=o==null||o.trim().length===0,i=new URL(a?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${o}`);return i.search=n,i.toString()}toURLSearchParams(t,o=!1){var n,a,i,s,l,d,p,h,f,m,b,x;let O=new URLSearchParams;t.contentLocale?(!o||t.contentLocale!==this.defaultContentLocale)&&O.append(G.LOCALE,t.contentLocale):O.append(G.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(G.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(G.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(G.VIRTUAL_FIELD,t.virtualField.toLowerCase()),((a=t.sort)===null||a===void 0?void 0:a.length)>0&&t.sort[0].key==="ft:lastEdition"&&O.append(G.SORT,"last_update");let R=(s=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(R.length>0){let S=R.map(C=>{var L,U;let W=((U=(L=C.valueFilter)===null||L===void 0?void 0:L.values)!==null&&U!==void 0?U:[]).map(F=>this.escapeFilters(F)).map(F=>encodeURIComponent(eu(Ic(F)))).join("_");return`${C.key}~${W}`}).join("*");O.append(G.VALUE_FILTERS,S)}let _=(d=(l=t.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(_.length>0){let S=_.map(C=>{var L;return`${C.key}~${(L=C.dateFilter)===null||L===void 0?void 0:L.type.toLowerCase()}`}).join("*");O.append(G.DATE_FILTERS,S)}let T=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(T.length>0){let S=T.map(C=>{var L,U;return`${C.key}~${(L=C.rangeFilter)===null||L===void 0?void 0:L.from}_${(U=C.rangeFilter)===null||U===void 0?void 0:U.to}`}).join("*");O.append(G.RANGE_FILTERS,S)}let E=(f=t.otherQueryParams)!==null&&f!==void 0?f:{};for(let S in E)O.append(S,E[S]);return!((m=t.paging)===null||m===void 0)&&m.perPage&&((x=(b=t.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(G.PER_PAGE,String(t.paging.perPage)),O}parse(t){var o;let n=t.split("?"),a=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),i=n[0].split("/search/")[1];return i==null?a:{...a,scope:(o=this.scopeMapping[i])!==null&&o!==void 0?o:a.scope}}fromURLSearchParams(t){var o,n,a,i,s,l,d,p;let h=t.get(G.LOCALE)==="all"?void 0:t.get(G.LOCALE),f=((o=t.get(G.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(G.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=t.get(G.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=t.get(G.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let R of t.keys())$c(R)||(O[R]=t.get(R));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(G.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:_c(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(t),facets:[],paging:{page:1,perPage:Sr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,a,i,s,l;let d=[];return t.has(G.FILTERS)&&(d=this.parseValueFilters((o=t.get(G.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(G.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=t.get(G.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=t.get(G.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(G.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(G.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(t){return this.superEscapeFilters(decodeURIComponent(t)).split("*").map(o=>o.split("~"))}parseValueFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Ic).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:Mr[o[1].toUpperCase()]}}))}parseRangeFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replaceAll(o,n);return t}superEscapeFilters(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replaceAll(n,a);return t}unescapeFilterValue(t){for(let[o,n,a]of this.filtersEscapeMapping)t=t.replace(a,o);return t}parseLegacyPeriodFilter(t){if(Tc(t))return[{key:"ft:lastEdition",dateFilter:{type:Mr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var Ya={};z(Ya,{toFtFormComponent:()=>qa});var Po=Symbol("elementInternals");function qa(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[Po].form}constructor(...a){super(a),this[Po]=this.attachInternals(),this[Po].role=t}setFormValue(a){this[Po].setFormValue(a)}}return o}var Ja={};z(Ja,{DateFormatter:()=>Xa});var Xa=class{static format(t,o,n,a){return window.moment?window.moment(t).locale(o).format(this.getDateFormat(n,a)):t}static getDateFormat(t,o){return t?o?"lll":"ll":o?"L LT":"L"}};var Qa,ti,ei,ri,Fr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ei=(ti=(Qa=window.safari)===null||Qa===void 0?void 0:Qa.pushNotification)===null||ti===void 0?void 0:ti.toString())!==null&&ei!==void 0?ei:"")==="[object SafariRemoteNotification]",nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ri=window.ftGlobals)!==null&&ri!==void 0?ri:{lit:qo,litDecorators:Xo,litRepeat:Jo,litClassMap:Qo,litStyleMap:tn,litUnsafeHTML:rn,wcUtils:{...pn,...nn,...fn,...Ja,...hn,...gn,...jn,...ln,...sa,...Vn,...pa,...la,..._s,...yn,...fa,...ha,...Ps,...ma,...za,...ca,...ja,...Ka,...Za,...Ya,isSafari:Fr,isTouchScreen:nu,setVariable:A}};var kc=r.extend("--ft-ripple-color","",V.colorContent),w={color:kc,backgroundColor:r.extend("--ft-ripple-background-color","",kc),opacityContentOnSurfacePressed:r.external(V.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(V.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(V.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(V.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},Dc=r.extend("--ft-ripple-color","",V.colorPrimary),Uc={color:Dc,backgroundColor:r.extend("--ft-ripple-background-color","",Dc)},Bc=r.extend("--ft-ripple-color","",V.colorSecondary),Mc={color:Bc,backgroundColor:r.extend("--ft-ripple-background-color","",Bc)},Fc=D`
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-snap-scroll",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "Vertical or horizontal container with snap scrolling.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.2.14",
23
- "@fluid-topics/ft-wc-utils": "1.2.14",
22
+ "@fluid-topics/ft-button": "1.2.16",
23
+ "@fluid-topics/ft-wc-utils": "1.2.16",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "65d295da2a5a17f24ca4957f74595755a2550c3d"
26
+ "gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
27
27
  }