@fluid-topics/ft-analytics-top-documents 1.1.51 → 1.1.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.
@@ -175,7 +175,7 @@ function(t){return(e,o)=>{const{slot:r,selector:n}=t??{},i="slot"+(r?`[name=${r}
175
175
  display: inline-block;
176
176
  width: 0;
177
177
  }
178
- `;var Tn=Object.freeze({__proto__:null,noTextSelect:jn,safariEllipsisFix:Pn,wordWrap:Zn}),Kn=Object.freeze({__proto__:null});var $n=Object.freeze({__proto__:null,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}});class Gn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Vn(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qn,Jn,Xn;const Qn=Symbol("internalReduxEventsUnsubscribers"),ti=Symbol("internalStoresUnsubscribers"),ei=Symbol("internalStores");class oi extends Ln{constructor(){super(...arguments),this[qn]=new Map,this[Jn]=new Map,this[Xn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ei].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ei].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ei].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Vn(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ei].delete(e)}setupStore(t,e){this[ei].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ei].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ti].has(t.store):this[ti].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ti].set(t,e.subscribe((()=>this.updateFromStores()))),Vn(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Qn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ti].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qn].forEach((t=>t())),this[Qn]=[]}unsubscribeFromStore(t){this[ti].has(t)&&this[ti].get(t)(),this[ti].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ri(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ni(t){return!!t&&!!t[Pi]}function ii(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ti}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||fi(t)||di(t))}function ai(t,e,o){void 0===o&&(o=!1),0===si(t)?(o?Object.keys:Ki)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function si(t){var e=t[Pi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fi(t)?2:di(t)?3:0}function ci(t,e){return 2===si(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function li(t,e,o){var r=si(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ui(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fi(t){return Yi&&t instanceof Map}function di(t){return zi&&t instanceof Set}function hi(t){return t.o||t.t}function pi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$i(t);delete e[Pi];for(var o=Ki(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function yi(t,e){return void 0===e&&(e=!1),mi(t)||ni(t)||!ii(t)||(si(t)>1&&(t.set=t.add=t.clear=t.delete=gi),Object.freeze(t),e&&ai(t,(function(t,e){return yi(e,!0)}),!0)),t}function gi(){ri(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bi(t){var e=Gi[t];return e||ri(18,t),e}function vi(){return Ai}function Si(t,e){e&&(bi("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){wi(t),t.p.forEach(Ni),t.p=null}function wi(t){t===Ai&&(Ai=t.l)}function xi(t){return Ai={p:[],l:Ai,h:t,m:!0,_:0}}function Ni(t){var e=t[Pi];0===e.i||1===e.i?e.j():e.g=!0}function Ci(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||bi("ES5").S(e,t,r),r?(o[Pi].P&&(Oi(e),ri(4)),ii(t)&&(t=Ei(e,t),e.l||Ii(e,t)),e.u&&bi("Patches").M(o[Pi].t,t,e.u,e.s)):t=Ei(e,o,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==ji?t:void 0}function Ei(t,e,o){if(mi(e))return e;var r=e[Pi];if(!r)return ai(e,(function(n,i){return Ri(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Ii(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=pi(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),ai(i,(function(e,i){return Ri(t,r,n,e,i,o,a)})),Ii(t,n,!1),o&&t.u&&bi("Patches").N(r,o,t.u,t.s)}return r.o}function Ri(t,e,o,r,n,i,a){if(ni(n)){var s=Ei(t,n,i&&e&&3!==e.i&&!ci(e.R,r)?i.concat(r):void 0);if(li(o,r,s),!ni(s))return;t.m=!1}else a&&o.add(n);if(ii(n)&&!mi(n)){if(!t.h.D&&t._<1)return;Ei(t,n),e&&e.A.l||Ii(t,n)}}function Ii(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yi(e,o)}function Mi(t,e){var o=t[Pi];return(o?hi(o):t)[e]}function Wi(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function ki(t){t.P||(t.P=!0,t.l&&ki(t.l))}function Di(t){t.o||(t.o=pi(t.t))}function Li(t,e,o){var r=fi(e)?bi("MapSet").F(e,o):di(e)?bi("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:vi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Vi;o&&(n=[r],i=qi);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):bi("ES5").J(e,o);return(o?o.A:vi()).p.push(r),r}function Ui(t){return ni(t)||ri(22,t),function t(e){if(!ii(e))return e;var o,r=e[Pi],n=si(e);if(r){if(!r.P&&(r.i<4||!bi("ES5").K(r)))return r.t;r.I=!0,o=_i(e,n),r.I=!1}else o=_i(e,n);return ai(o,(function(e,n){r&&function(t,e){return 2===si(t)?t.get(e):t[e]}(r.t,e)===n||li(o,e,t(n))})),3===n?new Set(o):o}(t)}function _i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pi(t)}qn=ti,Jn=ei,Xn=Qn,oi.reduxProperties=new Map,oi.reduxReactiveProperties=new Set,oi.reduxEventListeners=new Map;var Fi,Ai,Hi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Yi="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ji=Hi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Hi?Symbol.for("immer-draftable"):"__$immer_draftable",Pi=Hi?Symbol.for("immer-state"):"__$immer_state",Ti=""+Object.prototype.constructor,Ki="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$i=Object.getOwnPropertyDescriptors||function(t){var e={};return Ki(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Gi={},Vi={get:function(t,e){if(e===Pi)return t;var o=hi(t);if(!ci(o,e))return function(t,e,o){var r,n=Wi(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!ii(r)?r:r===Mi(t.t,e)?(Di(t),t.o[e]=Li(t.A.h,r,t)):r},has:function(t,e){return e in hi(t)},ownKeys:function(t){return Reflect.ownKeys(hi(t))},set:function(t,e,o){var r=Wi(hi(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Mi(hi(t),e),i=null==n?void 0:n[Pi];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ui(o,n)&&(void 0!==o||ci(t.t,e)))return!0;Di(t),ki(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Mi(t.t,e)||e in t.t?(t.R[e]=!1,Di(t),ki(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=hi(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ri(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ri(12)}},qi={};ai(Vi,(function(t,e){qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)},qi.set=function(t,e,o){return Vi.set.call(this,t[0],e,o,t[0])};var Ji=function(){function t(t){var e=this;this.O=Bi,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ri(6),void 0!==r&&"function"!=typeof r&&ri(7),ii(t)){var s=xi(e),c=Li(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?Oi(s):wi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Si(s,r),Ci(t,s)}),(function(t){throw Oi(s),t})):(Si(s,r),Ci(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ji&&(a=void 0),e.D&&yi(a,!0),r){var u=[],f=[];bi("Patches").M(t,a,u,f),r(u,f)}return a}ri(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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){ii(t)||ri(8),ni(t)&&(t=Ui(t));var e=xi(this),o=Li(this,t,void 0);return o[Pi].C=!0,wi(e),o},e.finishDraft=function(t,e){var o=(t&&t[Pi]).A;return Si(o,e),Ci(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ri(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=bi("Patches").$;return ni(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Xi=new Ji,Qi=Xi.produce;function ta(t){return ta="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},ta(t)}function ea(t){var e=function(t,e){if("object"!==ta(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ta(e)?e:String(e)}function oa(t,e,o){return(e=ea(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ra(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function na(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ra(Object(o),!0).forEach((function(e){oa(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ra(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ia(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. "}Xi.produceWithPatches.bind(Xi),Xi.setAutoFreeze.bind(Xi),Xi.setUseProxies.bind(Xi),Xi.applyPatches.bind(Xi),Xi.createDraft.bind(Xi),Xi.finishDraft.bind(Xi);var aa="function"==typeof Symbol&&Symbol.observable||"@@observable",sa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ca={INIT:"@@redux/INIT"+sa(),REPLACE:"@@redux/REPLACE"+sa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sa()}};function la(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ia(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ia(1));return o(la)(t,e)}if("function"!=typeof t)throw new Error(ia(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(ia(3));return i}function f(t){if("function"!=typeof t)throw new Error(ia(4));if(c)throw new Error(ia(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(ia(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function d(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(ia(7));if(void 0===t.type)throw new Error(ia(8));if(c)throw new Error(ia(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return d({type:ca.INIT}),(r={dispatch:d,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ia(10));n=t,d({type:ca.REPLACE})}})[aa]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ia(11));function o(){t.next&&t.next(u())}return o(),{unsubscribe:e(o)}}})[aa]=function(){return this},t},r}function ua(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ca.INIT}))throw new Error(ia(12));if(void 0===o(void 0,{type:ca.PROBE_UNKNOWN_ACTION()}))throw new Error(ia(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],u=t[c],f=l(u,e);if(void 0===f)throw e&&e.type,new Error(ia(14));n[c]=f,r=r||f!==u}return(r=r||a.length!==Object.keys(t).length)?n:t}}function fa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 da(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(ia(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=fa.apply(void 0,i)(o.dispatch),na(na({},o),{},{dispatch:r})}}}function ha(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var pa=ha();pa.withExtraArgument=ha;var ya,ga=pa,ma=(ya=function(t,e){return ya=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ya(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 o(){this.constructor=t}ya(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ba=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},va=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},Sa=Object.defineProperty,Oa=Object.defineProperties,wa=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,Ea=function(t,e,o){return e in t?Sa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ra=function(t,e){for(var o in e||(e={}))Na.call(e,o)&&Ea(t,o,e[o]);if(xa)for(var r=0,n=xa(e);r<n.length;r++){o=n[r];Ca.call(e,o)&&Ea(t,o,e[o])}return t},Ia=function(t,e){return Oa(t,wa(e))},Ma="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?fa:fa.apply(null,arguments)};var Wa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array),ka=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array);function Da(t){return ii(t)?Qi(t,(function(){})):t}function La(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Wa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ga.withExtraArgument(o.extraArgument)):r.push(ga));return r}(t)}}function Ua(t){var e,o=La(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,u=r.preloadedState,f=void 0===u?void 0:u,d=r.enhancers,h=void 0===d?void 0:d;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))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=ua(i)}var p=s;"function"==typeof p&&(p=p(o));var y=da.apply(void 0,p),g=fa;l&&(g=Ma(Ra({trace:!1},"object"==typeof l&&l)));var m=new ka(y),b=m;return Array.isArray(h)?b=va([y],h):"function"==typeof h&&(b=h(m)),la(e,f,g.apply(void 0,b))}function _a(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return Ra(Ra({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Fa(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Aa(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Fa(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,u=Ra(Ra({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Fa(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Da(t())};else{var l=Da(t);n=function(){return l}}function u(t,e){void 0===t&&(t=n());var o=va([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(ni(t))return void 0===(r=o(t,e))?t:r;if(ii(t))return Qi(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return u.getInitialState=n,u}(r,(function(t){for(var e in u)t.addCase(e,u[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?_a(l,r):_a(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ha=["name","message","stack","code"],Ya=function(t,e){this.payload=t,this.meta=e},za=function(t,e){this.payload=t,this.meta=e},Ba=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ha;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function ja(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=_a(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ia(Ra({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=_a(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ia(Ra({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=_a(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Ba)(t||"Rejected"),meta:Ia(Ra({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,c,l){var u,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function h(t){u=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,m,b;return ba(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(S=g)||"object"!=typeof S||"function"!=typeof S.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return m=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),s(n(f,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:f,arg:t},{getState:c,extra:l}))),[4,Promise.race([m,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:f,signal:d.signal,abort:h,rejectWithValue:function(t,e){return new Ya(t,e)},fulfillWithValue:function(t,e){return new za(t,e)}})).then((function(e){if(e instanceof Ya)throw e;return e instanceof za?r(e.payload,f,t,e.meta):r(e,f,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return b=v.sent(),y=b instanceof Ya?i(null,f,t,b.payload,b.meta):i(b,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var S}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:h,requestId:f,arg:t,unwrap:function(){return p.then(ja)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Za="listenerMiddleware";_a(Za+"/add"),_a(Za+"/removeAll"),_a(Za+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Pi];return Vi.get(e,t)},set:function(e){var o=this[Pi];Vi.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Pi];if(!n.P)switch(n.i){case 5:r(n)&&ki(n);break;case 4:o(n)&&ki(n)}}}function o(t){for(var e=t.t,o=t.k,r=Ki(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Pi){var a=e[i];if(void 0===a&&!ci(e,i))return!0;var s=o[i],c=s&&s[Pi];if(c?c.t!==a:!ui(s,a))return!0}}var l=!!e[Pi];return r.length!==Ki(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Gi[t]||(Gi[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=$i(o);delete i[Pi];for(var a=Ki(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:vi(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Pi,{value:i,writable:!0}),n},S:function(t,o,n){n?ni(o)&&o[Pi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Pi];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)ai(i,(function(e){e!==Pi&&(void 0!==n[e]||ci(n,e)?a[e]||t(i[e]):(a[e]=!0,ki(o)))})),ai(n,(function(t){void 0!==i[t]||ci(i,t)||(a[t]=!1,ki(o))}));else if(5===s){if(r(o)&&(ki(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var u=Math.min(i.length,n.length),f=0;f<u;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(i[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Pa{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Vn(n))return n;if(null==r)return;const i=Aa({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ua({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?i.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:i.reducer(t,e)});return window.ftReduxStores[r.name]=new Pa(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Gn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ta=Object.freeze({__proto__:null,FtCommandQueue:Gn,FtLitElementRedux:oi,FtReduxStore:Pa,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Vn(e)&&e.clear()},isFtReduxStore:Vn,redux:t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!ao(t,e),attribute:!1,...e};Oe(n)(t,o);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var Ka=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}});const $a=Symbol("elementInternals");var Ga,Va,qa,Ja,Xa=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[$a].form}constructor(...t){super(t),this[$a]=this.attachInternals(),this[$a].role=e}setFormValue(t){this[$a].setFormValue(t)}}}});const Qa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qa=null===(Va=null===(Ga=window.safari)||void 0===Ga?void 0:Ga.pushNotification)||void 0===Va?void 0:Va.toString())&&void 0!==qa?qa:""),ts="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;
178
+ `;var Tn=Object.freeze({__proto__:null,noTextSelect:jn,safariEllipsisFix:Pn,wordWrap:Zn}),Kn=Object.freeze({__proto__:null});var $n=Object.freeze({__proto__:null,ParametrizedLabelResolver:class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let n=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),n}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}});class Gn{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Vn(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qn,Jn,Xn;const Qn=Symbol("internalReduxEventsUnsubscribers"),ti=Symbol("internalStoresUnsubscribers"),ei=Symbol("internalStores");class oi extends Ln{constructor(){super(...arguments),this[qn]=new Map,this[Jn]=new Map,this[Xn]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ei].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ei].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ei].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Vn(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ei].delete(e)}setupStore(t,e){this[ei].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ei].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[ti].has(t.store):this[ti].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[ti].set(t,e.subscribe((()=>this.updateFromStores()))),Vn(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Qn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ti].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qn].forEach((t=>t())),this[Qn]=[]}unsubscribeFromStore(t){this[ti].has(t)&&this[ti].get(t)(),this[ti].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ri(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ni(t){return!!t&&!!t[Pi]}function ii(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Ti}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||fi(t)||di(t))}function ai(t,e,o){void 0===o&&(o=!1),0===si(t)?(o?Object.keys:Ki)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function si(t){var e=t[Pi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:fi(t)?2:di(t)?3:0}function ci(t,e){return 2===si(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function li(t,e,o){var r=si(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ui(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function fi(t){return Yi&&t instanceof Map}function di(t){return zi&&t instanceof Set}function hi(t){return t.o||t.t}function pi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$i(t);delete e[Pi];for(var o=Ki(e),r=0;r<o.length;r++){var n=o[r],i=e[n];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[n]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function yi(t,e){return void 0===e&&(e=!1),mi(t)||ni(t)||!ii(t)||(si(t)>1&&(t.set=t.add=t.clear=t.delete=gi),Object.freeze(t),e&&ai(t,(function(t,e){return yi(e,!0)}),!0)),t}function gi(){ri(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bi(t){var e=Gi[t];return e||ri(18,t),e}function vi(){return Ai}function Si(t,e){e&&(bi("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){wi(t),t.p.forEach(Ni),t.p=null}function wi(t){t===Ai&&(Ai=t.l)}function xi(t){return Ai={p:[],l:Ai,h:t,m:!0,_:0}}function Ni(t){var e=t[Pi];0===e.i||1===e.i?e.j():e.g=!0}function Ci(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||bi("ES5").S(e,t,r),r?(o[Pi].P&&(Oi(e),ri(4)),ii(t)&&(t=Ei(e,t),e.l||Ii(e,t)),e.u&&bi("Patches").M(o[Pi].t,t,e.u,e.s)):t=Ei(e,o,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==ji?t:void 0}function Ei(t,e,o){if(mi(e))return e;var r=e[Pi];if(!r)return ai(e,(function(n,i){return Ri(t,r,e,n,i,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Ii(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var n=4===r.i||5===r.i?r.o=pi(r.k):r.o,i=n,a=!1;3===r.i&&(i=new Set(n),n.clear(),a=!0),ai(i,(function(e,i){return Ri(t,r,n,e,i,o,a)})),Ii(t,n,!1),o&&t.u&&bi("Patches").N(r,o,t.u,t.s)}return r.o}function Ri(t,e,o,r,n,i,a){if(ni(n)){var s=Ei(t,n,i&&e&&3!==e.i&&!ci(e.R,r)?i.concat(r):void 0);if(li(o,r,s),!ni(s))return;t.m=!1}else a&&o.add(n);if(ii(n)&&!mi(n)){if(!t.h.D&&t._<1)return;Ei(t,n),e&&e.A.l||Ii(t,n)}}function Ii(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&yi(e,o)}function Mi(t,e){var o=t[Pi];return(o?hi(o):t)[e]}function Wi(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function ki(t){t.P||(t.P=!0,t.l&&ki(t.l))}function Di(t){t.o||(t.o=pi(t.t))}function Li(t,e,o){var r=fi(e)?bi("MapSet").F(e,o):di(e)?bi("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:vi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},n=r,i=Vi;o&&(n=[r],i=qi);var a=Proxy.revocable(n,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):bi("ES5").J(e,o);return(o?o.A:vi()).p.push(r),r}function Ui(t){return ni(t)||ri(22,t),function t(e){if(!ii(e))return e;var o,r=e[Pi],n=si(e);if(r){if(!r.P&&(r.i<4||!bi("ES5").K(r)))return r.t;r.I=!0,o=_i(e,n),r.I=!1}else o=_i(e,n);return ai(o,(function(e,n){r&&function(t,e){return 2===si(t)?t.get(e):t[e]}(r.t,e)===n||li(o,e,t(n))})),3===n?new Set(o):o}(t)}function _i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return pi(t)}qn=ti,Jn=ei,Xn=Qn,oi.reduxProperties=new Map,oi.reduxReactiveProperties=new Set,oi.reduxEventListeners=new Map;var Fi,Ai,Hi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Yi="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ji=Hi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Hi?Symbol.for("immer-draftable"):"__$immer_draftable",Pi=Hi?Symbol.for("immer-state"):"__$immer_state",Ti=""+Object.prototype.constructor,Ki="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$i=Object.getOwnPropertyDescriptors||function(t){var e={};return Ki(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Gi={},Vi={get:function(t,e){if(e===Pi)return t;var o=hi(t);if(!ci(o,e))return function(t,e,o){var r,n=Wi(e,o);return n?"value"in n?n.value:null===(r=n.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!ii(r)?r:r===Mi(t.t,e)?(Di(t),t.o[e]=Li(t.A.h,r,t)):r},has:function(t,e){return e in hi(t)},ownKeys:function(t){return Reflect.ownKeys(hi(t))},set:function(t,e,o){var r=Wi(hi(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var n=Mi(hi(t),e),i=null==n?void 0:n[Pi];if(i&&i.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ui(o,n)&&(void 0!==o||ci(t.t,e)))return!0;Di(t),ki(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Mi(t.t,e)||e in t.t?(t.R[e]=!1,Di(t),ki(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=hi(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){ri(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ri(12)}},qi={};ai(Vi,(function(t,e){qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)},qi.set=function(t,e,o){return Vi.set.call(this,t[0],e,o,t[0])};var Ji=function(){function t(t){var e=this;this.O=Bi,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var n=o;o=t;var i=e;return function(t){var e=this;void 0===t&&(t=n);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&ri(6),void 0!==r&&"function"!=typeof r&&ri(7),ii(t)){var s=xi(e),c=Li(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?Oi(s):wi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Si(s,r),Ci(t,s)}),(function(t){throw Oi(s),t})):(Si(s,r),Ci(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===ji&&(a=void 0),e.D&&yi(a,!0),r){var u=[],f=[];bi("Patches").M(t,a,u,f),r(u,f)}return a}ri(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(n))}))};var r,n,i=e.produce(t,o,(function(t,e){r=t,n=e}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(t){return[t,r,n]})):[i,r,n]},"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){ii(t)||ri(8),ni(t)&&(t=Ui(t));var e=xi(this),o=Li(this,t,void 0);return o[Pi].C=!0,wi(e),o},e.finishDraft=function(t,e){var o=(t&&t[Pi]).A;return Si(o,e),Ci(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ri(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var n=bi("Patches").$;return ni(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),Xi=new Ji,Qi=Xi.produce;function ta(t){return ta="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},ta(t)}function ea(t){var e=function(t,e){if("object"!==ta(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ta(e)?e:String(e)}function oa(t,e,o){return(e=ea(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ra(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function na(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ra(Object(o),!0).forEach((function(e){oa(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ra(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function ia(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. "}Xi.produceWithPatches.bind(Xi),Xi.setAutoFreeze.bind(Xi),Xi.setUseProxies.bind(Xi),Xi.applyPatches.bind(Xi),Xi.createDraft.bind(Xi),Xi.finishDraft.bind(Xi);var aa="function"==typeof Symbol&&Symbol.observable||"@@observable",sa=function(){return Math.random().toString(36).substring(7).split("").join(".")},ca={INIT:"@@redux/INIT"+sa(),REPLACE:"@@redux/REPLACE"+sa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+sa()}};function la(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(ia(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(ia(1));return o(la)(t,e)}if("function"!=typeof t)throw new Error(ia(2));var n=t,i=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function u(){if(c)throw new Error(ia(3));return i}function f(t){if("function"!=typeof t)throw new Error(ia(4));if(c)throw new Error(ia(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(ia(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function d(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(ia(7));if(void 0===t.type)throw new Error(ia(8));if(c)throw new Error(ia(9));try{c=!0,i=n(i,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return d({type:ca.INIT}),(r={dispatch:d,subscribe:f,getState:u,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ia(10));n=t,d({type:ca.REPLACE})}})[aa]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ia(11));function o(){t.next&&t.next(u())}return o(),{unsubscribe:e(o)}}})[aa]=function(){return this},t},r}function ua(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var n=e[r];"function"==typeof t[n]&&(o[n]=t[n])}var i,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:ca.INIT}))throw new Error(ia(12));if(void 0===o(void 0,{type:ca.PROBE_UNKNOWN_ACTION()}))throw new Error(ia(13))}))}(o)}catch(t){i=t}return function(t,e){if(void 0===t&&(t={}),i)throw i;for(var r=!1,n={},s=0;s<a.length;s++){var c=a[s],l=o[c],u=t[c],f=l(u,e);if(void 0===f)throw e&&e.type,new Error(ia(14));n[c]=f,r=r||f!==u}return(r=r||a.length!==Object.keys(t).length)?n:t}}function fa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 da(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(ia(15))},n={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(n)}));return r=fa.apply(void 0,i)(o.dispatch),na(na({},o),{},{dispatch:r})}}}function ha(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(n){return"function"==typeof n?n(o,r,t):e(n)}}}}var pa=ha();pa.withExtraArgument=ha;var ya,ga=pa,ma=(ya=function(t,e){return ya=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ya(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 o(){this.constructor=t}ya(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ba=function(t,e){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],r=0}finally{o=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},va=function(t,e){for(var o=0,r=e.length,n=t.length;o<r;o++,n++)t[n]=e[o];return t},Sa=Object.defineProperty,Oa=Object.defineProperties,wa=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,Na=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,Ea=function(t,e,o){return e in t?Sa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ra=function(t,e){for(var o in e||(e={}))Na.call(e,o)&&Ea(t,o,e[o]);if(xa)for(var r=0,n=xa(e);r<n.length;r++){o=n[r];Ca.call(e,o)&&Ea(t,o,e[o])}return t},Ia=function(t,e){return Oa(t,wa(e))},Ma="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?fa:fa.apply(null,arguments)};var Wa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array),ka=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,va([void 0],t[0].concat(this)))):new(e.bind.apply(e,va([void 0],t.concat(this))))},e}(Array);function Da(t){return ii(t)?Qi(t,(function(){})):t}function La(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Wa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ga.withExtraArgument(o.extraArgument)):r.push(ga));return r}(t)}}function Ua(t){var e,o=La(),r=t||{},n=r.reducer,i=void 0===n?void 0:n,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,u=r.preloadedState,f=void 0===u?void 0:u,d=r.enhancers,h=void 0===d?void 0:d;if("function"==typeof i)e=i;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(i))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=ua(i)}var p=s;"function"==typeof p&&(p=p(o));var y=da.apply(void 0,p),g=fa;l&&(g=Ma(Ra({trace:!1},"object"==typeof l&&l)));var m=new ka(y),b=m;return Array.isArray(h)?b=va([y],h):"function"==typeof h&&(b=h(m)),la(e,f,g.apply(void 0,b))}function _a(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var n=e.apply(void 0,o);if(!n)throw new Error("prepareAction did not return an object");return Ra(Ra({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Fa(t){var e,o={},r=[],n={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,n},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[o,r,e]}function Aa(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Da(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Fa(t.extraReducers):[t.extraReducers],o=e[0],n=void 0===o?{}:o,i=e[1],a=void 0===i?[]:i,c=e[2],l=void 0===c?void 0:c,u=Ra(Ra({},n),s);return function(t,e,o,r){void 0===o&&(o=[]);var n,i="function"==typeof e?Fa(e):[e,o,r],a=i[0],s=i[1],c=i[2];if(function(t){return"function"==typeof t}(t))n=function(){return Da(t())};else{var l=Da(t);n=function(){return l}}function u(t,e){void 0===t&&(t=n());var o=va([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(ni(t))return void 0===(r=o(t,e))?t:r;if(ii(t))return Qi(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return u.getInitialState=n,u}(r,(function(t){for(var e in u)t.addCase(e,u[e]);for(var o=0,r=a;o<r.length;o++){var n=r[o];t.addMatcher(n.matcher,n.reducer)}l&&t.addDefaultCase(l)}))}return i.forEach((function(t){var o,r,i=n[t],l=e+"/"+t;"reducer"in i?(o=i.reducer,r=i.prepare):o=i,a[t]=o,s[l]=o,c[t]=r?_a(l,r):_a(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ha=["name","message","stack","code"],Ya=function(t,e){this.payload=t,this.meta=e},za=function(t,e){this.payload=t,this.meta=e},Ba=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ha;o<r.length;o++){var n=r[o];"string"==typeof t[n]&&(e[n]=t[n])}return e}return{message:String(t)}};function ja(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=_a(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ia(Ra({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),n=_a(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ia(Ra({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),i=_a(t+"/rejected",(function(t,e,r,n,i){return{payload:n,error:(o&&o.serializeError||Ba)(t||"Rejected"),meta:Ia(Ra({},i||{}),{arg:r,requestId:e,rejectedWithValue:!!n,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="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(s,c,l){var u,f=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function h(t){u=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,m,b;return ba(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(S=g)||"object"!=typeof S||"function"!=typeof S.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return m=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:u||"Aborted"})}))})),s(n(f,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:f,arg:t},{getState:c,extra:l}))),[4,Promise.race([m,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:f,signal:d.signal,abort:h,rejectWithValue:function(t,e){return new Ya(t,e)},fulfillWithValue:function(t,e){return new za(t,e)}})).then((function(e){if(e instanceof Ya)throw e;return e instanceof za?r(e.payload,f,t,e.meta):r(e,f,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return b=v.sent(),y=b instanceof Ya?i(null,f,t,b.payload,b.meta):i(b,f,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&i.match(y)&&y.meta.condition||s(y),[2,y]}var S}))},new Promise((function(t,e){var o=function(t){try{n(y.next(t))}catch(t){e(t)}},r=function(t){try{n(y.throw(t))}catch(t){e(t)}},n=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};n((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:h,requestId:f,arg:t,unwrap:function(){return p.then(ja)}})}}),{pending:n,rejected:i,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Za="listenerMiddleware";_a(Za+"/add"),_a(Za+"/removeAll"),_a(Za+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=n[t];return o?o.enumerable=e:n[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Pi];return Vi.get(e,t)},set:function(e){var o=this[Pi];Vi.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][Pi];if(!n.P)switch(n.i){case 5:r(n)&&ki(n);break;case 4:o(n)&&ki(n)}}}function o(t){for(var e=t.t,o=t.k,r=Ki(o),n=r.length-1;n>=0;n--){var i=r[n];if(i!==Pi){var a=e[i];if(void 0===a&&!ci(e,i))return!0;var s=o[i],c=s&&s[Pi];if(c?c.t!==a:!ui(s,a))return!0}}var l=!!e[Pi];return r.length!==Ki(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var n={};!function(t,e){Gi[t]||(Gi[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),n=function(e,o){if(e){for(var r=Array(o.length),n=0;n<o.length;n++)Object.defineProperty(r,""+n,t(n,!0));return r}var i=$i(o);delete i[Pi];for(var a=Ki(i),s=0;s<a.length;s++){var c=a[s];i[c]=t(c,e||!!i[c].enumerable)}return Object.create(Object.getPrototypeOf(o),i)}(r,e),i={i:r?5:4,A:o?o.A:vi(),P:!1,I:!1,R:{},l:o,t:e,k:n,o:null,g:!1,C:!1};return Object.defineProperty(n,Pi,{value:i,writable:!0}),n},S:function(t,o,n){n?ni(o)&&o[Pi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Pi];if(o){var n=o.t,i=o.k,a=o.R,s=o.i;if(4===s)ai(i,(function(e){e!==Pi&&(void 0!==n[e]||ci(n,e)?a[e]||t(i[e]):(a[e]=!0,ki(o)))})),ai(n,(function(t){void 0!==i[t]||ci(i,t)||(a[t]=!1,ki(o))}));else if(5===s){if(r(o)&&(ki(o),a.length=!0),i.length<n.length)for(var c=i.length;c<n.length;c++)a[c]=!1;else for(var l=n.length;l<i.length;l++)a[l]=!0;for(var u=Math.min(i.length,n.length),f=0;f<u;f++)i.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(i[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Pa{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,n=window.ftReduxStores[o];if(Vn(n))return n;if(null==r)return;const i=Aa({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Ua({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?i.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:i.reducer(t,e)});return window.ftReduxStores[r.name]=new Pa(i,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Gn,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,n=t[r];return n?(...t)=>{const e=n(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}var Ta=Object.freeze({__proto__:null,FtCommandQueue:Gn,FtLitElementRedux:oi,FtReduxStore:Pa,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Vn(e)&&e.clear()},isFtReduxStore:Vn,redux:t=>{const e=null!=t?t:{};return(t,o)=>{var r;const n={hasChanged:(t,e)=>!ao(t,e),attribute:!1,...e};Oe(n)(t,o);const i=t.constructor;i.reduxProperties=new Map(i.reduxProperties),i.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var Ka=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o,r,n,i;const a=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all"});if((null===(r=e.query)||void 0===r?void 0:r.length)>0&&a.append("query",e.query),e.scope&&"DEFAULT"!==e.scope&&a.append("scope",e.scope.toLowerCase()),e.virtualField&&a.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let t=e.periodFilter.period;const o=t?`_${t.from}_${t.to}`:"";a.append("period",e.periodFilter.periodType.toLowerCase()+o)}if((null===(n=e.sort)||void 0===n?void 0:n.length)>0&&"ft:lastEdition"===e.sort[0].key&&a.append("sort","last_update"),(null===(i=e.filters)||void 0===i?void 0:i.length)>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");a.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${a.toString()}`).href}});const $a=Symbol("elementInternals");var Ga,Va,qa,Ja,Xa=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[$a].form}constructor(...t){super(t),this[$a]=this.attachInternals(),this[$a].role=e}setFormValue(t){this[$a].setFormValue(t)}}}});const Qa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qa=null===(Va=null===(Ga=window.safari)||void 0===Ga?void 0:Ga.pushNotification)||void 0===Va?void 0:Va.toString())&&void 0!==qa?qa:""),ts="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;
179
179
  //! moment.js
180
180
  //! version : 2.29.4
181
181
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-analytics-top-documents",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
4
4
  "description": "List the most viewed documents",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.1.51",
23
- "@fluid-topics/ft-loader": "1.1.51",
24
- "@fluid-topics/ft-typography": "1.1.51",
25
- "@fluid-topics/ft-wc-utils": "1.1.51",
22
+ "@fluid-topics/ft-icon": "1.1.52",
23
+ "@fluid-topics/ft-loader": "1.1.52",
24
+ "@fluid-topics/ft-typography": "1.1.52",
25
+ "@fluid-topics/ft-wc-utils": "1.1.52",
26
26
  "lit": "3.1.0"
27
27
  },
28
- "gitHead": "1dcb93d48e681051070e118dfc7c56aa8b8aa3fa"
28
+ "gitHead": "8b2c90df3e7d82be373f6e963272a37ebf57b017"
29
29
  }