@fluid-topics/ft-reader-topic-content 1.0.50 → 1.0.52

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.
@@ -89,7 +89,7 @@ var ft,ht;let dt=class extends M{constructor(){super(...arguments),this.renderOp
89
89
  display: inline-block;
90
90
  width: 0;
91
91
  }
92
- `;class Et{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,n)=>this.formatValue(t,n))))),r}resolvePluralKey(t,e){for(let n of e)if("number"==typeof n){const e=`${String(t)}[\\=${n}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const n=n=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(n):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(n):t.toLocaleString(n);try{return n(document.documentElement.lang)}catch(t){return n()}}}function jt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ct,Nt,Rt;const Mt=Symbol("internalReduxEventsUnsubscribers"),At=Symbol("internalStoresUnsubscribers"),kt=Symbol("internalStores");class $t extends St{constructor(){super(...arguments),this[Ct]=new Map,this[Nt]=new Map,this[Rt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[kt].get(t)}addStore(t,e){var n;e=null!==(n=null!=e?e:jt(t)?t.name:void 0)&&void 0!==n?n:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[kt].delete(e)}setupStore(t,e){this[kt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[kt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.constructor.getPropertyOptions(e);if(!(null==n?void 0:n.attribute)||!this.hasAttribute("string"==typeof(null==n?void 0:n.attribute)?n.attribute:e)){const n=this.getStore(t.store);n&&(t.store?this[At].has(t.store):this[At].size>0)&&(this[e]=t.selector(n.getState(),this))}}))}subscribeToStore(t,e){var n;this[At].set(t,e.subscribe((()=>this.updateFromStores()))),jt(e)&&e.eventBus&&(null===(n=this.reduxEventListeners)||void 0===n||n.forEach(((t,n)=>{if("function"==typeof this[n]&&(!t.store||e.name===t.store)){const i=t=>this[n](t);e.eventBus.addEventListener(t.eventName,i),this[Mt].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[At].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Mt].forEach((t=>t())),this[Mt]=[]}unsubscribeFromStore(t){this[At].has(t)&&this[At].get(t)(),this[At].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ut(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pt(t){return!!t&&!!t[we]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ge}(t)||Array.isArray(t)||!!t[ye]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ye])||Bt(t)||Wt(t))}function _t(t,e,n){void 0===n&&(n=!1),0===Lt(t)?(n?Object.keys:Oe)(t).forEach((function(i){n&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function Lt(t){var e=t[we];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bt(t)?2:Wt(t)?3:0}function Ft(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function It(t,e,n){var i=Lt(t);2===i?t.set(e,n):3===i?t.add(n):t[e]=n}function Dt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Bt(t){return pe&&t instanceof Map}function Wt(t){return be&&t instanceof Set}function Kt(t){return t.o||t.t}function zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Se(t);delete e[we];for(var n=Oe(e),i=0;i<n.length;i++){var r=n[i],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Ht(t,e){return void 0===e&&(e=!1),Vt(t)||Pt(t)||!Tt(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=qt),Object.freeze(t),e&&_t(t,(function(t,e){return Ht(e,!0)}),!0)),t}function qt(){Ut(2)}function Vt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Jt(t){var e=Ee[t];return e||Ut(18,t),e}function Zt(){return de}function Xt(t,e){e&&(Jt("Patches"),t.u=[],t.s=[],t.v=e)}function Gt(t){Qt(t),t.p.forEach(te),t.p=null}function Qt(t){t===de&&(de=t.l)}function Yt(t){return de={p:[],l:de,h:t,m:!0,_:0}}function te(t){var e=t[we];0===e.i||1===e.i?e.j():e.g=!0}function ee(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||Jt("ES5").S(e,t,i),i?(n[we].P&&(Gt(e),Ut(4)),Tt(t)&&(t=ne(e,t),e.l||re(e,t)),e.u&&Jt("Patches").M(n[we].t,t,e.u,e.s)):t=ne(e,n,[]),Gt(e),e.u&&e.v(e.u,e.s),t!==me?t:void 0}function ne(t,e,n){if(Vt(e))return e;var i=e[we];if(!i)return _t(e,(function(r,o){return ie(t,i,e,r,o,n)}),!0),e;if(i.A!==t)return e;if(!i.P)return re(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=zt(i.k):i.o,o=r,s=!1;3===i.i&&(o=new Set(r),r.clear(),s=!0),_t(o,(function(e,o){return ie(t,i,r,e,o,n,s)})),re(t,r,!1),n&&t.u&&Jt("Patches").N(i,n,t.u,t.s)}return i.o}function ie(t,e,n,i,r,o,s){if(Pt(r)){var a=ne(t,r,o&&e&&3!==e.i&&!Ft(e.R,i)?o.concat(i):void 0);if(It(n,i,a),!Pt(a))return;t.m=!1}else s&&n.add(r);if(Tt(r)&&!Vt(r)){if(!t.h.D&&t._<1)return;ne(t,r),e&&e.A.l||re(t,r)}}function re(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&Ht(e,n)}function oe(t,e){var n=t[we];return(n?Kt(n):t)[e]}function se(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var i=Object.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function ae(t){t.P||(t.P=!0,t.l&&ae(t.l))}function ce(t){t.o||(t.o=zt(t.t))}function ue(t,e,n){var i=Bt(e)?Jt("MapSet").F(e,n):Wt(e)?Jt("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),i={i:n?1:0,A:e?e.A:Zt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,o=je;n&&(r=[i],o=Ce);var s=Proxy.revocable(r,o),a=s.revoke,c=s.proxy;return i.k=c,i.j=a,c}(e,n):Jt("ES5").J(e,n);return(n?n.A:Zt()).p.push(i),i}function le(t){return Pt(t)||Ut(22,t),function t(e){if(!Tt(e))return e;var n,i=e[we],r=Lt(e);if(i){if(!i.P&&(i.i<4||!Jt("ES5").K(i)))return i.t;i.I=!0,n=fe(e,r),i.I=!1}else n=fe(e,r);return _t(n,(function(e,r){i&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(i.t,e)===r||It(n,e,t(r))})),3===r?new Set(n):n}(t)}function fe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return zt(t)}Ct=At,Nt=kt,Rt=Mt;var he,de,ve="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),pe="undefined"!=typeof Map,be="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,me=ve?Symbol.for("immer-nothing"):((he={})["immer-nothing"]=!0,he),ye=ve?Symbol.for("immer-draftable"):"__$immer_draftable",we=ve?Symbol.for("immer-state"):"__$immer_state",ge=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Se=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Ee={},je={get:function(t,e){if(e===we)return t;var n=Kt(t);if(!Ft(n,e))return function(t,e,n){var i,r=se(e,n);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,n,e);var i=n[e];return t.I||!Tt(i)?i:i===oe(t.t,e)?(ce(t),t.o[e]=ue(t.A.h,i,t)):i},has:function(t,e){return e in Kt(t)},ownKeys:function(t){return Reflect.ownKeys(Kt(t))},set:function(t,e,n){var i=se(Kt(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,n),!0;if(!t.P){var r=oe(Kt(t),e),o=null==r?void 0:r[we];if(o&&o.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(Dt(n,r)&&(void 0!==n||Ft(t.t,e)))return!0;ce(t),ae(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==oe(t.t,e)||e in t.t?(t.R[e]=!1,ce(t),ae(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Kt(t),i=Reflect.getOwnPropertyDescriptor(n,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:n[e]}:i},defineProperty:function(){Ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ut(12)}},Ce={};_t(je,(function(t,e){Ce[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ce.deleteProperty=function(t,e){return Ce.set.call(this,t,e,void 0)},Ce.set=function(t,e,n){return je.set.call(this,t[0],e,n,t[0])};var Ne=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,n,i){if("function"==typeof t&&"function"!=typeof n){var r=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var i;return(i=n).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&Ut(6),void 0!==i&&"function"!=typeof i&&Ut(7),Tt(t)){var a=Yt(e),c=ue(e,t,void 0),u=!0;try{s=n(c),u=!1}finally{u?Gt(a):Qt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Xt(a,i),ee(t,a)}),(function(t){throw Gt(a),t})):(Xt(a,i),ee(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===me&&(s=void 0),e.D&&Ht(s,!0),i){var l=[],f=[];Jt("Patches").M(t,s,l,f),i(l,f)}return s}Ut(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,o=e.produce(t,n,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,i,r]})):[o,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||Ut(8),Pt(t)&&(t=le(t));var e=Yt(this),n=ue(this,t,void 0);return n[we].C=!0,Qt(e),n},e.finishDraft=function(t,e){var n=(t&&t[we]).A;return Xt(n,e),ee(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&Ut(20),this.O=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var i=e[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}n>-1&&(e=e.slice(n+1));var r=Jt("Patches").$;return Pt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Re=new Ne,Me=Re.produce;function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function ke(t){var e=function(t,e){if("object"!==Ae(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Ae(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ae(e)?e:String(e)}function $e(t,e,n){return(e=ke(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){$e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Re.produceWithPatches.bind(Re),Re.setAutoFreeze.bind(Re),Re.setUseProxies.bind(Re),Re.applyPatches.bind(Re),Re.createDraft.bind(Re),Re.finishDraft.bind(Re);var _e="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fe={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function Ie(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Te(1));return n(Ie)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var r=t,o=e,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function l(){if(c)throw new Error(Te(3));return o}function f(t){if("function"!=typeof t)throw new Error(Te(4));if(c)throw new Error(Te(5));var e=!0;return u(),a.push(t),function(){if(e){if(c)throw new Error(Te(6));e=!1,u();var n=a.indexOf(t);a.splice(n,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Te(7));if(void 0===t.type)throw new Error(Te(8));if(c)throw new Error(Te(9));try{c=!0,o=r(o,t)}finally{c=!1}for(var e=s=a,n=0;n<e.length;n++){(0,e[n])()}return t}return h({type:Fe.INIT}),(i={dispatch:h,subscribe:f,getState:l,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));r=t,h({type:Fe.REPLACE})}})[_e]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[_e]=function(){return this},t},i}function De(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(n[r]=t[r])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Fe.INIT}))throw new Error(Te(12));if(void 0===n(void 0,{type:Fe.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var i=!1,r={},a=0;a<s.length;a++){var c=s[a],u=n[c],l=t[c],f=u(l,e);if(void 0===f)throw e&&e.type,new Error(Te(14));r[c]=f,i=i||f!==l}return(i=i||s.length!==Object.keys(t).length)?r:t}}function Be(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function We(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),i=function(){throw new Error(Te(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return i=Be.apply(void 0,o)(n.dispatch),Pe(Pe({},n),{},{dispatch:i})}}}function Ke(t){return function(e){var n=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(n,i,t):e(r)}}}}var ze=Ke();ze.withExtraArgument=Ke;var He,qe=ze,Ve=(He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Je=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Ze=function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t},Xe=Object.defineProperty,Ge=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,nn=function(t,e,n){return e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},rn=function(t,e){for(var n in e||(e={}))tn.call(e,n)&&nn(t,n,e[n]);if(Ye)for(var i=0,r=Ye(e);i<r.length;i++){n=r[i];en.call(e,n)&&nn(t,n,e[n])}return t},on=function(t,e){return Ge(t,Qe(e))},sn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Be:Be.apply(null,arguments)};var an=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ve(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ze([void 0],t.concat(this))))},e}(Array),cn=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ve(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ze([void 0],t.concat(this))))},e}(Array);function un(t){return Tt(t)?Me(t,(function(){})):t}function ln(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new an;n&&(!function(t){return"boolean"==typeof t}(n)?i.push(qe.withExtraArgument(n.extraArgument)):i.push(qe));return i}(t)}}function fn(t){var e,n=ln(),i=t||{},r=i.reducer,o=void 0===r?void 0:r,s=i.middleware,a=void 0===s?n():s,c=i.devTools,u=void 0===c||c,l=i.preloadedState,f=void 0===l?void 0:l,h=i.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=De(o)}var v=a;"function"==typeof v&&(v=v(n));var p=We.apply(void 0,v),b=Be;u&&(b=sn(rn({trace:!1},"object"==typeof u&&u)));var x=new cn(p),m=x;return Array.isArray(d)?m=Ze([p],d):"function"==typeof d&&(m=d(x)),Ie(e,f,b.apply(void 0,m))}function hn(t,e){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var r=e.apply(void 0,n);if(!r)throw new Error("prepareAction did not return an object");return rn(rn({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function dn(t){var e,n={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[n,i,e]}function vn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,i="function"==typeof t.initialState?t.initialState:un(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},c={};function u(){var e="function"==typeof t.extraReducers?dn(t.extraReducers):[t.extraReducers],n=e[0],r=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],u=void 0===c?void 0:c,l=rn(rn({},r),a);return function(t,e,n,i){void 0===n&&(n=[]);var r,o="function"==typeof e?dn(e):[e,n,i],s=o[0],a=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return un(t())};else{var u=un(t);r=function(){return u}}function l(t,e){void 0===t&&(t=r());var n=Ze([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var i;if(Pt(t))return void 0===(i=n(t,e))?t:i;if(Tt(t))return Me(t,(function(t){return n(t,e)}));if(void 0===(i=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return l.getInitialState=r,l}(i,(function(t){for(var e in l)t.addCase(e,l[e]);for(var n=0,i=s;n<i.length;n++){var r=i[n];t.addMatcher(r.matcher,r.reducer)}u&&t.addDefaultCase(u)}))}return o.forEach((function(t){var n,i,o=r[t],u=e+"/"+t;"reducer"in o?(n=o.reducer,i=o.prepare):n=o,s[t]=n,a[u]=n,c[t]=i?hn(u,i):hn(u)})),{name:e,reducer:function(t,e){return n||(n=u()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=u()),n.getInitialState()}}}var pn=["name","message","stack","code"],bn=function(t,e){this.payload=t,this.meta=e},xn=function(t,e){this.payload=t,this.meta=e},mn=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,i=pn;n<i.length;n++){var r=i[n];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function yn(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,n){var i=hn(t+"/fulfilled",(function(t,e,n,i){return{payload:t,meta:on(rn({},i||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),r=hn(t+"/pending",(function(t,e,n){return{payload:void 0,meta:on(rn({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=hn(t+"/rejected",(function(t,e,i,r,o){return{payload:r,error:(n&&n.serializeError||mn)(t||"Rejected"),meta:on(rn({},o||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,c,u){var l,f=(null==n?void 0:n.idGenerator)?n.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function d(t){l=t,h.abort()}var v=function(){return s=this,v=null,p=function(){var s,v,p,b,x,m;return Je(this,(function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),b=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,t,{getState:c,extra:u}),null===(w=b)||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,b];case 1:b=y.sent(),y.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:l||"Aborted"})}))})),a(r(f,t,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:f,arg:t},{getState:c,extra:u}))),[4,Promise.race([x,Promise.resolve(e(t,{dispatch:a,getState:c,extra:u,requestId:f,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new bn(t,e)},fulfillWithValue:function(t,e){return new xn(t,e)}})).then((function(e){if(e instanceof bn)throw e;return e instanceof xn?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return p=y.sent(),[3,5];case 4:return m=y.sent(),p=m instanceof bn?o(null,f,t,m.payload,m.meta):o(m,f,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(p)&&p.meta.condition||a(p),[2,p]}var w}))},new Promise((function(t,e){var n=function(t){try{r(p.next(t))}catch(t){e(t)}},i=function(t){try{r(p.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(n,i)};r((p=p.apply(s,v)).next())}));var s,v,p}();return Object.assign(v,{abort:d,requestId:f,arg:t,unwrap:function(){return v.then(yn)}})}}),{pending:r,rejected:o,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var wn="listenerMiddleware";hn(wn+"/add"),hn(wn+"/removeAll"),hn(wn+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var n=r[t];return n?n.enumerable=e:r[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[we];return je.get(e,t)},set:function(e){var n=this[we];je.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][we];if(!r.P)switch(r.i){case 5:i(r)&&ae(r);break;case 4:n(r)&&ae(r)}}}function n(t){for(var e=t.t,n=t.k,i=Oe(n),r=i.length-1;r>=0;r--){var o=i[r];if(o!==we){var s=e[o];if(void 0===s&&!Ft(e,o))return!0;var a=n[o],c=a&&a[we];if(c?c.t!==s:!Dt(a,s))return!0}}var u=!!e[we];return i.length!==Oe(e).length+(u?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Ee[t]||(Ee[t]=e)}("ES5",{J:function(e,n){var i=Array.isArray(e),r=function(e,n){if(e){for(var i=Array(n.length),r=0;r<n.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var o=Se(n);delete o[we];for(var s=Oe(o),a=0;a<s.length;a++){var c=s[a];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(i,e),o={i:i?5:4,A:n?n.A:Zt(),P:!1,I:!1,R:{},l:n,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,we,{value:o,writable:!0}),r},S:function(t,n,r){r?Pt(n)&&n[we].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[we];if(n){var r=n.t,o=n.k,s=n.R,a=n.i;if(4===a)_t(o,(function(e){e!==we&&(void 0!==r[e]||Ft(r,e)?s[e]||t(o[e]):(s[e]=!0,ae(n)))})),_t(r,(function(t){void 0!==o[t]||Ft(o,t)||(s[t]=!1,ae(n))}));else if(5===a){if(i(n)&&(ae(n),s.length=!0),o.length<r.length)for(var c=o.length;c<r.length;c++)s[c]=!1;else for(var u=r.length;u<o.length;u++)s[u]=!0;for(var l=Math.min(o.length,r.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class gn{static get(t){var e;const n="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[n];if(jt(r))return r;if(null==i)return;const o=vn({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=fn({reducer:(t,e)=>{var n;switch(e.type){case"CLEAR_FT_REDUX_STORE":return o.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(n=e.overwrites)&&void 0!==n?n:{}};default:return o.reducer(t,e)}}});return window.ftReduxStores[i.name]=new gn(o,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:{[i]:t}})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const On=t=>{const e=null!=t?t:{};return(t,n)=>{var i;const r={hasChanged:(t,e)=>!u(t,e),attribute:!1,...e};s(r)(t,n);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(n,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[n],store:e.store})}};var Sn,En;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(En=null===(Sn=window.safari)||void 0===Sn?void 0:Sn.pushNotification)||void 0===En||En.toString());const jn={colorError:pt.external(bt.colorError,"Design system"),fontFamily:pt.external(bt.contentFont,"Design system")},Cn=m`
92
+ `;class Et{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var n,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(n=this.labels[t])&&void 0!==n?n:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,n)=>this.formatValue(t,n))))),r}resolvePluralKey(t,e){for(let n of e)if("number"==typeof n){const e=`${String(t)}[\\=${n}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const n=n=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(n):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(n):t.toLocaleString(n);try{return n(document.documentElement.lang)}catch(t){return n()}}}function jt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ct,Nt,Rt;const Mt=Symbol("internalReduxEventsUnsubscribers"),At=Symbol("internalStoresUnsubscribers"),kt=Symbol("internalStores");class $t extends St{constructor(){super(...arguments),this[Ct]=new Map,this[Nt]=new Map,this[Rt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[kt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[kt].get(t)}addStore(t,e){var n;e=null!==(n=null!=e?e:jt(t)?t.name:void 0)&&void 0!==n?n:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[kt].delete(e)}setupStore(t,e){this[kt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[kt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const n=this.constructor.getPropertyOptions(e);if(!(null==n?void 0:n.attribute)||!this.hasAttribute("string"==typeof(null==n?void 0:n.attribute)?n.attribute:e)){const n=this.getStore(t.store);n&&(t.store?this[At].has(t.store):this[At].size>0)&&(this[e]=t.selector(n.getState(),this))}}))}subscribeToStore(t,e){var n;this[At].set(t,e.subscribe((()=>this.updateFromStores()))),jt(e)&&e.eventBus&&(null===(n=this.reduxEventListeners)||void 0===n||n.forEach(((t,n)=>{if("function"==typeof this[n]&&(!t.store||e.name===t.store)){const i=t=>this[n](t);e.eventBus.addEventListener(t.eventName,i),this[Mt].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[At].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Mt].forEach((t=>t())),this[Mt]=[]}unsubscribeFromStore(t){this[At].has(t)&&this[At].get(t)(),this[At].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Ut(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Pt(t){return!!t&&!!t[we]}function Tt(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ge}(t)||Array.isArray(t)||!!t[ye]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ye])||Bt(t)||Wt(t))}function _t(t,e,n){void 0===n&&(n=!1),0===Lt(t)?(n?Object.keys:Oe)(t).forEach((function(i){n&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(n,i){return e(i,n,t)}))}function Lt(t){var e=t[we];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bt(t)?2:Wt(t)?3:0}function Ft(t,e){return 2===Lt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function It(t,e,n){var i=Lt(t);2===i?t.set(e,n):3===i?t.add(n):t[e]=n}function Dt(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Bt(t){return pe&&t instanceof Map}function Wt(t){return be&&t instanceof Set}function Kt(t){return t.o||t.t}function zt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Se(t);delete e[we];for(var n=Oe(e),i=0;i<n.length;i++){var r=n[i],o=e[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function Ht(t,e){return void 0===e&&(e=!1),Vt(t)||Pt(t)||!Tt(t)||(Lt(t)>1&&(t.set=t.add=t.clear=t.delete=qt),Object.freeze(t),e&&_t(t,(function(t,e){return Ht(e,!0)}),!0)),t}function qt(){Ut(2)}function Vt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Jt(t){var e=Ee[t];return e||Ut(18,t),e}function Zt(){return de}function Xt(t,e){e&&(Jt("Patches"),t.u=[],t.s=[],t.v=e)}function Gt(t){Qt(t),t.p.forEach(te),t.p=null}function Qt(t){t===de&&(de=t.l)}function Yt(t){return de={p:[],l:de,h:t,m:!0,_:0}}function te(t){var e=t[we];0===e.i||1===e.i?e.j():e.g=!0}function ee(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||Jt("ES5").S(e,t,i),i?(n[we].P&&(Gt(e),Ut(4)),Tt(t)&&(t=ne(e,t),e.l||re(e,t)),e.u&&Jt("Patches").M(n[we].t,t,e.u,e.s)):t=ne(e,n,[]),Gt(e),e.u&&e.v(e.u,e.s),t!==me?t:void 0}function ne(t,e,n){if(Vt(e))return e;var i=e[we];if(!i)return _t(e,(function(r,o){return ie(t,i,e,r,o,n)}),!0),e;if(i.A!==t)return e;if(!i.P)return re(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=zt(i.k):i.o,o=r,s=!1;3===i.i&&(o=new Set(r),r.clear(),s=!0),_t(o,(function(e,o){return ie(t,i,r,e,o,n,s)})),re(t,r,!1),n&&t.u&&Jt("Patches").N(i,n,t.u,t.s)}return i.o}function ie(t,e,n,i,r,o,s){if(Pt(r)){var a=ne(t,r,o&&e&&3!==e.i&&!Ft(e.R,i)?o.concat(i):void 0);if(It(n,i,a),!Pt(a))return;t.m=!1}else s&&n.add(r);if(Tt(r)&&!Vt(r)){if(!t.h.D&&t._<1)return;ne(t,r),e&&e.A.l||re(t,r)}}function re(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&Ht(e,n)}function oe(t,e){var n=t[we];return(n?Kt(n):t)[e]}function se(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var i=Object.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function ae(t){t.P||(t.P=!0,t.l&&ae(t.l))}function ce(t){t.o||(t.o=zt(t.t))}function ue(t,e,n){var i=Bt(e)?Jt("MapSet").F(e,n):Wt(e)?Jt("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),i={i:n?1:0,A:e?e.A:Zt(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,o=je;n&&(r=[i],o=Ce);var s=Proxy.revocable(r,o),a=s.revoke,c=s.proxy;return i.k=c,i.j=a,c}(e,n):Jt("ES5").J(e,n);return(n?n.A:Zt()).p.push(i),i}function le(t){return Pt(t)||Ut(22,t),function t(e){if(!Tt(e))return e;var n,i=e[we],r=Lt(e);if(i){if(!i.P&&(i.i<4||!Jt("ES5").K(i)))return i.t;i.I=!0,n=fe(e,r),i.I=!1}else n=fe(e,r);return _t(n,(function(e,r){i&&function(t,e){return 2===Lt(t)?t.get(e):t[e]}(i.t,e)===r||It(n,e,t(r))})),3===r?new Set(n):n}(t)}function fe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return zt(t)}Ct=At,Nt=kt,Rt=Mt;var he,de,ve="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),pe="undefined"!=typeof Map,be="undefined"!=typeof Set,xe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,me=ve?Symbol.for("immer-nothing"):((he={})["immer-nothing"]=!0,he),ye=ve?Symbol.for("immer-draftable"):"__$immer_draftable",we=ve?Symbol.for("immer-state"):"__$immer_state",ge=""+Object.prototype.constructor,Oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Se=Object.getOwnPropertyDescriptors||function(t){var e={};return Oe(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Ee={},je={get:function(t,e){if(e===we)return t;var n=Kt(t);if(!Ft(n,e))return function(t,e,n){var i,r=se(e,n);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,n,e);var i=n[e];return t.I||!Tt(i)?i:i===oe(t.t,e)?(ce(t),t.o[e]=ue(t.A.h,i,t)):i},has:function(t,e){return e in Kt(t)},ownKeys:function(t){return Reflect.ownKeys(Kt(t))},set:function(t,e,n){var i=se(Kt(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,n),!0;if(!t.P){var r=oe(Kt(t),e),o=null==r?void 0:r[we];if(o&&o.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(Dt(n,r)&&(void 0!==n||Ft(t.t,e)))return!0;ce(t),ae(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==oe(t.t,e)||e in t.t?(t.R[e]=!1,ce(t),ae(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=Kt(t),i=Reflect.getOwnPropertyDescriptor(n,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:n[e]}:i},defineProperty:function(){Ut(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ut(12)}},Ce={};_t(je,(function(t,e){Ce[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ce.deleteProperty=function(t,e){return Ce.set.call(this,t,e,void 0)},Ce.set=function(t,e,n){return je.set.call(this,t[0],e,n,t[0])};var Ne=function(){function t(t){var e=this;this.O=xe,this.D=!0,this.produce=function(t,n,i){if("function"==typeof t&&"function"!=typeof n){var r=n;n=t;var o=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return o.produce(t,(function(t){var i;return(i=n).call.apply(i,[e,t].concat(s))}))}}var s;if("function"!=typeof n&&Ut(6),void 0!==i&&"function"!=typeof i&&Ut(7),Tt(t)){var a=Yt(e),c=ue(e,t,void 0),u=!0;try{s=n(c),u=!1}finally{u?Gt(a):Qt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Xt(a,i),ee(t,a)}),(function(t){throw Gt(a),t})):(Xt(a,i),ee(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=n(t))&&(s=t),s===me&&(s=void 0),e.D&&Ht(s,!0),i){var l=[],f=[];Jt("Patches").M(t,s,l,f),i(l,f)}return s}Ut(21,t)},this.produceWithPatches=function(t,n){if("function"==typeof t)return function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return e.produceWithPatches(n,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,o=e.produce(t,n,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(t){return[t,i,r]})):[o,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Tt(t)||Ut(8),Pt(t)&&(t=le(t));var e=Yt(this),n=ue(this,t,void 0);return n[we].C=!0,Qt(e),n},e.finishDraft=function(t,e){var n=(t&&t[we]).A;return Xt(n,e),ee(void 0,n)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!xe&&Ut(20),this.O=t},e.applyPatches=function(t,e){var n;for(n=e.length-1;n>=0;n--){var i=e[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}n>-1&&(e=e.slice(n+1));var r=Jt("Patches").$;return Pt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Re=new Ne,Me=Re.produce;function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function ke(t){var e=function(t,e){if("object"!==Ae(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Ae(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ae(e)?e:String(e)}function $e(t,e,n){return(e=ke(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach((function(e){$e(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Te(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Re.produceWithPatches.bind(Re),Re.setAutoFreeze.bind(Re),Re.setUseProxies.bind(Re),Re.applyPatches.bind(Re),Re.createDraft.bind(Re),Re.finishDraft.bind(Re);var _e="function"==typeof Symbol&&Symbol.observable||"@@observable",Le=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fe={INIT:"@@redux/INIT"+Le(),REPLACE:"@@redux/REPLACE"+Le(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Le()}};function Ie(t,e,n){var i;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Te(0));if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Te(1));return n(Ie)(t,e)}if("function"!=typeof t)throw new Error(Te(2));var r=t,o=e,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function l(){if(c)throw new Error(Te(3));return o}function f(t){if("function"!=typeof t)throw new Error(Te(4));if(c)throw new Error(Te(5));var e=!0;return u(),a.push(t),function(){if(e){if(c)throw new Error(Te(6));e=!1,u();var n=a.indexOf(t);a.splice(n,1),s=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(Te(7));if(void 0===t.type)throw new Error(Te(8));if(c)throw new Error(Te(9));try{c=!0,o=r(o,t)}finally{c=!1}for(var e=s=a,n=0;n<e.length;n++){(0,e[n])()}return t}return h({type:Fe.INIT}),(i={dispatch:h,subscribe:f,getState:l,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Te(10));r=t,h({type:Fe.REPLACE})}})[_e]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Te(11));function n(){t.next&&t.next(l())}return n(),{unsubscribe:e(n)}}})[_e]=function(){return this},t},i}function De(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(n[r]=t[r])}var o,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:Fe.INIT}))throw new Error(Te(12));if(void 0===n(void 0,{type:Fe.PROBE_UNKNOWN_ACTION()}))throw new Error(Te(13))}))}(n)}catch(t){o=t}return function(t,e){if(void 0===t&&(t={}),o)throw o;for(var i=!1,r={},a=0;a<s.length;a++){var c=s[a],u=n[c],l=t[c],f=u(l,e);if(void 0===f)throw e&&e.type,new Error(Te(14));r[c]=f,i=i||f!==l}return(i=i||s.length!==Object.keys(t).length)?r:t}}function Be(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function We(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),i=function(){throw new Error(Te(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=e.map((function(t){return t(r)}));return i=Be.apply(void 0,o)(n.dispatch),Pe(Pe({},n),{},{dispatch:i})}}}function Ke(t){return function(e){var n=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(n,i,t):e(r)}}}}var ze=Ke();ze.withExtraArgument=Ke;var He,qe=ze,Ve=(He=function(t,e){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},He(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Je=function(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},Ze=function(t,e){for(var n=0,i=e.length,r=t.length;n<i;n++,r++)t[r]=e[n];return t},Xe=Object.defineProperty,Ge=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,nn=function(t,e,n){return e in t?Xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},rn=function(t,e){for(var n in e||(e={}))tn.call(e,n)&&nn(t,n,e[n]);if(Ye)for(var i=0,r=Ye(e);i<r.length;i++){n=r[i];en.call(e,n)&&nn(t,n,e[n])}return t},on=function(t,e){return Ge(t,Qe(e))},sn="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Be:Be.apply(null,arguments)};var an=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ve(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ze([void 0],t.concat(this))))},e}(Array),cn=function(t){function e(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return Ve(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Ze([void 0],t[0].concat(this)))):new(e.bind.apply(e,Ze([void 0],t.concat(this))))},e}(Array);function un(t){return Tt(t)?Me(t,(function(){})):t}function ln(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,n=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new an;n&&(!function(t){return"boolean"==typeof t}(n)?i.push(qe.withExtraArgument(n.extraArgument)):i.push(qe));return i}(t)}}function fn(t){var e,n=ln(),i=t||{},r=i.reducer,o=void 0===r?void 0:r,s=i.middleware,a=void 0===s?n():s,c=i.devTools,u=void 0===c||c,l=i.preloadedState,f=void 0===l?void 0:l,h=i.enhancers,d=void 0===h?void 0:h;if("function"==typeof o)e=o;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return e===n}(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=De(o)}var v=a;"function"==typeof v&&(v=v(n));var p=We.apply(void 0,v),b=Be;u&&(b=sn(rn({trace:!1},"object"==typeof u&&u)));var x=new cn(p),m=x;return Array.isArray(d)?m=Ze([p],d):"function"==typeof d&&(m=d(x)),Ie(e,f,b.apply(void 0,m))}function hn(t,e){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var r=e.apply(void 0,n);if(!r)throw new Error("prepareAction did not return an object");return rn(rn({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:n[0]}}return n.toString=function(){return""+t},n.type=t,n.match=function(e){return e.type===t},n}function dn(t){var e,n={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[n,i,e]}function vn(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var n,i="function"==typeof t.initialState?t.initialState:un(t.initialState),r=t.reducers||{},o=Object.keys(r),s={},a={},c={};function u(){var e="function"==typeof t.extraReducers?dn(t.extraReducers):[t.extraReducers],n=e[0],r=void 0===n?{}:n,o=e[1],s=void 0===o?[]:o,c=e[2],u=void 0===c?void 0:c,l=rn(rn({},r),a);return function(t,e,n,i){void 0===n&&(n=[]);var r,o="function"==typeof e?dn(e):[e,n,i],s=o[0],a=o[1],c=o[2];if(function(t){return"function"==typeof t}(t))r=function(){return un(t())};else{var u=un(t);r=function(){return u}}function l(t,e){void 0===t&&(t=r());var n=Ze([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===n.filter((function(t){return!!t})).length&&(n=[c]),n.reduce((function(t,n){if(n){var i;if(Pt(t))return void 0===(i=n(t,e))?t:i;if(Tt(t))return Me(t,(function(t){return n(t,e)}));if(void 0===(i=n(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return l.getInitialState=r,l}(i,(function(t){for(var e in l)t.addCase(e,l[e]);for(var n=0,i=s;n<i.length;n++){var r=i[n];t.addMatcher(r.matcher,r.reducer)}u&&t.addDefaultCase(u)}))}return o.forEach((function(t){var n,i,o=r[t],u=e+"/"+t;"reducer"in o?(n=o.reducer,i=o.prepare):n=o,s[t]=n,a[u]=n,c[t]=i?hn(u,i):hn(u)})),{name:e,reducer:function(t,e){return n||(n=u()),n(t,e)},actions:c,caseReducers:s,getInitialState:function(){return n||(n=u()),n.getInitialState()}}}var pn=["name","message","stack","code"],bn=function(t,e){this.payload=t,this.meta=e},xn=function(t,e){this.payload=t,this.meta=e},mn=function(t){if("object"==typeof t&&null!==t){for(var e={},n=0,i=pn;n<i.length;n++){var r=i[n];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function yn(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,n){var i=hn(t+"/fulfilled",(function(t,e,n,i){return{payload:t,meta:on(rn({},i||{}),{arg:n,requestId:e,requestStatus:"fulfilled"})}})),r=hn(t+"/pending",(function(t,e,n){return{payload:void 0,meta:on(rn({},n||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),o=hn(t+"/rejected",(function(t,e,i,r,o){return{payload:r,error:(n&&n.serializeError||mn)(t||"Rejected"),meta:on(rn({},o||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(a,c,u){var l,f=(null==n?void 0:n.idGenerator)?n.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",n=t;n--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new s;function d(t){l=t,h.abort()}var v=function(){return s=this,v=null,p=function(){var s,v,p,b,x,m;return Je(this,(function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),b=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,t,{getState:c,extra:u}),null===(w=b)||"object"!=typeof w||"function"!=typeof w.then?[3,2]:[4,b];case 1:b=y.sent(),y.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return x=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:l||"Aborted"})}))})),a(r(f,t,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:f,arg:t},{getState:c,extra:u}))),[4,Promise.race([x,Promise.resolve(e(t,{dispatch:a,getState:c,extra:u,requestId:f,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new bn(t,e)},fulfillWithValue:function(t,e){return new xn(t,e)}})).then((function(e){if(e instanceof bn)throw e;return e instanceof xn?i(e.payload,f,t,e.meta):i(e,f,t)}))])];case 3:return p=y.sent(),[3,5];case 4:return m=y.sent(),p=m instanceof bn?o(null,f,t,m.payload,m.meta):o(m,f,t),[3,5];case 5:return n&&!n.dispatchConditionRejection&&o.match(p)&&p.meta.condition||a(p),[2,p]}var w}))},new Promise((function(t,e){var n=function(t){try{r(p.next(t))}catch(t){e(t)}},i=function(t){try{r(p.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(n,i)};r((p=p.apply(s,v)).next())}));var s,v,p}();return Object.assign(v,{abort:d,requestId:f,arg:t,unwrap:function(){return v.then(yn)}})}}),{pending:r,rejected:o,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var wn="listenerMiddleware";hn(wn+"/add"),hn(wn+"/removeAll"),hn(wn+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var n=r[t];return n?n.enumerable=e:r[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[we];return je.get(e,t)},set:function(e){var n=this[we];je.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][we];if(!r.P)switch(r.i){case 5:i(r)&&ae(r);break;case 4:n(r)&&ae(r)}}}function n(t){for(var e=t.t,n=t.k,i=Oe(n),r=i.length-1;r>=0;r--){var o=i[r];if(o!==we){var s=e[o];if(void 0===s&&!Ft(e,o))return!0;var a=n[o],c=a&&a[we];if(c?c.t!==s:!Dt(a,s))return!0}}var u=!!e[we];return i.length!==Oe(e).length+(u?0:1)}function i(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Ee[t]||(Ee[t]=e)}("ES5",{J:function(e,n){var i=Array.isArray(e),r=function(e,n){if(e){for(var i=Array(n.length),r=0;r<n.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var o=Se(n);delete o[we];for(var s=Oe(o),a=0;a<s.length;a++){var c=s[a];o[c]=t(c,e||!!o[c].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(i,e),o={i:i?5:4,A:n?n.A:Zt(),P:!1,I:!1,R:{},l:n,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,we,{value:o,writable:!0}),r},S:function(t,n,r){r?Pt(n)&&n[we].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var n=e[we];if(n){var r=n.t,o=n.k,s=n.R,a=n.i;if(4===a)_t(o,(function(e){e!==we&&(void 0!==r[e]||Ft(r,e)?s[e]||t(o[e]):(s[e]=!0,ae(n)))})),_t(r,(function(t){void 0!==o[t]||Ft(o,t)||(s[t]=!1,ae(n))}));else if(5===a){if(i(n)&&(ae(n),s.length=!0),o.length<r.length)for(var c=o.length;c<r.length;c++)s[c]=!1;else for(var u=r.length;u<o.length;u++)s[u]=!0;for(var l=Math.min(o.length,r.length),f=0;f<l;f++)o.hasOwnProperty(f)||(s[f]=!0),void 0===s[f]&&t(o[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?n(t):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class gn{static get(t){var e;const n="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[n];if(jt(r))return r;if(null==i)return;const o=vn({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),s=fn({reducer:(t,e)=>{var n;switch(e.type){case"CLEAR_FT_REDUX_STORE":return o.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(n=e.overwrites)&&void 0!==n?n:{}};default:return o.reducer(t,e)}}});return window.ftReduxStores[i.name]=new gn(o,s)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,n)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const On=t=>{const e=null!=t?t:{};return(t,n)=>{var i;const r={hasChanged:(t,e)=>!u(t,e),attribute:!1,...e};s(r)(t,n);const o=t;o.reduxProperties=o.reduxProperties||new Map,o.reduxProperties.set(n,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[n],store:e.store})}};var Sn,En;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(En=null===(Sn=window.safari)||void 0===Sn?void 0:Sn.pushNotification)||void 0===En||En.toString());const jn={colorError:pt.external(bt.colorError,"Design system"),fontFamily:pt.external(bt.contentFont,"Design system")},Cn=m`
93
93
  .topic {
94
94
  font-family: ${jn.fontFamily};
95
95
  overflow-x: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-topic-content",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "Content of a topic in integrated reader.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,14 +19,14 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.0.50",
23
- "@fluid-topics/ft-i18n": "1.0.50",
24
- "@fluid-topics/ft-reader-context": "1.0.50",
25
- "@fluid-topics/ft-reader-topic-context": "1.0.50",
26
- "@fluid-topics/ft-tooltip": "1.0.50",
27
- "@fluid-topics/ft-wc-utils": "1.0.50",
28
- "@fluid-topics/public-api": "1.0.39",
22
+ "@fluid-topics/ft-chip": "1.0.52",
23
+ "@fluid-topics/ft-i18n": "1.0.52",
24
+ "@fluid-topics/ft-reader-context": "1.0.52",
25
+ "@fluid-topics/ft-reader-topic-context": "1.0.52",
26
+ "@fluid-topics/ft-tooltip": "1.0.52",
27
+ "@fluid-topics/ft-wc-utils": "1.0.52",
28
+ "@fluid-topics/public-api": "1.0.40",
29
29
  "lit": "2.7.2"
30
30
  },
31
- "gitHead": "a5089c2cb78f1b703cfcaa915b24938d58abd420"
31
+ "gitHead": "e5ca580eaeb1a17693fa8f2cf59fbdca412bf7d0"
32
32
  }