@fluid-topics/ft-reader-topic-metadata 1.2.57 → 1.2.59

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.
@@ -1361,7 +1361,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
1361
1361
  ></ftds-button>
1362
1362
  `:this.withAction?Zt.html`
1363
1363
  <slot name="action"></slot>
1364
- `:Zt.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 Er)}typographyVariant(){switch(this.size){case et.large:return yt.body2medium;case et.medium:return yt.caption1medium;case et.small:return yt.caption2medium}}};xt.elementDefinitions={"ft-typography":ot,"ft-icon":X,"ftds-button":wt};xt.styles=Ei;Le([(0,qt.property)({type:Boolean})],xt.prototype,"withAction",void 0);Le([(0,qt.property)({type:Boolean})],xt.prototype,"removable",void 0);Le([(0,qt.property)()],xt.prototype,"removeButtonLabel",void 0);Le([(0,qt.property)()],xt.prototype,"label",void 0);Le([(0,qt.property)()],xt.prototype,"icon",void 0);Le([(0,qt.query)("ft-typography slot")],xt.prototype,"slottedContent",void 0);(0,Nr.customElement)("ft-chip")(G);(0,Nr.customElement)("ftds-chip")(xt);var Jr=C(q());function nl(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(!Po(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(!Po(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(!Po(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function Po(e,o){try{return nl(e,o)}catch{return!1}}function Qe(e,o){return!Po(e,o)}var Ai=C(q(),1);var Ar=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Qe,attribute:!1,...o};(0,Ai.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 Io=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 Ri=C(q(),1);function Li(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ri.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 ko=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 Ii=C(H(),1);var $o=globalThis,al=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ng=Symbol();var Pi=(e,o)=>{if(al)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=$o.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var To=class extends Ii.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 Pi(n,o.elementStyles),n}};function ki(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},Wi,$i=Symbol("constructorPrototype"),Ti=Symbol("constructorName"),_i=Symbol("exportpartsDebouncer"),Bi=Symbol("dynamicDependenciesLoaded"),Dt=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wi]=new ko(5),this[Ti]=this.constructor.name,this[$i]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ti]&&Object.setPrototypeOf(this,this[$i])}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[Bi]||(o[Bi]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(o){super.updated(o),this.updateComplete.then(()=>{this.contentAvailableCallback(o),this.applyCustomStylesheet(o),this.scheduleExportpartsUpdate()})}contentAvailableCallback(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=ki(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[_i].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(", "))}};Wi=_i;to([(0,Pe.property)()],Dt.prototype,"exportpartsPrefix",void 0);to([Li([])],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 Di,zi,Mi,oo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ro=class extends Dt{constructor(){super(...arguments),this[Di]=new Map,this[zi]=new Map,this[Mi]=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()}};Di=Yt,zi=se,Mi=oo;ro.reduxProperties=new Map;ro.reduxReactiveProperties=new Set;ro.reduxEventListeners=new Map;function vt(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)===ul}(e)||Array.isArray(e)||!!e[Ki]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ki])||Wr(e)||_r(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:Wr(e)?2:_r(e)?3:0}function Ie(e,o){return $e(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function il(e,o){return $e(e)===2?e.get(o):e[o]}function Zi(e,o,r){var n=$e(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function qi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Wr(e){return fl&&e instanceof Map}function _r(e){return pl&&e instanceof Set}function Xt(e){return e.o||e.t}function Dr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Ji(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 zr(e,o){return o===void 0&&(o=!1),Mr(e)||zt(e)||!Et(e)||($e(e)>1&&(e.set=e.add=e.clear=e.delete=cl),Object.freeze(e),o&&de(e,function(r,n){return zr(n,!0)},!0)),e}function cl(){vt(2)}function Mr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=Br[e];return o||vt(18,e),o}function ll(e,o){Br[e]||(Br[e]=o)}function kr(){return ao}function Rr(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function Bo(e){$r(e),e.p.forEach(sl),e.p=null}function $r(e){e===ao&&(ao=e.l)}function Hi(e){return ao={p:[],l:ao,h:e,m:!0,_:0}}function sl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Lr(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&&(Bo(o),vt(4)),Et(e)&&(e=Wo(o,e),o.l||_o(o,e)),o.u&&Pt("Patches").M(r[M].t,e,o.u,o.s)):e=Wo(o,r,[]),Bo(o),o.u&&o.v(o.u,o.s),e!==Xi?e:void 0}function Wo(e,o,r){if(Mr(o))return o;var n=o[M];if(!n)return de(o,function(d,p){return Ui(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return _o(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Dr(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 Ui(e,n,a,d,p,r,l)}),_o(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Ui(e,o,r,n,a,c,l){if(zt(a)){var d=Wo(e,a,c&&o&&o.i!==3&&!Ie(o.R,n)?c.concat(n):void 0);if(Zi(r,n,d),!zt(d))return;e.m=!1}else l&&r.add(a);if(Et(a)&&!Mr(a)){if(!e.h.D&&e._<1)return;Wo(e,a),o&&o.A.l||_o(e,a)}}function _o(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&zr(o,r)}function Pr(e,o){var r=e[M];return(r?Xt(r):e)[o]}function Gi(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 Ir(e){e.o||(e.o=Dr(e.t))}function Tr(e,o,r){var n=Wr(o)?Pt("MapSet").F(o,r):_r(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:kr(),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:kr()).p.push(n),n}function dl(e){return zt(e)||vt(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=Fi(r,c),a.I=!1}else n=Fi(r,c);return de(n,function(l,d){a&&il(a.t,l)===d||Zi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Fi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Dr(e)}function Yi(){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:!qi(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&&vt(3,JSON.stringify(Xt(l)))}var c={};ll("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=Ji(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:kr(),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),L=0;L<N;L++)b.hasOwnProperty(L)||(m[L]=!0),m[L]===void 0&&f(b[L])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var ji,ao,Hr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fl=typeof Map<"u",pl=typeof Set<"u",Vi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xi=Hr?Symbol.for("immer-nothing"):((ji={})["immer-nothing"]=!0,ji),Ki=Hr?Symbol.for("immer-draftable"):"__$immer_draftable",M=Hr?Symbol.for("immer-state"):"__$immer_state";var ul=""+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,Ji=Object.getOwnPropertyDescriptors||function(e){var o={};return ke(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},Br={},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=Gi(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===Pr(e.t,o)?(Ir(e),e.o[o]=Tr(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=Gi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Pr(Xt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(qi(r,a)&&(r!==void 0||Ie(e.t,o)))return!0;Ir(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 Pr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Ir(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(){vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vt(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 hl=function(){function e(r){var n=this;this.O=Vi,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),L=1;L<E;L++)N[L-1]=arguments[L];return p.produce(v,function($){var B;return(B=c).call.apply(B,[R,$].concat(N))})}}var f;if(typeof c!="function"&&vt(6),l!==void 0&&typeof l!="function"&&vt(7),Et(a)){var h=Hi(n),y=Tr(n,a,void 0),g=!0;try{f=c(y),g=!1}finally{g?Bo(h):$r(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Rr(h,l),Lr(v,h)},function(v){throw Bo(h),v}):(Rr(h,l),Lr(f,h))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Xi&&(f=void 0),n.D&&zr(f,!0),l){var b=[],m=[];Pt("Patches").M(a,f,b,m),l(b,m)}return f}vt(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)||vt(8),zt(r)&&(r=dl(r));var n=Hi(this),a=Tr(this,r,void 0);return a[M].C=!0,$r(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Rr(c,n),Lr(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Vi&&vt(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 hl,yl=pt.produce,bg=pt.produceWithPatches.bind(pt),xg=pt.setAutoFreeze.bind(pt),vg=pt.setUseProxies.bind(pt),Sg=pt.applyPatches.bind(pt),Og=pt.createDraft.bind(pt),Cg=pt.finishDraft.bind(pt),Do=yl;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 Qi(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 tc(e){var o=Qi(e,"string");return fe(o)=="symbol"?o:o+""}function ec(e,o,r){return(o=tc(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function oc(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 Ur(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?oc(Object(r),!0).forEach(function(n){ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(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 rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gr=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Gr(),REPLACE:"@@redux/REPLACE"+Gr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gr()}};function gl(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 Fr(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(Fr)(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(!gl(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:zo.REPLACE})}function m(){var v,R=y;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function L(){N.next&&N.next(h())}L();var $=R(L);return{unsubscribe:$}}},v[rc]=function(){return this},v}return g({type:zo.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:b},n[rc]=m,n}function ml(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function nc(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{ml(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 L=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 Te(){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 ac(){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=Te.apply(void 0,d)(a.dispatch),Ur(Ur({},a),{},{dispatch:c})}}}function ic(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 cc=ic();cc.withExtraArgument=ic;var jr=cc;var pc=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)}}(),bl=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}}},Be=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},xl=Object.defineProperty,vl=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,sc=function(e,o,r){return o in e?xl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))Ol.call(o,r)&&sc(e,r,o[r]);if(lc)for(var n=0,a=lc(o);n<a.length;n++){var r=a[n];Cl.call(o,r)&&sc(e,r,o[r])}return e},Vr=function(e,o){return vl(e,Sl(o))},wl=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 El=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Te:Te.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Nl(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 Al=function(e){pc(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,Be([void 0],r[0].concat(this)))):new(o.bind.apply(o,Be([void 0],r.concat(this))))},o}(Array),Rl=function(e){pc(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,Be([void 0],r[0].concat(this)))):new(o.bind.apply(o,Be([void 0],r.concat(this))))},o}(Array);function qr(e){return Et(e)?Do(e,function(){}):e}function Ll(e){return typeof e=="boolean"}function Pl(){return function(o){return Il(o)}}function Il(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 Al;if(r&&(Ll(r)?d.push(jr):d.push(jr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function uc(e){var o=Pl(),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(Nl(a))b=nc(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),!Kr&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&m.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ac.apply(void 0,m),R=Te;p&&(R=El(Qt({trace:!Kr},typeof p=="object"&&p)));var E=new Rl(v),N=E;Array.isArray(g)?N=Be([v],g):typeof g=="function"&&(N=g(E));var L=R.apply(void 0,N);return Fr(b,h,L)}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 hc(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 kl(e){return typeof e=="function"}function $l(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?hc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(kl(e))p=function(){return qr(e())};else{var f=qr(e);p=function(){return f}}function h(y,g){y===void 0&&(y=p());var b=Be([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 Do(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 Tl(e,o){return e+"/"+o}function yc(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:qr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(h){var y=n[h],g=Tl(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"?hc(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 $l(r,function(N){for(var L in E)N.addCase(L,E[L]);for(var $=0,B=m;$<B.length;$++){var ut=B[$];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 Bl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Bl[Math.random()*64|0];return o},_l=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),dc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Dl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=_l;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:Vr(Qt({},b||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),c=te(o+"/pending",function(h,y,g){return{payload:void 0,meta:Vr(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||Dl)(h||"Rejected"),meta:Vr(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):Wl(),v=new p,R,E=!1;function N($){R=$,v.abort()}var L=function(){return wl(this,null,function(){var $,B,ut,Mt,Fo,Ht,lt;return bl(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}),Ml(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,Fo=new Promise(function(st,oe){return v.signal.addEventListener("abort",function(){return oe({name:"AbortError",message:R||"Aborted"})})}),y(c(m,h,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:m,arg:h},{getState:g,extra:b}))),[4,Promise.race([Fo,Promise.resolve(r(h,{dispatch:y,getState:g,extra:b,requestId:m,signal:v.signal,abort:N,rejectWithValue:function(st,oe){return new Zr(st,oe)},fulfillWithValue:function(st,oe){return new dc(st,oe)}})).then(function(st){if(st instanceof Zr)throw st;return st instanceof dc?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 Zr?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(L,{abort:N,requestId:m,arg:h,unwrap:function(){return L.then(zl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function zl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ml(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gc="listener",mc="completed",bc="cancelled",Vg="task-"+bc,Kg="task-"+mc,Zg=gc+"-"+bc,qg=gc+"-"+mc;var Yr="listenerMiddleware";var Yg=te(Yr+"/add"),Xg=te(Yr+"/removeAll"),Jg=te(Yr+"/remove");var fc,Qg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(fc||(fc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Hl=function(e){return function(o){setTimeout(o,e)}},tm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hl(10);Yi();function Ul(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 Mo=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var xc=class e extends Mo{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=yc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=uc({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 Io;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 Ho=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 Uo=C(T()),Gl="ft-app-info",Xr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},Fl={session:(e,o)=>{(0,Uo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>co.dispatchEvent(new Xr(o.payload)),0))}},co=Uo.FtReduxStore.get({name:Gl,reducers:Fl,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 Go=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 vc(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=>Ho.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Go([(0,Jr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),Go([(0,Jr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),Go([Ar({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),Go([Ar({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 vc(so){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return Nt.html`
1364
+ `:Zt.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 Er)}typographyVariant(){switch(this.size){case et.large:return yt.body2medium;case et.medium:return yt.caption1medium;case et.small:return yt.caption2medium}}};xt.elementDefinitions={"ft-typography":ot,"ft-icon":X,"ftds-button":wt};xt.styles=Ei;Le([(0,qt.property)({type:Boolean})],xt.prototype,"withAction",void 0);Le([(0,qt.property)({type:Boolean})],xt.prototype,"removable",void 0);Le([(0,qt.property)()],xt.prototype,"removeButtonLabel",void 0);Le([(0,qt.property)()],xt.prototype,"label",void 0);Le([(0,qt.property)()],xt.prototype,"icon",void 0);Le([(0,qt.query)("ft-typography slot")],xt.prototype,"slottedContent",void 0);(0,Nr.customElement)("ft-chip")(G);(0,Nr.customElement)("ftds-chip")(xt);var Jr=C(q());function nl(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(!Po(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(!Po(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(!Po(e[l],o[l]))return!1}return!0}return e!==e&&o!==o||e==null&&o==null}function Po(e,o){try{return nl(e,o)}catch{return!1}}function Qe(e,o){return!Po(e,o)}var Ai=C(q(),1);var Ar=e=>{let o=e??{};return(r,n)=>{var a;let c={hasChanged:Qe,attribute:!1,...o};(0,Ai.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 Io=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 Ri=C(q(),1);function Li(e,o){let r=()=>JSON.parse(JSON.stringify(e));return(0,Ri.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 ko=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 Ii=C(H(),1);var $o=globalThis,al=$o.ShadowRoot&&($o.ShadyCSS===void 0||$o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ng=Symbol();var Pi=(e,o)=>{if(al)e.adoptedStyleSheets=o.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of o){let n=document.createElement("style"),a=$o.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,e.appendChild(n)}};var To=class extends Ii.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 Pi(n,o.elementStyles),n}};function ki(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},Wi,$i=Symbol("constructorPrototype"),Ti=Symbol("constructorName"),_i=Symbol("exportpartsDebouncer"),Bi=Symbol("dynamicDependenciesLoaded"),Dt=class extends To{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Wi]=new ko(5),this[Ti]=this.constructor.name,this[$i]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ti]&&Object.setPrototypeOf(this,this[$i])}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[Bi]||(o[Bi]=!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=ki(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[_i].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(", "))}};Wi=_i;to([(0,Pe.property)()],Dt.prototype,"exportpartsPrefix",void 0);to([Li([])],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 Di,zi,Mi,oo=Symbol("internalReduxEventsUnsubscribers"),Yt=Symbol("internalStoresUnsubscribers"),se=Symbol("internalStores"),ro=class extends Dt{constructor(){super(...arguments),this[Di]=new Map,this[zi]=new Map,this[Mi]=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()}};Di=Yt,zi=se,Mi=oo;ro.reduxProperties=new Map;ro.reduxReactiveProperties=new Set;ro.reduxEventListeners=new Map;function vt(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)===ul}(e)||Array.isArray(e)||!!e[Ki]||!!(!((o=e.constructor)===null||o===void 0)&&o[Ki])||Wr(e)||_r(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:Wr(e)?2:_r(e)?3:0}function Ie(e,o){return $e(e)===2?e.has(o):Object.prototype.hasOwnProperty.call(e,o)}function il(e,o){return $e(e)===2?e.get(o):e[o]}function Zi(e,o,r){var n=$e(e);n===2?e.set(o,r):n===3?e.add(r):e[o]=r}function qi(e,o){return e===o?e!==0||1/e==1/o:e!=e&&o!=o}function Wr(e){return fl&&e instanceof Map}function _r(e){return pl&&e instanceof Set}function Xt(e){return e.o||e.t}function Dr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var o=Ji(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 zr(e,o){return o===void 0&&(o=!1),Mr(e)||zt(e)||!Et(e)||($e(e)>1&&(e.set=e.add=e.clear=e.delete=cl),Object.freeze(e),o&&de(e,function(r,n){return zr(n,!0)},!0)),e}function cl(){vt(2)}function Mr(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Pt(e){var o=Br[e];return o||vt(18,e),o}function ll(e,o){Br[e]||(Br[e]=o)}function kr(){return ao}function Rr(e,o){o&&(Pt("Patches"),e.u=[],e.s=[],e.v=o)}function Bo(e){$r(e),e.p.forEach(sl),e.p=null}function $r(e){e===ao&&(ao=e.l)}function Hi(e){return ao={p:[],l:ao,h:e,m:!0,_:0}}function sl(e){var o=e[M];o.i===0||o.i===1?o.j():o.g=!0}function Lr(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&&(Bo(o),vt(4)),Et(e)&&(e=Wo(o,e),o.l||_o(o,e)),o.u&&Pt("Patches").M(r[M].t,e,o.u,o.s)):e=Wo(o,r,[]),Bo(o),o.u&&o.v(o.u,o.s),e!==Xi?e:void 0}function Wo(e,o,r){if(Mr(o))return o;var n=o[M];if(!n)return de(o,function(d,p){return Ui(e,n,o,d,p,r)},!0),o;if(n.A!==e)return o;if(!n.P)return _o(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Dr(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 Ui(e,n,a,d,p,r,l)}),_o(e,a,!1),r&&e.u&&Pt("Patches").N(n,r,e.u,e.s)}return n.o}function Ui(e,o,r,n,a,c,l){if(zt(a)){var d=Wo(e,a,c&&o&&o.i!==3&&!Ie(o.R,n)?c.concat(n):void 0);if(Zi(r,n,d),!zt(d))return;e.m=!1}else l&&r.add(a);if(Et(a)&&!Mr(a)){if(!e.h.D&&e._<1)return;Wo(e,a),o&&o.A.l||_o(e,a)}}function _o(e,o,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&zr(o,r)}function Pr(e,o){var r=e[M];return(r?Xt(r):e)[o]}function Gi(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 Ir(e){e.o||(e.o=Dr(e.t))}function Tr(e,o,r){var n=Wr(o)?Pt("MapSet").F(o,r):_r(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:kr(),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:kr()).p.push(n),n}function dl(e){return zt(e)||vt(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=Fi(r,c),a.I=!1}else n=Fi(r,c);return de(n,function(l,d){a&&il(a.t,l)===d||Zi(n,l,o(d))}),c===3?new Set(n):n}(e)}function Fi(e,o){switch(o){case 2:return new Map(e);case 3:return Array.from(e)}return Dr(e)}function Yi(){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:!qi(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&&vt(3,JSON.stringify(Xt(l)))}var c={};ll("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=Ji(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:kr(),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),L=0;L<N;L++)b.hasOwnProperty(L)||(m[L]=!0),m[L]===void 0&&f(b[L])}}}}(l.p[0]),o(l.p))},K:function(l){return l.i===4?r(l):n(l)}})}var ji,ao,Hr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",fl=typeof Map<"u",pl=typeof Set<"u",Vi=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xi=Hr?Symbol.for("immer-nothing"):((ji={})["immer-nothing"]=!0,ji),Ki=Hr?Symbol.for("immer-draftable"):"__$immer_draftable",M=Hr?Symbol.for("immer-state"):"__$immer_state";var ul=""+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,Ji=Object.getOwnPropertyDescriptors||function(e){var o={};return ke(e).forEach(function(r){o[r]=Object.getOwnPropertyDescriptor(e,r)}),o},Br={},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=Gi(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===Pr(e.t,o)?(Ir(e),e.o[o]=Tr(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=Gi(Xt(e),o);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var a=Pr(Xt(e),o),c=a?.[M];if(c&&c.t===r)return e.o[o]=r,e.R[o]=!1,!0;if(qi(r,a)&&(r!==void 0||Ie(e.t,o)))return!0;Ir(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 Pr(e.t,o)!==void 0||o in e.t?(e.R[o]=!1,Ir(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(){vt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){vt(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 hl=function(){function e(r){var n=this;this.O=Vi,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),L=1;L<E;L++)N[L-1]=arguments[L];return p.produce(v,function($){var B;return(B=c).call.apply(B,[R,$].concat(N))})}}var f;if(typeof c!="function"&&vt(6),l!==void 0&&typeof l!="function"&&vt(7),Et(a)){var h=Hi(n),y=Tr(n,a,void 0),g=!0;try{f=c(y),g=!1}finally{g?Bo(h):$r(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return Rr(h,l),Lr(v,h)},function(v){throw Bo(h),v}):(Rr(h,l),Lr(f,h))}if(!a||typeof a!="object"){if((f=c(a))===void 0&&(f=a),f===Xi&&(f=void 0),n.D&&zr(f,!0),l){var b=[],m=[];Pt("Patches").M(a,f,b,m),l(b,m)}return f}vt(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)||vt(8),zt(r)&&(r=dl(r));var n=Hi(this),a=Tr(this,r,void 0);return a[M].C=!0,$r(n),a},o.finishDraft=function(r,n){var a=r&&r[M],c=a.A;return Rr(c,n),Lr(void 0,c)},o.setAutoFreeze=function(r){this.D=r},o.setUseProxies=function(r){r&&!Vi&&vt(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 hl,yl=pt.produce,bg=pt.produceWithPatches.bind(pt),xg=pt.setAutoFreeze.bind(pt),vg=pt.setUseProxies.bind(pt),Sg=pt.applyPatches.bind(pt),Og=pt.createDraft.bind(pt),Cg=pt.finishDraft.bind(pt),Do=yl;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 Qi(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 tc(e){var o=Qi(e,"string");return fe(o)=="symbol"?o:o+""}function ec(e,o,r){return(o=tc(o))in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function oc(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 Ur(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?oc(Object(r),!0).forEach(function(n){ec(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oc(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 rc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gr=function(){return Math.random().toString(36).substring(7).split("").join(".")},zo={INIT:"@@redux/INIT"+Gr(),REPLACE:"@@redux/REPLACE"+Gr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gr()}};function gl(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 Fr(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(Fr)(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(!gl(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:zo.REPLACE})}function m(){var v,R=y;return v={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(tt(11));function L(){N.next&&N.next(h())}L();var $=R(L);return{unsubscribe:$}}},v[rc]=function(){return this},v}return g({type:zo.INIT}),n={dispatch:g,subscribe:y,getState:h,replaceReducer:b},n[rc]=m,n}function ml(e){Object.keys(e).forEach(function(o){var r=e[o],n=r(void 0,{type:zo.INIT});if(typeof n>"u")throw new Error(tt(12));if(typeof r(void 0,{type:zo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(tt(13))})}function nc(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{ml(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 L=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 Te(){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 ac(){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=Te.apply(void 0,d)(a.dispatch),Ur(Ur({},a),{},{dispatch:c})}}}function ic(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 cc=ic();cc.withExtraArgument=ic;var jr=cc;var pc=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)}}(),bl=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}}},Be=function(e,o){for(var r=0,n=o.length,a=e.length;r<n;r++,a++)e[a]=o[r];return e},xl=Object.defineProperty,vl=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,lc=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,sc=function(e,o,r){return o in e?xl(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r},Qt=function(e,o){for(var r in o||(o={}))Ol.call(o,r)&&sc(e,r,o[r]);if(lc)for(var n=0,a=lc(o);n<a.length;n++){var r=a[n];Cl.call(o,r)&&sc(e,r,o[r])}return e},Vr=function(e,o){return vl(e,Sl(o))},wl=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 El=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Te:Te.apply(null,arguments)},Hg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Nl(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 Al=function(e){pc(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,Be([void 0],r[0].concat(this)))):new(o.bind.apply(o,Be([void 0],r.concat(this))))},o}(Array),Rl=function(e){pc(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,Be([void 0],r[0].concat(this)))):new(o.bind.apply(o,Be([void 0],r.concat(this))))},o}(Array);function qr(e){return Et(e)?Do(e,function(){}):e}function Ll(e){return typeof e=="boolean"}function Pl(){return function(o){return Il(o)}}function Il(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 Al;if(r&&(Ll(r)?d.push(jr):d.push(jr.withExtraArgument(r.extraArgument))),0){if(a)var p;if(l)var f}return d}var Kr=!0;function uc(e){var o=Pl(),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(Nl(a))b=nc(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),!Kr&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Kr&&m.some(function($){return typeof $!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=ac.apply(void 0,m),R=Te;p&&(R=El(Qt({trace:!Kr},typeof p=="object"&&p)));var E=new Rl(v),N=E;Array.isArray(g)?N=Be([v],g):typeof g=="function"&&(N=g(E));var L=R.apply(void 0,N);return Fr(b,h,L)}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 hc(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 kl(e){return typeof e=="function"}function $l(e,o,r,n){r===void 0&&(r=[]);var a=typeof o=="function"?hc(o):[o,r,n],c=a[0],l=a[1],d=a[2],p;if(kl(e))p=function(){return qr(e())};else{var f=qr(e);p=function(){return f}}function h(y,g){y===void 0&&(y=p());var b=Be([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 Do(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 Tl(e,o){return e+"/"+o}function yc(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:qr(e.initialState),n=e.reducers||{},a=Object.keys(n),c={},l={},d={};a.forEach(function(h){var y=n[h],g=Tl(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"?hc(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 $l(r,function(N){for(var L in E)N.addCase(L,E[L]);for(var $=0,B=m;$<B.length;$++){var ut=B[$];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 Bl="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wl=function(e){e===void 0&&(e=21);for(var o="",r=e;r--;)o+=Bl[Math.random()*64|0];return o},_l=["name","message","stack","code"],Zr=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),dc=function(){function e(o,r){this.payload=o,this.meta=r}return e}(),Dl=function(e){if(typeof e=="object"&&e!==null){for(var o={},r=0,n=_l;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:Vr(Qt({},b||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),c=te(o+"/pending",function(h,y,g){return{payload:void 0,meta:Vr(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||Dl)(h||"Rejected"),meta:Vr(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):Wl(),v=new p,R,E=!1;function N($){R=$,v.abort()}var L=function(){return wl(this,null,function(){var $,B,ut,Mt,Fo,Ht,lt;return bl(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}),Ml(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,Fo=new Promise(function(st,oe){return v.signal.addEventListener("abort",function(){return oe({name:"AbortError",message:R||"Aborted"})})}),y(c(m,h,(B=n?.getPendingMeta)==null?void 0:B.call(n,{requestId:m,arg:h},{getState:g,extra:b}))),[4,Promise.race([Fo,Promise.resolve(r(h,{dispatch:y,getState:g,extra:b,requestId:m,signal:v.signal,abort:N,rejectWithValue:function(st,oe){return new Zr(st,oe)},fulfillWithValue:function(st,oe){return new dc(st,oe)}})).then(function(st){if(st instanceof Zr)throw st;return st instanceof dc?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 Zr?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(L,{abort:N,requestId:m,arg:h,unwrap:function(){return L.then(zl)}})}}return Object.assign(f,{pending:c,rejected:l,fulfilled:a,typePrefix:o})}return e.withTypes=function(){return e},e}();function zl(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ml(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var gc="listener",mc="completed",bc="cancelled",Vg="task-"+bc,Kg="task-"+mc,Zg=gc+"-"+bc,qg=gc+"-"+mc;var Yr="listenerMiddleware";var Yg=te(Yr+"/add"),Xg=te(Yr+"/removeAll"),Jg=te(Yr+"/remove");var fc,Qg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(fc||(fc=Promise.resolve())).then(e).catch(function(o){return setTimeout(function(){throw o},0)})},Hl=function(e){return function(o){setTimeout(o,e)}},tm=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Hl(10);Yi();function Ul(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 Mo=class extends Ul(Object){};window.ftReduxStores||(window.ftReduxStores={});var xc=class e extends Mo{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=yc({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=uc({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 Io;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 Ho=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 Uo=C(T()),Gl="ft-app-info",Xr=class extends CustomEvent{constructor(o){super("authentication-change",{detail:o})}},Fl={session:(e,o)=>{(0,Uo.deepEqual)(e.session,o.payload)||(e.session=o.payload,setTimeout(()=>co.dispatchEvent(new Xr(o.payload)),0))}},co=Uo.FtReduxStore.get({name:Gl,reducers:Fl,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 Go=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 vc(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=>Ho.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Go([(0,Jr.property)({type:Boolean})],o.prototype,"useLongDateFormat",void 0),Go([(0,Jr.property)({type:Boolean})],o.prototype,"useDateTimeFormat",void 0),Go([Ar({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),Go([Ar({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 vc(so){constructor(){super(...arguments),this.multiLine=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1}render(){return Nt.html`
1365
1365
  ${this.renderChip()}
1366
1366
  ${this.hideIfEmpty()}
1367
1367
  `}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`