@fluid-topics/ft-copy-block 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 rc={};var Ma={};j(Ma,{ParametrizedLabelResolver:()=>Gr});var Gr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var li={};j(li,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>at,FtReduxStore:()=>kt,clearAllStores:()=>wu,isFtReduxStore:()=>Tt,redux:()=>ko,reduxEventListener:()=>Hp,reduxReactive:()=>Wp});var Wp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ko=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Lr,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},Hp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Vr=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Tt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var oc,nc,ac,Do=Symbol("internalReduxEventsUnsubscribers"),nt=Symbol("internalStoresUnsubscribers"),It=Symbol("internalStores"),at=class extends K{constructor(){super(...arguments),this[oc]=new Map,this[nc]=new Map,this[ac]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[It].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[It].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[It].get(e)}addStore(e,o){var n;o=(n=o??(Tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[It].delete(o)}setupStore(e,o){this[It].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[It].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[nt].has(e.store):this[nt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[nt].set(e,o.subscribe(()=>this.updateFromStores())),Tt(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[Do].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[nt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Do].forEach(e=>e()),this[Do]=[]}unsubscribeFromStore(e){this[nt].has(e)&&this[nt].get(e)(),this[nt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=nt,nc=It,ac=Do;at.reduxProperties=new Map;at.reduxReactiveProperties=new Set;at.reduxEventListeners=new Map;function ve(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ye(t){return!!t&&!!t[Y]}function we(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Yp}(t)||Array.isArray(t)||!!t[uc]||!!(!((e=t.constructor)===null||e===void 0)&&e[uc])||Va(t)||Ka(t))}function $t(t,e,o){o===void 0&&(o=!1),Qt(t)===0?(o?Object.keys:Jt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Qt(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Va(t)?2:Ka(t)?3:0}function Xt(t,e){return Qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function zp(t,e){return Qt(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=Qt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Va(t){return Zp&&t instanceof Map}function Ka(t){return qp&&t instanceof Set}function it(t){return t.o||t.t}function Za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[Y];for(var o=Jt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qa(t,e){return e===void 0&&(e=!1),Ya(t)||Ye(t)||!we(t)||(Qt(t)>1&&(t.set=t.add=t.clear=t.delete=jp),Object.freeze(t),e&&$t(t,function(o,n){return qa(n,!0)},!0)),t}function jp(){ve(2)}function Ya(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ue(t){var e=Ga[t];return e||ve(18,t),e}function Gp(t,e){Ga[t]||(Ga[t]=e)}function Ha(){return Zr}function Ua(t,e){e&&(Ue("Patches"),t.u=[],t.s=[],t.v=e)}function Mo(t){za(t),t.p.forEach(Vp),t.p=null}function za(t){t===Zr&&(Zr=t.l)}function ic(t){return Zr={p:[],l:Zr,h:t,m:!0,_:0}}function Vp(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ba(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ue("ES5").S(e,t,n),n?(o[Y].P&&(Mo(e),ve(4)),we(t)&&(t=Uo(e,t),e.l||Bo(e,t)),e.u&&Ue("Patches").M(o[Y].t,t,e.u,e.s)):t=Uo(e,o,[]),Mo(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Uo(t,e,o){if(Ya(e))return e;var n=e[Y];if(!n)return $t(e,function(l,d){return sc(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Bo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Za(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),$t(i,function(l,d){return sc(t,n,a,l,d,o,s)}),Bo(t,a,!1),o&&t.u&&Ue("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(Ye(a)){var l=Uo(t,a,i&&e&&e.i!==3&&!Xt(e.R,n)?i.concat(n):void 0);if(fc(o,n,l),!Ye(l))return;t.m=!1}else s&&o.add(a);if(we(a)&&!Ya(a)){if(!t.h.D&&t._<1)return;Uo(t,a),e&&e.A.l||Bo(t,a)}}function Bo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qa(e,o)}function Fa(t,e){var o=t[Y];return(o?it(o):t)[e]}function cc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function st(t){t.P||(t.P=!0,t.l&&st(t.l))}function Wa(t){t.o||(t.o=Za(t.t))}function ja(t,e,o){var n=Va(e)?Ue("MapSet").F(e,o):Ka(e)?Ue("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ha(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=qr;s&&(d=[l],p=Kr);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,o):Ue("ES5").J(e,o);return(o?o.A:Ha()).p.push(n),n}function Kp(t){return Ye(t)||ve(22,t),function e(o){if(!we(o))return o;var n,a=o[Y],i=Qt(o);if(a){if(!a.P&&(a.i<4||!Ue("ES5").K(a)))return a.t;a.I=!0,n=lc(o,i),a.I=!1}else n=lc(o,i);return $t(n,function(s,l){a&&zp(a.t,s)===l||fc(n,s,e(l))}),i===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Za(t)}function yc(){function t(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 qr.get(p,s)},set:function(p){var f=this[Y];qr.set(f,s,p)}},d}function e(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)&&st(d);break;case 4:o(d)&&st(d)}}}function o(s){for(var l=s.t,d=s.k,p=Jt(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==Y){var m=l[h];if(m===void 0&&!Xt(l,h))return!0;var b=d[h],x=b&&b[Y];if(x?x.t!==m:!hc(b,m))return!0}}var O=!!l[Y];return p.length!==Jt(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&&ve(3,JSON.stringify(it(s)))}var i={};Gp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var O=gc(m);delete O[Y];for(var N=Jt(O),L=0;L<N.length;L++){var P=N[L];O[P]=t(P,h||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),f={i:d?5:4,A:l?l.A:Ha(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:f,writable:!0}),p},S:function(s,l,d){d?Ye(l)&&l[Y].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[Y];if(h){var m=h.t,b=h.k,x=h.R,O=h.i;if(O===4)$t(b,function(S){S!==Y&&(m[S]!==void 0||Xt(m,S)?x[S]||p(b[S]):(x[S]=!0,st(h)))}),$t(m,function(S){b[S]!==void 0||Xt(b,S)||(x[S]=!1,st(h))});else if(O===5){if(n(h)&&(st(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),C=0;C<P;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&p(b[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,Zr,Xa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Zp=typeof Map<"u",qp=typeof Set<"u",pc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=Xa?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),uc=Xa?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Xa?Symbol.for("immer-state"):"__$immer_state";var Yp=""+Object.prototype.constructor,Jt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return Jt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ga={},qr={get:function(t,e){if(e===Y)return t;var o=it(t);if(!Xt(o,e))return function(a,i,s){var l,d=cc(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!we(n)?n:n===Fa(t.t,e)?(Wa(t),t.o[e]=ja(t.A.h,n,t)):n},has:function(t,e){return e in it(t)},ownKeys:function(t){return Reflect.ownKeys(it(t))},set:function(t,e,o){var n=cc(it(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Fa(it(t),e),i=a?.[Y];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||Xt(t.t,e)))return!0;Wa(t),st(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wa(t),st(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=it(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ve(12)}},Kr={};$t(qr,function(t,e){Kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)},Kr.set=function(t,e,o){return qr.set.call(this,t[0],e,o,t[0])};var Xp=function(){function t(o){var n=this;this.O=pc,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 L=arguments.length,P=Array(L>1?L-1:0),C=1;C<L;C++)P[C-1]=arguments[C];return d.produce(O,function(S){var E;return(E=i).call.apply(E,[N,S].concat(P))})}}var p;if(typeof i!="function"&&ve(6),s!==void 0&&typeof s!="function"&&ve(7),we(a)){var f=ic(n),h=ja(n,a,void 0),m=!0;try{p=i(h),m=!1}finally{m?Mo(f):za(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ua(f,s),Ba(O,f)},function(O){throw Mo(f),O}):(Ua(f,s),Ba(p,f))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&qa(p,!0),s){var b=[],x=[];Ue("Patches").M(a,p,b,x),s(b,x)}return p}ve(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return a.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(a,i,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){we(o)||ve(8),Ye(o)&&(o=Kp(o));var n=ic(this),a=ja(this,o,void 0);return a[Y].C=!0,za(n),a},e.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return Ua(i,n),Ba(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!pc&&ve(20),this.O=o},e.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=Ue("Patches").$;return Ye(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),xe=new Xp,Jp=xe.produce,lb=xe.produceWithPatches.bind(xe),db=xe.setAutoFreeze.bind(xe),pb=xe.setUseProxies.bind(xe),ub=xe.applyPatches.bind(xe),fb=xe.createDraft.bind(xe),hb=xe.finishDraft.bind(xe),Fo=Jp;function ct(t){"@babel/helpers - typeof";return ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(t)}function Ja(t,e){if(ct(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qa(t){var e=Ja(t,"string");return ct(e)==="symbol"?e:String(e)}function ei(t,e,o){return e=Qa(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function bc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Wo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bc(Object(o),!0).forEach(function(n){ei(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):bc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function de(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+ti(),REPLACE:"@@redux/REPLACE"+ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ti()}};function Qp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ri(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(de(1));return o(ri)(t,e)}if(typeof t!="function")throw new Error(de(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(de(3));return i}function h(O){if(typeof O!="function")throw new Error(de(4));if(d)throw new Error(de(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(de(6));N=!1,p();var P=l.indexOf(O);l.splice(P,1),s=null}}}function m(O){if(!Qp(O))throw new Error(de(7));if(typeof O.type>"u")throw new Error(de(8));if(d)throw new Error(de(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return O}function b(O){if(typeof O!="function")throw new Error(de(10));a=O,m({type:Ho.REPLACE})}function x(){var O,N=h;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(de(11));function C(){P.next&&P.next(f())}C();var S=N(C);return{unsubscribe:S}}},O[xc]=function(){return this},O}return m({type:Ho.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[xc]=x,n}function eu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(de(12));if(typeof o(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function vc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{eu(o)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<i.length;x++){var O=i[x],N=o[O],L=p[O],P=N(L,f);if(typeof P>"u"){var C=f&&f.type;throw new Error(de(14))}b[O]=P,m=m||P!==L}return m=m||i.length!==Object.keys(p).length,m?b:p}}function er(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Sc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(de(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=er.apply(void 0,l)(a.dispatch),Wo(Wo({},a),{},{dispatch:i})}}}function Oc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Cc=Oc();Cc.withExtraArgument=Oc;var oi=Cc;var Nc=function(){var t=function(e,o){return t=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])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),tu=function(t,e){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(f){return d([p,f])}}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=e.call(t,o)}catch(f){p=[6,f],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},tr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},ru=Object.defineProperty,ou=Object.defineProperties,nu=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,wc=function(t,e,o){return e in t?ru(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},lt=function(t,e){for(var o in e||(e={}))au.call(e,o)&&wc(t,o,e[o]);if(Ec)for(var n=0,a=Ec(e);n<a.length;n++){var o=a[n];iu.call(e,o)&&wc(t,o,e[o])}return t},ni=function(t,e){return ou(t,nu(e))},su=function(t,e,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(t,e)).next())})};var cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?er:er.apply(null,arguments)},Tb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function lu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var du=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array),pu=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array);function si(t){return we(t)?Fo(t,function(){}):t}function uu(t){return typeof t=="boolean"}function fu(){return function(e){return hu(e)}}function hu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new du;if(o&&(uu(o)?l.push(oi):l.push(oi.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var ai=!0;function _c(t){var e=fu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(lu(a))b=vc(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(e),!ai&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Sc.apply(void 0,x),N=er;d&&(N=cu(lt({trace:!ai},typeof d=="object"&&d)));var L=new pu(O),P=L;Array.isArray(m)?P=tr([O],m):typeof m=="function"&&(P=m(L));var C=N.apply(void 0,P);return ri(b,f,C)}function dt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return lt(lt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Lc(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function yu(t){return typeof t=="function"}function mu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Lc(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(yu(t))d=function(){return si(t())};else{var p=si(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=tr([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(Ye(x)){var N=x,L=O(N,m);return L===void 0?x:L}else{if(we(x))return Fo(x,function(P){return O(P,m)});var L=O(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function gu(t,e){return t+"/"+e}function Pc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:si(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(f){var h=n[f],m=gu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,i[f]=b,s[m]=b,l[f]=x?dt(m,x):dt(m)});function d(){var f=typeof t.extraReducers=="function"?Lc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,O=f[2],N=O===void 0?void 0:O,L=lt(lt({},m),s);return mu(o,function(P){for(var C in L)P.addCase(C,L[C]);for(var S=0,E=x;S<E.length;S++){var T=E[S];P.addMatcher(T.matcher,T.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var bu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=bu[Math.random()*64|0];return e},vu=["name","message","stack","code"],ii=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ac=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Su=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=vu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Db=function(){function t(e,o,n){var a=dt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:ni(lt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=dt(e+"/pending",function(f,h,m){return{payload:void 0,meta:ni(lt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=dt(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||Su)(f||"Rejected"),meta:ni(lt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):xu(),O=new d,N,L=!1;function P(S){N=S,O.abort()}var C=function(){return su(this,null,function(){var S,E,T,M,H,W,$;return tu(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,f,{getState:m,extra:b}),Cu(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 L=!0,H=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),h(i(x,f,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([H,Promise.resolve(o(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(v,I){return new ii(v,I)},fulfillWithValue:function(v,I){return new Ac(v,I)}})).then(function(v){if(v instanceof ii)throw v;return v instanceof Ac?a(v.payload,x,f,v.meta):a(v,x,f)})])];case 3:return T=y.sent(),[3,5];case 4:return W=y.sent(),T=W instanceof ii?s(null,x,f,W.payload,W.meta):s(W,x,f),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||h(T),[2,T]}})})}();return Object.assign(C,{abort:P,requestId:x,arg:f,unwrap:function(){return C.then(Ou)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ou(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Cu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Tc="listener",Ic="completed",$c="cancelled",Mb="task-"+$c,Ub="task-"+Ic,Bb=Tc+"-"+$c,Fb=Tc+"-"+Ic;var ci="listenerMiddleware";var Wb=dt(ci+"/add"),Hb=dt(ci+"/removeAll"),zb=dt(ci+"/remove");var Rc,jb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Rc||(Rc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Eu=function(t){return function(e){setTimeout(e,t)}},Gb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Eu(10);yc();window.ftReduxStores||(window.ftReduxStores={});var kt=class t extends Rt{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Tt(i))return i;if(a==null)return;let s=Pc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=_c({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 t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Vr,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(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function wu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Tt(e)&&e.clear()}var ui={};j(ui,{scrollHelper:()=>Au});var di,zo=new Map,pi=class{lock(e,o){if(o){let n=zo.get(o);if(n==null||n===e)return zo.set(o,e),o}}release(e,o){o&&zo.get(o)===e&&zo.delete(o)}findFirstScrollableParent(e){let o,n=a=>{var i;a.stopPropagation();let s,l;for(let d of a.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}o=(i=s??l)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){let n=0;for(;o&&o.offsetParent!==e.offsetParent;)n+=o.offsetTop,o=o.offsetParent;return n+o.offsetTop-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Pr(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",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(di=window.FluidTopicsScrollHelper)!==null&&di!==void 0?di:new pi;var Au=window.FluidTopicsScrollHelper;var fi={};j(fi,{shadowQuerySelector:()=>Ru,shadowQuerySelectorAll:()=>Nu});function Ru(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Nu(t,e,...o){let n=[...t.querySelectorAll(e)];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 hi={};j(hi,{SearchPlaceConverter:()=>Xr,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>al,serializeRequest:()=>Pu});var _u=Xl(Dc(),1);var Mc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Mc||(Mc={}));var Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Bc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Bc||(Bc={}));var Fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Fc||(Fc={}));var Wc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Wc||(Wc={}));var Hc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hc||(Hc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var jc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(jc||(jc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Gc||(Gc={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var Zc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Zc||(Zc={}));var el=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(qc||(qc={}));var Yc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Yc||(Yc={}));var Xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Xc||(Xc={}));var Yr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var tl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Jc||(Jc={}));var Qc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qc||(Qc={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ne||(ne={}));var rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(rl||(rl={}));var ol;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ol||(ol={}));var lx={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.DEVELOPER]:[ne.BETA_USER,ne.DEBUG_USER]};function Lu(t){return`"${t}"`}function nl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Pu(t,e){return new Xr(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(V||(V={}));var Tu=new Set(Object.values(V));function al(t){return Tu.has(t)}var Xr=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,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(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).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(e,o=!1){var n,a,i,s,l,d,p,f,h,m,b,x;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(V.LOCALE,e.contentLocale):O.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(V.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&O.append(V.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(V.SORT,"last_update");let N=(s=(i=e.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(E=>{var T,M;let H=((M=(T=E.valueFilter)===null||T===void 0?void 0:T.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(Lu(nl(W)))).join("_");return`${E.key}~${H}`}).join("*");O.append(V.VALUE_FILTERS,S)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let S=L.map(E=>{var T;return`${E.key}~${(T=E.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(V.DATE_FILTERS,S)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let S=P.map(E=>{var T,M;return`${E.key}~${(T=E.rangeFilter)===null||T===void 0?void 0:T.from}_${(M=E.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");O.append(V.RANGE_FILTERS,S)}let C=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let S in C)O.append(S,C[S]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(V.PER_PAGE,String(e.paging.perPage)),O}parse(e){var o;let n=e.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(e){var o,n,a,i,s,l,d,p;let f=e.get(V.LOCALE)==="all"?void 0:e.get(V.LOCALE),h=((o=e.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(V.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=e.get(V.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=e.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of e.keys())al(N)||(O[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(V.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:el(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Pr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(V.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(nl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Yr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(tl(e))return[{key:"ft:lastEdition",dateFilter:{type:Yr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var mi={};j(mi,{toFtFormComponent:()=>yi});var Vo=Symbol("elementInternals");function yi(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...a){super(a),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(a){this[Vo].setFormValue(a)}}return o}var gi={};j(gi,{DateFormatter:()=>or});var or=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var bi,xi,vi,Si,Oi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((vi=(xi=(bi=window.safari)===null||bi===void 0?void 0:bi.pushNotification)===null||xi===void 0?void 0:xi.toString())!==null&&vi!==void 0?vi:"")==="[object SafariRemoteNotification]",Iu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Si=window.ftGlobals)!==null&&Si!==void 0?Si:{lit:xn,litDecorators:Sn,litRepeat:On,litClassMap:Cn,litStyleMap:En,litUnsafeHTML:An,wcUtils:{...In,...Nn,...kn,...gi,...Dn,...Un,...fa,...Tn,...Na,...ua,...Ta,...La,...ec,...Mn,...ka,...Da,...rc,...Ma,...li,..._a,...ui,...fi,...hi,...mi,isSafari:Oi,isTouchScreen:Iu,setVariable:w}};var il=r.extend("--ft-ripple-color","",G.colorContent),R={color:il,backgroundColor:r.extend("--ft-ripple-background-color","",il),opacityContentOnSurfacePressed:r.external(G.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(G.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(G.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(G.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},sl=r.extend("--ft-ripple-color","",G.colorPrimary),cl={color:sl,backgroundColor:r.extend("--ft-ripple-background-color","",sl)},ll=r.extend("--ft-ripple-color","",G.colorSecondary),dl={color:ll,backgroundColor:r.extend("--ft-ripple-background-color","",ll)},pl=D`
|
|
50
|
+
`;var rc={};var Ma={};j(Ma,{ParametrizedLabelResolver:()=>Gr});var Gr=class t{constructor(e,o){this.defaultLabels=e,this.labels=o}resolve(e,...o){var n,a;e=this.resolvePluralKey(e,o);let i=(a=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&a!==void 0?a:"";return t.replaceParameters(i,...o)}static replaceParameters(e,...o){return o.forEach((n,a)=>e=e.replace(new RegExp(`\\{${a}([^}]*)\\}`,"g"),(i,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,o){for(let n of o)if(typeof n=="number"){let a=`${String(e)}[\\=${n}]`;if(a in this.labels||a in this.defaultLabels)return a}return e}static formatValue(e,o){return e instanceof Date?t.formatDate(e,o):e??""}static formatDate(e,o){let n=a=>o?.includes("date")?e.toLocaleDateString(a):o?.includes("time")?e.toLocaleTimeString(a):e.toLocaleString(a);try{return n(document.documentElement.lang)}catch{return n()}}};var li={};j(li,{FtCommandQueue:()=>Vr,FtLitElementRedux:()=>at,FtReduxStore:()=>kt,clearAllStores:()=>wu,isFtReduxStore:()=>Tt,redux:()=>ko,reduxEventListener:()=>Hp,reduxReactive:()=>Wp});var Wp=()=>(t,e)=>{var o;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(o=n.reduxReactiveProperties)===null||o===void 0||o.add(e)},ko=t=>{let e=t??{};return(o,n)=>{var a;let i={hasChanged:Lr,attribute:!1,...e};A(i)(o,n);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:l=>l[n],store:e.store})}},Hp=t=>(e,o)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(o,t)};var Vr=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(n=>n.type===e);return o&&(this.queue=this.queue.filter(n=>n!==o)),o}};function Tt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var oc,nc,ac,Do=Symbol("internalReduxEventsUnsubscribers"),nt=Symbol("internalStoresUnsubscribers"),It=Symbol("internalStores"),at=class extends K{constructor(){super(...arguments),this[oc]=new Map,this[nc]=new Map,this[ac]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[It].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[It].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[It].get(e)}addStore(e,o){var n;o=(n=o??(Tt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[It].delete(o)}setupStore(e,o){this[It].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[It].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let n=this.constructor.getPropertyOptions(o);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:o)){let a=this.getStore(e.store);a&&(e.store?this[nt].has(e.store):this[nt].size>0)&&(this[o]=e.selector(a.getState(),this))}})}subscribeToStore(e,o){var n;this[nt].set(e,o.subscribe(()=>this.updateFromStores())),Tt(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[Do].push(()=>o.removeEventListener(a.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[nt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[Do].forEach(e=>e()),this[Do]=[]}unsubscribeFromStore(e){this[nt].has(e)&&this[nt].get(e)(),this[nt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=nt,nc=It,ac=Do;at.reduxProperties=new Map;at.reduxReactiveProperties=new Set;at.reduxEventListeners=new Map;function ve(t){for(var e=arguments.length,o=Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];if(0)var a,i;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ye(t){return!!t&&!!t[Y]}function we(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var n=Object.getPrototypeOf(o);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Yp}(t)||Array.isArray(t)||!!t[uc]||!!(!((e=t.constructor)===null||e===void 0)&&e[uc])||Va(t)||Ka(t))}function $t(t,e,o){o===void 0&&(o=!1),Qt(t)===0?(o?Object.keys:Jt)(t).forEach(function(n){o&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,a){return e(a,n,t)})}function Qt(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Va(t)?2:Ka(t)?3:0}function Xt(t,e){return Qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function zp(t,e){return Qt(t)===2?t.get(e):t[e]}function fc(t,e,o){var n=Qt(t);n===2?t.set(e,o):n===3?t.add(o):t[e]=o}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Va(t){return Zp&&t instanceof Map}function Ka(t){return qp&&t instanceof Set}function it(t){return t.o||t.t}function Za(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[Y];for(var o=Jt(e),n=0;n<o.length;n++){var a=o[n],i=e[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[a]})}return Object.create(Object.getPrototypeOf(t),e)}function qa(t,e){return e===void 0&&(e=!1),Ya(t)||Ye(t)||!we(t)||(Qt(t)>1&&(t.set=t.add=t.clear=t.delete=jp),Object.freeze(t),e&&$t(t,function(o,n){return qa(n,!0)},!0)),t}function jp(){ve(2)}function Ya(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ue(t){var e=Ga[t];return e||ve(18,t),e}function Gp(t,e){Ga[t]||(Ga[t]=e)}function Ha(){return Zr}function Ua(t,e){e&&(Ue("Patches"),t.u=[],t.s=[],t.v=e)}function Mo(t){za(t),t.p.forEach(Vp),t.p=null}function za(t){t===Zr&&(Zr=t.l)}function ic(t){return Zr={p:[],l:Zr,h:t,m:!0,_:0}}function Vp(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ba(t,e){e._=e.p.length;var o=e.p[0],n=t!==void 0&&t!==o;return e.h.O||Ue("ES5").S(e,t,n),n?(o[Y].P&&(Mo(e),ve(4)),we(t)&&(t=Uo(e,t),e.l||Bo(e,t)),e.u&&Ue("Patches").M(o[Y].t,t,e.u,e.s)):t=Uo(e,o,[]),Mo(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Uo(t,e,o){if(Ya(e))return e;var n=e[Y];if(!n)return $t(e,function(l,d){return sc(t,n,e,l,d,o)},!0),e;if(n.A!==t)return e;if(!n.P)return Bo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Za(n.k):n.o,i=a,s=!1;n.i===3&&(i=new Set(a),a.clear(),s=!0),$t(i,function(l,d){return sc(t,n,a,l,d,o,s)}),Bo(t,a,!1),o&&t.u&&Ue("Patches").N(n,o,t.u,t.s)}return n.o}function sc(t,e,o,n,a,i,s){if(Ye(a)){var l=Uo(t,a,i&&e&&e.i!==3&&!Xt(e.R,n)?i.concat(n):void 0);if(fc(o,n,l),!Ye(l))return;t.m=!1}else s&&o.add(a);if(we(a)&&!Ya(a)){if(!t.h.D&&t._<1)return;Uo(t,a),e&&e.A.l||Bo(t,a)}}function Bo(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&qa(e,o)}function Fa(t,e){var o=t[Y];return(o?it(o):t)[e]}function cc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var n=Object.getOwnPropertyDescriptor(o,e);if(n)return n;o=Object.getPrototypeOf(o)}}function st(t){t.P||(t.P=!0,t.l&&st(t.l))}function Wa(t){t.o||(t.o=Za(t.t))}function ja(t,e,o){var n=Va(e)?Ue("MapSet").F(e,o):Ka(e)?Ue("MapSet").T(e,o):t.O?function(a,i){var s=Array.isArray(a),l={i:s?1:0,A:i?i.A:Ha(),P:!1,I:!1,R:{},l:i,t:a,k:null,o:null,j:null,C:!1},d=l,p=qr;s&&(d=[l],p=Kr);var f=Proxy.revocable(d,p),h=f.revoke,m=f.proxy;return l.k=m,l.j=h,m}(e,o):Ue("ES5").J(e,o);return(o?o.A:Ha()).p.push(n),n}function Kp(t){return Ye(t)||ve(22,t),function e(o){if(!we(o))return o;var n,a=o[Y],i=Qt(o);if(a){if(!a.P&&(a.i<4||!Ue("ES5").K(a)))return a.t;a.I=!0,n=lc(o,i),a.I=!1}else n=lc(o,i);return $t(n,function(s,l){a&&zp(a.t,s)===l||fc(n,s,e(l))}),i===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Za(t)}function yc(){function t(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 qr.get(p,s)},set:function(p){var f=this[Y];qr.set(f,s,p)}},d}function e(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)&&st(d);break;case 4:o(d)&&st(d)}}}function o(s){for(var l=s.t,d=s.k,p=Jt(d),f=p.length-1;f>=0;f--){var h=p[f];if(h!==Y){var m=l[h];if(m===void 0&&!Xt(l,h))return!0;var b=d[h],x=b&&b[Y];if(x?x.t!==m:!hc(b,m))return!0}}var O=!!l[Y];return p.length!==Jt(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&&ve(3,JSON.stringify(it(s)))}var i={};Gp("ES5",{J:function(s,l){var d=Array.isArray(s),p=function(h,m){if(h){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var O=gc(m);delete O[Y];for(var N=Jt(O),L=0;L<N.length;L++){var P=N[L];O[P]=t(P,h||!!O[P].enumerable)}return Object.create(Object.getPrototypeOf(m),O)}(d,s),f={i:d?5:4,A:l?l.A:Ha(),P:!1,I:!1,R:{},l,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,Y,{value:f,writable:!0}),p},S:function(s,l,d){d?Ye(l)&&l[Y].A===s&&e(s.p):(s.u&&function p(f){if(f&&typeof f=="object"){var h=f[Y];if(h){var m=h.t,b=h.k,x=h.R,O=h.i;if(O===4)$t(b,function(S){S!==Y&&(m[S]!==void 0||Xt(m,S)?x[S]||p(b[S]):(x[S]=!0,st(h)))}),$t(m,function(S){b[S]!==void 0||Xt(b,S)||(x[S]=!1,st(h))});else if(O===5){if(n(h)&&(st(h),x.length=!0),b.length<m.length)for(var N=b.length;N<m.length;N++)x[N]=!1;else for(var L=m.length;L<b.length;L++)x[L]=!0;for(var P=Math.min(b.length,m.length),C=0;C<P;C++)b.hasOwnProperty(C)||(x[C]=!0),x[C]===void 0&&p(b[C])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):n(s)}})}var dc,Zr,Xa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Zp=typeof Map<"u",qp=typeof Set<"u",pc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=Xa?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),uc=Xa?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Xa?Symbol.for("immer-state"):"__$immer_state";var Yp=""+Object.prototype.constructor,Jt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return Jt(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ga={},qr={get:function(t,e){if(e===Y)return t;var o=it(t);if(!Xt(o,e))return function(a,i,s){var l,d=cc(i,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(a.k):void 0}(t,o,e);var n=o[e];return t.I||!we(n)?n:n===Fa(t.t,e)?(Wa(t),t.o[e]=ja(t.A.h,n,t)):n},has:function(t,e){return e in it(t)},ownKeys:function(t){return Reflect.ownKeys(it(t))},set:function(t,e,o){var n=cc(it(t),e);if(n?.set)return n.set.call(t.k,o),!0;if(!t.P){var a=Fa(it(t),e),i=a?.[Y];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hc(o,a)&&(o!==void 0||Xt(t.t,e)))return!0;Wa(t),st(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Fa(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Wa(t),st(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=it(t),n=Reflect.getOwnPropertyDescriptor(o,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:o[e]}},defineProperty:function(){ve(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ve(12)}},Kr={};$t(qr,function(t,e){Kr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)},Kr.set=function(t,e,o){return qr.set.call(this,t[0],e,o,t[0])};var Xp=function(){function t(o){var n=this;this.O=pc,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 L=arguments.length,P=Array(L>1?L-1:0),C=1;C<L;C++)P[C-1]=arguments[C];return d.produce(O,function(S){var E;return(E=i).call.apply(E,[N,S].concat(P))})}}var p;if(typeof i!="function"&&ve(6),s!==void 0&&typeof s!="function"&&ve(7),we(a)){var f=ic(n),h=ja(n,a,void 0),m=!0;try{p=i(h),m=!1}finally{m?Mo(f):za(f)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return Ua(f,s),Ba(O,f)},function(O){throw Mo(f),O}):(Ua(f,s),Ba(p,f))}if(!a||typeof a!="object"){if((p=i(a))===void 0&&(p=a),p===mc&&(p=void 0),n.D&&qa(p,!0),s){var b=[],x=[];Ue("Patches").M(a,p,b,x),s(b,x)}return p}ve(21,a)},this.produceWithPatches=function(a,i){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),m=1;m<f;m++)h[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return a.apply(void 0,[b].concat(h))})};var s,l,d=n.produce(a,i,function(p,f){s=p,l=f});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,l]}):[d,s,l]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){we(o)||ve(8),Ye(o)&&(o=Kp(o));var n=ic(this),a=ja(this,o,void 0);return a[Y].C=!0,za(n),a},e.finishDraft=function(o,n){var a=o&&o[Y],i=a.A;return Ua(i,n),Ba(void 0,i)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!pc&&ve(20),this.O=o},e.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=Ue("Patches").$;return Ye(o)?s(o,n):this.produce(o,function(l){return s(l,n)})},t}(),xe=new Xp,Jp=xe.produce,lb=xe.produceWithPatches.bind(xe),db=xe.setAutoFreeze.bind(xe),pb=xe.setUseProxies.bind(xe),ub=xe.applyPatches.bind(xe),fb=xe.createDraft.bind(xe),hb=xe.finishDraft.bind(xe),Fo=Jp;function ct(t){"@babel/helpers - typeof";return ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(t)}function Ja(t,e){if(ct(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var n=o.call(t,e||"default");if(ct(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Qa(t){var e=Ja(t,"string");return ct(e)==="symbol"?e:String(e)}function ei(t,e,o){return e=Qa(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function bc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function Wo(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?bc(Object(o),!0).forEach(function(n){ei(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):bc(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function de(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+ti(),REPLACE:"@@redux/REPLACE"+ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ti()}};function Qp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ri(t,e,o){var n;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(de(1));return o(ri)(t,e)}if(typeof t!="function")throw new Error(de(2));var a=t,i=e,s=[],l=s,d=!1;function p(){l===s&&(l=s.slice())}function f(){if(d)throw new Error(de(3));return i}function h(O){if(typeof O!="function")throw new Error(de(4));if(d)throw new Error(de(5));var N=!0;return p(),l.push(O),function(){if(N){if(d)throw new Error(de(6));N=!1,p();var P=l.indexOf(O);l.splice(P,1),s=null}}}function m(O){if(!Qp(O))throw new Error(de(7));if(typeof O.type>"u")throw new Error(de(8));if(d)throw new Error(de(9));try{d=!0,i=a(i,O)}finally{d=!1}for(var N=s=l,L=0;L<N.length;L++){var P=N[L];P()}return O}function b(O){if(typeof O!="function")throw new Error(de(10));a=O,m({type:Ho.REPLACE})}function x(){var O,N=h;return O={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(de(11));function C(){P.next&&P.next(f())}C();var S=N(C);return{unsubscribe:S}}},O[xc]=function(){return this},O}return m({type:Ho.INIT}),n={dispatch:m,subscribe:h,getState:f,replaceReducer:b},n[xc]=x,n}function eu(t){Object.keys(t).forEach(function(e){var o=t[e],n=o(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(de(12));if(typeof o(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function vc(t){for(var e=Object.keys(t),o={},n=0;n<e.length;n++){var a=e[n];typeof t[a]=="function"&&(o[a]=t[a])}var i=Object.keys(o),s,l;try{eu(o)}catch(d){l=d}return function(p,f){if(p===void 0&&(p={}),l)throw l;if(0)var h;for(var m=!1,b={},x=0;x<i.length;x++){var O=i[x],N=o[O],L=p[O],P=N(L,f);if(typeof P>"u"){var C=f&&f.type;throw new Error(de(14))}b[O]=P,m=m||P!==L}return m=m||i.length!==Object.keys(p).length,m?b:p}}function er(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Sc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error(de(15))},s={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return i=er.apply(void 0,l)(a.dispatch),Wo(Wo({},a),{},{dispatch:i})}}}function Oc(t){var e=function(n){var a=n.dispatch,i=n.getState;return function(s){return function(l){return typeof l=="function"?l(a,i,t):s(l)}}};return e}var Cc=Oc();Cc.withExtraArgument=Oc;var oi=Cc;var Nc=function(){var t=function(e,o){return t=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])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function n(){this.constructor=e}e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}(),tu=function(t,e){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(f){return d([p,f])}}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=e.call(t,o)}catch(f){p=[6,f],a=0}finally{n=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},tr=function(t,e){for(var o=0,n=e.length,a=t.length;o<n;o++,a++)t[a]=e[o];return t},ru=Object.defineProperty,ou=Object.defineProperties,nu=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,au=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,wc=function(t,e,o){return e in t?ru(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},lt=function(t,e){for(var o in e||(e={}))au.call(e,o)&&wc(t,o,e[o]);if(Ec)for(var n=0,a=Ec(e);n<a.length;n++){var o=a[n];iu.call(e,o)&&wc(t,o,e[o])}return t},ni=function(t,e){return ou(t,nu(e))},su=function(t,e,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(t,e)).next())})};var cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?er:er.apply(null,arguments)},Tb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function lu(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var du=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array),pu=function(t){Nc(e,t);function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];var a=t.apply(this,o)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,tr([void 0],o[0].concat(this)))):new(e.bind.apply(e,tr([void 0],o.concat(this))))},e}(Array);function si(t){return we(t)?Fo(t,function(){}):t}function uu(t){return typeof t=="boolean"}function fu(){return function(e){return hu(e)}}function hu(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,n=t.immutableCheck,a=n===void 0?!0:n,i=t.serializableCheck,s=i===void 0?!0:i,l=new du;if(o&&(uu(o)?l.push(oi):l.push(oi.withExtraArgument(o.extraArgument))),0){if(a)var d;if(s)var p}return l}var ai=!0;function _c(t){var e=fu(),o=t||{},n=o.reducer,a=n===void 0?void 0:n,i=o.middleware,s=i===void 0?e():i,l=o.devTools,d=l===void 0?!0:l,p=o.preloadedState,f=p===void 0?void 0:p,h=o.enhancers,m=h===void 0?void 0:h,b;if(typeof a=="function")b=a;else if(lu(a))b=vc(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(e),!ai&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ai&&x.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Sc.apply(void 0,x),N=er;d&&(N=cu(lt({trace:!ai},typeof d=="object"&&d)));var L=new pu(O),P=L;Array.isArray(m)?P=tr([O],m):typeof m=="function"&&(P=m(L));var C=N.apply(void 0,P);return ri(b,f,C)}function dt(t,e){function o(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var i=e.apply(void 0,n);if(!i)throw new Error("prepareAction did not return an object");return lt(lt({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:n[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(n){return n.type===t},o}function Lc(t){var e={},o=[],n,a={addCase:function(i,s){var l=typeof i=="string"?i:i.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,a},addMatcher:function(i,s){return o.push({matcher:i,reducer:s}),a},addDefaultCase:function(i){return n=i,a}};return t(a),[e,o,n]}function yu(t){return typeof t=="function"}function mu(t,e,o,n){o===void 0&&(o=[]);var a=typeof e=="function"?Lc(e):[e,o,n],i=a[0],s=a[1],l=a[2],d;if(yu(t))d=function(){return si(t())};else{var p=si(t);d=function(){return p}}function f(h,m){h===void 0&&(h=d());var b=tr([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(Ye(x)){var N=x,L=O(N,m);return L===void 0?x:L}else{if(we(x))return Fo(x,function(P){return O(P,m)});var L=O(x,m);if(L===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return L}return x},h)}return f.getInitialState=d,f}function gu(t,e){return t+"/"+e}function Pc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:si(t.initialState),n=t.reducers||{},a=Object.keys(n),i={},s={},l={};a.forEach(function(f){var h=n[f],m=gu(e,f),b,x;"reducer"in h?(b=h.reducer,x=h.prepare):b=h,i[f]=b,s[m]=b,l[f]=x?dt(m,x):dt(m)});function d(){var f=typeof t.extraReducers=="function"?Lc(t.extraReducers):[t.extraReducers],h=f[0],m=h===void 0?{}:h,b=f[1],x=b===void 0?[]:b,O=f[2],N=O===void 0?void 0:O,L=lt(lt({},m),s);return mu(o,function(P){for(var C in L)P.addCase(C,L[C]);for(var S=0,E=x;S<E.length;S++){var T=E[S];P.addMatcher(T.matcher,T.reducer)}N&&P.addDefaultCase(N)})}var p;return{name:e,reducer:function(f,h){return p||(p=d()),p(f,h)},actions:l,caseReducers:i,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var bu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xu=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=bu[Math.random()*64|0];return e},vu=["name","message","stack","code"],ii=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ac=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Su=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,n=vu;o<n.length;o++){var a=n[o];typeof t[a]=="string"&&(e[a]=t[a])}return e}return{message:String(t)}},Db=function(){function t(e,o,n){var a=dt(e+"/fulfilled",function(f,h,m,b){return{payload:f,meta:ni(lt({},b||{}),{arg:m,requestId:h,requestStatus:"fulfilled"})}}),i=dt(e+"/pending",function(f,h,m){return{payload:void 0,meta:ni(lt({},m||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),s=dt(e+"/rejected",function(f,h,m,b,x){return{payload:b,error:(n&&n.serializeError||Su)(f||"Rejected"),meta:ni(lt({},x||{}),{arg:m,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f}();function p(f){return function(h,m,b){var x=n?.idGenerator?n.idGenerator(f):xu(),O=new d,N,L=!1;function P(S){N=S,O.abort()}var C=function(){return su(this,null,function(){var S,E,T,M,H,W,$;return tu(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,f,{getState:m,extra:b}),Cu(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 L=!0,H=new Promise(function(v,I){return O.signal.addEventListener("abort",function(){return I({name:"AbortError",message:N||"Aborted"})})}),h(i(x,f,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:f},{getState:m,extra:b}))),[4,Promise.race([H,Promise.resolve(o(f,{dispatch:h,getState:m,extra:b,requestId:x,signal:O.signal,abort:P,rejectWithValue:function(v,I){return new ii(v,I)},fulfillWithValue:function(v,I){return new Ac(v,I)}})).then(function(v){if(v instanceof ii)throw v;return v instanceof Ac?a(v.payload,x,f,v.meta):a(v,x,f)})])];case 3:return T=y.sent(),[3,5];case 4:return W=y.sent(),T=W instanceof ii?s(null,x,f,W.payload,W.meta):s(W,x,f),[3,5];case 5:return $=n&&!n.dispatchConditionRejection&&s.match(T)&&T.meta.condition,$||h(T),[2,T]}})})}();return Object.assign(C,{abort:P,requestId:x,arg:f,unwrap:function(){return C.then(Ou)}})}}return Object.assign(p,{pending:i,rejected:s,fulfilled:a,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ou(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Cu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Tc="listener",Ic="completed",$c="cancelled",Mb="task-"+$c,Ub="task-"+Ic,Bb=Tc+"-"+$c,Fb=Tc+"-"+Ic;var ci="listenerMiddleware";var Wb=dt(ci+"/add"),Hb=dt(ci+"/removeAll"),zb=dt(ci+"/remove");var Rc,jb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Rc||(Rc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Eu=function(t){return function(e){setTimeout(e,t)}},Gb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Eu(10);yc();window.ftReduxStores||(window.ftReduxStores={});var kt=class t extends Rt{static get(e){var o;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,i=window.ftReduxStores[n];if(Tt(i))return i;if(a==null)return;let s=Pc({...a,reducers:(o=a.reducers)!==null&&o!==void 0?o:{}}),l=_c({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 t(s,l)}constructor(e,o){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new Vr,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(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function wu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))Tt(e)&&e.clear()}var ui={};j(ui,{scrollHelper:()=>Au});var di,zo=new Map,pi=class{lock(e,o){if(o){let n=zo.get(o);if(n==null||n===e)return zo.set(o,e),o}}release(e,o){o&&zo.get(o)===e&&zo.delete(o)}findFirstScrollableParent(e){let o,n=a=>{var i;a.stopPropagation();let s,l;for(let d of a.composedPath()){let p=d,f=this.elementCanScroll(p);if(f&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else f&&l==null&&(l=p)}o=(i=s??l)!==null&&i!==void 0?i:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),o}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,o){var n,a;let i=0;for(;o&&o.offsetParent!==e.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)-e.offsetTop}computeTopOffsetRatio(e,o){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return o;default:return 0}}scrollIntoViewIfPossible(e,o){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let a=this.getAbsoluteScrollOffset(n,e),i=a-n.clientHeight+e.clientHeight,s=a,l=Pr(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",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(di=window.FluidTopicsScrollHelper)!==null&&di!==void 0?di:new pi;var Au=window.FluidTopicsScrollHelper;var fi={};j(fi,{shadowQuerySelector:()=>Ru,shadowQuerySelectorAll:()=>Nu});function Ru(t,e,...o){var n;let a=t.querySelector(e);for(let i of o)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(i);return a}function Nu(t,e,...o){let n=[...t.querySelectorAll(e)];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 hi={};j(hi,{SearchPlaceConverter:()=>Xr,SearchPlaceQueryParams:()=>V,isSearchPlaceQueryParams:()=>al,serializeRequest:()=>Pu});var _u=Xl(Dc(),1);var Mc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Mc||(Mc={}));var Uc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Uc||(Uc={}));var Bc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Bc||(Bc={}));var Fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Fc||(Fc={}));var Wc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Wc||(Wc={}));var Hc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hc||(Hc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var jc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(jc||(jc={}));var Gc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Gc||(Gc={}));var Vc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Vc||(Vc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var Zc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Zc||(Zc={}));var el=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(qc||(qc={}));var Yc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Yc||(Yc={}));var Xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Xc||(Xc={}));var Yr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Yr||(Yr={}));var tl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Jc||(Jc={}));var Qc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Qc||(Qc={}));var ne;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ne||(ne={}));var rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(rl||(rl={}));var ol;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ol||(ol={}));var lx={[ne.PERSONAL_BOOK_SHARE_USER]:[ne.PERSONAL_BOOK_USER],[ne.HTML_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.PDF_EXPORT_USER]:[ne.PERSONAL_BOOK_USER],[ne.KHUB_ADMIN]:[ne.CONTENT_PUBLISHER],[ne.ADMIN]:[ne.KHUB_ADMIN,ne.USERS_ADMIN,ne.PORTAL_ADMIN],[ne.DEVELOPER]:[ne.BETA_USER,ne.DEBUG_USER]};function Lu(t){return`"${t}"`}function nl(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Pu(t,e){return new Xr(t).serialize(e)}var V;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort",t.PER_PAGE="per-page"})(V||(V={}));var Tu=new Set(Object.values(V));function al(t){return Tu.has(t)}var Xr=class{constructor(e,o={},n=20,a=!1,i="en-US"){this.baseUrl=e,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(e,o){return this.serializeToCurrentPageIfPossible(e,o??"/search")}serializeToCurrentPageIfPossible(e,o){let n=this.toURLSearchParams(e).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(e,o=!1){var n,a,i,s,l,d,p,f,h,m,b,x;let O=new URLSearchParams;e.contentLocale?(!o||e.contentLocale!==this.defaultContentLocale)&&O.append(V.LOCALE,e.contentLocale):O.append(V.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((n=e.query)===null||n===void 0?void 0:n.length)>0&&O.append(V.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&O.append(V.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&O.append(V.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((a=e.sort)===null||a===void 0?void 0:a.length)>0&&e.sort[0].key==="ft:lastEdition"&&O.append(V.SORT,"last_update");let N=(s=(i=e.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(E=>{var T,M;let H=((M=(T=E.valueFilter)===null||T===void 0?void 0:T.values)!==null&&M!==void 0?M:[]).map(W=>this.escapeFilters(W)).map(W=>encodeURIComponent(Lu(nl(W)))).join("_");return`${E.key}~${H}`}).join("*");O.append(V.VALUE_FILTERS,S)}let L=(d=(l=e.metadataFilters)===null||l===void 0?void 0:l.filter(S=>S.dateFilter))!==null&&d!==void 0?d:[];if(L.length>0){let S=L.map(E=>{var T;return`${E.key}~${(T=E.dateFilter)===null||T===void 0?void 0:T.type.toLowerCase()}`}).join("*");O.append(V.DATE_FILTERS,S)}let P=(f=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(S=>S.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let S=P.map(E=>{var T,M;return`${E.key}~${(T=E.rangeFilter)===null||T===void 0?void 0:T.from}_${(M=E.rangeFilter)===null||M===void 0?void 0:M.to}`}).join("*");O.append(V.RANGE_FILTERS,S)}let C=(h=e.otherQueryParams)!==null&&h!==void 0?h:{};for(let S in C)O.append(S,C[S]);return!((m=e.paging)===null||m===void 0)&&m.perPage&&((x=(b=e.paging)===null||b===void 0?void 0:b.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&O.append(V.PER_PAGE,String(e.paging.perPage)),O}parse(e){var o;let n=e.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(e){var o,n,a,i,s,l,d,p;let f=e.get(V.LOCALE)==="all"?void 0:e.get(V.LOCALE),h=((o=e.get(V.VIRTUAL_FIELD))!==null&&o!==void 0?o:"EVERYWHERE").toUpperCase(),m=((n=e.get(V.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),b=(a=e.get(V.SCOPE))!==null&&a!==void 0?a:"default",x=+((i=e.get(V.PER_PAGE))!==null&&i!==void 0?i:this.defaultPerPage),O={};for(let N of e.keys())al(N)||(O[N]=e.get(N));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:decodeURIComponent((s=e.get(V.QUERY))!==null&&s!==void 0?s:""),scope:(l=this.scopeMapping[b])!==null&&l!==void 0?l:"DEFAULT",virtualField:el(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[m])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:Pr(1,isNaN(x)?this.defaultPerPage:x,1e3)},otherQueryParams:O}}parseCompatFilters(e){var o,n,a,i,s,l;let d=[];return e.has(V.FILTERS)&&(d=this.parseValueFilters((o=e.get(V.FILTERS))!==null&&o!==void 0?o:"")),(n=e.has(V.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((a=e.get(V.PERIOD))!==null&&a!==void 0?a:"").toUpperCase())]),[...d,...this.parseValueFilters((i=e.get(V.VALUE_FILTERS))!==null&&i!==void 0?i:""),...this.parseDateFilters((s=e.get(V.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(V.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(o=>o.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(nl).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],dateFilter:{type:Yr[o[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],rangeFilter:{from:o[1].split("_")[0],to:o[1].split("_")[1]}}))}escapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}superEscapeFilters(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replaceAll(n,a);return e}unescapeFilterValue(e){for(let[o,n,a]of this.filtersEscapeMapping)e=e.replace(a,o);return e}parseLegacyPeriodFilter(e){if(tl(e))return[{key:"ft:lastEdition",dateFilter:{type:Yr[e]}}];if(e.startsWith("CUSTOM_")){let[o,n,a]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:a}}]}return[]}};var mi={};j(mi,{toFtFormComponent:()=>yi});var Vo=Symbol("elementInternals");function yi(t,e){class o extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...a){super(a),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(a){this[Vo].setFormValue(a)}}return o}var gi={};j(gi,{DateFormatter:()=>or});var or=class{static format(e,o,n,a){return window.moment?window.moment(e).locale(o).format(this.getDateFormat(n,a)):e}static getDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}};var bi,xi,vi,Si,Oi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((vi=(xi=(bi=window.safari)===null||bi===void 0?void 0:bi.pushNotification)===null||xi===void 0?void 0:xi.toString())!==null&&vi!==void 0?vi:"")==="[object SafariRemoteNotification]",Iu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Si=window.ftGlobals)!==null&&Si!==void 0?Si:{lit:xn,litDecorators:Sn,litRepeat:On,litClassMap:Cn,litStyleMap:En,litUnsafeHTML:An,wcUtils:{...In,...Nn,...kn,...gi,...Dn,...Un,...fa,...Tn,...Na,...ua,...Ta,...La,...ec,...Mn,...ka,...Da,...rc,...Ma,...li,..._a,...ui,...fi,...hi,...mi,isSafari:Oi,isTouchScreen:Iu,setVariable:w}};var il=r.extend("--ft-ripple-color","",G.colorContent),R={color:il,backgroundColor:r.extend("--ft-ripple-background-color","",il),opacityContentOnSurfacePressed:r.external(G.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:r.external(G.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:r.external(G.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:r.external(G.opacityContentOnSurfaceSelected,"Design system"),borderRadius:r.create("--ft-ripple-border-radius","","SIZE","0px")},sl=r.extend("--ft-ripple-color","",G.colorPrimary),cl={color:sl,backgroundColor:r.extend("--ft-ripple-background-color","",sl)},ll=r.extend("--ft-ripple-color","",G.colorSecondary),dl={color:ll,backgroundColor:r.extend("--ft-ripple-background-color","",ll)},pl=D`
|
|
51
51
|
:host {
|
|
52
52
|
display: contents;
|
|
53
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-copy-block",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.16",
|
|
4
4
|
"description": "Copy block",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-i18n": "1.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "1.2.
|
|
22
|
+
"@fluid-topics/ft-i18n": "1.2.16",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "1.2.16",
|
|
24
24
|
"lit": "3.1.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "ede6b43f06ac3cf4720eace3f556b8917e364248"
|
|
27
27
|
}
|