@fluid-topics/ft-reader-search-in-document 1.1.6 → 1.1.8
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.
|
@@ -127,7 +127,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
127
127
|
display: inline-block;
|
|
128
128
|
width: 0;
|
|
129
129
|
}
|
|
130
|
-
`;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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()}}}const Ve=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!j(t,e),attribute:!1,...e};R(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Ye{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,Je,to;const eo=Symbol("internalReduxEventsUnsubscribers"),oo=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class io extends ze{constructor(){super(...arguments),this[Qe]=new Map,this[Je]=new Map,this[to]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Xe(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[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[oo].has(t.store):this[oo].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[oo].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(e)&&e.eventBus&&(null===(o=this.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[eo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oo].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[eo].forEach((t=>t())),this[eo]=[]}unsubscribeFromStore(t){this[oo].has(t)&&this[oo].get(t)(),this[oo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function no(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 ao(t){return!!t&&!!t[Go]}function so(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)===qo}(t)||Array.isArray(t)||!!t[Ho]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ho])||po(t)||yo(t))}function co(t,e,o){void 0===o&&(o=!1),0===lo(t)?(o?Object.keys:Vo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function lo(t){var e=t[Go];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:po(t)?2:yo(t)?3:0}function fo(t,e){return 2===lo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ho(t,e,o){var r=lo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function po(t){return To&&t instanceof Map}function yo(t){return zo&&t instanceof Set}function go(t){return t.o||t.t}function bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yo(t);delete e[Go];for(var o=Vo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),xo(t)||ao(t)||!so(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=vo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function vo(){no(2)}function xo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Oo(t){var e=Xo[t];return e||no(18,t),e}function wo(){return Ko}function So(t,e){e&&(Oo("Patches"),t.u=[],t.s=[],t.v=e)}function No(t){Co(t),t.p.forEach($o),t.p=null}function Co(t){t===Ko&&(Ko=t.l)}function Eo(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function $o(t){var e=t[Go];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Oo("ES5").S(e,t,r),r?(o[Go].P&&(No(e),no(4)),so(t)&&(t=ko(e,t),e.l||Io(e,t)),e.u&&Oo("Patches").M(o[Go].t,t,e.u,e.s)):t=ko(e,o,[]),No(e),e.u&&e.v(e.u,e.s),t!==_o?t:void 0}function ko(t,e,o){if(xo(e))return e;var r=e[Go];if(!r)return co(e,(function(i,n){return Uo(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Io(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),co(n,(function(e,n){return Uo(t,r,i,e,n,o,a)})),Io(t,i,!1),o&&t.u&&Oo("Patches").N(r,o,t.u,t.s)}return r.o}function Uo(t,e,o,r,i,n,a){if(ao(i)){var s=ko(t,i,n&&e&&3!==e.i&&!fo(e.R,r)?n.concat(r):void 0);if(ho(o,r,s),!ao(s))return;t.m=!1}else a&&o.add(i);if(so(i)&&!xo(i)){if(!t.h.D&&t._<1)return;ko(t,i),e&&e.A.l||Io(t,i)}}function Io(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Lo(t,e){var o=t[Go];return(o?go(o):t)[e]}function Ao(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 Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function jo(t){t.o||(t.o=bo(t.t))}function Fo(t,e,o){var r=po(e)?Oo("MapSet").F(e,o):yo(e)?Oo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:wo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Qo;o&&(i=[r],n=Jo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):Oo("ES5").J(e,o);return(o?o.A:wo()).p.push(r),r}function Po(t){return ao(t)||no(22,t),function t(e){if(!so(e))return e;var o,r=e[Go],i=lo(e);if(r){if(!r.P&&(r.i<4||!Oo("ES5").K(r)))return r.t;r.I=!0,o=Bo(e,i),r.I=!1}else o=Bo(e,i);return co(o,(function(e,i){r&&function(t,e){return 2===lo(t)?t.get(e):t[e]}(r.t,e)===i||ho(o,e,t(i))})),3===i?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bo(t)}Qe=oo,Je=ro,to=eo;var Do,Ko,Mo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),To="undefined"!=typeof Map,zo="undefined"!=typeof Set,Zo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_o=Mo?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Ho=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",Go=Mo?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Vo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(t){var e={};return Vo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Xo={},Qo={get:function(t,e){if(e===Go)return t;var o=go(t);if(!fo(o,e))return function(t,e,o){var r,i=Ao(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!so(r)?r:r===Lo(t.t,e)?(jo(t),t.o[e]=Fo(t.A.h,r,t)):r},has:function(t,e){return e in go(t)},ownKeys:function(t){return Reflect.ownKeys(go(t))},set:function(t,e,o){var r=Ao(go(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Lo(go(t),e),n=null==i?void 0:i[Go];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,i)&&(void 0!==o||fo(t.t,e)))return!0;jo(t),Wo(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!==Lo(t.t,e)||e in t.t?(t.R[e]=!1,jo(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=go(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(){no(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){no(12)}},Jo={};co(Qo,(function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var tr=function(){function t(t){var e=this;this.O=Zo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&no(6),void 0!==r&&"function"!=typeof r&&no(7),so(t)){var s=Eo(e),c=Fo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?No(s):Co(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return So(s,r),Ro(t,s)}),(function(t){throw No(s),t})):(So(s,r),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===_o&&(a=void 0),e.D&&mo(a,!0),r){var f=[],h=[];Oo("Patches").M(t,a,f,h),r(f,h)}return a}no(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){so(t)||no(8),ao(t)&&(t=Po(t));var e=Eo(this),o=Fo(this,t,void 0);return o[Go].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Go]).A;return So(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Zo&&no(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 i=Oo("Patches").$;return ao(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),er=new tr,or=er.produce;function rr(t){return rr="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},rr(t)}function ir(t){var e=function(t,e){if("object"!==rr(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rr(e)?e:String(e)}function nr(t,e,o){return(e=ir(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ar(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 sr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(o),!0).forEach((function(e){nr(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ar(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function cr(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. "}er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er),er.createDraft.bind(er),er.finishDraft.bind(er);var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",fr=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+fr(),REPLACE:"@@redux/REPLACE"+fr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fr()}};function ur(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(cr(1));return o(ur)(t,e)}if("function"!=typeof t)throw new Error(cr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(cr(3));return n}function h(t){if("function"!=typeof t)throw new Error(cr(4));if(c)throw new Error(cr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(cr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(cr(7));if(void 0===t.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:hr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(cr(10));i=t,u({type:hr.REPLACE})}})[lr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(cr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[lr]=function(){return this},t},r}function pr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:hr.INIT}))throw new Error(cr(12));if(void 0===o(void 0,{type:hr.PROBE_UNKNOWN_ACTION()}))throw new Error(cr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(cr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function dr(){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 yr(){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(cr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=dr.apply(void 0,n)(o.dispatch),sr(sr({},o),{},{dispatch:r})}}}function gr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var br=gr();br.withExtraArgument=gr;var mr,vr=br,xr=(mr=function(t,e){return mr=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])},mr(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}mr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Or=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,kr=function(t,e,o){return e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ur=function(t,e){for(var o in e||(e={}))$r.call(e,o)&&kr(t,o,e[o]);if(Er)for(var r=0,i=Er(e);r<i.length;r++){o=i[r];Rr.call(e,o)&&kr(t,o,e[o])}return t},Ir=function(t,e){return Nr(t,Cr(e))},Lr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?dr:dr.apply(null,arguments)};var Ar=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(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,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(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,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array);function jr(t){return so(t)?or(t,(function(){})):t}function Fr(){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 Ar;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(vr.withExtraArgument(o.extraArgument)):r.push(vr));return r}(t)}}function Pr(t){var e,o=Fr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;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}(n))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=pr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=yr.apply(void 0,d),g=dr;l&&(g=Lr(Ur({trace:!1},"object"==typeof l&&l)));var b=new Wr(y),m=b;return Array.isArray(p)?m=wr([y],p):"function"==typeof p&&(m=p(b)),ur(e,h,g.apply(void 0,m))}function Br(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ur(Ur({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Dr(t){var e,o={},r=[],i={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,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Kr(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:jr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Dr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ur(Ur({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Dr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return jr(t())};else{var l=jr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=wr([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(ao(t))return void 0===(r=o(t,e))?t:r;if(so(t))return or(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 f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Br(l,r):Br(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 Mr=["name","message","stack","code"],Tr=function(t,e){this.payload=t,this.meta=e},zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Mr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function _r(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=Br(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ir(Ur({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ir(Ur({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Zr)(t||"Rejected"),meta:Ir(Ur({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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 f,h=(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}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return Or(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===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Tr(t,e)},fulfillWithValue:function(t,e){return new zr(t,e)}})).then((function(e){if(e instanceof Tr)throw e;return e instanceof zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Tr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(_r)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Hr="listenerMiddleware";Br(Hr+"/add"),Br(Hr+"/removeAll"),Br(Hr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Go];return Qo.get(e,t)},set:function(e){var o=this[Go];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Go];if(!i.P)switch(i.i){case 5:r(i)&&Wo(i);break;case 4:o(i)&&Wo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Vo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Go){var a=e[n];if(void 0===a&&!fo(e,n))return!0;var s=o[n],c=s&&s[Go];if(c?c.t!==a:!uo(s,a))return!0}}var l=!!e[Go];return r.length!==Vo(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 i={};!function(t,e){Xo[t]||(Xo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yo(o);delete n[Go];for(var a=Vo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:wo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Go,{value:n,writable:!0}),i},S:function(t,o,i){i?ao(o)&&o[Go].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Go];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)co(n,(function(e){e!==Go&&(void 0!==i[e]||fo(i,e)?a[e]||t(n[e]):(a[e]=!0,Wo(o)))})),co(i,(function(t){void 0!==n[t]||fo(n,t)||(a[t]=!1,Wo(o))}));else if(5===s){if(r(o)&&(Wo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Gr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Xe(i))return i;if(null==r)return;const n=Kr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Gr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...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_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 qr=Symbol("elementInternals");var Vr,Yr,Xr;const Qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xr=null===(Yr=null===(Vr=window.safari)||void 0===Vr?void 0:Vr.pushNotification)||void 0===Yr?void 0:Yr.toString())&&void 0!==Xr?Xr:""),Jr=Re.extend("--ft-ripple-color","",We.colorContent),ti={color:Jr,backgroundColor:Re.extend("--ft-ripple-background-color","",Jr),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},ei=Re.extend("--ft-ripple-color","",We.colorPrimary),oi=ei,ri=Re.extend("--ft-ripple-background-color","",ei),ii=Re.extend("--ft-ripple-color","",We.colorSecondary),ni=ii,ai=Re.extend("--ft-ripple-background-color","",ii),si=Rt`
|
|
130
|
+
`;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}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()}}}const Ve=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!j(t,e),attribute:!1,...e};R(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Ye{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 Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,Je,to;const eo=Symbol("internalReduxEventsUnsubscribers"),oo=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class io extends ze{constructor(){super(...arguments),this[Qe]=new Map,this[Je]=new Map,this[to]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Xe(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[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].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[oo].has(t.store):this[oo].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[oo].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(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[eo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oo].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[eo].forEach((t=>t())),this[eo]=[]}unsubscribeFromStore(t){this[oo].has(t)&&this[oo].get(t)(),this[oo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function no(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 ao(t){return!!t&&!!t[Go]}function so(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)===qo}(t)||Array.isArray(t)||!!t[Ho]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ho])||po(t)||yo(t))}function co(t,e,o){void 0===o&&(o=!1),0===lo(t)?(o?Object.keys:Vo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function lo(t){var e=t[Go];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:po(t)?2:yo(t)?3:0}function fo(t,e){return 2===lo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ho(t,e,o){var r=lo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function po(t){return To&&t instanceof Map}function yo(t){return zo&&t instanceof Set}function go(t){return t.o||t.t}function bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yo(t);delete e[Go];for(var o=Vo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),xo(t)||ao(t)||!so(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=vo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function vo(){no(2)}function xo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Oo(t){var e=Xo[t];return e||no(18,t),e}function wo(){return Ko}function So(t,e){e&&(Oo("Patches"),t.u=[],t.s=[],t.v=e)}function No(t){Co(t),t.p.forEach($o),t.p=null}function Co(t){t===Ko&&(Ko=t.l)}function Eo(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function $o(t){var e=t[Go];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Oo("ES5").S(e,t,r),r?(o[Go].P&&(No(e),no(4)),so(t)&&(t=ko(e,t),e.l||Io(e,t)),e.u&&Oo("Patches").M(o[Go].t,t,e.u,e.s)):t=ko(e,o,[]),No(e),e.u&&e.v(e.u,e.s),t!==_o?t:void 0}function ko(t,e,o){if(xo(e))return e;var r=e[Go];if(!r)return co(e,(function(i,n){return Uo(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Io(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),co(n,(function(e,n){return Uo(t,r,i,e,n,o,a)})),Io(t,i,!1),o&&t.u&&Oo("Patches").N(r,o,t.u,t.s)}return r.o}function Uo(t,e,o,r,i,n,a){if(ao(i)){var s=ko(t,i,n&&e&&3!==e.i&&!fo(e.R,r)?n.concat(r):void 0);if(ho(o,r,s),!ao(s))return;t.m=!1}else a&&o.add(i);if(so(i)&&!xo(i)){if(!t.h.D&&t._<1)return;ko(t,i),e&&e.A.l||Io(t,i)}}function Io(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Lo(t,e){var o=t[Go];return(o?go(o):t)[e]}function Ao(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 Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function jo(t){t.o||(t.o=bo(t.t))}function Fo(t,e,o){var r=po(e)?Oo("MapSet").F(e,o):yo(e)?Oo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:wo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Qo;o&&(i=[r],n=Jo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):Oo("ES5").J(e,o);return(o?o.A:wo()).p.push(r),r}function Po(t){return ao(t)||no(22,t),function t(e){if(!so(e))return e;var o,r=e[Go],i=lo(e);if(r){if(!r.P&&(r.i<4||!Oo("ES5").K(r)))return r.t;r.I=!0,o=Bo(e,i),r.I=!1}else o=Bo(e,i);return co(o,(function(e,i){r&&function(t,e){return 2===lo(t)?t.get(e):t[e]}(r.t,e)===i||ho(o,e,t(i))})),3===i?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bo(t)}Qe=oo,Je=ro,to=eo,io.reduxProperties=new Map,io.reduxReactiveProperties=new Set,io.reduxEventListeners=new Map;var Do,Ko,Mo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),To="undefined"!=typeof Map,zo="undefined"!=typeof Set,Zo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_o=Mo?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Ho=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",Go=Mo?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Vo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(t){var e={};return Vo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Xo={},Qo={get:function(t,e){if(e===Go)return t;var o=go(t);if(!fo(o,e))return function(t,e,o){var r,i=Ao(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!so(r)?r:r===Lo(t.t,e)?(jo(t),t.o[e]=Fo(t.A.h,r,t)):r},has:function(t,e){return e in go(t)},ownKeys:function(t){return Reflect.ownKeys(go(t))},set:function(t,e,o){var r=Ao(go(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Lo(go(t),e),n=null==i?void 0:i[Go];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,i)&&(void 0!==o||fo(t.t,e)))return!0;jo(t),Wo(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!==Lo(t.t,e)||e in t.t?(t.R[e]=!1,jo(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=go(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(){no(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){no(12)}},Jo={};co(Qo,(function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var tr=function(){function t(t){var e=this;this.O=Zo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&no(6),void 0!==r&&"function"!=typeof r&&no(7),so(t)){var s=Eo(e),c=Fo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?No(s):Co(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return So(s,r),Ro(t,s)}),(function(t){throw No(s),t})):(So(s,r),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===_o&&(a=void 0),e.D&&mo(a,!0),r){var f=[],h=[];Oo("Patches").M(t,a,f,h),r(f,h)}return a}no(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){so(t)||no(8),ao(t)&&(t=Po(t));var e=Eo(this),o=Fo(this,t,void 0);return o[Go].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Go]).A;return So(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Zo&&no(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 i=Oo("Patches").$;return ao(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),er=new tr,or=er.produce;function rr(t){return rr="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},rr(t)}function ir(t){var e=function(t,e){if("object"!==rr(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rr(e)?e:String(e)}function nr(t,e,o){return(e=ir(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ar(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 sr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(o),!0).forEach((function(e){nr(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ar(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function cr(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. "}er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er),er.createDraft.bind(er),er.finishDraft.bind(er);var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",fr=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+fr(),REPLACE:"@@redux/REPLACE"+fr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fr()}};function ur(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(cr(1));return o(ur)(t,e)}if("function"!=typeof t)throw new Error(cr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(cr(3));return n}function h(t){if("function"!=typeof t)throw new Error(cr(4));if(c)throw new Error(cr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(cr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(cr(7));if(void 0===t.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:hr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(cr(10));i=t,u({type:hr.REPLACE})}})[lr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(cr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[lr]=function(){return this},t},r}function pr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:hr.INIT}))throw new Error(cr(12));if(void 0===o(void 0,{type:hr.PROBE_UNKNOWN_ACTION()}))throw new Error(cr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(cr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function dr(){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 yr(){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(cr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=dr.apply(void 0,n)(o.dispatch),sr(sr({},o),{},{dispatch:r})}}}function gr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var br=gr();br.withExtraArgument=gr;var mr,vr=br,xr=(mr=function(t,e){return mr=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])},mr(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}mr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Or=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,kr=function(t,e,o){return e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ur=function(t,e){for(var o in e||(e={}))$r.call(e,o)&&kr(t,o,e[o]);if(Er)for(var r=0,i=Er(e);r<i.length;r++){o=i[r];Rr.call(e,o)&&kr(t,o,e[o])}return t},Ir=function(t,e){return Nr(t,Cr(e))},Lr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?dr:dr.apply(null,arguments)};var Ar=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(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,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(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,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array);function jr(t){return so(t)?or(t,(function(){})):t}function Fr(){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 Ar;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(vr.withExtraArgument(o.extraArgument)):r.push(vr));return r}(t)}}function Pr(t){var e,o=Fr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;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}(n))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=pr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=yr.apply(void 0,d),g=dr;l&&(g=Lr(Ur({trace:!1},"object"==typeof l&&l)));var b=new Wr(y),m=b;return Array.isArray(p)?m=wr([y],p):"function"==typeof p&&(m=p(b)),ur(e,h,g.apply(void 0,m))}function Br(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ur(Ur({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.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 Dr(t){var e,o={},r=[],i={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,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Kr(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:jr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Dr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ur(Ur({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Dr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return jr(t())};else{var l=jr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=wr([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(ao(t))return void 0===(r=o(t,e))?t:r;if(so(t))return or(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 f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Br(l,r):Br(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 Mr=["name","message","stack","code"],Tr=function(t,e){this.payload=t,this.meta=e},zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Mr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function _r(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=Br(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ir(Ur({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ir(Ur({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Zr)(t||"Rejected"),meta:Ir(Ur({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,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 f,h=(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}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return Or(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===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Tr(t,e)},fulfillWithValue:function(t,e){return new zr(t,e)}})).then((function(e){if(e instanceof Tr)throw e;return e instanceof zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Tr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(_r)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Hr="listenerMiddleware";Br(Hr+"/add"),Br(Hr+"/removeAll"),Br(Hr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Go];return Qo.get(e,t)},set:function(e){var o=this[Go];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Go];if(!i.P)switch(i.i){case 5:r(i)&&Wo(i);break;case 4:o(i)&&Wo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Vo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Go){var a=e[n];if(void 0===a&&!fo(e,n))return!0;var s=o[n],c=s&&s[Go];if(c?c.t!==a:!uo(s,a))return!0}}var l=!!e[Go];return r.length!==Vo(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 i={};!function(t,e){Xo[t]||(Xo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yo(o);delete n[Go];for(var a=Vo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:wo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Go,{value:n,writable:!0}),i},S:function(t,o,i){i?ao(o)&&o[Go].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Go];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)co(n,(function(e){e!==Go&&(void 0!==i[e]||fo(i,e)?a[e]||t(n[e]):(a[e]=!0,Wo(o)))})),co(i,(function(t){void 0!==n[t]||fo(n,t)||(a[t]=!1,Wo(o))}));else if(5===s){if(r(o)&&(Wo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Gr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Xe(i))return i;if(null==r)return;const n=Kr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Gr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...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_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 qr=Symbol("elementInternals");var Vr,Yr,Xr;const Qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xr=null===(Yr=null===(Vr=window.safari)||void 0===Vr?void 0:Vr.pushNotification)||void 0===Yr?void 0:Yr.toString())&&void 0!==Xr?Xr:""),Jr=Re.extend("--ft-ripple-color","",We.colorContent),ti={color:Jr,backgroundColor:Re.extend("--ft-ripple-background-color","",Jr),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},ei=Re.extend("--ft-ripple-color","",We.colorPrimary),oi=ei,ri=Re.extend("--ft-ripple-background-color","",ei),ii=Re.extend("--ft-ripple-color","",We.colorSecondary),ni=ii,ai=Re.extend("--ft-ripple-background-color","",ii),si=Rt`
|
|
131
131
|
:host {
|
|
132
132
|
display: contents;
|
|
133
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-search-in-document",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "A search component to retrieve occurrences in documents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "1.1.
|
|
23
|
-
"@fluid-topics/ft-card": "1.1.
|
|
24
|
-
"@fluid-topics/ft-i18n": "1.1.
|
|
25
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
26
|
-
"@fluid-topics/ft-search-input": "1.1.
|
|
27
|
-
"@fluid-topics/ft-search-load-more-button": "1.1.
|
|
28
|
-
"@fluid-topics/ft-search-result-abstract": "1.1.
|
|
29
|
-
"@fluid-topics/ft-search-result-title": "1.1.
|
|
30
|
-
"@fluid-topics/ft-search-results": "1.1.
|
|
31
|
-
"@fluid-topics/ft-search-results-number": "1.1.
|
|
32
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
33
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-button": "1.1.8",
|
|
23
|
+
"@fluid-topics/ft-card": "1.1.8",
|
|
24
|
+
"@fluid-topics/ft-i18n": "1.1.8",
|
|
25
|
+
"@fluid-topics/ft-search-context": "1.1.8",
|
|
26
|
+
"@fluid-topics/ft-search-input": "1.1.8",
|
|
27
|
+
"@fluid-topics/ft-search-load-more-button": "1.1.8",
|
|
28
|
+
"@fluid-topics/ft-search-result-abstract": "1.1.8",
|
|
29
|
+
"@fluid-topics/ft-search-result-title": "1.1.8",
|
|
30
|
+
"@fluid-topics/ft-search-results": "1.1.8",
|
|
31
|
+
"@fluid-topics/ft-search-results-number": "1.1.8",
|
|
32
|
+
"@fluid-topics/ft-typography": "1.1.8",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "1.1.8",
|
|
34
34
|
"@fluid-topics/public-api": "1.0.52",
|
|
35
35
|
"lit": "3.1.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "95fb2d06899d700513970ac830958922b98539df"
|
|
38
38
|
}
|