@fluid-topics/ft-in-product-help 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 Ds={};var va={};V(va,{ParametrizedLabelResolver:()=>xa});var xa=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 Ka={};V(Ka,{FtCommandQueue:()=>Ur,FtLitElementRedux:()=>Ve,FtReduxStore:()=>ja,clearAllStores:()=>ru,isFtReduxStore:()=>_e,redux:()=>bp,reduxEventListener:()=>xp,reduxReactive:()=>gp});var gp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},bp=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Cr,attribute:!1,...t};A(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})}},xp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var Ur=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 _e(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ms,Bs,Us,Co=Symbol("internalReduxEventsUnsubscribers"),ne=Symbol("internalStoresUnsubscribers"),Pe=Symbol("internalStores"),Ve=class extends K{constructor(){super(...arguments),this[Ms]=new Map,this[Bs]=new Map,this[Us]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Pe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pe].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Pe].get(t)}addStore(t,o){var n;o=(n=o??(_e(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[Pe].delete(o)}setupStore(t,o){this[Pe].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Pe].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[ne].has(t.store):this[ne].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[ne].set(t,o.subscribe(()=>this.updateFromStores())),_e(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[Co].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ne].forEach((t,o)=>this.unsubscribeFromStore(o)),this[Co].forEach(t=>t()),this[Co]=[]}unsubscribeFromStore(t){this[ne].has(t)&&this[ne].get(t)(),this[ne].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ms=ne,Bs=Pe,Us=Co;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function Ot(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 Zt(e){return!!e&&!!e[Y]}function At(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)===Rp}(e)||Array.isArray(e)||!!e[js]||!!(!((t=e.constructor)===null||t===void 0)&&t[js])||Ta(e)||_a(e))}function Le(e,t,o){o===void 0&&(o=!1),Ke(e)===0?(o?Object.keys:je)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Ke(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ta(e)?2:_a(e)?3:0}function Ge(e,t){return Ke(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vp(e,t){return Ke(e)===2?e.get(t):e[t]}function Ks(e,t,o){var n=Ke(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 Ta(e){return wp&&e instanceof Map}function _a(e){return Ap&&e instanceof Set}function ae(e){return e.o||e.t}function Pa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xs(e);delete t[Y];for(var o=je(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 La(e,t){return t===void 0&&(t=!1),Ia(e)||Zt(e)||!At(e)||(Ke(e)>1&&(e.set=e.add=e.clear=e.delete=Sp),Object.freeze(e),t&&Le(e,function(o,n){return La(n,!0)},!0)),e}function Sp(){Ot(2)}function Ia(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dt(e){var t=Na[e];return t||Ot(18,e),t}function Op(e,t){Na[e]||(Na[e]=t)}function wa(){return Fr}function Sa(e,t){t&&(Dt("Patches"),e.u=[],e.s=[],e.v=t)}function wo(e){Aa(e),e.p.forEach(Ep),e.p=null}function Aa(e){e===Fr&&(Fr=e.l)}function Ws(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function Ep(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Oa(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Dt("ES5").S(t,e,n),n?(o[Y].P&&(wo(t),Ot(4)),At(e)&&(e=Ao(t,e),t.l||Ro(t,e)),t.u&&Dt("Patches").M(o[Y].t,e,t.u,t.s)):e=Ao(t,o,[]),wo(t),t.u&&t.v(t.u,t.s),e!==Ys?e:void 0}function Ao(e,t,o){if(Ia(t))return t;var n=t[Y];if(!n)return Le(t,function(l,d){return Fs(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Ro(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Pa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Le(i,function(l,d){return Fs(e,n,a,l,d,o,s)}),Ro(e,a,!1),o&&e.u&&Dt("Patches").N(n,o,e.u,e.s)}return n.o}function Fs(e,t,o,n,a,i,s){if(Zt(a)){var l=Ao(e,a,i&&t&&t.i!==3&&!Ge(t.R,n)?i.concat(n):void 0);if(Ks(o,n,l),!Zt(l))return;e.m=!1}else s&&o.add(a);if(At(a)&&!Ia(a)){if(!e.h.D&&e._<1)return;Ao(e,a),t&&t.A.l||Ro(e,a)}}function Ro(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&La(t,o)}function Ea(e,t){var o=e[Y];return(o?ae(o):e)[t]}function Hs(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 ie(e){e.P||(e.P=!0,e.l&&ie(e.l))}function Ca(e){e.o||(e.o=Pa(e.t))}function Ra(e,t,o){var n=Ta(t)?Dt("MapSet").F(t,o):_a(t)?Dt("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:wa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Hr;s&&(d=[l],p=Wr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,o):Dt("ES5").J(t,o);return(o?o.A:wa()).p.push(n),n}function Cp(e){return Zt(e)||Ot(22,e),function t(o){if(!At(o))return o;var n,a=o[Y],i=Ke(o);if(a){if(!a.P&&(a.i<4||!Dt("ES5").K(a)))return a.t;a.I=!0,n=zs(o,i),a.I=!1}else n=zs(o,i);return Le(n,function(s,l){a&&vp(a.t,s)===l||Ks(n,s,t(l))}),i===3?new Set(n):n}(e)}function zs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pa(e)}function qs(){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[Y];return Hr.get(p,s)},set:function(p){var h=this[Y];Hr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&ie(d);break;case 4:o(d)&&ie(d)}}}function o(s){for(var l=s.t,d=s.k,p=je(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Y){var m=l[f];if(m===void 0&&!Ge(l,f))return!0;var b=d[f],x=b&&b[Y];if(x?x.t!==m:!Zs(b,m))return!0}}var O=!!l[Y];return p.length!==je(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&&Ot(3,JSON.stringify(ae(s)))}var i={};Op("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=Xs(m);delete O[Y];for(var N=je(O),_=0;_<N.length;_++){var P=N[_];O[P]=e(P,f||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?Zt(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Y];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)Le(b,function(S){S!==Y&&(m[S]!==void 0||Ge(m,S)?x[S]||p(b[S]):(x[S]=!0,ie(f)))}),Le(m,function(S){b[S]!==void 0||Ge(b,S)||(x[S]=!1,ie(f))});else if(O===5){if(n(f)&&(ie(f),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var _=m.length;_<b.length;_++)x[_]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;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 Vs,Fr,$a=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wp=typeof Map<"u",Ap=typeof Set<"u",Gs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=$a?Symbol.for("immer-nothing"):((Vs={})["immer-nothing"]=!0,Vs),js=$a?Symbol.for("immer-draftable"):"__$immer_draftable",Y=$a?Symbol.for("immer-state"):"__$immer_state";var Rp=""+Object.prototype.constructor,je=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(e){var t={};return je(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Na={},Hr={get:function(e,t){if(t===Y)return e;var o=ae(e);if(!Ge(o,t))return function(a,i,s){var l,d=Hs(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||!At(n)?n:n===Ea(e.t,t)?(Ca(e),e.o[t]=Ra(e.A.h,n,e)):n},has:function(e,t){return t in ae(e)},ownKeys:function(e){return Reflect.ownKeys(ae(e))},set:function(e,t,o){var n=Hs(ae(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Ea(ae(e),t),i=a?.[Y];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Zs(o,a)&&(o!==void 0||Ge(e.t,t)))return!0;Ca(e),ie(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 Ea(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ca(e),ie(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=ae(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ot(12)}},Wr={};Le(Hr,function(e,t){Wr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Wr.deleteProperty=function(e,t){return Wr.set.call(this,e,t,void 0)},Wr.set=function(e,t,o){return Hr.set.call(this,e[0],t,o,e[0])};var Np=function(){function e(o){var n=this;this.O=Gs,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 N=this;O===void 0&&(O=l);for(var _=arguments.length,P=Array(_>1?_-1:0),E=1;E<_;E++)P[E-1]=arguments[E];return d.produce(O,function(S){var C;return(C=i).call.apply(C,[N,S].concat(P))})}}var p;if(typeof i!="function"&&Ot(6),s!==void 0&&typeof s!="function"&&Ot(7),At(a)){var h=Ws(n),f=Ra(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?wo(h):Aa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Sa(h,s),Oa(O,h)},function(O){throw wo(h),O}):(Sa(h,s),Oa(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Ys&&(p=void 0),n.D&&La(p,!0),s){var b=[],x=[];Dt("Patches").M(a,p,b,x),s(b,x)}return p}Ot(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){At(o)||Ot(8),Zt(o)&&(o=Cp(o));var n=Ws(this),a=Ra(this,o,void 0);return a[Y].C=!0,Aa(n),a},t.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return Sa(i,n),Oa(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Gs&&Ot(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=Dt("Patches").$;return Zt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),vt=new Np,Tp=vt.produce,$g=vt.produceWithPatches.bind(vt),kg=vt.setAutoFreeze.bind(vt),Dg=vt.setUseProxies.bind(vt),Mg=vt.applyPatches.bind(vt),Bg=vt.createDraft.bind(vt),Ug=vt.finishDraft.bind(vt),No=Tp;function se(e){"@babel/helpers - typeof";return se=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},se(e)}function ka(e,t){if(se(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(se(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Da(e){var t=ka(e,"string");return se(t)==="symbol"?t:String(t)}function Ma(e,t,o){return t=Da(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Js(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 To(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(o),!0).forEach(function(n){Ma(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ut(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 Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},_o={INIT:"@@redux/INIT"+Ba(),REPLACE:"@@redux/REPLACE"+Ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ba()}};function _p(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 Ua(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ut(1));return o(Ua)(e,t)}if(typeof e!="function")throw new Error(ut(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(ut(3));return i}function f(O){if(typeof O!="function")throw new Error(ut(4));if(d)throw new Error(ut(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(ut(6));N=!1,p();var P=l.indexOf(O);l.splice(P,1),s=null}}}function m(O){if(!_p(O))throw new Error(ut(7));if(typeof O.type>"u")throw new Error(ut(8));if(d)throw new Error(ut(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,_=0;_<N.length;_++){var P=N[_];P()}return O}function b(O){if(typeof O!="function")throw new Error(ut(10));a=O,m({type:_o.REPLACE})}function x(){var O,N=f;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ut(11));function E(){P.next&&P.next(h())}E();var S=N(E);return{unsubscribe:S}}},O[Qs]=function(){return this},O}return m({type:_o.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Qs]=x,n}function Pp(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:_o.INIT});if(typeof n>"u")throw new Error(ut(12));if(typeof o(void 0,{type:_o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ut(13))})}function tc(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{Pp(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],N=o[O],_=p[O],P=N(_,h);if(typeof P>"u"){var E=h&&h.type;throw new Error(ut(14))}b[O]=P,m=m||P!==_}return m=m||i.length!==Object.keys(p).length,m?b:p}}function Ze(){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 ec(){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(ut(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return i=Ze.apply(void 0,l)(a.dispatch),To(To({},a),{},{dispatch:i})}}}function rc(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 oc=rc();oc.withExtraArgument=rc;var Wa=oc;var cc=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)}}(),Lp=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}}},qe=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Ip=Object.defineProperty,$p=Object.defineProperties,kp=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,Mp=Object.prototype.propertyIsEnumerable,ac=function(e,t,o){return t in e?Ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ce=function(e,t){for(var o in t||(t={}))Dp.call(t,o)&&ac(e,o,t[o]);if(nc)for(var n=0,a=nc(t);n<a.length;n++){var o=a[n];Mp.call(t,o)&&ac(e,o,t[o])}return e},Fa=function(e,t){return $p(e,kp(t))},Bp=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 Up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)},ob=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wp(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 Fp=function(e){cc(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,qe([void 0],o[0].concat(this)))):new(t.bind.apply(t,qe([void 0],o.concat(this))))},t}(Array),Hp=function(e){cc(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,qe([void 0],o[0].concat(this)))):new(t.bind.apply(t,qe([void 0],o.concat(this))))},t}(Array);function Va(e){return At(e)?No(e,function(){}):e}function zp(e){return typeof e=="boolean"}function Vp(){return function(t){return Gp(t)}}function Gp(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 Fp;if(o&&(zp(o)?l.push(Wa):l.push(Wa.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var Ha=!0;function lc(e){var t=Vp(),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(Wp(a))b=tc(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),!Ha&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ha&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ec.apply(void 0,x),N=Ze;d&&(N=Up(ce({trace:!Ha},typeof d=="object"&&d)));var _=new Hp(O),P=_;Array.isArray(m)?P=qe([O],m):typeof m=="function"&&(P=m(_));var E=N.apply(void 0,P);return Ua(b,h,E)}function le(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 ce(ce({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 dc(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 jp(e){return typeof e=="function"}function Kp(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?dc(t):[t,o,n],i=a[0],s=a[1],l=a[2],d;if(jp(e))d=function(){return Va(e())};else{var p=Va(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=qe([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(Zt(x)){var N=x,_=O(N,m);return _===void 0?x:_}else{if(At(x))return No(x,function(P){return O(P,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 Zp(e,t){return e+"/"+t}function pc(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:Va(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Zp(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?le(m,x):le(m)});function d(){var h=typeof e.extraReducers=="function"?dc(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,_=ce(ce({},m),s);return Kp(o,function(P){for(var E in _)P.addCase(E,_[E]);for(var S=0,C=x;S<C.length;S++){var L=C[S];P.addMatcher(L.matcher,L.reducer)}N&&P.addDefaultCase(N)})}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 qp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=qp[Math.random()*64|0];return t},Xp=["name","message","stack","code"],za=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ic=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=Xp;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},sb=function(){function e(t,o,n){var a=le(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Fa(ce({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=le(t+"/pending",function(h,f,m){return{payload:void 0,meta:Fa(ce({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=le(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||Jp)(h||"Rejected"),meta:Fa(ce({},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):Yp(),O=new d,N,_=!1;function P(S){N=S,O.abort()}var E=function(){return Bp(this,null,function(){var S,C,L,M,F,W,$;return Lp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),M=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),tu(M)?[4,M]:[3,2];case 1:M=y.sent(),y.label=2;case 2:if(M===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,F=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"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([F,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(v,I){return new za(v,I)},fulfillWithValue:function(v,I){return new ic(v,I)}})).then(function(v){if(v instanceof za)throw v;return v instanceof ic?a(v.payload,x,h,v.meta):a(v,x,h)})])];case 3:return L=y.sent(),[3,5];case 4:return W=y.sent(),L=W instanceof za?s(null,x,h,W.payload,W.meta):s(W,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:P,requestId:x,arg:h,unwrap:function(){return E.then(Qp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Qp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function tu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var uc="listener",fc="completed",hc="cancelled",cb="task-"+hc,lb="task-"+fc,db=uc+"-"+hc,pb=uc+"-"+fc;var Ga="listenerMiddleware";var ub=le(Ga+"/add"),fb=le(Ga+"/removeAll"),hb=le(Ga+"/remove");var sc,yb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(sc||(sc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},eu=function(e){return function(t){setTimeout(t,e)}},mb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eu(10);qs();window.ftReduxStores||(window.ftReduxStores={});var ja=class e extends we{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(_e(i))return i;if(a==null)return;let s=pc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=lc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ur,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 ru(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))_e(t)&&t.clear()}var Ya={};V(Ya,{scrollHelper:()=>ou});var Za,Po=new Map,qa=class{lock(t,o){if(o){let n=Po.get(o);if(n==null||n===t)return Po.set(o,t),o}}release(t,o){o&&Po.get(o)===t&&Po.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=wr(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=(Za=window.FluidTopicsScrollHelper)!==null&&Za!==void 0?Za:new qa;var ou=window.FluidTopicsScrollHelper;var Xa={};V(Xa,{shadowQuerySelector:()=>nu,shadowQuerySelectorAll:()=>au});function nu(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 au(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 Ja={};V(Ja,{SearchPlaceConverter:()=>$o,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>cu});var iu=Al(mc(),1);var gc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(gc||(gc={}));var bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(bc||(bc={}));var xc;(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"})(xc||(xc={}));var vc;(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"})(vc||(vc={}));var Sc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Ec;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ec||(Ec={}));var Cc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Cc||(Cc={}));var wc;(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"})(wc||(wc={}));var Ac;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Rc||(Rc={}));var Nc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Nc||(Nc={}));var $c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var Tc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Tc||(Tc={}));var _c;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(_c||(_c={}));var Pc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Pc||(Pc={}));var zr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zr||(zr={}));var kc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Lc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Lc||(Lc={}));var Ic;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ic||(Ic={}));var ct;(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"})(ct||(ct={}));var Dc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Dc||(Dc={}));var Mc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Mc||(Mc={}));var $b={[ct.PERSONAL_BOOK_SHARE_USER]:[ct.PERSONAL_BOOK_USER],[ct.HTML_EXPORT_USER]:[ct.PERSONAL_BOOK_USER],[ct.PDF_EXPORT_USER]:[ct.PERSONAL_BOOK_USER],[ct.KHUB_ADMIN]:[ct.CONTENT_PUBLISHER],[ct.ADMIN]:[ct.KHUB_ADMIN,ct.USERS_ADMIN,ct.PORTAL_ADMIN],[ct.DEVELOPER]:[ct.BETA_USER,ct.DEBUG_USER]};function su(e){return`"${e}"`}function Bc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function cu(e,t){return new $o(e).serialize(t)}var j;(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"})(j||(j={}));var lu=new Set(Object.values(j));function Uc(e){return lu.has(e)}var $o=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(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.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(j.SORT,"last_update");let N=(s=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(C=>{var L,M;let F=((M=(L=C.valueFilter)===null||L===void 0?void 0:L.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(su(Bc(W)))).join("_");return`${C.key}~${F}`}).join("*");O.append(j.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(j.DATE_FILTERS,S)}let P=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(P.length>0){let S=P.map(C=>{var L,M;return`${C.key}~${(L=C.rangeFilter)===null||L===void 0?void 0:L.from}_${(M=C.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");O.append(j.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(j.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(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),f=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=t.get(j.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=t.get(j.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of t.keys())Uc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.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:wr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,a,i,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=t.get(j.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=t.get(j.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.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(Bc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:zr[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(kc(t))return[{key:"ft:lastEdition",dateFilter:{type:zr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var ti={};V(ti,{toFtFormComponent:()=>Qa});var ko=Symbol("elementInternals");function Qa(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[ko].form}constructor(...a){super(a),this[ko]=this.attachInternals(),this[ko].role=t}setFormValue(a){this[ko].setFormValue(a)}}return o}var ri={};V(ri,{DateFormatter:()=>ei});var ei=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 oi,ni,ai,ii,si=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ai=(ni=(oi=window.safari)===null||oi===void 0?void 0:oi.pushNotification)===null||ni===void 0?void 0:ni.toString())!==null&&ai!==void 0?ai:"")==="[object SafariRemoteNotification]",du="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ii=window.ftGlobals)!==null&&ii!==void 0?ii:{lit:Qo,litDecorators:en,litRepeat:rn,litClassMap:on,litStyleMap:nn,litUnsafeHTML:sn,wcUtils:{...yn,...ln,...gn,...ri,...bn,...Sn,...Yn,...fn,...pa,...qn,...ya,...fa,...$s,...xn,...ga,...ba,...Ds,...va,...Ka,...ua,...Ya,...Xa,...Ja,...ti,isSafari:si,isTouchScreen:du,setVariable:w}};var ot;(function(e){e.STANDARD="standard",e.THEATER="theater",e.FULLSCREEN="fullscreen"})(ot||(ot={}));var Do=class extends CustomEvent{constructor(t,o){super("visibility-change",{detail:{opened:t,displayMode:o}})}};var X={standardSizeWidth:r.create("--ft-in-product-help-standard-width","","SIZE","400px"),standardSizeHeight:r.create("--ft-in-product-help-standard-height","","SIZE","630px"),topPosition:r.create("--ft-in-product-help-top","","SIZE","unset"),rightPosition:r.create("--ft-in-product-help-right","","SIZE","1rem"),bottomPosition:r.create("--ft-in-product-help-bottom","","SIZE","1rem"),leftPosition:r.create("--ft-in-product-help-left","","SIZE","unset"),zIndex:r.create("--ft-in-product-help-zindex","","NUMBER","10"),theaterSizeWidth:r.create("--ft-in-product-help-theater-width","","SIZE","90%"),theaterSizeHeight:r.create("--ft-in-product-help-theater-height","","SIZE","60%"),fullscreenSizeWidth:r.create("--ft-in-product-help-fullscreen-width","","SIZE","100%"),fullscreenSizeHeight:r.create("--ft-in-product-help-fullscreen-height","","SIZE","100%"),borderStyle:r.create("--ft-in-product-help-border-style","","BORDER-STYLE","solid"),borderWidth:r.create("--ft-in-product-help-border-width","","SIZE","0"),borderColor:r.extend("--ft-in-product-help-border-color","",z.colorPrimary),borderRadius:r.extend("--ft-in-product-help-border-radius","",z.borderRadiusM),shadow:r.extend("--ft-in-product-help-shadow","",z.elevation02),topBarHeight:r.create("--ft-in-product-help-top-bar-height","","SIZE","28px"),iconColor:r.extend("--ft-in-product-help-icon-color","",z.colorOnSurface),iconGap:r.create("--ft-in-product-help-icon-gap","","SIZE","8px"),tabletBreakpoint:r.create("--ft-in-product-help-tablet-breakpoint","","SIZE","768px"),desktopBreakpoint:r.create("--ft-in-product-help-desktop-breakpoint","","SIZE","1280px"),colorSurface:r.external(z.colorSurface,"Design system"),colorPrimary:r.external(z.colorPrimary,"Design system")},Wc=D`
|
|
50
|
+
`;var Ds={};var va={};V(va,{ParametrizedLabelResolver:()=>xa});var xa=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 Ka={};V(Ka,{FtCommandQueue:()=>Ur,FtLitElementRedux:()=>Ve,FtReduxStore:()=>ja,clearAllStores:()=>ru,isFtReduxStore:()=>_e,redux:()=>bp,reduxEventListener:()=>xp,reduxReactive:()=>gp});var gp=()=>(e,t)=>{var o;let n=e.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(t)},bp=e=>{let t=e??{};return(o,n)=>{var a;let i={hasChanged:Cr,attribute:!1,...t};A(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})}},xp=e=>(t,o)=>{let n=t.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,e)};var Ur=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 _e(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var Ms,Bs,Us,Co=Symbol("internalReduxEventsUnsubscribers"),ne=Symbol("internalStoresUnsubscribers"),Pe=Symbol("internalStores"),Ve=class extends K{constructor(){super(...arguments),this[Ms]=new Map,this[Bs]=new Map,this[Us]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Pe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Pe].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[Pe].get(t)}addStore(t,o){var n;o=(n=o??(_e(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[Pe].delete(o)}setupStore(t,o){this[Pe].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Pe].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[ne].has(t.store):this[ne].size>0)&&(this[o]=t.selector(a.getState(),this))}})}subscribeToStore(t,o){var n;this[ne].set(t,o.subscribe(()=>this.updateFromStores())),_e(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[Co].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ne].forEach((t,o)=>this.unsubscribeFromStore(o)),this[Co].forEach(t=>t()),this[Co]=[]}unsubscribeFromStore(t){this[ne].has(t)&&this[ne].get(t)(),this[ne].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ms=ne,Bs=Pe,Us=Co;Ve.reduxProperties=new Map;Ve.reduxReactiveProperties=new Set;Ve.reduxEventListeners=new Map;function Ot(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 Zt(e){return!!e&&!!e[Y]}function At(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)===Rp}(e)||Array.isArray(e)||!!e[js]||!!(!((t=e.constructor)===null||t===void 0)&&t[js])||Ta(e)||_a(e))}function Le(e,t,o){o===void 0&&(o=!1),Ke(e)===0?(o?Object.keys:je)(e).forEach(function(n){o&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,a){return t(a,n,e)})}function Ke(e){var t=e[Y];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ta(e)?2:_a(e)?3:0}function Ge(e,t){return Ke(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vp(e,t){return Ke(e)===2?e.get(t):e[t]}function Ks(e,t,o){var n=Ke(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 Ta(e){return wp&&e instanceof Map}function _a(e){return Ap&&e instanceof Set}function ae(e){return e.o||e.t}function Pa(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Xs(e);delete t[Y];for(var o=je(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 La(e,t){return t===void 0&&(t=!1),Ia(e)||Zt(e)||!At(e)||(Ke(e)>1&&(e.set=e.add=e.clear=e.delete=Sp),Object.freeze(e),t&&Le(e,function(o,n){return La(n,!0)},!0)),e}function Sp(){Ot(2)}function Ia(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Dt(e){var t=Na[e];return t||Ot(18,e),t}function Op(e,t){Na[e]||(Na[e]=t)}function wa(){return Fr}function Sa(e,t){t&&(Dt("Patches"),e.u=[],e.s=[],e.v=t)}function wo(e){Aa(e),e.p.forEach(Ep),e.p=null}function Aa(e){e===Fr&&(Fr=e.l)}function Ws(e){return Fr={p:[],l:Fr,h:e,m:!0,_:0}}function Ep(e){var t=e[Y];t.i===0||t.i===1?t.j():t.g=!0}function Oa(e,t){t._=t.p.length;var o=t.p[0],n=e!==void 0&&e!==o;return t.h.O||Dt("ES5").S(t,e,n),n?(o[Y].P&&(wo(t),Ot(4)),At(e)&&(e=Ao(t,e),t.l||Ro(t,e)),t.u&&Dt("Patches").M(o[Y].t,e,t.u,t.s)):e=Ao(t,o,[]),wo(t),t.u&&t.v(t.u,t.s),e!==Ys?e:void 0}function Ao(e,t,o){if(Ia(t))return t;var n=t[Y];if(!n)return Le(t,function(l,d){return Fs(e,n,t,l,d,o)},!0),t;if(n.A!==e)return t;if(!n.P)return Ro(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Pa(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),Le(i,function(l,d){return Fs(e,n,a,l,d,o,s)}),Ro(e,a,!1),o&&e.u&&Dt("Patches").N(n,o,e.u,e.s)}return n.o}function Fs(e,t,o,n,a,i,s){if(Zt(a)){var l=Ao(e,a,i&&t&&t.i!==3&&!Ge(t.R,n)?i.concat(n):void 0);if(Ks(o,n,l),!Zt(l))return;e.m=!1}else s&&o.add(a);if(At(a)&&!Ia(a)){if(!e.h.D&&e._<1)return;Ao(e,a),t&&t.A.l||Ro(e,a)}}function Ro(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&La(t,o)}function Ea(e,t){var o=e[Y];return(o?ae(o):e)[t]}function Hs(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 ie(e){e.P||(e.P=!0,e.l&&ie(e.l))}function Ca(e){e.o||(e.o=Pa(e.t))}function Ra(e,t,o){var n=Ta(t)?Dt("MapSet").F(t,o):_a(t)?Dt("MapSet").T(t,o):e.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:wa(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=Hr;s&&(d=[l],p=Wr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return l.k=m,l.j=f,m}(t,o):Dt("ES5").J(t,o);return(o?o.A:wa()).p.push(n),n}function Cp(e){return Zt(e)||Ot(22,e),function t(o){if(!At(o))return o;var n,a=o[Y],i=Ke(o);if(a){if(!a.P&&(a.i<4||!Dt("ES5").K(a)))return a.t;a.I=!0,n=zs(o,i),a.I=!1}else n=zs(o,i);return Le(n,function(s,l){a&&vp(a.t,s)===l||Ks(n,s,t(l))}),i===3?new Set(n):n}(e)}function zs(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pa(e)}function qs(){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[Y];return Hr.get(p,s)},set:function(p){var h=this[Y];Hr.set(h,s,p)}},d}function t(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&ie(d);break;case 4:o(d)&&ie(d)}}}function o(s){for(var l=s.t,d=s.k,p=je(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==Y){var m=l[f];if(m===void 0&&!Ge(l,f))return!0;var b=d[f],x=b&&b[Y];if(x?x.t!==m:!Zs(b,m))return!0}}var O=!!l[Y];return p.length!==je(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&&Ot(3,JSON.stringify(ae(s)))}var i={};Op("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=Xs(m);delete O[Y];for(var N=je(O),_=0;_<N.length;_++){var P=N[_];O[P]=e(P,f||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),h={i:d?5:4,A:l?l.A:wa(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:h,writable:!0}),p},S:function(s,l,d){d?Zt(l)&&l[Y].A===s&&t(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[Y];if(f){var m=f.t,b=f.k,x=f.R,O=f.i;if(O===4)Le(b,function(S){S!==Y&&(m[S]!==void 0||Ge(m,S)?x[S]||p(b[S]):(x[S]=!0,ie(f)))}),Le(m,function(S){b[S]!==void 0||Ge(b,S)||(x[S]=!1,ie(f))});else if(O===5){if(n(f)&&(ie(f),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var _=m.length;_<b.length;_++)x[_]=!0;for(var P=Math.min(b.length,m.length),E=0;E<P;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 Vs,Fr,$a=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wp=typeof Map<"u",Ap=typeof Set<"u",Gs=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ys=$a?Symbol.for("immer-nothing"):((Vs={})["immer-nothing"]=!0,Vs),js=$a?Symbol.for("immer-draftable"):"__$immer_draftable",Y=$a?Symbol.for("immer-state"):"__$immer_state";var Rp=""+Object.prototype.constructor,je=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Xs=Object.getOwnPropertyDescriptors||function(e){var t={};return je(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Na={},Hr={get:function(e,t){if(t===Y)return e;var o=ae(e);if(!Ge(o,t))return function(a,i,s){var l,d=Hs(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||!At(n)?n:n===Ea(e.t,t)?(Ca(e),e.o[t]=Ra(e.A.h,n,e)):n},has:function(e,t){return t in ae(e)},ownKeys:function(e){return Reflect.ownKeys(ae(e))},set:function(e,t,o){var n=Hs(ae(e),t);if(n?.set)return n.set.call(e.k,o),!0;if(!e.P){var a=Ea(ae(e),t),i=a?.[Y];if(i&&i.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(Zs(o,a)&&(o!==void 0||Ge(e.t,t)))return!0;Ca(e),ie(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 Ea(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Ca(e),ie(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=ae(e),n=Reflect.getOwnPropertyDescriptor(o,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:o[t]}},defineProperty:function(){Ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ot(12)}},Wr={};Le(Hr,function(e,t){Wr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Wr.deleteProperty=function(e,t){return Wr.set.call(this,e,t,void 0)},Wr.set=function(e,t,o){return Hr.set.call(this,e[0],t,o,e[0])};var Np=function(){function e(o){var n=this;this.O=Gs,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 N=this;O===void 0&&(O=l);for(var _=arguments.length,P=Array(_>1?_-1:0),E=1;E<_;E++)P[E-1]=arguments[E];return d.produce(O,function(S){var C;return(C=i).call.apply(C,[N,S].concat(P))})}}var p;if(typeof i!="function"&&Ot(6),s!==void 0&&typeof s!="function"&&Ot(7),At(a)){var h=Ws(n),f=Ra(n,a,void 0),m=!0;try{p=i(f),m=!1}finally{m?wo(h):Aa(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Sa(h,s),Oa(O,h)},function(O){throw wo(h),O}):(Sa(h,s),Oa(p,h))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===Ys&&(p=void 0),n.D&&La(p,!0),s){var b=[],x=[];Dt("Patches").M(a,p,b,x),s(b,x)}return p}Ot(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){At(o)||Ot(8),Zt(o)&&(o=Cp(o));var n=Ws(this),a=Ra(this,o,void 0);return a[Y].C=!0,Aa(n),a},t.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return Sa(i,n),Oa(void 0,i)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Gs&&Ot(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=Dt("Patches").$;return Zt(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},e}(),vt=new Np,Tp=vt.produce,$g=vt.produceWithPatches.bind(vt),kg=vt.setAutoFreeze.bind(vt),Dg=vt.setUseProxies.bind(vt),Mg=vt.applyPatches.bind(vt),Bg=vt.createDraft.bind(vt),Ug=vt.finishDraft.bind(vt),No=Tp;function se(e){"@babel/helpers - typeof";return se=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},se(e)}function ka(e,t){if(se(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(se(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Da(e){var t=ka(e,"string");return se(t)==="symbol"?t:String(t)}function Ma(e,t,o){return t=Da(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Js(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 To(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(o),!0).forEach(function(n){Ma(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Js(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function ut(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 Qs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ba=function(){return Math.random().toString(36).substring(7).split("").join(".")},_o={INIT:"@@redux/INIT"+Ba(),REPLACE:"@@redux/REPLACE"+Ba(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ba()}};function _p(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 Ua(e,t,o){var n;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(ut(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(ut(1));return o(Ua)(e,t)}if(typeof e!="function")throw new Error(ut(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(ut(3));return i}function f(O){if(typeof O!="function")throw new Error(ut(4));if(d)throw new Error(ut(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(ut(6));N=!1,p();var P=l.indexOf(O);l.splice(P,1),s=null}}}function m(O){if(!_p(O))throw new Error(ut(7));if(typeof O.type>"u")throw new Error(ut(8));if(d)throw new Error(ut(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,_=0;_<N.length;_++){var P=N[_];P()}return O}function b(O){if(typeof O!="function")throw new Error(ut(10));a=O,m({type:_o.REPLACE})}function x(){var O,N=f;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(ut(11));function E(){P.next&&P.next(h())}E();var S=N(E);return{unsubscribe:S}}},O[Qs]=function(){return this},O}return m({type:_o.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[Qs]=x,n}function Pp(e){Object.keys(e).forEach(function(t){var o=e[t],n=o(void 0,{type:_o.INIT});if(typeof n>"u")throw new Error(ut(12));if(typeof o(void 0,{type:_o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ut(13))})}function tc(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{Pp(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],N=o[O],_=p[O],P=N(_,h);if(typeof P>"u"){var E=h&&h.type;throw new Error(ut(14))}b[O]=P,m=m||P!==_}return m=m||i.length!==Object.keys(p).length,m?b:p}}function Ze(){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 ec(){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(ut(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=t.map(function(d){return d(s)});return i=Ze.apply(void 0,l)(a.dispatch),To(To({},a),{},{dispatch:i})}}}function rc(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 oc=rc();oc.withExtraArgument=rc;var Wa=oc;var cc=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)}}(),Lp=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}}},qe=function(e,t){for(var o=0,n=t.length,a=e.length;o<n;o++,a++)e[a]=t[o];return e},Ip=Object.defineProperty,$p=Object.defineProperties,kp=Object.getOwnPropertyDescriptors,nc=Object.getOwnPropertySymbols,Dp=Object.prototype.hasOwnProperty,Mp=Object.prototype.propertyIsEnumerable,ac=function(e,t,o){return t in e?Ip(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},ce=function(e,t){for(var o in t||(t={}))Dp.call(t,o)&&ac(e,o,t[o]);if(nc)for(var n=0,a=nc(t);n<a.length;n++){var o=a[n];Mp.call(t,o)&&ac(e,o,t[o])}return e},Fa=function(e,t){return $p(e,kp(t))},Bp=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 Up=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ze:Ze.apply(null,arguments)},ob=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wp(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 Fp=function(e){cc(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,qe([void 0],o[0].concat(this)))):new(t.bind.apply(t,qe([void 0],o.concat(this))))},t}(Array),Hp=function(e){cc(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,qe([void 0],o[0].concat(this)))):new(t.bind.apply(t,qe([void 0],o.concat(this))))},t}(Array);function Va(e){return At(e)?No(e,function(){}):e}function zp(e){return typeof e=="boolean"}function Vp(){return function(t){return Gp(t)}}function Gp(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 Fp;if(o&&(zp(o)?l.push(Wa):l.push(Wa.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var Ha=!0;function lc(e){var t=Vp(),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(Wp(a))b=tc(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),!Ha&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ha&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ec.apply(void 0,x),N=Ze;d&&(N=Up(ce({trace:!Ha},typeof d=="object"&&d)));var _=new Hp(O),P=_;Array.isArray(m)?P=qe([O],m):typeof m=="function"&&(P=m(_));var E=N.apply(void 0,P);return Ua(b,h,E)}function le(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 ce(ce({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 dc(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 jp(e){return typeof e=="function"}function Kp(e,t,o,n){o===void 0&&(o=[]);var a=typeof t=="function"?dc(t):[t,o,n],i=a[0],s=a[1],l=a[2],d;if(jp(e))d=function(){return Va(e())};else{var p=Va(e);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=qe([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(Zt(x)){var N=x,_=O(N,m);return _===void 0?x:_}else{if(At(x))return No(x,function(P){return O(P,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 Zp(e,t){return e+"/"+t}function pc(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:Va(e.initialState),n=e.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(h){var f=n[h],m=Zp(t,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,i[h]=b,s[m]=b,l[h]=x?le(m,x):le(m)});function d(){var h=typeof e.extraReducers=="function"?dc(e.extraReducers):[e.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,O=h[2],N=O===void 0?void 0:O,_=ce(ce({},m),s);return Kp(o,function(P){for(var E in _)P.addCase(E,_[E]);for(var S=0,C=x;S<C.length;S++){var L=C[S];P.addMatcher(L.matcher,L.reducer)}N&&P.addDefaultCase(N)})}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 qp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=qp[Math.random()*64|0];return t},Xp=["name","message","stack","code"],za=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),ic=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=Xp;o<n.length;o++){var a=n[o];typeof e[a]=="string"&&(t[a]=e[a])}return t}return{message:String(e)}},sb=function(){function e(t,o,n){var a=le(t+"/fulfilled",function(h,f,m,b){return{payload:h,meta:Fa(ce({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),i=le(t+"/pending",function(h,f,m){return{payload:void 0,meta:Fa(ce({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=le(t+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||Jp)(h||"Rejected"),meta:Fa(ce({},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):Yp(),O=new d,N,_=!1;function P(S){N=S,O.abort()}var E=function(){return Bp(this,null,function(){var S,C,L,M,F,W,$;return Lp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),M=(S=n?.condition)==null?void 0:S.call(n,h,{getState:m,extra:b}),tu(M)?[4,M]:[3,2];case 1:M=y.sent(),y.label=2;case 2:if(M===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,F=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"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([F,Promise.resolve(o(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(v,I){return new za(v,I)},fulfillWithValue:function(v,I){return new ic(v,I)}})).then(function(v){if(v instanceof za)throw v;return v instanceof ic?a(v.payload,x,h,v.meta):a(v,x,h)})])];case 3:return L=y.sent(),[3,5];case 4:return W=y.sent(),L=W instanceof za?s(null,x,h,W.payload,W.meta):s(W,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:P,requestId:x,arg:h,unwrap:function(){return E.then(Qp)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:t})}return e.withTypes=function(){return e},e}();function Qp(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function tu(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var uc="listener",fc="completed",hc="cancelled",cb="task-"+hc,lb="task-"+fc,db=uc+"-"+hc,pb=uc+"-"+fc;var Ga="listenerMiddleware";var ub=le(Ga+"/add"),fb=le(Ga+"/removeAll"),hb=le(Ga+"/remove");var sc,yb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(sc||(sc=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},eu=function(e){return function(t){setTimeout(t,e)}},mb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eu(10);qs();window.ftReduxStores||(window.ftReduxStores={});var ja=class e extends we{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(_e(i))return i;if(a==null)return;let s=pc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=lc({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[a.name]=new e(s,l)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Ur,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 ru(){var e;for(let t of Object.values((e=window.ftReduxStores)!==null&&e!==void 0?e:{}))_e(t)&&t.clear()}var Ya={};V(Ya,{scrollHelper:()=>ou});var Za,Po=new Map,qa=class{lock(t,o){if(o){let n=Po.get(o);if(n==null||n===t)return Po.set(o,t),o}}release(t,o){o&&Po.get(o)===t&&Po.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=wr(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=(Za=window.FluidTopicsScrollHelper)!==null&&Za!==void 0?Za:new qa;var ou=window.FluidTopicsScrollHelper;var Xa={};V(Xa,{shadowQuerySelector:()=>nu,shadowQuerySelectorAll:()=>au});function nu(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 au(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 Ja={};V(Ja,{SearchPlaceConverter:()=>$o,SearchPlaceQueryParams:()=>j,isSearchPlaceQueryParams:()=>Uc,serializeRequest:()=>cu});var iu=Al(mc(),1);var gc;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(gc||(gc={}));var bc;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(bc||(bc={}));var xc;(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"})(xc||(xc={}));var vc;(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"})(vc||(vc={}));var Sc;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(Sc||(Sc={}));var Oc;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(Oc||(Oc={}));var Ec;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ec||(Ec={}));var Cc;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Cc||(Cc={}));var wc;(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"})(wc||(wc={}));var Ac;(function(e){e.ASC="ASC",e.DESC="DESC"})(Ac||(Ac={}));var Rc;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Rc||(Rc={}));var Nc;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(Nc||(Nc={}));var $c=e=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(e);var Tc;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Tc||(Tc={}));var _c;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(_c||(_c={}));var Pc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK"})(Pc||(Pc={}));var zr;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(zr||(zr={}));var kc=e=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(e);var Lc;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC"})(Lc||(Lc={}));var Ic;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ic||(Ic={}));var ct;(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"})(ct||(ct={}));var Dc;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Dc||(Dc={}));var Mc;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Mc||(Mc={}));var $b={[ct.PERSONAL_BOOK_SHARE_USER]:[ct.PERSONAL_BOOK_USER],[ct.HTML_EXPORT_USER]:[ct.PERSONAL_BOOK_USER],[ct.PDF_EXPORT_USER]:[ct.PERSONAL_BOOK_USER],[ct.KHUB_ADMIN]:[ct.CONTENT_PUBLISHER],[ct.ADMIN]:[ct.KHUB_ADMIN,ct.USERS_ADMIN,ct.PORTAL_ADMIN],[ct.DEVELOPER]:[ct.BETA_USER,ct.DEBUG_USER]};function su(e){return`"${e}"`}function Bc(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}function cu(e,t){return new $o(e).serialize(t)}var j;(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"})(j||(j={}));var lu=new Set(Object.values(j));function Uc(e){return lu.has(e)}var $o=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(j.LOCALE,t.contentLocale):O.append(j.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=t.query)===null||n===void 0?void 0:n.length)>0&&O.append(j.QUERY,t.query),t.scope&&t.scope!=="DEFAULT"&&O.append(j.SCOPE,t.scope.toLowerCase()),t.virtualField&&t.virtualField!=="EVERYWHERE"&&O.append(j.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(j.SORT,"last_update");let N=(s=(i=t.metadataFilters)===null||i===void 0?void 0:i.filter(S=>S.valueFilter))!==null&&s!==void 0?s:[];if(N.length>0){let S=N.map(C=>{var L,M;let F=((M=(L=C.valueFilter)===null||L===void 0?void 0:L.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(su(Bc(W)))).join("_");return`${C.key}~${F}`}).join("*");O.append(j.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(j.DATE_FILTERS,S)}let P=(h=(p=t.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&h!==void 0?h:[];if(P.length>0){let S=P.map(C=>{var L,M;return`${C.key}~${(L=C.rangeFilter)===null||L===void 0?void 0:L.from}_${(M=C.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");O.append(j.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(j.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(j.LOCALE)==="all"?void 0:t.get(j.LOCALE),f=((o=t.get(j.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=t.get(j.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=t.get(j.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=t.get(j.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of t.keys())Uc(N)||(O[N]=t.get(N));return{contentLocale:h??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=t.get(j.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:wr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(t){var o,n,a,i,s,l;let d=[];return t.has(j.FILTERS)&&(d=this.parseValueFilters((o=t.get(j.FILTERS))!==null&&o!==void 0?o:"")),(n=t.has(j.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=t.get(j.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=t.get(j.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=t.get(j.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=t.get(j.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(Bc).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(t){return t.length===0?[]:this.splitUnknownFilter(t).map(o=>({key:o[0],dateFilter:{type:zr[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(kc(t))return[{key:"ft:lastEdition",dateFilter:{type:zr[t]}}];if(t.startsWith("CUSTOM_")){let[o,n,a]=t.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var ti={};V(ti,{toFtFormComponent:()=>Qa});var ko=Symbol("elementInternals");function Qa(e,t){class o extends e{static get formAssociated(){return!0}get form(){return this[ko].form}constructor(...a){super(a),this[ko]=this.attachInternals(),this[ko].role=t}setFormValue(a){this[ko].setFormValue(a)}}return o}var ri={};V(ri,{DateFormatter:()=>ei});var ei=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 oi,ni,ai,ii,si=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ai=(ni=(oi=window.safari)===null||oi===void 0?void 0:oi.pushNotification)===null||ni===void 0?void 0:ni.toString())!==null&&ai!==void 0?ai:"")==="[object SafariRemoteNotification]",du="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ii=window.ftGlobals)!==null&&ii!==void 0?ii:{lit:Qo,litDecorators:en,litRepeat:rn,litClassMap:on,litStyleMap:nn,litUnsafeHTML:sn,wcUtils:{...yn,...ln,...gn,...ri,...bn,...Sn,...Yn,...fn,...pa,...qn,...ya,...fa,...$s,...xn,...ga,...ba,...Ds,...va,...Ka,...ua,...Ya,...Xa,...Ja,...ti,isSafari:si,isTouchScreen:du,setVariable:w}};var ot;(function(e){e.STANDARD="standard",e.THEATER="theater",e.FULLSCREEN="fullscreen"})(ot||(ot={}));var Do=class extends CustomEvent{constructor(t,o){super("visibility-change",{detail:{opened:t,displayMode:o}})}};var X={standardSizeWidth:r.create("--ft-in-product-help-standard-width","","SIZE","400px"),standardSizeHeight:r.create("--ft-in-product-help-standard-height","","SIZE","630px"),topPosition:r.create("--ft-in-product-help-top","","SIZE","unset"),rightPosition:r.create("--ft-in-product-help-right","","SIZE","1rem"),bottomPosition:r.create("--ft-in-product-help-bottom","","SIZE","1rem"),leftPosition:r.create("--ft-in-product-help-left","","SIZE","unset"),zIndex:r.create("--ft-in-product-help-zindex","","NUMBER","10"),theaterSizeWidth:r.create("--ft-in-product-help-theater-width","","SIZE","90%"),theaterSizeHeight:r.create("--ft-in-product-help-theater-height","","SIZE","60%"),fullscreenSizeWidth:r.create("--ft-in-product-help-fullscreen-width","","SIZE","100%"),fullscreenSizeHeight:r.create("--ft-in-product-help-fullscreen-height","","SIZE","100%"),borderStyle:r.create("--ft-in-product-help-border-style","","BORDER-STYLE","solid"),borderWidth:r.create("--ft-in-product-help-border-width","","SIZE","0"),borderColor:r.extend("--ft-in-product-help-border-color","",z.colorPrimary),borderRadius:r.extend("--ft-in-product-help-border-radius","",z.borderRadiusM),shadow:r.extend("--ft-in-product-help-shadow","",z.elevation02),topBarHeight:r.create("--ft-in-product-help-top-bar-height","","SIZE","28px"),iconColor:r.extend("--ft-in-product-help-icon-color","",z.colorOnSurface),iconGap:r.create("--ft-in-product-help-icon-gap","","SIZE","8px"),tabletBreakpoint:r.create("--ft-in-product-help-tablet-breakpoint","","SIZE","768px"),desktopBreakpoint:r.create("--ft-in-product-help-desktop-breakpoint","","SIZE","1280px"),colorSurface:r.external(z.colorSurface,"Design system"),colorPrimary:r.external(z.colorPrimary,"Design system")},Wc=D`
|
|
51
51
|
.ft-in-product-help {
|
|
52
52
|
display: none;
|
|
53
53
|
position: fixed;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-in-product-help",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "Embeddable fluid-topics iframe",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.2.16",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
|
|
26
26
|
}
|