@fluid-topics/ft-reader-topic-metadata 1.3.4 → 1.3.5

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.
@@ -1423,7 +1423,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1423
1423
  ></ftds-button>
1424
1424
  `:this.withAction?Kt.html`
1425
1425
  <slot name="action"></slot>
1426
- `:Kt.nothing}resolveButtonSize(){switch(this.size){case et.large:return et.medium;case et.medium:case et.small:return et.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Ar)}typographyVariant(){switch(this.size){case et.large:return vt.body2medium;case et.medium:case et.small:return vt.caption1medium}}};bt.elementDefinitions={"ft-typography":ot,"ft-icon":X,"ftds-button":wt};bt.styles=Ni;Le([(0,qt.property)({type:Boolean})],bt.prototype,"withAction",void 0);Le([(0,qt.property)({type:Boolean})],bt.prototype,"removable",void 0);Le([(0,qt.property)()],bt.prototype,"removeButtonLabel",void 0);Le([(0,qt.property)()],bt.prototype,"label",void 0);Le([(0,qt.property)()],bt.prototype,"icon",void 0);Le([(0,qt.query)("ft-typography slot")],bt.prototype,"slottedContent",void 0);(0,Rr.customElement)("ft-chip")(G);(0,Rr.customElement)("ftds-chip")(bt);var Qr=C(q());function il(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!ko(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!ko(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();let c=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=c(e),r=a.length,r!==c(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){let l=a[n];if(!ko(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function ko(e,o){try{return il(e,o)}catch{return!1}}function Qe(e,o){return!ko(e,o)}var Ri=C(q(),1);var Lr=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Qe,attribute:!1,...o};(0,Ri.property)(c)(r,n);let l=r.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=o.selector)!==null&&a!==void 0?a:d=>d[n],store:o.store})}};var $o=class{constructor(){this.queue=[]}add(o,r=!1){r&&this.clear(o.type),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(o){typeof o=="string"?this.queue=this.queue.filter(r=>r.type!==o):this.queue=this.queue.filter(r=>!o.test(r.type))}};var Pe=C(q(),1);var Li=C(q(),1);function Pi(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Li.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Qe,...o??{}})}var Bo=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ki=C(H(),1);var To=globalThis,cl=To.ShadowRoot&&(To.ShadyCSS===void 0||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fg=Symbol();var Ii=(e,o)=>{if(cl)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=To.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Wo=class extends ki.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ii(n,o.elementStyles),n}};function $i(e,o,...r){var n;let a=e.querySelector(o);for(let c of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(c);return a}var to=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},_i,Bi=Symbol("constructorPrototype"),Ti=Symbol("constructorName"),Di=Symbol("exportpartsDebouncer"),Wi=Symbol("dynamicDependenciesLoaded"),Dt=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_i]=new Bo(5),this[Ti]=this.constructor.name,this[Bi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ti]&&Object.setPrototypeOf(this,this[Bi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Wi]||(o[Wi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.focusElementToFocus(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}focusElementToFocus(o){if(o.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let c=[...a??[],n];r=$i(this.shadowRoot,...c)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Di].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,l,d;let p=g=>g!=null&&g.trim().length>0,f=o.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],m=(d=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...m).filter(p).map(v=>v.trim()).forEach(v=>h.add(v))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(g=>f.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};_i=Di;to([(0,Pe.property)()],Dt.prototype,"exportpartsPrefix",void 0);to([Pi([])],Dt.prototype,"exportpartsPrefixes",void 0);to([(0,Pe.property)()],Dt.prototype,"customStylesheet",void 0);to([(0,Pe.property)()],Dt.prototype,"elementToFocus",void 0);to([(0,Pe.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function eo(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var zi,Mi,Hi,oo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ro=class extends Dt{constructor(){super(...arguments),this[zi]=new Map,this[Mi]=new Map,this[Hi]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[se].get(o)}addStore(o,r){var n;r=(n=r??(eo(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[se].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[se].delete(r)}setupStores(){this.unsubscribeFromStores(),this[se].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Yt].has(o.store):this[Yt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Yt].set(o,r.subscribe(()=>this.updateFromStores())),this[oo].set(o,[]),eo(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[oo].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Yt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Yt].has(o)&&this[Yt].get(o)(),this[Yt].delete(o),(r=this[oo].get(o))===null||r===void 0||r.forEach(n=>n()),this[oo].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zi=Yt,Mi=se,Hi=oo;ro.reduxProperties=new Map;ro.reduxReactiveProperties=new Set;ro.reduxEventListeners=new Map;function xt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,c;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(e){return!!e&&!!e[M]}function Et(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===yl}(e)||Array.isArray(e)||!!e[Ki]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ki])||Dr(e)||zr(e))}function de(e,o,r){r===void 0&&(r=!1),$e(e)===0?(r?Object.keys:ke)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function $e(e){var o=e[M];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Dr(e)?2:zr(e)?3:0}function Ie(e,o){return $e(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function ll(e,o){return $e(e)===2?e.get(o):e[o]}function qi(e,o,r){var n=$e(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Yi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Dr(e){return ul&&e instanceof Map}function zr(e){return hl&&e instanceof Set}function Xt(e){return e.o||e.t}function Mr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Qi(e);delete o[M];for(var r=ke(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Hr(e,o){return o===void 0&&(o=!1),Ur(e)||zt(e)||!Et(e)||($e(e)>1&&(e.set=e.add=e.clear=e.delete=sl),Object.freeze(e),o&&de(e,function(r,n){return Hr(n,!0)},!0)),e}function sl(){xt(2)}function Ur(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=_r[e];return o||xt(18,e),o}function dl(e,o){_r[e]||(_r[e]=o)}function Br(){return ao}function Pr(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function _o(e){Tr(e),e.p.forEach(fl),e.p=null}function Tr(e){e===ao&&(ao=e.l)}function Ui(e){return ao={p:[],l:ao,h:e,m:!0,_:0}}function fl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Ir(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Pt("ES5").S(o,e,n),n?(r[M].P&&(_o(o),xt(4)),Et(e)&&(e=Do(o,e),o.l||zo(o,e)),o.u&&Pt("Patches").M(r[M].t,e,o.u,o.s)):e=Do(o,r,[]),_o(o),o.u&&o.v(o.u,o.s),e!==Ji?e:void 0}function Do(e,o,r){if(Ur(o))return o;var n=o[M];if(!n)return de(o,function(d,p){return Gi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return zo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Mr(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),de(c,function(d,p){return Gi(e,n,a,d,p,r,l)}),zo(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Gi(e,o,r,n,a,c,l){if(zt(a)){var d=Do(e,a,c&&o&&o.i!==3&&!Ie(o.R,n)?c.concat(n):void 0);if(qi(r,n,d),!zt(d))return;e.m=!1}else l&&r.add(a);if(Et(a)&&!Ur(a)){if(!e.h.D&&e._<1)return;Do(e,a),o&&o.A.l||zo(e,a)}}function zo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Hr(o,r)}function kr(e,o){var r=e[M];return(r?Xt(r):e)[o]}function Fi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function Jt(e){e.P||(e.P=!0,e.l&&Jt(e.l))}function $r(e){e.o||(e.o=Mr(e.t))}function Wr(e,o,r){var n=Dr(o)?Pt("MapSet").F(o,r):zr(o)?Pt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Br(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=io;l&&(p=[d],f=no);var h=Proxy.revocable(p,f),y=h.revoke,g=h.proxy;return d.k=g,d.j=y,g}(o,r):Pt("ES5").J(o,r);return(r?r.A:Br()).p.push(n),n}function pl(e){return zt(e)||xt(22,e),function o(r){if(!Et(r))return r;var n,a=r[M],c=$e(r);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=ji(r,c),a.I=!1}else n=ji(r,c);return de(n,function(l,d){a&&ll(a.t,l)===d||qi(n,l,o(d))}),c===3?new Set(n):n}(e)}function ji(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Mr(e)}function Xi(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[M];return io.get(f,l)},set:function(f){var h=this[M];io.set(h,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][M];if(!p.P)switch(p.i){case 5:n(p)&&Jt(p);break;case 4:r(p)&&Jt(p)}}}function r(l){for(var d=l.t,p=l.k,f=ke(p),h=f.length-1;h>=0;h--){var y=f[h];if(y!==M){var g=d[y];if(g===void 0&&!Ie(d,y))return!0;var b=p[y],m=b&&b[M];if(m?m.t!==g:!Yi(b,g))return!0}}var v=!!d[M];return f.length!==ke(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&xt(3,JSON.stringify(Xt(l)))}var c={};dl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(y,g){if(y){for(var b=Array(g.length),m=0;m<g.length;m++)Object.defineProperty(b,""+m,e(m,!0));return b}var v=Qi(g);delete v[M];for(var R=ke(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,y||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(g),v)}(p,l),h={i:p?5:4,A:d?d.A:Br(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:h,writable:!0}),f},S:function(l,d,p){p?zt(d)&&d[M].A===l&&o(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var y=h[M];if(y){var g=y.t,b=y.k,m=y.R,v=y.i;if(v===4)de(b,function($){$!==M&&(g[$]!==void 0||Ie(g,$)?m[$]||f(b[$]):(m[$]=!0,Jt(y)))}),de(g,function($){b[$]!==void 0||Ie(b,$)||(m[$]=!1,Jt(y))});else if(v===5){if(n(y)&&(Jt(y),m.length=!0),b.length<g.length)for(var R=b.length;R<g.length;R++)m[R]=!1;else for(var E=g.length;E<b.length;E++)m[E]=!0;for(var N=Math.min(b.length,g.length),P=0;P<N;P++)b.hasOwnProperty(P)||(m[P]=!0),m[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Vi,ao,Gr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ul=typeof Map<"u",hl=typeof Set<"u",Zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ji=Gr?Symbol.for("immer-nothing"):((Vi={})["immer-nothing"]=!0,Vi),Ki=Gr?Symbol.for("immer-draftable"):"__$immer_draftable",M=Gr?Symbol.for("immer-state"):"__$immer_state";var yl=""+Object.prototype.constructor,ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qi=Object.getOwnPropertyDescriptors||function(e){var o={};return ke(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},_r={},io={get:function(e,o){if(o===M)return e;var r=Xt(e);if(!Ie(r,o))return function(a,c,l){var d,p=Fi(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!Et(n)?n:n===kr(e.t,o)?($r(e),e.o[o]=Wr(e.A.h,n,e)):n},has:function(e,o){return o in Xt(e)},ownKeys:function(e){return Reflect.ownKeys(Xt(e))},set:function(e,o,r){var n=Fi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=kr(Xt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Yi(r,a)&&(r!==void 0||Ie(e.t,o)))return!0;$r(e),Jt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return kr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,$r(e),Jt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Xt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},no={};de(io,function(e,o){no[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),no.deleteProperty=function(e,o){return no.set.call(this,e,o,void 0)},no.set=function(e,o,r){return io.set.call(this,e[0],o,r,e[0])};var gl=function(){function e(r){var n=this;this.O=Zi,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function($){var T;return(T=c).call.apply(T,[R,$].concat(N))})}}var f;if(typeof c!="function"&&xt(6),l!==void 0&&typeof l!="function"&&xt(7),Et(a)){var h=Ui(n),y=Wr(n,a,void 0),g=!0;try{f=c(y),g=!1}finally{g?_o(h):Tr(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Pr(h,l),Ir(v,h)},function(v){throw _o(h),v}):(Pr(h,l),Ir(f,h))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Ji&&(f=void 0),n.D&&Hr(f,!0),l){var b=[],m=[];Pt("Patches").M(a,f,b,m),l(b,m)}return f}xt(21,a)},this.produceWithPatches=function(a,c){if(typeof a=="function")return function(f){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(y))})};var l,d,p=n.produce(a,c,function(f,h){l=f,d=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){Et(r)||xt(8),zt(r)&&(r=pl(r));var n=Ui(this),a=Wr(this,r,void 0);return a[M].C=!0,Tr(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Pr(c,n),Ir(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Zi&&xt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=Pt("Patches").$;return zt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),pt=new gl,ml=pt.produce,Eg=pt.produceWithPatches.bind(pt),Ng=pt.setAutoFreeze.bind(pt),Ag=pt.setUseProxies.bind(pt),Rg=pt.applyPatches.bind(pt),Lg=pt.createDraft.bind(pt),Pg=pt.finishDraft.bind(pt),Mo=ml;function fe(e){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},fe(e)}function tc(e,o){if(fe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(fe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function ec(e){var o=tc(e,"string");return fe(o)=="symbol"?o:o+""}function oc(e,o,r){return(o=ec(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function rc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fr(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?rc(Object(r),!0).forEach(function(n){oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var nc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+jr(),REPLACE:"@@redux/REPLACE"+jr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jr()}};function bl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Vr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tt(1));return r(Vr)(e,o)}if(typeof e!="function")throw new Error(tt(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function h(){if(p)throw new Error(tt(3));return c}function y(v){if(typeof v!="function")throw new Error(tt(4));if(p)throw new Error(tt(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(tt(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function g(v){if(!bl(v))throw new Error(tt(7));if(typeof v.type>"u")throw new Error(tt(8));if(p)throw new Error(tt(9));try{p=!0,c=a(c,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(tt(10));a=v,g({type:Ho.REPLACE})}function m(){var v,R=y;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function P(){N.next&&N.next(h())}P();var $=R(P);return{unsubscribe:$}}},v[nc]=function(){return this},v}return g({type:Ho.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:b},n[nc]=m,n}function xl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function ac(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var c=Object.keys(r),l,d;try{xl(r)}catch(p){d=p}return function(f,h){if(f===void 0&&(f={}),d)throw d;if(0)var y;for(var g=!1,b={},m=0;m<c.length;m++){var v=c[m],R=r[v],E=f[v],N=R(E,h);if(typeof N>"u"){var P=h&&h.type;throw new Error(tt(14))}b[v]=N,g=g||N!==E}return g=g||c.length!==Object.keys(f).length,g?b:f}}function Be(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ic(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),c=function(){throw new Error(tt(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=Be.apply(void 0,d)(a.dispatch),Fr(Fr({},a),{},{dispatch:c})}}}function cc(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var lc=cc();lc.withExtraArgument=cc;var Zr=lc;var uc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vl=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(h){f=[6,h],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Te=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},Sl=Object.defineProperty,Ol=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,wl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,dc=function(e,o,r){return o in e?Sl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))wl.call(o,r)&&dc(e,r,o[r]);if(sc)for(var n=0,a=sc(o);n<a.length;n++){var r=a[n];El.call(o,r)&&dc(e,r,o[r])}return e},Kr=function(e,o){return Ol(e,Cl(o))},Nl=function(e,o,r){return new Promise(function(n,a){var c=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((r=r.apply(e,o)).next())})};var Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},Kg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ll=function(e){uc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array),Pl=function(e){uc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array);function Xr(e){return Et(e)?Mo(e,function(){}):e}function Il(e){return typeof e=="boolean"}function kl(){return function(o){return $l(o)}}function $l(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Ll;if(r&&(Il(r)?d.push(Zr):d.push(Zr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var qr=!0;function hc(e){var o=kl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,h=f===void 0?void 0:f,y=r.enhancers,g=y===void 0?void 0:y,b;if(typeof a=="function")b=a;else if(Rl(a))b=ac(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 m=l;if(typeof m=="function"&&(m=m(o),!qr&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qr&&m.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ic.apply(void 0,m),R=Be;p&&(R=Al(Qt({trace:!qr},typeof p=="object"&&p)));var E=new Pl(v),N=E;Array.isArray(g)?N=Te([v],g):typeof g=="function"&&(N=g(E));var P=R.apply(void 0,N);return Vr(b,h,P)}function te(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return Qt(Qt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function yc(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Bl(e){return typeof e=="function"}function Tl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?yc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Bl(e))p=function(){return Xr(e())};else{var f=Xr(e);p=function(){return f}}function h(y,g){y===void 0&&(y=p());var b=Te([c[g.type]],l.filter(function(m){var v=m.matcher;return v(g)}).map(function(m){var v=m.reducer;return v}));return b.filter(function(m){return!!m}).length===0&&(b=[d]),b.reduce(function(m,v){if(v)if(zt(m)){var R=m,E=v(R,g);return E===void 0?m:E}else{if(Et(m))return Mo(m,function(N){return v(N,g)});var E=v(m,g);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},y)}return h.getInitialState=p,h}function Wl(e,o){return e+"/"+o}function gc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Xr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(h){var y=n[h],g=Wl(o,h),b,m;"reducer"in y?(b=y.reducer,m=y.prepare):b=y,c[h]=b,l[g]=b,d[h]=m?te(g,m):te(g)});function p(){var h=typeof e.extraReducers=="function"?yc(e.extraReducers):[e.extraReducers],y=h[0],g=y===void 0?{}:y,b=h[1],m=b===void 0?[]:b,v=h[2],R=v===void 0?void 0:v,E=Qt(Qt({},g),l);return Tl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var $=0,T=m;$<T.length;$++){var ut=T[$];N.addMatcher(ut.matcher,ut.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(h,y){return f||(f=p()),f(h,y)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var _l="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=_l[Math.random()*64|0];return o},zl=["name","message","stack","code"],Yr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),fc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Ml=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=zl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Jg=function(){function e(o,r,n){var a=te(o+"/fulfilled",function(h,y,g,b){return{payload:h,meta:Kr(Qt({},b||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),c=te(o+"/pending",function(h,y,g){return{payload:void 0,meta:Kr(Qt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),l=te(o+"/rejected",function(h,y,g,b,m){return{payload:b,error:(n&&n.serializeError||Ml)(h||"Rejected"),meta:Kr(Qt({},m||{}),{arg:g,requestId:y,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(y,g,b){var m=n?.idGenerator?n.idGenerator(h):Dl(),v=new p,R,E=!1;function N($){R=$,v.abort()}var P=function(){return Nl(this,null,function(){var $,T,ut,Mt,Zo,Ht,lt;return vl(this,function(ht){switch(ht.label){case 0:return ht.trys.push([0,4,,5]),Mt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:b}),Ul(Mt)?[4,Mt]:[3,2];case 1:Mt=ht.sent(),ht.label=2;case 2:if(Mt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Zo=new Promise(function(st,oe){return v.signal.addEventListener("abort",function(){return oe({name:"AbortError",message:R||"Aborted"})})}),y(c(m,h,(T=n?.getPendingMeta)==null?void 0:T.call(n,{requestId:m,arg:h},{getState:g,extra:b}))),[4,Promise.race([Zo,Promise.resolve(r(h,{dispatch:y,getState:g,extra:b,requestId:m,signal:v.signal,abort:N,rejectWithValue:function(st,oe){return new Yr(st,oe)},fulfillWithValue:function(st,oe){return new fc(st,oe)}})).then(function(st){if(st instanceof Yr)throw st;return st instanceof fc?a(st.payload,m,h,st.meta):a(st,m,h)})])];case 3:return ut=ht.sent(),[3,5];case 4:return Ht=ht.sent(),ut=Ht instanceof Yr?l(null,m,h,Ht.payload,Ht.meta):l(Ht,m,h),[3,5];case 5:return lt=n&&!n.dispatchConditionRejection&&l.match(ut)&&ut.meta.condition,lt||y(ut),[2,ut]}})})}();return Object.assign(P,{abort:N,requestId:m,arg:h,unwrap:function(){return P.then(Hl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Hl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ul(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var mc="listener",bc="completed",xc="cancelled",Qg="task-"+xc,tm="task-"+bc,em=mc+"-"+xc,om=mc+"-"+bc;var Jr="listenerMiddleware";var rm=te(Jr+"/add"),nm=te(Jr+"/removeAll"),am=te(Jr+"/remove");var pc,im=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(pc||(pc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Gl=function(e){return function(o){setTimeout(o,e)}},cm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gl(10);Xi();function Fl(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Uo=class extends Fl(Object){};window.ftReduxStores||(window.ftReduxStores={});var vc=class e extends Uo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(eo(c))return c;if(a==null)return;let l=gc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=hc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d,a.eventBus)}constructor(o,r,n){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new $o;let a=c=>c!=null?JSON.parse(JSON.stringify(c)):c;this.actions=new Proxy(this.reduxSlice.actions,{get:(c,l,d)=>{let p=l,f=c[p];return f?(...h)=>{let y=f(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=class{static format(o,r,n,a){return window.moment?window.moment(o).locale(r).format(this.getDateFormat(n,a)):o}static getDateFormat(o,r){return o?r?"lll":"ll":r?"L LT":"L"}};var jo=C(B()),jl="ft-app-info",Fo=class e extends CustomEvent{constructor(o){super(e.eventName,{detail:o})}};Fo.eventName="authentication-change";var Vl={session:(e,o)=>{(0,jo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>co.dispatchEvent(new Fo(o.payload)),0))}},co=jo.FtReduxStore.get({name:jl,reducers:Vl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Vo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c};function Sc(e){class o extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(co)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,c;return((c=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&c!==void 0?c:!1)?d=>Go.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vo([(0,Qr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),Vo([(0,Qr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),Vo([Lr({store:co.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],o.prototype,"metadataDescriptors",void 0),Vo([Lr({store:co.name})],o.prototype,"uiLocale",void 0),o}var ee=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},ct=class extends Sc(fo){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return Nt.html`
1426
+ `:Kt.nothing}resolveButtonSize(){switch(this.size){case et.large:return et.medium;case et.medium:case et.small:return et.small}}getLabel(){return this.label||this.textContent}get textContent(){var o,r;return(r=(o=this.slottedContent)===null||o===void 0?void 0:o.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new Ar)}typographyVariant(){switch(this.size){case et.large:return vt.body2medium;case et.medium:case et.small:return vt.caption1medium}}};bt.elementDefinitions={"ft-typography":ot,"ft-icon":X,"ftds-button":wt};bt.styles=Ni;Le([(0,qt.property)({type:Boolean})],bt.prototype,"withAction",void 0);Le([(0,qt.property)({type:Boolean})],bt.prototype,"removable",void 0);Le([(0,qt.property)()],bt.prototype,"removeButtonLabel",void 0);Le([(0,qt.property)()],bt.prototype,"label",void 0);Le([(0,qt.property)()],bt.prototype,"icon",void 0);Le([(0,qt.query)("ft-typography slot")],bt.prototype,"slottedContent",void 0);(0,Rr.customElement)("ft-chip")(G);(0,Rr.customElement)("ftds-chip")(bt);var Qr=C(q());function il(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var r,n,a;if(Array.isArray(e)){if(r=e.length,r!=o.length)return!1;for(n=r;n--!==0;)if(!ko(e[n],o[n]))return!1;return!0}if(e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;for(n of e.entries())if(!ko(n[1],o.get(n[0])))return!1;return!0}if(e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(n of e.entries())if(!o.has(n[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();let c=l=>Object.keys(l).filter(d=>l[d]!=null);if(a=c(e),r=a.length,r!==c(o).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,a[n]))return!1;for(n=r;n--!==0;){let l=a[n];if(!ko(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function ko(e,o){try{return il(e,o)}catch{return!1}}function Qe(e,o){return!ko(e,o)}var Ri=C(q(),1);var Lr=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Qe,attribute:!1,...o};(0,Ri.property)(c)(r,n);let l=r.constructor;l.reduxProperties=new Map(l.reduxProperties),l.reduxProperties.set(n,{selector:(a=o.selector)!==null&&a!==void 0?a:d=>d[n],store:o.store})}};var $o=class{constructor(){this.queue=[]}add(o,r=!1){r&&this.clear(o.type),this.queue.push(o)}consume(o){let r=this.queue.find(n=>n.type===o);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(o){typeof o=="string"?this.queue=this.queue.filter(r=>r.type!==o):this.queue=this.queue.filter(r=>!o.test(r.type))}};var Pe=C(q(),1);var Li=C(q(),1);function Pi(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Li.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Qe,...o??{}})}var Bo=class{constructor(o=0){this.timeout=o,this.callbacks=[]}run(o,r){return this.callbacks=[o],this.debounce(r)}queue(o,r){return this.callbacks.push(o),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(o){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),o??this.timeout),this.promise}async runCallbacks(){var o,r;let n=[...this.callbacks];this.callbacks=[];let a=(o=this.rejectPromise)!==null&&o!==void 0?o:()=>null,c=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let l of n)try{await l()}catch(d){a(d);return}c(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ki=C(H(),1);var To=globalThis,cl=To.ShadowRoot&&(To.ShadyCSS===void 0||To.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fg=Symbol();var Ii=(e,o)=>{if(cl)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=To.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var Wo=class extends ki.LitElement{createRenderRoot(){let o=this.constructor;o.elementDefinitions&&!o.registry&&(o.registry=new CustomElementRegistry,Object.entries(o.elementDefinitions).forEach(([a,c])=>o.registry.define(a,c)));let r={...o.shadowRootOptions,customElements:o.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ii(n,o.elementStyles),n}};function $i(e,o,...r){var n;let a=e.querySelector(o);for(let c of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(c);return a}var to=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},_i,Bi=Symbol("constructorPrototype"),Ti=Symbol("constructorName"),Di=Symbol("exportpartsDebouncer"),Wi=Symbol("dynamicDependenciesLoaded"),Dt=class extends Wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[_i]=new Bo(5),this[Ti]=this.constructor.name,this[Bi]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ti]&&Object.setPrototypeOf(this,this[Bi])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let o=this.constructor;o[Wi]||(o[Wi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.focusElementToFocus(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(o){}focusElementToFocus(o){if(o.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let c=[...a??[],n];r=$i(this.shadowRoot,...c)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(o){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(c=>c.remove()),this.useAdoptedStyleSheets){if(o.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(c){console.error(c,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let c=document.createElement("style");c.classList.add("ft-lit-element--custom-stylesheet"),c.innerHTML=this.customStylesheet,this.shadowRoot.append(c)}}scheduleExportpartsUpdate(){var o,r,n;(!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Di].run(()=>{var a,c;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((c=this.exportpartsPrefixes)===null||c===void 0?void 0:c.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(o){var r,n,a,c,l,d;let p=g=>g!=null&&g.trim().length>0,f=o.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(c=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&c!==void 0?c:[],m=(d=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&d!==void 0?d:[];new Array(...b,...m).filter(p).map(v=>v.trim()).forEach(v=>h.add(v))}if(h.size===0){this.removeAttribute("exportparts");return}let y=[...h.values()].flatMap(g=>f.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};_i=Di;to([(0,Pe.property)()],Dt.prototype,"exportpartsPrefix",void 0);to([Pi([])],Dt.prototype,"exportpartsPrefixes",void 0);to([(0,Pe.property)()],Dt.prototype,"customStylesheet",void 0);to([(0,Pe.property)()],Dt.prototype,"elementToFocus",void 0);to([(0,Pe.state)()],Dt.prototype,"useAdoptedStyleSheets",void 0);function eo(e){var o;return(o=e?.isFtReduxStore)!==null&&o!==void 0?o:!1}var zi,Mi,Hi,oo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ro=class extends Dt{constructor(){super(...arguments),this[zi]=new Map,this[Mi]=new Map,this[Hi]=new Map}get reduxConstructor(){return this.constructor}update(o){super.update(o),[...this.reduxConstructor.reduxReactiveProperties].some(r=>o.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[se].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[se].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[se].get(o)}addStore(o,r){var n;r=(n=r??(eo(o)?o.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this[se].set(r,o),this.subscribeToStore(r,o),this.updateFromStores()}removeStore(o){let r=typeof o=="string"?o:o.name;this.unsubscribeFromStore(r),this[se].delete(r)}setupStores(){this.unsubscribeFromStores(),this[se].forEach((o,r)=>this.subscribeToStore(r,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let a=this.getStore(o.store);a&&(o.store?this[Yt].has(o.store):this[Yt].size>0)&&(this[r]=o.selector(a.getState(),this))}})}subscribeToStore(o,r){var n;this[Yt].set(o,r.subscribe(()=>this.updateFromStores())),this[oo].set(o,[]),eo(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((a,c)=>{if(typeof this[c]=="function"&&(!a.store||r.name===a.store)){let l=d=>this[c](d);r.addEventListener(a.eventName,l),this[oo].get(o).push(()=>r.removeEventListener(a.eventName,l))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[Yt].forEach((o,r)=>this.unsubscribeFromStore(r))}unsubscribeFromStore(o){var r;this[Yt].has(o)&&this[Yt].get(o)(),this[Yt].delete(o),(r=this[oo].get(o))===null||r===void 0||r.forEach(n=>n()),this[oo].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};zi=Yt,Mi=se,Hi=oo;ro.reduxProperties=new Map;ro.reduxReactiveProperties=new Set;ro.reduxEventListeners=new Map;function xt(e){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];if(0)var a,c;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(e){return!!e&&!!e[M]}function Et(e){var o;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===yl}(e)||Array.isArray(e)||!!e[Ki]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ki])||Dr(e)||zr(e))}function de(e,o,r){r===void 0&&(r=!1),$e(e)===0?(r?Object.keys:ke)(e).forEach(function(n){r&&typeof n=="symbol"||o(n,e[n],e)}):e.forEach(function(n,a){return o(a,n,e)})}function $e(e){var o=e[M];return o?o.i>3?o.i-4:o.i:Array.isArray(e)?1:Dr(e)?2:zr(e)?3:0}function Ie(e,o){return $e(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function ll(e,o){return $e(e)===2?e.get(o):e[o]}function qi(e,o,r){var n=$e(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function Yi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Dr(e){return ul&&e instanceof Map}function zr(e){return hl&&e instanceof Set}function Xt(e){return e.o||e.t}function Mr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Qi(e);delete o[M];for(var r=ke(o),n=0;n<r.length;n++){var a=r[n],c=o[a];c.writable===!1&&(c.writable=!0,c.configurable=!0),(c.get||c.set)&&(o[a]={configurable:!0,writable:!0,enumerable:c.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),o)}function Hr(e,o){return o===void 0&&(o=!1),Ur(e)||zt(e)||!Et(e)||($e(e)>1&&(e.set=e.add=e.clear=e.delete=sl),Object.freeze(e),o&&de(e,function(r,n){return Hr(n,!0)},!0)),e}function sl(){xt(2)}function Ur(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=_r[e];return o||xt(18,e),o}function dl(e,o){_r[e]||(_r[e]=o)}function Br(){return ao}function Pr(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function _o(e){Tr(e),e.p.forEach(fl),e.p=null}function Tr(e){e===ao&&(ao=e.l)}function Ui(e){return ao={p:[],l:ao,h:e,m:!0,_:0}}function fl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Ir(e,o){o._=o.p.length;var r=o.p[0],n=e!==void 0&&e!==r;return o.h.O||Pt("ES5").S(o,e,n),n?(r[M].P&&(_o(o),xt(4)),Et(e)&&(e=Do(o,e),o.l||zo(o,e)),o.u&&Pt("Patches").M(r[M].t,e,o.u,o.s)):e=Do(o,r,[]),_o(o),o.u&&o.v(o.u,o.s),e!==Ji?e:void 0}function Do(e,o,r){if(Ur(o))return o;var n=o[M];if(!n)return de(o,function(d,p){return Gi(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return zo(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Mr(n.k):n.o,c=a,l=!1;n.i===3&&(c=new Set(a),a.clear(),l=!0),de(c,function(d,p){return Gi(e,n,a,d,p,r,l)}),zo(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Gi(e,o,r,n,a,c,l){if(zt(a)){var d=Do(e,a,c&&o&&o.i!==3&&!Ie(o.R,n)?c.concat(n):void 0);if(qi(r,n,d),!zt(d))return;e.m=!1}else l&&r.add(a);if(Et(a)&&!Ur(a)){if(!e.h.D&&e._<1)return;Do(e,a),o&&o.A.l||zo(e,a)}}function zo(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Hr(o,r)}function kr(e,o){var r=e[M];return(r?Xt(r):e)[o]}function Fi(e,o){if(o in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,o);if(n)return n;r=Object.getPrototypeOf(r)}}function Jt(e){e.P||(e.P=!0,e.l&&Jt(e.l))}function $r(e){e.o||(e.o=Mr(e.t))}function Wr(e,o,r){var n=Dr(o)?Pt("MapSet").F(o,r):zr(o)?Pt("MapSet").T(o,r):e.O?function(a,c){var l=Array.isArray(a),d={i:l?1:0,A:c?c.A:Br(),P:!1,I:!1,R:{},l:c,t:a,k:null,o:null,j:null,C:!1},p=d,f=io;l&&(p=[d],f=no);var h=Proxy.revocable(p,f),y=h.revoke,g=h.proxy;return d.k=g,d.j=y,g}(o,r):Pt("ES5").J(o,r);return(r?r.A:Br()).p.push(n),n}function pl(e){return zt(e)||xt(22,e),function o(r){if(!Et(r))return r;var n,a=r[M],c=$e(r);if(a){if(!a.P&&(a.i<4||!Pt("ES5").K(a)))return a.t;a.I=!0,n=ji(r,c),a.I=!1}else n=ji(r,c);return de(n,function(l,d){a&&ll(a.t,l)===d||qi(n,l,o(d))}),c===3?new Set(n):n}(e)}function ji(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Mr(e)}function Xi(){function e(l,d){var p=c[l];return p?p.enumerable=d:c[l]=p={configurable:!0,enumerable:d,get:function(){var f=this[M];return io.get(f,l)},set:function(f){var h=this[M];io.set(h,l,f)}},p}function o(l){for(var d=l.length-1;d>=0;d--){var p=l[d][M];if(!p.P)switch(p.i){case 5:n(p)&&Jt(p);break;case 4:r(p)&&Jt(p)}}}function r(l){for(var d=l.t,p=l.k,f=ke(p),h=f.length-1;h>=0;h--){var y=f[h];if(y!==M){var g=d[y];if(g===void 0&&!Ie(d,y))return!0;var b=p[y],m=b&&b[M];if(m?m.t!==g:!Yi(b,g))return!0}}var v=!!d[M];return f.length!==ke(d).length+(v?0:1)}function n(l){var d=l.k;if(d.length!==l.t.length)return!0;var p=Object.getOwnPropertyDescriptor(d,d.length-1);if(p&&!p.get)return!0;for(var f=0;f<d.length;f++)if(!d.hasOwnProperty(f))return!0;return!1}function a(l){l.g&&xt(3,JSON.stringify(Xt(l)))}var c={};dl("ES5",{J:function(l,d){var p=Array.isArray(l),f=function(y,g){if(y){for(var b=Array(g.length),m=0;m<g.length;m++)Object.defineProperty(b,""+m,e(m,!0));return b}var v=Qi(g);delete v[M];for(var R=ke(v),E=0;E<R.length;E++){var N=R[E];v[N]=e(N,y||!!v[N].enumerable)}return Object.create(Object.getPrototypeOf(g),v)}(p,l),h={i:p?5:4,A:d?d.A:Br(),P:!1,I:!1,R:{},l:d,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,M,{value:h,writable:!0}),f},S:function(l,d,p){p?zt(d)&&d[M].A===l&&o(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var y=h[M];if(y){var g=y.t,b=y.k,m=y.R,v=y.i;if(v===4)de(b,function($){$!==M&&(g[$]!==void 0||Ie(g,$)?m[$]||f(b[$]):(m[$]=!0,Jt(y)))}),de(g,function($){b[$]!==void 0||Ie(b,$)||(m[$]=!1,Jt(y))});else if(v===5){if(n(y)&&(Jt(y),m.length=!0),b.length<g.length)for(var R=b.length;R<g.length;R++)m[R]=!1;else for(var E=g.length;E<b.length;E++)m[E]=!0;for(var N=Math.min(b.length,g.length),P=0;P<N;P++)b.hasOwnProperty(P)||(m[P]=!0),m[P]===void 0&&f(b[P])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var Vi,ao,Gr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ul=typeof Map<"u",hl=typeof Set<"u",Zi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ji=Gr?Symbol.for("immer-nothing"):((Vi={})["immer-nothing"]=!0,Vi),Ki=Gr?Symbol.for("immer-draftable"):"__$immer_draftable",M=Gr?Symbol.for("immer-state"):"__$immer_state";var yl=""+Object.prototype.constructor,ke=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qi=Object.getOwnPropertyDescriptors||function(e){var o={};return ke(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},_r={},io={get:function(e,o){if(o===M)return e;var r=Xt(e);if(!Ie(r,o))return function(a,c,l){var d,p=Fi(c,l);return p?"value"in p?p.value:(d=p.get)===null||d===void 0?void 0:d.call(a.k):void 0}(e,r,o);var n=r[o];return e.I||!Et(n)?n:n===kr(e.t,o)?($r(e),e.o[o]=Wr(e.A.h,n,e)):n},has:function(e,o){return o in Xt(e)},ownKeys:function(e){return Reflect.ownKeys(Xt(e))},set:function(e,o,r){var n=Fi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=kr(Xt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(Yi(r,a)&&(r!==void 0||Ie(e.t,o)))return!0;$r(e),Jt(e)}return e.o[o]===r&&(r!==void 0||o in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[o])||(e.o[o]=r,e.R[o]=!0),!0},deleteProperty:function(e,o){return kr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,$r(e),Jt(e)):delete e.R[o],e.o&&delete e.o[o],!0},getOwnPropertyDescriptor:function(e,o){var r=Xt(e),n=Reflect.getOwnPropertyDescriptor(r,o);return n&&{writable:!0,configurable:e.i!==1||o!=="length",enumerable:n.enumerable,value:r[o]}},defineProperty:function(){xt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xt(12)}},no={};de(io,function(e,o){no[e]=function(){return arguments[0]=arguments[0][0],o.apply(this,arguments)}}),no.deleteProperty=function(e,o){return no.set.call(this,e,o,void 0)},no.set=function(e,o,r){return io.set.call(this,e[0],o,r,e[0])};var gl=function(){function e(r){var n=this;this.O=Zi,this.D=!0,this.produce=function(a,c,l){if(typeof a=="function"&&typeof c!="function"){var d=c;c=a;var p=n;return function(v){var R=this;v===void 0&&(v=d);for(var E=arguments.length,N=Array(E>1?E-1:0),P=1;P<E;P++)N[P-1]=arguments[P];return p.produce(v,function($){var T;return(T=c).call.apply(T,[R,$].concat(N))})}}var f;if(typeof c!="function"&&xt(6),l!==void 0&&typeof l!="function"&&xt(7),Et(a)){var h=Ui(n),y=Wr(n,a,void 0),g=!0;try{f=c(y),g=!1}finally{g?_o(h):Tr(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Pr(h,l),Ir(v,h)},function(v){throw _o(h),v}):(Pr(h,l),Ir(f,h))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Ji&&(f=void 0),n.D&&Hr(f,!0),l){var b=[],m=[];Pt("Patches").M(a,f,b,m),l(b,m)}return f}xt(21,a)},this.produceWithPatches=function(a,c){if(typeof a=="function")return function(f){for(var h=arguments.length,y=Array(h>1?h-1:0),g=1;g<h;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(b){return a.apply(void 0,[b].concat(y))})};var l,d,p=n.produce(a,c,function(f,h){l=f,d=h});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,l,d]}):[p,l,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var o=e.prototype;return o.createDraft=function(r){Et(r)||xt(8),zt(r)&&(r=pl(r));var n=Ui(this),a=Wr(this,r,void 0);return a[M].C=!0,Tr(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Pr(c,n),Ir(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Zi&&xt(20),this.O=r},o.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var c=n[a];if(c.path.length===0&&c.op==="replace"){r=c.value;break}}a>-1&&(n=n.slice(a+1));var l=Pt("Patches").$;return zt(r)?l(r,n):this.produce(r,function(d){return l(d,n)})},e}(),pt=new gl,ml=pt.produce,Eg=pt.produceWithPatches.bind(pt),Ng=pt.setAutoFreeze.bind(pt),Ag=pt.setUseProxies.bind(pt),Rg=pt.applyPatches.bind(pt),Lg=pt.createDraft.bind(pt),Pg=pt.finishDraft.bind(pt),Mo=ml;function fe(e){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},fe(e)}function tc(e,o){if(fe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,o||"default");if(fe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}function ec(e){var o=tc(e,"string");return fe(o)=="symbol"?o:o+""}function oc(e,o,r){return(o=ec(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function rc(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fr(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?rc(Object(r),!0).forEach(function(n){oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var nc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jr=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ho={INIT:"@@redux/INIT"+jr(),REPLACE:"@@redux/REPLACE"+jr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+jr()}};function bl(e){if(typeof e!="object"||e===null)return!1;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return Object.getPrototypeOf(e)===o}function Vr(e,o,r){var n;if(typeof o=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tt(0));if(typeof o=="function"&&typeof r>"u"&&(r=o,o=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tt(1));return r(Vr)(e,o)}if(typeof e!="function")throw new Error(tt(2));var a=e,c=o,l=[],d=l,p=!1;function f(){d===l&&(d=l.slice())}function h(){if(p)throw new Error(tt(3));return c}function y(v){if(typeof v!="function")throw new Error(tt(4));if(p)throw new Error(tt(5));var R=!0;return f(),d.push(v),function(){if(R){if(p)throw new Error(tt(6));R=!1,f();var N=d.indexOf(v);d.splice(N,1),l=null}}}function g(v){if(!bl(v))throw new Error(tt(7));if(typeof v.type>"u")throw new Error(tt(8));if(p)throw new Error(tt(9));try{p=!0,c=a(c,v)}finally{p=!1}for(var R=l=d,E=0;E<R.length;E++){var N=R[E];N()}return v}function b(v){if(typeof v!="function")throw new Error(tt(10));a=v,g({type:Ho.REPLACE})}function m(){var v,R=y;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function P(){N.next&&N.next(h())}P();var $=R(P);return{unsubscribe:$}}},v[nc]=function(){return this},v}return g({type:Ho.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:b},n[nc]=m,n}function xl(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:Ho.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:Ho.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function ac(e){for(var o=Object.keys(e),r={},n=0;n<o.length;n++){var a=o[n];typeof e[a]=="function"&&(r[a]=e[a])}var c=Object.keys(r),l,d;try{xl(r)}catch(p){d=p}return function(f,h){if(f===void 0&&(f={}),d)throw d;if(0)var y;for(var g=!1,b={},m=0;m<c.length;m++){var v=c[m],R=r[v],E=f[v],N=R(E,h);if(typeof N>"u"){var P=h&&h.type;throw new Error(tt(14))}b[v]=N,g=g||N!==E}return g=g||c.length!==Object.keys(f).length,g?b:f}}function Be(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return o.length===0?function(n){return n}:o.length===1?o[0]:o.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function ic(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),c=function(){throw new Error(tt(15))},l={getState:a.getState,dispatch:function(){return c.apply(void 0,arguments)}},d=o.map(function(p){return p(l)});return c=Be.apply(void 0,d)(a.dispatch),Fr(Fr({},a),{},{dispatch:c})}}}function cc(e){var o=function(n){var a=n.dispatch,c=n.getState;return function(l){return function(d){return typeof d=="function"?d(a,c,e):l(d)}}};return o}var lc=cc();lc.withExtraArgument=cc;var Zr=lc;var uc=function(){var e=function(o,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])},e(o,r)};return function(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(o,r);function n(){this.constructor=o}o.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),vl=function(e,o){var r={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,a,c,l;return l={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function d(f){return function(h){return p([f,h])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(c=f[0]&2?a.return:f[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,f[1])).done)return c;switch(a=0,c&&(f=[f[0]&2,c.value]),f[0]){case 0:case 1:c=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(c=r.trys,!(c=c.length>0&&c[c.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){r.label=f[1];break}if(f[0]===6&&r.label<c[1]){r.label=c[1],c=f;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(f);break}c[2]&&r.ops.pop(),r.trys.pop();continue}f=o.call(e,r)}catch(h){f=[6,h],a=0}finally{n=c=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Te=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},Sl=Object.defineProperty,Ol=Object.defineProperties,Cl=Object.getOwnPropertyDescriptors,sc=Object.getOwnPropertySymbols,wl=Object.prototype.hasOwnProperty,El=Object.prototype.propertyIsEnumerable,dc=function(e,o,r){return o in e?Sl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))wl.call(o,r)&&dc(e,r,o[r]);if(sc)for(var n=0,a=sc(o);n<a.length;n++){var r=a[n];El.call(o,r)&&dc(e,r,o[r])}return e},Kr=function(e,o){return Ol(e,Cl(o))},Nl=function(e,o,r){return new Promise(function(n,a){var c=function(p){try{d(r.next(p))}catch(f){a(f)}},l=function(p){try{d(r.throw(p))}catch(f){a(f)}},d=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(c,l)};d((r=r.apply(e,o)).next())})};var Al=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Be:Be.apply(null,arguments)},Kg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Rl(e){if(typeof e!="object"||e===null)return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;for(var r=o;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return o===r}var Ll=function(e){uc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array),Pl=function(e){uc(o,e);function o(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=e.apply(this,r)||this;return Object.setPrototypeOf(a,o.prototype),a}return Object.defineProperty(o,Symbol.species,{get:function(){return o},enumerable:!1,configurable:!0}),o.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},o.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(o.bind.apply(o,Te([void 0],r[0].concat(this)))):new(o.bind.apply(o,Te([void 0],r.concat(this))))},o}(Array);function Xr(e){return Et(e)?Mo(e,function(){}):e}function Il(e){return typeof e=="boolean"}function kl(){return function(o){return $l(o)}}function $l(e){e===void 0&&(e={});var o=e.thunk,r=o===void 0?!0:o,n=e.immutableCheck,a=n===void 0?!0:n,c=e.serializableCheck,l=c===void 0?!0:c,d=new Ll;if(r&&(Il(r)?d.push(Zr):d.push(Zr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var qr=!0;function hc(e){var o=kl(),r=e||{},n=r.reducer,a=n===void 0?void 0:n,c=r.middleware,l=c===void 0?o():c,d=r.devTools,p=d===void 0?!0:d,f=r.preloadedState,h=f===void 0?void 0:f,y=r.enhancers,g=y===void 0?void 0:y,b;if(typeof a=="function")b=a;else if(Rl(a))b=ac(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 m=l;if(typeof m=="function"&&(m=m(o),!qr&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qr&&m.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ic.apply(void 0,m),R=Be;p&&(R=Al(Qt({trace:!qr},typeof p=="object"&&p)));var E=new Pl(v),N=E;Array.isArray(g)?N=Te([v],g):typeof g=="function"&&(N=g(E));var P=R.apply(void 0,N);return Vr(b,h,P)}function te(e,o){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(o){var c=o.apply(void 0,n);if(!c)throw new Error("prepareAction did not return an object");return Qt(Qt({type:e,payload:c.payload},"meta"in c&&{meta:c.meta}),"error"in c&&{error:c.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function yc(e){var o={},r=[],n,a={addCase:function(c,l){var d=typeof c=="string"?c:c.type;if(d in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[d]=l,a},addMatcher:function(c,l){return r.push({matcher:c,reducer:l}),a},addDefaultCase:function(c){return n=c,a}};return e(a),[o,r,n]}function Bl(e){return typeof e=="function"}function Tl(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?yc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(Bl(e))p=function(){return Xr(e())};else{var f=Xr(e);p=function(){return f}}function h(y,g){y===void 0&&(y=p());var b=Te([c[g.type]],l.filter(function(m){var v=m.matcher;return v(g)}).map(function(m){var v=m.reducer;return v}));return b.filter(function(m){return!!m}).length===0&&(b=[d]),b.reduce(function(m,v){if(v)if(zt(m)){var R=m,E=v(R,g);return E===void 0?m:E}else{if(Et(m))return Mo(m,function(N){return v(N,g)});var E=v(m,g);if(E===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return m},y)}return h.getInitialState=p,h}function Wl(e,o){return e+"/"+o}function gc(e){var o=e.name;if(!o)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Xr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(h){var y=n[h],g=Wl(o,h),b,m;"reducer"in y?(b=y.reducer,m=y.prepare):b=y,c[h]=b,l[g]=b,d[h]=m?te(g,m):te(g)});function p(){var h=typeof e.extraReducers=="function"?yc(e.extraReducers):[e.extraReducers],y=h[0],g=y===void 0?{}:y,b=h[1],m=b===void 0?[]:b,v=h[2],R=v===void 0?void 0:v,E=Qt(Qt({},g),l);return Tl(r,function(N){for(var P in E)N.addCase(P,E[P]);for(var $=0,T=m;$<T.length;$++){var ut=T[$];N.addMatcher(ut.matcher,ut.reducer)}R&&N.addDefaultCase(R)})}var f;return{name:o,reducer:function(h,y){return f||(f=p()),f(h,y)},actions:d,caseReducers:c,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var _l="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Dl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=_l[Math.random()*64|0];return o},zl=["name","message","stack","code"],Yr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),fc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Ml=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=zl;r<n.length;r++){var a=n[r];typeof e[a]=="string"&&(o[a]=e[a])}return o}return{message:String(e)}},Jg=function(){function e(o,r,n){var a=te(o+"/fulfilled",function(h,y,g,b){return{payload:h,meta:Kr(Qt({},b||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),c=te(o+"/pending",function(h,y,g){return{payload:void 0,meta:Kr(Qt({},g||{}),{arg:y,requestId:h,requestStatus:"pending"})}}),l=te(o+"/rejected",function(h,y,g,b,m){return{payload:b,error:(n&&n.serializeError||Ml)(h||"Rejected"),meta:Kr(Qt({},m||{}),{arg:g,requestId:y,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),d=!1,p=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(y,g,b){var m=n?.idGenerator?n.idGenerator(h):Dl(),v=new p,R,E=!1;function N($){R=$,v.abort()}var P=function(){return Nl(this,null,function(){var $,T,ut,Mt,Zo,Ht,lt;return vl(this,function(ht){switch(ht.label){case 0:return ht.trys.push([0,4,,5]),Mt=($=n?.condition)==null?void 0:$.call(n,h,{getState:g,extra:b}),Ul(Mt)?[4,Mt]:[3,2];case 1:Mt=ht.sent(),ht.label=2;case 2:if(Mt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Zo=new Promise(function(st,oe){return v.signal.addEventListener("abort",function(){return oe({name:"AbortError",message:R||"Aborted"})})}),y(c(m,h,(T=n?.getPendingMeta)==null?void 0:T.call(n,{requestId:m,arg:h},{getState:g,extra:b}))),[4,Promise.race([Zo,Promise.resolve(r(h,{dispatch:y,getState:g,extra:b,requestId:m,signal:v.signal,abort:N,rejectWithValue:function(st,oe){return new Yr(st,oe)},fulfillWithValue:function(st,oe){return new fc(st,oe)}})).then(function(st){if(st instanceof Yr)throw st;return st instanceof fc?a(st.payload,m,h,st.meta):a(st,m,h)})])];case 3:return ut=ht.sent(),[3,5];case 4:return Ht=ht.sent(),ut=Ht instanceof Yr?l(null,m,h,Ht.payload,Ht.meta):l(Ht,m,h),[3,5];case 5:return lt=n&&!n.dispatchConditionRejection&&l.match(ut)&&ut.meta.condition,lt||y(ut),[2,ut]}})})}();return Object.assign(P,{abort:N,requestId:m,arg:h,unwrap:function(){return P.then(Hl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function Hl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ul(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var mc="listener",bc="completed",xc="cancelled",Qg="task-"+xc,tm="task-"+bc,em=mc+"-"+xc,om=mc+"-"+bc;var Jr="listenerMiddleware";var rm=te(Jr+"/add"),nm=te(Jr+"/removeAll"),am=te(Jr+"/remove");var pc,im=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(pc||(pc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Gl=function(e){return function(o){setTimeout(o,e)}},cm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gl(10);Xi();function Fl(e,o){return class extends e{constructor(){super(...arguments),this.eventBus=o??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}var Uo=class extends Fl(Object){};window.ftReduxStores||(window.ftReduxStores={});var vc=class e extends Uo{static get(o){var r;let n=typeof o=="string"?o:o.name,a=typeof o=="string"?void 0:o,c=window.ftReduxStores[n];if(eo(c))return c;if(a==null)return;let l=gc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=hc({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:l.reducer(p,f)});return window.ftReduxStores[a.name]=new e(l,d,a.eventBus)}constructor(o,r,n){super(),this.reduxSlice=o,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new $o;let a=c=>c!=null?JSON.parse(JSON.stringify(c)):c;this.actions=new Proxy(this.reduxSlice.actions,{get:(c,l,d)=>{let p=l,f=c[p];return f?(...h)=>{let y=f(...h.map(a));return this.reduxStore.dispatch(y),y}:h=>{this.setState({[p]:a(h)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(o){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(o).join("_"),overwrites:o})}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(o){throw new Error("Not implemented yet.")}subscribe(o){return this.reduxStore.subscribe(o)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=class{static format(o,r,n,a){return window.moment?window.moment(o).locale(r).format(this.getDateFormat(n,a)):o}static getDateFormat(o,r){return o?r?"lll":"ll":r?"L LT":"L"}};var jo=C(B()),jl="ft-app-info",Fo=class e extends CustomEvent{constructor(o){super(e.eventName,{detail:o})}};Fo.eventName="authentication-change";var Vl={session:(e,o)=>{(0,jo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>co.dispatchEvent(new Fo(o.payload)),0))}},co=jo.FtReduxStore.get({name:jl,reducers:Vl,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Vo=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c};function Sc(e){class o extends e{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(co)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,c;return((c=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&c!==void 0?c:!1)?d=>Go.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Vo([(0,Qr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),Vo([(0,Qr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),Vo([Lr({store:co.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],o.prototype,"metadataDescriptors",void 0),Vo([Lr({store:co.name})],o.prototype,"uiLocale",void 0),o}var ee=function(e,o,r,n){var a=arguments.length,c=a<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,r):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,r,n);else for(var d=e.length-1;d>=0;d--)(l=e[d])&&(c=(a<3?l(c):a>3?l(o,r,c):l(o,r))||c);return a>3&&c&&Object.defineProperty(o,r,c),c},ct=class extends Sc(fo){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return Nt.html`
1427
1427
  ${this.renderChip()}
1428
1428
  ${this.hideIfEmpty()}
1429
1429
  `}renderChip(){var o,r,n,a;let c=!this.forceTooltip&&this.displayLabel&&((o=this.flatMetadata)===null||o===void 0?void 0:o.displayTooltipValue)==((r=this.flatMetadata)===null||r===void 0?void 0:r.displayValue),l=Nt.html`
@@ -1491,7 +1491,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
1491
1491
  ></ftds-button>
1492
1492
  `:this.withAction?F`
1493
1493
  <slot name="action"></slot>
1494
- `:H}resolveButtonSize(){switch(this.size){case se.large:return se.medium;case se.medium:case se.small:return se.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ni)}typographyVariant(){switch(this.size){case se.large:return Le.body2medium;case se.medium:case se.small:return Le.caption1medium}}};Ae.elementDefinitions={"ft-typography":he,"ft-icon":de,"ftds-button":Ie};Ae.styles=sc;ir([A({type:Boolean})],Ae.prototype,"withAction",void 0);ir([A({type:Boolean})],Ae.prototype,"removable",void 0);ir([A()],Ae.prototype,"removeButtonLabel",void 0);ir([A()],Ae.prototype,"label",void 0);ir([A()],Ae.prototype,"icon",void 0);ir([ie("ft-typography slot")],Ae.prototype,"slottedContent",void 0);ae("ft-chip")(oe);ae("ftds-chip")(Ae);var qp="ft-app-info",So=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};So.eventName="authentication-change";var Yp={session:(t,e)=>{xt(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>Mr.dispatchEvent(new So(e.payload)),0))}},Mr=kr.get({name:qp,reducers:Yp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function lc(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(Mr)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>Dr.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Oo([A({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Oo([A({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Oo([no({store:Mr.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Oo([no({store:Mr.name})],e.prototype,"uiLocale",void 0),e}var pt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},xe=class extends lc(go){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return F`
1494
+ `:H}resolveButtonSize(){switch(this.size){case se.large:return se.medium;case se.medium:case se.small:return se.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&o!==void 0?o:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new ni)}typographyVariant(){switch(this.size){case se.large:return Le.body2medium;case se.medium:case se.small:return Le.caption1medium}}};Ae.elementDefinitions={"ft-typography":he,"ft-icon":de,"ftds-button":Ie};Ae.styles=sc;ir([A({type:Boolean})],Ae.prototype,"withAction",void 0);ir([A({type:Boolean})],Ae.prototype,"removable",void 0);ir([A()],Ae.prototype,"removeButtonLabel",void 0);ir([A()],Ae.prototype,"label",void 0);ir([A()],Ae.prototype,"icon",void 0);ir([ie("ft-typography slot")],Ae.prototype,"slottedContent",void 0);ae("ft-chip")(oe);ae("ftds-chip")(Ae);var qp="ft-app-info",So=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};So.eventName="authentication-change";var Yp={session:(t,e)=>{xt(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>Mr.dispatchEvent(new So(e.payload)),0))}},Mr=kr.get({name:qp,reducers:Yp,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Oo=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};function lc(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(Mr)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,i;return((i=(a=this.metadataDescriptors.find(c=>c.key===n))===null||a===void 0?void 0:a.date)!==null&&i!==void 0?i:!1)?c=>Dr.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Oo([A({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Oo([A({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Oo([no({store:Mr.name,selector:o=>{var n,a;return(a=(n=o.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),Oo([no({store:Mr.name})],e.prototype,"uiLocale",void 0),e}var pt=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},xe=class extends lc(go){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return F`
1495
1495
  ${this.renderChip()}
1496
1496
  ${this.hideIfEmpty()}
1497
1497
  `}renderChip(){var e,o,n,a;let i=!this.forceTooltip&&this.displayLabel&&((e=this.flatMetadata)===null||e===void 0?void 0:e.displayTooltipValue)==((o=this.flatMetadata)===null||o===void 0?void 0:o.displayValue),s=F`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-metadata",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Metadata of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "1.3.4",
22
+ "@fluid-topics/ft-wc-utils": "1.3.5",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "1.3.4"
26
+ "@fluid-topics/ft-wc-test-utils": "1.3.5"
27
27
  },
28
- "gitHead": "88282019772befe5149b30c92d1ac38067d25c2b"
28
+ "gitHead": "87377b99617257593de238b08c41d2638617f501"
29
29
  }