PMFlow/frontend/.playwright-profiles/chrome-clone-1775093938411/Default/Extensions/edacconmaakjimmfgnblocblbcd.../4.1.1_0/main.bundle.js

5 lines
1.6 MiB

/* Copyright (c) 2026 Session Buddy - All Rights Reserved */
/* The contents of this file may not be modified, copied, and/or distributed, in whole or in part, without the express permission of the author, reachable at support@sessionbuddy.com */
/*! For license information please see main.bundle.js.LICENSE.txt */
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=254)}([function(e,t,n){"use strict";e.exports=n(192)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void n(l)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(120);var o=n(137),i=n(91);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return g})),n.d(t,"n",(function(){return w})),n.d(t,"l",(function(){return O})),n.d(t,"k",(function(){return x})),n.d(t,"x",(function(){return E})),n.d(t,"i",(function(){return k})),n.d(t,"h",(function(){return S})),n.d(t,"j",(function(){return L})),n.d(t,"m",(function(){return C})),n.d(t,"c",(function(){return T})),n.d(t,"f",(function(){return I})),n.d(t,"d",(function(){return _})),n.d(t,"g",(function(){return N})),n.d(t,"w",(function(){return R})),n.d(t,"s",(function(){return M})),n.d(t,"t",(function(){return D})),n.d(t,"E",(function(){return B})),n.d(t,"D",(function(){return G})),n.d(t,"B",(function(){return K})),n.d(t,"C",(function(){return V})),n.d(t,"p",(function(){return q})),n.d(t,"q",(function(){return Y})),n.d(t,"r",(function(){return X})),n.d(t,"u",(function(){return Q})),n.d(t,"o",(function(){return J})),n.d(t,"y",(function(){return Z})),n.d(t,"A",(function(){return ee})),n.d(t,"z",(function(){return te})),n.d(t,"H",(function(){return ne})),n.d(t,"v",(function(){return ie})),n.d(t,"F",(function(){return ae})),n.d(t,"G",(function(){return ce}));var r=n(67),o=n(26),i=n(1),a=n(22),c=n(10),u=n(87),l=n(12),s=n(77),f=n(24),d=n(88),p=n(151),h=n(61),v=["clientId"],m=["clientId"],b=1e4,y=20,g=200,w=30,O=60,x=100,j=Object(u.a)(),E="nxs.theme",k=["title","type","state","incognito","top","left","width","height","deleted"],S=["url","title","titleOriginal","favIconUrl","description","groupId","active","pinned","deleted"],L="local-client",C=s.a,T=50,I=50,_=30,N=30,A={window:{type:"normal",state:"normal",top:0,left:0},tab:{status:"complete",groupId:-1}},P={folder:{type:"normal",state:"normal",top:0,left:0},link:{groupId:-1}};function R(){return!!Object(h.a)()&&j.ext.isNxsExtensionId(Object(h.a)())}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.relative,o=n.bare,i=n.noun;if(!e)return"";var a=t&&+e<+t;return c.a.date(a?t:e,o?{format:r?"relative":"long"}:{format:r?"relative":"long",noun:i,verb:a?"updated":"created"})}function F(e){return"tabs"in e}function D(e){var t;return null!==(t=null===e||void 0===e?void 0:e.reduce((function(e,t){return e+t.tabs.length}),0))&&void 0!==t?t:0}function B(e){return Object(f.d)(Object(f.c)(e,U))}function U(e,t){return!1!==e&&(!z(t)||e!==A.window[t])}function z(e){return e in A.window}function G(e){return Object(f.d)(Object(f.c)(e,W))}function W(e,t){return!1!==e&&(!("favIconUrl"===t&&!e)&&((!H(t)||e!==A.tab[t])&&!!("mutedInfo"!==t||e&&"object"===typeof e&&"muted"in e&&e.muted)))}function H(e){return e in A.tab}function K(e){var t,n=e.groups,r=e.unitIds,c=e.groupIds,u=e.mapGroup,l=e.mapUnit,s=!r.length&&!c.length,f=[],d=Object(a.a)(n);try{for(d.s();!(t=d.n()).done;){var p=t.value;if(!p.deleted)if(s||c.includes(p.id))f.push(u(p));else{var h=Q(p).filter((function(e){return!e.deleted&&r.includes(e.id)})).map((function(e){return l(e)}));if(h.length){var v=u(p,!0);f.push(Object(i.a)(Object(i.a)({},v),{},Object(o.a)({},F(v)?"tabs":"links",h)))}}}}catch(m){d.e(m)}finally{d.f()}return f}function V(e,t){return K(Object(i.a)(Object(i.a)({groups:e},t),{},{mapGroup:d.b,mapUnit:d.b}))}function q(e,t){return $(e,t)||{}}function $(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=Q(r),i=0;i<o.length;i++)if(t(o[i],r,i,n))return{unit:o[i],group:r,unitIdx:i,groupIdx:n}}function Y(e){if(!e)return[];var t=[];return $(e,(function(e,n,r,o){t.push({unit:e,group:n,unitIdx:r,groupIdx:o})})),t}function X(e){return e?e.flatMap((function(e){return e?Q(e):[]})):[]}function Q(e){var t;return null!==(t=F(e)?e.tabs:e.links)&&void 0!==t?t:[]}function J(e,t){var n=Object(i.a)(Object(i.a)({},e),Object(p.a)(e,t));return n.title===n.titleOriginal&&delete n.titleOriginal,n}function Z(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"loaded"!==n)&&(!t||"loading"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)}));return r.folders=(null!==(n=r.folders)&&void 0!==n?n:[]).map((function(e){return ee(e,t)})),r}function ee(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"_setText"!==n)&&(!t||"titleSplit"!==n)&&(!t||"sourceId"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&(!function(e){return e in P.folder}(n)||e!==P.folder[n])}));r.links=Object(l.d)((null!==(n=r.links)&&void 0!==n?n:[]).map((function(e){return function(e,t){var n=Object(f.c)(e,(function(e,n){return(!t||"titleSplit"!==n)&&(!t||"urlSplit"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&("userDescription"!==n||""!==e)&&("favIconUrl"!==n||""!==e)&&(!function(e){return e in P.link}(n)||e!==P.link[n])}));n.title&&n.title!==n.titleOriginal||delete n.titleOriginal;n.url||(n.url="");return n}(e,t)})),(function(e){return!!e.pinned}));var o=r.links.findLast((function(e){return e.active}));return o&&r.links.forEach((function(e){e.active&&e!==o&&delete e.active})),r}function te(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"loaded"!==n)&&(!t||"loading"!==n)&&!1!==e&&null!=e}));return r.windows=(null!==(n=r.windows)&&void 0!==n?n:[]).map((function(e){return function(e,t){var n,r,o=Object(f.c)(e,(function(e,n){return(!t||"_setText"!==n)&&(!t||"titleSplit"!==n)&&(!t||"sourceId"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&(!z(n)||e!==A.window[n])}));o.tabs=Object(l.d)((null!==(n=null===(r=o.tabs)||void 0===r?void 0:r.filter((function(e){return e.url})))&&void 0!==n?n:[]).map((function(e){return function(e,t){var n=Object(f.c)(e,(function(e,n){return(!t||"titleSplit"!==n)&&(!t||"urlSplit"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&("favIconUrl"!==n||""!==e)&&(!H(n)||e!==A.tab[n])}));n.title&&n.title!==n.titleOriginal||delete n.titleOriginal;n.url||(n.url="");return n}(e,t)})),(function(e){return!!e.pinned}));var i=o.tabs.findLast((function(e){return e.active}));i&&o.tabs.forEach((function(e){e.active&&e!==i&&delete e.active}));return o}(e,t)})).filter((function(e){return e.tabs.length})),r}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!re(e[n],t[n]))return!1;return!0}function re(e,t){if(e.title!==t.title||e.type!==t.type||e.incognito!==t.incognito)return!1;if(e.tabs.length!==t.tabs.length)return!1;for(var n=0;n<e.tabs.length;n++)if(!oe(e.tabs[n],t.tabs[n]))return!1;return!0}function oe(e,t){return e.url===t.url&&e.pinned===t.pinned&&e.groupId===t.groupId}function ie(e,t){return"dark"===e||"default"===e&&t}function ae(e){var t=Z(e,!0);t.clientId;return Object(r.a)(t,v)}function ce(e){e.clientId;return Object(r.a)(e,m)}},function(e,t,n){"use strict";n.d(t,"q",(function(){return f})),n.d(t,"y",(function(){return d})),n.d(t,"s",(function(){return p})),n.d(t,"v",(function(){return h})),n.d(t,"w",(function(){return v})),n.d(t,"t",(function(){return m})),n.d(t,"m",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"o",(function(){return w})),n.d(t,"e",(function(){return O})),n.d(t,"l",(function(){return x})),n.d(t,"k",(function(){return j})),n.d(t,"n",(function(){return E})),n.d(t,"u",(function(){return k})),n.d(t,"r",(function(){return S})),n.d(t,"j",(function(){return L})),n.d(t,"c",(function(){return I})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"i",(function(){return M})),n.d(t,"h",(function(){return F})),n.d(t,"x",(function(){return D})),n.d(t,"p",(function(){return B}));var r=n(1),o=n(12),i=n(24),a=n(88),c=n(37),u=n(5),l=n(29),s=n(36);function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unavailable";if(!S(t)){var r=b(e,t,!0);r?r.invalid=n:e.invalidSets=Object(o.b)(e.invalidSets,[{id:t,invalid:n}],a.a)}}function d(e,t){if(!S(t)){var n=b(e,t,!0);(null===n||void 0===n?void 0:n.invalid)?delete n.invalid:e.invalidSets=Object(o.j)(e.invalidSets,(function(e){return e.id===t}))}}function p(e,t){if(S(t))return!1;var n=b(e,t,!0);return n?!!n.invalid:e.invalidSets.some((function(e){return e.id===t}))}function h(e,t){if(!S(t)){var n=b(e,t,!0);n?n.loading=!0:e.loadingNewSetIds=D(e.loadingNewSetIds,[t],!0)}}function v(e,t){if(!S(t)){var n=b(e,t,!0);n&&(n.loading=!1),e.loadingNewSetIds=Object(o.j)(e.loadingNewSetIds,(function(e){return e===t}))}}function m(e,t){if(S(t))return!1;var n=b(e,t,!0);return n?!!n.loading:e.loadingNewSetIds.includes(t)}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t)return y(e,t,n)||E(e,t,n)||g(e,t)}function y(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.collections.sets[t]:void 0}function g(e,t){if(t)return e.clientHistory.sets[t]}function w(e){if(1!==e.selectedSetIds.length)return null;var t=e.selectedSetIds[0],n=y(e,t);return n?k(n)||m(e,t)?null:n:null}function O(e,t){for(var n=e.selectedSetIds.length-1;n>=0;n--){var r=y(e,e.selectedSetIds[n]);if(r&&(!t||t(r)))return r}}function x(e){var t,n,r=-1;do{t=e.collections.navSetIds.at(r--),n=y(e,t)}while(t&&!n);return n}function j(e){var t,n,r=-1;do{t=e.clientHistory.navSetIds.at(r--),n=g(e,t)}while(t&&!n);return n}function E(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.remoteClients.sets[t]:void 0}function k(e){return!e||Object(i.h)(e,"folders")&&Object(i.h)(e,"windows")}function S(e){return e===u.j||e===l.a.id}function L(e,t,n){return+((null===t||void 0===t?void 0:t[n])||0)-+((null===e||void 0===e?void 0:e[n])||0)}var C=new Map,T=new Map;function I(e,t,n,o){var a;o?C.has(e.id)?a=C.get(e.id):(a=Object(c.c)(),C.set(e.id,a)):a=Object(c.c)();var l=Object(u.E)(e),s=Object(r.a)(Object(r.a)({},Object(i.i)(l,u.i)),{},{id:a});return n&&(s.sourceId=e.id),Object(r.a)(Object(r.a)({},s),{},{links:t||!l.tabs?[]:l.tabs.filter((function(e){return!e.deleted})).map((function(e){return _(e,o)}))})}function _(e,t){var n;t?T.has(e.id)?n=T.get(e.id):(n=Object(c.c)(),T.set(e.id,n)):n=Object(c.c)();var o=Object(u.D)(e);return Object(r.a)(Object(r.a)({},Object(i.i)(o,u.h)),{},{id:n})}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clearLinks,o=t.includeSourceId,a=t.preserveId,u=Object(i.i)(e,["title","description","icon","type","state","incognito","top","left","width","height","deleted"]),l=Object(r.a)({id:a&&e.id?e.id:Object(c.c)()},u);return o&&(l.sourceId=e.id),Object(r.a)(Object(r.a)({},l),{},{links:n||!e.links?[]:e.links.filter((function(e){return!e.deleted})).map((function(e){return A(e,a)}))})}function A(e,t){var n=Object(i.i)(e,["url","favIconUrl","title","titleOriginal","description","userDescription","groupId","active","pinned","deleted"]);return Object(r.a)({id:t&&e.id?e.id:Object(c.c)()},n)}function P(e){var t=e.folders,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return N(e,{clearLinks:t,includeSourceId:i})},mapUnit:function(e){return A(e)}}))}function R(e){var t=e.windows,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return I(e,t,i)},mapUnit:function(e){return _(e)}}))}function M(e){var t=e.multipleSetsAreSelected,n=e.onlyLocalClientIsSelected,r=e.isEventSelected,o=e.isFolders,i=e.itemSelections,a=i.unitIds,c=i.groupIds,u=a.length||c.length;return t?u?"multi-links":"multi":n?r?u?"local-client-history-tabs":"local-client-history":u?"local-client-tabs":"local-client":o?u?"collection-links":"collection":u?"remote-client-tabs":"remote-client"}function F(e){var t=e.combining,n=e.selectedSetCount,r=e.sourceType;return t?{successText:s.a.collectionsCombined(n),failureText:s.a.failedToCombineCollections()}:"local-client"===r||"local-client-tabs"===r||"remote-client"===r||"remote-client-tabs"===r?{successText:s.a.tabsSaved(),failureText:s.a.failedToSaveTabs()}:"collection"===r?{successText:s.a.collectionCloned(),failureText:s.a.failedToCloneCollection()}:{}}function D(e,t,n){var r=Object(o.b)(n?e:void 0,t);return Object(o.f)(e,r)?e:r}function B(e,t){return S(t)?"local-client":y(e,t)?"collection":E(e,t)?"remote-client":void 0}},function(e,t,n){"use strict";var r=n(1),o=n(57),i=n(52),a=n(47),c=n(3),u=n(22),l=n(5),s=n(32),f=n(12);var d={navRemoteClientsLoading:function(e){return e.content.sets.remoteClients.navSetsLoading},navRemoteClientsLoadingLong:function(e){return e.content.sets.remoteClients.navSetsLoadingLong},navRemoteClients:function(e){var t=e.content;return t.sets.remoteClients.navSetIds.map((function(e){return t.sets.remoteClients.sets[e]})).filter(Boolean)},navRemoteClientIds:function(e){return e.content.sets.remoteClients.navSetIds}},p=n(71),h=n(49),v=n(24);n.d(t,"a",(function(){return T})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return N}));var m={sets:{selectedSetIds:Object(i.g)(),selectedClientHistoryItemId:Object(h.l)(),localWindows:[],localWindowsInitialized:!1,clientHistory:Object(i.f)(),remoteClients:Object(i.f)(),collections:Object(i.f)(),loadingNewSetIds:[],invalidSets:[],searchTerms:null,filterSearchTerms:null,searchResults:null,searchResultsLoading:!1},items:Object(a.b)()},b=Object(o.b)({name:"content",initialState:m,reducers:{setsSelected:i.q,setsDeselected:i.p,fetchFullSetsStarted:i.d,fetchFullSetsSucceeded:i.e,fetchFullSetsFailed:i.c,selectDuplicateUnits:i.j,selectedSetIdsReset:i.k,setSearchTerms:i.o,setFilterSearchTerms:i.l,setSearchResults:i.m,setSearchResultsLoading:i.n,clearSearch:i.b,itemsSelected:a.h,itemsDeselected:a.f,unitSelectionToggled:a.l,groupSelectionToggled:a.d,unitRangeSelected:a.k,groupRangeSelected:a.c,itemSelectionCleared:a.e,localWindowsChanged:function(e,t){var n=t.payload;e.sets.localWindows=n,e.sets.localWindowsInitialized=!0},localItemsClosed:function(e,t){var n=t.payload,r=n.tabIds,o=void 0===r?[]:r,i=n.winIds,s=void 0===i?[]:i,d=e.sets.localWindows.filter((function(e){var t=e.id;return s.includes(t)}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,d);var p,h=Object(l.r)(e.sets.localWindows).filter((function(e){var t=e.id;return o.includes(t)})),v=Object(u.a)(e.sets.localWindows);try{for(v.s();!(p=v.n()).done;){var m=p.value;m.tabs=Object(f.k)(m.tabs,h)}}catch(w){v.e(w)}finally{v.f()}var b=e.sets.localWindows.filter((function(e){return!e.tabs.length}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,b);var y=[].concat(Object(c.a)(d),Object(c.a)(b)).map((function(e){return e.id})),g=[].concat(Object(c.a)(h),Object(c.a)(Object(l.r)(d))).map((function(e){return e.id}));Object(a.f)(e,{payload:{groupIds:y,unitIds:g}})},localTabIdSwapped:function(e,t){var n=t.payload,r=n.from,o=n.to,i=Object(l.p)(e.sets.localWindows,(function(e){return e.id===r})),a=i.unit;a&&(a.id=o,e.items.selectedUnitIds=Object(f.l)(e.items.selectedUnitIds,r,o))},fetchNavCollectionsStarted:p.h,fetchNavCollectionsLongStarted:p.g,fetchNavCollectionsSucceeded:p.i,fetchNavCollectionsFailed:p.f,navCollectionsNavSetIdsCleared:p.l,navCollectionsLoadingStopped:p.k,saveCollectionsStarted:p.n,saveCollectionsFailed:p.m,deleteCollectionsStarted:p.e,deleteCollectionsFailed:p.d,clientHistoryItemSelected:h.c,fetchFullClientHistoryItemStarted:h.f,fetchFullClientHistoryItemSucceeded:h.g,fetchFullClientHistoryItemFailed:h.e,deleteEventsStarted:h.d,saveEventsStarted:h.q,fetchNavClientHistoryStarted:h.j,fetchNavClientHistoryLongStarted:h.i,fetchNavClientHistorySucceeded:h.k,fetchNavClientHistoryFailed:h.h,navClientHistoryNavSetIdsCleared:h.o,navClientHistoryLoadingStopped:h.n,navClientHistoryRemoveFromSets:h.p}}),y=Object(v.i)(b.actions,["selectDuplicateUnits","setSearchTerms","setFilterSearchTerms","setSearchResults","setSearchResultsLoading","clearSearch","itemsSelected","itemsDeselected","unitSelectionToggled","groupSelectionToggled","unitRangeSelected","groupRangeSelected","itemSelectionCleared","localWindowsChanged","localItemsClosed","localTabIdSwapped","clientHistoryItemSelected"]),g=Object(v.i)(b.actions,i.a),w=Object(i.h)(g),O={findTabs:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r){var o={window:[],tab:[]};if(!e.free.length&&!e.window.length&&!e.tab.length)return o;var i,a=r().content,f=Object(u.a)(a.sets.localWindows||[]);try{for(f.s();!(i=f.n()).done;){var d,p=i.value,h=Object(s.a)(p.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window))),v=0,m=0,b=Object(u.a)(p.tabs||[]);try{for(b.s();!(d=b.n()).done;){var y=d.value,g=Math.pow(Object(s.a)(y.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)))+Object(s.a)(y.url,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)),"url"),2);g&&(m++,t.excludeTabs||o.tab.push({id:y.id,setId:l.j,text:y.title||y.url,score:g,type:"tab",setTitle:"current session",unit:y}),v+=g)}}catch(w){b.e(w)}finally{b.f()}!h&&!v||t.excludeWindows||o.window.push({id:p.id,setId:l.j,text:p.title,score:h,secondaryScore:v,unitMatchCount:m,type:"window",setTitle:"current session"})}}catch(w){f.e(w)}finally{f.f()}return o}}},x=Object(v.i)(Object(r.a)(Object(r.a)({},b.actions),w),p.b),j=Object(p.j)(x),E=Object(v.i)(b.actions,h.b),k=Object(h.m)(E),S=Object(v.i)(b.actions,a.a),L=Object(a.i)(S),C=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},O),j),k),L),w),T=Object(r.a)(Object(r.a)({},y),C),I=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},{localWindows:function(e){return e.content.sets.localWindows},localWindowsInitialized:function(e){return e.content.sets.localWindowsInitialized}}),d),p.o),h.r),i.i),a.j);function _(e,t){return function(n,r){return e(r(),t)}}var N=b.reducer},function(e,t,n){"use strict";var r=n(72),o=n(21),i=n(16);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function c(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function u(e,t){Object(i.a)(2,arguments);var n,r=Object(o.a)(e),u=Object(o.a)(t),l=a(r,u),s=Math.abs(function(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,u));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-l*s);var f=a(r,u)===-l;c(Object(o.a)(e))&&1===s&&1===a(e,u)&&(f=!1),n=l*(s-Number(f))}return 0===n?0:n}var l={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s="trunc";function f(e,t,n){Object(i.a)(2,arguments);var r,a=function(e,t){return Object(i.a)(2,arguments),Object(o.a)(e).getTime()-Object(o.a)(t).getTime()}(e,t)/1e3;return((r=null===n||void 0===n?void 0:n.roundingMethod)?l[r]:l[s])(a)}var d=n(106);function p(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function h(e){return p({},e)}var v=n(92),m=1440,b=2520,y=43200,g=86400;function w(e,t){return Object(i.a)(1,arguments),function(e,t,n){var c,l;Object(i.a)(2,arguments);var s=Object(r.a)(),w=null!==(c=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:s.locale)&&void 0!==c?c:d.a;if(!w.formatDistance)throw new RangeError("locale must contain formatDistance property");var O=a(e,t);if(isNaN(O))throw new RangeError("Invalid time value");var x,j,E=p(h(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:O});O>0?(x=Object(o.a)(t),j=Object(o.a)(e)):(x=Object(o.a)(e),j=Object(o.a)(t));var k,S=f(j,x),L=(Object(v.a)(j)-Object(v.a)(x))/1e3,C=Math.round((S-L)/60);if(C<2)return null!==n&&void 0!==n&&n.includeSeconds?S<5?w.formatDistance("lessThanXSeconds",5,E):S<10?w.formatDistance("lessThanXSeconds",10,E):S<20?w.formatDistance("lessThanXSeconds",20,E):S<40?w.formatDistance("halfAMinute",0,E):S<60?w.formatDistance("lessThanXMinutes",1,E):w.formatDistance("xMinutes",1,E):0===C?w.formatDistance("lessThanXMinutes",1,E):w.formatDistance("xMinutes",C,E);if(C<45)return w.formatDistance("xMinutes",C,E);if(C<90)return w.formatDistance("aboutXHours",1,E);if(C<m){var T=Math.round(C/60);return w.formatDistance("aboutXHours",T,E)}if(C<b)return w.formatDistance("xDays",1,E);if(C<y){var I=Math.round(C/m);return w.formatDistance("xDays",I,E)}if(C<g)return k=Math.round(C/y),w.formatDistance("aboutXMonths",k,E);if((k=u(j,x))<12){var _=Math.round(C/y);return w.formatDistance("xMonths",_,E)}var N=k%12,A=Math.floor(k/12);return N<3?w.formatDistance("aboutXYears",A,E):N<9?w.formatDistance("overXYears",A,E):w.formatDistance("almostXYears",A+1,E)}(e,Date.now(),t)}var O=6e4,x=1440,j=30*x,E=365*x;function k(e,t){return Object(i.a)(1,arguments),function(e,t,n){var c,u,l;Object(i.a)(2,arguments);var s=Object(r.a)(),f=null!==(c=null!==(u=null===n||void 0===n?void 0:n.locale)&&void 0!==u?u:s.locale)&&void 0!==c?c:d.a;if(!f.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var m=a(e,t);if(isNaN(m))throw new RangeError("Invalid time value");var b,y,g=p(h(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:m});m>0?(b=Object(o.a)(t),y=Object(o.a)(e)):(b=Object(o.a)(e),y=Object(o.a)(t));var w,k=String(null!==(l=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==l?l:"round");if("floor"===k)w=Math.floor;else if("ceil"===k)w=Math.ceil;else{if("round"!==k)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");w=Math.round}var S,L=y.getTime()-b.getTime(),C=L/O,T=(L-(Object(v.a)(y)-Object(v.a)(b)))/O,I=null===n||void 0===n?void 0:n.unit;if("second"===(S=I?String(I):C<1?"second":C<60?"minute":C<x?"hour":T<j?"day":T<E?"month":"year")){var _=w(L/1e3);return f.formatDistance("xSeconds",_,g)}if("minute"===S){var N=w(C);return f.formatDistance("xMinutes",N,g)}if("hour"===S){var A=w(C/60);return f.formatDistance("xHours",A,g)}if("day"===S){var P=w(T/x);return f.formatDistance("xDays",P,g)}if("month"===S){var R=w(T/j);return 12===R&&"month"!==I?f.formatDistance("xYears",1,g):f.formatDistance("xMonths",R,g)}if("year"===S){var M=w(T/E);return f.formatDistance("xYears",M,g)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}n.d(t,"c",(function(){return S})),n.d(t,"a",(function(){return L})),n.d(t,"i",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"d",(function(){return I})),n.d(t,"b",(function(){return _})),n.d(t,"h",(function(){return N})),n.d(t,"g",(function(){return A})),n.d(t,"m",(function(){return P})),n.d(t,"p",(function(){return M})),n.d(t,"k",(function(){return F})),n.d(t,"e",(function(){return D})),n.d(t,"n",(function(){return B})),n.d(t,"l",(function(){return U})),n.d(t,"o",(function(){return z})),n.d(t,"j",(function(){return G}));var S=60,L=24*S,C=365*L,T=6e4,I=S*T,_=24*I,N=7*_,A=30*_;function P(){return Date.now()}var R=null;function M(){var e=P();return R&&e<=R&&(e=R+1),R=e,e}function F(e){try{if(!e)return;var t=new Date(e);if(function(e){return!!(null===e||void 0===e?void 0:e.getTime)&&!isNaN(e.getTime())}(t))return t}catch(n){}}function D(e){var t,n;return null!==(t=null===(n=F(e))||void 0===n?void 0:n.toISOString())&&void 0!==t?t:"(invalid date)"}function B(){return(new Date).toISOString()}function U(e,t){var n,r;return null!==(n=null===(r=F(e))||void 0===r?void 0:r.toLocaleString(t))&&void 0!==n?n:"(invalid date)"}function z(e){return U(P(),e)}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relaxed,r=t.justNowThreshold,o=void 0===r?5e3:r,i=F(e);if(!i)return"at some point";if(n)return w(i,{addSuffix:!0});var a=P()-+i;return a>=0&&a<o?"just now":k(i,{addSuffix:!0,roundingMethod:a<0?"ceil":"floor"})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d}));var r=n(53),o=n(18),i=!1,a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.e)(Object(o.b)(t,{formatObjects:!0}))},c=r.a;var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(Object(o.b)(t,{formatObjects:!0}))},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.f)(Object(o.b)(t,{formatObjects:!0}))};function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i?console.warn:r.i)(Object(o.b)(t,{formatObjects:!0}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i?console.error:r.h)(Object(o.b)(t,{formatObjects:!0}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,a=void 0===n?"":n,u=t.severity,l=void 0===u?"error":u;i?function(e){return"error"===e?console.error:"warn"===e?console.warn:console.log}(l)(a,e):function(e){return"error"===e?r.h:"warn"===e?r.i:"success"===e?r.f:"notice"===e?c:r.e}(l)(Object(o.a)(e,a))}},function(e,t,n){"use strict";var r=n(1),o=n(229),i=n(21),a=n(16);function c(e){Object(a.a)(1,arguments);var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}function u(e,t){Object(a.a)(2,arguments);var n=c(e),r=c(t);return n.getTime()===r.getTime()}var l=n(55);function s(e,t){return Object(a.a)(2,arguments),function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(e),r=Object(l.a)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,-Object(l.a)(t))}var f=n(35),d=n(8),p=n(75),h=n(13);n.d(t,"a",(function(){return m}));var v={client:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"browser","browsers")},collection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"collection","collections",{bare:"collections",withCount:"no collections"})}},m=Object(r.a)(Object(r.a)(Object(r.a)({},{updated:function(){return"updated"},created:function(){return"created"}}),v),{},{thisBrowser:function(){return"this browser"},session:function(){return"session"},history:function(){return"history"},event:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"event","events",{bare:"events",withCount:"no events"})},item:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"item","items",{bare:"items",withCount:"no items"})},window:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"window","windows",{bare:"windows",withCount:"no windows"})},incognitoWindow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito window","incognito windows",{bare:"incognito windows",withCount:"no incognito windows"})},currentWindow:function(){return"this window"},folder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"folder","folders",{bare:"folders",withCount:"no folders"})},incognitoFolder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito folder","incognito folders",{bare:"incognito folders",withCount:"no incognito folders"})},tab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"tab","tabs",{bare:"tabs",withCount:"no tabs"})},selectedTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected tab","selected tabs",{bare:"selected tabs",withCount:"no selected tabs"})},link:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"link","links",{bare:"links",withCount:"no links"})},selectedLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected link","selected links",{bare:"selected links",withCount:"no selected links"})},summarizedItems:function(e){var t=e.groupCount,n=e.unitCount,r=e.isWindow,o=e.includeCount,i=r?m.window:m.folder,a=r?m.tab:m.link;return t&&n?"".concat(i({count:t,includeCount:o})," and ").concat(a({count:n,includeCount:o})):t?i({count:t,includeCount:o}):a({count:n,includeCount:o})},title:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"title","titles")},url:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"URL","URLs",{bare:"URLs",withCount:"no URLs"})},favicon:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"favicon","favicons")},untitled:function(){return"untitled"},import:function(){return"import"},restore:function(){return"restore"},recover:function(){return"recover"},date:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format,r=t.noun,i=t.verb,a="long"===n?Object(o.a)(e,"MMMM d".concat(new Date(e).getFullYear()!==(new Date).getFullYear()?", yyyy":""," 'at' h:mm a")):"relative"===n?Object(d.j)(e,{justNowThreshold:3e4}):"short"===n||"short-abbreviate-recent"===n?this.shortDate(e,{abbreviateRecent:"short-abbreviate-recent"===n}):Object(d.l)(e);return r&&i?"".concat(m[r]()," ").concat(m[i]()," ").concat(a):i?"".concat(m[i]()," ").concat(a):a},shortDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).abbreviateRecent;if(t&&function(e){return Object(a.a)(1,arguments),u(e,Date.now())}(e))return Object(o.a)(e,"h:mm a");if(t&&function(e){return Object(a.a)(1,arguments),u(e,s(Date.now(),1))}(e))return"".concat(m.yesterday()," \u2022 ").concat(Object(o.a)(e,"h:mm a"));var n=!t||new Date(e).getFullYear()!==(new Date).getFullYear();return Object(o.a)(e,"MMM d".concat(n?", yyyy":""," ' \u2022 ' h:mm a"))},now:function(){return"now"},yesterday:function(){return"yesterday"},number:function(e){return(+e||0).toLocaleString("en-US")},integer:function(e){return(+e||0).toLocaleString("en-US",{maximumFractionDigits:0})},alt:function(){return"alt"},shift:function(){return"shift"},ctrl:function(){return"ctrl"},cmd:function(){return"cmd"},ctrlOrCmd:function(){return"mac"===p.a?m.cmd():m.ctrl()},keyModifier:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return Object(h.d)(e)})).join("+")},learnMore:function(){return"learn more"},click:function(){return"click"},close:function(){return"close"},cancel:function(){return"cancel"}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=o.a.createContext(null);var a=function(e){e()},c=function(){return a};var u={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var s="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,c=Object(r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);s((function(){var e=c.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,u]);var f=n||i;return o.a.createElement(f.Provider,{value:c},a)};n(4),n(76),n(154),n(142);function d(){return Object(r.useContext)(i)}function p(e){void 0===e&&(e=i);var t=e===i?d:function(){return Object(r.useContext)(e)};return function(){return t().store}}var h=p();function v(e){void 0===e&&(e=i);var t=e===i?h:p(e);return function(){return t().dispatch}}var m=v(),b=function(e,t){return e===t};function y(e){void 0===e&&(e=i);var t=e===i?d:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=b);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return l(n,o)}),[n,o]),u=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),p=Object(r.useRef)(),h=n.getState();try{if(e!==f.current||h!==d.current||u.current){var v=e(h);i=void 0!==p.current&&t(v,p.current)?p.current:v}else i=p.current}catch(m){throw u.current&&(m.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),m}return s((function(){f.current=e,d.current=h,p.current=i,u.current=void 0})),s((function(){function e(){try{var e=n.getState();if(e===d.current)return;var r=f.current(e);if(t(r,p.current))return;p.current=r,d.current=e}catch(m){u.current=m}a()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var g,w=y(),O=n(48);n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return h})),g=O.unstable_batchedUpdates,a=g},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"q",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"m",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"p",(function(){return h})),n.d(t,"o",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return x}));var r=n(3),o=(n(14),n(88));function i(e,t){return[].concat(Object(r.a)(e.filter(t)),Object(r.a)(e.filter((function(e){return!t(e)}))))}function a(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function c(e){return a(e.flat()).filter((function(e){return void 0!==e}))}function u(e){if(null===e||void 0===e?void 0:e.length)return e[Math.floor(Math.random()*e.length)]}function l(e){return e[e.length-1]}function s(e){return Object(r.a)(e).reverse()}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.c;return[].concat(Object(r.a)(e?d(e,(function(e){return t.some((function(t){return n(t,e)}))})):[]),Object(r.a)(function(e){return e.filter((function(t,n){return e.lastIndexOf(t)===n}))}(t)))}function d(e,t){return e.some(t)?e.filter((function(e){return!t(e)})):e}function p(e,t){return t.length?d(e,(function(e){return t.includes(e)})):e}function h(e,t){return[e.slice(0,t),e.slice(t)]}function v(e,t){for(var n=[],r=[],o=0;o<e.length;o++)(t(e[o],o)?n:r).push(e[o]);return[n,r]}function m(e,t){if(t<1||t>=e.length)return[e];for(var n=[],r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function b(e,t){return e.filter((function(e){return t.includes(e)}))}function y(e,t,n){return e.includes(t)?e.map((function(e){return e===t?n:e})):e}function g(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}function w(e,t,n){if(!n||t<0)return e;if(0===t&&n<0||t>=e.length-1&&n>0)return e;var r=e.slice(),o=r.splice(t,1);if(1!==o.length)return e;var i=Math.min(Math.max(t+n,0),r.length);return r.splice(i,0,o[0]),r}function O(e,t){return w(e,t,-1)}function x(e,t){return w(e,t,1)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return p}));n(3);function r(e,t){return(null===e||void 0===e?void 0:e.startsWith(t))?e.slice(t.length):e}function o(e,t){return(null===t||void 0===t?void 0:t.length)&&(null===e||void 0===e?void 0:e.endsWith(t))?e.slice(0,-t.length):e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=e.lastIndexOf(t);return n<0?e:e.slice(0,n)}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&#34;")}function c(e){return e?"".concat(e[0].toLocaleUpperCase()).concat(e.substring(1)):""}function u(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),n=e.toLowerCase();return t<n?-1:t>n?1:0}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^/gm," ".repeat(t))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^(?=[^\n])/gm," ".repeat(t))}function f(e){return e.toUpperCase()}var d="\ufeff";function p(e){return e.startsWith(d)?p(e.slice(1)):e}},function(e,t,n){"use strict";var r=n(138);var o=n(91),i=n(139);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(76);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"n",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return O})),n.d(t,"j",(function(){return x})),n.d(t,"i",(function(){return j})),n.d(t,"g",(function(){return E})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return S})),n.d(t,"h",(function(){return L})),n.d(t,"e",(function(){return C})),n.d(t,"q",(function(){return T})),n.d(t,"p",(function(){return I})),n.d(t,"o",(function(){return _})),n.d(t,"k",(function(){return N})),n.d(t,"l",(function(){return A}));var r=n(3),o=n(14),i=n(2),a=n(1),c=n(67),u=n(57),l=n(29),s=n(18),f=n(110);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}f.b.clientId,f.b.clientCreated;var p=Object(c.a)(f.b,["clientId","clientCreated"]),h=Object(a.a)(Object(a.a)({},{settingsIsOpen:!1,importExportDialog:null,animationIsDisabled:!1}),p),v=Object(u.b)({name:"settings",initialState:h,reducers:{settingsOpened:function(e){e.settingsIsOpen=!0},settingsClosed:function(e){e.settingsIsOpen=!1},importDialogOpened:function(e){e.importExportDialog="transfer"},exportDialogOpened:function(e){e.importExportDialog="export"},backupDialogOpened:function(e){e.importExportDialog="backup"},restoreDialogOpened:function(e){e.importExportDialog="restore"},restoreDialogAutoBackupOpened:function(e){e.importExportDialog="restore:auto-backup"},importExportDialogClosed:function(e){e.importExportDialog=null},animationDisabled:function(e){e.animationIsDisabled=!0},animationEnabled:function(e){e.animationIsDisabled=!1},hydrated:function(e,t){var n=t.payload;return Object(a.a)(Object(a.a)({},h),n)},settingChanged:function(e,t){var n=t.payload,r=n.id,o=n.value;e[r]=o}}}),m=v.actions,b=m.settingsOpened,y=m.settingsClosed,g=m.importDialogOpened,w=m.exportDialogOpened,O=m.backupDialogOpened,x=m.restoreDialogOpened,j=m.restoreDialogAutoBackupOpened,E=m.importExportDialogClosed,k=m.animationDisabled,S=m.animationEnabled,L=v.reducer;function C(){return function(){var e=Object(i.a)(d().mark((function e(t){var n,r,i,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l.b)();case 3:return n=e.sent,r=n.settings,e.next=7,r.all();case 7:i=e.sent,a=Object.fromEntries(i.map((function(e){return[e.id,e.value]})).filter((function(e){var t=Object(o.a)(e,1)[0];return"clientId"!==t&&"clientCreated"!==t}))),t(v.actions.hydrated(a)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),Object(s.e)(e.t0,{prefix:"Failed to hydrate settings"});case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}()}function T(e,t){return function(){var n=Object(i.a)(d().mark((function n(r){var o,i;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(v.actions.settingChanged({id:e,value:t})),n.next=3,Object(l.b)();case 3:return o=n.sent,i=o.settings,n.next=7,i.set(e,t);case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function I(e){return function(t,n){var r=n().settings;return t(T(e,!r[e]))}}function _(e,t){return function(n,o){var i=o().settings[e],a=i.includes(t)?i.filter((function(e){return e!==t})):[].concat(Object(r.a)(i),[t]);return n(T(e,a))}}function N(e){return function(t,n){return A(e)(n())}}var A=function(e){return function(t){return t.settings[e]}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=n(78),i=!1;function a(){if(r.a.apply(void 0,arguments),!i)return o.b.apply(void 0,arguments)}function c(){if(r.d.apply(void 0,arguments),!i)return o.e.apply(void 0,arguments)}function u(){if(r.f.apply(void 0,arguments),!i)return o.g.apply(void 0,arguments)}function l(){if(r.b.apply(void 0,arguments),!i)return o.c.apply(void 0,arguments)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(r.c)(e,t),!i)return Object(o.d)(e,t)}function f(e,t){var n;return"".concat(t?"".concat(t,": "):"").concat((null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.stack)||(null===e||void 0===e?void 0:e.error)||(null===e||void 0===e?void 0:e.stack)||(null===e||void 0===e?void 0:e.message)||e)}function d(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).formatObjects;try{return e.map((function(e){return"object"===typeof e?t?JSON.stringify(e,null,2):JSON.stringify(e):e})).join(" ")}catch(n){return e.join(" ")}}},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.a=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},function(e,t,n){"use strict";n.r(t);var r,o=n(0),i=n.n(o),a=n(34),c=["svgRef","title"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s,f,d,p=function(e){var t=e.svgRef,n=e.title,o=l(e,c);return i.a.createElement("svg",u({viewBox:"-2 -2 24 24",height:20,width:20,fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("g",null,i.a.createElement("path",{d:"M13.289185,5.817505L11.875,7.23175c1.55957,1.55957,1.559937,4.096924,0,5.65686l1.414185,1.414185C15.628723,11.963257,15.628723,8.157043,13.289185,5.817505z"}),i.a.createElement("path",{d:"M16.103149,3.009827l-1.414551,1.414551c3.101196,3.101196,3.101196,8.147583,0,11.248779l1.414185,1.414246C19.984314,13.205872,19.984314,6.89093,16.103149,3.009827z"}),i.a.createElement("path",{d:"M2,6C1.447693,6,1,6.447693,1,7v6c0,0.552307,0.447693,1,1,1h3l6,4V2L5,6H2z"}))))},h=i.a.forwardRef((function(e,t){return i.a.createElement(p,u({svgRef:t},e))})),v=(n.p,["svgRef","title"]);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y,g=function(e){var t=e.svgRef,n=e.title,r=b(e,v);return i.a.createElement("svg",m({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,s||(s=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),f||(f=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),d||(d=i.a.createElement("path",{d:"m9 15 2 2 4-4"})))},w=i.a.forwardRef((function(e,t){return i.a.createElement(g,m({svgRef:t},e))})),O=(n.p,["svgRef","title"]);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var E,k=function(e){var t=e.svgRef,n=e.title,r=j(e,O);return i.a.createElement("svg",x({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,y||(y=i.a.createElement("g",null,i.a.createElement("path",{d:"M44.9,4.1c-2.1-.6-4.3-1-6.6-1.1-.8,0-1.5-.1-2.3-.1s-1.5,0-2.3.1c-2.3.2-4.5.5-6.6,1.1C13.1,7.9,2.8,20.8,2.8,36s10.2,27.9,24.1,31.9c2.1.6,4.3,1,6.6,1.2.8,0,1.7.1,2.5.1s1.7,0,2.5-.1c2.3-.2,4.5-.6,6.6-1.2,13.9-4,24.1-16.7,24.1-31.9S58.9,7.9,44.9,4.1ZM63.1,33.1h-13.4c-.2-7.6-1.2-15-3-22.2,8.9,3.8,15.3,12.2,16.4,22.2ZM36,8.7c1.4,0,2.8.1,4.2.4,2.2,7.7,3.4,15.7,3.7,24h-15.8c.3-8.3,1.6-16.3,3.7-24,1.4-.2,2.8-.4,4.2-.4ZM25.2,10.9c-1.7,7.1-2.7,14.5-3,22.2h-13.4c1.1-10,7.5-18.3,16.4-22.2ZM8.9,38.9h13.4c.2,7.6,1.1,15,2.8,22.1-8.8-3.9-15.1-12.2-16.2-22.1ZM36,63.3c-1.5,0-3-.2-4.4-.4-2.1-7.7-3.3-15.7-3.5-24h15.8c-.2,8.3-1.4,16.3-3.5,24-1.4.2-2.9.4-4.4.4ZM47,61c1.7-7.1,2.6-14.5,2.8-22.1h13.4c-1.1,9.9-7.4,18.2-16.2,22.1Z"}))))},S=i.a.forwardRef((function(e,t){return i.a.createElement(k,x({svgRef:t},e))})),L=(n.p,["svgRef","title"]);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var I,_=function(e){var t=e.svgRef,n=e.title,r=T(e,L);return i.a.createElement("svg",C({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,E||(E=i.a.createElement("g",null,i.a.createElement("path",{d:"M45.8,21.5v39.9l-14.8-6.3-2.3-1-2.3,1-14.5,6.3V21.5h33.9M51.7,15.7H6v54.7l22.7-9.8,22.9,9.8V15.7h0Z"}),i.a.createElement("polygon",{points:"65.8 1.7 20.1 1.7 20.1 7.6 59.9 7.6 59.9 52.9 65.8 55.8 65.8 1.7 65.8 1.7"}))))},N=i.a.forwardRef((function(e,t){return i.a.createElement(_,C({svgRef:t},e))})),A=(n.p,["svgRef","title"]);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var M,F,D,B,U,z=function(e){var t=e.svgRef,n=e.title,r=R(e,A);return i.a.createElement("svg",P({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,I||(I=i.a.createElement("path",{d:"M20,2H10C8.897,2,8,2.897,8,4v4H4c-1.103,0-2,0.897-2,2v10c0,1.103,0.897,2,2,2h10c1.103,0,2-0.897,2-2v-4h4 c1.103,0,2-0.897,2-2V4C22,2.897,21.103,2,20,2z M4,20V10h10l0.002,10H4z M20,14h-4v-4c0-1.103-0.897-2-2-2h-4V4h10V14z"})))},G=i.a.forwardRef((function(e,t){return i.a.createElement(z,P({svgRef:t},e))})),W=(n.p,n(178)),H=["svgRef","title"];function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q,$=function(e){var t=e.svgRef,n=e.title,r=V(e,H);return i.a.createElement("svg",K({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,M||(M=i.a.createElement("path",{d:"M3 6h18"})),F||(F=i.a.createElement("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"})),D||(D=i.a.createElement("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})),B||(B=i.a.createElement("line",{x1:10,x2:10,y1:11,y2:17})),U||(U=i.a.createElement("line",{x1:14,x2:14,y1:11,y2:17})))},Y=i.a.forwardRef((function(e,t){return i.a.createElement($,K({svgRef:t},e))})),X=(n.p,["svgRef","title"]);function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function J(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Z,ee,te=function(e){var t=e.svgRef,n=e.title,r=J(e,X);return i.a.createElement("svg",Q({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,q||(q=i.a.createElement("path",{d:"M2,17.0024554 L2,9.99754465 C2,9.4463114 2.44771525,9 3,9 C3.55613518,9 4,9.44902676 4,10.0029293 L4,16 L16,16 L16,10.0029293 C16,9.43788135 16.4477153,9 17,9 C17.5561352,9 18,9.44661595 18,9.99754465 L18,17.0024554 C18,17.5536886 17.5518945,18 16.9991283,18 L3.00087166,18 C2.44463086,18 2,17.553384 2,17.0024554 Z M11,13 L9,13 L9,6 L6.99895656,6 C6.44266033,6 6.31604759,5.68395241 6.70591205,5.29408795 L10,2 L13.2940879,5.29408795 C13.6861267,5.68612671 13.5527519,6 13.0010434,6 L11,6 L11,13 Z",transform:"translate(-2 -2)"})))},ne=i.a.forwardRef((function(e,t){return i.a.createElement(te,Q({svgRef:t},e))})),re=(n.p,["svgRef","title"]);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}function ie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae,ce,ue,le,se=function(e){var t=e.svgRef,n=e.title,r=ie(e,re);return i.a.createElement("svg",oe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,Z||(Z=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),ee||(ee=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})))},fe=i.a.forwardRef((function(e,t){return i.a.createElement(se,oe({svgRef:t},e))})),de=(n.p,["svgRef","title"]);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}function he(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve,me,be,ye=function(e){var t=e.svgRef,n=e.title,r=he(e,de);return i.a.createElement("svg",pe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ae||(ae=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),ce||(ce=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),ue||(ue=i.a.createElement("path",{d:"m8 12.5-5 5"})),le||(le=i.a.createElement("path",{d:"m3 12.5 5 5"})))},ge=i.a.forwardRef((function(e,t){return i.a.createElement(ye,pe({svgRef:t},e))})),we=(n.p,["svgRef","title"]);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function xe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var je,Ee,ke,Se=function(e){var t=e.svgRef,n=e.title,r=xe(e,we);return i.a.createElement("svg",Oe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ve||(ve=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),me||(me=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),be||(be=i.a.createElement("path",{d:"m3 15 2 2 4-4"})))},Le=i.a.forwardRef((function(e,t){return i.a.createElement(Se,Oe({svgRef:t},e))})),Ce=(n.p,["svgRef","title"]);function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Te.apply(this,arguments)}function Ie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _e,Ne=function(e){var t=e.svgRef,n=e.title,r=Ie(e,Ce);return i.a.createElement("svg",Te({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,je||(je=i.a.createElement("path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"})),Ee||(Ee=i.a.createElement("path",{d:"M6.453 15h11.094"})),ke||(ke=i.a.createElement("path",{d:"M8.5 2h7"})))},Ae=i.a.forwardRef((function(e,t){return i.a.createElement(Ne,Te({svgRef:t},e))})),Pe=(n.p,["svgRef","title"]);function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Re.apply(this,arguments)}function Me(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fe,De=function(e){var t=e.svgRef,n=e.title,r=Me(e,Pe);return i.a.createElement("svg",Re({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,_e||(_e=i.a.createElement("g",null,i.a.createElement("path",{d:"M46.9,16.4l-9.1-9.1H13.2v57.5h66.8V16.4h-33ZM74.2,39v19.9H18.9V13h16.5l9.1,9.1h29.7"}))))},Be=i.a.forwardRef((function(e,t){return i.a.createElement(De,Re({svgRef:t},e))})),Ue=(n.p,["svgRef","title"]);function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(this,arguments)}function Ge(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var We,He=function(e){var t=e.svgRef,n=e.title,r=Ge(e,Ue);return i.a.createElement("svg",ze({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Fe||(Fe=i.a.createElement("path",{d:"M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z"})))},Ke=i.a.forwardRef((function(e,t){return i.a.createElement(He,ze({svgRef:t},e))})),Ve=(n.p,["svgRef","title"]);function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ye,Xe=function(e){var t=e.svgRef,n=e.title,r=$e(e,Ve);return i.a.createElement("svg",qe({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,We||(We=i.a.createElement("g",null,i.a.createElement("path",{d:"M36,63.3c15.1,0,27.3-12.3,27.3-27.3,0-15.1-12.3-27.3-27.3-27.3s-19,5.5-23.7,13.8h11.5v5.9H2.8v-5.9s0-15.2,0-15.2h5.9v10C14.7,8.5,24.6,2.8,36,2.8c18.3,0,33.2,14.9,33.2,33.2,0,18.3-14.9,33.2-33.2,33.2-18.3,0-33.2-14.9-33.2-33.2h5.9c0,15.1,12.3,27.3,27.3,27.3Z"}),i.a.createElement("polygon",{points:"38.8 22.3 32.9 22.3 32.9 36.7 44 48.3 48.2 44.2 38.8 34.4 38.8 22.3"}))))},Qe=i.a.forwardRef((function(e,t){return i.a.createElement(Xe,qe({svgRef:t},e))})),Je=(n.p,["svgRef","title"]);function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ze.apply(this,arguments)}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tt,nt=function(e){var t=e.svgRef,n=e.title,r=et(e,Je);return i.a.createElement("svg",Ze({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ye||(Ye=i.a.createElement("path",{d:"M32,17.0024554 L32,9.99754465 C32,9.4463114 32.4477153,9 33,9 C33.5561352,9 34,9.44902676 34,10.0029293 L34,16 L46,16 L46,10.0029293 C46,9.43788135 46.4477153,9 47,9 C47.5561352,9 48,9.44661595 48,9.99754465 L48,17.0024554 C48,17.5536886 47.5518945,18 46.9991283,18 L33.0008717,18 C32.4446309,18 32,17.553384 32,17.0024554 Z M40,2 C40.5561352,2 41,2.44902676 41,3.00292933 L41,9 L43.0010434,9 C43.5573397,9 43.6839524,9.31604759 43.2940879,9.70591205 L40,13 L36.7059121,9.70591205 C36.3138733,9.31387329 36.4472481,9 36.9989566,9 L39,9 L39,3.00292933 C39,2.43788135 39.4477153,2 40,2 Z",transform:"translate(-32 -2)"})))},rt=i.a.forwardRef((function(e,t){return i.a.createElement(nt,Ze({svgRef:t},e))})),ot=(n.p,["svgRef","title"]);function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}function at(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ct,ut,lt,st=function(e){var t=e.svgRef,n=e.title,r=at(e,ot);return i.a.createElement("svg",it({height:24,width:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,tt||(tt=i.a.createElement("path",{d:"M3 11h18v1H3zm14.62-1l-2.29-6.1c-.19-.5-.74-.77-1.25-.6L12 4l-2.09-.7c-.51-.17-1.06.1-1.25.6L6.38 10h11.24zm-1.12 3c-1.66 0-3.04 1.16-3.4 2.71-.84-.36-1.62-.26-2.2-.01A3.503 3.503 0 0 0 7.5 13C5.57 13 4 14.57 4 16.5S5.57 20 7.5 20c1.84 0 3.33-1.42 3.47-3.22.3-.21 1.09-.6 2.06.02.16 1.79 1.64 3.2 3.47 3.2 1.93 0 3.5-1.57 3.5-3.5S18.43 13 16.5 13zm-9 6a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zm9 0a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z"})))},ft=i.a.forwardRef((function(e,t){return i.a.createElement(st,it({svgRef:t},e))})),dt=(n.p,n(179)),pt=["svgRef","title"];function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function vt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mt,bt=function(e){var t=e.svgRef,n=e.title,r=vt(e,pt);return i.a.createElement("svg",ht({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,ct||(ct=i.a.createElement("path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"})),ut||(ut=i.a.createElement("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"})),lt||(lt=i.a.createElement("path",{d:"m17 10 4 4-4 4"})))},yt=i.a.forwardRef((function(e,t){return i.a.createElement(bt,ht({svgRef:t},e))})),gt=(n.p,["svgRef","title"]);function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}function Ot(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xt,jt,Et=function(e){var t=e.svgRef,n=e.title,r=Ot(e,gt);return i.a.createElement("svg",wt({focusable:"false",viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,mt||(mt=i.a.createElement("path",{fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3z"})))},kt=i.a.forwardRef((function(e,t){return i.a.createElement(Et,wt({svgRef:t},e))})),St=(n.p,["svgRef","title"]);function Lt(){return Lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lt.apply(this,arguments)}function Ct(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Tt,It=function(e){var t=e.svgRef,n=e.title,r=Ct(e,St);return i.a.createElement("svg",Lt({focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,xt||(xt=i.a.createElement("path",{d:"M20.49,19l-5.73-5.73C15.53,12.2,16,10.91,16,9.5C16,5.91,13.09,3,9.5,3S3,5.91,3,9.5C3,13.09,5.91,16,9.5,16 c1.41,0,2.7-0.47,3.77-1.24L19,20.49L20.49,19z M5,9.5C5,7.01,7.01,5,9.5,5S14,7.01,14,9.5S12,14,9.5,14S5,12,5,9.5z"})),jt||(jt=i.a.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"})))},_t=i.a.forwardRef((function(e,t){return i.a.createElement(It,Lt({svgRef:t},e))})),Nt=(n.p,["svgRef","title"]);function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function Pt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Rt,Mt,Ft,Dt=function(e){var t=e.svgRef,n=e.title,r=Pt(e,Nt);return i.a.createElement("svg",At({viewBox:"0 0 24 24",height:24,width:24,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Tt||(Tt=i.a.createElement("path",{d:"M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 L4.64765383,4 C5.0797487,2.5871829 6.41189658,1.60369786 8,1.60369786 C9.58810342,1.60369786 10.9202513,2.5871829 11.3523462,4 L21,4 C21.5522847,4 22,4.44771525 22,5 C22,5.55228475 21.5522847,6 21,6 L11.3550607,6 C10.9247861,7.44574447 9.58551032,8.5 8,8.5 C6.41448968,8.5 5.07521393,7.44574447 4.64493934,6 L3,6 Z M8,22.5 C6.41448968,22.5 5.07521393,21.4457445 4.64493934,20 L3,20 C2.44771525,20 2,19.5522847 2,19 C2,18.4477153 2.44771525,18 3,18 L4.64493934,18 C5.07521393,16.5542555 6.41448968,15.5 8,15.5 C9.58551032,15.5 10.9247861,16.5542555 11.3550607,18 L21,18 C21.5522847,18 22,18.4477153 22,19 C22,19.5522847 21.5522847,20 21,20 L11.3550607,20 C10.9247861,21.4457445 9.58551032,22.5 8,22.5 Z M3,13 C2.44771525,13 2,12.5522847 2,12 C2,11.4477153 2.44771525,11 3,11 L12.6449393,11 C13.0752139,9.55425553 14.4144897,8.5 16,8.5 C17.5855103,8.5 18.9247861,9.55425553 19.3550607,11 L21,11 C21.5522847,11 22,11.4477153 22,12 C22,12.5522847 21.5522847,13 21,13 L19.3550607,13 C18.9247861,14.4457445 17.5855103,15.5 16,15.5 C14.4144897,15.5 13.0752139,14.4457445 12.6449393,13 L3,13 Z M16,13.5 C16.8284271,13.5 17.5,12.8284271 17.5,12 C17.5,11.1715729 16.8284271,10.5 16,10.5 C15.1715729,10.5 14.5,11.1715729 14.5,12 C14.5,12.8284271 15.1715729,13.5 16,13.5 Z M8,20.5 C8.82842712,20.5 9.5,19.8284271 9.5,19 C9.5,18.1715729 8.82842712,17.5 8,17.5 C7.17157288,17.5 6.5,18.1715729 6.5,19 C6.5,19.8284271 7.17157288,20.5 8,20.5 Z M8,6.5 C8.82842712,6.5 9.5,5.82842712 9.5,5 C9.5,4.20497688 8.86217156,3.60369786 8,3.60369786 C7.13782844,3.60369786 6.5,4.20497688 6.5,5 C6.5,5.82842712 7.17157288,6.5 8,6.5 Z"})))},Bt=i.a.forwardRef((function(e,t){return i.a.createElement(Dt,At({svgRef:t},e))})),Ut=(n.p,["svgRef","title"]);function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zt.apply(this,arguments)}function Gt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wt,Ht,Kt=function(e){var t=e.svgRef,n=e.title,r=Gt(e,Ut);return i.a.createElement("svg",zt({viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,Rt||(Rt=i.a.createElement("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"})),Mt||(Mt=i.a.createElement("path",{d:"M9 18h6"})),Ft||(Ft=i.a.createElement("path",{d:"M10 22h4"})))},Vt=i.a.forwardRef((function(e,t){return i.a.createElement(Kt,zt({svgRef:t},e))})),qt=(n.p,["svgRef","title"]);function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function Yt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xt,Qt=function(e){var t=e.svgRef,n=e.title,r=Yt(e,qt);return i.a.createElement("svg",$t({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Wt||(Wt=i.a.createElement("path",{d:"M12,9c-1.626,0-3,1.374-3,3s1.374,3,3,3s3-1.374,3-3S13.626,9,12,9z"})),Ht||(Ht=i.a.createElement("path",{d:"M20,5h-2.586l-2.707-2.707C14.52,2.105,14.266,2,14,2h-4C9.734,2,9.48,2.105,9.293,2.293L6.586,5H4C2.897,5,2,5.897,2,7v11 c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7C22,5.897,21.103,5,20,5z M12,17c-2.71,0-5-2.29-5-5c0-2.71,2.29-5,5-5s5,2.29,5,5 C17,14.71,14.71,17,12,17z"})))},Jt=i.a.forwardRef((function(e,t){return i.a.createElement(Qt,$t({svgRef:t},e))})),Zt=(n.p,["svgRef","title"]);function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},en.apply(this,arguments)}function tn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nn,rn=function(e){var t=e.svgRef,n=e.title,r=tn(e,Zt);return i.a.createElement("svg",en({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Xt||(Xt=i.a.createElement("path",{d:"M19.707 14.707c.286-.286.372-.716.217-1.09C19.77 13.244 19.404 13 19 13h-7v2h4.586l-4.293 4.293c-.286.286-.372.716-.217 1.09C12.23 20.756 12.596 21 13 21h7v-2h-4.586L19.707 14.707zM7 3.99L5 3.99 5 15.99 2 15.99 6 19.99 10 15.99 7 15.99zM17 3h-2c-.417 0-.79.259-.937.649l-2.75 7.333h2.137L14.193 9h3.613l.743 1.981h2.137l-2.75-7.333C17.79 3.259 17.417 3 17 3zM14.943 7l.75-2h.613l.75 2H14.943z"})))},on=i.a.forwardRef((function(e,t){return i.a.createElement(rn,en({svgRef:t},e))})),an=(n.p,["svgRef","title"]);function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}function un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ln,sn=function(e){var t=e.svgRef,n=e.title,r=un(e,an);return i.a.createElement("svg",cn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,nn||(nn=i.a.createElement("path",{d:"M6 20L10 16 7 16 7 4 5 4 5 16 2 16zM11 8H20V10H11zM11 12H18V14H11zM11 4H22V6H11zM11 16H16V18H11z"})))},fn=i.a.forwardRef((function(e,t){return i.a.createElement(sn,cn({svgRef:t},e))})),dn=(n.p,["svgRef","title"]);function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function hn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vn,mn,bn=function(e){var t=e.svgRef,n=e.title,r=hn(e,dn);return i.a.createElement("svg",pn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,ln||(ln=i.a.createElement("g",null,i.a.createElement("path",{d:"M79.7,31.7h0V8.7H13v54h42.6c3.2,2.2,7,3.5,11.2,3.5,10.8,0,19.6-8.8,19.6-19.6s-2.6-11.2-6.8-14.8ZM18.8,14.5h55v11.4H18.8v-11.4ZM18.8,31.7h35.2c-4.2,3.6-6.8,8.9-6.8,14.8s1.1,7.3,3,10.3h-31.3v-25.2ZM62.5,56.7l-8.6-9.3,4.3-4,4.6,4.9,13-12.1,4,4.3-17.3,16Z"}))))},yn=i.a.forwardRef((function(e,t){return i.a.createElement(bn,pn({svgRef:t},e))})),gn=(n.p,["svgRef","title"]);function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wn.apply(this,arguments)}function On(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var xn,jn,En,kn,Sn=function(e){var t=e.svgRef,n=e.title,r=On(e,gn);return i.a.createElement("svg",wn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,vn||(vn=i.a.createElement("path",{d:"M15,16c0.553,0,1-0.448,1-1V9c0-0.552-0.447-1-1-1H9C8.448,8,8,8.448,8,9v6c0,0.552,0.448,1,1,1H15z"})),mn||(mn=i.a.createElement("path",{d:"M5 16h1V8c0-1.104.896-2 2-2h8V5c0-1.104-.896-2-2-2H5C3.896 3 3 3.896 3 5v9C3 15.104 3.896 16 5 16zM8 19c0 1.104.896 2 2 2h9c1.104 0 2-.896 2-2v-9c0-1.104-.896-2-2-2h-1v8c0 1.104-.896 2-2 2H8V19z"})))},Ln=i.a.forwardRef((function(e,t){return i.a.createElement(Sn,wn({svgRef:t},e))})),Cn=(n.p,["svgRef","title"]);function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(this,arguments)}function In(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var _n,Nn=function(e){var t=e.svgRef,n=e.title,r=In(e,Cn);return i.a.createElement("svg",Tn({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,xn||(xn=i.a.createElement("line",{x1:2,x2:22,y1:2,y2:22})),jn||(jn=i.a.createElement("line",{x1:12,x2:12,y1:17,y2:22})),En||(En=i.a.createElement("path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12"})),kn||(kn=i.a.createElement("path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89"})))},An=i.a.forwardRef((function(e,t){return i.a.createElement(Nn,Tn({svgRef:t},e))})),Pn=(n.p,["svgRef","title"]);function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rn.apply(this,arguments)}function Mn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fn,Dn=function(e){var t=e.svgRef,n=e.title,r=Mn(e,Pn);return i.a.createElement("svg",Rn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,_n||(_n=i.a.createElement("g",null,i.a.createElement("path",{d:"M13,8.7v54h66.6V8.7H13ZM73.9,56.9H18.8v-25.2h55v25.2ZM18.8,25.9v-11.4h55v11.4H18.8Z"}))))},Bn=i.a.forwardRef((function(e,t){return i.a.createElement(Dn,Rn({svgRef:t},e))})),Un=(n.p,["svgRef","title"]);function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(this,arguments)}function Gn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=function(e){var t=e.svgRef,n=e.title,r=Gn(e,Un);return i.a.createElement("svg",zn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Fn||(Fn=i.a.createElement("g",null,i.a.createElement("path",{d:"M4.9,17.6v54h66.6V17.6H4.9ZM65.8,65.8H10.7v-25.2h55v25.2h0ZM10.7,34.8v-11.4h55v11.4H10.7Z"}),i.a.createElement("polygon",{points:"22.1 .4 22.1 6.2 57.8 6.2 57.8 6.2 82.9 6.2 82.9 54.4 88.7 54.4 88.7 .4 22.1 .4"}))))},Hn=i.a.forwardRef((function(e,t){return i.a.createElement(Wn,zn({svgRef:t},e))})),Kn=(n.p,n(89)),Vn=Object(Kn.a)(o.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),qn=Object(Kn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"}),"OfflineBolt"),$n=Object(Kn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zm0 17.96c-4.4 0-7.98-3.58-7.98-7.98S7.6 4.02 12 4.02 19.98 7.6 19.98 12 16.4 19.98 12 19.98zM12.75 5l-4.5 8.5h3.14V19l4.36-8.5h-3z"}),"OfflineBoltOutlined"),Yn=Object(Kn.a)(o.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),Xn=Object(Kn.a)(o.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),Qn=Object(Kn.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Jn=Object(Kn.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Zn=Object(Kn.a)(o.createElement("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zm-7-1h2v-4h4V9h-4V5h-2v4H9v2h4z"}),"AddToPhotosOutlined"),er=Object(Kn.a)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tr=Object(Kn.a)(o.createElement("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"}),"FavoriteBorder"),nr=Object(Kn.a)(o.createElement("path",{d:"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),rr=Object(Kn.a)(o.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),or=Object(Kn.a)(o.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff"),ir=Object(Kn.a)(o.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),ar=n(260),cr=Object(Kn.a)(o.createElement("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),ur=Object(Kn.a)(o.createElement("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline"),lr=Object(Kn.a)(o.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),sr=n(261),fr=Object(Kn.a)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),dr=Object(Kn.a)(o.createElement("path",{d:"M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"}),"MergeTypeOutlined"),pr=Object(Kn.a)(o.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),hr=Object(Kn.a)(o.createElement("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}),"VolumeOff"),vr=Object(Kn.a)(o.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),mr=Object(Kn.a)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block"),br=Object(Kn.a)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay"),yr=Object(Kn.a)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),gr=Object(Kn.a)(o.createElement("path",{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"}),"DoneAll"),wr=Object(Kn.a)(o.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share"),Or=Object(Kn.a)(o.createElement("path",{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline"),xr=Object(Kn.a)(o.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields"),jr=Object(Kn.a)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");n.d(t,"UrlIcon",(function(){return Er})),n.d(t,"BbcodeIcon",(function(){return kr})),n.d(t,"CsvIcon",(function(){return Sr})),n.d(t,"JsonIcon",(function(){return Lr})),n.d(t,"AudibleIcon",(function(){return Cr})),n.d(t,"BrowserIcon",(function(){return Tr})),n.d(t,"BackupIcon",(function(){return Ir})),n.d(t,"CollectionIcon",(function(){return _r})),n.d(t,"CopyIcon",(function(){return Nr})),n.d(t,"DefaultFavIconIcon",(function(){return Ar})),n.d(t,"DeleteIcon",(function(){return Pr})),n.d(t,"ExportIcon",(function(){return Rr})),n.d(t,"FileIcon",(function(){return Mr})),n.d(t,"FileBadIcon",(function(){return Fr})),n.d(t,"FileGoodIcon",(function(){return Dr})),n.d(t,"FlaskIcon",(function(){return Br})),n.d(t,"FolderIcon",(function(){return Ur})),n.d(t,"HeartIcon",(function(){return zr})),n.d(t,"HistoryIcon",(function(){return Gr})),n.d(t,"ImportIcon",(function(){return Wr})),n.d(t,"IncognitoIcon",(function(){return Hr})),n.d(t,"MarkdownIcon",(function(){return Kr})),n.d(t,"PasteIcon",(function(){return Vr})),n.d(t,"PinIcon",(function(){return qr})),n.d(t,"SearchIcon",(function(){return $r})),n.d(t,"SettingsIcon",(function(){return Yr})),n.d(t,"SnapshotIcon",(function(){return Xr})),n.d(t,"SortTitleIcon",(function(){return Qr})),n.d(t,"SortUrlIcon",(function(){return Jr})),n.d(t,"ThisWindowIcon",(function(){return Zr})),n.d(t,"TipIcon",(function(){return eo})),n.d(t,"UnifyIcon",(function(){return to})),n.d(t,"UnpinIcon",(function(){return no})),n.d(t,"WindowIcon",(function(){return ro})),n.d(t,"WindowsIcon",(function(){return oo})),n.d(t,"LinkIcon",(function(){return io})),n.d(t,"AutoDetectOnIcon",(function(){return qn})),n.d(t,"AutoDetectOffIcon",(function(){return $n})),n.d(t,"AddIcon",(function(){return Yn})),n.d(t,"AboutIcon",(function(){return Xn})),n.d(t,"CheckboxCheckedIcon",(function(){return Qn})),n.d(t,"CheckboxEmptyIcon",(function(){return Jn})),n.d(t,"CloneIcon",(function(){return Zn})),n.d(t,"CloseIcon",(function(){return er})),n.d(t,"CloseTabIcon",(function(){return er})),n.d(t,"DonateIcon",(function(){return tr})),n.d(t,"EditIcon",(function(){return nr})),n.d(t,"EnterIcon",(function(){return rr})),n.d(t,"ErrorIcon",(function(){return or})),n.d(t,"FilterIcon",(function(){return ir})),n.d(t,"GearIcon",(function(){return ar.a})),n.d(t,"GoToIcon",(function(){return cr})),n.d(t,"HelpIcon",(function(){return ur})),n.d(t,"HtmlIcon",(function(){return lr})),n.d(t,"ImageIcon",(function(){return sr.a})),n.d(t,"KebabIcon",(function(){return fr})),n.d(t,"MergeIcon",(function(){return dr})),n.d(t,"MoveToTopIcon",(function(){return pr})),n.d(t,"MutedIcon",(function(){return hr})),n.d(t,"NotFoundIcon",(function(){return or})),n.d(t,"RateIcon",(function(){return vr})),n.d(t,"RemoveIcon",(function(){return mr})),n.d(t,"RestoreIcon",(function(){return br})),n.d(t,"ArrowUpIcon",(function(){return yr})),n.d(t,"SelectDuplicatesIcon",(function(){return gr})),n.d(t,"ShareIcon",(function(){return wr})),n.d(t,"SuccessIcon",(function(){return Or})),n.d(t,"TitleIcon",(function(){return xr})),n.d(t,"WarningIcon",(function(){return jr}));var Er=function(){return i.a.createElement("span",{style:{fontWeight:600,letterSpacing:1}},"://")},kr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600}},"BB")},Sr=function(){return i.a.createElement("span",{style:{fontWeight:600,padding:"0 3px"}},'","')},Lr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600,padding:"0 3px"}},"{ }")},Cr=Object(a.a)(h),Tr=Object(a.a)(S),Ir=Object(a.a)(w,{noFill:!0}),_r=Object(a.a)(Object(a.d)(N,.86,.86)),Nr=Object(a.a)(G),Ar=Object(a.a)(W.a),Pr=Object(a.a)(Y,{noFill:!0}),Rr=Object(a.a)(ne),Mr=Object(a.a)(fe,{noFill:!0}),Fr=Object(a.a)(ge,{noFill:!0}),Dr=Object(a.a)(Le,{noFill:!0}),Br=Object(a.a)(Ae,{noFill:!0}),Ur=Object(a.a)(Be),zr=Object(a.a)(Object(a.d)(Ke,.9,.9)),Gr=Object(a.a)(Qe),Wr=Object(a.a)(rt),Hr=Object(a.a)(Object(a.d)(ft,.82,.82)),Kr=Object(a.a)(Object(a.d)(dt.a,1.1,1.4)),Vr=Object(a.a)(Object(a.d)(yt,.9,.9),{noFill:!0}),qr=Object(a.a)(kt),$r=Object(a.a)(_t),Yr=Object(a.a)(Bt),Xr=Object(a.a)(Jt),Qr=Object(a.a)(on),Jr=Object(a.a)(fn),Zr=Object(a.a)(yn),eo=Object(a.a)(Vt),to=Object(a.a)(Ln),no=Object(a.a)(Object(a.d)(An,.86,.86)),ro=Object(a.a)(Bn),oo=Object(a.a)(Hn),io=Object(a.c)(Vn,-45)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(68),o=n(16);function i(e){Object(o.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(91);function o(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(c)throw i}}}}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n.n(i),c=n(154),u=n.n(c),l=n(222),s=n(257),f=n(205),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,c=t.withTheme,d=void 0!==c&&c,p=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var v=p,m=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:v},h)),b=a.a.forwardRef((function(e,t){e.classes;var c,u=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),h=m(Object(r.a)({},n.defaultProps,e)),v=l;return("string"===typeof p||d)&&(c=Object(f.a)()||i,p&&(v=Object(s.a)({theme:c,name:p,props:l})),d&&!v.theme&&(v.theme=c)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},v))}));return u()(b,n),b}},p=n(143);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var r=n(3),o=n(14),i=n(1),a=n(90),c=n.n(a),u=n(12);function l(e,t){return t?Object.fromEntries(t.map((function(t){return[t,e[t]]})).filter((function(e){return void 0!==Object(o.a)(e,2)[1]}))):Object(i.a)({},e)}function s(e,t){return Object.fromEntries(Object.entries(e).filter((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return t(i,r)})))}function f(e){return s(e,(function(e){return null!=e}))}function d(e,t){return Object.fromEntries(Object.entries(e).map((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return[r,t(i,r)]})))}function p(e,t){if(c()(e)&&c()(t)||c()(e)&&void 0===t||void 0===e&&c()(t)){e=void 0===e?{}:e,t=void 0===t?{}:t;var n=Object(u.q)([].concat(Object(r.a)(Object.keys(e)),Object(r.a)(Object.keys(t))));return Object.fromEntries(n.map((function(n){return[n,p(e[n],t[n])]})))}return Object(u.c)([e,t])}function h(e){var t=e.slice(1);return t.length||(t=[void 0]),t.reduce(p,e[0])}function v(e,t){return void 0!==e[t]}function m(e,t){return void 0===e[t]}function b(e,t){for(var n=Object.assign({},e,t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];c()(e[i])&&c()(t[i])&&(n[i]=b(e[i],t[i]))}return n}function y(e){return Object.entries(e)}},function(e,t,n){e.exports=n(267)()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"g",(function(){return g})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"f",(function(){return j})),n.d(t,"c",(function(){return k})),n.d(t,"b",(function(){return L})),n.d(t,"e",(function(){return T}));var r,o,i,a,c=n(26),u=n(2),l=n(96),s=n.n(l),f=n(172),d=n.n(f);function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=null===(r=globalThis.chrome)||void 0===r||null===(o=r.storage)||void 0===o?void 0:o.local,v=null===(i=globalThis.chrome)||void 0===i||null===(a=i.storage)||void 0===a?void 0:a.session;function m(){return!!h}function b(e,t){return y.apply(this,arguments)}function y(){return(y=Object(u.a)(p().mark((function e(t,n){var r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=I(n)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,r.get(t);case 7:return e.t0=t,o=e.sent[e.t0],e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b(e,"session")}function w(e,t,n){return O.apply(this,arguments)}function O(){return(O=Object(u.a)(p().mark((function e(t,n,r){var o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=I(r)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:if(void 0!==n){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,o.set(Object(c.a)({},t,n));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e,t){return w(e,t,"session")}function j(e){return E.apply(this,arguments)}function E(){return(E=Object(u.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:if(null!=t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,h.remove(t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(){return S.apply(this,arguments)}function S(){return(S=Object(u.a)(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return",[]);case 2:if(!h.getKeys){e.next=4;break}return e.abrupt("return",h.getKeys());case 4:return e.next=6,h.get(null);case 6:return t=e.sent,e.abrupt("return",Object.keys(t));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return C.apply(this,arguments)}function C(){return(C=Object(u.a)(p().mark((function e(t){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null!==(n=null===h||void 0===h?void 0:h.getBytesInUse(t))&&void 0!==n?n:0);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throttle,o=void 0===r?0:r,i=n.skipInitial;if(h){var a=!0,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.rateLimit,r=t.listen,o="throttle"===(null===n||void 0===n?void 0:n.type)?s()(e,n.delay,{leading:!0,trailing:!0}):"debounce"===(null===n||void 0===n?void 0:n.type)?d()(e,n.delay):e;return function(e,t){"local"===t&&(r&&!r.some((function(t){return t in e}))||o(e))}}((function(n){a&&e in n&&t(n[e].newValue)}),{rateLimit:{type:"throttle",delay:o},listen:[e]});return i||b(e).then((function(e){a&&t(e)})),globalThis.chrome.storage.onChanged.addListener(c),function(){a=!1,globalThis.chrome.storage.onChanged.removeListener(c)}}}function I(e){return"session"===e?v:h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return v}));var r=n(57),o=n(11),i=n(7),a=n(17),c=n(56),u=n(63),l=n(112),s=n(156),f=n(163),d=n(99),p=Object(r.a)({reducer:{content:i.b,settings:a.h,notification:c.c,confirmation:u.b,setEdit:l.b,itemEdit:s.b,unitAddSession:f.a,criticalError:d.c}}),h=o.b,v=o.c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(2),o=n(14),i=n(0),a=n(110),c=n(144);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l,s={},f=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){d().then((function(e){r(e)}))}),[]),n};function d(){return l||(l=function(){return p.apply(this,arguments)}()),l}function p(){return(p=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.id||!s.settings){e.next=2;break}return e.abrupt("return",s);case 2:return t=Object(a.a)(c.a),e.next=5,t.get("clientId");case 5:if(s.id=e.sent,s.id){e.next=8;break}throw new Error("local db does not specify a client id");case 8:return e.next=10,t.get("clientCreated");case 10:return s.created=e.sent,s.settings=t,e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(1),o=n(14),i=n(201),a=n.n(i),c=n(12);function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(c.q)(t.map((function(e){return a()(e)?Object.entries(e).filter((function(e){return Object(o.a)(e,2)[1]})).map((function(e){return Object(o.a)(e,1)[0]})):e})).flat()).join(" ").trim()}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return e?"".concat(e,"px"):0})).join(" ")}function s(e){return{display:"-webkit-box","-webkit-line-clamp":e,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis"}}function f(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.thickness,n=void 0===t?7:t,o=e.spacing,i=void 0===o?3:o,a=e.color,c=void 0===a?"transparent":a,u=e.hoverColor,l=e.focusColor,s=e.backgroundColor,f=void 0===s?"transparent":s,d=n+2*i;return Object(r.a)(Object(r.a)({"&::-webkit-scrollbar-track":{backgroundColor:f},"&::-webkit-scrollbar-track-piece":{backgroundColor:f},"&::-webkit-scrollbar":{width:d,height:d},"&::-webkit-scrollbar-thumb":{borderRadius:1e3,backgroundColor:c,border:"".concat(i,"px solid ").concat(f),backgroundClip:"padding-box"},"&::-webkit-scrollbar-corner":{backgroundColor:f},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(c," 50% 100%)"),border:"6px solid ".concat(f)}},u?{"&:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:u},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(u," 50% 100%)")}}}:null),l?{"&:focus, &:focus:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:l},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(l," 50% 100%)")}}}:null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(204);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var o=n(12);n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=["http","https","www","file"];function a(e){return e?c(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text").matchParts.length:0}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";if(!(null===t||void 0===t?void 0:t.length)||!e)return{parts:e?[e]:[],matchParts:[]};var a=t.map((function(e){return e.toLowerCase()})),c=Object(o.q)("url"===n?a.filter((function(e){return!i.includes(e)})):a),u="text"===n?function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c):function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c),l=u.filter((function(e){return c.includes(e.toLowerCase())}));return{parts:u,matchParts:l}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),o=n(14),i=n(0),a=n.n(i),c=n(184),u=n(176),l=n.n(u),s=n(221),f=function(e){return e?{minWidth:0,padding:12,borderRadius:1e3}:void 0},d=function(e){var t=e.selected,n=e.selectedColor,r=e.standardColor,o=e.stateTreatment,i=e.disabled,a=e.palette;if(t&&!i){if("primary"===n||"secondary"===n)return p(n,o,a);if("hover"===n&&r)return p(r,o,a);var c=a.nxsAction[n]||a.nxsAction.hover||a.nxsAction.focus||a.nxsAction.active||a.nxsAction.selected;return{color:c.contrastText,backgroundColor:c.main}}},p=function(e,t,n){return{color:n[e].contrastText,backgroundColor:n[e][h(t,n.type)]}},h=function(e,t){return"dark"===e||"light"===e?e:"match"===e?t:"dark"===t?"light":"dark"},v=l()((function(e){var t=e.selected,n=e.selectedColor,o=e.label,i=e.stateTreatment,a=e.round,u=e.standardColor,l=e.disabled;return Object(c.a)((function(e){return{Button:Object(r.a)(Object(r.a)({transition:e.transitions.create(["background-color"],{duration:e.transitions.duration.shortest}),minWidth:76},f(a)),{},{"&&&&":Object(r.a)({},d({selected:t,selectedColor:n,standardColor:u,stateTreatment:i,disabled:l,palette:e.palette}))}),text:{padding:a?void 0:"6px 16px","&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},outlined:{"&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},contained:{"&.Mui-disabled":{backgroundColor:"transparent"}},containedPrimary:{"&:hover, &:focus, &:active":p("primary",i,e.palette)},containedSecondary:{"&:hover, &:focus, &:active":p("secondary",i,e.palette)},startIcon:{marginRight:o?void 0:0,marginLeft:o?void 0:0}}}))}),(function(e){var t=e.selected,n=e.selectedColor,r=e.label,o=e.stateTreatment,i=e.round,a=e.standardColor,c=e.disabled;return"".concat(i,"*").concat(t,"*").concat(c,"*").concat(o,"*").concat(n,"*").concat(a||"","*").concat(r)})),m=function(e){var t=e.round,n=void 0!==t&&t,r=e.color,i=e.outlined,c=e.selected,u=void 0!==c&&c,l=e.selectedColor,f=void 0===l?"selected":l,d=e.icon,p=e.label,h=void 0===p?"":p,m=e.className,b=e.onClick,y=e.disabled,g=void 0!==y&&y,w=e.size,O=e.type,x=e.autoFocus,j=e.tabIndex,E=e.link,k=function(e){var t=(e||"").split("-"),n=Object(o.a)(t,2),r=n[0],i=n[1];return{standardColor:r||void 0,stateTreatment:void 0===i?"invert":i}}(r),S=k.standardColor,L=k.stateTreatment,C=v({selected:u,selectedColor:f,label:h,stateTreatment:L,round:n,standardColor:S,disabled:g})(),T=a.a.createElement(s.a,{className:m,classes:{root:C.Button,text:C.text,outlined:C.outlined,contained:C.contained,containedPrimary:C.containedPrimary,containedSecondary:C.containedSecondary,startIcon:C.startIcon},color:S,startIcon:d,variant:S?"contained":i?"outlined":"text",onClick:function(e){(null===b||void 0===b?void 0:b(e))&&e.currentTarget.blur(),e.stopPropagation()},disabled:g,size:w,type:O,autoFocus:x,tabIndex:j},h);return E?a.a.createElement("a",{tabIndex:-1,href:E,target:"_blank",rel:"noopener"},T):T}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(0),o=n.n(r),i=n(184),a=Object(i.a)((function(){return{root:{fill:function(e){return e.noFill?"none":"currentColor"},width:"1em",height:"1em",display:"inline-block",fontSize:"1.5rem",transition:"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",flexShrink:0,userSelect:"none"}}}));function c(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).noFill,n=void 0!==t&&t;return function(t){var r=a({noFill:n});return o.a.createElement(e,Object.assign({className:r.root},t))}}var u=Object(i.a)((function(){return{root:{padding:1,boxSizing:"border-box"}}}));function l(e){return function(t){var n=u();return o.a.createElement(e,Object.assign({className:n.root},t))}}function s(e,t){return function(n){return o.a.createElement(e,Object.assign({},n,{style:{rotate:"".concat(t,"deg")}}))}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(r){return o.a.createElement(e,Object.assign({},r,{style:{scale:"".concat(t," ").concat(n)}}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(10),o=10;function i(e,t,n,o){var i=e.count,a=void 0===i?1:i,c=e.includeCount,u=void 0!==c&&c;return 1===a?u?"1 ".concat(t):t:0===a&&o?u?o.withCount:o.bare:u?"".concat(r.a.integer(a)," ").concat(n):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),o=n(35),i={tabsSaved:function(){return"".concat(r.a.tab({count:o.a})," saved")},collectionSaved:function(){return"".concat(r.a.collection()," saved")},collectionCloned:function(){return"".concat(r.a.collection()," cloned")},collectionsCombined:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," combined")},collectionDeleted:function(e){return e?"".concat(r.a.collection(),' "').concat(e,'" deleted'):"".concat(r.a.collection()," deleted")},collectionsDeleted:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," deleted")},tryAgain:function(){return"try again"},failedToDeleteCollection:function(e){return e?"failed to delete ".concat(r.a.collection(),' "').concat(e,'"'):"failed to delete ".concat(r.a.collection())},failedToDeleteCollections:function(e){return"failed to delete ".concat(r.a.collection({count:e,includeCount:!0}))},failedToDeleteEvents:function(e){return"failed to delete ".concat(r.a.event({count:e,includeCount:!0}))},failedToSaveTabs:function(){return"failed to save ".concat(r.a.tab({count:o.a}))},failedToSaveCollection:function(){return"failed to save ".concat(r.a.collection())},failedToCloneCollection:function(){return"failed to clone ".concat(r.a.collection())},failedToCombineCollections:function(){return"failed to combine ".concat(r.a.collection({count:o.a}))},failedToUpdateCollection:function(){return"failed to update ".concat(r.a.collection())},inSet:function(e){var t=e.type,n=e.title,o=e.idx,i=e.totalCount;return"in ".concat(r.a[t]()," ").concat(n?'"'.concat(n,'" '):"","(").concat(o+1," of ").concat(i,")")}}},function(e,t,n){"use strict";var r=function(e){return crypto.getRandomValues(new Uint8Array(e))};n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i=function(e){return function(e,t,n){var r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return function(){for(var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a="";;)for(var c=n(o),u=o;u--;)if((a+=e[c[u]&r]||"").length===i)return a}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,r)}(o,23);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Math.floor((o.indexOf(e[0])+1)/o.length*100)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return Math.max(o.indexOf(e[0]),0)%t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return g}));var r=n(14),o=n(26),i=n(1),a=n(2),c=n(0),u=n(29),l=n(131),s=n(46),f=n(27),d=n(145);function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=function(){var e=Object(a.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v([t]);case 2:return e.t0=t,e.abrupt("return",e.sent[e.t0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return n=e.sent,r=n.settings,e.next=6,r.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return o=e.t0,e.abrupt("return",b({keys:t,savedExperiments:o}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=Object(a.a)(p().mark((function e(t,n){var r,a,c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return r=e.sent,a=r.settings,e.next=6,a.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return c=e.t0,e.next=12,a.set("experiments",Object(i.a)(Object(i.a)({},c),{},Object(o.a)({},t,n)));case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function b(e){var t=e.keys,n=e.savedExperiments,r={};return d.a.filter((function(e){var n=e.key;return!t||t.includes(n)})).forEach((function(e){var t=n[e.key];r[e.key]=null==t?e.defaultValue:"number"===typeof t?Object(s.a)(t,"min"in e&&"number"===typeof e.min?e.min:void 0,"max"in e&&"number"===typeof e.max?e.max:void 0):t})),r}var y={"collection-fetch-all":"collectionFetchAll","collection-fetch-count-initial":"collectionFetchCountInitial","collection-fetch-count-lazy":"collectionFetchCountLazy","copy-collections-max":"copyCollectionsMax","history-fetch-all":"historyFetchAll","history-fetch-count-initial":"historyFetchCountInitial","history-fetch-count-lazy":"historyFetchCountLazy","ingest-max-size":"ingestMaxSize","omit-sb-title-suffix":"omitSbTitleSuffix","optimized-open-delay":"optimizedOpenDelay","optimized-open-threshold":"optimizedOpenThreshold","remove-title-suffixes":"removeTitleSuffixes","use-theme-sensitive-favicons":"useThemeSensitiveFavicons","warn-on-open-tab-count":"warnOnOpenTabCount"},g=function(){Object(c.useEffect)((function(){try{navigator.locks.request("migrateExperiments",{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Object(u.b)();case 5:return n=e.sent,r=n.settings,e.next=9,r.get("enableAutoBackup");case 9:if(!1!==(o=e.sent)){e.next=21;break}return e.next=13,r.get("experiments");case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0={};case 16:return a=e.t0,e.next=19,r.set("experiments",Object(i.a)(Object(i.a)({},a),{},{enableAutoBackup:o}));case 19:return e.next=21,r.set("enableAutoBackup",!0);case 21:e.next=25;break;case 23:e.prev=23,e.t1=e.catch(2);case 25:return e.prev=25,e.next=28,Object(f.f)("debug");case 28:e.next=32;break;case 30:e.prev=30,e.t2=e.catch(25);case 32:return e.next=34,w();case 34:e.sent&&Object(l.b)();case 36:case"end":return e.stop()}}),e,null,[[2,23],[25,30]])})));return function(t){return e.apply(this,arguments)}}()).then((function(){var e=!1;window.addEventListener("storage",(function(t){var n;e||(null===(n=t.key)||void 0===n?void 0:n.startsWith("nxs.experiment."))&&null!=t.newValue&&(console.log("%cTo update an experiment, go to ".concat(window.location.origin,"/experiments.html"),"background:#af2c1a;color:white;padding:8px 12px;border-radius:8px;"),e=!0)}))}))}catch(e){console.error(e)}}),[])};function w(){return O.apply(this,arguments)}function O(){return(O=Object(a.a)(p().mark((function e(){var t,n,o,a,c,l,s,f,h,v,m,b,g,w,O;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(globalThis.localStorage){e.next=2;break}return e.abrupt("return");case 2:if(t=Object.keys(y).map((function(e){return[e,globalThis.localStorage.getItem("nxs.experiment.".concat(e))]})).filter((function(e){return null!=Object(r.a)(e,2)[1]})),t.length){e.next=5;break}return e.abrupt("return");case 5:return n=Object.fromEntries(t.map((function(e){var t=Object(r.a)(e,2),n=t[0],o=t[1];return[y[n],"true"===o||"false"!==o&&parseInt(null!==o&&void 0!==o?o:"",10)]})).filter((function(e){var t=Object(r.a)(e,2)[1];return!Number.isNaN(t)}))),e.next=8,Object(u.b)();case 8:return o=e.sent,a=o.settings,e.next=12,a.get("experiments");case 12:if(e.t0=e.sent,e.t0){e.next=15;break}e.t0={};case 15:return c=e.t0,e.next=18,a.set("experiments",Object(i.a)(Object(i.a)({},c),n));case 18:for(l=[],s=0;s<globalThis.localStorage.length;s++)(null===(f=globalThis.localStorage.key(s))||void 0===f?void 0:f.startsWith("nxs.experiment."))&&l.push(f);for(h=0,v=l;h<v.length;h++)m=v[h],globalThis.localStorage.removeItem(m);b=!1,g=p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=O[w],!((n=d.a.find((function(e){return e.key===t})))&&"requiresReload"in n&&n.requiresReload)){e.next=5;break}return b=!0,e.abrupt("return","break");case 5:case"end":return e.stop()}}),e)})),w=0,O=Object.keys(n);case 24:if(!(w<O.length)){e.next=32;break}return e.delegateYield(g(),"t1",26);case 26:if("break"!==e.t1){e.next=29;break}return e.abrupt("break",32);case 29:w++,e.next=24;break;case 32:return e.abrupt("return",b);case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},,function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"m",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"p",(function(){return f})),n.d(t,"k",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return m})),n.d(t,"h",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return w})),n.d(t,"q",(function(){return x})),n.d(t,"a",(function(){return j})),n.d(t,"o",(function(){return E}));var r=n(13),o=["/","?","#",":"],i=[".jpg",".jpeg",".png",".apng",".gif",".svg",".webp",".bmp",".ico"],a=["jpeg","png","apng","gif","svg+xml","webp","bmp"];function c(e,t){return e.startsWith(t)&&(e.length===t.length||o.includes(e[t.length]))}function u(e){try{return new URL(e)}catch(t){}return{}}function l(e){var t,n;return Array.from(null!==(t=null===(n=u(e).searchParams)||void 0===n?void 0:n.entries())&&void 0!==t?t:[])}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.substring(0,e.indexOf(":"))}function f(e){return Object(r.g)(Object(r.g)(e,"#"),"?")}function d(e){return"canParse"in URL?URL.canParse(e):p(e)||v(e)||!!(t=e)&&(t.startsWith("chrome://")||t.startsWith("brave://")||t.startsWith("edge://")||t.startsWith("opera://"))||m(e)||h(e)||function(e){return!!e&&e.startsWith("ftp://")}(e);var t}function p(e){return!!e&&(e.startsWith("https://")||e.startsWith("http://"))}function h(e){return!!e&&e.startsWith("data:")}function v(e){return!!e&&e.startsWith("file://")}function m(e){return!!e&&(e.startsWith("chrome-extension://")||e.startsWith("moz-extension://")||e.startsWith("extension://"))}function b(e){return!!e&&e.startsWith("javascript:")}function y(e){if(!e)return!1;var t="string"===typeof e?u(e):e,n=t.pathname,r=t.href;return!!(n&&r&&!h(r)&&i.some((function(e){return n.endsWith(e)}))||h(r)&&a.some((function(e){return r.startsWith("data:image/".concat(e,";base64,"))})))}function g(e){return O(e,["pdf"])}function w(e){return O(e,["md","markdown"])}function O(e,t){if(!e)return!1;var n=("string"===typeof e?u(e):e).pathname;return!!n&&t.some((function(e){return n.endsWith(".".concat(e))}))}function x(e){var t=e.url,n=e.key,r=e.value,o=new URL(t);return o.searchParams.set(n,r),o.toString()}function j(e){var t=e.url,n=e.key,r=new URL(t);return r.searchParams.delete(n),r.toString()}function E(e){window.history.pushState(null,"",e)}},,function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[q]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||d(e)||p(e))}function a(e,t,n){void 0===n&&(n=!1),0===c(e)?(n?Object.keys:Y)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function c(e){var t=e[q];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function u(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===c(e)?e.get(t):e[t]}function s(e,t,n){var r=c(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return G&&e instanceof Map}function p(e){return W&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[q];for(var n=Y(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),y(e)||o(e)||!i(e)||(c(e)>1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0)),e}function b(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(e){var t=Q[e];return t||r(18,e),t}function w(e,t){Q[e]||(Q[e]=t)}function O(){return U}function x(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){E(e),e.p.forEach(S),e.p=null}function E(e){e===U&&(U=e.l)}function k(e){return U={p:[],l:U,h:e,m:!0,_:0}}function S(e){var t=e[q];0===t.i||1===t.i?t.j():t.g=!0}function L(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||g("ES5").S(t,e,o),o?(n[q].P&&(j(t),r(4)),i(e)&&(e=C(t,e),t.l||I(t,e)),t.u&&g("Patches").M(n[q].t,e,t.u,t.s)):e=C(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==K?e:void 0}function C(e,t,n){if(y(t))return t;var r=t[q];if(!r)return a(t,(function(o,i){return T(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return I(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o,i=o,c=!1;3===r.i&&(i=new Set(o),o.clear(),c=!0),a(i,(function(t,i){return T(e,r,o,t,i,n,c)})),I(e,o,!1),n&&e.u&&g("Patches").N(r,n,e.u,e.s)}return r.o}function T(e,t,n,r,a,c,l){if(o(a)){var f=C(e,a,c&&t&&3!==t.i&&!u(t.R,r)?c.concat(r):void 0);if(s(n,r,f),!o(f))return;e.m=!1}else l&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;C(e,a),t&&t.A.l||I(e,a)}}function I(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function _(e,t){var n=e[q];return(n?h(n):e)[t]}function N(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function A(e){e.P||(e.P=!0,e.l&&A(e.l))}function P(e){e.o||(e.o=v(e.t))}function R(e,t,n){var r=d(t)?g("MapSet").F(t,n):p(t)?g("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:O(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Z);var a=Proxy.revocable(o,i),c=a.revoke,u=a.proxy;return r.k=u,r.j=c,u}(t,n):g("ES5").J(t,n);return(n?n.A:O()).p.push(r),r}function M(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[q],o=c(t);if(r){if(!r.P&&(r.i<4||!g("ES5").K(r)))return r.t;r.I=!0,n=F(t,o),r.I=!1}else n=F(t,o);return a(n,(function(t,o){r&&l(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function F(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}function D(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[q];return J.get(t,e)},set:function(t){var n=this[q];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][q];if(!o.P)switch(o.i){case 5:r(o)&&A(o);break;case 4:n(o)&&A(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==q){var a=t[i];if(void 0===a&&!u(t,i))return!0;var c=n[i],l=c&&c[q];if(l?l.t!==a:!f(c,a))return!0}}var s=!!t[q];return r.length!==Y(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};w("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=X(n);delete i[q];for(var a=Y(i),c=0;c<a.length;c++){var u=a[c];i[u]=e(u,t||!!i[u].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:O(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,q,{value:i,writable:!0}),o},S:function(e,n,i){i?o(n)&&n[q].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[q];if(n){var o=n.t,i=n.k,c=n.R,l=n.i;if(4===l)a(i,(function(t){t!==q&&(void 0!==o[t]||u(o,t)?c[t]||e(i[t]):(c[t]=!0,A(n)))})),a(o,(function(e){void 0!==i[e]||u(i,e)||(c[e]=!1,A(n))}));else if(5===l){if(r(n)&&(A(n),c.length=!0),i.length<o.length)for(var s=i.length;s<o.length;s++)c[s]=!1;else for(var f=o.length;f<i.length;f++)c[f]=!0;for(var d=Math.min(i.length,o.length),p=0;p<d;p++)i.hasOwnProperty(p)||(c[p]=!0),void 0===c[p]&&e(i[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return M})),n.d(t,"c",(function(){return D})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i}));var B,U,z="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),G="undefined"!=typeof Map,W="undefined"!=typeof Set,H="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,K=z?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),V=z?Symbol.for("immer-draftable"):"__$immer_draftable",q=z?Symbol.for("immer-state"):"__$immer_state",$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Q={},J={get:function(e,t){if(t===q)return e;var n=h(e);if(!u(n,t))return function(e,t,n){var r,o=N(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===_(e.t,t)?(P(e),e.o[t]=R(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=N(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=_(h(e),t),i=null==o?void 0:o[q];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(f(n,o)&&(void 0!==n||u(e.t,t)))return!0;P(e),A(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==_(e.t,t)||t in e.t?(e.R[t]=!1,P(e),A(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};a(J,(function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(e,t){return Z.set.call(this,e,t,void 0)},Z.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=H,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var c=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return c.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var u;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var l=k(t),s=R(t,e,void 0),f=!0;try{u=n(s),f=!1}finally{f?j(l):E(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return x(l,o),L(e,l)}),(function(e){throw j(l),e})):(x(l,o),L(u,l))}if(!e||"object"!=typeof e){if(void 0===(u=n(e))&&(u=e),u===K&&(u=void 0),t.D&&m(u,!0),o){var d=[],p=[];g("Patches").M(e,u,d,p),o(d,p)}return u}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=M(e));var t=k(this),n=R(this,e,void 0);return n[q].C=!0,E(t),n},t.finishDraft=function(e,t){var n=(e&&e[q]).A;return x(n,t),L(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!H&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=g("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);t.b=ne},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(103);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(3),o=n(1),i=n(174),a=n(32),c=n(12);function u(e){if(!(null===e||void 0===e?void 0:e.trim()))return null;var t=Object(i.parse)(e.toLowerCase(),{keywords:["collection","folder","link","history","window","tab"],tokenize:!0,alwaysArray:!0,offsets:!1}),n=Object(c.q)((t.text||[]).filter(b)),r=Object(c.q)((t.collection||[]).filter(b)),o=Object(c.q)((t.folder||[]).filter(b)),a=Object(c.q)((t.link||[]).filter(b)),u=Object(c.q)((t.history||[]).filter(b)),l=Object(c.q)((t.window||[]).filter(b)),s=Object(c.q)((t.tab||[]).filter(b));return n.length||r.length||o.length||a.length||u.length||l.length||s.length?{free:n,collection:r,folder:o,link:a,history:u,window:l,tab:s}:null}function l(e,t){var n,r,o,i;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(r=e.score)&&void 0!==r?r:0)||(null!==(o=t.secondaryScore)&&void 0!==o?o:0)-(null!==(i=e.secondaryScore)&&void 0!==i?i:0)}function s(e){return"tab"===e.type||"link"===e.type}function f(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{tabs:(e.tabs||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.tabs.length}))}function d(e,t,n){return t?e.map((function(e){var i=Object(o.a)({},e);if(e.title){var c=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window)));c.matchParts.length&&(i.titleSplit=c)}return Object(o.a)(Object(o.a)({},i),{},{tabs:p(e.tabs||[],t,n)})})):e}function p(e,t,n){return e.map((function(e){var i=Object(o.a)({},e),c=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)),"url");c.matchParts.length&&(i.urlSplit=c);var u=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)));return u.matchParts.length&&(i.titleSplit=u),i}))}function h(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{links:(e.links||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.links.length}))}function v(e,t){return t?e.map((function(e){var n=Object(o.a)({},e);if(e.title){var i=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder)));i.matchParts.length&&(n.titleSplit=i)}return Object(o.a)(Object(o.a)({},n),{},{links:m(e.links||[],t)})})):e}function m(e,t){return e.map((function(e){var n=Object(o.a)({},e),i=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)),"url");i.matchParts.length&&(n.urlSplit=i);var c=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)));return c.matchParts.length&&(n.titleSplit=c),n}))}function b(e){return e.length>1}},function(e,t,n){"use strict";function r(e){return"number"===typeof e&&Number.isFinite(e)}function o(e){return Number.isSafeInteger(e)}function i(e,t){return e-t}function a(e,t,n){var r=e;return null!=t&&(r=Math.max(r,t)),null!=n&&(r=Math.min(r,n)),r}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return x}));var r=n(2),o=n(22),i=n(107),a=n(12),c=n(70),u=n(5),l=n(6);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){return{selectedUnitIds:[],selectedGroupIds:[]}},d=function(e,t){var n=t.payload,r=n.groupIds,i=void 0===r?[]:r,a=n.unitIds,c=void 0===a?[]:a,s=n.additive,f=n.allGroups,d=n.favorUnits;if(e.items.selectedGroupIds=Object(l.x)(e.items.selectedGroupIds,i,s),e.items.selectedUnitIds=Object(l.x)(e.items.selectedUnitIds,c,s),(i.length&&c.length||s)&&f){var h,v=f.filter((function(t){var n=t.id;return e.items.selectedGroupIds.includes(n)})),m=Object(o.a)(v);try{for(m.s();!(h=m.n()).done;){var b=h.value,y=Object(u.u)(b).map((function(e){return e.id}));if(d)y.some((function(t){return e.items.selectedUnitIds.includes(t)}))&&p(e,{payload:{groupIds:[b.id]}});else p(e,{payload:{unitIds:y}})}}catch(g){m.e(g)}finally{m.f()}}},p=function(e,t){var n=t.payload,r=n.groupIds,o=void 0===r?[]:r,i=n.unitIds,c=void 0===i?[]:i;e.items.selectedGroupIds=Object(a.k)(e.items.selectedGroupIds,o),e.items.selectedUnitIds=Object(a.k)(e.items.selectedUnitIds,c)},h=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedUnitIds.includes(r)?p(e,{payload:{unitIds:[r]}}):d(e,{payload:{unitIds:[r],additive:!0,allGroups:o,favorUnits:!0}})},v=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedGroupIds.includes(r)?p(e,{payload:{groupIds:[r]}}):d(e,{payload:{groupIds:[r],additive:!0,allGroups:o}})},m=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=Object(u.r)(i),f=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?s.filter((function(e){return e.titleSplit||e.urlSplit})):s,p=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedUnitIds),allItems:f.map((function(e){return e.id}))});d(e,{payload:{unitIds:p,additive:o,allGroups:i,favorUnits:!0}})},b=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?i.filter((function(e){return e.titleSplit||Object(u.u)(e).some((function(e){return e.titleSplit||e.urlSplit}))})):i,f=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedGroupIds),allItems:s.map((function(e){return e.id}))});d(e,{payload:{groupIds:f,additive:o,allGroups:i}})},y=function(e){e.items.selectedUnitIds.length=0,e.items.selectedGroupIds.length=0},g=function(e){(function(e){return!e.selectedUnitIds.length&&!e.selectedGroupIds.length})(e.items)||(e.items=f())},w=["itemsSelected"];function O(e){return{selectPrevItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=x.beforeSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=9;break}if(!(d=Object(u.r)(n.folders||n.windows)[0])||!l.includes(d.id)){r.next=9;break}return r.abrupt("return","scroll-top");case 9:if(!f.length){r.next=13;break}if(!(p=(n.folders||n.windows)[0])||!f.includes(p.id)){r.next=13;break}return r.abrupt("return","scroll-top");case 13:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectNextItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=x.afterSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=15;break}if(d=Object(u.r)(n.folders||n.windows),!(p=d[0])||!l.includes(p.id)){r.next=10;break}return r.abrupt("return","scroll-top");case 10:if(!(h=d.at(-1))||!l.includes(h.id)){r.next=13;break}return r.abrupt("return","scroll-bottom");case 13:r.next=19;break;case 15:if(!f.length){r.next=19;break}if(!(v=(n.folders||n.windows)[0])||!f.includes(v.id)){r.next=19;break}return r.abrupt("return","scroll-top");case 19:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectGroupUnit:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v,m,b,y,g,w,O,x,j,E,k,S,L,C;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?o(e.itemsSelected({unitIds:[l]})):null!=(f=c.items.selectedGroupIds.at(-1))?(d=(n.folders||n.windows).find((function(e){return e.id===f})))&&(p=Object(u.u)(d)[0])&&o(e.itemsSelected({unitIds:[p.id]})):o(t(n)),!(h=i().content.items.selectedUnitIds).length){r.next=11;break}if(!(L=(null===(v=n.folders)||void 0===v||null===(m=v[0])||void 0===m||null===(b=m.links)||void 0===b?void 0:b[0])||(null===(y=n.windows)||void 0===y||null===(g=y[0])||void 0===g||null===(w=g.tabs)||void 0===w?void 0:w[0]))||!h.includes(L.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:if(!(C=(null===(O=n.folders)||void 0===O||null===(x=O.at(-1))||void 0===x||null===(j=x.links)||void 0===j?void 0:j.at(-1))||(null===(E=n.windows)||void 0===E||null===(k=E.at(-1))||void 0===k||null===(S=k.tabs)||void 0===S?void 0:S.at(-1)))||!h.includes(C.id)){r.next=11;break}return r.abrupt("return","scroll-bottom");case 11:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectUnitGroup:function(t){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?(f=Object(u.p)(t.folders||t.windows,(function(e){return e.id===l})),(d=null===f||void 0===f?void 0:f.group)&&o(e.itemsSelected({groupIds:[d.id]}))):(p=c.items.selectedGroupIds.at(-1),o(null!=p?e.itemsSelected({groupIds:[p]}):n(t))),!(h=i().content.items.selectedGroupIds).length){r.next=8;break}if(!(v=(t.folders||t.windows)[0])||!h.includes(v.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstItem:function(e){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,u,l,f;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){r.next=6;break}return o(t(e)),l=i().content.items.selectedUnitIds,1===c.length&&1===l.length&&c[0]===l[0]&&o(n(e)),r.abrupt("return");case 6:o(n(e)),f=i().content.items.selectedGroupIds,1===u.length&&1===f.length&&u[0]===f[0]&&o(t(e));case 9:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstUnit:t,selectFirstGroup:n,selectLastItem:function(e){return function(){var t=Object(r.a)(s().mark((function t(n,r){var a,c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){t.next=3;break}return t.abrupt("return",n(o(e)));case 3:n(i(e));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},selectLastUnit:o,selectLastGroup:i};function t(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r[0])||void 0===o||null===(i=o.links)||void 0===i?void 0:i[0])||(null===(a=t.windows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u[0]);l&&n(e.itemsSelected({unitIds:[l.id]}))}}function n(t){return function(n){var r=(t.folders||t.windows)[0];r&&n(e.itemsSelected({groupIds:[r.id]}))}}function o(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r.at(-1))||void 0===o||null===(i=o.links)||void 0===i?void 0:i.at(-1))||(null===(a=t.windows)||void 0===a||null===(c=a.at(-1))||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u.at(-1));l&&n(e.itemsSelected({unitIds:[l.id]}))}}function i(t){return function(n){var r=(t.folders||t.windows).at(-1);r&&n(e.itemsSelected({groupIds:[r.id]}))}}}var x={itemSelections:Object(i.a)((function(e){return e.content.items}),(function(e){return{unitIds:e.selectedUnitIds,groupIds:e.selectedGroupIds}})),hasItemSelection:function(e){var t=e.content;return t.items.selectedUnitIds.length>0||t.items.selectedGroupIds.length>0},beforeSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f-1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,m=v.findIndex((function(e){return e.id===p}));if(m<0)return;var b=v[m-1];if(b)return{groupIds:[b.id]};if(i)return{groupIds:[p]}}},afterSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f+1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,m=v.findIndex((function(e){return e.id===p}));if(m<0)return;var b=v[m+1];if(b)return{groupIds:[b.id]};if(i)return{groupIds:[p]}}}}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(215)},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"l",(function(){return L})),n.d(t,"c",(function(){return C})),n.d(t,"j",(function(){return T})),n.d(t,"i",(function(){return I})),n.d(t,"k",(function(){return _})),n.d(t,"h",(function(){return N})),n.d(t,"o",(function(){return A})),n.d(t,"n",(function(){return P})),n.d(t,"p",(function(){return R})),n.d(t,"f",(function(){return M})),n.d(t,"g",(function(){return F})),n.d(t,"e",(function(){return D})),n.d(t,"d",(function(){return B})),n.d(t,"q",(function(){return U})),n.d(t,"b",(function(){return z})),n.d(t,"m",(function(){return W})),n.d(t,"r",(function(){return H}));var r=n(2),o=n(3),i=n(1),a=n(5),c=n(51),u=n(56),l=n(63),s=n(99),f=n(8),d=n(12),p=n(24),h=n(79),v=n(81),m=n(18),b=n(9),y=n(10),g=n(39),w=n(47),O=n(6),x=n(36);function j(){j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var E,k=250,S=0,L=function(){return S},C=function(e,t){var n=t.payload;e.sets.selectedClientHistoryItemId=n,Object(w.e)(e)},T=function(e){e.sets.clientHistory.navSetsLoading=!0},I=function(e){e.sets.clientHistory.navSetsLoading&&(e.sets.clientHistory.navSetsLoadingLong=!0)},_=function(e,t){var n=t.payload,r=n.fetchedEvents,o=n.exhausted;r.forEach((function(t){t.id&&(e.sets.clientHistory.sets[t.id]=Object(i.a)(Object(i.a)(Object(i.a)({},e.sets.clientHistory.sets[t.id]),t),{},{loaded:Object(f.m)()}),e.sets.clientHistory.navSetIds.includes(t.id)||e.sets.clientHistory.navSetIds.push(t.id))})),e.sets.clientHistory.initialized=!0,e.sets.clientHistory.exhausted=o,K(e.sets.clientHistory)},N=function(e,t){var n=t.payload;Object(m.d)("Failed to fetch history: ".concat(n)),K(e.sets.clientHistory)},A=function(e){e.sets.clientHistory.navSetIds=[],e.sets.clientHistory.exhausted=!0},P=function(e){K(e.sets.clientHistory)},R=function(e,t){var n=t.payload,r=(void 0===n?{}:n).type;e.sets.clientHistory.sets=Object(p.c)(e.sets.clientHistory.sets,(function(e){return!!r&&e.type!==r}))},M=function(e,t){var n=t.payload;Object(O.v)(e.sets,n)},F=function(e,t){var n=t.payload,r=n.fetchedItem,o=n.queryId;if(r.id){var a=e.sets.clientHistory.sets;a[r.id]=Object(i.a)(Object(i.a)(Object(i.a)({},a[r.id]),r),{},{loaded:Object(f.m)()})}Object(O.w)(e.sets,r.id||o)},D=function(e,t){var n=t.payload,r=n.error,o=n.queryId;Object(m.d)("Full history item fetch failed (".concat(o,"): ").concat(r)),Object(O.w)(e.sets,o)},B=function(e,t){var n=t.payload,r=e.sets.clientHistory;r.navSetIds=Object(d.k)(r.navSetIds,n),n.forEach((function(e){delete r.sets[e]}))},U=function(e,t){var n=t.payload;if(n.every(v.a)){var r=e.sets.clientHistory;n.forEach((function(e){r.sets[e.id]=Object(a.z)(e)}));var i=n.map((function(e){return e.id}));r.navSetIds=[].concat(Object(o.a)(i),Object(o.a)(Object(d.k)(r.navSetIds,i))),r.navSetIds=Object(o.a)(r.navSetIds).sort().reverse()}else Object(m.d)("Some saving events are missing an id",n)},z=["clientHistoryItemSelected","fetchNavClientHistoryStarted","fetchNavClientHistoryLongStarted","fetchNavClientHistorySucceeded","fetchNavClientHistoryFailed","navClientHistoryNavSetIdsCleared","navClientHistoryLoadingStopped","navClientHistoryRemoveFromSets","itemSelectionCleared","itemsDeselected","saveEventsStarted","fetchFullClientHistoryItemStarted","fetchFullClientHistoryItemSucceeded","fetchFullClientHistoryItemFailed","deleteEventsStarted"],G=0;function W(e){var t=Object(h.a)();return{fetchNavClientHistory:n,selectClientHistoryItem:o,clearClientHistory:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.c)();case 2:r(e.navClientHistoryRemoveFromSets()),a=i(),a.content.sets.selectedClientHistoryItemId!==S&&(r(e.itemSelectionCleared()),r(o(S))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},removeSnapshotItems:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a,u;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.l)("snapshot-scheduled");case 2:r(e.navClientHistoryRemoveFromSets({type:"snapshot-scheduled"})),a=i(),(u=a.content).sets.selectedClientHistoryItemId!==S&&(Object(O.f)(u.sets,u.sets.selectedClientHistoryItemId)||(r(e.itemSelectionCleared()),r(o(S)))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteEvents:d,deleteSelectedEvents:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a,c;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),(i=o.content).sets.selectedClientHistoryItemId){t.next=3;break}return t.abrupt("return");case 3:return a="Delete ".concat(y.a.event({count:1}),"?"),c="".concat(y.a.event({count:1,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(l.d)({title:a,text:c,bypass:e,bypassSetting:"bypassConfirmEventDelete",okAction:function(){n(d([i.sets.selectedClientHistoryItemId]))}})));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteItemsFromEvent:p,deleteItemsFromSelectedEvent:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,a=Object(O.f)(i.sets,i.sets.selectedClientHistoryItemId)){t.next=4;break}return t.abrupt("return");case 4:return t.abrupt("return",n(p({itemSelections:e,event:a})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},updateEvent:w,selectPrevNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=H.beforeSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(S));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets.selectedClientHistoryItemId,e.abrupt("return",i===S?"scroll-top":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=H.afterSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(S));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets,a=i.clientHistory,c=i.selectedClientHistoryItemId,e.abrupt("return",c===S?"scroll-top":a.navSetIds.length&&a.navSetIds.at(-1)===c?"scroll-bottom":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavEvent:function(){return function(e){return e(o(S))}},selectLastNavEvent:function(){return function(e,t){var n;return e(o(null!==(n=t().content.sets.clientHistory.navSetIds.at(-1))&&void 0!==n?n:S))}},selectPostDeleteNavEvent:L};function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,o=void 0!==n&&n,i=t.reset;return function(){var t=Object(r.a)(j().mark((function t(n,r){var a,u,l,f,d,p,h,v,m,y,w,x;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(g.b)(["debug","historyFetchAll","historyFetchCountInitial","historyFetchCountLazy"]);case 2:return a=t.sent,u=a.debug,l=a.historyFetchAll,f=a.historyFetchCountInitial,d=a.historyFetchCountLazy,p=l?999999999:i?f:d,h=++G,v=r(),m=v.content,y=m.sets.searchTerms,n(e.navClientHistoryLoadingStopped()),n(e.fetchNavClientHistoryStarted()),o?n(e.fetchNavClientHistoryLongStarted()):E=window.setTimeout((function(){n(e.fetchNavClientHistoryLongStarted())}),k),t.prev=14,i&&n(e.navClientHistoryNavSetIdsCleared()),w=i?void 0:Object(O.k)(m.sets),t.next=19,Object(c.e)({partial:!0,lastItemId:null===w||void 0===w?void 0:w.id,limit:p,searchTerms:y});case 19:if(x=t.sent,G===h){t.next=23;break}return u&&Object(b.f)("history fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavClientHistorySucceeded({fetchedEvents:x,exhausted:x.length!==p})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavClientHistoryFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(s.a)("history-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()}function o(t){return function(){var n=Object(r.a)(j().mark((function n(r,o){var i,a,u;return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r(e.clientHistoryItemSelected(t)),i=o(),a=i.content,!Object(O.f)(a.sets,t)||Object(O.t)(a.sets,t)){n.next=15;break}return r(e.fetchFullClientHistoryItemStarted(t)),n.prev=5,n.next=8,Object(c.f)(t);case 8:u=n.sent,r(e.fetchFullClientHistoryItemSucceeded({fetchedItem:u,queryId:t})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullClientHistoryItemFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,queryId:t}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}function d(n){return function(){var o=Object(r.a)(j().mark((function r(o){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return o(L()),o(e.deleteEventsStarted(n)),o(Object(u.b)()),r.abrupt("return",t((function(){return Object(c.d)(n)})).catch((function(){o(Object(u.e)({text:x.a.failedToDeleteEvents(n.length),severity:"error",actionText:x.a.tryAgain(),action:function(){o(d(n))}}))})));case 6:case"end":return r.stop()}}),r)})));return function(e){return o.apply(this,arguments)}}()}function p(t){var n=t.itemSelections,o=t.eventId,a=t.event;return function(){var t=Object(r.a)(j().mark((function t(r,c){var u,l,s,f;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a||(a=Object(O.f)(c().content.sets,o)),a&&a.windows){t.next=3;break}return t.abrupt("return");case 3:return u=a.windows.filter((function(e){return!e.tabs.length})).map((function(e){return e.id})),l=a.windows.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(i.a)(Object(i.a)({},e),{},{tabs:e.tabs.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),s=l.filter((function(e){return e.tabs.length||u.includes(e.id)})),f=Object(i.a)(Object(i.a)({},a),{},{windows:s}),r(e.itemsDeselected(n)),t.abrupt("return",r(w({event:f})));case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function w(e){var t=e.event,n=e.timestamp,o=void 0===n?Object(f.m)():n,a=e.id,c=e.props;return function(){var e=Object(r.a)(j().mark((function e(n,r){var u,l;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(a&&c){e.next=3;break}return e.abrupt("return");case 3:if(u=Object(O.f)(r().content.sets,a)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid event (id ".concat(a,")"));case 6:t=Object(i.a)(Object(i.a)({},u),c);case 7:if(Object(v.a)(t)&&!Object(O.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return l=Object(i.a)(Object(i.a)({},t),{},{updated:o}),e.abrupt("return",n(C({savingEvents:[l]})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function L(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),i=H.afterSelectedNavEventId(r)||H.beforeSelectedNavEventId(r)||S,e.next=4,t(o(i));case 4:return a=n().content.sets,c=a.clientHistory,u=a.selectedClientHistoryItemId,e.abrupt("return",u===S?"scroll-top":c.navSetIds.length&&c.navSetIds.at(-1)===u?"scroll-bottom":void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function C(t){var n=t.savingEvents;return function(){var t=Object(r.a)(j().mark((function t(r){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.every(v.a)){t.next=3;break}return Object(m.d)("Some saving events are missing an id",n),t.abrupt("return");case 3:return r(e.saveEventsStarted(n)),r(Object(u.b)()),t.abrupt("return",Object(c.m)(n.map((function(e){return Object(a.z)(e,!0)}))));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}var H={selectedClientHistoryItemId:function(e){return e.content.sets.selectedClientHistoryItemId},selectedClientHistoryItem:function(e){var t=e.content;return t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId]},clientHistoryInitialized:function(e){return e.content.sets.clientHistory.initialized},navClientHistoryIsLoading:function(e){return e.content.sets.clientHistory.navSetsLoading},navClientHistoryIsLoadingLong:function(e){return e.content.sets.clientHistory.navSetsLoadingLong},navClientHistoryIsExhausted:function(e){return!!e.content.sets.clientHistory.exhausted},navClientHistory:function(e){var t=e.content;return t.sets.clientHistory.navSetIds.map((function(e){return t.sets.clientHistory.sets[e]})).filter(Boolean)},noNavClientHistoryExists:function(e){var t=e.content;return!H.navClientHistory({content:t}).length},beforeSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[S].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c-1])&&void 0!==t?t:r?a:void 0},afterSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[S].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c+1])&&void 0!==t?t:r?a:void 0}};function K(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(E)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return x})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return S})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return T})),n.d(t,"i",(function(){return _})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return P})),n.d(t,"g",(function(){return R}));var r=n(22),o=n(3),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(71),d=n(45),p=n(32),h=n(79),v=n(24),m=n(8),b=n(9);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var g=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsCollections",{chromeTransactionDurability:"strict"})).collections=void 0,e.version(1).stores({collections:"id, [pinned+touched]"}),e.collections=e.table("collections"),e}return Object(a.a)(n)}(s.a)),w=g.collections,O=Object(h.a)();function x(){return j.apply(this,arguments)}function j(){return(j=Object(i.a)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(b.c)(e.t0,{prefix:"Failed to get collection count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function E(e){var t=e.from,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.asc,l=e.partial;return O(Object(i.a)(y().mark((function e(){var n,i,s,f,d,h,v,m,b,g,O;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){if(!e)return!1;if(t&&e.id===t.collectionId)return!1;if(!c)return!0;if(!c.free.length&&!c.collection.length&&!c.folder.length&&!c.link.length)return!1;if(Object(p.a)(e.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection))))return!0;var n,i=Object(r.a)(e.folders||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(Object(p.a)(a.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder))))return!0;var u,l=Object(r.a)(a.links||[]);try{for(l.s();!(u=l.n()).done;){var s=u.value;if(Object(p.a)(s.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)))||Object(p.a)(s.url,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)),"url"))return!0}}catch(f){l.e(f)}finally{l.f()}}}catch(f){i.e(f)}finally{i.f()}return!1},null===t||void 0===t?void 0:t.pinnedTouchedTuple){e.next=8;break}return i=w.orderBy("[pinned+touched]"),s=u?i:i.reverse(),e.next=6,s.filter(n).limit(a).toArray();case 6:return e.t0=e.sent,e.abrupt("return",{main:e.t0});case 8:return f=w.where("[pinned+touched]"),d=u?f.above(t.pinnedTouchedTuple):f.below(t.pinnedTouchedTuple).reverse(),e.next=12,d.filter(n).limit(a).toArray();case 12:return h=e.sent,v=l?h.map(k):h,m=f.equals(t.pinnedTouchedTuple),b=u?m:m.reverse(),e.next=18,b.filter(n).toArray();case 18:return g=e.sent,O=l?g.map(k):g,e.abrupt("return",{main:v,boundary:O});case 21:case"end":return e.stop()}}),e)}))))}function k(e){return e.pinned?e:Object(v.i)(e,["id","title","color","created","updated","pinned","touched"])}function S(e){return L(e)}function L(e){return C.apply(this,arguments)}function C(){return C=Object(i.a)(y().mark((function e(t){var n,r,o=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,w.bulkGet(t);case 3:return r=e.sent.filter(Boolean),"date-desc"===n.order?r.sort(f.c):"date-asc"===n.order&&r.sort(f.c).reverse(),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}function T(){return I.apply(this,arguments)}function I(){return(I=Object(i.a)(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=void 0,e.next=3,w.each((function(e){e.created&&(!t||e.created<t.created)&&(t=e)}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return M(),g.transaction("rw",w,Object(i.a)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.bulkPut(e.filter(Boolean));case 2:case"end":return t.stop()}}),t)}))))}function N(e){return A.apply(this,arguments)}function A(){return(A=Object(i.a)(y().mark((function e(t){var n,o,i,a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:M(),n=0,o=Object(r.a)(t),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=19;break}if(a=i.value,e.prev=7,a){e.next=10;break}throw new Error("attempt to add null/undefined collection");case 10:return e.next=12,w.add(a);case 12:n++,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),o.e(e.t1);case 24:return e.prev=24,o.f(),e.finish(24);case 27:return e.abrupt("return",n);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,15]])})))).apply(this,arguments)}function P(e){return M(),w.bulkDelete(e)}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return O(Object(i.a)(y().mark((function n(){var i;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={collection:[],folder:[],link:[]},e.free.length||e.collection.length||e.folder.length||e.link.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,w.orderBy("[pinned+touched]").reverse().each((function(n){if(n){var a,c=Object(p.a)(n.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection))),u=0,l=0,s=Object(r.a)(n.folders||[]);try{for(s.s();!(a=s.n()).done;){var f=a.value,d=Object(p.a)(f.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder))),h=0,v=0;d&&(u+=d);var m,b=Object(r.a)(f.links||[]);try{for(b.s();!(m=b.n()).done;){var y=m.value,g=Math.pow(Object(p.a)(y.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)))+Object(p.a)(y.url,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)),"url"),2);g&&(l++,v++,t.excludeLinks||i.link.push({id:y.id,setId:n.id,text:y.title||y.url,score:g,type:"link",setTitle:n.title,unit:y}),u+=g,h+=g)}}catch(w){b.e(w)}finally{b.f()}!d&&!h||t.excludeFolders||i.folder.push({id:f.id,setId:n.id,text:f.title,score:d,secondaryScore:h,unitMatchCount:v,type:"folder",setTitle:n.title})}}catch(w){s.e(w)}finally{s.f()}!c&&!u||t.excludeCollections||i.collection.push({id:n.id,setId:n.id,text:n.title,score:c,secondaryScore:u,unitMatchCount:l,type:"collection",setCreated:n.created,setUpdated:n.updated,setPinned:n.pinned,setTouched:n.touched})}}));case 5:return n.abrupt("return",{collection:i.collection.sort(d.g),folder:i.folder.sort(d.g),link:i.link.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function M(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbCollectionsChanged:Object(m.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return k})),n.d(t,"e",(function(){return L})),n.d(t,"f",(function(){return C})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return _})),n.d(t,"c",(function(){return A})),n.d(t,"l",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"m",(function(){return M})),n.d(t,"b",(function(){return D})),n.d(t,"a",(function(){return U})),n.d(t,"k",(function(){return G})),n.d(t,"i",(function(){return H}));var r=n(3),o=n(22),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(102),d=n(45),p=n(32),h=n(79),v=n(8),m=n(24),b=n(13),y=n(18),g=n(9),w=n(10);function O(){O=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var x=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsClientHistory",{chromeTransactionDurability:"strict"})).clientHistory=void 0,e.version(1).stores({clientHistory:"id, type"}),e.clientHistory=e.table("clientHistory"),e}return Object(a.a)(n)}(s.a)),j=x.clientHistory,E=Object(h.a)();function k(){return S.apply(this,arguments)}function S(){return(S=Object(i.a)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(g.c)(e.t0,{prefix:"Failed to get event count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function L(e){var t=e.lastItemId,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.partial;return E(Object(i.a)(O().mark((function e(){var n,i;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?j.where("id").below(t):j.orderBy("id"),e.next=3,n.reverse().filter((function(e){if(!e)return!1;if(!c)return!0;if(!c.free.length&&!c.history.length&&!c.window.length&&!c.tab.length)return!1;var t,n=Object(o.a)(e.windows||[]);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(Object(p.a)(i.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window))))return!0;var a,u=Object(o.a)(i.tabs||[]);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Object(p.a)(l.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)))||Object(p.a)(l.url,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)),"url"))return!0}}catch(s){u.e(s)}finally{u.f()}}}catch(s){n.e(s)}finally{n.f()}return!1})).limit(a).toArray();case 3:return i=e.sent,e.abrupt("return",u?i.map((function(e){return Object(m.i)(e,["id","type","updated"])})):i);case 5:case"end":return e.stop()}}),e)}))))}function C(e){return j.get(e)}function T(e){return I.apply(this,arguments)}function I(){return(I=Object(i.a)(O().mark((function e(t){var n,r,o;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=j.orderBy("id").reverse(),r=t?n.filter((function(e){return e&&e.type===t})):n,e.next=4,r.limit(1).toArray();case 4:return o=e.sent,e.abrupt("return",o.length?o[0]:void 0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(){return N.apply(this,arguments)}function N(){return(N=Object(i.a)(O().mark((function e(){var t,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=j.orderBy("id"),e.next=3,t.limit(1).toArray();case 3:return n=e.sent,e.abrupt("return",n.length?n[0]:void 0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(){return K(),j.clear()}function P(e){return K(),j.where("type").equals(e).delete()}function R(e){return K(),j.bulkDelete(e)}function M(e,t){return F.apply(this,arguments)}function F(){return(F=Object(i.a)(O().mark((function e(t,n){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(),e.next=3,x.transaction("rw",j,Object(i.a)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j.bulkPut(t.filter(Boolean));case 2:case"end":return e.stop()}}),e)}))));case 3:if(!n){e.next=6;break}return e.next=6,G(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e,t){return B.apply(this,arguments)}function B(){return(B=Object(i.a)(O().mark((function e(t,n){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(K(),e.prev=1,t){e.next=4;break}throw new Error("attempt to add null/undefined history item");case 4:return e.next=6,j.add(t);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),Object(y.e)(e.t0,{prefix:"Failed to add to history".concat(t?" (id: ".concat(t.id,", instant: ").concat(t.instant,", type: ").concat(t.type,", created: ").concat(t.created,", updated: ").concat(t.updated,")"):"")});case 11:if(!n){e.next=14;break}return e.next=14,G(n);case 14:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function U(e,t){return z.apply(this,arguments)}function z(){return(z=Object(i.a)(O().mark((function e(t,n){var r,i,a,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:K(),r=0,i=Object(o.a)(t),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=19;break}if(c=a.value,e.prev=7,c){e.next=10;break}throw new Error("attempt to add null/undefined history item");case 10:return e.next=12,j.add(c);case 12:r++,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),i.e(e.t1);case 24:return e.prev=24,i.f(),e.finish(24);case 27:if(!n){e.next=30;break}return e.next=30,G(n);case 30:return e.abrupt("return",r);case 31:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,15]])})))).apply(this,arguments)}function G(e){return W.apply(this,arguments)}function W(){return(W=Object(i.a)(O().mark((function e(t){var n,r,o,i;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.maxAge,r=t.maxCount,e.prev=1,!n){e.next=8;break}return o=Object(v.m)()-n,e.next=6,j.where("id").below(o).delete();case 6:e.sent&&K();case 8:if(!r){e.next=17;break}return e.next=11,j.count();case 11:if(!((i=e.sent)>r)){e.next=17;break}return e.next=15,j.orderBy("id").limit(i-r).delete();case 15:e.sent&&K();case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),console.warn("history housekeeping failed",e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,19]])})))).apply(this,arguments)}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E(Object(i.a)(O().mark((function n(){var i;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={event:[],window:[],tab:[]},e.free.length||e.history.length||e.window.length||e.tab.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,j.orderBy("id").reverse().each((function(n){if(n){var a,c=0,u=0,l=Object(o.a)(n.windows||[]);try{for(l.s();!(a=l.n()).done;){var s=a.value,d=Object(p.a)(s.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window))),h=0,v=0;d&&(c+=d);var m,y=Object(o.a)(s.tabs||[]);try{for(y.s();!(m=y.n()).done;){var g=m.value,O=Math.pow(Object(p.a)(g.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)))+Object(p.a)(g.url,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)),"url"),2);O&&(u++,v++,t.excludeTabs||i.tab.push({id:g.id,setId:n.id,text:g.title||g.url,score:O,type:"tab",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0})),unit:g}),c+=O,h+=O)}}catch(x){y.e(x)}finally{y.f()}!d&&!h||t.excludeWindows||i.window.push({id:s.id,setId:n.id,text:s.title,score:d,secondaryScore:h,unitMatchCount:v,type:"window",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0}))})}}catch(x){l.e(x)}finally{l.f()}c&&!t.excludeEvents&&i.event.push({id:n.id,setId:n.id,text:Object(b.d)(w.a.shortDate(n.id,{abbreviateRecent:!0})),score:0,secondaryScore:c,unitMatchCount:u,type:"event",eventType:n.type})}}));case 5:return n.abrupt("return",{event:i.event.sort(d.g),window:i.window.sort(d.g),tab:i.tab.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function K(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbEventsChanged:Object(v.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return L})),n.d(t,"f",(function(){return C})),n.d(t,"q",(function(){return T})),n.d(t,"p",(function(){return I})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return N})),n.d(t,"c",(function(){return A})),n.d(t,"j",(function(){return P})),n.d(t,"k",(function(){return R})),n.d(t,"o",(function(){return M})),n.d(t,"l",(function(){return F})),n.d(t,"m",(function(){return D})),n.d(t,"n",(function(){return B})),n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return z})),n.d(t,"h",(function(){return G})),n.d(t,"i",(function(){return W}));var r=n(2),o=n(22),i=n(1),a=n(3),c=n(107),u=n(12),l=n(24),s=n(8),f=n(13),d=n(70),p=n(18),h=n(9),v=n(5),m=n(50),b=n(10),y=n(102),g=n(17),w=n(45),O=n(47),x=n(49),j=n(36),E=n(6),k=n(125);function S(){S=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var L=function(){return[v.j]},C=function(){return{initialized:!1,sets:{},navSetIds:[],navSetsLoading:!1,navSetsLoadingLong:!1,exhausted:!1}},T=function(e,t){var n=t.payload,r=n.ids,o=n.additive,i=Object(E.x)(e.sets.selectedSetIds,r,o);e.sets.selectedSetIds=i,Object(k.b)(Object(a.a)(i)),e.sets.selectedClientHistoryItemId=x.a,Object(O.e)(e)},I=function(e,t){var n=t.payload,r=Object(u.k)(e.sets.selectedSetIds,n);e.sets.selectedSetIds=r,Object(k.b)(Object(a.a)(r)),e.sets.selectedClientHistoryItemId=x.a,Object(O.e)(e)},_=function(e,t){t.payload.forEach((function(t){Object(E.v)(e.sets,t)}))},N=function(e,t){var n=t.payload,r=n.fetchedSets,o=n.querySetIds,c=Object(a.a)(o);r.forEach((function(t){if(t.id){c=Object(u.j)(c,(function(e){return e===t.id})),Object(E.y)(e.sets,t.id);var n=Object(l.e)(t,"folders"),r=n?e.sets.collections.sets:e.sets.remoteClients.sets,o=Object(i.a)(Object(i.a)(Object(i.a)({},r[t.id]),t),{},{loaded:Object(s.m)()});r[t.id]=n?Object(v.y)(o):o,Object(E.w)(e.sets,t.id)}})),c.length&&(Object(h.f)("unmatched query set ids (".concat(c,") of (").concat(o,"). possible deletion or insufficient privileges.")),c.forEach((function(t){Object(E.w)(e.sets,t),Object(E.q)(e.sets,t)})))},A=function(e,t){var n=t.payload,r=n.error,o=n.querySetIds;Object(p.d)("Full sets fetch failed (".concat(o,"): ").concat(r)),o.forEach((function(t){Object(E.w)(e.sets,t)}))},P=function(e,t){var n=t.payload,r=n.invert,i=n.showAllItemMatches,a=n.limitToUnitIds,c=W.selectedSetGroups({content:e}),l=c.windows,s=c.folders,f=W.searchTerms({content:e}),d=W.filterSearchTerms({content:e}),p=!f&&!d||i?l||s:l?Object(w.d)(l):Object(w.c)(s),h=[],m=new Set,b=Object(v.r)(p);if(a){var y,g=Object(u.q)(b.filter((function(e){var t=e.id;return a.includes(t)})).map((function(e){return e.url}))),x=Object(o.a)(b);try{for(x.s();!(y=x.n()).done;){var j=y.value;(r?!g.includes(j.url):g.includes(j.url))&&h.push(j.id)}}catch(L){x.e(L)}finally{x.f()}}else{var E,k=Object(o.a)(b);try{for(k.s();!(E=k.n()).done;){var S=E.value;m.has(S.url)?r||h.push(S.id):(m.add(S.url),r&&h.push(S.id))}}catch(L){k.e(L)}finally{k.f()}}Object(O.h)(e,{payload:{unitIds:h}})},R=function(e){var t;1===(t=e.sets.selectedSetIds).length&&Object(E.r)(t[0])||(Object(O.g)(e),e.sets.selectedSetIds=L(),Object(k.b)(Object(a.a)(e.sets.selectedSetIds)))},M=function(e,t){var n=t.payload;e.sets.searchTerms=n},F=function(e,t){var n=t.payload;e.sets.filterSearchTerms=n},D=function(e,t){var n=t.payload;e.sets.searchResults=n},B=function(e,t){var n=t.payload;e.sets.searchResultsLoading=n},U=function(e){e.sets.searchTerms=null,e.sets.filterSearchTerms=null,e.sets.searchResults=null,e.sets.searchResultsLoading=!1},z=["setsSelected","setsDeselected","fetchFullSetsStarted","fetchFullSetsSucceeded","fetchFullSetsFailed"];function G(e){return{rangeSelectAndHydrateSets:function(e){var n=e.id,r=e.additive;return function(e,o){var i=o().content,c=[v.j].concat(Object(a.a)(i.sets.remoteClients.navSetIds),Object(a.a)(i.sets.collections.navSetIds)),u=i.sets.selectedSetIds.findLast((function(e){return c.includes(e)}));e(t({ids:Object(d.b)({selectedItem:n,anchorItem:u,allItems:c}),additive:r}))}},toggleSelectAndHydrateSet:function(n){return function(r,o){r(o().content.sets.selectedSetIds.includes(n)?e.setsDeselected([n]):t({ids:[n],additive:!0}))}},selectAndHydrateSets:t,selectPrevNavSet:function(){return function(){var e=Object(r.a)(S().mark((function e(n,r){var o,i,a,c;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.beforeSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length&&c.includes(a.navSetIds[0])?"scroll-top":void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavSet:function(){return function(){var e=Object(r.a)(S().mark((function e(n,r){var o,i,a,c;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.afterSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length?c.includes(a.navSetIds[0])?"scroll-top":c.includes(a.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavSet:function(){return function(e,n){var r=n().content.sets,o=r.selectedSetIds,i=r.collections;if(!o.length)return e(t({ids:[v.j]}));var a=i.navSetIds[0];return!a||1===o.length&&i.navSetIds[0]&&i.navSetIds[0]===o[0]?e(t({ids:[v.j]})):e(t({ids:[a]}))}},selectLastNavSet:function(){return function(e,n){var r;return e(t({ids:[null!==(r=n().content.sets.collections.navSetIds.at(-1))&&void 0!==r?r:v.j]}))}},selectPostDeleteNavSet:function(){return function(){var e=Object(r.a)(S().mark((function e(n,r){var o,i,a,c,u;return S().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r(),i=W.afterSelectedNavSetId(o,{skipSelected:!0})||W.beforeSelectedNavSetId(o,{skipSelected:!0})||v.j,e.next=4,n(t({ids:[i]}));case 4:return a=r().content.sets,c=a.collections,u=a.selectedSetIds,e.abrupt("return",c.navSetIds.length?u.includes(c.navSetIds[0])?"scroll-top":u.includes(c.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},fetchFullSets:n};function t(t){var o=t.ids,i=t.additive;return function(){var t=Object(r.a)(S().mark((function t(r,a){var c,l;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(e.setsSelected({ids:Object(u.q)(o),additive:i})),c=a(),l=c.content,t.next=4,r(n(l.sets.selectedSetIds));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function n(t){return function(){var n=Object(r.a)(S().mark((function n(r,o){var i,a,c,u;return S().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,(c=t.filter((function(e){return!Object(E.r)(e)&&!Object(E.t)(a.sets,e)}))).length){n.next=4;break}return n.abrupt("return");case 4:return r(e.fetchFullSetsStarted(c)),n.prev=5,n.next=8,Object(m.f)(c);case 8:u=n.sent,r(e.fetchFullSetsSucceeded({fetchedSets:u,querySetIds:c})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullSetsFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,querySetIds:c}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}}var W={selectedSetIds:function(e){return e.content.sets.selectedSetIds},selectedSetWindows:function(e){return K(e.content.sets)},selectedSetFolders:function(e){return V(e.content.sets)},selectedSetGroups:Object(c.a)((function(e){return e.content.sets}),(function(e){var t=K(e);return t?{windows:Object(w.b)(t,e.searchTerms||e.filterSearchTerms,!!e.selectedClientHistoryItemId)}:{folders:Object(w.a)(V(e)||[],e.searchTerms||e.filterSearchTerms)}})),beforeSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l-1]||(o?c:void 0)}},afterSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l+1]||(o?c:void 0)}},selectedSetsHaveDuplicateUnits:function(e){var t,n=e.content,r=e.settings,i=W.selectedSetGroups({content:n}),a=i.windows,c=i.folders,u=W.searchTerms({content:n}),l=W.filterSearchTerms({content:n}),s=!u&&!l||r.showAllItemMatches?a||c:a?Object(w.d)(a):Object(w.c)(c),f=new Set,d=Object(o.a)(Object(v.r)(s));try{for(d.s();!(t=d.n()).done;){var p=t.value;if(f.has(p.url))return!0;f.add(p.url)}}catch(h){d.e(h)}finally{d.f()}return!1},selectedSetsHaveUnits:function(e){var t=e.content;if(W.onlyLocalClientIsSelected({content:t})&&t.sets.selectedClientHistoryItemId){var n,r=null===(n=Object(E.f)(t.sets,t.sets.selectedClientHistoryItemId))||void 0===n?void 0:n.windows;if(r){var i,a=Object(o.a)(r);try{for(a.s();!(i=a.n()).done;){if(i.value.tabs.length)return!0}}catch(O){a.e(O)}finally{a.f()}}return!1}var c,u=Object(o.a)(t.sets.selectedSetIds);try{for(u.s();!(c=u.n()).done;){var l=c.value,s=Object(E.r)(l)&&t.sets.localWindows;if(s){var f,d=Object(o.a)(s);try{for(d.s();!(f=d.n()).done;){if(f.value.tabs.length)return!0}}catch(O){d.e(O)}finally{d.f()}}else{var p=Object(E.g)(t.sets,l);if(p){var h,v,m=Object(o.a)(null!==(h=p.folders)&&void 0!==h?h:[]);try{for(m.s();!(v=m.n()).done;){if(v.value.links.length)return!0}}catch(O){m.e(O)}finally{m.f()}}else{var b=Object(E.n)(t.sets,l);if(b){var y,g,w=Object(o.a)(null!==(y=b.windows)&&void 0!==y?y:[]);try{for(w.s();!(g=w.n()).done;){if(g.value.tabs.length)return!0}}catch(O){w.e(O)}finally{w.f()}}}}}}catch(O){u.e(O)}finally{u.f()}return!1},selectedSetDateTexts:function(e){var t=e.content.sets;if(1!==t.selectedSetIds.length)return null;if(Object(E.r)(t.selectedSetIds[0])){if(!t.selectedClientHistoryItemId)return null;var n=Object(E.f)(t,t.selectedClientHistoryItemId);if(n)return{primary:Object(f.d)(b.a.date(n.id,{format:"relative"})),secondary:""}}var r=Object(E.g)(t,t.selectedSetIds[0],!0);if(r){var o=r.created,i=r.updated,a=o&&i&&+o<+i;return{primary:Object(f.d)(Object(v.s)(o,i)),secondary:a?Object(f.d)(Object(v.s)(o)):""}}var c=Object(E.n)(t,t.selectedSetIds[0],!0);return(null===c||void 0===c?void 0:c.updated)?{primary:Object(f.d)(b.a.date(c.updated,{format:"long"})),secondary:Object(f.d)(b.a.date(c.updated,{format:"relative",verb:"updated"}))}:null},selectedSetTitle:function(e){var t=e.content,n=e.settings;if(1===t.sets.selectedSetIds.length){var r=t.sets.selectedSetIds[0];if(Object(E.r)(r)){var o=t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId];return o?"".concat(Object(f.d)(y.a.clientHistoryItemType(o.type))," \u2022 ").concat(Object(f.d)(b.a.shortDate(o.id))):Object(g.l)("clientTitle")({settings:n})}var i=Object(E.g)(t.sets,r,!0);if(i)return i.title;var a=Object(E.n)(t.sets,r,!0);if(a)return a.title}else if(t.sets.selectedSetIds.length>1){var c;return null===(c=Object(E.e)(t.sets,(function(e){return!!e.title})))||void 0===c?void 0:c.title}},lastSelectedCollection:function(e){var t,n=e.content;return null!==(t=Object(E.e)(n.sets,(function(e){return!!e.title})))&&void 0!==t?t:Object(E.e)(n.sets)},someSelectedSetsAreLoading:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(E.t)(t.sets,e)}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(E.t)(t.sets,t.sets.selectedClientHistoryItemId)},someSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(E.s)(t.sets,e)}))},allSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){return Object(E.s)(t.sets,e)}))},selectedSetInfo:function(e){var t=e.content,n=t.sets.selectedSetIds,r=n.length,o=n.filter((function(e){return Object(E.s)(t.sets,e)})).length,i=o>0,a=i&&o===r;return{total:r,invalid:o,none:!r,someInvalid:i,multipleInvalid:o>1,singleInvalid:1===o,allInvalid:a,partialInvalid:i&&!a}},someSelectedSetsAreUnhydrated:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return!Object(E.r)(e)&&!Object(E.s)(t.sets,e)&&Object(E.u)(Object(E.m)(t.sets,e,!0))}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(E.u)(Object(E.f)(t.sets,t.sets.selectedClientHistoryItemId))},someSelectedSetsArePending:function(e){var t=e.content;return W.someSelectedSetsAreLoading({content:t})||W.someSelectedSetsAreUnhydrated({content:t})},someSelectedSetsArePendingOrInvalid:function(e){var t=e.content;return W.someSelectedSetsArePending({content:t})||W.someSelectedSetsAreInvalid({content:t})},noSetIsSelected:function(e){return!e.content.sets.selectedSetIds.length},multipleSetsAreSelected:function(e){return e.content.sets.selectedSetIds.length>1},localClientIsSelected:function(e){return e.content.sets.selectedSetIds.some(E.r)},singleClientIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})||W.singleRemoteClientIsSelected({content:t})},onlyLocalClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&Object(E.r)(t.sets.selectedSetIds[0])},onlyLocalClientNowIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!t.sets.selectedClientHistoryItemId},onlyLocalClientEventIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId},singleRemoteClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(E.n)(t.sets,t.sets.selectedSetIds[0],!0)},singleCollectionIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(E.g)(t.sets,t.sets.selectedSetIds[0],!0)},onlyClientsAreSelected:function(e){return H(e.content.sets)},onlyCollectionsAreSelected:function(e){var t=e.content;return t.sets.selectedSetIds.length>0&&t.sets.selectedSetIds.every((function(e){return!!Object(E.g)(t.sets,e,!0)}))},selectedSetCount:function(e){return e.content.sets.selectedSetIds.length},selectedClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return Object(E.r)(e)||!!Object(E.n)(t.sets,e,!0)})).length},selectedRemoteClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(E.n)(t.sets,e,!0)})).length},selectedCollectionCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(E.g)(t.sets,e,!0)})).length},selectedCollectionIds:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(E.g)(t.sets,e,!0)}))},searchTerms:function(e){return e.content.sets.searchTerms},filterSearchTerms:function(e){return e.content.sets.filterSearchTerms},searchResults:function(e){return e.content.sets.searchResults},searchResultsLoading:function(e){return e.content.sets.searchResultsLoading}};function H(e){return e.selectedSetIds.length>0&&e.selectedSetIds.every((function(t){return Object(E.r)(t)||!!Object(E.n)(e,t,!0)}))}function K(e){if(H(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n,r,o,a=e.sets,c=e.setId,u=e.setInfo,l=Object(E.r)(c)?a.selectedClientHistoryItemId?null!==(t=null===(n=Object(E.f)(a,a.selectedClientHistoryItemId))||void 0===n?void 0:n.windows)&&void 0!==t?t:[]:a.localWindows:null!==(r=null===(o=Object(E.n)(a,c))||void 0===o?void 0:o.windows)&&void 0!==r?r:[];return u?q(l,Object(i.a)({type:Object(E.r)(c)?a.selectedClientHistoryItemId?"history":"session":"client"},u)):l}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function V(e){if(!H(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n=e.sets,r=e.setId,o=e.setInfo;if(Object(E.r)(r)){var a,c,u=(n.selectedClientHistoryItemId?null!==(a=null===(c=Object(E.f)(n,n.selectedClientHistoryItemId))||void 0===c?void 0:c.windows)&&void 0!==a?a:[]:n.localWindows).map((function(e){return Object(E.c)(e,void 0,void 0,!0)}));return o?q(u,Object(i.a)({type:n.selectedClientHistoryItemId?"history":"session"},o)):u}if(Object(E.s)(n,r))return[];var l=Object(E.g)(n,r);if(l){var s,f=null!==(s=l.folders)&&void 0!==s?s:[];return o?q(f,Object(i.a)({type:"collection",title:l.title},o)):f}var d=Object(E.n)(n,r),p=(null!==(t=null===d||void 0===d?void 0:d.windows)&&void 0!==t?t:[]).map((function(e){return Object(E.c)(e)}));return o?q(p,Object(i.a)({type:"client"},o)):p}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function q(e,t){var n=t.type,r=t.title,o=t.idx,a=t.totalCount,c=j.a.inSet({type:n,title:r,idx:o,totalCount:a});return e.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{_setText:c})}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return b}));var r=n(3),o={gray:"#999",blue:"#0097ff",green:"#6ab200",yellow:"#ca9f00",red:"#d54040"},i="#99999922",a="#0097ff22",c="#6ab20022",u="#ca9f0022",l="#d5404022";function s(e,t){return function(n){return function(e,t){var n,o=t.color1,i=t.color2,a=e.map((function(e){return e.map((function(e){return y(e)})).join("")})),c=b(o),u=b(i),l=e.map((function(e){return e.map((function(e,t){return t%2?u:c}))})).flat();(n=console).log.apply(n,[a.join("\n\r")].concat(Object(r.a)(l)))}(n,{color1:e,color2:t})}}var f=m(o.gray),d=m(o.blue),p=m(o.green),h=m(o.yellow),v=m(o.red);m(o.gray,i),m(o.blue,a),m(o.green,c),m(o.yellow,u),m(o.red,l);function m(e,t){return function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var c=i[0],u=i.slice(1);(n=console).log.apply(n,[y(c),b(e,t)].concat(Object(r.a)(u)))}}function b(e,t){return"color: ".concat(e).concat(t?";background-color: ".concat(t):"")}function y(e){return"%c".concat("object"===typeof e?JSON.stringify(e,null,2):e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(150);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));var r,o,i=n(57),a=Object(i.b)({name:"notification",initialState:{visible:!1,text:"Be kind to yourself",severity:"info"},reducers:{notificationShown:function(e,t){var n=t.payload,r=n.text,o=n.severity,i=void 0===o?"info":o,a=n.actionText;e.visible=!0,e.text=r,e.severity=i,e.actionText=a},notificationHidden:function(e){e.visible=!1}}}),c=a.reducer;function u(e){var t=e.text,n=e.severity,i=e.actionText,c=e.action,u=e.timeout,s=void 0===u?3e3:u;return function(e){r=c,window.clearTimeout(o),"none"!==s&&(o=window.setTimeout((function(){e(l())}),s)),e(a.actions.notificationShown({text:t,severity:n,actionText:i}))}}function l(){return function(e){r=void 0,e(a.actions.notificationHidden())}}function s(){var e;return null===(e=r)||void 0===e?void 0:e()}var f={notificationVisible:function(e){return e.notification.visible},notificationText:function(e){return e.notification.text},notificationSeverity:function(e){return e.notification.severity},notificationActionText:function(e){return e.notification.actionText}}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return I}));var o=n(43),i=(n(107),n(80)),a=n(155),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=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(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},s=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,m=function(e,t,n){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},b=function(e,t){for(var n in t||(t={}))h.call(t,n)&&m(e,n,t[n]);if(p)for(var r=0,o=p(t);r<o.length;r++){n=o[r];v.call(t,n)&&m(e,n,t[n])}return e},y=function(e,t){return f(e,d(t))},g=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{c(n.next(e))}catch(t){o(t)}},a=function(e){try{c(n.throw(e))}catch(t){o(t)}},c=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};c((n=n.apply(e,t)).next())}))},w="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.c:i.c.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function O(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var x=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array),j=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array);function E(e){return Object(o.e)(e)?Object(o.b)(e,(function(){})):e}function k(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new x);n&&("boolean"===typeof n?r.push(a.a):r.push(a.a.withExtraArgument(n.extraArgument)));0;return r}(e)}}var S=!0;function L(e){var t,n=k(),r=e||{},o=r.reducer,a=void 0===o?void 0:o,c=r.middleware,u=void 0===c?n():c,s=r.devTools,f=void 0===s||s,d=r.preloadedState,p=void 0===d?void 0:d,h=r.enhancers,v=void 0===h?void 0:h;if("function"===typeof a)t=a;else{if(!O(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(i.b)(a)}var m=u;if("function"===typeof m&&(m=m(n),!S&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!S&&m.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var y=i.a.apply(void 0,m),g=i.c;f&&(g=w(b({trace:!S},"object"===typeof f&&f)));var x=new j(y),E=x;Array.isArray(v)?E=l([y],v):"function"===typeof v&&(E=v(x));var L=g.apply(void 0,E);return Object(i.d)(t,p,L)}function C(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return b(b({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function T(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function I(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:E(e.initialState),i=e.reducers||{},a=Object.keys(i),c={},u={},s={};function f(){var t="function"===typeof e.extraReducers?T(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,a=t[1],c=void 0===a?[]:a,s=t[2],f=void 0===s?void 0:s,d=b(b({},i),u);return function(e,t,n,r){void 0===n&&(n=[]);var i,a="function"===typeof t?T(t):[t,n,r],c=a[0],u=a[1],s=a[2];if("function"===typeof e)i=function(){return E(e())};else{var f=E(e);i=function(){return f}}function d(e,t){void 0===e&&(e=i());var n=l([c[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[s]),n.reduce((function(e,n){if(n){var r;if(Object(o.d)(e))return void 0===(r=n(e,t))?e:r;if(Object(o.e)(e))return Object(o.b)(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return d.getInitialState=i,d}(r,(function(e){for(var t in d)e.addCase(t,d[t]);for(var n=0,r=c;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}f&&e.addDefaultCase(f)}))}return a.forEach((function(e){var n,r,o=i[e],a=t+"/"+e;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,c[e]=n,u[a]=n,s[e]=r?C(a,r):C(a)})),{name:t,reducer:function(e,t){return n||(n=f()),n(e,t)},actions:s,caseReducers:c,getInitialState:function(){return n||(n=f()),n.getInitialState()}}}var _=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},N=["name","message","stack","code"],A=function(e,t){this.payload=e,this.meta=t},P=function(e,t){this.payload=e,this.meta=t},R=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=N;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=C(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:y(b({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=C(e+"/pending",(function(e,t,n){return{payload:void 0,meta:y(b({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=C(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||R)(e||"Rejected"),meta:y(b({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(c,l,s){var f,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):_(),p=new a;function h(e){f=e,p.abort()}var v=function(){return g(this,null,(function(){var a,v,m,b,y,g;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),b=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:s}),null===(w=b)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,b];case 1:b=u.sent(),u.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:f||"Aborted"})}))})),c(o(d,e,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:d,arg:e},{getState:l,extra:s}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:c,getState:l,extra:s,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,t){return new A(e,t)},fulfillWithValue:function(e,t){return new P(e,t)}})).then((function(t){if(t instanceof A)throw t;return t instanceof P?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return m=u.sent(),[3,5];case 4:return g=u.sent(),m=g instanceof A?i(null,d,e,g.payload,g.meta):i(g,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||c(m),[2,m]}var w}))}))}();return Object.assign(v,{abort:h,requestId:d,arg:e,unwrap:function(){return v.then(M)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function M(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var F="listenerMiddleware";C(F+"/add"),C(F+"/removeAll"),C(F+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof r?r:globalThis);var D,B=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:B(10);Object(o.c)()}).call(this,n(193),n(136))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(204);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,c=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-c*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),a({type:l,values:s})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function s(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var r,o,i=n(2);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var c=null===(r=globalThis.chrome)||void 0===r?void 0:r.runtime,u=null===(o=globalThis.chrome)||void 0===o?void 0:o.management;function l(){return s.apply(this,arguments)}function s(){return(s=Object(i.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===u||void 0===u||null===(t=u.getSelf)||void 0===t?void 0:t.call(u);case 2:return r=e.sent,e.abrupt("return",null!==(n=null===r||void 0===r?void 0:r.installType)&&void 0!==n?n:"unknown");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){var e;return null!==(e=null===c||void 0===c?void 0:c.id)&&void 0!==e?e:""}function d(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.name)&&void 0!==e?e:""}function p(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.version)&&void 0!==e?e:""}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return v}));var r=n(75),o=n(24);function i(){return"window"in globalThis}var a=["altKey","ctrlKey","metaKey","shiftKey"];function c(e){var t=e.single,n=e.double,r=e.stopPropagation,i=e.leftButtonOnly;return function(e){r&&e.stopPropagation(),i&&!u(e)||(1===e.detail&&(null===t||void 0===t||t(Object(o.i)(e,a))),2===e.detail&&(null===n||void 0===n||n(Object(o.i)(e,a))))}}var u=function(e){return 0===e.button&&("mac"!==r.a||!e.ctrlKey)},l=function(e){return"mac"===r.a?e.metaKey:e.ctrlKey},s=function(){return"mac"===r.a?"\u2318":"ctrl"},f=function(e){return"Delete"===e||"mac"===r.a&&"Backspace"===e},d=function(e){return"Home"===e.key||"mac"===r.a&&e.metaKey&&"ArrowUp"===e.key},p=function(e){return"End"===e.key||"mac"===r.a&&e.metaKey&&"ArrowDown"===e.key},h=function(e){return"INPUT"===(null===e||void 0===e?void 0:e.tagName)||"TEXTAREA"===(null===e||void 0===e?void 0:e.tagName)},v=function(e,t){var n=function(n){if(!n.relatedTarget||n.relatedTarget!==e&&!e.contains(n.relatedTarget))return t(n)};return e.addEventListener("focusout",n),function(){e.removeEventListener("focusout",n)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l}));var r,o=n(57),i=Object(o.b)({name:"confirmation",initialState:{visible:!1,title:"Be kind to yourself",text:"Be kind to yourself"},reducers:{confirmationShown:function(e,t){var n=t.payload,r=n.title,o=n.text,i=n.bypassSetting,a=n.bypassText,c=n.hasOkAction;e.visible=!0,e.title=r,e.text=o,e.bypassSetting=i,e.bypassText=a,e.hasOkAction=c},confirmationHidden:function(e){e.visible=!1}}}),a=i.reducer;function c(e){var t=e.title,n=e.text,o=e.bypass,a=e.bypassSetting,c=e.bypassText,l=void 0===c?"Don't ask again":c,s=e.okAction;return function(e,c){var f=new Promise((function(e){r=function(t){return e(t?null===s||void 0===s?void 0:s():void 0)}}));if(o)return e(u({executeAction:!0})),f;if(a&&c().settings[a])return e(u({executeAction:!0})),f;return e(i.actions.confirmationShown({title:t,text:n,bypassSetting:a,bypassText:l,hasOkAction:!!s})),f}}function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).executeAction;return function(t){var n;null===(n=r)||void 0===n||n(e),r=void 0,t(i.actions.confirmationHidden())}}var l={confirmationVisible:function(e){return e.confirmation.visible},confirmationTitle:function(e){return e.confirmation.title},confirmationText:function(e){return e.confirmation.text},confirmationBypassSetting:function(e){return e.confirmation.bypassSetting},confirmationBypassText:function(e){return e.confirmation.bypassText},hasOkAction:function(e){return!!e.confirmation.hasOkAction}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(104);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(121),o=n(141);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=n(115);function c(e){return function(){var t,n=Object(r.a)(e);if(Object(o.a)()){var c=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(a.a)(e):t}(this,t)}}n.d(t,"a",(function(){return c}))},,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(26),i=n(22),a=n(2);function c(e){this.wrapped=e}function u(e){return new c(e)}function l(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,u=a instanceof c;Promise.resolve(u?a.wrapped:a).then((function(e){u?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(l){o("throw",l)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var c={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=c:(t=n=c,r(e,o))}))},"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(l.prototype[Symbol.asyncIterator]=function(){return this}),l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};var s=n(29),f=n(100),d=n(50),p=n(51),h=n(5),v=n(108),m=n(12),b=n(77);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function g(e){return w.apply(this,arguments)}function w(){return(w=Object(a.a)(y().mark((function e(t){var n,r,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(t),r=new TextEncoder,o=r.encode(n),e.next=5,j(o);case 5:return i=e.sent,e.abrupt("return",Object(b.d)(i));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return x.apply(this,arguments)}function x(){return x=Object(a.a)(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(a.a)(y().mark((function e(n,r){var o,i,a,c,u;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return n(null),e.abrupt("return");case 3:return e.prev=3,o=Object(b.b)(t),e.next=7,k(o);case 7:i=e.sent,a=new TextDecoder,c=a.decode(i),u=JSON.parse(c),n(u),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),console.error("Failed to load or decompress data:",e.t0),r(e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function j(e){return E.apply(this,arguments)}function E(){return(E=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new CompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return S.apply(this,arguments)}function S(){return(S=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new DecompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var L=n(140),C=n(46),T=n(8),I=n(97),_=n(27),N=n(18),A=n(9),P=n(39);function R(){R=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}n.d(t,"b",(function(){return H})),n.d(t,"a",(function(){return ae})),n.d(t,"c",(function(){return he})),n.d(t,"h",(function(){return ye})),n.d(t,"f",(function(){return Ee})),n.d(t,"e",(function(){return Se})),n.d(t,"g",(function(){return Ce})),n.d(t,"d",(function(){return Te}));var M=138,F=3,D=4*T.d,B=2*T.h,U="backup",z="~backup-",G="backup-summary-",W="backup-checkpoint-";function H(){return K.apply(this,arguments)}function K(){return K=Object(a.a)(R().mark((function e(){var t,n,r,o,i,c,u,l,d,p=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=p.length>0&&void 0!==p[0]?p[0]:{}).anyTime,r=t.debug,e.next=3,Object(P.b)(["debugLocalBackup","debug","backupWhenIdle"]);case 3:if(o=e.sent,i=o.debugLocalBackup,c=o.debug,u=o.backupWhenIdle,l=Ye({debugOverride:r,debugLocalBackup:i,debugGeneral:c}),!(d=qe())){e.next=12;break}return l.debug&&Object(A.b)("\ud83d\udec7 auto-backup skipped: ".concat(d)),e.abrupt("return");case 12:return e.next=14,Object(f.a)();case 14:return e.abrupt("return",navigator.locks.request(U,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(R().mark((function e(t){var r,o,i;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=new Date,n){e.next=12;break}if(r.getHours()===F&&r.getMinutes()<5){e.next=12;break}if(e.t0=u,!e.t0){e.next=9;break}return e.next=8,Object(v.a)();case 8:e.t0=e.sent;case 9:if(e.t0){e.next=12;break}return e.abrupt("return");case 12:if(t){e.next=15;break}return l.debug&&Object(A.f)("\ud83d\udec7 Cannot run auto backup trigger check. A backup or restore is in progress."),e.abrupt("return");case 15:return e.next=17,Object(s.b)();case 17:return o=e.sent,i=o.settings,e.next=21,i.get("disableAutoBackupRemotely");case 21:if(!e.sent){e.next=25;break}return l.debug&&Object(A.a)("\ud83d\udec7 auto-backup skipped: auto-backup is globally disabled"),e.abrupt("return");case 25:return e.next=27,Object(P.a)("enableAutoBackup");case 27:if(e.sent){e.next=31;break}return l.debug&&Object(A.a)("\ud83d\udec7 auto-backup skipped: auto-backup is disabled"),e.abrupt("return");case 31:return e.next=33,Ae();case 33:if(!e.sent){e.next=42;break}if(!l.debug){e.next=42;break}return e.t1=A.f,e.t2="auto-backup: web storage usage is high: ",e.next=39,Object(I.b)();case 39:e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3,"%"),(0,e.t1)(e.t4);case 42:return e.next=44,V({log:l});case 44:return e.next=46,q({log:l});case 46:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}function V(e){var t=e.log;return t.debug&&Object(A.d)("-----------------------------------\n--- AUTO-BACKUP FOR COLLECTIONS ---\n-----------------------------------"),$({type:"collections",getDbChangedDate:J,checkForClearingEvent:function(){var e=Object(a.a)(R().mark((function e(){var t;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.h)();case 2:return t=e.sent,e.abrupt("return",void 0!==t&&t<20);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getDbOldestCreatedDate:ne,backup:ue,log:t})}function q(e){var t=e.log;return t.debug&&Object(A.d)("------------------------------\n--- AUTO-BACKUP FOR EVENTS ---\n------------------------------"),$({type:"events",getDbChangedDate:ee,checkForClearingEvent:function(){return Promise.resolve(!0)},getDbOldestCreatedDate:oe,backup:se,log:t})}function $(e){return Y.apply(this,arguments)}function Y(){return(Y=Object(a.a)(R().mark((function e(t){var n,r,o,i,a,c,u,l,s,f,d,p,h,v;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,r=t.getDbChangedDate,o=t.checkForClearingEvent,i=t.getDbOldestCreatedDate,a=t.backup,c=t.log,e.next=3,X(n);case 3:if(!(u=e.sent)){e.next=30;break}if(!((l=Object(T.k)(Object(T.m)()-D))&&l<u)){e.next=9;break}return c.debug&&(s=Math.round((+u-+l)/T.f),f=s?" (".concat(s," minutes remaining)"):"",Object(A.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: last backup is too recent").concat(f))),e.abrupt("return");case 9:return e.next=11,r();case 11:if(!((d=e.sent)&&d<u)){e.next=15;break}return c.debug&&Object(A.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: no changes since last backup")),e.abrupt("return");case 15:return e.next=17,o();case 17:if(!e.sent){e.next=30;break}return e.next=20,i();case 20:if(p=e.sent,c.debug&&Object(A.a)("oldest item in ".concat(n," DB is ").concat(p?"".concat(Object(T.e)(p)," (").concat(Object(T.j)(p),")"):"unknown")),p&&!(u<p)){e.next=30;break}if(c.debug&&Object(A.f)("recent clearing event likely for ".concat(n)),h=+u+B,c.debug&&Object(A.a)("".concat(n," backup preservation ").concat(Object(T.m)()<h?"expires":"expired"," ").concat(Object(T.j)(h))),!((v=Object(T.k)(Object(T.m)()-B))&&v<u)){e.next=30;break}return c.debug&&Object(A.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: preserving backup")),e.abrupt("return");case 30:return c.debug&&Object(A.a)("".concat(n," auto-backup checks satisfied")),e.next=33,a({log:c});case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return Q.apply(this,arguments)}function Q(){return(Q=Object(a.a)(R().mark((function e(t){var n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be(t);case 2:return n=e.sent,e.abrupt("return",Object(T.k)(null===n||void 0===n?void 0:n.timestamp));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(){return Z.apply(this,arguments)}function Z(){return(Z=Object(a.a)(R().mark((function e(){var t;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)("localDbCollectionsChanged");case 2:return t=e.sent,e.abrupt("return",Object(T.k)(t));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(){return te.apply(this,arguments)}function te(){return(te=Object(a.a)(R().mark((function e(){var t;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)("localDbEventsChanged");case 2:return t=e.sent,e.abrupt("return",Object(T.k)(t));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(){return re.apply(this,arguments)}function re(){return(re=Object(a.a)(R().mark((function e(){var t,n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.e)();case 2:if(e.t1=t=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===t;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=t.created;case 11:return n=e.t2,e.abrupt("return",Object(T.k)(n));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){return ie.apply(this,arguments)}function ie(){return(ie=Object(a.a)(R().mark((function e(){var t,n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.h)();case 2:if(e.t1=t=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===t;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=t.id;case 11:return n=e.t2,e.abrupt("return",Object(T.k)(n));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(){return ce.apply(this,arguments)}function ce(){return ce=Object(a.a)(R().mark((function e(){var t,n,r,i,c,u,l,s,f,d=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=d.length>0&&void 0!==d[0]?d[0]:{}).type,r=t.logProgress,e.next=3,Object(P.b)(["debugLocalBackup","debug"]);case 3:if(i=e.sent,c=i.debugLocalBackup,u=i.debug,l=Ye({debugLocalBackup:c,debugGeneral:u,logProgress:r}),!(s=qe())){e.next=14;break}if(f={status:"error",message:"Backup failed. ".concat(s,".")},l.progress&&Object(A.b)(f.message),!n){e.next=13;break}return e.abrupt("return",Object(o.a)({},n,f));case 13:return e.abrupt("return",{collections:f,events:f});case 14:return e.abrupt("return",navigator.locks.request(U,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(R().mark((function e(t){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=6;break}if(r={status:"skipped",message:"Cannot run backup. A backup or restore is in progress."},l.progress&&Object(A.f)(r.message),!n){e.next=5;break}return e.abrupt("return",Object(o.a)({},n,r));case 5:return e.abrupt("return",{collections:r,events:r});case 6:return e.next=8,Ae();case 8:if(!e.sent){e.next=16;break}return e.t0=A.f,e.t1="Web storage usage is high: ",e.next=13,Object(I.b)();case 13:e.t2=e.sent,e.t3=e.t1.concat.call(e.t1,e.t2,"%"),(0,e.t0)(e.t3);case 16:if(!n){e.next=31;break}if(e.t4=o.a,e.t5={},e.t6=n,"collections"!==n){e.next=26;break}return e.next=23,ue({log:l});case 23:e.t7=e.sent,e.next=29;break;case 26:return e.next=28,se({log:l});case 28:e.t7=e.sent;case 29:return e.t8=e.t7,e.abrupt("return",(0,e.t4)(e.t5,e.t6,e.t8));case 31:return e.next=33,ue({log:l});case 33:return e.t9=e.sent,e.next=36,se({log:l});case 36:return e.t10=e.sent,e.abrupt("return",{collections:e.t9,events:e.t10});case 38:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),ce.apply(this,arguments)}function ue(e){return le.apply(this,arguments)}function le(){return(le=Object(a.a)(R().mark((function e(t){var n,r,o,i;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(A.d)("Backing up collections..."),e.next=4,Object(P.b)(["backupCollectionsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupCollectionsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"collections",getDbCount:d.h,chunkSize:i,max:o,fetchChunk:function(e){return Object(d.c)({from:e?{pinnedTouchedTuple:[e.pinned,e.touched],collectionId:e.id}:void 0,limit:i}).then((function(e){var t;return{main:e.main.map(h.F),boundary:null===(t=e.boundary)||void 0===t?void 0:t.map(h.F)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return fe.apply(this,arguments)}function fe(){return(fe=Object(a.a)(R().mark((function e(t){var n,r,o,i;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(A.d)("Backing up events..."),e.next=4,Object(P.b)(["backupEventsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupEventsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"events",getDbCount:p.j,chunkSize:i,max:o,fetchChunk:function(e){return Object(p.e)({lastItemId:null===e||void 0===e?void 0:e.id,limit:i}).then((function(e){return{main:e.map(h.G)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e){return pe.apply(this,arguments)}function pe(){return(pe=Object(a.a)(R().mark((function e(t){var n,o,i,a,c,u,l,s,f,d,p,h,v,b,y,g,w,O,x,j,E,k,S,L,C,I,P,M;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,o=t.getDbCount,i=t.chunkSize,a=t.max,c=t.fetchChunk,u=t.log,!(l=u.checkpoints?$e(n):void 0)){e.next=5;break}return e.next=5,l("getting DB count...");case 5:return e.next=7,o();case 7:if(s=e.sent){e.next=15;break}if(f=null==s?"error accessing ".concat(n):"no ".concat(n," to back up"),u.progress&&Object(A.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(f)),!l){e.next=14;break}return e.next=14,l("done");case 14:return e.abrupt("return",{status:"skipped",message:f});case 15:if(d=Object(T.m)(),!l){e.next=19;break}return e.next=19,l("clearing backup...");case 19:return e.next=21,me(n);case 21:e.prev=21,h=0,v=0,b=0,y=new Set,g=Ve({type:n,chunkSize:i,max:a,checkpoint:l}),w=g.saveItems,O=g.flush;case 27:if(v++,!l){e.next=32;break}return e.next=32,l("fetching page ".concat(v," (size: ").concat(i,", count: ").concat(h,")..."));case 32:return e.next=34,c(p);case 34:if(x=e.sent,j=(x.boundary||[]).filter((function(e){var t=e.id;return!y.has(t)})),(E=[].concat(Object(r.a)(j),Object(r.a)(x.main))).forEach((function(e){var t=e.id;return y.add(t)})),k=x.main.length!==i,h+E.length>a&&(S=Math.max(0,a-h),u.debug&&Object(A.f)("Backup count limit reached for ".concat(n,": ").concat(a," items. current count: ").concat(h,". trimming items from ").concat(E.length," to ").concat(S)),k=!0,E.length=S),!E.length){e.next=46;break}return p=Object(m.g)(E),e.next=44,w(E);case 44:h+=E.length,u.progress&&(L=10*Math.round(h/Math.min(a,s)*10))>b&&L<100&&(b=L,Object(A.a)("".concat(b,"% ").concat(n," backed up")));case 46:if(!k){e.next=48;break}return e.abrupt("break",50);case 48:e.next=27;break;case 50:return e.next=52,O();case 52:if(h){e.next=59;break}if(C="backup storage at capacity (".concat(s.toLocaleString("en-US")," ").concat(n," not backed up)"),u.progress&&Object(A.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(C)),!l){e.next=58;break}return e.next=58,l("done");case 58:return e.abrupt("return",{status:"skipped",message:C});case 59:if(!l){e.next=62;break}return e.next=62,l("generating summary...");case 62:return I=Math.round(Object(T.m)()-d),e.t0=Object(T.n)(),e.t1=h,e.t2=I,e.t3=_.b,e.next=69,Re(n);case 69:return e.t4=e.sent,e.next=72,(0,e.t3)(e.t4);case 72:if(e.t5=e.sent,e.t6=i,e.t7=s,e.t8=a,P={timestamp:e.t0,count:e.t1,duration:e.t2,usage:e.t5,chunkSize:e.t6,dbCount:e.t7,max:e.t8,version:1},!l){e.next=80;break}return e.next=80,l("saving summary...");case 80:return e.next=82,ze(n,P);case 82:if(!l){e.next=85;break}return e.next=85,l("done");case 85:return u.progress&&Object(A.e)("\u2713 ".concat(n," backed up (").concat(h.toLocaleString("en-US")," of ").concat(s.toLocaleString("en-US")," in ").concat((Math.round(I/1e3*100)/100).toLocaleString("en-US")," seconds)")),e.abrupt("return",{status:"success",summary:P});case 89:if(e.prev=89,e.t9=e.catch(21),M=Object(N.a)(e.t9),e.prev=92,!l){e.next=96;break}return e.next=96,l("clearing incomplete backup after exception: ".concat(M));case 96:return e.next=98,me(n);case 98:e.next=102;break;case 100:e.prev=100,e.t10=e.catch(92);case 102:if(e.prev=102,u.progress&&Object(A.b)("\u2717 ".concat(n," backup failed: ").concat(M)),!l){e.next=107;break}return e.next=107,l("backup failed: ".concat(M));case 107:return e.abrupt("return",{status:"error",message:M});case 109:case"end":return e.stop()}}),e,null,[[21,89],[92,100,102,109]])})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return ve=Object(a.a)(R().mark((function e(t){var n,r,o=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(o.length>1&&void 0!==o[1]?o[1]:{}).minSize,!(r=qe())){e.next=4;break}return e.abrupt("return","Backup clear failed. ".concat(r,"."));case 4:return e.abrupt("return",navigator.locks.request(U,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(R().mark((function e(r){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return","Can't clear right now. A backup or restore is in progress.");case 2:if(!t){e.next=4;break}return e.abrupt("return",me(t,{minSize:n}));case 4:return e.next=6,me("collections",{minSize:n});case 6:return e.next=8,me("events",{minSize:n});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:case"end":return e.stop()}}),e)}))),ve.apply(this,arguments)}function me(e){return be.apply(this,arguments)}function be(){return be=Object(a.a)(R().mark((function e(t){var n,o,a,c,u,l,s,f,d=arguments;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(d.length>1&&void 0!==d[1]?d[1]:{}).minSize,!Object(C.c)(n)){e.next=7;break}return e.next=4,Be(t);case 4:if(!((o=e.sent)&&Object(C.c)(o.usage)&&o.usage<n)){e.next=7;break}return e.abrupt("return");case 7:return a=We(t),e.next=10,Re(t);case 10:c=e.sent,u=[a].concat(Object(r.a)(c)),l=Object(i.a)(u),e.prev=13,l.s();case 15:if((s=l.n()).done){e.next=21;break}return f=s.value,e.next=19,Object(_.f)(f);case 19:e.next=15;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(13),l.e(e.t0);case 26:return e.prev=26,l.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[13,23,26,29]])}))),be.apply(this,arguments)}function ye(e){return ge.apply(this,arguments)}function ge(){return ge=Object(a.a)(R().mark((function e(t){var n,r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=qe())){e.next=6;break}if(r={valid:void 0,message:"Backup validation failed. ".concat(n,".")},!t){e.next=5;break}return e.abrupt("return",Object(o.a)({},t,r));case 5:return e.abrupt("return",{collections:r,events:r});case 6:return e.abrupt("return",navigator.locks.request(U,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(R().mark((function e(n){var r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=5;break}if(r={valid:void 0,message:"Can't validate right now. A backup or restore is in progress."},!t){e.next=4;break}return e.abrupt("return",Object(o.a)({},t,r));case 4:return e.abrupt("return",{collections:r,events:r});case 5:if(!t){e.next=13;break}return e.t0=o.a,e.t1={},e.t2=t,e.next=11,we(t);case 11:return e.t3=e.sent,e.abrupt("return",(0,e.t0)(e.t1,e.t2,e.t3));case 13:return e.next=15,we("collections");case 15:return e.t4=e.sent,e.next=18,we("events");case 18:return e.t5=e.sent,e.abrupt("return",{collections:e.t4,events:e.t5});case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:case"end":return e.stop()}}),e)}))),ge.apply(this,arguments)}function we(e){return Oe.apply(this,arguments)}function Oe(){return(Oe=Object(a.a)(R().mark((function e(t){var n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xe(t);case 2:return n=e.sent,e.abrupt("return",n?{valid:!1,message:n}:{valid:!0});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e){return je.apply(this,arguments)}function je(){return(je=Object(a.a)(R().mark((function e(t){var n,r,o,a,c,u,l,s,f,d,p,h,v,m;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Be(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return","No backup found");case 5:return r=n.count,o=n.chunkSize,a=n.max,e.next=8,Re(t);case 8:c=e.sent.sort(),u=1,l=0,s=Ke(o,a),f=function(e){return Fe(t,e,s)},d=Object(i.a)(c),e.prev=14,d.s();case 16:if((p=d.n()).done){e.next=38;break}if(h=p.value,(v=f(u))===h){e.next=21;break}return e.abrupt("return","Expected chunk key ".concat(v," but found ").concat(h));case 21:return e.next=23,_e(h);case 23:if(m=e.sent,Array.isArray(m)){e.next=26;break}return e.abrupt("return","Data for ".concat(h," is not an array"));case 26:if(!(u===c.length)){e.next=32;break}if(!(m.length>o)){e.next=30;break}return e.abrupt("return","Expected last chunk size ".concat(o," or less for ").concat(h," but found ").concat(m.length));case 30:e.next=34;break;case 32:if(m.length===o){e.next=34;break}return e.abrupt("return","Expected chunk size ".concat(o," for ").concat(h," but found ").concat(m.length));case 34:l+=m.length,u++;case 36:e.next=16;break;case 38:e.next=43;break;case 40:e.prev=40,e.t0=e.catch(14),d.e(e.t0);case 43:return e.prev=43,d.f(),e.finish(43);case 46:if(l===r){e.next=48;break}return e.abrupt("return","Expected ".concat(t," count to be ").concat(r.toLocaleString("en-US")," but it was ").concat(l.toLocaleString("en-US")));case 48:case"end":return e.stop()}}),e,null,[[14,40,43,46]])})))).apply(this,arguments)}function Ee(){return ke.apply(this,arguments)}function ke(){return(ke=Object(a.a)(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!qe()){e.next=2;break}return e.abrupt("return",{});case 2:return e.next=4,Be("collections");case 4:return e.t0=e.sent,e.next=7,Be("events");case 7:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Se(e){return Le.apply(this,arguments)}function Le(){var e;return e=R().mark((function e(t){var n,r,o,a,c;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(Re(t));case 2:n=e.sent.sort(),r=Object(i.a)(n),e.prev=4,r.s();case 6:if((o=r.n()).done){e.next=19;break}return a=o.value,e.next=10,u(_e(a));case 10:if(c=e.sent,!Array.isArray(c)){e.next=16;break}return e.next=14,c;case 14:e.next=17;break;case 16:Object(A.f)("invalid ".concat(t," chunk for key ").concat(a,": not an array"));case 17:e.next=6;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(4),r.e(e.t0);case 24:return e.prev=24,r.f(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[4,21,24,27]])})),Le=function(){return new l(e.apply(this,arguments))},Le.apply(this,arguments)}function Ce(e,t){return Object(_.e)(We(e),(function(e){t(Ge(e)?e:void 0)}))}function Te(){return Ie.apply(this,arguments)}function Ie(){return(Ie=Object(a.a)(R().mark((function e(){return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)("".concat(W,"collections"));case 2:return e.t0=e.sent,e.next=5,Object(_.a)("".concat(W,"events"));case 5:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=Object(a.a)(R().mark((function e(t){var n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.a)(t);case 2:if(n=e.sent,!(n&&"string"===typeof n)){e.next=10;break}return e.next=7,O(n);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=n;case 11:return e.abrupt("return",e.t0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return Pe.apply(this,arguments)}function Pe(){return(Pe=Object(a.a)(R().mark((function e(){var t;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(I.b)();case 2:return t=e.sent,e.abrupt("return",!!t&&t>90);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(e){return Me.apply(this,arguments)}function Me(){return(Me=Object(a.a)(R().mark((function e(t){var n;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=De(t),e.next=3,Object(_.c)();case 3:return e.abrupt("return",e.sent.filter((function(e){return e.startsWith(n)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;return"".concat(De(e)).concat(t.toString().padStart(n,"0"))}function De(e){return"".concat(z).concat(e,"-")}function Be(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=Object(a.a)(R().mark((function e(t){var n,r;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=We(t),e.next=3,Object(_.a)(n);case 3:if(!Ge(r=e.sent)){e.next=6;break}return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e,t){return Object(_.i)(We(e),t)}function Ge(e){if(!e||"object"!==typeof e)return!1;var t=e;return"string"===typeof t.timestamp&&!!t.timestamp&&"number"===typeof t.count&&"number"===typeof t.usage&&"number"===typeof t.duration&&"number"===typeof t.chunkSize&&(null==t.max||"number"===typeof t.max)}function We(e){return"".concat(G).concat(e)}function He(e){var t,n=Object(i.a)(e||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("folders"in r){var o,a,c=Object(i.a)(null!==(o=r.folders)&&void 0!==o?o:[]);try{for(c.s();!(a=c.n()).done;){var u,l,s=a.value,f=Object(i.a)(null!==(u=s.links)&&void 0!==u?u:[]);try{for(f.s();!(l=f.n()).done;){g(l.value)}}catch(w){f.e(w)}finally{f.f()}}}catch(w){c.e(w)}finally{c.f()}}else if("windows"in r){var d,p,h=Object(i.a)(null!==(d=r.windows)&&void 0!==d?d:[]);try{for(h.s();!(p=h.n()).done;){var v,m,b=p.value,y=Object(i.a)(null!==(v=b.tabs)&&void 0!==v?v:[]);try{for(y.s();!(m=y.n()).done;){g(m.value)}}catch(w){y.e(w)}finally{y.f()}}}catch(w){h.e(w)}finally{h.f()}}}}catch(w){n.e(w)}finally{n.f()}return e;function g(e){e.favIconUrl&&"string"===typeof e.favIconUrl&&e.favIconUrl.length>1e3&&delete e.favIconUrl}}function Ke(e,t){return null==t?8:Math.ceil(t/e).toString().length+1}function Ve(e){var t=e.type,n=e.chunkSize,r=e.max,o=e.checkpoint,c=Ke(n,r),u=function(e){return Fe(t,e,c)},l=[],s=1;return{saveItems:function(e){return Object(a.a)(R().mark((function t(){var r,o,a;return R().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Object(i.a)(e),t.prev=1,r.s();case 3:if((o=r.n()).done){t.next=11;break}if(a=o.value,l.push(a),!(l.length>=n)){t.next=9;break}return t.next=9,f();case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),r.e(t.t0);case 16:return t.prev=16,r.f(),t.finish(16);case 19:return t.abrupt("return",l.length);case 20:case"end":return t.stop()}}),t,null,[[1,13,16,19]])})))()},flush:f};function f(){return d.apply(this,arguments)}function d(){return(d=Object(a.a)(R().mark((function e(){var t;return R().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.length){e.next=2;break}return e.abrupt("return");case 2:if(!o){e.next=5;break}return e.next=5,o("sanitizing and compressing chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 5:return e.next=7,g(He(l));case 7:if(t=e.sent,!o){e.next=11;break}return e.next=11,o("saving chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 11:return e.next=13,Object(_.i)(u(s),t);case 13:s++,l.length=0;case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}function qe(){var e=Object(L.a)();return e&&e<M?"Chromium version ".concat(e," is older than min required version (").concat(M,")"):Object(_.d)()?void 0:"Extension storage is not available"}function $e(e){return function(t){return Object(_.i)("".concat(W).concat(e),{message:t,timestamp:Object(T.n)()})}}function Ye(e){var t=e.debugOverride,n=e.debugLocalBackup,r=e.debugGeneral,o=e.logProgress,i=!!(t||n||r);return{debug:i,progress:i||!!o,checkpoints:!!n}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(62);function o(e){var t=Object(r.c)(e);return e.shiftKey?t?"additive-range":"range":t?"toggle":"single"}function i(e,t,n){if(!(null===n||void 0===n?void 0:n.length))return null;var r=n.length-1,o=null==e||"first"===t?0:"next"===t?e+1:"prev"===t?e-1:"last"===t?r:null;return null==o?null:o<0?0:o>r?r:o}function a(e){var t=e.selectedItem,n=e.anchorItem,r=e.allItems,o=e.preserveOrder,i=r.indexOf(t);if(i<0)return[];if(null==n||n===t)return[t];var a=r.indexOf(n);if(a<0)return[t];var c=r.slice(Math.min(a,i),Math.max(a,i)+1);return!o&&i<a&&c.reverse(),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return K})),n.d(t,"h",(function(){return V})),n.d(t,"g",(function(){return q})),n.d(t,"i",(function(){return $})),n.d(t,"f",(function(){return Y})),n.d(t,"l",(function(){return X})),n.d(t,"k",(function(){return Q})),n.d(t,"n",(function(){return J})),n.d(t,"m",(function(){return Z})),n.d(t,"e",(function(){return ee})),n.d(t,"d",(function(){return te})),n.d(t,"b",(function(){return ne})),n.d(t,"j",(function(){return oe})),n.d(t,"o",(function(){return ie})),n.d(t,"c",(function(){return ue}));var r=n(149),o=n(22),i=n(67),a=n(14),c=n(26),u=n(2),l=n(3),s=n(1),f=n(59),d=n(58),p=n(115),h=n(64),v=n(65),m=n(116),b=n(50),y=n(56),g=n(63),w=n(99),O=n(29),x=n(5),j=n(109),E=n(81),k=n(79),S=n(12),L=n(8),C=n(37),T=n(13),I=n(18),_=n(9),N=n(10),A=n(39),P=n(52),R=n(49),M=n(47),F=n(6),D=n(36),B=["sourceId"],U=["sourceId"];function z(){z=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var G,W,H=250,K=function(e){Object(h.a)(n,e);var t=Object(v.a)(n);function n(){var e;Object(f.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Error.captureStackTrace&&Error.captureStackTrace(Object(p.a)(e),n),e.name="PinExceededError",e}return Object(d.a)(n,[{key:"toString",value:function(){return this.message}}]),n}(Object(m.a)(Error)),V=function(e){e.sets.collections.navSetsLoading=!0},q=function(e){e.sets.collections.navSetsLoading&&(e.sets.collections.navSetsLoadingLong=!0)},$=function(e,t){var n,r=t.payload,o=r.fetchedCollections,i=r.exhausted,a=function(t){t.id&&(e.sets.collections.sets[t.id]=Object(s.a)(Object(s.a)(Object(s.a)({},e.sets.collections.sets[t.id]),t),{},{loaded:Object(L.m)()}),e.sets.collections.navSetIds.includes(t.id)||e.sets.collections.navSetIds.push(t.id))};null===(n=o.boundary)||void 0===n||n.forEach(a),o.main.forEach(a),e.sets.collections.navSetIds=Object(l.a)(e.sets.collections.navSetIds).sort(ce(e.sets)),e.sets.collections.initialized=!0,e.sets.collections.exhausted=i,ae(e.sets.collections)},Y=function(e,t){var n=t.payload;Object(I.d)("Failed to fetch nav collections: ".concat(n)),ae(e.sets.collections)},X=function(e){e.sets.collections.navSetIds=[],e.sets.collections.exhausted=!0},Q=function(e){ae(e.sets.collections)},J=function(e,t){var n=t.payload;if(n.every(E.a)){var r=e.sets.collections;n.forEach((function(e){r.sets[e.id]=Object(x.y)(e)}));var o=n.map((function(e){return e.id}));r.navSetIds=[].concat(Object(l.a)(o),Object(l.a)(Object(S.k)(r.navSetIds,o))),r.navSetIds=Object(l.a)(r.navSetIds).sort(ce(e.sets))}else Object(I.d)("Some saving collections are missing an id",n)},Z=function(e,t){var n=t.payload,r=n.error,o=n.savingCollections;if(Object(I.d)("Failed to save collections".concat(r?": ".concat(r):""),o),W)return Object(s.a)(Object(s.a)({},e),{},{sets:Object(s.a)(Object(s.a)({},e.sets),W)})},ee=function(e,t){var n=t.payload,r=e.sets.collections;r.navSetIds=Object(S.k)(r.navSetIds,n),e.sets.invalidSets=Object(S.j)(e.sets.invalidSets,(function(e){var t=e.id;return n.includes(t)})),e.sets.loadingNewSetIds=Object(S.k)(e.sets.loadingNewSetIds,n),n.forEach((function(e){delete r.sets[e]}))},te=function(e,t){var n=t.payload,r=n.error,o=n.deletingCollectionIds;if(Object(I.d)("Failed to delete collections".concat(r?": ".concat(r):""),o),W)return Object(s.a)(Object(s.a)({},e),{},{sets:Object(s.a)(Object(s.a)({},e.sets),W)})},ne=["itemsSelected","setsSelected","fetchNavCollectionsStarted","fetchNavCollectionsLongStarted","fetchNavCollectionsSucceeded","fetchNavCollectionsFailed","navCollectionsNavSetIdsCleared","navCollectionsLoadingStopped","saveCollectionsStarted","saveCollectionsFailed","deleteCollectionsStarted","deleteCollectionsFailed","itemsDeselected","selectPostDeleteNavSet"],re=0;function oe(e){var t=Object(k.a)();return{fetchNavCollections:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,r=void 0!==n&&n,o=t.reset;return function(){var t=Object(u.a)(z().mark((function t(n,i){var a,c,u,l,s,f,d,p,h,v,m,y;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(A.b)(["debug","collectionFetchAll","collectionFetchCountInitial","collectionFetchCountLazy"]);case 2:return a=t.sent,c=a.debug,u=a.collectionFetchAll,l=a.collectionFetchCountInitial,s=a.collectionFetchCountLazy,f=u?999999999:o?l:s,d=++re,p=i(),h=p.content,v=h.sets.searchTerms,n(e.navCollectionsLoadingStopped()),n(e.fetchNavCollectionsStarted()),r?n(e.fetchNavCollectionsLongStarted()):G=window.setTimeout((function(){n(e.fetchNavCollectionsLongStarted())}),H),t.prev=14,o&&n(e.navCollectionsNavSetIdsCleared()),m=o?void 0:Object(F.l)(h.sets),t.next=19,Object(b.c)({partial:!0,from:m?{pinnedTouchedTuple:[m.pinned,m.touched],collectionId:m.id}:void 0,limit:f,searchTerms:v});case 19:if(y=t.sent,re===d){t.next=23;break}return c&&Object(_.f)("collections fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavCollectionsSucceeded({fetchedCollections:y,exhausted:y.main.length!==f})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavCollectionsFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(w.a)("collections-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()},createCollectionFromSelectedSets:n,createCollectionFromLocalWindows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.timestamp,n=void 0===t?Object(L.m)():t;return function(e,t){var r=t(),o=r.content,i=r.settings;if(o.sets.localWindows.length){var a="local-client",c=Object(F.h)({selectedSetCount:1,sourceType:a}),u=c.successText,l=c.failureText,s={id:Object(C.c)(),clientId:O.a.id,sourceType:a,created:n,pinned:0,updated:n,touched:n,folders:Object(F.d)({windows:o.sets.localWindows})};return i.autoNameCollections&&(s.title=N.a.shortDate(Object(L.m)())),e(d({savingCollections:[s],select:!0,successNotificationOpts:{text:u||D.a.collectionSaved()},failureNotificationOpts:{text:l||D.a.failedToSaveCollection(),severity:"error",actionText:D.a.tryAgain(),action:"replay"}}))}}},updateCollection:r,touchCollections:o,touchSelectedCollections:function(){return Q(o)},pinCollections:f,pinSelectedCollections:function(){return Q(f)},unpinSelectedCollections:function(){return function(e,t){var n,r=t().content,o=r.sets.collections,i=Object(S.e)(o.navSetIds,r.sets.selectedSetIds);return e((n=i,function(e,t){var r=t().content;return e(d({savingCollections:Object(S.q)(n).map((function(e){var t=Object(F.g)(r.sets,e);return t?Object(s.a)(Object(s.a)({},t),{},{pinned:0}):null})).filter(Boolean)}))}))}},deleteCollections:p,deleteSelectedCollections:function(e){return function(){var t=Object(u.a)(z().mark((function t(n,r){var o,i,a,c,u;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,(a=i.sets.selectedSetIds.filter((function(e){return i.sets.collections.sets[e]}))).length){t.next=4;break}return t.abrupt("return");case 4:return c="Delete ".concat(N.a.collection({count:a.length}),"?"),u="".concat(N.a.collection({count:a.length,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(g.d)({title:c,text:u,bypass:e,bypassSetting:"bypassConfirmCollectionDelete",okAction:function(){n(p(a))}})));case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},unifyCollectionFolders:h,unifySelectedCollectionFolders:function(){return pe((function(e){return h(e)}),null)},overwriteCollectionWithCurrent:v,overwriteSelectedCollectionWithCurrent:function(){return pe((function(e){return v(e)}),null)},sortCollectionLinks:m,sortSelectedCollectionLinks:function(e){return pe((function(t){return m(t,e)}),null)},moveCollectionItems:T,moveSelectedCollectionItems:function(e){return pe((function(t){return T(t,e)}),void 0)},addLinksToCollection:V,addLinksToSelectedCollection:function(e,t){return pe((function(n){return V(e,n,t)}),{links:[]})},deleteItemsFromCollection:q,deleteItemsFromSelectedCollection:function(e){return pe((function(t){return q({itemSelections:e,collection:t})}),void 0)},moveItemsFromCollection:$,moveItemsFromSelectedCollection:function(e){return pe((function(t){return $({itemSelections:e,collection:t})}),void 0)},patchCollectionFolder:Y,patchSelectedCollectionFolder:function(e,t){return pe((function(n){return Y({collection:n,folderId:e,props:t})}),void 0)},patchCollectionLink:X,patchSelectedCollectionLink:function(e,t){return pe((function(n){return X({collection:n,linkId:e,props:t})}),void 0)}};function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combine,n=e.selectedItemsOnly,r=e.timestamp,o=void 0===r?Object(L.m)():r,i=e.propagateColor;return function(){var e=Object(u.a)(z().mark((function e(r,a){var c,u,l,f,h,v,m,b,y,g,w,x,E,k,S,T,I,_,A,B,U,G,W;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=a(),l=P.i.selectedSetGroups(u),f=l.windows,h=l.folders,(f||h).length){e.next=4;break}return e.abrupt("return",[]);case 4:return v=u.content.sets.selectedSetIds,m=n?M.j.itemSelections(u):{unitIds:[],groupIds:[]},b=P.i.multipleSetsAreSelected(u),y=P.i.onlyLocalClientIsSelected(u),g=R.r.selectedClientHistoryItemId(u),w=Object(F.i)({multipleSetsAreSelected:b,onlyLocalClientIsSelected:y,isEventSelected:y&&!!g,isFolders:!!h,itemSelections:m}),x="multi"===w&&t,E=Object(F.h)({combining:x,selectedSetCount:v.length,sourceType:w}),k=E.successText,S=E.failureText,T=null!==(c=Object(F.e)(u.content.sets,(function(e){return!!e.title})))&&void 0!==c?c:Object(F.e)(u.content.sets),I=x?T:null,e.next=16,Object(O.b)();case 16:return _=e.sent,A=_.id,B=i&&T?Object(j.c)({id:T.id,color:T.color,defaultCollectionColor:u.settings.defaultCollectionColor}):void 0,U=I||{id:Object(C.c)(),clientId:A,color:B,sourceType:w,created:o,pinned:0},G=Object(s.a)(Object(s.a)({},U),{},{updated:o,touched:o,folders:h?Object(F.b)({folders:h,itemSelections:m}):Object(F.d)({windows:f,itemSelections:m})}),"collection"!==w&&"collection-links"!==w&&"remote-client"!==w&&"remote-client-tabs"!==w||(G.sourceId=v[0]),x||(W=P.i.selectedSetTitle(u))&&("multi"!==w&&"multi-links"!==w&&(G.sourceTitle=W),"local-client-history"!==w&&"local-client-history-tabs"!==w&&"collection"!==w&&"collection-links"!==w&&"multi"!==w&&"multi-links"!==w||(G.title=W)),x&&r(p(v.filter((function(e){return!I||e!==I.id})))),y&&!g&&!G.title&&u.settings.autoNameCollections&&(G.title=N.a.shortDate(Object(L.m)())),e.next=27,r(d({savingCollections:[G],select:!0,successNotificationOpts:{text:k||D.a.collectionSaved()},failureNotificationOpts:{text:S||D.a.failedToSaveCollection(),severity:"error",actionText:D.a.tryAgain(),action:"replay"}}));case 27:return e.abrupt("return",v);case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function r(e){var t=e.collection,n=e.timestamp,r=void 0===n?Object(L.m)():n,o=e.id,i=e.props;return function(){var e=Object(u.a)(z().mark((function e(n,a){var c,u;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(o&&i){e.next=3;break}return e.abrupt("return");case 3:if(c=Object(F.g)(a().content.sets,o)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid collection (id ".concat(o,")"));case 6:t=Object(s.a)(Object(s.a)({},c),i);case 7:if(Object(E.a)(t)&&!Object(F.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return u=r>0?Object(s.a)(Object(s.a)({},t),{},{updated:r,touched:r}):t,e.abrupt("return",n(d({savingCollections:[u],failureNotificationOpts:{text:D.a.failedToUpdateCollection(),severity:"error",actionText:D.a.tryAgain(),action:"replay"}})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function o(e){return function(t,n){var r=n().content,o=Object(L.m)(),i=0;return t(d({savingCollections:Object(S.m)(Object(S.q)(e)).map((function(e){var t=Object(F.g)(r.sets,e);return t&&Object(s.a)(Object(s.a)({},t),{},Object(c.a)({},t.pinned?"pinned":"touched",o+i++))})).filter(Boolean)}))}}function f(e){return function(t,n){var r=n().content,o=Object(L.m)(),i=0,a=0,c=Object(S.m)(Object(S.q)(e)).map((function(e){var t=Object(F.g)(r.sets,e);return t?(t.pinned||a++,Object(s.a)(Object(s.a)({},t),{},{pinned:o+i++})):null})).filter(Boolean);if(ie.pinnedCollectionCount({content:r})+a>x.c)throw new K("pinned collection max exceeded");return t(d({savingCollections:c}))}}function d(n){var r=n.savingCollections,o=n.select,i=n.successNotificationOpts,a=n.failureNotificationOpts;return function(){var n=Object(u.a)(z().mark((function n(c,u){var l,f;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.every(E.a)){n.next=3;break}return Object(I.d)("Some saving collections are missing an id",r),n.abrupt("return");case 3:return l=u(),f=l.content,o&&c(e.setsSelected({ids:r.map((function(e){return e.id}))})),c(e.saveCollectionsStarted(r)),c(Object(y.b)()),n.abrupt("return",t((function(){return W={selectedSetIds:f.sets.selectedSetIds,collections:f.sets.collections},Object(b.i)(r.map((function(e){return Object(x.y)(e,!0)})))})).then((function(){W=void 0,i&&c(Object(y.e)(i))})).catch((function(t){if(c(e.saveCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,savingCollections:r})),W=void 0,a){var n="replay"===a.action?Object(s.a)(Object(s.a)({},a),{},{action:function(){c(d({savingCollections:r,select:o,successNotificationOpts:i,failureNotificationOpts:a}))}}):a;c(Object(y.e)(n))}})));case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function p(n){return function(){var r=Object(u.a)(z().mark((function r(o,i){var a,c;return z().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return a=i(),c=a.content,o(e.selectPostDeleteNavSet()),o(e.deleteCollectionsStarted(n)),o(Object(y.b)()),r.abrupt("return",t((function(){return W={selectedSetIds:c.sets.selectedSetIds,collections:c.sets.collections},Object(b.b)(n)})).then((function(){W=void 0})).catch((function(t){var r;o(e.deleteCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,deletingCollectionIds:n})),W=void 0,o(Object(y.e)({text:n.length>1?D.a.failedToDeleteCollections(n.length):D.a.failedToDeleteCollection(null===(r=Object(F.g)(c.sets,n[0],!0))||void 0===r?void 0:r.title),severity:"error",actionText:D.a.tryAgain(),action:function(){o(p(n))}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}function h(t){return function(){var n=Object(u.a)(z().mark((function n(o,i){var a,c,u,l,f,d,p;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(a=i(),c=M.j.itemSelections(a),u=!!c.unitIds.length,l=t.folders.length>1,f=c.groupIds.length,u||l&&1!==f){n.next=9;break}return n.abrupt("return",null);case 9:return d=Object(s.a)(Object(s.a)({},t),{},{folders:se(t.folders,c)}),p=o(r({collection:d})),o(e.itemsSelected(Object(s.a)(Object(s.a)({},c),{},{allGroups:d.folders}))),n.abrupt("return",p);case 13:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function v(e){return function(){var t=Object(u.a)(z().mark((function t(n,o){var i,a,c;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.folders){t.next=2;break}return t.abrupt("return",null);case 2:return i=o(),a=i.content,c=Object(s.a)(Object(s.a)({},e),{},{sourceType:"local-client",folders:Object(F.d)({windows:a.sets.localWindows})}),t.abrupt("return",n(r({collection:c})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function m(e,t){return function(){var n=Object(u.a)(z().mark((function n(o){var i;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(e.folders.some((function(e){return e.links&&e.links.length>1}))){n.next=5;break}return n.abrupt("return",null);case 5:return i=Object(s.a)(Object(s.a)({},e),{},{folders:e.folders.map((function(e){var n=Object(S.o)(e.links,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(o),Object(l.a)(de(i,t.by)))})}))}),n.abrupt("return",o(r({collection:i})));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function T(t,n){return function(){var o=Object(u.a)(z().mark((function o(i,a){var c,u,l,f,d,p,h,v,m;return z().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(null===(c=t.folders)||void 0===c?void 0:c.length){o.next=2;break}return o.abrupt("return");case 2:if(u=a(),l=u.content.sets.searchTerms,f=u.content.sets.filterSearchTerms,d=u.settings.showAllItemMatches,!l&&!f||d){o.next=8;break}return o.abrupt("return");case 8:if(p=M.j.itemSelections(u),(h=fe(t.folders,p,n))!==t.folders){o.next=12;break}return o.abrupt("return");case 12:return v=Object(s.a)(Object(s.a)({},t),{},{folders:h}),m=i(r({collection:v})),i(e.itemsSelected(Object(s.a)(Object(s.a)({},p),{},{allGroups:v.folders}))),o.abrupt("return",m);case 16:case"end":return o.stop()}}),o)})));return function(e,t){return o.apply(this,arguments)}}()}function V(e,t,n){var o=n.target,c=void 0===o?{singleFolder:!1}:o,f=c.afterLink,d=c.prependToFolder,p=c.singleFolder,h=n.itemSelections;return function(){var n=Object(u.a)(z().mark((function n(o){var c,u,v,m,b,y,g,w,O,j,E;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",{links:[]});case 2:if(c=e.folders?Object(F.b)({folders:e.folders,itemSelections:h,includeSourceId:!0}):Object(F.d)({windows:e.windows,itemSelections:h,includeSourceId:!0}),!p){n.next=9;break}m=se(c),u=[].concat(Object(l.a)(t.folders),Object(l.a)(m.map((function(e){e.sourceId;return Object(i.a)(e,B)})))),v={folders:m},n.next=29;break;case 9:if(!d){n.next=18;break}if(b=t.folders.find((function(e){return e.id===d}))){n.next=13;break}throw new Error("folder id ".concat(d," does not match any folder in collection ").concat(t.id));case 13:y=[],u=t.folders.map((function(e){if(e!==b)return e;var t=Object(S.o)(Object(x.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];y=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(S.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(r),Object(l.a)(f),Object(l.a)(o),Object(l.a)(d))})})),v={links:y},n.next=29;break;case 18:if(!f){n.next=27;break}if(g=Object(x.p)(t.folders,(function(e){return e.id===f})),w=g.group,O=g.unit){n.next=22;break}throw new Error("link id ".concat(f," does not match any link in collection ").concat(t.id));case 22:j=[],u=t.folders.map((function(e){if(e!==w)return e;var t=Object(S.o)(Object(x.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];j=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(S.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];if(O.pinned){var p=f.indexOf(O)+1,h=Object(S.p)(f,p),v=Object(a.a)(h,2),m=v[0],b=v[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(m),Object(l.a)(r),Object(l.a)(b),Object(l.a)(o),Object(l.a)(d))})}var y=d.indexOf(O)+1,g=Object(S.p)(d,y),E=Object(a.a)(g,2),k=E[0],L=E[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(f),Object(l.a)(r),Object(l.a)(k),Object(l.a)(o),Object(l.a)(L))})})),v={links:j},n.next=29;break;case 27:u=[].concat(Object(l.a)(t.folders),Object(l.a)(c.map((function(e){e.sourceId;return Object(i.a)(e,U)})))),v={folders:c};case 29:return E=Object(s.a)(Object(s.a)({},t),{},{folders:u}),n.next=32,o(r({collection:E}));case 32:return n.abrupt("return",v);case 33:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function q(t){var n=t.itemSelections,o=t.collectionId,i=t.collection,a=t.timestamp;return function(){var t=Object(u.a)(z().mark((function t(c,u){var l,f,d,p;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i||(i=Object(F.g)(u().content.sets,o)),i&&i.folders){t.next=3;break}return t.abrupt("return");case 3:if(!Object(F.u)(i)&&!Object(F.t)(u().content.sets,i.id)){t.next=5;break}return t.abrupt("return");case 5:return l=i.folders.filter((function(e){return!e.links.length})).map((function(e){return e.id})),f=i.folders.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),d=f.filter((function(e){return e.links.length||l.includes(e.id)})),p=Object(s.a)(Object(s.a)({},i),{},{folders:d}),c(e.itemsDeselected(n)),t.abrupt("return",c(r({collection:p,timestamp:a})));case 11:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function $(e){var t=e.itemSelections,r=e.collection;return function(){var e=Object(u.a)(z().mark((function e(o,i){var a;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&r.folders){e.next=2;break}return e.abrupt("return");case 2:if(!Object(F.u)(r)&&!Object(F.t)(i().content.sets,r.id)){e.next=4;break}return e.abrupt("return");case 4:return a=Object(L.m)(),e.next=7,o(n({selectedItemsOnly:!0,timestamp:a+1}));case 7:o(q({itemSelections:t,collectionId:r.id,timestamp:a}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function Y(e){var t=e.collection,n=e.folderId,o=e.props;return function(){var e=Object(u.a)(z().mark((function e(i){var a;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function X(e){var t=e.collection,n=e.linkId,o=e.props;return function(){var e=Object(u.a)(z().mark((function e(i){var a;return z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))})}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function Q(e){return function(t,n){var r=n().content,o=r.sets.collections,i=Object(S.e)(o.navSetIds,r.sets.selectedSetIds);return t(e(i))}}}var ie={collectionsInitialized:function(e){return e.content.sets.collections.initialized},navCollectionsAreLoading:function(e){return e.content.sets.collections.navSetsLoading},navCollectionsAreLoadingLong:function(e){return e.content.sets.collections.navSetsLoadingLong},navCollectionsIsExhausted:function(e){return!!e.content.sets.collections.exhausted},navCollections:function(e){var t=e.content;return t.sets.collections.navSetIds.map((function(e){return t.sets.collections.sets[e]})).filter(Boolean)},noNavCollectionsExist:function(e){var t=e.content;return!ie.navCollections({content:t}).length},pinnedCollectionCount:function(e){var t,n=e.content,r=0,i=Object(o.a)(n.sets.collections.navSetIds);try{for(i.s();!(t=i.n()).done;){var a=t.value,c=Object(F.g)(n.sets,a);if(c){if(!c.pinned)break;r++}}}catch(u){i.e(u)}finally{i.f()}return r},allSelectedCollectionsAreAtTop:function(e){var t=e.content,n=ie.pinnedCollectionCount({content:t}),r=Object(S.p)(t.sets.collections.navSetIds,n),o=Object(a.a)(r,2),i=o[0],c=o[1],u=Object(S.e)(i,t.sets.selectedSetIds),l=Object(S.e)(c,t.sets.selectedSetIds);return le(u,i)&&le(l,c)},allSelectedCollectionsArePinned:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){var n=Object(F.g)(t.sets,e,!0);return!n||n.pinned}))}};function ae(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(G)}function ce(e){return function(t,n){var r=Object(F.g)(e,t,!0),o=Object(F.g)(e,n,!0);return r||o?r?o?ue(r,o):-1:1:0}}function ue(e,t){return Object(F.j)(e,t,"pinned")||Object(F.j)(e,t,"touched")||Object(F.j)(e,t,"updated")||Object(F.j)(e,t,"created")}function le(e,t){return t.slice(0,e.length).every((function(t){return e.includes(t)}))}function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]};if(!e.length)return[];var n=t.groupIds,o=t.unitIds,i=Object(x.C)(e,t),a=n.map((function(e){return i.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),c=Object(x.r)(i),u=o.map((function(e){return c.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),f=a.length;if(u.length&&!f){var d=Object(x.A)({id:Object(C.c)(),links:u,incognito:i.some((function(e){return e.incognito}))});return[].concat(Object(l.a)(e.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))),[d])}var p=f?a:e,h=Object(r.a)(p),v=h[0],m=h.slice(1),b=Object(x.r)(m);return e.filter((function(e){return!m.includes(e)})).map((function(e){return e===v?Object(x.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(v.links),Object(l.a)(b),Object(l.a)(u))})):Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]},n=arguments.length>2?arguments[2]:void 0;if(!e.length)return e;var r=t.groupIds,o=t.unitIds;return 1!==o.length||r.length?1!==r.length||o.length?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=e.findIndex((function(e){return e.id===r}));if(o<0||!e[o])return e;return("up"===n.direction?S.h:S.i)(e,o)}(e,r,n):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=Object(x.p)(e,(function(e){return e.id===r})),i=o.group,c=o.groupIdx,u=o.unit,f=o.unitIdx;if(!i||null==c||c<0||!u||null==f||f<0)return e;if(u.pinned)return e;if("up"===n.direction){var d=f-1;if(d<0||i.links[d].pinned){if(g(i,t)){if(0===c)return e;var p=e[c-1];return p?e.map((function(e){return e===p?Object(x.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(e.links),[u])})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var h=Object(x.A)({id:Object(C.c)(),links:[u],incognito:!!i.incognito}),v=Object(l.a)(e);return v.splice(c,0,h),v.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(x.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(S.h)(e.links,f)})):e}))}if(f+1>=i.links.length){if(g(i,t)){if(c>=e.length-1)return e;var m=e[c+1];return m?e.map((function(e){return e===m?Object(x.A)(Object(s.a)(Object(s.a)({},e),{},{links:O(e.links,u)})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var b=Object(x.A)({id:Object(C.c)(),links:[u],incognito:!!i.incognito}),y=Object(l.a)(e);return y.splice(c+1,0,b),y.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(x.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(S.i)(e.links,f)})):e}));function g(e,t){return e.links.every((function(e){var n=e.id;return t.includes(n)}))}function w(e,t){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return e!==t}))})}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Object(S.o)(e,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return[].concat(Object(l.a)(o),[t],Object(l.a)(i))}}(e,o,n)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.length<2?e:Object(l.a)(e).sort((function(e,n){return Object(T.e)(e[t],n[t])}))}function pe(e,t){return function(){var n=Object(u.a)(z().mark((function n(r,o){var i,a,c;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,c=Object(F.o)(a.sets)){n.next=4;break}return n.abrupt("return",t);case 4:return n.abrupt("return",r(e(c)));case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={};function o(){return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=["Win32","Win64","Windows","WinCE"],o=["macOS","Macintosh","MacIntel","MacPPC","Mac68K"],i=["iPhone","iPad","iPod"];var a=function(){var e,t=(null===(e=globalThis.navigator.userAgentData)||void 0===e?void 0:e.platform)||globalThis.navigator.platform;return r.includes(t)?"windows":o.includes(t)?"mac":i.includes(t)?"ios":/Android/.test(globalThis.navigator.userAgent)?"android":/Linux/.test(t)?"linux":void 0}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return s}));var r=n(3),o=["B","kB","MB","GB","TB"],i=1024,a=1024*i;function c(e){if(!e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(i));return t>=o.length?"Over 1 PB":"".concat(1*+(e/Math.pow(i,t)).toFixed(2)," ").concat(o[t])}var u=16384;function l(e){for(var t=[],n=0;n<e.length;n+=u){var o=e.subarray(n,n+u);t.push(String.fromCharCode.apply(String,Object(r.a)(o)))}var i=t.join("");return btoa(i)}function s(e){for(var t=atob(e),n=t.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return y}));var r=n(2),o=n(8),i=n(79),a=n(27),c=n(18);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=100,s="logs",f=Object(i.a)();function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"info")}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"notice")}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"success")}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"warn")}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"error")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"":n,o=t.severity,i=void 0===o?"error":o;return w(Object(c.a)(e,r),i)}function y(){return g.apply(this,arguments)}function g(){return(g=Object(r.a)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)(s);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=[];case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t){return f((function(){return function(e,t){return O.apply(this,arguments)}(e,t)}))}function O(){return(O=Object(r.a)(u().mark((function e(t,n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return(r=e.sent).unshift({timestamp:Object(o.n)(),severity:n,message:t}),e.next=7,Object(a.i)(s,r.slice(0,l));case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error("Failed to update local logs",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}},function(e,t,n){"use strict";function r(){var e,t=0;return function(n){return t||(e=Promise.resolve()),t++,e=e.then(n).finally((function(){t--}))}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(54);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f}));var c="function"===typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!==typeof e)throw new Error(a(2));var o=e,i=t,u=[],d=u,p=!1;function h(){d===u&&(d=u.slice())}function v(){if(p)throw new Error(a(3));return i}function m(e){if("function"!==typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),u=null}}}function b(e){if(!s(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}return b({type:l.INIT}),(r={dispatch:b,subscribe:m,getState:v,replaceReducer:function(e){if("function"!==typeof e)throw new Error(a(10));o=e,b({type:l.REPLACE})}})[c]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e},r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,c=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:l.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(u){i=u}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},u=0;u<c.length;u++){var l=c[u],s=n[l],f=e[l],d=s(f,t);if("undefined"===typeof d){t&&t.type;throw new Error(a(14))}o[l]=d,r=r||d!==f}return(r=r||c.length!==Object.keys(e).length)?o:e}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},c=t.map((function(e){return e(o)}));return r=p.apply(void 0,c)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";function r(e){return"id"in e&&("string"===typeof e.id&&!!e.id||"number"===typeof e.id)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=function(e){Object(r.useEffect)((function(){var t=function(){e()};return window.addEventListener("popstate",t),function(){window.removeEventListener("popstate",t)}}),[e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},function(e){e.exports=JSON.parse('{"ext":{"mainFilenames":["session-buddy.html","main.html","mainUI.html","m.html"],"optionsFilename":"options.html","appStoreProfiles":{"googleChromeWebStore":{"url":"https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko","reviews":"https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko/reviews","extensionId":"edacconmaakjimmfgnblocblbcdcpbko"},"microsoftAddOnStore":{"url":"","extensionId":"microsoft-nxs-extension-id-placeholder"},"mozillaAddOnStore":{"url":"","extensionId":"mozilla-nxs-extension-id-placeholder"},"operaAddOnStore":{"url":"","extensionId":"opera-nxs-extension-id-placeholder"},"appleMacAppStore":{"url":"","extensionId":"apple-nxs-extension-id-placeholder"}}},"web":{"appUrls":["https://sessionbuddy.com/app","https://noox.is/app","https://app.sessionbuddy.com","https://sessionbuddy.app","https://www.sessionbuddy.com/app","https://www.noox.is/app","https://app.sessionbuddy.com","https://www.sessionbuddy.app"]}}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(73),o=n(158),i=n(148),a=n(113),c=n(134),u=n(84),l=n(126),s=function(e){function t(n,r,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=i.a;break;case 1:if(!n){a.destination=i.a;break}if("object"===typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,o)}return a}return r.a(t,e),t.prototype[c.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.a),f=function(e){function t(t,n,r,a){var c,u=e.call(this)||this;u._parentSubscriber=t;var l=u;return Object(o.a)(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==i.a&&(l=Object.create(n),Object(o.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(u))),u._context=l,u._next=c,u._error=r,u._complete=a,u}return r.a(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(s)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r,o=n(22),i=n(14),a=n(85),c=n(111),u=n(173),l=n(140),s=n(41),f=n(12),d=n(24),p=n(61);function h(){return r||(r=function(){var e=function(){var e=Object(l.b)();if(e){var t=Object.values(c).find((function(t){return t.browsers.includes(e)}));if(t)return t}var n=Object(p.a)();if(n){var r,o,s=null===(r=Object.entries(a.ext.appStoreProfiles).find((function(e){var t=Object(i.a)(e,2);t[0];return t[1].extensionId===n})))||void 0===r?void 0:r[0],f=s&&(null===(o=u[s])||void 0===o?void 0:o.authoritativeBrowserConfig);if(f)return c[f]}return c.chrome}(),t=function(e){var t=Object(f.d)(Object.values(c),(function(t){return t===e})).map((function(e){return{urls:n(e.urls),schemes:n(e.schemes)}}));return Object(d.g)(t);function n(e){return Object(d.f)(e,(function(e){return e.map((function(e){return e.toLowerCase()}))}))}}(e),n=t.urls,r=t.schemes,o=v(e),s=v(e,a.ext.mainFilenames),h=v(e,[a.ext.optionsFilename]),y=a.ext.mainFilenames[0],x=Object.values(a.ext.appStoreProfiles).map((function(e){return e.extensionId})),j=a.web.appUrls.map((function(e){return e.toLowerCase()}));return{ext:{canonicalMainFilename:y,canonicalMainUrl:m(e,y),allNxsExtensionIds:x,isNxsExtensionId:function(e){return x.includes(e)},isNxsUrl:function(e){return w(e,o)},isMainUrl:function(e){return w(e,s)},isOptionsUrl:function(e){return w(e,h)}},web:{isAppUrl:function(e){return w(e,j)}},browser:{canonicalBookmarksUrl:b(e,"bookmarks"),canonicalDownloadsUrl:b(e,"downloads"),canonicalExtensionsUrl:b(e,"extensions"),canonicalHistoryUrl:b(e,"history"),canonicalNewtabUrl:b(e,"newtab"),canonicalSettingsUrl:b(e,"settings"),isFeatureUrl:function(e,t){return t?w(e,n[t]):O(e,r.feature)},isExtensionUrl:function(e,t){if(t){var n=t.toLowerCase();return w(e,r.extension.map((function(e){return g(e,n)})))}return O(e,r.extension)}}}}())}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=[],r=y(e);d(e.schemes.extension,[r]);for(var i=0,u=Object.values(c);i<u.length;i++){var l=u[i],s=l.appStores.map((function(e){return a.ext.appStoreProfiles[e].extensionId}));d(l.schemes.extension,s)}return Object(f.q)(n);function d(e,r){var i,a=Object(o.a)(e);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=Object(o.a)(r);try{for(l.s();!(c=l.n()).done;){var s,f=c.value,d=Object(o.a)(t);try{for(d.s();!(s=d.n()).done;){var p=s.value;n.push(g(u,f,p).toLowerCase())}}catch(h){d.e(h)}finally{d.f()}}}catch(h){l.e(h)}finally{l.f()}}}catch(h){a.e(h)}finally{a.f()}}}function m(e,t){return g(e.schemes.extension[0],y(e),t)}function b(e,t){return e.urls[t][0]}function y(e){return Object(p.a)()||a.ext.appStoreProfiles[e.appStores[0]].extensionId}function g(e,t,n){return"".concat(e,"://").concat(t).concat(n?"/".concat(n):"")}function w(e,t){if(!e)return!1;var n=e.toLowerCase();return t.some((function(e){return Object(s.l)(n,e)}))}function O(e,t){if(!e)return!1;var n=Object(s.b)(e).toLowerCase();return!!n&&t.some((function(e){return e===n}))}},function(e,t,n){"use strict";function r(e){return e}function o(e,t){return e===t}function i(e,t){return e.id===t.id}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(4),o=n(0),i=n.n(o),a=n(15),c=n(19),u=n(23),l=n(31),s=o.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,s=e.color,f=void 0===s?"inherit":s,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,v=void 0===h?"medium":h,m=e.htmlColor,b=e.titleAccess,y=e.viewBox,g=void 0===y?"0 0 24 24":y,w=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,Object(r.a)({className:Object(c.a)(i.root,u,"inherit"!==f&&i["color".concat(Object(l.a)(f))],"default"!==v&&"medium"!==v&&i["fontSize".concat(Object(l.a)(v))]),focusable:"false",viewBox:g,color:m,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},w),n,b?o.createElement("title",null,b):null)}));s.muiName="SvgIcon";var f=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s);function d(e,t){var n=function(t,n){return i.a.createElement(f,Object(r.a)({ref:n},t),e)};return n.muiName=f.muiName,i.a.memo(i.a.forwardRef(n))}n.d(t,"a",(function(){return d}))},function(e,t){var n,r,o=Function.prototype,i=Object.prototype,a=o.toString,c=i.hasOwnProperty,u=a.call(Object),l=i.toString,s=(n=Object.getPrototypeOf,r=Object,function(e){return n(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=l.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e))return!1;var t=s(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(120);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(118);function i(){return r.useContext(o.a)}},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return P})),n.d(t,"g",(function(){return R})),n.d(t,"c",(function(){return F})),n.d(t,"h",(function(){return D})),n.d(t,"f",(function(){return B}));var r=n(22),o=n(67),i=n(1),a=n(14),c=n(2),u=n(50),l=n(51),s=n(97),f=n(27),d=n(61),p=n(170),h=n(164),v=n(12),m=n(8),b=n(122),y=n(62),g=n(37),w=n(162),O=n(78),x=n(9),j=n(18),E=n(69),k=n(87),S=n(5),L=n(39),C=["collections","events"];function T(){T=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var I={collections:"nxsCollections",clientHistory:"nxsClientHistory",settings:"nxsSettings"},_=M("collections"),N=M("clientHistory"),A=M("settings"),P=function(){var e=Object(c.a)(T().mark((function e(){var t,n,r,o,c,u,l,s,f,d,p,h,m,b;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,n=0,r=null,o=0,e.prev=4,e.next=7,_();case 7:if(e.t1=c=e.sent,e.t0=null!==e.t1,!e.t0){e.next=11;break}e.t0=void 0!==c;case 11:if(!e.t0){e.next=15;break}e.t2=c,e.next=16;break;case 15:e.t2=null;case 16:if(t=e.t2){e.next=19;break}throw new Error("getCollections() failed");case 19:u=Object(v.o)(t,(function(e){return!e})),l=Object(a.a)(u,2),s=l[0],f=l[1],(n=s.length)&&(Object(x.f)("".concat(n," blank ").concat(1===n?"value":"values"," ignored in collections")),t=f),e.next=27;break;case 24:e.prev=24,e.t3=e.catch(4),Object(j.e)(e.t3,{prefix:"diagnostics getData(): Error getting raw collections"});case 27:return e.prev=27,e.next=30,N();case 30:if(e.t5=d=e.sent,e.t4=null!==e.t5,!e.t4){e.next=34;break}e.t4=void 0!==d;case 34:if(!e.t4){e.next=38;break}e.t6=d,e.next=39;break;case 38:e.t6=null;case 39:if(r=e.t6){e.next=42;break}throw new Error("getEvents() failed");case 42:p=Object(v.o)(r,(function(e){return!e})),h=Object(a.a)(p,2),m=h[0],b=h[1],(o=m.length)&&(Object(x.f)("".concat(o," blank ").concat(1===o?"value":"values"," ignored in events")),r=b),e.next=50;break;case 47:e.prev=47,e.t7=e.catch(27),Object(j.e)(e.t7,{prefix:"diagnostics getData(): Error getting raw events"});case 50:return e.abrupt("return",Object(i.a)(Object(i.a)({collections:t},n?{blankCollectionCount:n}:null),{},{events:r},o?{blankEventCount:o}:null));case 51:case"end":return e.stop()}}),e,null,[[4,24],[27,47]])})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=Object(c.a)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=h.a,e.next=3,P();case 3:e.t1=e.sent,e.t2="session-buddy-data-".concat(Object(m.n)(),".json"),(0,e.t0)(e.t1,e.t2);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function M(e){return function(){return new Promise((function(t,n){var r=indexedDB.open(I[e]);r.onsuccess=function(r){try{var o=r.target.result;o.onerror=function(){n(new Error("Database error (".concat(e,")")))};var i=o.transaction(e,"readonly");i.onerror=function(e){n(e.target.error)};var a=i.objectStore(e).getAll();a.onsuccess=function(e){t(e.target.result),o.close()},a.onerror=function(e){n(e.target.error)}}catch(c){n(c)}},r.onerror=function(e){n(e.target.error)}}))}}var F=function(){var e=Object(c.a)(T().mark((function e(){var t,n,r,a,c,h,v,b,w,x,S,I,_,N,R,M,F,D,B,U,z,G,W,H,K,V,$,Y,X,Q,J,Z,ee,te,ne,re,oe,ie,ae,ce,ue,le,se,fe;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M=Object(p.a)(),e.next=3,Object(s.a)();case 3:if(F=e.sent,e.t0=null!=F,!e.t0){e.next=11;break}return e.t1=F,e.next=9,Object(L.a)("highIdbUsageThreshold");case 9:e.t2=e.sent,e.t0=e.t1>e.t2;case 11:return D=e.t0,e.next=14,Object(f.b)();case 14:if(B=e.sent,e.t3=null!=B,!e.t3){e.next=22;break}return e.t4=B,e.next=20,Object(L.a)("highExtensionStorageUsageThreshold");case 20:e.t5=e.sent,e.t3=e.t4>e.t5;case 22:return U=e.t3,z=null,e.prev=24,e.next=27,A();case 27:if(e.t7=G=e.sent,e.t6=null!==e.t7,!e.t6){e.next=31;break}e.t6=void 0!==G;case 31:if(!e.t6){e.next=35;break}e.t8=G,e.next=36;break;case 35:e.t8=null;case 36:if(z=e.t8){e.next=39;break}throw new Error("getSettings() failed");case 39:e.next=44;break;case 41:e.prev=41,e.t9=e.catch(24),Object(j.e)(e.t9,{prefix:"getDiagnostics(): Error getting settings"});case 44:return W=Object(y.b)()?"document":"worker",H=z&&"document"===W?q(z):null,K=null===(t=z)||void 0===t||null===(n=t.find((function(e){return"clientCreated"===e.id})))||void 0===n?void 0:n.value,V=null===(r=z)||void 0===r||null===(a=r.find((function(e){return"clientId"===e.id})))||void 0===a?void 0:a.value,e.next=50,Object(f.a)("sbUpdateInfo");case 50:return $=e.sent,Y=null===$||void 0===$?void 0:$.updated,e.next=54,Object(f.a)("localDbCollectionsChanged");case 54:if(e.t11=c=e.sent,e.t10=null!==e.t11,!e.t10){e.next=58;break}e.t10=void 0!==c;case 58:if(!e.t10){e.next=62;break}e.t12=c,e.next=63;break;case 62:e.t12=null;case 63:return X=e.t12,e.next=66,Object(f.a)("localDbEventsChanged");case 66:if(e.t14=h=e.sent,e.t13=null!==e.t14,!e.t13){e.next=70;break}e.t13=void 0!==h;case 70:if(!e.t13){e.next=74;break}e.t15=h,e.next=75;break;case 74:e.t15=null;case 75:if(Q=e.t15,J=null!==(v=null===(b=globalThis.localStorage)||void 0===b?void 0:b.getItem("evictionCheck"))&&void 0!==v?v:null,Z=null!==(w=null===(x=globalThis.localStorage)||void 0===x?void 0:x.getItem("load"))&&void 0!==w?w:null,!D){e.next=82;break}e.t16={},e.next=85;break;case 82:return e.next=84,P();case 84:e.t16=e.sent;case 85:return ee=e.t16,te=ee.collections,ne=ee.events,re=Object(o.a)(ee,C),oe=navigator,ie=oe.platform,ae=void 0===ie?"n/a":ie,ce=oe.userAgent,ue=oe.userAgentData,le=oe.language,se=Object(k.a)(),e.next=93,Object(f.a)("pulse");case 93:return fe=e.sent,e.t17=Object(m.n)(),e.t18=(null===(S=Intl)||void 0===S||null===(I=S.DateTimeFormat())||void 0===I||null===(_=I.resolvedOptions())||void 0===_?void 0:_.timeZone)||"n/a",e.t19=Object(d.c)()||"n/a",e.t20=$||null,e.t21=Object(d.a)()||null,e.t22=se.ext.allNxsExtensionIds,e.t23=W,e.next=103,Object(d.d)();case 103:return e.t24=e.sent,e.t25=V,e.t26=Object(g.a)(V||""),e.t27=Z,e.t28=fe?Object(m.j)(fe):"no pulse",e.t29=J,e.t30=ae,e.t31=ce,e.t32=ue,e.t33=le,e.t34=H,e.next=116,Object(O.a)();case 116:return e.t35=e.sent,e.next=119,Object(E.f)();case 119:return e.t36=e.sent,e.next=122,Object(E.h)();case 122:return e.t37=e.sent,e.next=125,Object(E.d)();case 125:return e.t38=e.sent,e.t39={summary:e.t36,validation:e.t37,checkpoints:e.t38},e.t40=B,e.t41=U,e.t42=F,e.t43=D,e.next=133,Object(s.b)();case 133:return e.t44=e.sent,e.next=136,Object(s.c)();case 136:if(e.t45=e.sent,!D){e.next=147;break}return e.next=140,Object(u.h)();case 140:return e.t47=e.sent,e.next=143,Object(l.j)();case 143:e.t48=e.sent,e.t46={collections:e.t47,events:e.t48},e.next=148;break;case 147:e.t46=Object(i.a)({collections:null!==(N=null===te||void 0===te?void 0:te.length)&&void 0!==N?N:null,events:null!==(R=null===ne||void 0===ne?void 0:ne.length)&&void 0!==R?R:null},re);case 148:return e.t49=e.t46,e.t50={collections:X,events:Q},e.t51=M||null,e.t52=z,e.t53=Object(i.a)(Object(i.a)(Object(i.a)({},K?{install:Object(m.e)(K)}:null),J?{evCheck:J}:null),Y?{updated:Object(m.e)(Y)}:null),e.abrupt("return",{timestamp:e.t17,timeZone:e.t18,version:e.t19,update:e.t20,extensionId:e.t21,validExtensionIds:e.t22,context:e.t23,installType:e.t24,clientId:e.t25,cohort:e.t26,load:e.t27,pulseAge:e.t28,evictionCheck:e.t29,platform:e.t30,userAgent:e.t31,userAgentData:e.t32,language:e.t33,theme:e.t34,logs:e.t35,backup:e.t39,extensionStorageUsage:e.t40,extensionStorageUsageHigh:e.t41,idbUsage:e.t42,idbUsageHigh:e.t43,localStorageUsage:e.t44,persistedStorage:e.t45,dataCounts:e.t49,dataChanged:e.t50,heap:e.t51,settings:e.t52,summary:e.t53});case 154:case"end":return e.stop()}}),e,null,[[24,41]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(c.a)(T().mark((function e(){var t;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F();case 2:t=e.sent,Object(h.a)(t,"session-buddy-diagnostics-".concat(t.timestamp,".json"));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=function(){var e=Object(c.a)(T().mark((function e(){var t,n,o,i,a=arguments;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:["collections","clientHistory","settings"],e.next=3,Object(b.a)(5);case 3:Object(x.d)("Checking data health..."),n=Object(r.a)(t),e.prev=5,n.s();case 7:if((o=n.n()).done){e.next=15;break}return i=o.value,e.next=11,U(i);case 11:e.sent||Object(x.e)("".concat(i," is GOOD"));case 13:e.next=7;break;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(5),n.e(e.t0);case 20:return e.prev=20,n.f(),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[5,17,20,23]])})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=Object(c.a)(T().mark((function e(t){var n,r,o,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z(t,{isValidItem:"collections"===t||"clientHistory"===t?function(e){return!!e}:void 0});case 2:if(n=e.sent,r=n.badKeys,o=n.badItems,!r.length){e.next=10;break}return Object(x.f)("Fixing ".concat(r.length," corrupted ").concat(1===r.length?"item":"items"," in ").concat(t,"...")),e.next=9,K(r.map((function(e){return e.key})),t);case 9:Object(x.f)("".concat(r.length," ").concat(1===r.length?"item":"items"," fixed"));case 10:if(!o.length){e.next=15;break}return Object(x.f)("Fixing ".concat(o.length," invalid ").concat(1===o.length?"item":"items"," in ").concat(t,"...")),e.next=14,K(o.map((function(e){return e.key})),t);case 14:Object(x.f)("".concat(o.length," ").concat(1===o.length?"item":"items"," fixed"));case 15:return i=r.length+o.length,e.abrupt("return",i);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=Object(c.a)(T().mark((function e(t){var n,r,o=arguments;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(o.length>1&&void 0!==o[1]?o[1]:{}).isValidItem,r={badKeys:[],badItems:[],goodItemCount:0},e.next=4,G(t,(function(e,t){!n||n(t)?r.goodItemCount++:r.badItems.push({key:e,item:t})}),(function(e,t){r.badKeys.push({key:e,error:t})}));case 4:return e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function G(e,t,n){return new Promise((function(o,i){var a=indexedDB.open(I[e]);a.onsuccess=function(){try{var u=a.result,l=V({db:u,storeName:e,onerror:function(e){i(e)}}).getAllKeys();l.onsuccess=Object(c.a)(T().mark((function i(){var a,c,s,f,d,p;return T().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:a=l.result,c=V({db:u,storeName:e}),s=Object(r.a)(a),i.prev=3,s.s();case 5:if((f=s.n()).done){i.next=20;break}return d=f.value,i.prev=7,i.next=10,W(c,d);case 10:p=i.sent,t(d,p),i.next=18;break;case 14:i.prev=14,i.t0=i.catch(7),n(d,i.t0),c=V({db:u,storeName:e});case 18:i.next=5;break;case 20:i.next=25;break;case 22:i.prev=22,i.t1=i.catch(3),s.e(i.t1);case 25:return i.prev=25,s.f(),i.finish(25);case 28:o(),u.close();case 30:case"end":return i.stop()}}),i,null,[[3,22,25,28],[7,14]])}))),l.onerror=function(){i(l.error)}}catch(s){i(s)}},a.onerror=function(){i(a.error)}}))}function W(e,t){return new Promise((function(n,r){var o=e.get(t);o.onsuccess=function(){n(o.result)},o.onerror=function(){r(o.error)}}))}function H(e,t,n){return new Promise((function(r,o){V({db:e,storeName:t,mode:"readwrite",onerror:function(e){o(e)},oncomplete:function(){r()}}).delete(n)}))}function K(e,t){return new Promise((function(n,o){var i=indexedDB.open(I[t]);i.onsuccess=Object(c.a)(T().mark((function a(){var c,u,l,s;return T().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.prev=0,c=i.result,u=Object(r.a)(e),a.prev=3,u.s();case 5:if((l=u.n()).done){a.next=11;break}return s=l.value,a.next=9,H(c,t,s);case 9:a.next=5;break;case 11:a.next=16;break;case 13:a.prev=13,a.t0=a.catch(3),u.e(a.t0);case 16:return a.prev=16,u.f(),a.finish(16);case 19:n(),c.close(),a.next=26;break;case 23:a.prev=23,a.t1=a.catch(0),o(a.t1);case 26:case"end":return a.stop()}}),a,null,[[0,23],[3,13,16,19]])}))),i.onerror=function(){o(i.error)}}))}function V(e){var t=e.db,n=e.storeName,r=e.mode,o=void 0===r?"readonly":r,i=e.onerror,a=e.oncomplete,c=t.transaction(n,o);return i&&(c.onerror=function(){i(c.error)}),a&&(c.oncomplete=a),c.objectStore(n)}function q(e){var t,n=e.find((function(e){return"desiredTheme"===e.id})),r=null!==(t=null===n||void 0===n?void 0:n.value)&&void 0!==t?t:"default",o=Object(w.b)();return Object(S.v)(r,o)?"dark":"light"}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,v=Math.min,m=function(){return d.Date.now()};function b(e,t,r){var o,i,a,c,u,l,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,s=t,c=e.apply(r,n)}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-s>=a}function O(){var e=m();if(w(e))return x(e);u=setTimeout(O,function(e){var n=t-(e-l);return d?v(n,a-(e-s)):n}(e))}function x(e){return u=void 0,p&&o?b(e):(o=i=void 0,c)}function j(){var e=m(),n=w(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(O,t),f?b(e):c}(l);if(d)return u=setTimeout(O,t),b(l)}return void 0===u&&(u=setTimeout(O,t)),c}return t=g(t)||0,y(r)&&(f=!!r.leading,a=(d="maxWait"in r)?h(g(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),j.cancel=function(){void 0!==u&&clearTimeout(u),s=0,o=l=i=u=void 0},j.flush=function(){return void 0===u?c:x(m())},j}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),b(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h}));var r=n(2),o=n(9),i=n(39);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function c(){return u.apply(this,arguments)}function u(){return(u=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:if(!(t=e.sent)){e.next=8;break}if(!("usageDetails"in t&&t.usageDetails&&"object"===typeof t.usageDetails&&"indexedDB"in t.usageDetails&&"number"===typeof t.usageDetails.indexedDB)){e.next=6;break}return e.abrupt("return",t.usageDetails.indexedDB);case 6:if(!("usage"in t)||"number"!==typeof t.usage){e.next=8;break}return e.abrupt("return",t.usage);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return navigator.storage.estimate()}function s(){return f.apply(this,arguments)}function f(){return(f=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,l();case 4:t=e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:if(t&&t.quota&&void 0!==t.usage){e.next=11;break}return e.abrupt("return",void 0);case 11:return e.abrupt("return",Math.round(t.usage/t.quota*1e4)/100);case 12:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function d(){return p.apply(this,arguments)}function p(){return(p=Object(r.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:return t=e.sent,e.next=5,Object(i.a)("debug");case 5:if(n=e.sent,null!=t){e.next=9;break}return n&&Object(o.f)("persisted storage API unavailable or navigator.storage.persisted() call threw"),e.abrupt("return");case 9:if(!t){e.next=12;break}return n&&Object(o.d)("persisted storage permission exists"),e.abrupt("return");case 12:if(navigator.storage.persist){e.next=15;break}return n&&Object(o.f)("navigator.storage.persist() unavailable"),e.abrupt("return");case 15:return e.prev=15,e.next=18,navigator.storage.persist();case 18:r=e.sent,n&&(r?o.e:o.f)("persisted storage ".concat(r?"granted":"denied")),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),n&&console.error("call to navigator.storage.persist() failed:",e.t0);case 25:case"end":return e.stop()}}),e,null,[[15,22]])})))).apply(this,arguments)}function h(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===(t=navigator.storage)||void 0===t?void 0:t.persisted();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(205),o=(n(0),n(143));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l}));var r=n(57),o=Object(r.b)({name:"critical-error",initialState:{show:!1,issues:[]},reducers:{criticalErrorRaised:function(e,t){var n=t.payload;e.show=!0,e.issues.includes(n)||e.issues.push(n)},criticalErrorResolved:function(e){e.show=!1,e.issues=[]}}}),i=o.actions,a=i.criticalErrorRaised,c=i.criticalErrorResolved,u=o.reducer,l={criticalErrorShow:function(e){return e.criticalError.show},criticalErrorIssues:function(e){return e.criticalError.issues}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return w}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(50),u=n(51),l=n(69),s=n(61),f=n(27),d=n(9),p=n(8),h=n(46);function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=h.prototype=d.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var m,b="rc-cache",y=p.b,g=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){w().then((function(e){r(e)}))}),[]),n};function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clientId;return m||(m=function(e){return O.apply(this,arguments)}({clientId:e}).then(function(){var e=Object(r.a)(v().mark((function e(t){var n,r,o,i,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={disableAutoBackup:!1,maxBackupSize:5e6,maxRDCohort:0},r=null===t||void 0===t?void 0:t.v4){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,Object(a.b)();case 6:return o=e.sent,i=o.settings,e.next=10,i.get("disableAutoBackupRemotely");case 10:if(c=e.sent,!0!==r.disableAutoBackup){e.next=26;break}if(n.disableAutoBackup=!0,c){e.next=16;break}return e.next=16,i.set("disableAutoBackupRemotely",!0);case 16:return Object(h.b)(r.maxBackupSize)&&r.maxBackupSize>0&&(n.maxBackupSize=r.maxBackupSize),e.prev=17,e.next=20,Object(l.c)(void 0,{minSize:n.maxBackupSize});case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(17);case 24:e.next=31;break;case 26:if(!1!==r.disableAutoBackup){e.next=31;break}if(n.disableAutoBackup=!1,!c){e.next=31;break}return e.next=31,i.set("disableAutoBackupRemotely",!1);case 31:return Object(h.b)(r.maxRDCohort)&&r.maxRDCohort>0&&(n.maxRDCohort=r.maxRDCohort),e.abrupt("return",n);case 33:case"end":return e.stop()}}),e,null,[[17,22]])})));return function(t){return e.apply(this,arguments)}}()).finally((function(){m=void 0})),m)}function O(){return(O=Object(r.a)(v().mark((function e(t){var n,r,o,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientId){e.next=7;break}return e.next=4,Object(f.a)(b);case 4:if(!((null===(o=e.sent)||void 0===o||null===(r=o.config)||void 0===r?void 0:r.v4)&&o.timestamp&&Object(p.m)()-o.timestamp<y)){e.next=7;break}return e.abrupt("return",o.config);case 7:return e.next=9,x({clientId:n});case 9:if(!(null===(i=e.sent)||void 0===i?void 0:i.v4)){e.next=13;break}return e.next=13,Object(f.i)(b,{timestamp:Object(p.m)(),config:i});case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return j.apply(this,arguments)}function j(){return(j=Object(r.a)(v().mark((function e(t){var n,r,o,i,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientId,r={method:"GET",cache:"no-store"},e.prev=2,o=new URL(n?"https://remote-config.sessionbuddy.com/":"https://sessionbuddy.pages.dev/remote-config/config.json"),!n){e.next=21;break}return E(o,"e",Object(s.a)()),E(o,"v",Object(s.c)()),E(o,"client",n),(null===a.a||void 0===a.a?void 0:a.a.created)&&Object(h.b)(a.a.created)&&(i=Math.floor(a.a.created/1e3))&&E(o,"i",i),e.t0=E,e.t1=o,e.next=13,Object(c.h)();case 13:return e.t2=e.sent,(0,e.t0)(e.t1,"cc",e.t2),e.t3=E,e.t4=o,e.next=19,Object(u.j)();case 19:e.t5=e.sent,(0,e.t3)(e.t4,"ec",e.t5);case 21:return e.next=23,fetch(o,r);case 23:if((l=e.sent).ok){e.next=26;break}return e.abrupt("return");case 26:return e.next=28,l.json();case 28:return e.abrupt("return",e.sent);case 31:e.prev=31,e.t6=e.catch(2),Object(d.c)(e.t6,{prefix:"Error fetching remote config"});case 34:case"end":return e.stop()}}),e,null,[[2,31]])})))).apply(this,arguments)}function E(e,t,n){null!=n&&e.searchParams.append(t,n.toString())}},function(e,t,n){"use strict";var r=n(198);var o=n(165),i=n(199);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={"snapshot-scheduled":"snapshot","snapshot-manual":"manual snapshot","tab-navigated":"tab navigated","tab-moved":"tab moved","tabs-moved":"tabs moved","tab-opened":"tab opened","tabs-opened":"tabs opened","window-opened":"window opened","windows-opened":"windows opened","tabs-changed":"tabs changed","browser-closed":"browser closed","windows-closed":"windows closed","window-closed":"window closed","tabs-closed":"tabs closed","tab-closed":"tab closed"},o={clientHistoryItemType:function(e){return r[e]}}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return hr}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,c=Object.keys,u=Array.isArray;function l(e,t){return"object"!==typeof t||c(t).forEach((function(n){e[n]=t[n]})),e}"undefined"===typeof Promise||a.Promise||(a.Promise=Promise);var s=Object.getPrototypeOf,f={}.hasOwnProperty;function d(e,t){return f.call(e,t)}function p(e,t){"function"===typeof t&&(t=t(s(e))),("undefined"===typeof Reflect?c:Reflect.ownKeys)(t).forEach((function(n){v(e,n,t[n])}))}var h=Object.defineProperty;function v(e,t,n,r){h(e,t,l(n&&d(n,"get")&&"function"===typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function m(e){return{from:function(t){return e.prototype=Object.create(t.prototype),v(e.prototype,"constructor",e),{extend:p.bind(null,e.prototype)}}}}var b=Object.getOwnPropertyDescriptor;function y(e,t){var n;return b(e,t)||(n=s(e))&&y(n,t)}var g=[].slice;function w(e,t,n){return g.call(e,t,n)}function O(e,t){return t(e)}function x(e){if(!e)throw new Error("Assertion Failed")}function j(e){a.setImmediate?setImmediate(e):setTimeout(e,0)}function E(e,t){if("string"===typeof t&&d(e,t))return e[t];if(!t)return e;if("string"!==typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=E(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var c=e[t.substr(0,a)];return null==c?void 0:E(c,t.substr(a+1))}}function k(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!==typeof t&&"length"in t){x("string"!==typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)k(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var a=t.substr(0,i),c=t.substr(i+1);if(""===c)void 0===n?u(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n;else{var l=e[a];l&&d(e,a)||(l=e[a]={}),k(l,c,n)}}else void 0===n?u(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function S(e){var t={};for(var n in e)d(e,n)&&(t[n]=e[n]);return t}var L=[].concat;function C(e){return L.apply([],e)}var T="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(C([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return a[e]})),I=new Set(T.map((function(e){return a[e]})));function _(e){var t={};for(var n in e)if(d(e,n)){var r=e[n];t[n]=!r||"object"!==typeof r||I.has(r.constructor)?r:_(r)}return t}var N=null;function A(e){N=new WeakMap;var t=P(e);return N=null,t}function P(e){if(!e||"object"!==typeof e)return e;var t=N.get(e);if(t)return t;if(u(e)){t=[],N.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(P(e[n]))}else if(I.has(e.constructor))t=e;else{var o=s(e);for(var i in t=o===Object.prototype?{}:Object.create(o),N.set(e,t),e)d(e,i)&&(t[i]=P(e[i]))}return t}var R={}.toString;function M(e){return R.call(e).slice(8,-1)}var F="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",D="symbol"===typeof F?function(e){var t;return null!=e&&(t=e[F])&&t.apply(e)}:function(){return null};function B(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n>=0}var U={};function z(e){var t,n,r,o;if(1===arguments.length){if(u(e))return e.slice();if(this===U&&"string"===typeof e)return[e];if(o=D(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"===typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var G="undefined"!==typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},W=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],H=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(W),K={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function V(e,t){this.name=e,this.message=t}function q(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function $(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=q(e,t)}function Y(e,t){this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=q(e,this.failures)}m(V).from(Error).extend({toString:function(){return this.name+": "+this.message}}),m($).from(V),m(Y).from(V);var X=H.reduce((function(e,t){return e[t]=t+"Error",e}),{}),Q=V,J=H.reduce((function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"===typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"===typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=K[t]||n,this.inner=null)}return m(r).from(Q),e[t]=r,e}),{});J.Syntax=SyntaxError,J.Type=TypeError,J.Range=RangeError;var Z=W.reduce((function(e,t){return e[t+"Error"]=J[t],e}),{});var ee=H.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=J[t]),e}),{});function te(){}function ne(e){return e}function re(e,t){return null==e||e===ne?t:function(n){return t(e(n))}}function oe(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ie(e,t){return e===te?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?oe(r,this.onsuccess):r),o&&(this.onerror=this.onerror?oe(o,this.onerror):o),void 0!==i?i:n}}function ae(e,t){return e===te?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?oe(n,this.onsuccess):n),r&&(this.onerror=this.onerror?oe(r,this.onerror):r)}}function ce(e,t){return e===te?t:function(n){var r=e.apply(this,arguments);l(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?oe(o,this.onsuccess):o),i&&(this.onerror=this.onerror?oe(i,this.onerror):i),void 0===r?void 0===a?void 0:a:l(r,a)}}function ue(e,t){return e===te?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function le(e,t){return e===te?t:function(){var n=e.apply(this,arguments);if(n&&"function"===typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}ee.ModifyError=$,ee.DexieError=V,ee.BulkError=Y;var se="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fe(e,t){se=e}var de={},pe=100,he="undefined"===typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"===typeof crypto||!crypto.subtle)return[e,s(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,s(t),e]}(),ve=he[0],me=he[1],be=he[2],ye=me&&me.then,ge=ve&&ve.constructor,we=!!be;var Oe=function(e,t){Te.push([e,t]),je&&(queueMicrotask(Ue),je=!1)},xe=!0,je=!0,Ee=[],ke=[],Se=ne,Le={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:te,pgp:!1,env:{},finalize:te},Ce=Le,Te=[],Ie=0,_e=[];function Ne(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=Ce;if("function"!==typeof e){if(e!==de)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Me(this,this._value))}this._state=null,this._value=null,++t.ref,Re(this,e)}var Ae={get:function(){var e=Ce,t=Xe;function n(n,r){var o=this,i=!e.global&&(e!==Ce||t!==Xe),a=i&&!et(),c=new Ne((function(t,c){De(o,new Pe(ct(n,e,i,a),ct(r,e,i,a),t,c,e))}));return this._consoleTask&&(c._consoleTask=this._consoleTask),c}return n.prototype=de,n},set:function(e){v(this,"then",e&&e.prototype===de?Ae:{get:function(){return e},set:Ae.set})}};function Pe(e,t,n,r,o){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Re(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&ze();t&&"function"===typeof t.then?Re(e,(function(e,n){t instanceof Ne?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,Fe(e)),n&&Ge()}}),Me.bind(null,e))}catch(n){Me(e,n)}}function Me(e,t){if(ke.push(t),null===e._state){var n=e._lib&&ze();t=Se(t),e._state=!1,e._value=t,function(e){Ee.some((function(t){return t._value===e._value}))||Ee.push(e)}(e),Fe(e),n&&Ge()}}function Fe(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)De(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===Ie&&(++Ie,Oe((function(){0===--Ie&&We()}),[]))}function De(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ie,Oe(Be,[n,e,t])}else e._listeners.push(t)}function Be(e,t,n){try{var r,o=t._value;!t._state&&ke.length&&(ke=[]),r=se&&t._consoleTask?t._consoleTask.run((function(){return e(o)})):e(o),t._state||-1!==ke.indexOf(o)||function(e){var t=Ee.length;for(;t;)if(Ee[--t]._value===e._value)return void Ee.splice(t,1)}(t),n.resolve(r)}catch(i){n.reject(i)}finally{0===--Ie&&We(),--n.psd.ref||n.psd.finalize()}}function Ue(){at(Le,(function(){ze()&&Ge()}))}function ze(){var e=xe;return xe=!1,je=!1,e}function Ge(){var e,t,n;do{for(;Te.length>0;)for(e=Te,Te=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Te.length>0);xe=!0,je=!0}function We(){var e=Ee;Ee=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=_e.slice(0),n=t.length;n;)t[--n]()}function He(e){return new Ne(de,!1,e)}function Ke(e,t){var n=Ce;return function(){var r=ze(),o=Ce;try{return ot(n,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{ot(o,!1),r&&Ge()}}}p(Ne.prototype,{then:Ae,_then:function(e,t){De(this,new Pe(null,null,e,t,Ce))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"===typeof t?this.then(null,(function(e){return e instanceof t?n(e):He(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):He(e)}))},finally:function(e){return this.then((function(t){return Ne.resolve(e()).then((function(){return t}))}),(function(t){return Ne.resolve(e()).then((function(){return He(t)}))}))},timeout:function(e,t){var n=this;return e<1/0?new Ne((function(r,o){var i=setTimeout((function(){return o(new J.Timeout(t))}),e);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&v(Ne.prototype,Symbol.toStringTag,"Dexie.Promise"),Le.env=it(),p(Ne,{all:function(){var e=z.apply(null,arguments).map(tt);return new Ne((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(o,i){return Ne.resolve(o).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){return e instanceof Ne?e:e&&"function"===typeof e.then?new Ne((function(t,n){e.then(t,n)})):new Ne(de,!0,e)},reject:He,race:function(){var e=z.apply(null,arguments).map(tt);return new Ne((function(t,n){e.map((function(e){return Ne.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Ce},set:function(e){return Ce=e}},totalEchoes:{get:function(){return Xe}},newPSD:Je,usePSD:at,scheduler:{get:function(){return Oe},set:function(e){Oe=e}},rejectionMapper:{get:function(){return Se},set:function(e){Se=e}},follow:function(e,t){return new Ne((function(n,r){return Je((function(t,n){var r=Ce;r.unhandleds=[],r.onunhandled=n,r.finalize=oe((function(){var e=this;!function(e){function t(){e(),_e.splice(_e.indexOf(t),1)}_e.push(t),++Ie,Oe((function(){0===--Ie&&We()}),[])}((function(){0===e.unhandleds.length?t():n(e.unhandleds[0])}))}),r.finalize),e()}),t,n,r)}))}}),ge&&(ge.allSettled&&v(Ne,"allSettled",(function(){var e=z.apply(null,arguments).map(tt);return new Ne((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,o){return Ne.resolve(e).then((function(e){return r[o]={status:"fulfilled",value:e}}),(function(e){return r[o]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),ge.any&&"undefined"!==typeof AggregateError&&v(Ne,"any",(function(){var e=z.apply(null,arguments).map(tt);return new Ne((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach((function(e,i){return Ne.resolve(e).then((function(e){return t(e)}),(function(e){o[i]=e,--r||n(new AggregateError(o))}))}))}))})),ge.withResolvers&&(Ne.withResolvers=ge.withResolvers));var Ve={awaits:0,echoes:0,id:0},qe=0,$e=[],Ye=0,Xe=0,Qe=0;function Je(e,t,n,r){var o=Ce,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++Qe,Le.env,i.env=we?{Promise:Ne,PromiseProp:{value:Ne,configurable:!0,writable:!0},all:Ne.all,race:Ne.race,allSettled:Ne.allSettled,any:Ne.any,resolve:Ne.resolve,reject:Ne.reject}:{},t&&l(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=at(i,e,n,r);return 0===i.ref&&i.finalize(),a}function Ze(){return Ve.id||(Ve.id=++qe),++Ve.awaits,Ve.echoes+=pe,Ve.id}function et(){return!!Ve.awaits&&(0===--Ve.awaits&&(Ve.id=0),Ve.echoes=Ve.awaits*pe,!0)}function tt(e){return Ve.echoes&&e&&e.constructor===ge?(Ze(),e.then((function(e){return et(),e}),(function(e){return et(),lt(e)}))):e}function nt(e){++Xe,Ve.echoes&&0!==--Ve.echoes||(Ve.echoes=Ve.awaits=Ve.id=0),$e.push(Ce),ot(e,!0)}function rt(){var e=$e[$e.length-1];$e.pop(),ot(e,!1)}function ot(e,t){var n=Ce;if((t?!Ve.echoes||Ye++&&e===Ce:!Ye||--Ye&&e===Ce)||queueMicrotask(t?nt.bind(null,e):rt),e!==Ce&&(Ce=e,n===Le&&(Le.env=it()),we)){var r=Le.env.Promise,o=e.env;(n.global||e.global)&&(Object.defineProperty(a,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function it(){var e=a.Promise;return we?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function at(e,t,n,r,o){var i=Ce;try{return ot(e,!0),t(n,r,o)}finally{ot(i,!1)}}function ct(e,t,n,r){return"function"!==typeof e?e:function(){var o=Ce;n&&Ze(),ot(t,!0);try{return e.apply(this,arguments)}finally{ot(o,!1),r&&queueMicrotask(et)}}}function ut(e){Promise===ge&&0===Ve.echoes?0===Ye?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ye).indexOf("[native code]")&&(Ze=et=te);var lt=Ne.reject;function st(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Ce.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===X.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return st(e,t,n,r)}))):lt(i)}return o._promise(t,(function(e,t){return Je((function(){return Ce.trans=o,r(e,t,o)}))})).then((function(e){if("readwrite"===t)try{o.idbtrans.commit()}catch(En){}return"readonly"===t?e:o._completion.then((function(){return e}))}))}if(e._state.openComplete)return lt(new J.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return lt(new J.DatabaseClosed);e.open().catch(te)}return e._state.dbReadyPromise.then((function(){return st(e,t,n,r)}))}var ft="4.0.11",dt=String.fromCharCode(65535),pt=-1/0,ht="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",vt="String expected.",mt=[],bt="__dbnames",yt="readonly",gt="readwrite";function wt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var Ot={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function xt(e){return"string"!==typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=A(t))[e],t}}function jt(){throw J.Type()}function Et(e,t){try{var n=kt(e),r=kt(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){for(var n=e.length,r=t.length,o=n<r?n:r,i=0;i<o;++i)if(e[i]!==t[i])return e[i]<t[i]?-1:1;return n===r?0:n<r?-1:1}(St(e),St(t));case"Array":return function(e,t){for(var n=e.length,r=t.length,o=n<r?n:r,i=0;i<o;++i){var a=Et(e[i],t[i]);if(0!==a)return a}return n===r?0:n<r?-1:1}(e,t)}}catch(En){}return NaN}function kt(e){var t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";var n=M(e);return"ArrayBuffer"===n?"binary":n}function St(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var Lt=function(){function e(){}return e.prototype._trans=function(e,t,n){var r=this._tx||Ce.trans,o=this.name,i=se&&"undefined"!==typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function a(e,n,r){if(!r.schema[o])throw new J.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}var c=ze();try{var u=r&&r.db._novip===this.db._novip?r===Ce.trans?r._promise(e,a,n):Je((function(){return r._promise(e,a,n)}),{trans:r,transless:Ce.transless||Ce}):st(this.db,e,[this.name],a);return i&&(u._consoleTask=i,u=u.catch((function(e){return console.trace(e),lt(e)}))),u}finally{c&&Ge()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):null==e?lt(new J.Type("Invalid argument to Table.get()")):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},e.prototype.where=function(e){if("string"===typeof e)return new this.db.WhereClause(this,e);if(u(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=c(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){if(e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))){for(var n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1})).sort((function(e,t){return e.keyPath.length-t.keyPath.length}))[0];if(n&&this.db._maxKey!==dt){var r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map((function(t){return e[t]})))}!n&&se&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var o=this.schema.idxByName;function i(e,t){return 0===Et(e,t)}var a=t.reduce((function(t,n){var r=t[0],a=t[1],c=o[n],l=e[n];return[r||c,r||!c?wt(a,c&&c.multi?function(e){var t=E(e,n);return u(t)&&t.some((function(e){return i(l,e)}))}:function(e){return i(l,E(e,n))}):a]}),[null,null]),l=a[0],s=a[1];return l?this.where(l.name).equals(e[l.keyPath]).filter(s):n?this.filter(s):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,u(e)?"[".concat(e.join("+"),"]"):e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){var t=this.db,n=this.name;this.schema.mappedClass=e,e.prototype instanceof jt&&(e=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(o,e),Object.defineProperty(o.prototype,"db",{get:function(){return t},enumerable:!1,configurable:!0}),o.prototype.table=function(){return n},o}(e));for(var o=new Set,i=e.prototype;i;i=s(i))Object.getOwnPropertyNames(i).forEach((function(e){return o.add(e)}));var a=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(!o.has(r))try{n[r]=t[r]}catch(i){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=a,this.hook("reading",a),e},e.prototype.defineClass=function(){return this.mapToClass((function(e){l(this,e)}))},e.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=xt(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})})).then((function(e){return e.numFailures?Ne.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{k(e,i,t)}catch(n){}return t}))},e.prototype.update=function(e,t){if("object"!==typeof e||u(e))return this.where(":id").equals(e).modify(t);var n=E(e,this.schema.primKey.keyPath);return void 0===n?lt(new J.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=xt(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?Ne.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{k(e,i,t)}catch(n){}return t}))},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?Ne.reject(e.failures[0]):void 0}))},e.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:Ot})})).then((function(e){return e.numFailures?Ne.reject(e.failures[0]):void 0}))},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},e.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,c=n.keyPath;if(c&&o)throw new J.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,l=c&&a?e.map(xt(c)):e;return r.core.mutate({trans:t,type:"add",keys:o,values:l,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new Y("".concat(r.name,".bulkAdd(): ").concat(t," of ").concat(u," operations failed"),a)}))}))},e.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,c=n.keyPath;if(c&&o)throw new J.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new J.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,l=c&&a?e.map(xt(c)):e;return r.core.mutate({trans:t,type:"put",keys:o,values:l,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new Y("".concat(r.name,".bulkPut(): ").concat(t," of ").concat(u," operations failed"),a)}))}))},e.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map((function(e){return e.key})),o=e.map((function(e){return e.changes})),i=[];return this._trans("readwrite",(function(a){return n.getMany({trans:a,keys:r,cache:"clone"}).then((function(c){var u=[],l=[];e.forEach((function(e,n){var r=e.key,o=e.changes,a=c[n];if(a){for(var s=0,f=Object.keys(o);s<f.length;s++){var d=f[s],p=o[d];if(d===t.schema.primKey.keyPath){if(0!==Et(p,r))throw new J.Constraint("Cannot update primary key in bulkUpdate()")}else k(a,d,p)}i.push(n),u.push(r),l.push(a)}}));var s=u.length;return n.mutate({trans:a,type:"put",keys:u,values:l,updates:{keys:r,changeSpecs:o}}).then((function(e){var n=e.numFailures,r=e.failures;if(0===n)return s;for(var o=0,a=Object.keys(r);o<a.length;o++){var c=a[o],u=i[Number(c)];if(null!=u){var l=r[c];delete r[c],r[u]=l}}throw new Y("".concat(t.name,".bulkUpdate(): ").concat(n," of ").concat(s," operations failed"),r)}))}))}))},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,o=e.lastResult,i=e.failures;if(0===r)return o;throw new Y("".concat(t.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),i)}))},e}();function Ct(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"===typeof n)return t[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(e,r,o){if("object"!==typeof e){var a;r||(r=ue),o||(o=te);var l={subscribers:[],fire:o,subscribe:function(e){-1===l.subscribers.indexOf(e)&&(l.subscribers.push(e),l.fire=r(l.fire,e))},unsubscribe:function(e){l.subscribers=l.subscribers.filter((function(t){return t!==e})),l.fire=l.subscribers.reduce(r,o)}};return t[e]=n[e]=l,l}c(a=e).forEach((function(e){var t=a[e];if(u(t))i(e,a[e][0],a[e][1]);else{if("asap"!==t)throw new J.InvalidArgument("Invalid event config");var n=i(e,ne,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach((function(e){j((function(){e.apply(null,t)}))}))}))}}))}}function Tt(e,t){return m(t).from({prototype:e}),t}function It(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function _t(e,t){e.filter=wt(e.filter,t)}function Nt(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return wt(r(),t())}:t,e.justLimit=n&&!r}function At(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new J.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Pt(e,t,n){var r=At(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Rt(e,t,n,r){var o=e.replayFilter?wt(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},a=function(e,n,r){if(!o||o(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))){var a=n.primaryKey,c=""+a;"[object ArrayBuffer]"===c&&(c=""+new Uint8Array(a)),d(i,c)||(i[c]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),Mt(Pt(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return Mt(Pt(e,r,n),wt(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function Mt(e,t,n,r){var o=Ke(r?function(e,t,o){return n(r(e),t,o)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=te}),(function(t){e.fail(t),n=te}))||o(e.value,e,(function(e){return n=e})),n()}))}))}var Ft=function(){function e(e){this["@@propmod"]=e}return e.prototype.execute=function(e){var t,n=this["@@propmod"];if(void 0!==n.add){var r=n.add;if(u(r))return i(i([],u(e)?e:[],!0),r,!0).sort();if("number"===typeof r)return(Number(e)||0)+r;if("bigint"===typeof r)try{return BigInt(e)+r}catch(c){return BigInt(0)+r}throw new TypeError("Invalid term ".concat(r))}if(void 0!==n.remove){var o=n.remove;if(u(o))return u(e)?e.filter((function(e){return!o.includes(e)})).sort():[];if("number"===typeof o)return Number(e)-o;if("bigint"===typeof o)try{return BigInt(e)-o}catch(l){return BigInt(0)-o}throw new TypeError("Invalid subtrahend ".concat(o))}var a=null===(t=n.replacePrefix)||void 0===t?void 0:t[0];return a&&"string"===typeof e&&e.startsWith(a)?n.replacePrefix[1]+e.substring(a.length):e},e}(),Dt=function(){function e(){}return e.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,lt.bind(null,n.error)):n.table._trans("readonly",e).then(t)},e.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,lt.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},e.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=wt(t.algorithm,e)},e.prototype._iterate=function(e,t){return Rt(this._ctx,e,t,this._ctx.table.core)},e.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&l(n,e),t._ctx=n,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return Rt(t,e,n,t.table.core)}))},e.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(It(n,!0))return r.count({trans:e,query:{index:At(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var o=0;return Rt(n,(function(){return++o,!1}),e,r).then((function(){return o}))})).then(e)},e.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function c(e,t){return Et(i(e,o),i(t,o))*a}return this.toArray((function(e){return e.sort(c)})).then(t)},e.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&It(n,!0)&&n.limit>0){var r=n.valueMapper,o=At(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return Rt(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,It(t)?Nt(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):Nt(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Nt(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return _t(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return _t(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=wt(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&It(t,!0)&&t.limit>0)return this._read((function(e){var n=At(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return _t(this._ctx,(function(e){var t=e.primaryKey.toString(),r=d(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var o;if("function"===typeof e)o=e;else{var i=c(e),a=i.length;o=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],c=e[o],u=E(t,o);c instanceof Ft?(k(t,o,c.execute(u)),n=!0):u!==c&&(k(t,o,c),n=!0)}return n}}var u=n.table.core,l=u.schema.primaryKey,s=l.outbound,f=l.extractKey,d=200,p=t.db._options.modifyChunkSize;p&&(d="object"==typeof p?p[u.name]||p["*"]||200:p);var h=[],v=0,m=[],b=function(e,t){var n=t.failures,r=t.numFailures;v+=e-r;for(var o=0,i=c(n);o<i.length;o++){var a=i[o];h.push(n[a])}};return t.clone().primaryKeys().then((function(t){var i=It(n)&&n.limit===1/0&&("function"!==typeof e||e===Bt)&&{index:n.index,range:n.range};return function n(a){var c=Math.min(d,t.length-a);return u.getMany({trans:r,keys:t.slice(a,a+c),cache:"immutable"}).then((function(l){for(var p=[],h=[],v=s?[]:null,m=[],y=0;y<c;++y){var g=l[y],w={value:A(g),primKey:t[a+y]};!1!==o.call(w,w.value,w)&&(null==w.value?m.push(t[a+y]):s||0===Et(f(g),f(w.value))?(h.push(w.value),s&&v.push(t[a+y])):(m.push(t[a+y]),p.push(w.value)))}return Promise.resolve(p.length>0&&u.mutate({trans:r,type:"add",values:p}).then((function(e){for(var t in e.failures)m.splice(parseInt(t),1);b(p.length,e)}))).then((function(){return(h.length>0||i&&"object"===typeof e)&&u.mutate({trans:r,type:"put",keys:v,values:h,criteria:i,changeSpec:"function"!==typeof e&&e,isAdditionalChunk:a>0}).then((function(e){return b(h.length,e)}))})).then((function(){return(m.length>0||i&&e===Bt)&&u.mutate({trans:r,type:"delete",keys:m,criteria:i,isAdditionalChunk:a>0}).then((function(e){return b(m.length,e)}))})).then((function(){return t.length>a+c&&n(a+d)}))}))}(0).then((function(){if(h.length>0)throw new $("Error modifying one or more objects",h,v,m);return t.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return It(e)&&(e.isPrimKey||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(e){var n=e.failures;e.lastResult,e.results;var r=e.numFailures;if(r)throw new $("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify(Bt)},e}(),Bt=function(e,t){return t.value=null};function Ut(e,t){return e<t?-1:e===t?0:1}function zt(e,t){return e>t?-1:e===t?0:1}function Gt(e,t,n){var r=e instanceof $t?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Wt(e){return new e.Collection(e,(function(){return qt("")})).limit(0)}function Ht(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),c=-1,u=0;u<a;++u){var l=t[u];if(l!==r[u])return o(e[u],n[u])<0?e.substr(0,u)+n[u]+n.substr(u+1):o(e[u],r[u])<0?e.substr(0,u)+r[u]+n.substr(u+1):c>=0?e.substr(0,c)+t[c]+n.substr(c+1):null;o(e[u],l)<0&&(c=u)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):c<0?null:e.substr(0,c)+r[c]+n.substr(c+1)}function Kt(e,t,n,r){var o,i,a,c,u,l,s,f=n.length;if(!n.every((function(e){return"string"===typeof e})))return Gt(e,vt);function d(e){o=function(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}(e),i=function(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}(e),a="next"===e?Ut:zt;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));c=t.map((function(e){return e.upper})),u=t.map((function(e){return e.lower})),l=e,s="next"===e?"":r}d("next");var p=new e.Collection(e,(function(){return Vt(c[0],u[f-1]+r)}));p._ondirectionchange=function(e){d(e)};var h=0;return p._addAlgorithm((function(e,n,r){var o=e.key;if("string"!==typeof o)return!1;var d=i(o);if(t(d,u,h))return!0;for(var p=null,v=h;v<f;++v){var m=Ht(o,d,c[v],u[v],a,l);null===m&&null===p?h=v+1:(null===p||a(p,m)>0)&&(p=m)}return n(null!==p?function(){e.continue(p+s)}:r),!1})),p}function Vt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function qt(e){return{type:1,lower:e,upper:e}}var $t=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Wt(this):new this.Collection(this,(function(){return Vt(e,t,!n,!r)}))}catch(o){return Gt(this,ht)}},e.prototype.equals=function(e){return null==e?Gt(this,ht):new this.Collection(this,(function(){return qt(e)}))},e.prototype.above=function(e){return null==e?Gt(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?Gt(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?Gt(this,ht):new this.Collection(this,(function(){return Vt(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?Gt(this,ht):new this.Collection(this,(function(){return Vt(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!==typeof e?Gt(this,vt):this.between(e,e+dt,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Kt(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],dt)},e.prototype.equalsIgnoreCase=function(e){return Kt(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=z.apply(U,arguments);return 0===e.length?Wt(this):Kt(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=z.apply(U,arguments);return 0===e.length?Wt(this):Kt(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,dt)},e.prototype.anyOf=function(){var e=this,t=z.apply(U,arguments),n=this._cmp;try{t.sort(n)}catch(i){return Gt(this,ht)}if(0===t.length)return Wt(this);var r=new this.Collection(this,(function(){return Vt(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm((function(e,r,i){for(var a=e.key;n(a,t[o])>0;)if(++o===t.length)return r(i),!1;return 0===n(a,t[o])||(r((function(){e.continue(t[o])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[pt,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=z.apply(U,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return Gt(this,ht)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[pt,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,c=this._max;if(0===e.length)return Wt(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&o(e[0],e[1])<=0})))return Gt(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",J.InvalidArgument);var u=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;var s,f=o;function d(e,t){return f(e[0],t[0])}try{s=e.reduce((function(e,t){for(var n=0,o=e.length;n<o;++n){var i=e[n];if(r(t[0],i[1])<0&&r(t[1],i[0])>0){i[0]=a(i[0],t[0]),i[1]=c(i[1],t[1]);break}}return n===o&&e.push(t),e}),[]),s.sort(d)}catch(y){return Gt(this,ht)}var p=0,h=l?function(e){return o(e,s[p][1])>0}:function(e){return o(e,s[p][1])>=0},v=u?function(e){return i(e,s[p][0])>0}:function(e){return i(e,s[p][0])>=0};var m=h,b=new this.Collection(this,(function(){return Vt(s[0][0],s[s.length-1][1],!u,!l)}));return b._ondirectionchange=function(e){"next"===e?(m=h,f=o):(m=v,f=i),s.sort(d)},b._addAlgorithm((function(e,t,r){for(var i=e.key;m(i);)if(++p===s.length)return t(r),!1;return!!function(e){return!h(e)&&!v(e)}(i)||(0===n._cmp(i,s[p][1])||0===n._cmp(i,s[p][0])||t((function(){f===o?e.continue(s[p][0]):e.continue(s[p][1])})),!1)})),b},e.prototype.startsWithAnyOf=function(){var e=z.apply(U,arguments);return e.every((function(e){return"string"===typeof e}))?0===e.length?Wt(this):this.inAnyRange(e.map((function(e){return[e,e+dt]}))):Gt(this,"startsWithAnyOf() only works with strings")},e}();function Yt(e){return Ke((function(t){return Xt(t),e(t.target.error),!1}))}function Xt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Qt="storagemutated",Jt="x-storagemutated-1",Zt=Ct(null,Qt),en=function(){function e(){}return e.prototype._lock=function(){return x(!Ce.global),++this._reculock,1!==this._reculock||Ce.global||(Ce.lockOwnerFor=this),this},e.prototype._unlock=function(){if(x(!Ce.global),0===--this._reculock)for(Ce.global||(Ce.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{at(e[1],e[0])}catch(t){}}return this},e.prototype._locked=function(){return this._reculock&&Ce.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(x(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new J.DatabaseClosed(r);case"MissingAPIError":throw new J.MissingAPI(r.message,r);default:throw new J.OpenFailed(r)}if(!this.active)throw new J.TransactionInactive;return x(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ke((function(n){Xt(n),t._reject(e.error)})),e.onabort=Ke((function(n){Xt(n),t.active&&t._reject(new J.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=Ke((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&Zt.storagemutated.fire(e.mutatedParts)})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return lt(new J.ReadOnly("Transaction is readonly"));if(!this.active)return lt(new J.TransactionInactive);if(this._locked())return new Ne((function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},Ce])}));if(n)return Je((function(){var e=new Ne((function(e,n){r._lock();var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var o=new Ne((function(e,n){var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return o._lib=!0,o},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=Ne.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new Ne((function(e,r){n.then((function(n){return t._waitingQueue.push(Ke(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(Ke(r.bind(null,e)))})).finally((function(){t._waitingFor===o&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new J.Abort))},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(d(t,e))return t[e];var n=this.schema[e];if(!n)throw new J.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function tn(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+nn(t)}}function nn(e){return"string"===typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=n,o=function(e){return[e.name,e]},r.reduce((function(e,t,n){var r=o(t,n);return r&&(e[r[0]]=r[1]),e}),{}))};var r,o}var on=function(e){try{return e.only([[]]),on=function(){return[[]]},[[]]}catch(t){return on=function(){return dt},dt}};function an(e){return null==e?function(){}:"string"===typeof e?function(e){var t=e.split(".");return 1===t.length?function(t){return t[e]}:function(t){return E(t,e)}}(e):function(t){return E(t,e)}}function cn(e){return[].slice.call(e)}var un=0;function ln(e){return null==e?":id":"string"===typeof e?e:"[".concat(e.join("+"),"]")}function sn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,o=e.lowerOpen,i=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}var o=function(e,t){var n=cn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=u(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:an(t)},indexes:cn(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,o=e.keyPath,a={name:t,compound:u(o),keyPath:o,unique:n,multiEntry:r,extractKey:an(o)};return i[ln(o)]=a,a})),getIndexByKeyPath:function(e){return i[ln(e)]}};return i[":id"]=a.primaryKey,null!=t&&(i[ln(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),i=o.schema,a=o.hasGetAll,c=i.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,o=e.type,i=e.keys,a=e.values,c=e.range;return new Promise((function(e,u){e=Ke(e);var l=n.objectStore(t),s=null==l.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var d,p=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var h=[],v=[],m=0,b=function(e){++m,Xt(e)};if("deleteRange"===o){if(4===c.type)return e({numFailures:m,failures:v,results:[],lastResult:void 0});3===c.type?h.push(d=l.clear()):h.push(d=l.delete(r(c)))}else{var y=f?s?[a,i]:[a,null]:[i,null],g=y[0],w=y[1];if(f)for(var O=0;O<p;++O)h.push(d=w&&void 0!==w[O]?l[o](g[O],w[O]):l[o](g[O])),d.onerror=b;else for(O=0;O<p;++O)h.push(d=l[o](g[O])),d.onerror=b}var x=function(t){var n=t.target.result;h.forEach((function(e,t){return null!=e.error&&(v[t]=e.error)})),e({numFailures:m,failures:v,results:"delete"===o?i:h.map((function(e){return e.result})),lastResult:n})};d.onerror=function(e){b(e),x(e)},d.onsuccess=x}))},getMany:function(e){var n=e.trans,r=e.keys;return new Promise((function(e,o){e=Ke(e);for(var i,a=n.objectStore(t),c=r.length,u=new Array(c),l=0,s=0,f=function(t){var n=t.target;u[n._pos]=n.result,++s===l&&e(u)},d=Yt(o),p=0;p<c;++p)null!=r[p]&&((i=a.get(r[p]))._pos=p,i.onsuccess=f,i.onerror=d,++l);0===l&&e(u)}))},get:function(e){var n=e.trans,r=e.key;return new Promise((function(e,o){e=Ke(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=Yt(o)}))},query:function(e){return function(n){return new Promise((function(o,i){o=Ke(o);var a=n.trans,c=n.values,u=n.limit,l=n.query,s=u===1/0?void 0:u,f=l.index,d=l.range,p=a.objectStore(t),h=f.isPrimaryKey?p:p.index(f.name),v=r(d);if(0===u)return o({result:[]});if(e){var m=c?h.getAll(v,s):h.getAllKeys(v,s);m.onsuccess=function(e){return o({result:e.target.result})},m.onerror=Yt(i)}else{var b=0,y=c||!("openKeyCursor"in h)?h.openCursor(v):h.openKeyCursor(v),g=[];y.onsuccess=function(e){var t=y.result;return t?(g.push(c?t.value:t.primaryKey),++b===u?o({result:g}):void t.continue()):o({result:g})},y.onerror=Yt(i)}}))}}(a),openCursor:function(e){var n=e.trans,o=e.values,i=e.query,a=e.reverse,c=e.unique;return new Promise((function(e,u){e=Ke(e);var l=i.index,s=i.range,f=n.objectStore(t),d=l.isPrimaryKey?f:f.index(l.name),p=a?c?"prevunique":"prev":c?"nextunique":"next",h=o||!("openKeyCursor"in d)?d.openCursor(r(s),p):d.openKeyCursor(r(s),p);h.onerror=Yt(u),h.onsuccess=Ke((function(t){var r=h.result;if(r){r.___id=++un,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var a=r.advance.bind(r),c=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=Ke(u),r.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},r.start=function(e){var t=new Promise((function(e,t){e=Ke(e),h.onerror=Yt(t),r.fail=t,r.stop=function(t){r.stop=r.continue=r.continuePrimaryKey=r.advance=c,e(t)}})),n=function(){if(h.result)try{e()}catch(t){r.fail(t)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return h.onsuccess=Ke((function(e){h.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=a,n(),t},e(r)}else e(null)}),u)}))},count:function(e){var n=e.query,o=e.trans,i=n.index,a=n.range;return new Promise((function(e,n){var c=o.objectStore(t),u=i.isPrimaryKey?c:c.index(i.name),l=r(a),s=l?u.count(l):u.count();s.onsuccess=Ke((function(t){return e(t.target.result)})),s.onerror=Yt(n)}))}}}(e)})),l={};return c.forEach((function(e){return l[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!l[e])throw new Error("Table '".concat(e,"' not found"));return l[e]},MIN_KEY:-1/0,MAX_KEY:on(t),schema:i}}function fn(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var a=function(e,t){return t.reduce((function(e,t){var n=t.create;return o(o({},e),n(e))}),e)}(sn(t,i,r),e.dbcore);return{dbcore:a}}function dn(e,t){var n=t.db,r=fn(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((function(t){var n=t.name;e.core.schema.tables.some((function(e){return e.name===n}))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function pn(e,t,n,r){n.forEach((function(n){var o=r[n];t.forEach((function(t){var r=y(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?v(t,n,{get:function(){return this.table(n)},set:function(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function hn(e,t){t.forEach((function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]}))}function vn(e,t){return e._cfg.version-t._cfg.version}function mn(e,t,n,r){var o=e._dbSchema;n.objectStoreNames.contains("$meta")&&!o.$meta&&(o.$meta=rn("$meta",jn("")[0],[]),e._storeNames.push("$meta"));var i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);var a=i._reject.bind(i),u=Ce.transless||Ce;Je((function(){if(Ce.trans=i,Ce.transless=u,0!==t)return dn(e,n),function(e,t,n){return t.storeNames.includes("$meta")?t.table("$meta").get("version").then((function(e){return null!=e?e:n})):Ne.resolve(n)}(0,i,t).then((function(t){return function(e,t,n,r){var o=[],i=e._versions,a=e._dbSchema=On(e,e.idbdb,r),u=i.filter((function(e){return e._cfg.version>=t}));if(0===u.length)return Ne.resolve();function l(){return o.length?Ne.resolve(o.shift()(n.idbtrans)).then(l):Ne.resolve()}return u.forEach((function(i){o.push((function(){var o=a,u=i._cfg.dbschema;xn(e,o,r),xn(e,u,r),a=e._dbSchema=u;var l=bn(o,u);l.add.forEach((function(e){yn(r,e[0],e[1].primKey,e[1].indexes)})),l.change.forEach((function(e){if(e.recreate)throw new J.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return wn(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),wn(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var s=i._cfg.contentUpgrade;if(s&&i._cfg.version>t){dn(e,r),n._memoizedTables={};var f=S(u);l.del.forEach((function(e){f[e]=o[e]})),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],c(f),f),n.schema=f;var d,p=G(s);p&&Ze();var h=Ne.follow((function(){if((d=s(n))&&p){var e=et.bind(null,null);d.then(e,e)}}));return d&&"function"===typeof d.then?Ne.resolve(d):h.then((function(){return d}))}})),o.push((function(t){!function(e,t){[].slice.call(t.db.objectStoreNames).forEach((function(n){return null==e[n]&&t.db.deleteObjectStore(n)}))}(i._cfg.dbschema,t),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})),o.push((function(t){e.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(e.idbdb.version/10)===i._cfg.version?(e.idbdb.deleteObjectStore("$meta"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter((function(e){return"$meta"!==e}))):t.objectStore("$meta").put(i._cfg.version,"version"))}))})),l().then((function(){gn(a,r)}))}(e,t,i,n)})).catch(a);c(o).forEach((function(e){yn(n,e,o[e].primKey,o[e].indexes)})),dn(e,n),Ne.follow((function(){return e.on.populate.fire(i)})).catch(a)}))}function bn(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!==""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto)a.recreate=!0,r.change.push(a);else{var c=o.idxByName,u=i.idxByName,l=void 0;for(l in c)u[l]||a.del.push(l);for(l in u){var s=c[l],f=u[l];s?s.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function yn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return wn(o,e)})),o}function gn(e,t){c(e).forEach((function(n){t.db.objectStoreNames.contains(n)||(se&&console.debug("Dexie: Creating missing table",n),yn(t,n,e[n].primKey,e[n].indexes))}))}function wn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function On(e,t,n){var r={};return w(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),o=t.keyPath,i=tn(nn(o),o||"",!0,!1,!!t.autoIncrement,o&&"string"!==typeof o,!0),a=[],c=0;c<t.indexNames.length;++c){var u=t.index(t.indexNames[c]);o=u.keyPath;var l=tn(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&"string"!==typeof o,!1);a.push(l)}r[e]=rn(e,i,a)})),r}function xn(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var i=r[o],c=n.objectStore(i);e._hasGetAll="getAll"in c;for(var u=0;u<c.indexNames.length;++u){var l=c.indexNames[u],s=c.index(l).keyPath,f="string"===typeof s?s:"["+w(s).join("+")+"]";if(t[i]){var d=t[i].idxByName[f];d&&(d.name=l,delete t[i].idxByName[f],t[i].idxByName[l]=d)}}}"undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function jn(e){return e.split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tn(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),u(r),0===t)}))}var En,kn=function(){function e(){}return e.prototype._parseStoresSpec=function(e,t){c(e).forEach((function(n){if(null!==e[n]){var r=jn(e[n]),o=r.shift();if(o.unique=!0,o.multi)throw new J.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new J.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new J.Schema("Index must have a name and cannot be an empty string")})),t[n]=rn(n,o,r)}}))},e.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,e):e;var n=t._versions,r={},o={};return n.forEach((function(e){l(r,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(r,o)})),t._dbSchema=o,hn(t,[t._allTables,t,t.Transaction.prototype]),pn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],c(o),o),t._storeNames=c(o),this},e.prototype.upgrade=function(e){return this._cfg.contentUpgrade=le(this._cfg.contentUpgrade||te,e),this},e}();function Sn(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new hr(bt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Ln(e){return e&&"function"===typeof e.databases}function Cn(e){return Je((function(){return Ce.letThrough=!0,e()}))}function Tn(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function In(e){return!("from"in e)}var _n=function e(t,n){if(!this){var r=new e;return t&&"d"in t&&l(r,t),r}l(this,arguments.length?{d:1,from:t,to:arguments.length>1?n:t}:{d:0})};function Nn(e,t,n){var r=Et(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(In(e))return l(e,{from:t,to:n,d:1});var o=e.l,i=e.r;if(Et(n,e.from)<0)return o?Nn(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Rn(e);if(Et(t,e.to)>0)return i?Nn(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Rn(e);Et(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Et(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var a=!e.r;o&&!e.l&&An(e,o),i&&a&&An(e,i)}}function An(e,t){In(t)||function e(t,n){var r=n.from,o=n.to,i=n.l,a=n.r;Nn(t,r,o),i&&e(t,i),a&&e(t,a)}(e,t)}function Pn(e){var t=In(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Et(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Et(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Rn(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var a="r"===i?"l":"r",c=o({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],c[i]=u[a],e[a]=c,c.d=Mn(c)}e.d=Mn(e)}function Mn(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}function Fn(e,t){return c(t).forEach((function(n){e[n]?An(e[n],t[n]):e[n]=_(t[n])})),e}function Dn(e,t){return e.all||t.all||Object.keys(e).some((function(n){return t[n]&&function(e,t){var n=Pn(t),r=n.next();if(r.done)return!1;for(var o=r.value,i=Pn(e),a=i.next(o.from),c=a.value;!r.done&&!a.done;){if(Et(c.from,o.to)<=0&&Et(c.to,o.from)>=0)return!0;Et(o.from,c.from)<0?o=(r=n.next(c.from)).value:c=(a=i.next(o.from)).value}return!1}(t[n],e[n])}))}p(_n.prototype,(En={add:function(e){return An(this,e),this},addKey:function(e){return Nn(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return Nn(t,e,e)})),this},hasKey:function(e){var t=Pn(this).next(e).value;return t&&Et(t.from,e)<=0&&Et(t.to,e)>=0}},En[F]=function(){return Pn(this)},En));var Bn={},Un={},zn=!1;function Gn(e,t){Fn(Un,e),zn||(zn=!0,setTimeout((function(){zn=!1;var e=Un;Un={},Wn(e,!1)}),0))}function Wn(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(Bn);r<o.length;r++){Hn(c=o[r],e,n,t)}else for(var i in e){var a=/^idb\:\/\/(.*)\/(.*)\//.exec(i);if(a){var c,u=a[1],l=a[2];(c=Bn["idb://".concat(u,"/").concat(l)])&&Hn(c,e,n,t)}}n.forEach((function(e){return e()}))}function Hn(e,t,n,r){for(var o=[],i=0,a=Object.entries(e.queries.query);i<a.length;i++){for(var c=a[i],u=c[0],l=[],s=0,f=c[1];s<f.length;s++){var d=f[s];Dn(t,d.obsSet)?d.subscribers.forEach((function(e){return n.add(e)})):r&&l.push(d)}r&&o.push([u,l])}if(r)for(var p=0,h=o;p<h.length;p++){var v=h[p];u=v[0],l=v[1];e.queries.query[u]=l}}function Kn(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?lt(t.dbOpenError):e}));t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,o=Math.round(10*e.verno),i=!1;function a(){if(t.openCanceller!==r)throw new J.DatabaseClosed("db.open() was cancelled")}var u=t.dbReadyResolve,l=null,s=!1;return Ne.race([r,("undefined"===typeof navigator?Ne.resolve():Tn()).then((function r(){return new Ne((function(u,f){if(a(),!n)throw new J.MissingAPI;var d=e.name,p=t.autoSchema||!o?n.open(d):n.open(d,o);if(!p)throw new J.MissingAPI;p.onerror=Yt(f),p.onblocked=Ke(e._fireOnBlocked),p.onupgradeneeded=Ke((function(r){if(l=p.transaction,t.autoSchema&&!e._options.allowEmptyDB){p.onerror=Xt,l.abort(),p.result.close();var o=n.deleteDatabase(d);o.onsuccess=o.onerror=Ke((function(){f(new J.NoSuchDatabase("Database ".concat(d," doesnt exist")))}))}else{l.onerror=Yt(f);var a=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;s=a<1,e.idbdb=p.result,i&&function(e,t){gn(e._dbSchema,t),t.db.version%10!==0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=On(0,e.idbdb,t);xn(e,e._dbSchema,t);for(var r=function(e){if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach((function(t){se&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),wn(n,t)}))},o=0,i=bn(n,e._dbSchema).change;o<i.length;o++){var a=r(i[o]);if("object"===typeof a)return a.value}}(e,l),mn(e,a/10,l,f)}}),f),p.onsuccess=Ke((function(){l=null;var n,a=e.idbdb=p.result,f=w(a.objectStoreNames);if(f.length>0)try{var h=a.transaction(1===(n=f).length?n[0]:n,"readonly");if(t.autoSchema)!function(e,t,n){e.verno=t.version/10;var r=e._dbSchema=On(0,t,n);e._storeNames=w(t.objectStoreNames,0),pn(e,[e._allTables],c(r),r)}(e,a,h);else if(xn(e,e._dbSchema,h),!function(e,t){var n=bn(On(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,h)&&!i)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),a.close(),o=a.version+1,i=!0,u(r());dn(e,h)}catch(v){}mt.push(e),a.onversionchange=Ke((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),a.onclose=Ke((function(t){e.on("close").fire(t)})),s&&function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ln(n)&&t!==bt&&Sn(n,r).put({name:t}).catch(te)}(e._deps,d),u()}),f)})).catch((function(e){switch(null===e||void 0===e?void 0:e.name){case"UnknownError":if(t.PR1398_maxLoop>0)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),r();break;case"VersionError":if(o>0)return o=0,r()}return Ne.reject(e)}))}))]).then((function(){return a(),t.onReadyBeingFired=[],Ne.resolve(Cn((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(t.onReadyBeingFired.length>0){var r=t.onReadyBeingFired.reduce(le,te);return t.onReadyBeingFired=[],Ne.resolve(Cn((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)})).catch((function(n){t.dbOpenError=n;try{l&&l.abort()}catch(En){}return r===t.openCanceller&&e._close(),lt(n)})).finally((function(){t.openComplete=!0,u()})).then((function(){if(s){var t={};e.tables.forEach((function(n){n.schema.indexes.forEach((function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new _n(-1/0,[[[]]]))})),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new _n(-1/0,[[[]]])})),Zt(Qt).fire(t),Wn(t,!0)}return e}))}function Vn(e){var t=function(t){return e.next(t)},n=o(t),r=o((function(t){return e.throw(t)}));function o(e){return function(t){var o=e(t),i=o.value;return o.done?i:i&&"function"===typeof i.then?i.then(n,r):u(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function qn(e,t,n){var r=arguments.length;if(r<2)throw new J.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];return n=o.pop(),[e,C(o),n]}function $n(e,t,n,r,o){return Ne.resolve().then((function(){var i=Ce.transless||Ce,a=e._createTransaction(t,n,e._dbSchema,r);a.explicit=!0;var c={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),a.idbtrans._explicit=!0,e._state.PR1398_maxLoop=3}catch(f){return f.name===X.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return $n(e,t,n,null,o)}))):lt(f)}var u,l=G(o);l&&Ze();var s=Ne.follow((function(){if(u=o.call(a,a))if(l){var e=et.bind(null,null);u.then(e,e)}else"function"===typeof u.next&&"function"===typeof u.throw&&(u=Vn(u))}),c);return(u&&"function"===typeof u.then?Ne.resolve(u).then((function(e){return a.active?e:lt(new J.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):s.then((function(){return u}))).then((function(e){return r&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),lt(e)}))}))}function Yn(e,t,n){for(var r=u(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var Xn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},a=[];function c(e,t,n){var r=ln(e),u=i[r]=i[r]||[],l=null==e?0:"string"===typeof e?1:e.length,s=t>0,f=o(o({},n),{name:s?"".concat(r,"(virtual-from:").concat(n.name,")"):n.name,lowLevelIndex:n,isVirtual:s,keyTail:t,keyLength:l,extractKey:an(e),unique:!s&&n.unique});(u.push(f),f.isPrimaryKey||a.push(f),l>1)&&c(2===l?e[0]:e.slice(0,l-1),t+1,n);return u.sort((function(e,t){return e.keyTail-t.keyTail})),f}var u=c(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[u];for(var l=0,s=r.indexes;l<s.length;l++){var f=s[l];c(f.keyPath,0,f)}function d(t){var n,r,i=t.query.index;return i.isVirtual?o(o({},t),{query:{index:i.lowLevelIndex,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:Yn(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:Yn(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}):t}var p=o(o({},n),{schema:o(o({},r),{primaryKey:u,indexes:a,getIndexByKeyPath:function(e){var t=i[ln(e)];return t&&t[0]}}),count:function(e){return n.count(d(e))},query:function(e){return n.query(d(e))},openCursor:function(t){var r=t.query.index,o=r.keyTail,i=r.isVirtual,a=r.keyLength;if(!i)return n.openCursor(t);return n.openCursor(d(t)).then((function(n){return n&&function(n){var r=Object.create(n,{continue:{value:function(r){null!=r?n.continue(Yn(r,t.reverse?e.MAX_KEY:e.MIN_KEY,o)):t.unique?n.continue(n.key.slice(0,a).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,o)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Yn(t,e.MAX_KEY,o),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:function(){return n.value}}});return r}(n)}))}});return p}})}};function Qn(e,t,n,r){return n=n||{},r=r||"",c(e).forEach((function(o){if(d(t,o)){var i=e[o],a=t[o];if("object"===typeof i&&"object"===typeof a&&i&&a){var c=M(i);c!==M(a)?n[r+o]=t[o]:"Object"===c?Qn(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),c(t).forEach((function(o){d(e,o)||(n[r+o]=t[o])})),n}function Jn(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var Zn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,a=o(o({},n),{mutate:function(e){var a=Ce.trans,c=a.table(t).hook,u=c.deleting,l=c.creating,s=c.updating;switch(e.type){case"add":if(l.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"put":if(l.fire===te&&s.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"delete":if(u.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"deleteRange":if(u.fire===te)break;return a._promise("readwrite",(function(){return function(e){return p(e.trans,e.range,1e4)}(e)}),!0)}return n.mutate(e);function f(e){var t=Ce.trans,a=e.keys||Jn(r,e);if(!a)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?o(o({},e),{keys:a}):o({},e)).type&&(e.values=i([],e.values,!0)),e.keys&&(e.keys=i([],e.keys,!0)),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,a).then((function(o){var i=a.map((function(n,i){var a=o[i],c={onerror:null,onsuccess:null};if("delete"===e.type)u.fire.call(c,n,a,t);else if("add"===e.type||void 0===a){var f=l.fire.call(c,n,e.values[i],t);null==n&&null!=f&&(n=f,e.keys[i]=n,r.outbound||k(e.values[i],r.keyPath,n))}else{var p=Qn(a,e.values[i]),h=s.fire.call(c,p,n,a,t);if(h){var v=e.values[i];Object.keys(h).forEach((function(e){d(v,e)?v[e]=h[e]:k(v,e,h[e])}))}}return c}));return n.mutate(e).then((function(t){for(var n=t.failures,r=t.results,c=t.numFailures,u=t.lastResult,l=0;l<a.length;++l){var s=r?r[l]:a[l],f=i[l];null==s?f.onerror&&f.onerror(n[l]):f.onsuccess&&f.onsuccess("put"===e.type&&o[l]?e.values[l]:s)}return{failures:n,results:r,numFailures:c,lastResult:u}})).catch((function(e){return i.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}function p(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((function(n){var r=n.result;return f({type:"delete",keys:r,trans:e}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:p(e,o(o({},t),{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}}});return a}})}};function er(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],o=0,i=0;o<t.keys.length&&i<e.length;++o)0===Et(t.keys[o],e[i])&&(r.push(n?A(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(En){return null}}var tr={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return o(o({},n),{getMany:function(e){if(!e.cache)return n.getMany(e);var t=er(e.keys,e.trans._cache,"clone"===e.cache);return t?Ne.resolve(t):n.getMany(e).then((function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?A(t):t},t}))},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),n.mutate(e)}})}}}};function nr(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function rr(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var or={stack:"dbcore",level:0,name:"Observability",create:function(e){var t=e.schema.name,n=new _n(e.MIN_KEY,e.MAX_KEY);return o(o({},e),{transaction:function(t,n,r){if(Ce.subscr&&"readonly"!==n)throw new J.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Ce.querier));return e.transaction(t,n,r)},table:function(r){var i=e.table(r),a=i.schema,l=a.primaryKey,s=a.indexes,f=l.extractKey,d=l.outbound,p=l.autoIncrement&&s.filter((function(e){return e.compound&&e.keyPath.includes(l.keyPath)})),h=o(o({},i),{mutate:function(o){var c,s,f=o.trans,d=o.mutatedParts||(o.mutatedParts={}),h=function(e){var n="idb://".concat(t,"/").concat(r,"/").concat(e);return d[n]||(d[n]=new _n)},v=h(""),m=h(":dels"),b=o.type,y="deleteRange"===o.type?[o.range]:"delete"===o.type?[o.keys]:o.values.length<50?[Jn(l,o).filter((function(e){return e})),o.values]:[],g=y[0],w=y[1],O=o.trans._cache;if(u(g)){v.addKeys(g);var x="delete"===b||g.length===w.length?er(g,O):null;x||m.addKeys(g),(x||w)&&function(e,t,n,r){function o(t){var o=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}var a=function(e){return t.multiEntry&&u(e)?e.forEach((function(e){return o.addKey(e)})):o.addKey(e)};(n||r).forEach((function(e,t){var o=n&&i(n[t]),c=r&&i(r[t]);0!==Et(o,c)&&(null!=o&&a(o),null!=c&&a(c))}))}t.indexes.forEach(o)}(h,a,x,w)}else if(g){var j={from:null!==(c=g.lower)&&void 0!==c?c:e.MIN_KEY,to:null!==(s=g.upper)&&void 0!==s?s:e.MAX_KEY};m.add(j),v.add(j)}else v.add(n),m.add(n),a.indexes.forEach((function(e){return h(e.name).add(n)}));return i.mutate(o).then((function(e){return!g||"add"!==o.type&&"put"!==o.type||(v.addKeys(e.results),p&&p.forEach((function(t){for(var n=o.values.map((function(e){return t.extractKey(e)})),r=t.keyPath.findIndex((function(e){return e===l.keyPath})),i=0,a=e.results.length;i<a;++i)n[i][r]=e.results[i];h(t.name).addKeys(n)}))),f.mutatedParts=Fn(f.mutatedParts||{},d),e}))}}),v=function(t){var n,r,o=t.query,i=o.index,a=o.range;return[i,new _n(null!==(n=a.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=a.upper)&&void 0!==r?r:e.MAX_KEY)]},m={get:function(e){return[l,new _n(e.key)]},getMany:function(e){return[l,(new _n).addKeys(e.keys)]},count:v,query:v,openCursor:v};return c(m).forEach((function(e){h[e]=function(a){var c=Ce.subscr,u=!!c,l=nr(Ce,i)&&rr(e,a)?a.obsSet={}:c;if(u){var s=function(e){var n="idb://".concat(t,"/").concat(r,"/").concat(e);return l[n]||(l[n]=new _n)},p=s(""),h=s(":dels"),v=m[e](a),b=v[0],y=v[1];if("query"===e&&b.isPrimaryKey&&!a.values?h.add(y):s(b.name||"").add(y),!b.isPrimaryKey){if("count"!==e){var g="query"===e&&d&&a.values&&i.query(o(o({},a),{values:!1}));return i[e].apply(this,arguments).then((function(t){if("query"===e){if(d&&a.values)return g.then((function(e){var n=e.result;return p.addKeys(n),t}));var n=a.values?t.result.map(f):t.result;a.values?p.addKeys(n):h.addKeys(n)}else if("openCursor"===e){var r=t,o=a.values;return r&&Object.create(r,{key:{get:function(){return h.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return h.addKey(e),e}},value:{get:function(){return o&&p.addKey(r.primaryKey),r.value}}})}return t}))}h.add(n)}}return i[e].apply(this,arguments)}})),h}})}};function ir(e,t,n){if(0===n.numFailures)return t;if("deleteRange"===t.type)return null;var r=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1;if(n.numFailures===r)return null;var i=o({},t);return u(i.keys)&&(i.keys=i.keys.filter((function(e,t){return!(t in n.failures)}))),"values"in i&&u(i.values)&&(i.values=i.values.filter((function(e,t){return!(t in n.failures)}))),i}function ar(e,t){return function(e,t){return void 0===t.lower||(t.lowerOpen?Et(e,t.lower)>0:Et(e,t.lower)>=0)}(e,t)&&function(e,t){return void 0===t.upper||(t.upperOpen?Et(e,t.upper)<0:Et(e,t.upper)<=0)}(e,t)}function cr(e,t,n,r,o,i){if(!n||0===n.length)return e;var a=t.query.index,c=a.multiEntry,l=t.query.range,s=r.schema.primaryKey.extractKey,f=a.extractKey,d=(a.lowLevelIndex||a).extractKey,p=n.reduce((function(e,n){var r=e,o=[];if("add"===n.type||"put"===n.type)for(var i=new _n,a=n.values.length-1;a>=0;--a){var d=n.values[a],p=s(d);if(!i.hasKey(p)){var h=f(d);(c&&u(h)?h.some((function(e){return ar(e,l)})):ar(h,l))&&(i.addKey(p),o.push(d))}}switch(n.type){case"add":var v=(new _n).addKeys(t.values?e.map((function(e){return s(e)})):e);r=e.concat(t.values?o.filter((function(e){var t=s(e);return!v.hasKey(t)&&(v.addKey(t),!0)})):o.map((function(e){return s(e)})).filter((function(e){return!v.hasKey(e)&&(v.addKey(e),!0)})));break;case"put":var m=(new _n).addKeys(n.values.map((function(e){return s(e)})));r=e.filter((function(e){return!m.hasKey(t.values?s(e):e)})).concat(t.values?o:o.map((function(e){return s(e)})));break;case"delete":var b=(new _n).addKeys(n.keys);r=e.filter((function(e){return!b.hasKey(t.values?s(e):e)}));break;case"deleteRange":var y=n.range;r=e.filter((function(e){return!ar(s(e),y)}))}return r}),e);return p===e?e:(p.sort((function(e,t){return Et(d(e),d(t))||Et(s(e),s(t))})),t.limit&&t.limit<1/0&&(p.length>t.limit?p.length=t.limit:e.length===t.limit&&p.length<t.limit&&(o.dirty=!0)),i?Object.freeze(p):p)}function ur(e,t){return 0===Et(e.lower,t.lower)&&0===Et(e.upper,t.upper)&&!!e.lowerOpen===!!t.lowerOpen&&!!e.upperOpen===!!t.upperOpen}function lr(e,t){return function(e,t,n,r){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;var o=Et(e,t);if(0===o){if(n&&r)return 0;if(n)return 1;if(r)return-1}return o}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&function(e,t,n,r){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return-1;var o=Et(e,t);if(0===o){if(n&&r)return 0;if(n)return-1;if(r)return 1}return o}(e.upper,t.upper,e.upperOpen,t.upperOpen)>=0}function sr(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",(function(){e.subscribers.delete(n),0===e.subscribers.size&&function(e,t){setTimeout((function(){0===e.subscribers.size&&B(t,e)}),3e3)}(e,t)}))}var fr={stack:"dbcore",level:0,name:"Cache",create:function(e){var t=e.schema.name,n=o(o({},e),{transaction:function(n,r,o){var i=e.transaction(n,r,o);if("readwrite"===r){var a=new AbortController,c=a.signal,u=function(o){return function(){if(a.abort(),"readwrite"===r){for(var c=new Set,u=0,l=n;u<l.length;u++){var s=l[u],f=Bn["idb://".concat(t,"/").concat(s)];if(f){var d=e.table(s),p=f.optimisticOps.filter((function(e){return e.trans===i}));if(i._explicit&&o&&i.mutatedParts)for(var h=0,v=Object.values(f.queries.query);h<v.length;h++)for(var m=0,b=(w=v[h]).slice();m<b.length;m++){Dn((j=b[m]).obsSet,i.mutatedParts)&&(B(w,j),j.subscribers.forEach((function(e){return c.add(e)})))}else if(p.length>0){f.optimisticOps=f.optimisticOps.filter((function(e){return e.trans!==i}));for(var y=0,g=Object.values(f.queries.query);y<g.length;y++)for(var w,O=0,x=(w=g[y]).slice();O<x.length;O++){var j;if(null!=(j=x[O]).res&&i.mutatedParts)if(o&&!j.dirty){var E=Object.isFrozen(j.res),k=cr(j.res,j.req,p,d,j,E);j.dirty?(B(w,j),j.subscribers.forEach((function(e){return c.add(e)}))):k!==j.res&&(j.res=k,j.promise=Ne.resolve({result:k}))}else j.dirty&&B(w,j),j.subscribers.forEach((function(e){return c.add(e)}))}}}}c.forEach((function(e){return e()}))}}};i.addEventListener("abort",u(!1),{signal:c}),i.addEventListener("error",u(!1),{signal:c}),i.addEventListener("complete",u(!0),{signal:c})}return i},table:function(n){var r=e.table(n),i=r.schema.primaryKey,a=o(o({},r),{mutate:function(e){var a=Ce.trans;if(i.outbound||"disabled"===a.db._options.cache||a.explicit||"readwrite"!==a.idbtrans.mode)return r.mutate(e);var c=Bn["idb://".concat(t,"/").concat(n)];if(!c)return r.mutate(e);var u=r.mutate(e);return"add"!==e.type&&"put"!==e.type||!(e.values.length>=50||Jn(i,e).some((function(e){return null==e})))?(c.optimisticOps.push(e),e.mutatedParts&&Gn(e.mutatedParts),u.then((function(t){if(t.numFailures>0){B(c.optimisticOps,e);var n=ir(0,e,t);n&&c.optimisticOps.push(n),e.mutatedParts&&Gn(e.mutatedParts)}})),u.catch((function(){B(c.optimisticOps,e),e.mutatedParts&&Gn(e.mutatedParts)}))):u.then((function(t){var n=o(o({},e),{values:e.values.map((function(e,n){var r;if(t.failures[n])return e;var a=(null===(r=i.keyPath)||void 0===r?void 0:r.includes("."))?A(e):o({},e);return k(a,i.keyPath,t.results[n]),a}))}),r=ir(0,n,t);c.optimisticOps.push(r),queueMicrotask((function(){return e.mutatedParts&&Gn(e.mutatedParts)}))})),u},query:function(e){var o;if(!nr(Ce,r)||!rr("query",e))return r.query(e);var i="immutable"===(null===(o=Ce.trans)||void 0===o?void 0:o.db._options.cache),a=Ce,c=a.requery,u=a.signal,l=function(e,t,n,r){var o=Bn["idb://".concat(e,"/").concat(t)];if(!o)return[];var i=o.queries[n];if(!i)return[null,!1,o,null];var a=i[(r.query?r.query.index.name:null)||""];if(!a)return[null,!1,o,null];switch(n){case"query":var c=a.find((function(e){return e.req.limit===r.limit&&e.req.values===r.values&&ur(e.req.query.range,r.query.range)}));return c?[c,!0,o,a]:[a.find((function(e){return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(!r.values||e.req.values)&&lr(e.req.query.range,r.query.range)})),!1,o,a];case"count":var u=a.find((function(e){return ur(e.req.query.range,r.query.range)}));return[u,!!u,o,a]}}(t,n,"query",e),s=l[0],f=l[1],d=l[2],p=l[3];if(s&&f)s.obsSet=e.obsSet;else{var h=r.query(e).then((function(e){var t=e.result;if(s&&(s.res=t),i){for(var n=0,r=t.length;n<r;++n)Object.freeze(t[n]);Object.freeze(t)}else e.result=A(t);return e})).catch((function(e){return p&&s&&B(p,s),Promise.reject(e)}));s={obsSet:e.obsSet,promise:h,subscribers:new Set,type:"query",req:e,dirty:!1},p?p.push(s):(p=[s],d||(d=Bn["idb://".concat(t,"/").concat(n)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),d.queries.query[e.query.index.name||""]=p)}return sr(s,p,c,u),s.promise.then((function(t){return{result:cr(t.result,e,null===d||void 0===d?void 0:d.optimisticOps,r,s,i)}}))}});return a}});return n}};function dr(e,t){return new Proxy(e,{get:function(e,n,r){return"db"===n?t:Reflect.get(e,n,r)}})}var pr,hr=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=o({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange,cache:"cloned"},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var a=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var c,u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:te,dbReadyPromise:null,cancelOpen:te,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:n.autoOpen};u.dbReadyPromise=new Ne((function(e){u.dbReadyResolve=e})),u.openCanceller=new Ne((function(e,t){u.cancelOpen=t})),this._state=u,this.name=t,this.on=Ct(this,"populate","blocked","versionchange","close",{ready:[le,te]}),this.on.ready.subscribe=O(this.on.ready.subscribe,(function(t){return function(n,o){e.vip((function(){var e=r._state;if(e.openComplete)e.dbOpenError||Ne.resolve().then(n),o&&t(n);else if(e.onReadyBeingFired)e.onReadyBeingFired.push(n),o&&t(n);else{t(n);var i=r;o||t((function e(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(e)}))}}))}})),this.Collection=(c=this,Tt(Dt.prototype,(function(e,t){this.db=c;var n=Ot,r=null;if(t)try{n=t()}catch(u){r=u}var o=e._ctx,i=o.table,a=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:a!==ne?a:null}}))),this.Table=function(e){return Tt(Lt.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Ct(null,{creating:[ie,te],reading:[re,ne],updating:[ce,te],deleting:[ae,te]})}))}(this),this.Transaction=function(e){return Tt(en.prototype,(function(t,n,r,o,i){var a=this;this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Ct(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ne((function(e,t){a._resolve=e,a._reject=t})),this._completion.then((function(){a.active=!1,a.on.complete.fire()}),(function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),lt(e)}))}))}(this),this.Version=function(e){return Tt(kn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Tt($t.prototype,(function(t,n,r){if(this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r},this._cmp=this._ascending=Et,this._descending=function(e,t){return Et(t,e)},this._max=function(e,t){return Et(e,t)>0?e:t},this._min=function(e,t){return Et(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange,!this._IDBKeyRange)throw new J.MissingAPI}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close({disableAutoOpen:!1})})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(r.name,"') was blocked")):console.warn("Upgrade '".concat(r.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))})),this._maxKey=on(n.IDBKeyRange),this._createTransaction=function(e,t,n,o){return new r.Transaction(e,t,n,r._options.chromeTransactionDurability,o)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),mt.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use(tr),this.use(fr),this.use(or),this.use(Xn),this.use(Zn);var l=new Proxy(this,{get:function(e,t,n){if("_vip"===t)return!0;if("table"===t)return function(e){return dr(r.table(e),l)};var o=Reflect.get(e,t,n);return o instanceof Lt?dr(o,l):"tables"===t?o.map((function(e){return dr(e,l)})):"_createTransaction"===t?function(){return dr(o.apply(this,arguments),l)}:o}});this.vip=l,a.forEach((function(e){return e(r)}))}return e.prototype.version=function(e){if(isNaN(e)||e<.1)throw new J.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new J.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(vn),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||Ce.letThrough||this._vip)?e():new Ne((function(e,n){if(t._state.openComplete)return n(new J.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void n(new J.DatabaseClosed);t.open().catch(te)}t._state.dbReadyPromise.then(e,n)})).then(e)},e.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,o=e.name;o&&this.unuse({stack:t,name:o});var i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:n,level:null==r?10:r,name:o}),i.sort((function(e,t){return e.level-t.level})),this},e.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},e.prototype.open=function(){var e=this;return at(Le,(function(){return Kn(e)}))},e.prototype._close=function(){var e=this._state,t=mt.indexOf(this);if(t>=0&&mt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(n){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new Ne((function(t){e.dbReadyResolve=t})),e.openCanceller=new Ne((function(t,n){e.cancelOpen=n})))},e.prototype.close=function(e){var t=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,n=this._state;t?(n.isBeingOpened&&n.cancelOpen(new J.DatabaseClosed),this._close(),n.autoOpen=!1,n.dbOpenError=new J.DatabaseClosed):(this._close(),n.autoOpen=this._options.autoOpen||n.isBeingOpened,n.openComplete=!1,n.dbOpenError=null)},e.prototype.delete=function(e){var t=this;void 0===e&&(e={disableAutoOpen:!0});var n=arguments.length>0&&"object"!==typeof arguments[0],r=this._state;return new Ne((function(o,i){var a=function(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=Ke((function(){!function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ln(n)&&t!==bt&&Sn(n,r).delete(t).catch(te)}(t._deps,t.name),o()})),n.onerror=Yt(i),n.onblocked=t._fireOnBlocked};if(n)throw new J.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return c(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=qn.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,o=Ce.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);var i,a,c=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!==typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===yt)i=yt;else{if("rw"!=e&&e!=gt)throw new J.InvalidArgument("Invalid transaction mode: "+e);i=gt}if(o){if(o.mode===yt&&i===gt){if(!c)throw new J.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach((function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!c)throw new J.SubTransaction("Table "+e+" not included in parent transaction.");o=null}})),c&&o&&!o.active&&(o=null)}}catch(l){return o?o._promise(null,(function(e,t){t(l)})):lt(l)}var u=$n.bind(null,this,i,a,o,n);return o?o._promise(i,u,"lock"):Ce.trans?at(Ce.transless,(function(){return r._whenReady(u)})):this._whenReady(u)},e.prototype.table=function(e){if(!d(this._allTables,e))throw new J.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},e}(),vr="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",mr=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!==typeof e?e:{next:e,error:t,complete:n})},e.prototype[vr]=function(){return this},e}();try{pr={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch(xr){pr={indexedDB:null,IDBKeyRange:null}}var br=hr;function yr(e){var t=wr;try{wr=!0,Zt.storagemutated.fire(e),Wn(e,!0)}finally{wr=t}}p(br,o(o({},ee),{delete:function(e){return new br(e,{addons:[]}).delete()},exists:function(e){return new br(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return function(e){var t=e.indexedDB,n=e.IDBKeyRange;return Ln(t)?Promise.resolve(t.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return e!==bt}))})):Sn(t,n).toCollection().primaryKeys()}(br.dependencies).then(e)}catch(En){return lt(new J.MissingAPI)}},defineClass:function(){return function(e){l(this,e)}},ignoreTransaction:function(e){return Ce.trans?at(Ce.transless,e):e()},vip:Cn,async:function(e){return function(){try{var t=Vn(e.apply(this,arguments));return t&&"function"===typeof t.then?t:Ne.resolve(t)}catch(xr){return lt(xr)}}},spawn:function(e,t,n){try{var r=Vn(e.apply(n,t||[]));return r&&"function"===typeof r.then?r:Ne.resolve(r)}catch(xr){return lt(xr)}},currentTransaction:{get:function(){return Ce.trans||null}},waitFor:function(e,t){var n=Ne.resolve("function"===typeof e?br.ignoreTransaction(e):e).timeout(t||6e4);return Ce.trans?Ce.trans.waitFor(n):n},Promise:Ne,debug:{get:function(){return se},set:function(e){fe(e)}},derive:m,extend:l,props:p,override:O,Events:Ct,on:Zt,liveQuery:function(e){var t,n=!1,r=new mr((function(r){var o=G(e);var i,a=!1,c={},u={},l={get closed(){return a},unsubscribe:function(){a||(a=!0,i&&i.abort(),s&&Zt.storagemutated.unsubscribe(p))}};r.start&&r.start(l);var s=!1,f=function(){return ut(h)};var p=function(e){Fn(c,e),Dn(u,c)&&f()},h=function(){if(!a&&pr.indexedDB){c={};var l={};i&&i.abort(),i=new AbortController;var h={subscr:l,signal:i.signal,requery:f,querier:e,trans:null},v=function(t){var n=ze();try{o&&Ze();var r=Je(e,t);return o&&(r=r.finally(et)),r}finally{n&&Ge()}}(h);Promise.resolve(v).then((function(e){n=!0,t=e,a||h.signal.aborted||(c={},function(e){for(var t in e)if(d(e,t))return!1;return!0}(u=l)||s||(Zt(Qt,p),s=!0),ut((function(){return!a&&r.next&&r.next(e)})))}),(function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null===e||void 0===e?void 0:e.name)||a||ut((function(){a||r.error&&r.error(e)}))}))}};return setTimeout(f,0),l}));return r.hasValue=function(){return n},r.getValue=function(){return t},r},extendObservabilitySet:Fn,getByKeyPath:E,setByKeyPath:k,delByKeyPath:function(e,t){"string"===typeof t?k(e,t,void 0):"length"in t&&[].map.call(t,(function(t){k(e,t,void 0)}))},shallowClone:S,deepClone:A,getObjectDiff:Qn,cmp:Et,asap:j,minKey:pt,addons:[],connections:mt,errnames:X,dependencies:pr,cache:Bn,semVer:ft,version:ft.split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),br.maxKey=on(br.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(Zt(Qt,(function(e){var t;wr||(t=new CustomEvent(Jt,{detail:e}),wr=!0,dispatchEvent(t),wr=!1)})),addEventListener(Jt,(function(e){var t=e.detail;wr||yr(t)})));var gr,wr=!1,Or=function(){};"undefined"!==typeof BroadcastChannel&&((Or=function(){(gr=new BroadcastChannel(Jt)).onmessage=function(e){return e.data&&yr(e.data)}})(),"function"===typeof gr.unref&&gr.unref(),Zt(Qt,(function(e){wr||gr.postMessage(e)}))),"undefined"!==typeof addEventListener&&(addEventListener("pagehide",(function(e){if(!hr.disableBfCache&&e.persisted){se&&console.debug("Dexie: handling persisted pagehide"),null===gr||void 0===gr||gr.close();for(var t=0,n=mt;t<n.length;t++){n[t].close({disableAutoOpen:!1})}}})),addEventListener("pageshow",(function(e){!hr.disableBfCache&&e.persisted&&(se&&console.debug("Dexie: handling persisted pageshow"),Or(),yr({all:new _n(-1/0,[[]])}))}))),Ne.rejectionMapper=function(e,t){if(!e||e instanceof V||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Z[e.name])return e;var n=new Z[e.name](t||e.message,e);return"stack"in e&&v(n,"stack",{get:function(){return this.inner.stack}}),n},fe(se)},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,i=r[e];return o="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(e,t,n,r){return c[e]};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var s={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,c=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(u,(function(e){return e.test(c)}));return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(c.length)}}}var d,p={ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],o=e.match(d.parsePattern);if(!o)return null;var i=d.valueCallback?d.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:o,formatLong:a,formatRelative:u,localize:s,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=h},function(e,t,n){"use strict";var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n="object"===typeof t?t:{equalityCheck:t},i=n.equalityCheck,a=void 0===i?o:i,c=n.maxSize,u=void 0===c?1:c,l=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(a),f=1===u?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:r},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,s);function d(){var t=f.get(arguments);if(t===r){if(t=e.apply(null,arguments),l){var n=f.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return d.clearCache=function(){return f.clear()},d}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,c={memoizeOptions:void 0},u=r.pop();if("object"===typeof u&&(c=u,u=r.pop()),"function"!==typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var l=c.memoizeOptions,s=void 0===l?n:l,f=Array.isArray(s)?s:[s],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(f)),h=e((function(){for(var e=[],t=d.length,n=0;n<t;n++)e.push(d[n].apply(null,arguments));return i=p.apply(null,e)}));return Object.assign(h,{resultFunc:u,memoizedResultFunc:p,dependencies:d,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}n.d(t,"a",(function(){return c}));var c=a(i)},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return p}));var r=n(2),o=n(96),i=n.n(o),a=n(27),c=n(8);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=5*c.f,s=i()((function(){Object(a.i)("userActive",Object(c.n)())}),5e3,{leading:!0,trailing:!1}),f=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("userActive");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("activeSnapshot");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(null===t||void 0===t?void 0:t.timestamp));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=Object(r.a)(u().mark((function e(){var t,n,r,o,i,a,s=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(s.length>0&&void 0!==s[0]?s[0]:{}).debug,e.next=3,f();case 3:return n=e.sent,e.next=6,d();case 6:if(r=e.sent,n||r){e.next=10;break}return t&&console.log("idle status unknown: no user or browser activity recorded"),e.abrupt("return",void 0);case 10:return o=n&&r?Math.max(+n,+r):n?+n:+r,i=Object(c.m)()-l,a=o<i,t&&console.log(a?"\u2705 browser and user are idle (last activity ".concat(Math.floor((Object(c.m)()-o)/1e3).toLocaleString("en-US")," seconds ago)"):"\u23f3 browser or user is active (idle in ".concat(Math.floor((o-i)/1e3).toLocaleString("en-US")," seconds)")),e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(37),o=["red","orange","yellow","green","teal","blue","purple","pink"],i=[].concat(o,["brown","gray","neutral"]),a={red:"red",orange:"orange",yellow:"yellow",green:"green",teal:"teal",blue:"blue",purple:"purple",pink:"pink",brown:"brown",gray:"gray",neutral:"neutral"};function c(e){var t=e.id;return function(e){var t=e.color,n=e.defaultColor;return s(t)||f(t)?t:n||void 0}({color:e.color,defaultColor:d(t,e.defaultCollectionColor)})}function u(e){var t=e.color,n=e.defaultColor,r=e.theme;return s(t)?r.palette.nxsSet[a[t]].main:f(t)?t:n?r.palette.nxsSet[a[n]].main:void 0}function l(e){var t=e.id,n=e.color,r=e.defaultCollectionColor;return u({color:n,theme:e.theme,defaultColor:d(t,r)})}function s(e){return!!e&&i.includes(e)}function f(e){return!!(null===e||void 0===e?void 0:e.startsWith("#"))}function d(e,t){return s(t)?t:"auto"===t?function(e){return o[Object(r.b)("".concat(e),o.length)]}(e):void 0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(2),i=n(18),a=n(75),c=n(8);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l={experiments:{},clientId:void 0,clientCreated:void 0,view:"single-line",defaultCollectionColor:"none",shareUsageStats:!0,rateDonateViewed:null,enableAutoBackup:!0,disableAutoBackupRemotely:!1,appTip_export:{text:"Use Export to transfer collections to other apps.\nTo save both collections and history, use Backup."},appTip_itemMove:{text:"mac"===a.a?"Use Option+\u2191/Option+\u2193 to move a selected link or folder up/down.":"Use Alt+\u2191/Alt+\u2193 to move a selected link or folder up/down."},exportScope:"all-collections",exportFormat:"json",unitAddTextAreaHeight:120,importTextAreaHeight:120,enableOpenOptimizations:!1,showTabCountsBadge:!1,enableSingleClickRemove:!1,alwaysShowUnitCounts:!1,showWelcome:!1,clientTitle:"",enabledCopyActions:["title","titleAndUrl","markdown","csv","json","html"],currentWindowFirst:!0,bypassConfirmCollectionDelete:!1,bypassConfirmEventDelete:!1,bypassConfirmClientItemClose:!1,bypassConfirmCollectionItemDelete:!1,bypassConfirmEventItemDelete:!1,bypassConfirmClientItemOpen:!1,bypassConfirmCollectionItemMove:!1,bypassConfirmSort:!1,bypassConfirmUnify:!1,bypassConfirmReplace:!1,ignoreNxsTabs:!1,ignoreNewTabs:!1,ignorePinnedTabs:!1,ignoreBrowserFeatureTabs:!1,desiredTheme:"default",historyIsOpen:!1,scheduledSnapshotCycle:c.c,scheduledSnapshotRemoveOlderThan:10*c.i,scheduledSnapshotKeepAtMost:500,searchResultsShowUnitsOnly:!1,suppressMacShortcutBugNotification:!1,askForNameWhenSavingCollection:!0,autoNameCollections:!0,showAllItemMatches:!1,dummyGlobal:"dummyGlobal"},s=["dummyGlobal"];function f(e){return s.includes(e)}function d(e){var t={all:function(){return n.apply(this,arguments)},get:function(e){return a.apply(this,arguments)},set:function(e,t){return c.apply(this,arguments)}};return t;function n(){return(n=Object(o.a)(u().mark((function t(){var n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.fetchAllSettings();case 3:return n=t.sent,t.abrupt("return",n.filter((function(e){return e.id in l})).map((function(e){return p(e.id,e.value)?e:Object(r.a)(Object(r.a)({},e),{},{value:l[e.id]})})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{global:f(e.id)})})));case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to fetch all settings"});case 10:return t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function a(){return(a=Object(o.a)(u().mark((function t(n){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=7;break}return t.next=4,e.fetchGlobalSetting(n);case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,e.fetchClientSetting(n);case 9:t.t0=t.sent;case 10:if(r=t.t0,!p(n,r)){t.next=13;break}return t.abrupt("return",r);case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(0),Object(i.e)(t.t1,{prefix:"Failed to fetch setting ".concat(n)});case 18:return t.abrupt("return",l[n]);case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)}function c(){return(c=Object(o.a)(u().mark((function t(n,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=3;break}return t.abrupt("return",e.saveGlobalSetting({id:n,value:r}));case 3:return t.next=5,e.saveClientSetting({id:n,value:r});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to save setting ".concat(n)});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}}function p(e,t){return void 0!==t&&!!("scheduledSnapshotRemoveOlderThan"!==e&&"scheduledSnapshotKeepAtMost"!==e||t)}},function(e){e.exports=JSON.parse('{"brave":{"browsers":["brave"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["brave://bookmarks"],"downloads":["brave://downloads"],"extensions":["brave://extensions"],"history":["brave://history"],"newtab":[],"settings":["brave://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["brave"]}},"chrome":{"browsers":["chrome","chromium"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["chrome://bookmarks"],"downloads":["chrome://downloads"],"extensions":["chrome://extensions","chrome://chrome/extensions","chrome://settings/extensions"],"history":["chrome://history","chrome://chrome/history"],"newtab":["chrome://newtab"],"settings":["chrome://settings","chrome://chrome/settings"]},"schemes":{"devTools":["devtools","chrome-devtools"],"extension":["chrome-extension"],"feature":["chrome"]}},"edge":{"browsers":["edge"],"appStores":["microsoftAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["edge://favorites"],"downloads":["edge://downloads"],"extensions":["edge://extensions"],"history":["edge://history"],"newtab":["edge://newtab"],"settings":["edge://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension","extension"],"feature":["edge"]}},"opera":{"browsers":["opera"],"appStores":["operaAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["opera://bookmarks"],"downloads":["opera://downloads"],"extensions":["opera://extensions"],"history":["opera://history"],"newtab":["opera://newtab","chrome://startpageshared"],"settings":["opera://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["opera"]}},"firefox":{"browsers":["firefox"],"appStores":["mozillaAddOnStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":["about:addons"],"history":[],"newtab":["about:newtab"],"settings":["about:preferences"]},"schemes":{"devTools":[],"extension":["moz-extension"],"feature":["about"]}},"safari":{"browsers":["safari"],"appStores":["appleMacAppStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"tor":{"browsers":["tor"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"vivaldi":{"browsers":["vivaldi"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"yandex":{"browsers":["yandex"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"arc":{"browsers":["arc"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}}}')},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f}));var r,o=n(57),i=n(17),a=n(6),c=Object(o.b)({name:"set-edit",initialState:{},reducers:{setEditingStarted:function(e,t){var n=t.payload;e.context=n},setEditingEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),u=c.actions.setEditingEnded,l=c.reducer;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isNew,n=e.onEditingEnded;return function(e,o){var u=o(),l=u.content,s=u.settings;if(!u.setEdit.context&&1===l.sets.selectedSetIds.length){var f=l.sets.selectedSetIds[0];if(!Object(a.s)(l.sets,f)&&!Object(a.t)(l.sets,f)){if(Object(a.r)(f))return h({type:"local-client",title:Object(i.l)("clientTitle")({settings:s})});var d=Object(a.g)(l.sets,f);if(d)return h({type:"collection",title:d.title,color:d.color,isNew:t});var p=Object(a.n)(l.sets,f);if(p)return h({type:"remote-client",title:p.title})}}function h(t){var o=t.type,i=t.title,a=t.color,u=t.isNew;r=n,e(c.actions.setEditingStarted({id:f,type:o,title:i,color:a,isNew:u}))}}}var f={context:function(e){return e.setEdit.context}}},function(e,t,n){"use strict";var r=n(180),o=n(181),i=n(158),a=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}();n.d(t,"a",(function(){return c}));var c=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,c=n._parentOrParents,l=n._ctorUnsubscribe,s=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(null!==c)for(var d=0;d<c.length;++d){c[d].remove(this)}if(Object(i.a)(s)){l&&(this._unsubscribe=void 0);try{s.call(this)}catch(v){t=v instanceof a?u(v.errors):[v]}}if(Object(r.a)(f)){d=-1;for(var p=f.length;++d<p;){var h=f[d];if(Object(o.a)(h))try{h.unsubscribe()}catch(v){t=t||[],v instanceof a?t=t.concat(u(v.errors)):t.push(v)}}}if(t)throw new a(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){return e.reduce((function(e,t){return e.concat(t instanceof a?t.errors:t)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p}));var r,o=n(3),i=n(1),a=n(22),c=n(8),u=n(18),l=null===(r=globalThis.chrome)||void 0===r?void 0:r.runtime,s="extension-event",f=[];function d(e){var t=e.type,n=e.target,r=e.data,o=e.scope,d={type:t,timestamp:Object(c.m)(),target:n,data:r,source:"remote"};if(!o||"local"===o){var p,h=Object(a.a)(f);try{for(h.s();!(p=h.n()).done;){(0,p.value)({type:s,data:Object(i.a)(Object(i.a)({},d),{},{source:"local"})})}}catch(m){h.e(m)}finally{h.f()}}if((!o||"remote"===o)&&l)try{l.sendMessage({type:s,data:d}).catch((function(e){var r,o;if(!(null===(r=e.message)||void 0===r||null===(o=r.includes)||void 0===o?void 0:o.call(r,"end does not exist"))){var i="string"===typeof n?":".concat(n):"";Object(u.e)(e,{prefix:"Error emitting remote event ".concat(t).concat(i)})}}))}catch(b){var v="string"===typeof n?":".concat(n):"";Object(u.e)(b,{prefix:"Error emitting remote event ".concat(t).concat(v)})}}function p(e,t){var n=function(n){if((null===n||void 0===n?void 0:n.type)===s&&n.data){var r=n.data;return r.type===e?t(r):void 0}};return f=[].concat(Object(o.a)(f),[n]),l&&l.onMessage.addListener(n),function(){f=f.filter((function(e){return e!==n})),l&&l.onMessage.removeListener(n)}}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(121),o=n(104);var i=n(141);function a(e,t,n){return a=Object(i.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(o.a)(i,n.prototype),i},a.apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,Object(r.a)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(i,e)},c(e)}n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(202);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(0),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(157);var o=n(200),i=n(165);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e&&(t=e,e=void 0),new Promise((function(n){setTimeout((function(){var t;n(null===(t=e)||void 0===t?void 0:t())}),t)}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(15),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,c=void 0===n?i.standard:n,u=t.easing,l=void 0===u?o.easeInOut:u,s=t.delay,f=void 0===s?0:s;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof c?c:a(c)," ").concat(l," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(5),o=n(41),i=n(12);function a(e){var t=window.location.href,n=u(t),a=function(e,t){if(!t.length)return Object(o.q)({url:e,key:"s",value:"n"});if(1===t.length&&t[0]===r.j)return Object(o.a)({url:e,key:"s"});return Object(o.q)({url:e,key:"s",value:t.map((function(e){return e===r.j?"l":e})).join(",")}).replace(/%2C/gi,",")}(t,e),c=u(a);Object(i.f)(n,c)||Object(o.o)(a)}function c(){return u(window.location.href)}function u(e){var t,n=(null===(t=new URL(e).searchParams.get("s"))||void 0===t?void 0:t.split(","))||[];return n.length?n.filter((function(e){return"n"!==e})).map((function(e){return"l"===e?r.j:e})):[r.j]}},function(e,t,n){"use strict";function r(e){setTimeout((function(){throw e}),0)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(2),o=n(87);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,a,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,a)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function a(){return c.apply(this,arguments)}function c(){return(c=Object(r.a)(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",null===(t=chrome)||void 0===t||null===(n=t.tabs)||void 0===n||null===(r=n.query)||void 0===r?void 0:r.call(n,{url:"".concat(Object(o.a)().ext.canonicalMainUrl.toLowerCase(),"*")}));case 4:e.prev=4,e.t0=e.catch(0),console.error("Error getting nxs tabs:",e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function u(){a().then((function(e){null===e||void 0===e||e.forEach((function(e){try{e.id&&chrome.tabs.reload(e.id)}catch(t){console.error("Error reloading nxs tab:",t)}}))}))}},function(e,t,n){"use strict";var r=n(0),o=r.createContext({});t.a=o},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s}));var r=n(2),o=n(114);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,a,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,a)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var a=function(e){return chrome.alarms.get(e)},c=function(){var e=Object(r.a)(i().mark((function e(t,n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.alarms.create(t,n);case 2:return e.t0=o.a,e.t1=t,e.next=6,a(t);case 6:e.t2=e.sent,e.t3={type:"onAlarmCreated",target:e.t1,data:e.t2},(0,e.t0)(e.t3);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=function(){var e=Object(r.a)(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.alarms.clear(t);case 2:return(n=e.sent)&&Object(o.a)({type:"onAlarmCleared",target:t,data:void 0}),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(e,t){var n=function(){var n=Object(r.a)(i().mark((function n(r){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.name!==e){n.next=6;break}return n.t0=t,n.next=4,a(e);case 4:return n.t1=n.sent,n.abrupt("return",(0,n.t0)(n.t1));case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return chrome.alarms.onAlarm.addListener(n),function(){chrome.alarms.onAlarm.removeListener(n)}},s=function(e,t){var n=Object(o.b)("onAlarmCreated",(function(n){var r=n.target,o=n.data;r===e&&t(o)})),r=Object(o.b)("onAlarmCleared",(function(n){n.target===e&&t(void 0)})),i=l(e,t);return function(){n(),r(),i()}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return"chrome"}function o(){var e,t,n=null===(e=navigator.userAgentData)||void 0===e||null===(t=e.brands)||void 0===t?void 0:t.find((function(e){return"chromium"===e.brand.toLowerCase()}));return parseInt((null===n||void 0===n?void 0:n.version)||"0",10)||0}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(220)},function(e,t,n){"use strict";var r=n(182),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(1),o=n(2),i=n(58),a=n(59),c=n(64),u=n(65),l=n(105),s=n(37),f=n(8);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function p(e){return h.apply(this,arguments)}function h(){return h=Object(o.a)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.settings,e.next=3,n.get("clientId");case 3:if(null===(r=e.sent)||void 0===r?void 0:r.value){e.next=9;break}return e.next=7,n.put({id:"clientId",value:Object(s.c)()});case 7:return e.next=9,n.put({id:"clientCreated",value:Object(f.m)()});case 9:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var v=(new(function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"nxsSettings",{chromeTransactionDurability:"strict"})).settings=void 0,e.version(1).stores({settings:"id"}),e.on("ready",p),e.settings=e.table("settings"),e}return Object(i.a)(n)}(l.a))).settings,m={fetchAllSettings:function(){return v.toArray()},fetchClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?void 0:n.value);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?n.value:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(Object(r.a)(Object(r.a)({},t),{},{global:!0}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(5),a=n(77),c=[{key:"debug",name:"Debug",description:"Show inline debug information in the UI.",defaultValue:!1,requiresReload:!0},{key:"debugLocalBackup",name:"Debug local backup",description:o.a.createElement("span",null,"Log local backup operations to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1},{key:"debugSessionEvents",name:"Debug session changes",description:o.a.createElement("span",null,"Log session changes to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1,requiresReload:!0},{key:"removeTitleSuffixes",name:"Omit title suffixes",description:"Omit suffixes from titles of popular web sites.",defaultValue:!1,requiresReload:!0},{key:"omitSbTitleSuffix",name:"Omit Session Buddy suffix",description:'Omit the "Session Buddy" suffix in the application tab.',defaultValue:!1,requiresReload:!0},{key:"useThemeSensitiveFavicons",name:"Use theme sensitive favicons",description:"Use favicons that adapt to the current theme.",defaultValue:!0,requiresReload:!0},{key:"ingestMaxSize",name:"Maximum text size",description:'Maximum size (in bytes) allowed by "Add from text" and "Open from text". This limit also applies to non-JSON files selected for Import.',defaultValue:i.m,min:0,requiresReload:!0},{key:"enableAutoBackup",name:"Enable auto backup",description:"Enable automatic local backups of collections and events.",defaultValue:!0},{key:"backupWhenIdle",name:"Back up continuously",description:"Back up when data changes instead of just once a day. Requires auto backup to be enabled.",defaultValue:!1},{key:"backupCollectionsMax",name:"Maximum backup collections",description:"Maximum number of collections to include in local backups.",defaultValue:i.b,min:0},{key:"backupEventsMax",name:"Maximum backup events",description:"Maximum number of events to include in local backups.",defaultValue:i.b,min:0},{key:"backupChunkSize",name:"Backup chunk size",description:"Number of collections or events per local backup storage item.",defaultValue:i.a,min:1,max:100},{key:"copyCollectionsMax",name:"Maximum copy collections",description:"Maximum number of collections to allow for copying.",defaultValue:i.e,min:2,requiresReload:!0},{key:"warnOnOpenTabCount",name:"Warn on open tab count",description:"Warn before opening more than this number of tabs at once.",defaultValue:i.n,min:0,requiresReload:!0},{key:"optimizedOpenThreshold",name:"Optimized tab open threshold",description:"Suspend and delay tabs when opening more than this number of tabs if optimizations are enabled.",defaultValue:i.l,min:1,requiresReload:!0},{key:"optimizedOpenDelay",name:"Optimized tab open delay",description:"Delay (in milliseconds) between opening each tab when optimizations are in effect.",defaultValue:i.k,min:0,max:1e4},{key:"collectionFetchCountInitial",name:"Initial collection count",description:"Number of collection tiles to display on app start.",defaultValue:i.c,min:i.c},{key:"collectionFetchCountLazy",name:"Subsequent collection count",description:"Number of additional collection tiles to load while scrolling.",defaultValue:i.d,min:i.d},{key:"collectionFetchAll",name:"Load all collections",description:"Display all collection tiles on app load. May be slow.",defaultValue:!1},{key:"historyFetchCountInitial",name:"Initial history count",description:"Number of history tiles to display on app start.",defaultValue:i.f,min:i.f},{key:"historyFetchCountLazy",name:"Subsequent history count",description:"Number of additional history tiles to load while scrolling.",defaultValue:i.g,min:i.g},{key:"historyFetchAll",name:"Load all history",description:"Display all history tiles on app load. May be slow.",defaultValue:!1},{key:"highIdbUsageThreshold",name:"High IndexedDB usage threshold",description:"Size (in bytes) above which IndexedDB usage is considered high.",defaultValue:300*a.a,min:0},{key:"highExtensionStorageUsageThreshold",name:"High extension storage usage threshold",description:"Size (in bytes) above which extension storage usage is considered high.",defaultValue:100*a.a,min:0}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(150);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Object(r.a)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(84),o=n(126),i={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(138),o=n(137),i=n(91),a=n(139);function c(e){return Object(r.a)(e)||Object(o.a)(e)||Object(i.a)(e)||Object(a.a)()}},function(e,t,n){"use strict";var r=n(68);function o(e){var t=function(e,t){if("object"!==Object(r.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(r.a)(t)?t:String(t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){var n,r;return t&&t!==e.title?{title:t,titleOriginal:null!==(n=null!==(r=e.titleOriginal)&&void 0!==r?r:e.title)&&void 0!==n?n:""}:{}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(74);function o(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],c=i[1];return[o?t:a,r.useCallback((function(e){o||c(e)}),[])]}},function(e,t,n){"use strict";var r=n(218),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),m=0;m<a.length;++m){var b=a[m];if(!i[b]&&(!r||!r[b])&&(!v||!v[b])&&(!c||!c[b])){var y=d(n,b);try{l(t,b,y)}catch(g){}}}}return t}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return f}));var r,o=n(57),i=n(6),a=n(5),c=Object(o.b)({name:"item-edit",initialState:{},reducers:{itemEditingStarted:function(e,t){var n=t.payload;e.context=n},itemEditingEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),u=c.actions.itemEditingEnded,l=c.reducer;function s(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onEditingEnded;return function(t,n){var o=n(),u=o.content;if(!o.itemEdit.context&&1===u.sets.selectedSetIds.length){var l=u.sets.selectedSetIds[0],s=Object(i.g)(u.sets,l);if(s&&!Object(i.s)(u.sets,l)&&!Object(i.t)(u.sets,l)){var f=u.items,d=f.selectedUnitIds,p=f.selectedGroupIds;if(1!==d.length||p.length){if(1===p.length&&!d.length){var h,v=p[0];(null===(h=s.folders)||void 0===h?void 0:h.find((function(e){return e.id===v})))&&(r=e,t(c.actions.itemEditingStarted({type:"folder",id:v})))}}else{var m,b=d[0],y=Object(a.p)(null!==(m=s.folders)&&void 0!==m?m:[],(function(e){return e.id===b}));y.unit&&(r=e,t(c.actions.itemEditingStarted({type:"link",id:b})))}}}}}var f={context:function(e){return e.itemEdit.context}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return"function"===typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(86);var o=n(134),i=n(148);var a=n(171);function c(e){return e}function u(e){return 0===e.length?c:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var l=n(84);n.d(t,"a",(function(){return s}));var s=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var a=this.operator,c=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(i.a)}(e,t,n);if(a?c.add(a.call(c,this.source)):c.add(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),l.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),!function(e){for(;e;){var t=e,n=t.closed,o=t.destination,i=t.isStopped;if(n||i)return!1;e=o&&o instanceof r.a?o:null}return!0}(e)?console.warn(t):e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=f(t))((function(t,r){var o;o=n.subscribe((function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:u(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function f(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(14),o=n(0),i="(prefers-color-scheme: dark)";function a(){var e,t;return!!(null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,i).matches)}var c,u=function(e){var t;null===(t=c)||void 0===t||t(e.matches)};function l(){var e,t;c&&(null===(e=(t=window).matchMedia)||void 0===e||e.call(t,i).removeEventListener("change",u),c=void 0)}var s=function(){var e=Object(o.useState)(a),t=Object(r.a)(e,2),n=t[0],s=t[1];return Object(o.useEffect)((function(){return function(e){var t,n;c||null===(t=(n=window).matchMedia)||void 0===t||t.call(n,i).addEventListener("change",u),c=e}(s),l}),[]),n}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return s}));var r,o=n(57),i=n(6),a=Object(o.b)({name:"unit-add-session",initialState:{},reducers:{unitAddSessionStarted:function(e,t){var n=t.payload;e.context=n},unitAddSessionEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),c=a.actions.unitAddSessionEnded,u=a.reducer;function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onSessionEnded;return function(t,n){var o=n().content;if(1===o.sets.selectedSetIds.length&&!o.sets.selectedClientHistoryItemId){var c=o.sets.selectedSetIds[0];if(!Object(i.s)(o.sets,c)&&!Object(i.t)(o.sets,c)){var u=Object(i.p)(o.sets,c);u&&(r=e,t(a.actions.unitAddSessionStarted({setId:c,setType:u})))}}}}var s={context:function(e){return e.unitAddSession.context}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(2),o=n(9);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var m={};l(m,a,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,a)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var a=function(e,t,n){var r=new Blob([e],{type:n||"text/plain"}),o=document.createElement("a"),i=URL.createObjectURL(r);o.href=i,o.download=t,o.click(),o.remove(),URL.revokeObjectURL(i)},c=function(e,t){return a(JSON.stringify(e,null,2),t,"application/json")},u=function(e,t){var n="";return new WritableStream({write:function(e){return Object(r.a)(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n+=e;case 1:case"end":return t.stop()}}),t)})))()},close:function(){a(n,e,t)},abort:function(e){Object(o.b)("download aborted",e)}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(157);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){var e,t,n,r,o=null===(e=performance)||void 0===e?void 0:e.memory;if(o){var i=null!==(t=o.usedJSHeapSize)&&void 0!==t?t:0,a=null!==(n=o.totalJSHeapSize)&&void 0!==n?n:0,c=null!==(r=o.jsHeapSizeLimit)&&void 0!==r?r:0,u=c?parseFloat((i/c).toFixed(4)):0;return{used:i,total:a,limit:c,remaining:c-i,usage:u,high:!!u&&u>.8}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},function(e,t,n){(function(t){var n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,f=l||s||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var l=a.test(e);return l||c.test(e)?u(e.slice(2),l?2:8):i.test(e)?n:+e}e.exports=function(e,t,n){var r,o,i,a,c,u,l=0,s=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=i}function w(){var e=v();if(g(e))return O(e);c=setTimeout(w,function(e){var n=t-(e-u);return f?h(n,i-(e-l)):n}(e))}function O(e){return c=void 0,d&&r?y(e):(r=o=void 0,a)}function x(){var e=v(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(w,t),s?y(e):a}(u);if(f)return c=setTimeout(w,t),y(u)}return void 0===c&&(c=setTimeout(w,t)),a}return t=b(t)||0,m(n)&&(s=!!n.leading,i=(f="maxWait"in n)?p(b(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),x.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=o=c=void 0},x.flush=function(){return void 0===c?a:O(v())},x}}).call(this,n(136))},function(e){e.exports=JSON.parse('{"googleChromeWebStore":{"url":"https://chrome.google.com/webstore/","authoritativeBrowserConfig":"chrome"},"microsoftAddOnStore":{"url":"","authoritativeBrowserConfig":"edge"},"mozillaAddOnStore":{"url":"","authoritativeBrowserConfig":"firefox"},"operaAddOnStore":{"url":"https://addons.opera.com/","authoritativeBrowserConfig":"opera"},"appleMacAppStore":{"url":"","authoritativeBrowserConfig":"safari"}}')},function(e,t,n){e.exports=n(194)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))o.call(n,l)&&(c[l]=n[l]);if(r){a=r(n);for(var s=0;s<a.length;s++)i.call(n,a[s])&&(c[a[s]]=n[a[s]])}}return c}},function(e,t,n){(function(t){var n="__lodash_hash_undefined__",r="[object Function]",o="[object GeneratorFunction]",i=/^\[object .+?Constructor\]$/,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")();var l=Array.prototype,s=Function.prototype,f=Object.prototype,d=u["__core-js_shared__"],p=function(){var e=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),h=s.toString,v=f.hasOwnProperty,m=f.toString,b=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=l.splice,g=L(u,"Map"),w=L(Object,"create");function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function E(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!==n&&r!==r)return o;return-1}function k(e){if(!T(e)||(t=e,p&&p in t))return!1;var t,n=function(e){var t=T(e)?m.call(e):"";return t==r||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?b:i;return n.test(function(e){if(null!=e){try{return h.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function S(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function L(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return k(n)?n:void 0}function C(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(C.Cache||j),n}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}O.prototype.clear=function(){this.__data__=w?w(null):{}},O.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},O.prototype.get=function(e){var t=this.__data__;if(w){var r=t[e];return r===n?void 0:r}return v.call(t,e)?t[e]:void 0},O.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:v.call(t,e)},O.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?n:t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=E(t,e);return!(n<0)&&(n==t.length-1?t.pop():y.call(t,n,1),!0)},x.prototype.get=function(e){var t=this.__data__,n=E(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return E(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,r=E(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new O,map:new(g||x),string:new O}},j.prototype.delete=function(e){return S(this,e).delete(e)},j.prototype.get=function(e){return S(this,e).get(e)},j.prototype.has=function(e){return S(this,e).has(e)},j.prototype.set=function(e,t){return S(this,e).set(e,t),this},C.Cache=j,e.exports=C}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(48),i=!0,a=!1,c=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){a=!0,window.clearTimeout(c),c=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({width:18,height:18,viewBox:"0 0 28 28",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{clipRule:"evenodd",d:"M5.5 2C4.5 2 4 2.948 4 3.5V24.5C4 25.5 5 26 5.5 26H22.5C23.0523 26 24 25.5 24 24.5V10C24 9.5 24 9 23.5 8.5L17.5 2.5C17 2 16.5 2 16.1716 2H5.5ZM6 5C6 4.448 6.448 4 7 4H15V9.5C15 10.0523 15.448 10.5 16 10.5H22V23C22 23.552 21.552 24 21 24H7C6.448 24 6 23.552 6 23V5ZM20.6716 8.5L17 4.82843V8.5H20.6716Z",fill:"currentColor",fillRule:"evenodd"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({height:1024,width:1024,viewBox:"0 0 1024 1024",fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{d:"M85.333 682.667 85.333 341.333 170.667 341.333 298.667 469.333 426.667 341.333 512 341.333 512 682.667 426.667 682.667 426.667 462.08 298.667 590.08 170.667 462.08 170.667 682.667 85.333 682.667M682.667 341.333 810.667 341.333 810.667 512 917.333 512 746.667 704 576 512 682.667 512 682.667 341.333Z"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){return Array.isArray||function(e){return e&&"number"===typeof e.length}}()},function(e,t,n){"use strict";function r(e){return null!==e&&"object"===typeof e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(54),o=n(15),i=n(255),a=n(4),c=["xs","sm","md","lg","xl"];function u(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(204),s={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(60),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function O(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.e)(e.main,o):"dark"===t&&(e.dark=Object(y.b)(e.main,i)))}function x(e){return Math.round(1e5*e)/1e5}function j(e){return x(e)}var E={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function S(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,c=void 0===r?k:r,u=n.fontSize,l=void 0===u?14:u,s=n.fontWeightLight,f=void 0===s?300:s,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,b=void 0===m?700:m,y=n.htmlFontSize,g=void 0===y?16:y,w=n.allVariants,O=n.pxToRem,S=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var L=l/14,C=O||function(e){return"".concat(e/g*L,"rem")},T=function(e,t,n,r,o){return Object(a.a)({fontFamily:c,fontWeight:e,fontSize:C(t),lineHeight:n},c===k?{letterSpacing:"".concat(x(r/t),"em")}:{},o,w)},I={h1:T(f,96,1.167,-1.5),h2:T(f,60,1.2,-.5),h3:T(p,48,1.167,0),h4:T(p,34,1.235,.25),h5:T(p,24,1.334,0),h6:T(v,20,1.6,.15),subtitle1:T(p,16,1.75,.15),subtitle2:T(v,14,1.57,.1),body1:T(p,16,1.5,.15),body2:T(p,14,1.43,.15),button:T(v,14,1.75,.4,E),caption:T(p,12,1.66,.4),overline:T(p,12,2.66,1,E)};return Object(i.a)(Object(a.a)({htmlFontSize:g,pxToRem:C,round:j,fontFamily:c,fontSize:l,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:b},I),S,{clone:!1})}function L(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var C=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},I=n(101),_=(n(119),n(68));var N=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},A={xs:0,sm:600,md:960,lg:1280,xl:1920},P={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(A[e],"px)")}};var R={m:"margin",p:"padding"},M={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},F={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!F[e])return[e];e=F[e]}var t=e.split(""),n=Object(I.a)(t,2),r=n[0],o=n[1],i=R[r],a=M[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),B=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function U(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function z(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function G(e){var t=U(e.theme);return Object.keys(e).map((function(n){if(-1===B.indexOf(n))return null;var r=z(D(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||P;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(_.a)(t)){var o=e.theme.breakpoints||P;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(N,{})}G.propTypes={},G.filterProps=B;var W=n(123),H=n(166);function K(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,x=void 0===r?{}:r,j=e.palette,E=void 0===j?{}:j,k=e.spacing,L=e.typography,I=void 0===L?{}:L,_=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),N=function(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,c=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,x=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,j=e.warning,E=void 0===j?{light:v[300],main:v[500],dark:v[700]}:j,k=e.info,S=void 0===k?{light:m[300],main:m[500],dark:m[700]}:k,L=e.success,C=void 0===L?{light:b[300],main:b[500],dark:b[700]}:L,T=e.type,I=void 0===T?"light":T,_=e.contrastThreshold,N=void 0===_?3:_,A=e.tonalOffset,P=void 0===A?.2:A,R=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function M(e){return Object(y.d)(e,w.text.primary)>=N?w.text.primary:g.text.primary}var F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return O(e,"light",n,P),O(e,"dark",r,P),e.contrastText||(e.contrastText=M(e.main)),e},D={dark:w,light:g};return Object(i.a)(Object(a.a)({common:s,type:I,primary:F(n),secondary:F(c,"A400","A200","A700"),error:F(x),warning:F(E),info:F(S),success:F(C),grey:f,contrastThreshold:N,getContrastText:M,augmentColor:F,tonalOffset:P},D[I]),R)}(E),A=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,s=Object(o.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function d(e,t){var r=c.indexOf(t);return r===c.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[c[r+1]]?n[c[r+1]]:t)-l/100).concat(i,")")}return Object(a.a)({keys:c,values:n,up:f,down:function(e){var t=c.indexOf(e)+1,r=n[c[t]];return t===c.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(i,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},s)}(n),P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=U({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(k),R=Object(i.a)({breakpoints:A,direction:"ltr",mixins:u(A,P,x),overrides:{},palette:N,props:{},shadows:C,typography:S(N,I),spacing:P,shape:T,transitions:W.a,zIndex:H.a},_),M=arguments.length,F=new Array(M>1?M-1:0),D=1;D<M;D++)F[D-1]=arguments[D];return R=F.reduce((function(e,t){return Object(i.a)(e,t)}),R)}t.a=K},function(e,t,n){"use strict";var r=n(149),o=n(14),i=n(22),a=n(1),c=n(3),u=n(2),l=n(73),s=n(159),f=n(86),d=n(113),p=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),h=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return l.a(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(d.a),v=n(134),m=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return l.a(t,e),t}(f.a),b=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return l.a(t,e),t.prototype[v.a]=function(){return new m(this)},t.prototype.lift=function(e){var t=new y(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new p;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new p;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new p;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new p;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new p;return this.hasError?(e.error(this.thrownError),d.a.EMPTY):this.isStopped?(e.complete(),d.a.EMPTY):(this.observers.push(e),new h(this,e))},t.prototype.asObservable=function(){var e=new s.a;return e.source=this,e},t.create=function(e,t){return new y(e,t)},t}(s.a),y=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return l.a(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):d.a.EMPTY},t}(b),g=n(67),w=n(9),O=["top","left","width","height"];function x(){x=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return chrome.windows.get(e,{populate:!t.omitTabs})}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return chrome.windows.getCurrent({populate:!e.omitTabs})}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return chrome.windows.getAll({populate:!e.omitTabs,windowTypes:["normal","popup","app"]})}function S(e,t){return L.apply(this,arguments)}function L(){return(L=Object(u.a)(x().mark((function e(t,n){var r,o,i,u;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Object(c.a)(n),o=[];case 2:if(!r.length){e.next=13;break}return i=r[0].url,e.next=6,C(Object(a.a)(Object(a.a)({},t),{},{url:i||void 0}));case 6:if(!(u=e.sent)){e.next=9;break}return e.abrupt("return",{win:u,remainingUrlInfos:r,failedUrls:o});case 9:o.push(i),r.shift(),e.next=2;break;case 13:return e.abrupt("return",{remainingUrlInfos:r,failedUrls:o});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return T.apply(this,arguments)}function T(){return(T=Object(u.a)(x().mark((function e(t){var n,r;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,chrome.windows.create(t);case 3:n=e.sent,e.next=14;break;case 6:return e.prev=6,e.t0=e.catch(0),Object(w.d)("Window creation failed: ".concat((null===e.t0||void 0===e.t0?void 0:e.t0.message)||e.t0||"unknown error")),Object(w.d)("\ud83e\udd16 Using AI to retry window creation without bounds..."),t.top,t.left,t.width,t.height,r=Object(g.a)(t,O),e.next=13,chrome.windows.create(r);case 13:n=e.sent;case 14:if(n&&null!=n.id){e.next=16;break}return e.abrupt("return");case 16:return n.tabs||(n.tabs=[]),e.abrupt("return",n);case 18:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function I(e){return chrome.windows.update(e,{focused:!0})}function _(e){return chrome.windows.remove(e)}function N(e){return"popup"===e?e:"normal"}function A(e){return!e||"normal"===e}function P(e){var t={};return e.state&&["maximized","fullscreen"].includes(e.state)?t.state=e.state:(null!=e.top&&(t.top=e.top),null!=e.left&&(t.left=e.left),null!=e.width&&(t.width=e.width),null!=e.height&&(t.height=e.height)),t}var R=n(18),M=n(41),F=["url"];function D(){D=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function B(e,t){return U.apply(this,arguments)}function U(){return(U=Object(u.a)(D().mark((function e(t,n){var r;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,chrome.tabs.update(t,{url:n});case 3:return r=e.sent,e.abrupt("return",r);case 7:e.prev=7,e.t0=e.catch(0),Object(R.e)(e.t0,{prefix:"navigate() failed"});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function z(e){return chrome.tabs.remove(e)}function G(e){return W.apply(this,arguments)}function W(){return(W=Object(u.a)(D().mark((function e(t){var n;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!Object(M.d)(t.url)){e.next=7;break}return e.next=4,H(Object(a.a)(Object(a.a)({},t),{},{url:t.url}));case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,chrome.tabs.create(t);case 9:e.t0=e.sent;case 10:return n=e.t0,e.abrupt("return",n);case 14:e.prev=14,e.t1=e.catch(0),Object(R.e)(e.t1,{prefix:"createTab() failed ".concat(t.url?"for ".concat(t.url):"(no url)")});case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function H(e){return K.apply(this,arguments)}function K(){return(K=Object(u.a)(D().mark((function e(t){var n,r,o;return D().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,r=Object(g.a)(t,F),e.prev=1,e.next=4,chrome.tabs.create(Object(a.a)({},r));case 4:if(o=e.sent){e.next=8;break}return Object(R.d)("createAndUpdateTab() failed: tab create returned undefined ".concat(n?"for ".concat(n):"(no url)")),e.abrupt("return");case 8:if(o.id){e.next=11;break}return Object(R.d)("createAndUpdateTab() failed: tab has no id ".concat(n?"(url: ".concat(n,")"):"(no url)")),e.abrupt("return");case 11:e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(1),Object(R.e)(e.t0,{prefix:"createAndUpdateTab() failed: create failed ".concat(n?"for ".concat(n):"(no url)")}),e.abrupt("return");case 17:return e.prev=17,e.next=20,chrome.tabs.update(o.id,{url:n});case 20:return e.abrupt("return",o);case 23:return e.prev=23,e.t1=e.catch(17),e.prev=25,e.next=28,chrome.tabs.remove(o.id);case 28:e.next=32;break;case 30:e.prev=30,e.t2=e.catch(25);case 32:Object(R.e)(e.t1,{prefix:"createAndUpdateTab() failed: update failed ".concat(n?"for ".concat(n):"(no url)")});case 33:case"end":return e.stop()}}),e,null,[[1,13],[17,23],[25,30]])})))).apply(this,arguments)}var V=n(24),q=n(12),$=n(122),Y=n(13),X=n(46),Q=n(81),J=n(61),Z=n(5),ee=n(39);function te(){te=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}n.d(t,"b",(function(){return se})),n.d(t,"a",(function(){return fe}));var ne=["id","width","height","top","left","state","type","incognito","tabs"],re=["id","status","favIconUrl","title","url","pendingUrl","active","pinned","audible","mutedInfo","groupId"],oe=["status","favIconUrl","title","url","pinned","audible","mutedInfo","groupId"],ie=new Set,ae=[],ce=[],ue=new Set,le={newtabUrl:"chrome://newtab"};function se(e){return{newtabUrl:e.browser.canonicalNewtabUrl,isFeatureUrl:e.browser.isFeatureUrl}}function fe(e){var t=Object(V.a)(le,e),n={},l=function(){var e=new b;return chrome.windows.onCreated.addListener((function(t){var n=Object(a.a)(Object(a.a)({},t),{},{tabs:[]});e.next({type:"WIN-OPENED",win:de(n)})})),chrome.windows.onRemoved.addListener((function(t){e.next({type:"WIN-CLOSED",winId:t})})),chrome.windows.onBoundsChanged.addListener((function(t){e.next({type:"WIN-UPDATED-BOUNDS",winId:t.id})})),chrome.tabs.onCreated.addListener((function(t){e.next({type:"TAB-OPENED",tab:pe(t)})})),chrome.tabs.onRemoved.addListener((function(t,n){var r=n.windowId,o=n.isWindowClosing;e.next({type:"TAB-CLOSED",tabId:t,winId:r,isWinClosing:o})})),chrome.tabs.onUpdated.addListener((function(t,n){"complete"===n.status?(ue.add(t),ie.has(t)&&(ie.delete(t),chrome.tabs.get(t,(function(e){e.active||null==e.id||chrome.tabs.discard(e.id)})))):"loading"===n.status&&ue.delete(t),Object.entries(n).filter((function(e){var t=Object(o.a)(e,1)[0];return oe.includes(t)})).forEach((function(n){var r=Object(o.a)(n,2),i=r[0],a=r[1];e.next({type:"TAB-UPDATED-".concat(Object(Y.j)(i)),tabId:t,value:a})}))})),chrome.tabs.onActivated.addListener((function(t){var n=t.tabId,r=t.windowId;e.next({type:"TAB-ACTIVATED",tabId:n,winId:r})})),chrome.tabs.onMoved.addListener((function(t,n){var r=n.windowId,o=n.fromIndex,i=n.toIndex;e.next({type:"TAB-MOVED",tabId:t,fromWinId:r,fromIndex:o,toWinId:r,toIndex:i})})),chrome.tabs.onDetached.addListener((function(e,t){var r=t.oldWindowId,o=t.oldPosition;n[e]={oldWindowId:r,oldPosition:o}})),chrome.tabs.onAttached.addListener((function(t,r){var o=r.newWindowId,i=r.newPosition;var a=n[t];a&&(e.next({type:"TAB-MOVED",tabId:t,fromWinId:a.oldWindowId,fromIndex:a.oldPosition,toWinId:o,toIndex:i}),delete n[t])})),chrome.tabs.onReplaced.addListener((function(t,n){e.next({type:"TAB-REPLACED",addedTabId:t,removedTabId:n})})),e}(),s={getWindows:function(e,t){return Object(u.a)(te().mark((function n(){var r,o,i,a,c,u;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ve();case 2:return r=n.sent.map((function(e){return de(e)})),n.next=5,chrome.tabs.getCurrent();case 5:if(n.t0=n.sent,n.t0){n.next=8;break}n.t0={};case 8:if(o=n.t0,i=o.id,null!=(a=o.windowId)){n.next=13;break}return n.abrupt("return",r);case 13:if(!(c=r.find((function(e){return e.id===a})))){n.next=20;break}if(t&&(c.current=!0),(u=null!=i&&c.tabs.find((function(e){return e.id===i})))&&t&&(u.current=!0),!e){n.next=20;break}return n.abrupt("return",Object(q.d)(r,(function(e){return e===c})));case 20:return n.abrupt("return",r);case 21:case"end":return n.stop()}}),n)})))()},isNewTabUrl:function(e){return!!e&&t.isFeatureUrl(e,"newtab")},focusWindow:function(e){return Object(u.a)(te().mark((function t(){return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I(e);case 2:case"end":return t.stop()}}),t)})))()},closeWindows:function(e){return Object(u.a)(te().mark((function t(){var n;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.filter((function(e){return!be(e)}))).length){t.next=3;break}return t.abrupt("return");case 3:return ae=[].concat(Object(c.a)(ae),Object(c.a)(n)),l.next({type:"WINS-CLOSING",winIds:n}),t.next=7,Promise.allSettled(n.map((function(e){return _(e)})));case 7:ae=ae.filter((function(e){return!n.includes(e)}));case 8:case"end":return t.stop()}}),t)})))()},openTabs:function(e,t){return Object(u.a)(te().mark((function n(){var r,o,i,c,u,l,f,d,p,h,v,m,b,y,g,w;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.target,i=(o=void 0===r?{singleWindow:!1}:r).singleWindow,c=o.prependToWindow,u=o.appendToWindow,l=o.afterTab,f=t.itemSelections,d=t.unfocused,p=t.optimized,h=f?Object(Z.C)(e,f):e,!i){n.next=6;break}return v=h.some((function(e){return e.incognito})),m=1===h.length?{top:h[0].top,left:h[0].left,width:h[0].width,height:h[0].height,state:h[0].state}:{},n.abrupt("return",s.openTabsInNewWindow(Object(Z.r)(h),Object(a.a)(Object(a.a)({incognito:v},m),{},{unfocused:d,optimized:p})));case 6:if(!(b=Object(X.b)(c))&&!Object(X.b)(u)){n.next=12;break}return y=b?c:u,g=b?0:void 0,w=Object(Z.r)(h).map((function(e){return Object(a.a)(Object(a.a)({},e),{},{active:!0})})),n.abrupt("return",s.openTabsInExistingWindow(w,{windowId:y,index:g,focused:!d,optimized:p}));case 12:if(!Object(X.b)(l)){n.next=14;break}return n.abrupt("return",s.openTabsAfterTab(Object(Z.r)(h),{tabId:l,focused:!d,optimized:p}));case 14:return n.abrupt("return",s.openWindows(h,{unfocused:d,optimized:p}));case 15:case"end":return n.stop()}}),n)})))()},openWindows:function(e){var t=arguments;return Object(u.a)(te().mark((function n(){var r,o,u,l,f;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=t.length>1&&void 0!==t[1]?t[1]:{},o={wins:[],unopenableUrls:[]},u=Object(i.a)(e),n.prev=3,f=te().mark((function e(){var t,n,i,u,f,d,p,h;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=l.value).deleted){e.next=19;break}if(!(n=Object(Z.u)(t).filter((function(e){return!e.deleted}))).length){e.next=19;break}if(!r.optimized||!o.wins.length){e.next=11;break}return e.t0=$.a,e.next=8,Object(ee.a)("optimizedOpenDelay");case 8:return e.t1=e.sent,e.next=11,(0,e.t0)(e.t1);case 11:return e.next=13,s.openTabsInNewWindow(n,ge(t,r));case 13:u=e.sent,f=u.wins,d=u.unopenableUrls,p=f.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{sourceId:t.id})})),(i=o.wins).push.apply(i,Object(c.a)(p)),(null===d||void 0===d?void 0:d.length)&&(h=o.unopenableUrls).push.apply(h,Object(c.a)(d));case 19:case"end":return e.stop()}}),e)})),u.s();case 6:if((l=u.n()).done){n.next=10;break}return n.delegateYield(f(),"t0",8);case 8:n.next=6;break;case 10:n.next=15;break;case 12:n.prev=12,n.t1=n.catch(3),u.e(n.t1);case 15:return n.prev=15,u.f(),n.finish(15);case 18:return n.abrupt("return",o);case 19:case"end":return n.stop()}}),n,null,[[3,12,15,18]])})))()},openTabsInExistingWindow:function(e,t){return Object(u.a)(te().mark((function n(){var r,a,u,l,d,p,h,v,m,b,y,g,O,x,E,k;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,j(t.windowId,{omitTabs:!0});case 2:return r=n.sent,n.next=5,f(e,r.incognito);case 5:if(a=n.sent,u=Object(o.a)(a,2),l=u[0],d=u[1],l.length){n.next=12;break}return Object(w.f)("no openable URLs provided".concat(d.length?". rejected ".concat(d.length," ").concat(1===d.length?"URL":"URLs",": ").concat(d.map((function(e){return e.url})).join(",")):"")),n.abrupt("return",{tabs:[],unopenableUrls:d.map((function(e){return e.url}))});case 12:d.length&&Object(w.f)("".concat(d.length," ").concat(1===d.length?"URL is":"URLs are"," preemptively disallowed from opening"),d.map((function(e){return e.url}))),p={windowId:t.windowId},h=l.findLast((function(e){return e.active})),v=Object(q.d)(l,(function(e){return!!e.pinned})),m=[],b=[],p.index=t.index,g=Object(i.a)(v),n.prev=20,g.s();case 22:if((O=g.n()).done){n.next=40;break}if(x=O.value,p.url=x.url||void 0,p.active=!!t.focused&&x===h,p.pinned=!!x.pinned,!t.optimized||!m.length){n.next=34;break}return n.t0=$.a,n.next=31,Object(ee.a)("optimizedOpenDelay");case 31:return n.t1=n.sent,n.next=34,(0,n.t0)(n.t1);case 34:return n.next=36,G(p);case 36:(E=n.sent)?(x.active&&(y=p.active?void 0:E.id),m.push(E),t.optimized&&E.id&&ie.add(E.id),null!=p.index&&(p.index=Math.max(p.index,E.index)+1)):b.push(p.url||"");case 38:n.next=22;break;case 40:n.next=45;break;case 42:n.prev=42,n.t2=n.catch(20),g.e(n.t2);case 45:return n.prev=45,g.f(),n.finish(45);case 48:if(!t.focused||!m.length){n.next=58;break}return n.next=51,j(t.windowId,{omitTabs:!0});case 51:if(!(k=n.sent)||"minimized"===k.state){n.next=58;break}return n.next=55,I(k.id);case 55:if(void 0===y){n.next=58;break}return n.next=58,s.activateTab(y);case 58:return b.length&&Object(w.f)("".concat(b.length," URLs failed to open (").concat(b.join(","),")")),n.abrupt("return",{tabs:m.map((function(e){return pe(e)})),unopenableUrls:[].concat(Object(c.a)(d.map((function(e){return e.url}))),b)});case 60:case"end":return n.stop()}}),n,null,[[20,42,45,48]])})))()},openTabsAfterTab:function(e,t){return Object(u.a)(te().mark((function n(){var r,o,i,c,u;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.getWindows();case 2:if(r=n.sent,o=Object(Z.p)(r,(function(e){return e.id===t.tabId})),i=o.group,c=o.unitIdx,i){n.next=6;break}throw new Error("tabId ".concat(t.tabId," does not match any open tab"));case 6:return u=e.map((function(e){return Object(a.a)(Object(a.a)({},e),{},{active:!0})})),n.abrupt("return",s.openTabsInExistingWindow(u,{windowId:i.id,index:c+1,focused:t.focused,optimized:t.optimized}));case 8:case"end":return n.stop()}}),n)})))()},openTabsInNewWindow:function(e,t){return Object(u.a)(te().mark((function n(){var i,u,l,d,p,h,v,m,b,y,g,O,x,k,L,C,T,_,N;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.incognito){n.next=7;break}return n.next=3,chrome.extension.isAllowedIncognitoAccess();case 3:if(n.sent){n.next=7;break}return Object(w.f)("cannot open tabs in an incognito window because ".concat(Object(J.b)()||"extension"," is not allowed incognito access.")),n.abrupt("return",{wins:[],unopenableUrls:e.map((function(e){return e.url}))});case 7:return n.next=9,f(e,t.incognito);case 9:if(i=n.sent,u=Object(o.a)(i,2),l=u[0],d=u[1],l.length){n.next=16;break}return Object(w.f)("no openable URLs provided".concat(d.length?". rejected ".concat(d.length," ").concat(1===d.length?"URL":"URLs",": ").concat(d.map((function(e){return e.url})).join(",")):"")),n.abrupt("return",{wins:[],unopenableUrls:d.map((function(e){return e.url}))});case 16:return d.length&&Object(w.f)("".concat(d.length," ").concat(1===d.length?"URL is":"URLs are"," preemptively disallowed from opening"),d.map((function(e){return e.url}))),n.t0=a.a,n.t1={incognito:!!t.incognito},n.next=21,P(t);case 21:return n.t2=n.sent,p=(0,n.t0)(n.t1,n.t2),t.unfocused&&A(p.state)&&(p.focused=!1),t.type&&(p.type=t.type),n.next=27,S(p,l);case 27:if(h=n.sent,v=h.win,m=h.remainingUrlInfos,b=h.failedUrls,v){n.next=34;break}return b.length&&Object(w.f)("".concat(b.length," URLs failed to open (").concat(b.join(","),")")),n.abrupt("return",{wins:[],unopenableUrls:[].concat(Object(c.a)(d.map((function(e){return e.url}))),Object(c.a)(b))});case 34:if(y=Object(r.a)(m),g=y[0],O=y.slice(1),(x=v.tabs[0])&&null!=x.id){n.next=38;break}throw new Error("created window has no tabs");case 38:if(!t.unfocused||A(p.state)){n.next=44;break}return n.next=41,E({omitTabs:!0});case 41:return k=n.sent,n.next=44,I(k.id);case 44:if(!g.pinned){n.next=47;break}return n.next=47,chrome.tabs.update(x.id,{pinned:!0});case 47:if(t.optimized&&ie.add(x.id),!O.length){n.next=54;break}return n.next=51,s.openTabsInExistingWindow(O,{windowId:v.id,focused:!t.unfocused,optimized:t.optimized});case 51:n.t3=n.sent,n.next=55;break;case 54:n.t3={};case 55:return L=n.t3,C=L.unopenableUrls,T=void 0===C?[]:C,(_=[].concat(Object(c.a)(b),Object(c.a)(T))).length&&Object(w.f)("".concat(_.length," URLs failed to open (").concat(_.join(","),")")),n.next=62,j(v.id);case 62:return N=n.sent,n.abrupt("return",{wins:[de(N)],unopenableUrls:[].concat(Object(c.a)(d.map((function(e){return e.url}))),Object(c.a)(_))});case 64:case"end":return n.stop()}}),n)})))()},activateOrOpenTab:function(e){var t=arguments;return Object(u.a)(te().mark((function n(){var r,o,i,a,u,l,f,d,p,h,v,m,b,y,g,w;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null===(r=(i=t.length>1&&void 0!==t[1]?t[1]:{}).currentWindowId)||void 0===r){n.next=5;break}n.t0=r,n.next=8;break;case 5:return n.next=7,E({omitTabs:!0});case 7:n.t0=n.sent.id;case 8:return a=n.t0,n.next=11,ve();case 11:if(u=n.sent,l=u.find((function(e){return e.id===a})),f=l&&he(l,i.targetWindowPrivacy)?Object(q.d)(l.tabs,(function(e){return e.active})):[],d="current-window"===i.activationScope&&f.length?f:[].concat(Object(c.a)(f),Object(c.a)(u.filter((function(e){return e.id!==a})).flatMap((function(e){return e.tabs})))),"incognito"===i.targetWindowPrivacy?d=d.filter((function(e){return e.incognito})):"clear"===i.targetWindowPrivacy&&(d=d.filter((function(e){return!e.incognito}))),!(p=d.find(i.tabMatcher||function(t){return Object(Y.i)(t.url,"/")===Object(Y.i)(e,"/")}))){n.next=19;break}return n.abrupt("return",s.activateTab(p.id,{focusWindow:!0}));case 19:if(!f.length||!i.reuseNewTab){n.next=26;break}if(!(h=f[0]).active||!s.isNewTabUrl(h.url)){n.next=26;break}return n.next=24,B(h.id,e);case 24:return v=n.sent,n.abrupt("return",v&&pe(v));case 26:if(!d.length){n.next=33;break}return m=d[0].windowId,n.next=30,s.openTabsInExistingWindow([{url:e,active:!0}],{windowId:m,focused:m!==a||!i.unfocusedIfCurrent});case 30:return b=n.sent,y=b.tabs,n.abrupt("return",y[0]);case 33:return n.next=35,s.openTabsInNewWindow([{url:e,active:!0}],{incognito:"incognito"===i.targetWindowPrivacy});case 35:return g=n.sent,w=g.wins,n.abrupt("return",null===(o=w[0])||void 0===o?void 0:o.tabs[0]);case 38:case"end":return n.stop()}}),n)})))()},activateTab:function(e){var t=arguments;return Object(u.a)(te().mark((function n(){var r,o;return te().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.length>1&&void 0!==t[1]?t[1]:{},n.prev=1,n.next=4,chrome.tabs.update(e,{active:!0});case 4:if(o=n.sent,!r.focusWindow){n.next=8;break}return n.next=8,I(o.windowId);case 8:return n.abrupt("return",pe(o));case 11:n.prev=11,n.t0=n.catch(1),Object(R.e)(n.t0,{prefix:"activateTab() failed"});case 14:case"end":return n.stop()}}),n,null,[[1,11]])})))()},moveTabs:function(){},togglePinTabs:function(){},toggleMuteTabs:function(){},closeTabs:function(e){return Object(u.a)(te().mark((function t(){var n;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.filter((function(e){return!ye(e)}))).length){t.next=3;break}return t.abrupt("return");case 3:return ce=[].concat(Object(c.a)(ce),Object(c.a)(n)),l.next({type:"TABS-CLOSING",tabIds:n}),t.next=7,Promise.allSettled(n.map((function(e){return z(e)})));case 7:ce=ce.filter((function(e){return!n.includes(e)}));case 8:case"end":return t.stop()}}),t)})))()},observe:function(){return l}};return s;function f(e,t){return d.apply(this,arguments)}function d(){return(d=Object(u.a)(te().mark((function e(t,n){var r;return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.extension.isAllowedFileSchemeAccess();case 2:return r=e.sent,e.abrupt("return",Object(q.o)(t,(function(e){return p(e.url,r,n)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e,n,r){return(n||!Object(M.e)(e))&&!Object(M.h)(e)&&(!r||!t.isFeatureUrl(e,"bookmarks")&&!t.isFeatureUrl(e,"history")&&!t.isFeatureUrl(e,"extensions")&&!t.isFeatureUrl(e,"settings"))}}function de(e){var t=Object(V.i)(e,ne);if(!Object(Q.a)(t))throw new Error("chrome.window is missing id: ".concat(JSON.stringify(e)));var n=t.tabs.map((function(e){return pe(e)})),r=Object(a.a)(Object(a.a)({},t),{},{tabs:n});return Object(Z.E)(r)}function pe(e){var t=Object(V.i)(e,re);if(!Object(Q.a)(t))throw new Error("chrome.tab is missing id: ".concat(JSON.stringify(e)));"complete"!==t.status&&ue.has(t.id)&&(t.status="complete");var n=Object(a.a)({},t);return Object(Z.D)(n)}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";return"any"===t||"incognito"===t&&e.incognito||"clear"===t&&!e.incognito}function ve(){return me.apply(this,arguments)}function me(){return(me=Object(u.a)(te().mark((function e(){return te().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:return e.abrupt("return",e.sent.filter((function(e){return!be(e.id)})).map((function(e){return Object(a.a)(Object(a.a)({},e),{},{tabs:e.tabs.filter((function(e){return null!=e.id&&!ye(e.id)}))})})).filter((function(e){return e.tabs.length})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(e){return ae.includes(e)}function ye(e){return ce.includes(e)}function ge(e){var t=e.incognito,n=e.type,r=e.state,o=e.left,i=e.top,c=e.width,u=e.height,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({incognito:t,type:N(n),state:r,left:o,top:i,width:c,height:u},l)}},function(e,t,n){"use strict";var r=n(4),o=n(222),i=n(143);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},,,function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t.length<2?e:"".concat(t[0],".").concat(t[1])}n.d(t,"a",(function(){return r}))},,,,,function(e,t,n){"use strict";var r=n(175),o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||y}function O(){}function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=w.prototype;var j=x.prototype=new O;j.constructor=x,r(j,w.prototype),j.isPureReactComponent=!0;var E={current:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function L(e,t,n){var r,o={},a=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),s=0;s<u;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:c,props:o,_owner:E.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g,I=[];function _(e,t,n,r){if(I.length){var o=I.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function A(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var c=!1;if(null===e)c=!0;else switch(o){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return n(r,e,""===t?"."+R(e,0):t),1;if(c=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+R(o=e[u],u);c+=A(o,l,n,r)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=m&&e[m]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),u=0;!(o=e.next()).done;)c+=A(o=o.value,l=t+R(o,u++),n,r);else if("object"===o)throw n=""+e,Error(b(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return c}function P(e,t,n){return null==e?0:A(e,"",t,n)}function R(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(T,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(T,"$&/")+"/"),P(e,F,t=_(t,i,r,o)),N(t)}var B={current:null};function U(){var e=B.current;if(null===e)throw Error(b(321));return e}var z={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,M,t=_(null,null,t,n)),N(t)},count:function(e){return P(e,(function(){return null}),null)},toArray:function(e){var t=[];return D(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(b(143));return e}},t.Component=w,t.Fragment=c,t.Profiler=l,t.PureComponent=x,t.StrictMode=u,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(b(267,e));var o=r({},e.props),a=e.key,c=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(c=t.ref,u=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)k.call(t,s)&&!S.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:c,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=L,t.createFactory=function(e){var t=L.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],s=!1,f=-1;function d(){s&&u&&(s=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!s){var e=c(d);s=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||s||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){t.parse=function(e,t){if(t?t.offsets="undefined"===typeof t.offsets||t.offsets:t={offsets:!0},e||(e=""),-1!==e.indexOf(":")||t.tokenize){if(t.keywords||t.ranges||t.tokenize){var n={text:[]};t.offsets&&(n.offsets=[]);for(var r,o={},i=[],a=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g;null!==(r=a.exec(e));){var c,u=(c=r[0]).indexOf(":");if(-1!==u){c.split(":");var l=c.slice(0,u),s=c.slice(u+1);s=((s=s.replace(/^\"|\"$|^\'|\'$/g,""))+"").replace(/\\(.?)/g,(function(e,t){switch(t){case"\\":return"\\";case"0":return"\0";case"":return"";default:return t}})),i.push({keyword:l,value:s,offsetStart:r.index,offsetEnd:r.index+c.length})}else{var f=!1;"-"===c[0]&&(f=!0,c=c.slice(1)),c=((c=c.replace(/^\"|\"$|^\'|\'$/g,""))+"").replace(/\\(.?)/g,(function(e,t){switch(t){case"\\":return"\\";case"0":return"\0";case"":return"";default:return t}})),f?o.text?(o.text instanceof Array||(o.text=[o.text]),o.text.push(c)):o.text=c:i.push({text:c,offsetStart:r.index,offsetEnd:r.index+c.length})}}for(i.reverse();c=i.pop();)if(c.text)n.text.push(c.text),t.offsets&&n.offsets.push(c);else{l=c.keyword;t.keywords=t.keywords||[];var d=!1,p=!1;if(/^-/.test(l)){if("-"===l[0]){var h=l.slice(1);(d=!(-1===t.keywords.indexOf(h)))&&(l=h,p=!0)}}else d=!(-1===t.keywords.indexOf(l));t.ranges=t.ranges||[];var v=!(-1===t.ranges.indexOf(l));if(d){if(t.offsets&&n.offsets.push({keyword:l,value:c.value,offsetStart:p?c.offsetStart+1:c.offsetStart,offsetEnd:c.offsetEnd}),(b=c.value).length){var m=b.split(",");p?o[l]?o[l]instanceof Array?m.length>1?o[l]=o[l].concat(m):o[l].push(b):(o[l]=[o[l]],o[l].push(b)):m.length>1?o[l]=m:t.alwaysArray?o[l]=[b]:o[l]=b:n[l]?n[l]instanceof Array?m.length>1?n[l]=n[l].concat(m):n[l].push(b):(n[l]=[n[l]],n[l].push(b)):m.length>1?n[l]=m:t.alwaysArray?n[l]=[b]:n[l]=b}}else if(v){t.offsets&&n.offsets.push(c);var b,y=(b=c.value).split("-");n[l]={},2===y.length?(n[l].from=y[0],n[l].to=y[1]):!y.length%2||(n[l].from=b)}else{var g=c.keyword+":"+c.value;n.text.push(g),t.offsets&&n.offsets.push({text:g,offsetStart:c.offsetStart,offsetEnd:c.offsetEnd})}}return n.text.length?t.tokenize||(n.text=n.text.join(" ").trim()):delete n.text,n.exclude=o,n}return e}return e},t.stringify=function(e,n,r){if(n||(n={offsets:!0}),!e)return"";if("string"===typeof e)return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(3===Object.keys(e).length&&e.text&&e.offsets&&e.exclude&&"string"===typeof e.text)return e.text;r||(r="");var o=function(e){return e.indexOf(" ")>-1?JSON.stringify(e):e},i=function(e){return r+e},a=[];if(e.text){var c=[];"string"===typeof e.text?c.push(e.text):c.push.apply(c,e.text),c.length>0&&a.push(c.map(o).map(i).join(" "))}return n.keywords&&n.keywords.forEach((function(t){if(e[t]){var n=[];"string"===typeof e[t]?n.push(e[t]):n.push.apply(n,e[t]),n.length>0&&a.push(i(t+":"+n.map(o).join(",")))}})),n.ranges&&n.ranges.forEach((function(t){if(e[t]){var n=e[t].from,r=e[t].to;r&&(n=n+"-"+r),n&&a.push(i(t+":"+n))}})),e.exclude&&Object.keys(e.exclude).length>0&&a.push(t.stringify(e.exclude,n,"-")),a.join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(11),a=n(28),c=function(e){var t=e.children;return o.a.createElement(i.a,{store:a.a},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(100),u=n(28),l=n(17);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var m={};u(m,i,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(L([])));y&&y!==t&&n.call(y,i)&&(m=y);var g=v.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).skipRemoteConfig,t=Object(u.b)(),n=Object(i.useState)(!1),f=Object(o.a)(n,2),d=f[0],p=f[1];return Object(i.useEffect)((function(){function n(){return(n=Object(r.a)(s().mark((function n(){var r,o,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(a.b)();case 2:return r=n.sent,o=r.id,i=r.settings,n.next=7,t(Object(l.e)());case 7:if(e){n.next=12;break}return n.next=10,i.get("shareUsageStats");case 10:n.sent&&Object(c.a)({clientId:o});case 12:p(!0);case 13:case"end":return n.stop()}}),n)})))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[t,e]),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(182),i="hsl(0, 0%, 50%)",a={type:"light",primary:{main:"#007acc",light:"hsl(204, 100%, 45%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#474747",light:"#474747",dark:"#474747",contrastText:"#fff"},success:{main:"#00d400"},error:{main:"#b94b43",light:"#b8000699",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"hsl(0, 0%, 93%)",contrastText:"hsl(0, 0%, 45%)"},text:{primary:"#000",secondary:"#8c8c8c"},background:{paper:"#fff",secondaryPaper:"hsla(0, 0%, 0%, 8%)",default:"#fff",secondaryDefault:"#f0f3f4",popup:"#3c3c3c",secondary:"hsla(0, 0%, 0%, 4%)"},divider:"#e6e6e6",tonalOffset:{light:.2,dark:.2},nxsSet:{red:{main:"#f74e4e"},orange:{main:"#ffa500"},yellow:{main:"#d2d200"},green:{main:"#18db08"},teal:{main:"#1dcccc"},blue:{main:"#199df5"},purple:{main:"#cc4bff"},pink:{main:"#ff9ad9"},brown:{main:"#bd8264"},gray:{main:"#cdcdcd"},neutral:{main:"#888"}},nxsAction:{hover:{main:"rgba(0, 0, 0, 0.04)",contrastText:"#000",dark:"rgb(204, 204, 204)"},focus:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000"},active:{main:"rgba(0, 0, 0, 0.12)",contrastText:"#000"},selected:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000",secondaryContrastText:"rgb(99, 99, 99)"}},nxsSetIcon:{client:{main:"#f93",contrastText:"#fff"},event:{main:"#8571ff",contrastText:"#fff"},collection:{main:"#38c300",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 93%)"},constructive:{main:"rgb(115, 177, 101)",light:"rgb(217, 239, 211)"},destructive:{main:"rgb(214, 165, 116)",light:"rgb(255, 236, 226)"}},nxsUrl:{link:{main:"#8c8c8c"},hover:{main:"#007acc"},visited:{main:"#551a8b"}}},c="rgb(241, 241, 241)",u={type:"dark",primary:{main:"#005c9b",dark:"hsl(204, 90%, 26%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#f1f1f1",dark:"#f1f1f1",light:"#f1f1f1",contrastText:"#000"},success:{main:"#00d400"},error:{main:"#732b2b",light:"#ffa2a2",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"#83838375",contrastText:"#dadada"},text:{primary:c,secondary:"#b3b3b3"},background:{paper:"#424242",secondaryPaper:"hsla(0, 0%, 100%, 22%)",default:"#1e1e1e",secondaryDefault:"#2b2b2b",popup:"#666",secondary:"hsla(0, 0%, 100%, 4%)"},divider:"#757575",tonalOffset:{light:.2,dark:.16},nxsSet:{red:{main:"#ff4343"},orange:{main:"#dd6700"},yellow:{main:"#e9b80d"},green:{main:"#21aa16"},teal:{main:"#00b8aa"},blue:{main:"#0078ca"},purple:{main:"#ba59de"},pink:{main:"#ff4c9a"},brown:{main:"#91614a"},gray:{main:"#888"},neutral:{main:c}},nxsAction:{hover:{main:"rgba(255, 255, 255, 0.09)",contrastText:"rgb(241, 241, 241)",light:"rgb(77, 77, 77)"},focus:{main:"rgba(255, 255, 255, 0.16)",contrastText:"rgb(241, 241, 241)"},active:{main:"rgba(255, 255, 255, 0.24)",contrastText:"rgb(241, 241, 241)"},selected:{main:"rgba(255, 255, 255, 0.16)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.62)"}},nxsSetIcon:{client:{main:"#d08343",contrastText:"#fff"},event:{main:"#7072fd",contrastText:"#fff"},collection:{main:"#51b21d",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 60%)"},constructive:{main:"rgb(115, 177, 101)"},destructive:{main:"rgb(214, 165, 116)"}},nxsUrl:{link:{main:"#a4a4a4"},hover:{main:"#6ba3fc"},visited:{main:"#bd79fc"}}};function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?u:a,t=Object(o.a)({props:{MuiButtonBase:{disableRipple:!0},MuiButton:{disableElevation:!0},MuiTooltip:{arrow:!0}},typography:{button:{fontSize:"1rem",fontWeight:400,textTransform:"none"}},palette:e,shape:{borderRadiusSmall:8,borderRadius:10,borderRadiusLarge:12}});t.palette.nxsSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{red:c(e.red),orange:c(e.orange),yellow:c(e.yellow),green:c(e.green),teal:c(e.teal),blue:c(e.blue),purple:c(e.purple),pink:c(e.pink),brown:c(e.brown),gray:c(e.gray),neutral:c(e.neutral)}}(e.nxsSet),t.palette.nxsAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{hover:c(e.hover),focus:c(e.focus),active:c(e.active),selected:c(e.selected)}}(e.nxsAction),t.palette.nxsSetIcon=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{client:c(e.client),event:c(e.event),collection:c(e.collection)}}(e.nxsSetIcon),t.palette.nxsTimelineMarker=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n={light:t};return{neutral:c(e.neutral,n),constructive:c(e.constructive,n),destructive:c(e.destructive,n)}}(e.nxsTimelineMarker,t.palette.background.default),t.palette.nxsUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{link:c(e.link),visited:c(e.visited),hover:c(e.hover),active:c(e.active),focus:c(e.focus)}}(e.nxsUrl);var n=("dark"===t.palette.type?["0.6","0.42","0.36"]:["0.2","0.14","0.12"]).map((function(e){return"rgba(0,0,0,".concat(e,")")}));return t.shadows=["none","0px 2px 1px -1px ".concat(n[0],",0px 1px 1px 0px ").concat(n[1],",0px 1px 3px 0px ").concat(n[2]),"0px 3px 1px -2px ".concat(n[0],",0px 2px 2px 0px ").concat(n[1],",0px 1px 5px 0px ").concat(n[2]),"0px 3px 3px -2px ".concat(n[0],",0px 3px 4px 0px ").concat(n[1],",0px 1px 8px 0px ").concat(n[2]),"0px 2px 4px -1px ".concat(n[0],",0px 4px 5px 0px ").concat(n[1],",0px 1px 10px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 5px 8px 0px ").concat(n[1],",0px 1px 14px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 6px 10px 0px ").concat(n[1],",0px 1px 18px 0px ").concat(n[2]),"0px 4px 5px -2px ".concat(n[0],",0px 7px 10px 1px ").concat(n[1],",0px 2px 16px 1px ").concat(n[2]),"0px 5px 5px -3px ".concat(n[0],",0px 8px 10px 1px ").concat(n[1],",0px 3px 14px 2px ").concat(n[2]),"0px 5px 6px -3px ".concat(n[0],",0px 9px 12px 1px ").concat(n[1],",0px 3px 16px 2px ").concat(n[2]),"0px 6px 6px -3px ".concat(n[0],",0px 10px 14px 1px ").concat(n[1],",0px 4px 18px 3px ").concat(n[2]),"0px 6px 7px -4px ".concat(n[0],",0px 11px 15px 1px ").concat(n[1],",0px 4px 20px 3px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 12px 17px 2px ").concat(n[1],",0px 5px 22px 4px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 13px 19px 2px ").concat(n[1],",0px 5px 24px 4px ").concat(n[2]),"0px 7px 9px -4px ".concat(n[0],",0px 14px 21px 2px ").concat(n[1],",0px 5px 26px 4px ").concat(n[2]),"0px 8px 9px -5px ".concat(n[0],",0px 15px 22px 2px ").concat(n[1],",0px 6px 28px 5px ").concat(n[2]),"0px 8px 10px -5px ".concat(n[0],",0px 16px 24px 2px ").concat(n[1],",0px 6px 30px 5px ").concat(n[2]),"0px 8px 11px -5px ".concat(n[0],",0px 17px 26px 2px ").concat(n[1],",0px 6px 32px 5px ").concat(n[2]),"0px 9px 11px -5px ".concat(n[0],",0px 18px 28px 2px ").concat(n[1],",0px 7px 34px 6px ").concat(n[2]),"0px 9px 12px -6px ".concat(n[0],",0px 19px 29px 2px ").concat(n[1],",0px 7px 36px 6px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 20px 31px 3px ").concat(n[1],",0px 8px 38px 7px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 21px 33px 3px ").concat(n[1],",0px 8px 40px 7px ").concat(n[2]),"0px 10px 14px -6px ".concat(n[0],",0px 22px 35px 3px ").concat(n[1],",0px 8px 42px 7px ").concat(n[2]),"0px 11px 14px -7px ".concat(n[0],",0px 23px 36px 3px ").concat(n[1],",0px 9px 44px 8px ").concat(n[2]),"0px 11px 15px -7px ".concat(n[0],",0px 24px 38px 3px ").concat(n[1],",0px 9px 46px 8px ").concat(n[2])],t.overrides={MuiButton:{root:{borderRadius:t.shape.borderRadiusSmall}},MuiCheckbox:{root:{marginTop:-9,marginBottom:-9}},MuiDialog:{scrollPaper:{alignItems:"flex-start","& div.MuiDialog-paper":{transform:"translate(0, 120px)"}},paperScrollBody:{verticalAlign:"top"}},MuiDialogTitle:{root:{paddingBottom:0}},MuiDialogContent:{root:{padding:t.spacing(2,3),textAlign:"center"}},MuiDialogContentText:{root:{marginBottom:0}},MuiFormControlLabel:{root:{marginRight:0}},MuiList:{root:{outline:"none"}},MuiListItem:{button:{transition:"none"}},MuiListItemIcon:{root:{minWidth:30,color:"dark"===t.palette.type?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)","& svg":{width:18,height:18}}},MuiDivider:{root:{margin:4}},MuiMenuItem:{root:{paddingTop:4,paddingBottom:4,"&:hover, &:focus":{backgroundColor:t.palette.nxsAction.hover.main}},gutters:{paddingRight:t.spacing(3)}},MuiSelect:{root:{paddingLeft:t.spacing(1)}},MuiSnackbarContent:{root:{color:"#fff",fontSize:"1em",padding:t.spacing(1,3)},action:{"& button":{marginLeft:14,color:"#fff","&:hover, &:focus":{color:"#fff",backgroundColor:"rgba(255, 255, 255, 0.26)"}},"& .MuiButton-root":{backgroundColor:"rgba(255, 255, 255, 0.14)"},"& .MuiIconButton-root":{padding:t.spacing(.6)}}},MuiTabs:{indicator:{transitionDuration:"150ms",height:3,backgroundColor:t.palette.text.primary},flexContainer:{borderBottom:"1px solid ".concat(t.palette.divider)}},MuiTab:{textColorPrimary:{color:t.palette.text.primary,"&.Mui-selected":{color:t.palette.text.primary}}},MuiTextField:{root:{"& .Mui-error":{color:t.palette.error.light,"&.MuiInput-underline:after":{borderBottomColor:t.palette.error.light}}}},MuiTooltip:{tooltip:{fontSize:"0.86rem",backgroundColor:t.palette.background.popup,whiteSpace:"pre-wrap",padding:"6px 12px",borderRadius:t.shape.borderRadiusSmall},arrow:{color:t.palette.background.popup}},MuiTypography:{colorError:{color:t.palette.error.light}}},t;function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.palette.augmentColor(Object(r.a)(Object(r.a)(Object(r.a)({},n),e),{},{main:e.main||n.main||i}))}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var r=n(22),o=n(3),i=n(2),a=n(100),c=n(39),u=n(95),l=n(69),s=n(131),f=n(78),d=n(9),p=n(122),h=n(135),v=n(53),m=n(170),b=n(62),y=n(12),g=n(8),w=n(77),O=n(46),x=n(13),j=n(5),E=n(108);function k(){k=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(L([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var S=["Bear with me","Doing the thing","Gimmie a sec","Give me a moment","Hang on","Hang tight","Hold on","Hold tight","Just a moment","Just a sec","On it","One moment","One sec","Sit tight","Stand by","This may take a bit, but it will be worth it","This may take a hot minute","Working on it"];function L(){var e=globalThis;e.getCollections=u.a,e.getEvents=u.d,e.getSettings=u.e,e.getData=u.b,e.getDiagnostics=u.c,e.validateBackup=l.h,e.getBackupSummaries=l.f,e.getLogs=f.a,e.triggerAutoBackup=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.b)({anyTime:!0,debug:!0});case 2:case"end":return e.stop()}}),e)}))),{preamble:"Testing auto-backup trigger conditions..."})},e.nextPulse=function(){Object(h.c)("pulse").then((function(e){var t=Object(g.k)(null===e||void 0===e?void 0:e.scheduledTime);t?Object(d.d)("Next pulse: ".concat(Object(g.l)(t)," (").concat(Object(g.j)(t),")")):Object(d.b)("No pulse scheduled")}))},e.idleStatus=function(){Object(E.a)({debug:!0})},e.debug=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return z((function(){return T(e)}),{preamble:"".concat(e?"Enabling":"Disabling"," debug mode...")})},e.enableDebug=function(){return z((function(){return T(!0)}),{preamble:"Enabling debug mode..."})},e.disableDebug=function(){return z((function(){return T(!1)}),{preamble:"Disabling debug mode..."})},e.showHeapInfo=function(){if(!Object(b.b)())return"This command is not available here. To use this command, open dev tools from a Session Buddy tab. See: https://sessionbuddy.com/console/";var e=Object(m.a)();if(e){var t=W();t.binaryValue("Allocated",e.total),t.binaryValue("Used",e.used),t.binaryValue("Limit",e.limit),t.binaryValue("Remaining",e.remaining),t.value("Usage","".concat((100*e.usage).toFixed(2),"%")),t.log()}else Object(d.b)("Heap info is not available")},e.showDiagnostics=function(){return z(_,{preamble:"Gathering info. One sec..."})},e.saveData=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.g)();case 2:Object(d.e)("\u2713 Collections and history downloaded. Check your Downloads folder.");case 3:case"end":return e.stop()}}),e)}))),{preamble:"Downloading collections and history...",requiresDom:!0})},e.saveDiagnostics=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.h)();case 2:Object(d.e)("\u2713 Diagnostics downloaded. Check your Downloads folder.");case 3:case"end":return e.stop()}}),e)}))),{preamble:"Downloading diagnostics...",requiresDom:!0})},e.repair=u.f,e.showBackupStatus=function(){return z(A,{preamble:"Validating backups. One sec..."})},e.backup=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)();case 2:if(!e.sent.disableAutoBackup){e.next=6;break}return Object(d.f)("The local backup feature is currently unavailable."),e.abrupt("return");case 6:return e.abrupt("return",Object(l.a)({logProgress:!0}));case 7:case"end":return e.stop()}}),e)}))))},e.backupCollections=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)();case 2:if(!e.sent.disableAutoBackup){e.next=6;break}return Object(d.f)("The local backup feature is currently unavailable."),e.abrupt("return");case 6:return e.abrupt("return",Object(l.a)({type:"collections",logProgress:!0}));case 7:case"end":return e.stop()}}),e)}))))},e.backupEvents=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)();case 2:if(!e.sent.disableAutoBackup){e.next=6;break}return Object(d.f)("The local backup feature is currently unavailable."),e.abrupt("return");case 6:return e.abrupt("return",Object(l.a)({type:"events",logProgress:!0}));case 7:case"end":return e.stop()}}),e)}))))},e.clearBackup=function(){return z(F)},e.clearCollectionsBackup=function(){return z((function(){return F("collections")}))},e.clearEventsBackup=function(){return z((function(){return F("events")}))},e.enableAutoBackup=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)("enableAutoBackup");case 2:if(!e.sent){e.next=6;break}return Object(d.d)("Auto-backup is already enabled"),e.abrupt("return");case 6:return e.next=8,Object(c.d)("enableAutoBackup",!0);case 8:Object(d.e)("Auto-backup enabled");case 9:case"end":return e.stop()}}),e)}))),{preamble:"Checking auto-backup settings..."})},e.disableAutoBackup=function(){return z(Object(i.a)(k().mark((function e(){return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)("enableAutoBackup");case 2:if(e.sent){e.next=6;break}return Object(d.d)("Auto-backup is already disabled"),e.abrupt("return");case 6:return e.next=8,Object(c.d)("enableAutoBackup",!1);case 8:Object(d.e)("Auto-backup disabled");case 9:case"end":return e.stop()}}),e)}))),{preamble:"Checking auto-backup settings..."})},e.showLogs=function(){return z(B,{preamble:"Getting logs..."})},e.showErrors=function(){return z((function(){return B({errorsOnly:!0})}),{preamble:"Getting errors..."})}}var C=function(e){return"error"===e.severity};function T(){return I.apply(this,arguments)}function I(){return I=Object(i.a)(k().mark((function e(){var t,n=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(n.length>0&&void 0!==n[0])||n[0],e.next=3,Object(c.a)("debug");case 3:if(e.sent!==t){e.next=7;break}return Object(d.d)("Looks like debug mode is already ".concat(t?"enabled":"disabled")),e.abrupt("return");case 7:return e.next=9,Object(c.d)("debug",t);case 9:G(),Object(d.d)("Debug ".concat(t?"enabled":"disabled",". Reloading Session Buddy tabs..."));case 11:case"end":return e.stop()}}),e)}))),I.apply(this,arguments)}function _(){return N.apply(this,arguments)}function N(){return(N=Object(i.a)(k().mark((function e(){var t,n,r,i,a,l,s,f,d,p,h,v,m,b,y,g,w,j,E,S,L,T,I,_,N;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N=function(e){var t=e.type,n=e.summary,r=e.validation,i=n?!1===(null===r||void 0===r?void 0:r.valid)?["invalid"]:(null===r||void 0===r?void 0:r.valid)?H(n.timestamp):["validity unknown"]:["none"];l.value.apply(l,["".concat(Object(x.d)(t)," backup")].concat(Object(o.a)(i)))},e.next=3,Object(u.c)();case 3:return a=e.sent,(l=W()).value("SB version",a.version),l.value("Extension ID",a.extensionId),(s=null===(t=a.settings)||void 0===t||null===(n=t.find((function(e){return"clientCreated"===e.id})))||void 0===n?void 0:n.value)&&l.dateValue("Installed",s),f=a.update||{},d=f.updated,p=f.previousVersion,d&&p&&l.dateValue("Updated",d," from ","v".concat(p)),a.load&&l.dateValue("Last accessed",a.load),h=a.dataCounts||{},v=h.collections,m=h.events,b=Object(O.c)(v)?v.toLocaleString():"(access error)",y=Object(O.c)(m)?m.toLocaleString():"(access error)",g=a.dataChanged||{},w=g.collections,j=g.events,E=H(w,[]),S=H(j,[]),L=E.length?[" (last changed "].concat(Object(o.a)(E),[")"]):[],T=S.length?[" (last changed "].concat(Object(o.a)(S),[")"]):[],l.value.apply(l,["Collections",b].concat(Object(o.a)(L))),l.value.apply(l,["Events",y].concat(Object(o.a)(T))),Object(O.c)(a.localStorageUsage)&&l.value("Storage usage","".concat(a.localStorageUsage,"%")),Object(O.c)(a.idbUsage)&&l.binaryValue("IDB usage",a.idbUsage,a.idbUsageHigh?" (high)":""),Object(O.c)(a.extensionStorageUsage)&&l.binaryValue("Extension storage usage",a.extensionStorageUsage,a.extensionStorageUsageHigh?" (high)":""),l.value("Storage persistence",!0===a.persistedStorage?"persisted":!1===a.persistedStorage?"best effort":"unknown"),e.next=28,Object(c.a)("enableAutoBackup");case 28:I=e.sent,l.value("Auto-backup",I?"enabled":"disabled"),N({type:"collections",summary:a.backup.summary.collections,validation:null===(r=a.backup.validation)||void 0===r?void 0:r.collections}),N({type:"events",summary:a.backup.summary.events,validation:null===(i=a.backup.validation)||void 0===i?void 0:i.events}),_=(a.logs||[]).filter(C),l.value("Has errors",_.length?"yes":"no"),l.log();case 35:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(){return P.apply(this,arguments)}function P(){return(P=Object(i.a)(k().mark((function e(){var t;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.f)();case 2:return t=e.sent,e.next=5,R("collections",t.collections);case 5:return e.next=7,R("events",t.events);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(e,t){return M.apply(this,arguments)}function M(){return(M=Object(i.a)(k().mark((function e(t,n){var r,i,a,c,u,s;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}return Object(d.d)("No backup found for ".concat(t)),e.abrupt("return");case 3:return r=Object(x.d)(t),e.next=6,Object(l.h)(t);case 6:if(e.t0=t,!1!==(null===(i=e.sent[e.t0])||void 0===i?void 0:i.valid)){e.next=11;break}return Object(d.f)("".concat(r," backup is invalid: ").concat(i.message)),e.abrupt("return");case 11:(a=W()).line("","".concat(r,":")),a.dateValue("Last backup",n.timestamp),a.numberValue(r,n.count,n.dbCount&&Object(O.c)(n.dbCount)?" of ".concat(n.dbCount.toLocaleString()):""),a.value.apply(a,["Valid"].concat(Object(o.a)(i?i.valid?["yes"]:["unknown ","(".concat(i.message,")")]:["unknown"]))),a.durationValue("Duration",n.duration),a.binaryValue("Size",n.usage),(c=Math.ceil(n.count/n.chunkSize))&&a.numberValue("Chunks",c),a.numberValue("".concat(r," per chunk"),n.chunkSize),n.count&&(u=n.usage/n.count,a.binaryValue("Average item size",u),s=u*n.chunkSize,a.binaryValue("Average chunk size",s)),a.log();case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return D.apply(this,arguments)}function D(){return(D=Object(i.a)(k().mark((function e(t){var n;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.c)(t);case 2:(n=e.sent)?Object(d.f)("\u2717 ".concat(n)):Object(d.e)("\u2713 ".concat(t?"".concat(t," "):"","backup cleared"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(){return U.apply(this,arguments)}function U(){return U=Object(i.a)(k().mark((function e(){var t,n,o,i,a,c,u,l,s,p,h,v,m=arguments;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v=function(e){return"error"===e?d.b:"warn"===e?d.f:d.a},t=(m.length>0&&void 0!==m[0]?m[0]:{}).errorsOnly,e.next=4,Object(f.a)();case 4:if(n=e.sent,o=t?n.filter(C):n,i=t?"error":"log",a=t?"errors":"logs",o.length){e.next=11;break}return Object(d.d)("No ".concat(a," found")),e.abrupt("return");case 11:Object(d.d)("Found ".concat(o.length," ").concat(1===o.length?i:"".concat(a," (recent to oldest)"),":")),c=Object(r.a)(o);try{for(c.s();!(u=c.n()).done;)l=u.value,s=l.severity,p=l.timestamp,h=l.message,v(s)("".concat(Object(g.l)(p),"\n").concat(h))}catch(b){c.e(b)}finally{c.f()}case 14:case"end":return e.stop()}}),e)}))),U.apply(this,arguments)}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.preamble,r=void 0===n?"".concat(Object(y.n)(S),"..."):n;if(t.requiresDom&&!Object(b.b)())return"This command is not available here. To use this command, open dev tools from a Session Buddy tab. See: https://sessionbuddy.com/console/";var o=function(){var t=Object(i.a)(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.a)(10);case 2:e();case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return o(),r}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3;(Object(b.b)()||Object(j.w)())&&setTimeout((function(){Object(j.w)()?Object(s.b)():globalThis.location.reload()}),e)}function W(){var e=Object(v.g)(v.b.gray,v.b.blue),t=[];return{line:n,value:r,numberValue:function(e,t){if(Object(O.c)(t)){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[e,t.toLocaleString()].concat(o))}},binaryValue:function(e,t){if(Object(O.c)(t)){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[e,Object(w.c)(t)].concat(o))}},durationValue:function(e,t){if(Object(O.c)(t)){for(var n=t/1e3,o=Math.round(100*n)/100,i=arguments.length,a=new Array(i>2?i-2:0),c=2;c<i;c++)a[c-2]=arguments[c];r.apply(void 0,[e,"".concat(o.toLocaleString()," ").concat(1===o?"second":"seconds")].concat(a))}},dateValue:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];r.apply(void 0,[e].concat(Object(o.a)(H(t)),i))},log:function(){e(t)}};function n(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.push(n)}function r(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n.apply(void 0,["".concat(e,": ")].concat(r))}}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["invalid date"],n=Object(g.k)(e);return n?[Object(g.j)(n)," at ",Object(g.l)(n)]:t}},function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(167);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n.n(i),c=n(48),u=n(19),l=n(44),s=n(82),f=n(23),d=n(177),p=n(119),h=n(76),v=n(129),m=n(117),b=n(147);function y(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function w(e,t,n){var r=y(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var l=o[u][r];c[o[u][r]]=n(l)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(t,r);return Object.keys(o).forEach((function(a){var c=o[a];if(Object(i.isValidElement)(c)){var u=a in t,l=a in r,s=t[a],f=Object(i.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&Object(i.isValidElement)(s)&&(o[a]=Object(i.cloneElement)(c,{onExited:n.bind(null,c),in:s.props.in,exit:g(c,"exit",e),enter:g(c,"enter",e)})):o[a]=Object(i.cloneElement)(c,{in:!1}):o[a]=Object(i.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:g(c,"exit",e),enter:g(c,"enter",e)})}})),o}var O=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},x=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(v.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(m.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:g(e,"appear",n),enter:g(e,"enter",n),exit:g(e,"exit",n)})}))):w(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),o=this.state.contextValue,i=O(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(b.a.Provider,{value:o},i):a.a.createElement(b.a.Provider,{value:o},a.a.createElement(t,r,i))},t}(a.a.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};var j=x,E="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var k=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,c=e.rippleSize,l=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,h=i.useState(!1),v=h[0],m=h[1],b=Object(u.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:c,height:c,top:-c/2+a,left:-c/2+o},g=Object(u.a)(t.child,v&&t.childLeaving,r&&t.childPulsate),w=Object(s.a)(d);return E((function(){if(!l){m(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,l,p]),i.createElement("span",{className:b,style:y},i.createElement("span",{className:g}))},S=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,c=e.classes,l=e.className,s=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),d=f[0],h=f[1],v=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[d]);var b=i.useRef(!1),y=i.useRef(null),g=i.useRef(null),w=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var O=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(p.a)(e),[i.createElement(k,{key:v.current,classes:c,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),v.current+=1,m.current=a}),[c]),x=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,c=void 0===i?a||t.pulsate:i,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&b.current)b.current=!1;else{"touchstart"===e.type&&(b.current=!0);var s,f,d,p=l?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(c||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)s=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches?e.touches[0]:e,m=v.clientX,x=v.clientY;s=Math.round(m-h.left),f=Math.round(x-h.top)}if(c)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var j=2*Math.max(Math.abs((p?p.clientWidth:0)-s),s)+2,E=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(j,2)+Math.pow(E,2))}e.touches?null===g.current&&(g.current=function(){O({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):O({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})}}),[a,O]),E=i.useCallback((function(){x({},{pulsate:!0})}),[x]),S=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){S(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:E,start:x,stop:S}}),[E,x,S]),i.createElement("span",Object(r.a)({className:Object(u.a)(c.root,l),ref:w},s),i.createElement(j,{component:null,exit:!0},d))})),L=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(S)),C=i.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,v=e.classes,m=e.className,b=e.component,y=void 0===b?"button":b,g=e.disabled,w=void 0!==g&&g,O=e.disableRipple,x=void 0!==O&&O,j=e.disableTouchRipple,E=void 0!==j&&j,k=e.focusRipple,S=void 0!==k&&k,C=e.focusVisibleClassName,T=e.onBlur,I=e.onClick,_=e.onFocus,N=e.onFocusVisible,A=e.onKeyDown,P=e.onKeyUp,R=e.onMouseDown,M=e.onMouseLeave,F=e.onMouseUp,D=e.onTouchEnd,B=e.onTouchMove,U=e.onTouchStart,z=e.onDragLeave,G=e.tabIndex,W=void 0===G?0:G,H=e.TouchRippleProps,K=e.type,V=void 0===K?"button":K,q=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null);var Y=i.useRef(null),X=i.useState(!1),Q=X[0],J=X[1];w&&Q&&J(!1);var Z=Object(d.a)(),ee=Z.isFocusVisible,te=Z.onBlurVisible,ne=Z.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return Object(s.a)((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),$.current.focus()}}}),[]),i.useEffect((function(){Q&&S&&!x&&Y.current.pulsate()}),[x,S,Q]);var oe=re("start",R),ie=re("stop",z),ae=re("stop",F),ce=re("stop",(function(e){Q&&e.preventDefault(),M&&M(e)})),ue=re("start",U),le=re("stop",D),se=re("stop",B),fe=re("stop",(function(e){Q&&(te(e),J(!1)),T&&T(e)}),!1),de=Object(s.a)((function(e){$.current||($.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),_&&_(e)})),pe=function(){var e=c.findDOMNode($.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ve=Object(s.a)((function(e){S&&!he.current&&Q&&Y.current&&" "===e.key&&(he.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),I&&I(e))})),me=Object(s.a)((function(e){S&&" "===e.key&&Y.current&&Q&&!e.defaultPrevented&&(he.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),P&&P(e),I&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&I(e)})),be=y;"button"===be&&q.href&&(be="a");var ye={};"button"===be?(ye.type=V,ye.disabled=w):("a"===be&&q.href||(ye.role="button"),ye["aria-disabled"]=w);var ge=Object(l.a)(a,t),we=Object(l.a)(ne,$),Oe=Object(l.a)(ge,we),xe=i.useState(!1),je=xe[0],Ee=xe[1];i.useEffect((function(){Ee(!0)}),[]);var ke=je&&!x&&!w;return i.createElement(be,Object(r.a)({className:Object(u.a)(v.root,m,Q&&[v.focusVisible,C],w&&v.disabled),onBlur:fe,onClick:I,onFocus:de,onKeyDown:ve,onKeyUp:me,onMouseDown:oe,onMouseLeave:ce,onMouseUp:ae,onDragLeave:ie,onTouchEnd:le,onTouchMove:se,onTouchStart:ue,ref:Oe,tabIndex:w?-1:W},ye,q),h,ke?i.createElement(L,Object(r.a)({ref:Y,center:p},H)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(C)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(204),a=n(0),c=n(19),u=n(94),l=n(118),s=n(23),f=n(31),d=n(44),p=n(128);function h(e,t){return parseInt(e[t],10)||0}var v="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},b=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,c=e.rowsMax,u=e.rowsMin,l=e.maxRows,s=e.minRows,f=void 0===s?1:s,b=e.style,y=e.value,g=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=l||c,O=i||u||f,x=a.useRef(null!=y).current,j=a.useRef(null),E=Object(d.a)(t,j),k=a.useRef(null),S=a.useRef(0),L=a.useState({}),C=L[0],T=L[1],I=a.useCallback((function(){var t=j.current,n=window.getComputedStyle(t),r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),c=r.scrollHeight-i;r.value="x";var u=r.scrollHeight-i,l=c;O&&(l=Math.max(Number(O)*u,l)),w&&(l=Math.min(Number(w)*u,l));var s=(l=Math.max(l,u))+("border-box"===o?i+a:0),f=Math.abs(l-c)<=1;T((function(e){return S.current<20&&(s>0&&Math.abs((e.outerHeightStyle||0)-s)>1||e.overflow!==f)?(S.current+=1,{overflow:f,outerHeightStyle:s}):e}))}),[w,O,e.placeholder]);a.useEffect((function(){var e=Object(p.a)((function(){S.current=0,I()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[I]),v((function(){I()})),a.useEffect((function(){S.current=0}),[y]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(o.a)({value:y,onChange:function(e){S.current=0,x||I(),n&&n(e)},ref:E,rows:O,style:Object(o.a)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},b)},g)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:Object(o.a)({},m,b)}))})),y=n(133),g="undefined"===typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],s=e.autoComplete,p=e.autoFocus,h=e.classes,v=e.className,m=(e.color,e.defaultValue),w=e.disabled,O=e.endAdornment,x=(e.error,e.fullWidth),j=void 0!==x&&x,E=e.id,k=e.inputComponent,S=void 0===k?"input":k,L=e.inputProps,C=void 0===L?{}:L,T=e.inputRef,I=(e.margin,e.multiline),_=void 0!==I&&I,N=e.name,A=e.onBlur,P=e.onChange,R=e.onClick,M=e.onFocus,F=e.onKeyDown,D=e.onKeyUp,B=e.placeholder,U=e.readOnly,z=e.renderSuffix,G=e.rows,W=e.rowsMax,H=e.rowsMin,K=e.maxRows,V=e.minRows,q=e.startAdornment,$=e.type,Y=void 0===$?"text":$,X=e.value,Q=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),J=null!=C.value?C.value:X,Z=a.useRef(null!=J).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(d.a)(C.ref,te),re=Object(d.a)(T,ne),oe=Object(d.a)(ee,re),ie=a.useState(!1),ae=ie[0],ce=ie[1],ue=Object(l.b)();var le=Object(u.a)({props:e,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ue?ue.focused:ae,a.useEffect((function(){!ue&&w&&ae&&(ce(!1),A&&A())}),[ue,w,ae,A]);var se=ue&&ue.onFilled,fe=ue&&ue.onEmpty,de=a.useCallback((function(e){Object(y.b)(e)?se&&se():fe&&fe()}),[se,fe]);g((function(){Z&&de({value:J})}),[J,de,Z]);a.useEffect((function(){de(ee.current)}),[]);var pe=S,he=Object(o.a)({},C,{ref:oe});"string"!==typeof pe?he=Object(o.a)({inputRef:oe,type:Y},he,{ref:null}):_?!G||K||V||W||H?(he=Object(o.a)({minRows:G||V,rowsMax:W,maxRows:K},he),pe=b):pe="textarea":he=Object(o.a)({type:Y},he);return a.useEffect((function(){ue&&ue.setAdornedStart(Boolean(q))}),[ue,q]),a.createElement("div",Object(o.a)({className:Object(c.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],v,le.disabled&&h.disabled,le.error&&h.error,j&&h.fullWidth,le.focused&&h.focused,ue&&h.formControl,_&&h.multiline,q&&h.adornedStart,O&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),R&&R(e)},ref:t},Q),q,a.createElement(l.a.Provider,{value:null},a.createElement(pe,Object(o.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:s,autoFocus:p,defaultValue:m,disabled:le.disabled,id:E,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:N,placeholder:B,readOnly:U,required:le.required,rows:G,value:J,onKeyDown:F,onKeyUp:D},he,{className:Object(c.a)(h.input,C.className,le.disabled&&h.disabled,_&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,q&&h.inputAdornedStart,O&&h.inputAdornedEnd,"search"===Y&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){A&&A(e),C.onBlur&&C.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):ce(!1)},onChange:function(e){if(!Z){var t=e.target||ee.current;if(null==t)throw new Error(Object(i.a)(1));de({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];C.onChange&&C.onChange.apply(C,[e].concat(r)),P&&P.apply(void 0,[e].concat(r))},onFocus:function(e){le.disabled?e.stopPropagation():(M&&M(e),C.onFocus&&C.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):ce(!0))}}))),O,z?z(Object(o.a)({},le,{startAdornment:q})):null)}));t.a=Object(s.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(o.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(w)},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(175),i=n(216);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function c(e,t,n,r,o,i,a,c,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(s){this.onError(s)}}var u=!1,l=null,s=!1,f=null,d={onError:function(e){u=!0,l=e}};function p(e,t,n,r,o,i,a,s,f){u=!1,l=null,c.apply(d,arguments)}var h=null,v=null,m=null;function b(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,o,i,c,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var v=l;u=!1,l=null,s||(s=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var y=null,g={};function w(){if(y)for(var e in g){var t=g[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,u=r;if(j.hasOwnProperty(u))throw Error(a(99,u));j[u]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&O(l[o],c,u);o=!0}else i.registrationName?(O(i.registrationName,c,u),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function O(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,k[e]=t.eventTypes[n].dependencies}var x=[],j={},E={},k={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g.hasOwnProperty(t)||g[t]!==r){if(g[t])throw Error(a(102,t));g[t]=r,n=!0}}n&&w()}var L=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,T=null,I=null;function _(e){if(e=v(e)){if("function"!==typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),C(e.stateNode,e.type,t))}}function N(e){T?I?I.push(e):I=[e]:T=e}function A(){if(T){var e=T,t=I;if(I=T=null,_(e),t)for(e=0;e<t.length;e++)_(t[e])}}function P(e,t){return e(t)}function R(e,t,n,r,o){return e(t,n,r,o)}function M(){}var F=P,D=!1,B=!1;function U(){null===T&&null===I||(M(),A())}function z(e,t,n){if(B)return e(t,n);B=!0;try{return F(e,t,n)}finally{B=!1,U()}}var G=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,H={},K={};function V(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,Y);q[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,Y);q[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,Y);q[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,n,r){var o=q.hasOwnProperty(t)?q[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(K,e)||!W.call(H,e)&&(G.test(e)?K[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,oe=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,ce=Z?Symbol.for("react.concurrent_mode"):60111,ue=Z?Symbol.for("react.forward_ref"):60112,le=Z?Symbol.for("react.suspense"):60113,se=Z?Symbol.for("react.suspense_list"):60120,fe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,pe=Z?Symbol.for("react.block"):60121,he="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=he&&e[he]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return me(e.type);case pe:return me(e.render);case de:if(e=1===e._status?e._result:null)return me(e)}return null}function be(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=me(e.type);n=null,r&&(n=me(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function je(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function ke(e,t){Ee(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Le(e,t.type,n):t.hasOwnProperty("defaultValue")&&Le(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Le(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Te(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _e(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ne(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Pe="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Me(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Me(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Be,Ue=(Be=function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Be(e,t)}))}:Be);function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ge(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:Ge("Animation","AnimationEnd"),animationiteration:Ge("Animation","AnimationIteration"),animationstart:Ge("Animation","AnimationStart"),transitionend:Ge("Transition","TransitionEnd")},He={},Ke={};function Ve(e){if(He[e])return He[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ke)return He[e]=n[t];return e}L&&(Ke=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var qe=Ve("animationend"),$e=Ve("animationiteration"),Ye=Ve("animationstart"),Xe=Ve("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"===typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var c=!1,u=o.child;u;){if(u===n){c=!0,n=o,r=i;break}if(u===r){c=!0,r=o,n=i;break}u=u.sibling}if(!c){for(u=i.child;u;){if(u===n){c=!0,n=i,r=o;break}if(u===r){c=!0,r=i,n=o;break}u=u.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ct(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)b(e,t[r],n[r]);else t&&b(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,ct),at)throw Error(a(95));if(s)throw e=f,s=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!L)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,n,r){if(ft.length){var o=ft.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=An(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var c=null,u=0;u<x.length;u++){var l=x[u];l&&(l=l.extractEvents(r,t,i,o,a))&&(c=ot(c,l))}ut(c)}}function vt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&$t(e,t)}n.set(e,null)}}var mt,bt,yt,gt=!1,wt=[],Ot=null,xt=null,jt=null,Et=new Map,kt=new Map,St=[],Lt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Tt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function It(e,t){switch(e){case"focus":case"blur":Ot=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function _t(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Tt(t,n,r,o,i),null!==t&&(null!==(t=Pn(t))&&bt(t)),e):(e.eventSystemFlags|=r,e)}function Nt(e){var t=An(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&&bt(n),e.blockedOn=t,!1}return!0}function Pt(e,t,n){At(e)&&n.delete(t)}function Rt(){for(gt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==Ot&&At(Ot)&&(Ot=null),null!==xt&&At(xt)&&(xt=null),null!==jt&&At(jt)&&(jt=null),Et.forEach(Pt),kt.forEach(Pt)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Rt)))}function Ft(e){function t(t){return Mt(t,e)}if(0<wt.length){Mt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Mt(Ot,e),null!==xt&&Mt(xt,e),null!==jt&&Mt(jt,e),Et.forEach(t),kt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Nt(n),null===n.blockedOn&&St.shift()}var Dt={},Bt=new Map,Ut=new Map,zt=["abort","abort",qe,"animationEnd",$e,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Xe,"transitionEnd","waiting","waiting"];function Gt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Ut.set(r,t),Bt.set(r,i),Dt[o]=i}}Gt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Gt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Gt(zt,2);for(var Wt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Wt.length;Ht++)Ut.set(Wt[Ht],0);var Kt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,qt=!0;function $t(e,t){Yt(t,e,!1)}function Yt(e,t,n){var r=Ut.get(t);switch(void 0===r?2:r){case 0:r=Xt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Xt(e,t,n,r){D||M();var o=Jt,i=D;D=!0;try{R(o,e,t,n,r)}finally{(D=i)||U()}}function Qt(e,t,n,r){Vt(Kt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(qt)if(0<wt.length&&-1<Lt.indexOf(e))e=Tt(null,e,t,n,r),wt.push(e);else{var o=Zt(e,t,n,r);if(null===o)It(e,r);else if(-1<Lt.indexOf(e))e=Tt(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return Ot=_t(Ot,e,t,n,r,o),!0;case"dragenter":return xt=_t(xt,e,t,n,r,o),!0;case"mouseover":return jt=_t(jt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,_t(Et.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,kt.set(i,_t(kt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){It(e,r),e=pt(e,r,null,t);try{z(ht,e)}finally{dt(e)}}}}function Zt(e,t,n,r){if(null!==(n=An(n=lt(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=pt(e,r,n,t);try{z(ht,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function cn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Pe;function ln(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)vt(t[r],e,n)}function sn(){}function fn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var bn="$",yn="/$",gn="$?",wn="$!",On=null,xn=null;function jn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function En(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kn="function"===typeof setTimeout?setTimeout:void 0,Sn="function"===typeof clearTimeout?clearTimeout:void 0;function Ln(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Cn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bn||n===wn||n===gn){if(0===t)return e;t--}else n===yn&&t++}e=e.previousSibling}return null}var Tn=Math.random().toString(36).slice(2),In="__reactInternalInstance$"+Tn,_n="__reactEventHandlers$"+Tn,Nn="__reactContainere$"+Tn;function An(e){var t=e[In];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nn]||n[In]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Cn(e);null!==e;){if(n=e[In])return n;e=Cn(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[In]||e[Nn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Mn(e){return e[_n]||null}function Fn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Bn(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Un(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Fn(t);for(t=n.length;0<t--;)Bn(n[t],"captured",e);for(t=0;t<n.length;t++)Bn(n[t],"bubbled",e)}}function zn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Gn(e){e&&e.dispatchConfig.registrationName&&zn(e._targetInst,null,e)}function Wn(e){it(e,Un)}var Hn=null,Kn=null,Vn=null;function qn(){if(Vn)return Vn;var e,t,n=Kn,r=n.length,o="value"in Hn?Hn.value:Hn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vn=o.slice(e,1<t?1-t:void 0)}function $n(){return!0}function Yn(){return!1}function Xn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?$n:Yn,this.isPropagationStopped=Yn,this}function Qn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Jn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Zn(e){e.eventPool=[],e.getPooled=Qn,e.release=Jn}o(Xn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){this.isPersistent=$n},isPersistent:Yn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Yn,this._dispatchInstances=this._dispatchListeners=null}}),Xn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Xn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Zn(n),n},Zn(Xn);var er=Xn.extend({data:null}),tr=Xn.extend({data:null}),nr=[9,13,27,32],rr=L&&"CompositionEvent"in window,or=null;L&&"documentMode"in document&&(or=document.documentMode);var ir=L&&"TextEvent"in window&&!or,ar=L&&(!rr||or&&8<or&&11>=or),cr=String.fromCharCode(32),ur={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function sr(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var dr=!1;var pr={eventTypes:ur,extractEvents:function(e,t,n,r){var o;if(rr)e:{switch(e){case"compositionstart":var i=ur.compositionStart;break e;case"compositionend":i=ur.compositionEnd;break e;case"compositionupdate":i=ur.compositionUpdate;break e}i=void 0}else dr?sr(e,n)&&(i=ur.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ur.compositionStart);return i?(ar&&"ko"!==n.locale&&(dr||i!==ur.compositionStart?i===ur.compositionEnd&&dr&&(o=qn()):(Kn="value"in(Hn=r)?Hn.value:Hn.textContent,dr=!0)),i=er.getPooled(i,t,n,r),o?i.data=o:null!==(o=fr(n))&&(i.data=o),Wn(i),o=i):o=null,(e=ir?function(e,t){switch(e){case"compositionend":return fr(t);case"keypress":return 32!==t.which?null:(lr=!0,cr);case"textInput":return(e=t.data)===cr&&lr?null:e;default:return null}}(e,n):function(e,t){if(dr)return"compositionend"===e||!rr&&sr(e,t)?(e=qn(),Vn=Kn=Hn=null,dr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ar&&"ko"!==t.locale?null:t.data}}(e,n))?((t=tr.getPooled(ur.beforeInput,t,n,r)).data=e,Wn(t)):t=null,null===o?t:null===t?o:[o,t]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function br(e,t,n){return(e=Xn.getPooled(mr.change,e,t,n)).type="change",N(n),Wn(e),e}var yr=null,gr=null;function wr(e){ut(e)}function Or(e){if(Oe(Rn(e)))return e}function xr(e,t){if("change"===e)return t}var jr=!1;function Er(){yr&&(yr.detachEvent("onpropertychange",kr),gr=yr=null)}function kr(e){if("value"===e.propertyName&&Or(gr))if(e=br(gr,e,lt(e)),D)ut(e);else{D=!0;try{P(wr,e)}finally{D=!1,U()}}}function Sr(e,t,n){"focus"===e?(Er(),gr=n,(yr=t).attachEvent("onpropertychange",kr)):"blur"===e&&Er()}function Lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Or(gr)}function Cr(e,t){if("click"===e)return Or(t)}function Tr(e,t){if("input"===e||"change"===e)return Or(t)}L&&(jr=st("input")&&(!document.documentMode||9<document.documentMode));var Ir={eventTypes:mr,_isInputEventSupported:jr,extractEvents:function(e,t,n,r){var o=t?Rn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=xr;else if(vr(o))if(jr)a=Tr;else{a=Lr;var c=Sr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Cr);if(a&&(a=a(e,t)))return br(a,n,r);c&&c(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Le(o,"number",o.value)}},_r=Xn.extend({view:null,detail:null}),Nr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Nr[e])&&!!t[e]}function Pr(){return Ar}var Rr=0,Mr=0,Fr=!1,Dr=!1,Br=_r.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Rr;return Rr=e.screenX,Fr?"mousemove"===e.type?e.screenX-t:0:(Fr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mr;return Mr=e.screenY,Dr?"mousemove"===e.type?e.screenY-t:0:(Dr=!0,0)}}),Ur=Br.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Gr={eventTypes:zr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?An(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var c=Br,u=zr.mouseLeave,l=zr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(c=Ur,u=zr.pointerLeave,l=zr.pointerEnter,s="pointer");if(e=null==a?i:Rn(a),i=null==t?i:Rn(t),(u=c.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=i,(n=c.getPooled(l,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=e,s=t,(r=a)&&s)e:{for(l=s,a=0,e=c=r;e;e=Fn(e))a++;for(e=0,t=l;t;t=Fn(t))e++;for(;0<a-e;)c=Fn(c),a--;for(;0<e-a;)l=Fn(l),e--;for(;a--;){if(c===l||c===l.alternate)break e;c=Fn(c),l=Fn(l)}c=null}else c=null;for(l=c,c=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)c.push(r),r=Fn(r);for(r=[];s&&s!==l&&(null===(a=s.alternate)||a!==l);)r.push(s),s=Fn(s);for(s=0;s<c.length;s++)zn(c[s],"bubbled",u);for(s=r.length;0<s--;)zn(r[s],"captured",n);return 0===(64&o)?[u]:[u,n]}};var Wr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Hr=Object.prototype.hasOwnProperty;function Kr(e,t){if(Wr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Hr.call(t,n[r])||!Wr(e[n[r]],t[n[r]]))return!1;return!0}var Vr=L&&"documentMode"in document&&11>=document.documentMode,qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$r=null,Yr=null,Xr=null,Qr=!1;function Jr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Qr||null==$r||$r!==fn(n)?null:("selectionStart"in(n=$r)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Xr&&Kr(Xr,n)?null:(Xr=n,(e=Xn.getPooled(qr.select,Yr,e,t)).type="select",e.target=$r,Wn(e),e))}var Zr={eventTypes:qr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ze(o),i=k.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Rn(t):window,e){case"focus":(vr(o)||"true"===o.contentEditable)&&($r=o,Yr=t,Xr=null);break;case"blur":Xr=Yr=$r=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Qr=!1,Jr(n,r);case"selectionchange":if(Vr)break;case"keydown":case"keyup":return Jr(n,r)}return null}},eo=Xn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),to=Xn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),no=_r.extend({relatedTarget:null});function ro(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var oo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},io={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ao=_r.extend({key:function(e){if(e.key){var t=oo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ro(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?io[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(e){return"keypress"===e.type?ro(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ro(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),co=Br.extend({dataTransfer:null}),uo=_r.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),lo=Xn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),so=Br.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),fo={eventTypes:Dt,extractEvents:function(e,t,n,r){var o=Bt.get(e);if(!o)return null;switch(e){case"keypress":if(0===ro(n))return null;case"keydown":case"keyup":e=ao;break;case"blur":case"focus":e=no;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=co;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=uo;break;case qe:case $e:case Ye:e=eo;break;case Xe:e=lo;break;case"scroll":e=_r;break;case"wheel":e=so;break;case"copy":case"cut":case"paste":e=to;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ur;break;default:e=Xn}return Wn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=Mn,v=Pn,m=Rn,S({SimpleEventPlugin:fo,EnterLeaveEventPlugin:Gr,ChangeEventPlugin:Ir,SelectEventPlugin:Zr,BeforeInputEventPlugin:pr});var po=[],ho=-1;function vo(e){0>ho||(e.current=po[ho],po[ho]=null,ho--)}function mo(e,t){ho++,po[ho]=e.current,e.current=t}var bo={},yo={current:bo},go={current:!1},wo=bo;function Oo(e,t){var n=e.type.contextTypes;if(!n)return bo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jo(){vo(go),vo(yo)}function Eo(e,t,n){if(yo.current!==bo)throw Error(a(168));mo(yo,t),mo(go,n)}function ko(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,me(t)||"Unknown",i));return o({},n,{},r)}function So(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bo,wo=yo.current,mo(yo,e),mo(go,go.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=ko(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,vo(go),vo(yo),mo(yo,e)):vo(go),mo(go,n)}var Co=i.unstable_runWithPriority,To=i.unstable_scheduleCallback,Io=i.unstable_cancelCallback,_o=i.unstable_requestPaint,No=i.unstable_now,Ao=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,Mo=i.unstable_NormalPriority,Fo=i.unstable_LowPriority,Do=i.unstable_IdlePriority,Bo={},Uo=i.unstable_shouldYield,zo=void 0!==_o?_o:function(){},Go=null,Wo=null,Ho=!1,Ko=No(),Vo=1e4>Ko?No:function(){return No()-Ko};function qo(){switch(Ao()){case Po:return 99;case Ro:return 98;case Mo:return 97;case Fo:return 96;case Do:return 95;default:throw Error(a(332))}}function $o(e){switch(e){case 99:return Po;case 98:return Ro;case 97:return Mo;case 96:return Fo;case 95:return Do;default:throw Error(a(332))}}function Yo(e,t){return e=$o(e),Co(e,t)}function Xo(e,t,n){return e=$o(e),To(e,t,n)}function Qo(e){return null===Go?(Go=[e],Wo=To(Po,Zo)):Go.push(e),Bo}function Jo(){if(null!==Wo){var e=Wo;Wo=null,Io(e)}Zo()}function Zo(){if(!Ho&&null!==Go){Ho=!0;var e=0;try{var t=Go;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Go=null}catch(n){throw null!==Go&&(Go=Go.slice(e+1)),To(Po,Jo),n}finally{Ho=!1}}}function ei(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ti(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ni={current:null},ri=null,oi=null,ii=null;function ai(){ii=oi=ri=null}function ci(e){var t=ni.current;vo(ni),e.type._context._currentValue=t}function ui(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function li(e,t){ri=e,ii=oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ma=!0),e.firstContext=null)}function si(e,t){if(ii!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===oi){if(null===ri)throw Error(a(308));oi=t,ri.dependencies={expirationTime:0,firstContext:t,responders:null}}else oi=oi.next=t;return e._currentValue}var fi=!1;function di(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function pi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function hi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function vi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function mi(e,t){var n=e.alternate;null!==n&&pi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function bi(e,t,n,r){var i=e.updateQueue;fi=!1;var a=i.baseQueue,c=i.shared.pending;if(null!==c){if(null!==a){var u=a.next;a.next=c.next,c.next=u}a=c,i.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=c))}if(null!==a){u=a.next;var l=i.baseState,s=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((c=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=v,f=l):p=p.next=v,c>s&&(s=c)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),xu(c,h.suspenseConfig);e:{var m=e,b=h;switch(c=t,v=n,b.tag){case 1:if("function"===typeof(m=b.payload)){l=m.call(v,l,c);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(c="function"===typeof(m=b.payload)?m.call(v,l,c):m)||void 0===c)break e;l=o({},l,c);break e;case 2:fi=!0}}null!==h.callback&&(e.effectTag|=32,null===(c=i.effects)?i.effects=[h]:c.push(h))}if(null===(h=h.next)||h===u){if(null===(c=i.shared.pending))break;h=a.next=c.next,c.next=u,i.baseQueue=a=c,i.shared.pending=null}}null===p?f=l:p.next=d,i.baseState=f,i.baseQueue=p,ju(s),e.expirationTime=s,e.memoizedState=l}}function yi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!==typeof r)throw Error(a(191,r));r.call(o)}}}var gi=X.ReactCurrentBatchConfig,wi=(new r.Component).refs;function Oi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var xi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=lu(),o=gi.suspense;(o=hi(r=su(r,e,o),o)).payload=t,void 0!==n&&null!==n&&(o.callback=n),vi(e,o),fu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=lu(),o=gi.suspense;(o=hi(r=su(r,e,o),o)).tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),vi(e,o),fu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=lu(),r=gi.suspense;(r=hi(n=su(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),vi(e,r),fu(e,n)}};function ji(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Kr(n,r)||!Kr(o,i))}function Ei(e,t,n){var r=!1,o=bo,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=xo(t)?wo:yo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Oo(e,o):bo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ki(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xi.enqueueReplaceState(t,t.state,null)}function Si(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=wi,di(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=xo(t)?wo:yo.current,o.context=Oo(e,i)),bi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Oi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&xi.enqueueReplaceState(o,o.state,null),bi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}var Li=Array.isArray;function Ci(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===wi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ti(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ii(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function c(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Vu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ci(e,t,n),r.return=e,r):((r=Hu(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Ku(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Vu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Hu(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case te:return(t=qu(t,e.mode,n)).return=e,t}if(Li(t)||ve(t))return(t=Ku(t,e.mode,n,null)).return=e,t;Ti(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case te:return n.key===o?s(e,t,n,r):null}if(Li(n)||ve(n))return null!==o?null:f(e,t,n,r,null);Ti(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Li(r)||ve(r))return f(t,e=e.get(n)||null,r,o,null);Ti(t,r)}return null}function v(o,a,c,u){for(var l=null,s=null,f=a,v=a=0,m=null;null!==f&&v<c.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var b=p(o,f,c[v],u);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),a=i(b,a,v),null===s?l=b:s.sibling=b,s=b,f=m}if(v===c.length)return n(o,f),l;if(null===f){for(;v<c.length;v++)null!==(f=d(o,c[v],u))&&(a=i(f,a,v),null===s?l=f:s.sibling=f,s=f);return l}for(f=r(o,f);v<c.length;v++)null!==(m=h(f,o,v,c[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=i(m,a,v),null===s?l=m:s.sibling=m,s=m);return e&&f.forEach((function(e){return t(o,e)})),l}function m(o,c,u,l){var s=ve(u);if("function"!==typeof s)throw Error(a(150));if(null==(u=s.call(u)))throw Error(a(151));for(var f=s=null,v=c,m=c=0,b=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(b=v,v=null):b=v.sibling;var g=p(o,v,y.value,l);if(null===g){null===v&&(v=b);break}e&&v&&null===g.alternate&&t(o,v),c=i(g,c,m),null===f?s=g:f.sibling=g,f=g,v=b}if(y.done)return n(o,v),s;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=d(o,y.value,l))&&(c=i(y,c,m),null===f?s=y:f.sibling=y,f=y);return s}for(v=r(o,v);!y.done;m++,y=u.next())null!==(y=h(v,o,m,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),c=i(y,c,m),null===f?s=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),s}return function(e,r,i,u){var l="object"===typeof i&&null!==i&&i.type===ne&&null===i.key;l&&(i=i.props.children);var s="object"===typeof i&&null!==i;if(s)switch(i.$$typeof){case ee:e:{for(s=i.key,l=r;null!==l;){if(l.key===s){if(7===l.tag){if(i.type===ne){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=Ci(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?((r=Ku(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Hu(i.type,i.key,i.props,null,e.mode,u)).ref=Ci(e,r,i),u.return=e,e=u)}return c(e);case te:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=qu(i,e.mode,u)).return=e,e=r}return c(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Vu(i,e.mode,u)).return=e,e=r),c(e);if(Li(i))return v(e,r,i,u);if(ve(i))return m(e,r,i,u);if(s&&Ti(e,i),"undefined"===typeof i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var _i=Ii(!0),Ni=Ii(!1),Ai={},Pi={current:Ai},Ri={current:Ai},Mi={current:Ai};function Fi(e){if(e===Ai)throw Error(a(174));return e}function Di(e,t){switch(mo(Mi,t),mo(Ri,e),mo(Pi,Ai),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fe(null,"");break;default:t=Fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}vo(Pi),mo(Pi,t)}function Bi(){vo(Pi),vo(Ri),vo(Mi)}function Ui(e){Fi(Mi.current);var t=Fi(Pi.current),n=Fe(t,e.type);t!==n&&(mo(Ri,e),mo(Pi,n))}function zi(e){Ri.current===e&&(vo(Pi),vo(Ri))}var Gi={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===wn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hi(e,t){return{responder:e,props:t}}var Ki=X.ReactCurrentDispatcher,Vi=X.ReactCurrentBatchConfig,qi=0,$i=null,Yi=null,Xi=null,Qi=!1;function Ji(){throw Error(a(321))}function Zi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,o,i){if(qi=i,$i=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ki.current=null===e||null===e.memoizedState?ja:Ea,e=n(r,o),t.expirationTime===qi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Xi=Yi=null,t.updateQueue=null,Ki.current=ka,e=n(r,o)}while(t.expirationTime===qi)}if(Ki.current=xa,t=null!==Yi&&null!==Yi.next,qi=0,Xi=Yi=$i=null,Qi=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xi?$i.memoizedState=Xi=e:Xi=Xi.next=e,Xi}function na(){if(null===Yi){var e=$i.alternate;e=null!==e?e.memoizedState:null}else e=Yi.next;var t=null===Xi?$i.memoizedState:Xi.next;if(null!==t)Xi=t,Yi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Yi=e).memoizedState,baseState:Yi.baseState,baseQueue:Yi.baseQueue,queue:Yi.queue,next:null},null===Xi?$i.memoizedState=Xi=e:Xi=Xi.next=e}return Xi}function ra(e,t){return"function"===typeof t?t(e):t}function oa(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Yi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var c=o.next;o.next=i.next,i.next=c}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=c=i=null,l=o;do{var s=l.expirationTime;if(s<qi){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(c=u=f,i=r):u=u.next=f,s>$i.expirationTime&&($i.expirationTime=s,ju(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),xu(s,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==o);null===u?i=r:u.next=c,Wr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ia(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var c=o=o.next;do{i=e(i,c.action),c=c.next}while(c!==o);Wr(i,t.memoizedState)||(Ma=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function aa(e){var t=ta();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=Oa.bind(null,$i,e),[t.memoizedState,e]}function ca(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=$i.updateQueue)?(t={lastEffect:null},$i.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ua(){return na().memoizedState}function la(e,t,n,r){var o=ta();$i.effectTag|=e,o.memoizedState=ca(1|t,n,void 0,void 0===r?null:r)}function sa(e,t,n,r){var o=na();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&Zi(r,a.deps))return void ca(t,n,i,r)}$i.effectTag|=e,o.memoizedState=ca(1|t,n,i,r)}function fa(e,t){return la(516,4,e,t)}function da(e,t){return sa(516,4,e,t)}function pa(e,t){return sa(4,2,e,t)}function ha(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function va(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,sa(4,2,ha.bind(null,t,e),n)}function ma(){}function ba(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function ya(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Zi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wa(e,t,n){var r=qo();Yo(98>r?98:r,(function(){e(!0)})),Yo(97<r?97:r,(function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Vi.suspense=r}}))}function Oa(e,t,n){var r=lu(),o=gi.suspense;o={expirationTime:r=su(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===$i||null!==i&&i===$i)Qi=!0,o.expirationTime=qi,$i.expirationTime=qi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,c=i(a,n);if(o.eagerReducer=i,o.eagerState=c,Wr(c,a))return}catch(u){}fu(e,r)}}var xa={readContext:si,useCallback:Ji,useContext:Ji,useEffect:Ji,useImperativeHandle:Ji,useLayoutEffect:Ji,useMemo:Ji,useReducer:Ji,useRef:Ji,useState:Ji,useDebugValue:Ji,useResponder:Ji,useDeferredValue:Ji,useTransition:Ji},ja={readContext:si,useCallback:ba,useContext:si,useEffect:fa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,la(4,2,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return la(4,2,e,t)},useMemo:function(e,t){var n=ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,$i,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ma,useResponder:Hi,useDeferredValue:function(e,t){var n=aa(e),r=n[0],o=n[1];return fa((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=aa(!1),n=t[0];return t=t[1],[ba(wa.bind(null,t,e),[t,e]),n]}},Ea={readContext:si,useCallback:ya,useContext:si,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ga,useReducer:oa,useRef:ua,useState:function(){return oa(ra)},useDebugValue:ma,useResponder:Hi,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],o=n[1];return da((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},ka={readContext:si,useCallback:ya,useContext:si,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ga,useReducer:ia,useRef:ua,useState:function(){return ia(ra)},useDebugValue:ma,useResponder:Hi,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],o=n[1];return da((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},Sa=null,La=null,Ca=!1;function Ta(e,t){var n=zu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ia(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function _a(e){if(Ca){var t=La;if(t){var n=t;if(!Ia(e,t)){if(!(t=Ln(n.nextSibling))||!Ia(e,t))return e.effectTag=-1025&e.effectTag|2,Ca=!1,void(Sa=e);Ta(Sa,n)}Sa=e,La=Ln(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ca=!1,Sa=e}}function Na(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Sa=e}function Aa(e){if(e!==Sa)return!1;if(!Ca)return Na(e),Ca=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!En(t,e.memoizedProps))for(t=La;t;)Ta(e,t),t=Ln(t.nextSibling);if(Na(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===yn){if(0===t){La=Ln(e.nextSibling);break e}t--}else n!==bn&&n!==wn&&n!==gn||t++}e=e.nextSibling}La=null}}else La=Sa?Ln(e.stateNode.nextSibling):null;return!0}function Pa(){La=Sa=null,Ca=!1}var Ra=X.ReactCurrentOwner,Ma=!1;function Fa(e,t,n,r){t.child=null===e?Ni(t,null,n,r):_i(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return li(t,o),r=ea(e,t,n,r,i,o),null===e||Ma?(t.effectTag|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),tc(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Gu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ua(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Kr)(o,r)&&e.ref===t.ref)?tc(e,t,i):(t.effectTag|=1,(e=Wu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ua(e,t,n,r,o,i){return null!==e&&Kr(e.memoizedProps,r)&&e.ref===t.ref&&(Ma=!1,o<i)?(t.expirationTime=e.expirationTime,tc(e,t,i)):Ga(e,t,n,r,i)}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ga(e,t,n,r,o){var i=xo(n)?wo:yo.current;return i=Oo(t,i),li(t,o),n=ea(e,t,n,r,i,o),null===e||Ma?(t.effectTag|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),tc(e,t,o))}function Wa(e,t,n,r,o){if(xo(n)){var i=!0;So(t)}else i=!1;if(li(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ei(t,n,r),Si(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,c=t.memoizedProps;a.props=c;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=si(l):l=Oo(t,l=xo(n)?wo:yo.current);var s=n.getDerivedStateFromProps,f="function"===typeof s||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(c!==r||u!==l)&&ki(t,a,r,l),fi=!1;var d=t.memoizedState;a.state=d,bi(t,r,a,o),u=t.memoizedState,c!==r||d!==u||go.current||fi?("function"===typeof s&&(Oi(t,n,s,r),u=t.memoizedState),(c=fi||ji(t,n,c,r,d,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=c):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,pi(e,t),c=t.memoizedProps,a.props=t.type===t.elementType?c:ti(t.type,c),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=Oo(t,l=xo(n)?wo:yo.current),(f="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(c!==r||u!==l)&&ki(t,a,r,l),fi=!1,u=t.memoizedState,a.state=u,bi(t,r,a,o),d=t.memoizedState,c!==r||u!==d||go.current||fi?("function"===typeof s&&(Oi(t,n,s,r),d=t.memoizedState),(s=fi||ji(t,n,c,r,u,d,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=s):("function"!==typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Ha(e,t,n,r,i,o)}function Ha(e,t,n,r,o,i){za(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return o&&Lo(t,n,!1),tc(e,t,i);r=t.stateNode,Ra.current=t;var c=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,c,i)):Fa(e,t,c,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function Ka(e){var t=e.stateNode;t.pendingContext?Eo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(0,t.context,!1),Di(e,t.containerInfo)}var Va,qa,$a,Ya,Xa={dehydrated:null,retryTime:0};function Qa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Gi.current,c=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(c=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),mo(Gi,1&a),null===e){if(void 0!==i.fallback&&_a(t),c){if(c=i.fallback,(i=Ku(null,o,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Ku(c,o,n,null)).return=t,i.sibling=n,t.memoizedState=Xa,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Ni(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,c){if(i=i.fallback,(n=Wu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(c=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=c;null!==c;)c.return=n,c=c.sibling;return(o=Wu(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Xa,t.child=n,o}return n=_i(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,c){if(c=i.fallback,(i=Ku(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Ku(c,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Xa,t.child=i,n}return t.memoizedState=null,t.child=_i(t,e,i.children,n)}function Ja(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ui(e.return,t)}function Za(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function ec(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!==(2&(r=Gi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ja(e,n);else if(19===e.tag)Ja(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(mo(Gi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function tc(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ju(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function nc(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rc(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return xo(t.type)&&jo(),null;case 3:return Bi(),vo(go),vo(yo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Aa(t)||(t.effectTag|=4),qa(t),null;case 5:zi(t),n=Fi(Mi.current);var i=t.type;if(null!==e&&null!=t.stateNode)$a(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Fi(Pi.current),Aa(t)){r=t.stateNode,i=t.type;var c=t.memoizedProps;switch(r[In]=t,r[_n]=c,i){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)$t(Qe[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":je(r,c),$t("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!c.multiple},$t("invalid",r),ln(n,"onChange");break;case"textarea":_e(r,c),$t("invalid",r),ln(n,"onChange")}for(var u in an(i,c),e=null,c)if(c.hasOwnProperty(u)){var l=c[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):E.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(i){case"input":we(r),Se(r,c,!0);break;case"textarea":we(r),Ae(r);break;case"select":case"option":break;default:"function"===typeof c.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Me(i)),e===un?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[In]=t,e[_n]=r,Va(e,t,!1,!1),t.stateNode=e,u=cn(i,r),i){case"iframe":case"object":case"embed":$t("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qe.length;l++)$t(Qe[l],e);l=r;break;case"source":$t("error",e),l=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),l=r;break;case"form":$t("reset",e),$t("submit",e),l=r;break;case"details":$t("toggle",e),l=r;break;case"input":je(e,r),l=xe(e,r),$t("invalid",e),ln(n,"onChange");break;case"option":l=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=o({},r,{value:void 0}),$t("invalid",e),ln(n,"onChange");break;case"textarea":_e(e,r),l=Ie(e,r),$t("invalid",e),ln(n,"onChange");break;default:l=r}an(i,l);var s=l;for(c in s)if(s.hasOwnProperty(c)){var f=s[c];"style"===c?rn(e,f):"dangerouslySetInnerHTML"===c?null!=(f=f?f.__html:void 0)&&Ue(e,f):"children"===c?"string"===typeof f?("textarea"!==i||""!==f)&&ze(e,f):"number"===typeof f&&ze(e,""+f):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(E.hasOwnProperty(c)?null!=f&&ln(n,c):null!=f&&Q(e,c,f,u))}switch(i){case"input":we(e),Se(e,r,!1);break;case"textarea":we(e),Ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Te(e,!!r.multiple,n,!1):null!=r.defaultValue&&Te(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=sn)}jn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Fi(Mi.current),Fi(Pi.current),Aa(t)?(n=t.stateNode,r=t.memoizedProps,n[In]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[In]=t,t.stateNode=n)}return null;case 13:return vo(Gi),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Aa(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Gi.current)?Wc===Ac&&(Wc=Mc):(Wc!==Ac&&Wc!==Mc||(Wc=Fc),0!==$c&&null!==Uc&&(Xu(Uc,Gc),Qu(Uc,$c)))),(n||r)&&(t.effectTag|=4),null);case 4:return Bi(),qa(t),null;case 10:return ci(t),null;case 19:if(vo(Gi),null===(r=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(c=r.rendering)){if(i)nc(r,!1);else if(Wc!==Ac||null!==e&&0!==(64&e.effectTag))for(c=t.child;null!==c;){if(null!==(e=Wi(c))){for(t.effectTag|=64,nc(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)c=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=c,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,c=e.dependencies,i.dependencies=null===c?null:{expirationTime:c.expirationTime,firstContext:c.firstContext,responders:c.responders}),r=r.sibling;return mo(Gi,1&Gi.current|2),t.child}c=c.sibling}}else{if(!i)if(null!==(e=Wi(c))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),nc(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,nc(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Gi.current,mo(Gi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function oc(e){switch(e.tag){case 1:xo(e.type)&&jo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Bi(),vo(go),vo(yo),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return zi(e),null;case 13:return vo(Gi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return vo(Gi),null;case 4:return Bi(),null;case 10:return ci(e),null;default:return null}}function ic(e,t){return{value:e,source:t,stack:be(t)}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(){},$a=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var c,u,l=t.stateNode;switch(Fi(Pi.current),e=null,n){case"input":a=xe(l,a),r=xe(l,r),e=[];break;case"option":a=Ce(l,a),r=Ce(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(l,a),r=Ie(l,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=sn)}for(c in an(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c)for(u in l=a[c])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(E.hasOwnProperty(c)?e||(e=[]):(e=e||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(u in l)!l.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&l[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(e=e||[]).push(c,s)):"children"===c?l===s||"string"!==typeof s&&"number"!==typeof s||(e=e||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(E.hasOwnProperty(c)?(null!=s&&ln(i,c),e||l===s||(e=[])):(e=e||[]).push(c,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ya=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ac="function"===typeof WeakSet?WeakSet:Set;function cc(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=be(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function uc(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ru(e,n)}else t.current=null}function lc(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ti(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function sc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function fc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dc(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void fc(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ti(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&yi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}yi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&jn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))))}throw Error(a(163))}function pc(e,t,n){switch("function"===typeof Bu&&Bu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Yo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(i){Ru(o,i)}}e=e.next}while(e!==r)}))}break;case 1:uc(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Ru(e,n)}}(t,n);break;case 5:uc(t);break;case 4:gc(e,t,n)}}function hc(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&hc(t)}function vc(e){return 5===e.tag||3===e.tag||4===e.tag}function mc(e){e:{for(var t=e.return;null!==t;){if(vc(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(ze(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?bc(e,n,t):yc(e,n,t)}function bc(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=sn));else if(4!==r&&null!==(e=e.child))for(bc(e,t,n),e=e.sibling;null!==e;)bc(e,t,n),e=e.sibling}function yc(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yc(e,t,n),e=e.sibling;null!==e;)yc(e,t,n),e=e.sibling}function gc(e,t,n){for(var r,o,i=t,c=!1;;){if(!c){c=i.return;e:for(;;){if(null===c)throw Error(a(160));switch(r=c.stateNode,c.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}c=c.return}c=!0}if(5===i.tag||6===i.tag){e:for(var u=e,l=i,s=n,f=l;;)if(pc(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(u=r,l=i.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(pc(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(c=!1)}i.sibling.return=i.return,i=i.sibling}}function wc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void sc(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[_n]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),cn(e,o),t=cn(e,r),o=0;o<i.length;o+=2){var c=i[o],u=i[o+1];"style"===c?rn(n,u):"dangerouslySetInnerHTML"===c?Ue(n,u):"children"===c?ze(n,u):Q(n,c,u,t)}switch(e){case"input":ke(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Te(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Te(n,!!r.multiple,r.defaultValue,!0):Te(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Xc=Vo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=void 0!==(o=e.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void Oc(t);case 19:return void Oc(t)}throw Error(a(163))}function Oc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ac),t.forEach((function(t){var r=Fu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var xc="function"===typeof WeakMap?WeakMap:Map;function jc(e,t,n){(n=hi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zc||(Zc=!0,eu=r),cc(e,t)},n}function Ec(e,t,n){(n=hi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return cc(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===tu?tu=new Set([this]):tu.add(this),cc(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var kc,Sc=Math.ceil,Lc=X.ReactCurrentDispatcher,Cc=X.ReactCurrentOwner,Tc=0,Ic=8,_c=16,Nc=32,Ac=0,Pc=1,Rc=2,Mc=3,Fc=4,Dc=5,Bc=Tc,Uc=null,zc=null,Gc=0,Wc=Ac,Hc=null,Kc=1073741823,Vc=1073741823,qc=null,$c=0,Yc=!1,Xc=0,Qc=500,Jc=null,Zc=!1,eu=null,tu=null,nu=!1,ru=null,ou=90,iu=null,au=0,cu=null,uu=0;function lu(){return(Bc&(_c|Nc))!==Tc?1073741821-(Vo()/10|0):0!==uu?uu:uu=1073741821-(Vo()/10|0)}function su(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=qo();if(0===(4&t))return 99===r?1073741823:1073741822;if((Bc&_c)!==Tc)return Gc;if(null!==n)e=ei(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ei(e,150,100);break;case 97:case 96:e=ei(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Uc&&e===Gc&&--e,e}function fu(e,t){if(50<au)throw au=0,cu=null,Error(a(185));if(null!==(e=du(e,t))){var n=qo();1073741823===t?(Bc&Ic)!==Tc&&(Bc&(_c|Nc))===Tc?mu(e):(hu(e),Bc===Tc&&Jo()):hu(e),(4&Bc)===Tc||98!==n&&99!==n||(null===iu?iu=new Map([[e,t]]):(void 0===(n=iu.get(e))||n>t)&&iu.set(e,t))}}function du(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Uc===o&&(ju(t),Wc===Fc&&Xu(o,Gc)),Qu(o,t)),o}function pu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Yu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function hu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Qo(mu.bind(null,e));else{var t=pu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=lu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Bo&&Io(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Qo(mu.bind(null,e)):Xo(r,vu.bind(null,e),{timeout:10*(1073741821-t)-Vo()}),e.callbackNode=t}}}function vu(e,t){if(uu=0,t)return Ju(e,t=lu()),hu(e),null;var n=pu(e);if(0!==n){if(t=e.callbackNode,(Bc&(_c|Nc))!==Tc)throw Error(a(327));if(Nu(),e===Uc&&n===Gc||gu(e,n),null!==zc){var r=Bc;Bc|=_c;for(var o=Ou();;)try{ku();break}catch(u){wu(e,u)}if(ai(),Bc=r,Lc.current=o,Wc===Pc)throw t=Hc,gu(e,n),Xu(e,n),hu(e),t;if(null===zc)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Wc,Uc=null,r){case Ac:case Pc:throw Error(a(345));case Rc:Ju(e,2<n?2:n);break;case Mc:if(Xu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cu(o)),1073741823===Kc&&10<(o=Xc+Qc-Vo())){if(Yc){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,gu(e,n);break}}if(0!==(i=pu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=kn(Tu.bind(null,e),o);break}Tu(e);break;case Fc:if(Xu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Cu(o)),Yc&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,gu(e,n);break}if(0!==(o=pu(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Vc?r=10*(1073741821-Vc)-Vo():1073741823===Kc?r=0:(r=10*(1073741821-Kc)-5e3,0>(r=(o=Vo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sc(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=kn(Tu.bind(null,e),r);break}Tu(e);break;case Dc:if(1073741823!==Kc&&null!==qc){i=Kc;var c=qc;if(0>=(r=0|c.busyMinDurationMs)?r=0:(o=0|c.busyDelayMs,r=(i=Vo()-(10*(1073741821-i)-(0|c.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Xu(e,n),e.timeoutHandle=kn(Tu.bind(null,e),r);break}}Tu(e);break;default:throw Error(a(329))}if(hu(e),e.callbackNode===t)return vu.bind(null,e)}}return null}function mu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Bc&(_c|Nc))!==Tc)throw Error(a(327));if(Nu(),e===Uc&&t===Gc||gu(e,t),null!==zc){var n=Bc;Bc|=_c;for(var r=Ou();;)try{Eu();break}catch(o){wu(e,o)}if(ai(),Bc=n,Lc.current=r,Wc===Pc)throw n=Hc,gu(e,t),Xu(e,t),hu(e),n;if(null!==zc)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Uc=null,Tu(e),hu(e)}return null}function bu(e,t){var n=Bc;Bc|=1;try{return e(t)}finally{(Bc=n)===Tc&&Jo()}}function yu(e,t){var n=Bc;Bc&=-2,Bc|=Ic;try{return e(t)}finally{(Bc=n)===Tc&&Jo()}}function gu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==zc)for(n=zc.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&jo();break;case 3:Bi(),vo(go),vo(yo);break;case 5:zi(r);break;case 4:Bi();break;case 13:case 19:vo(Gi);break;case 10:ci(r)}n=n.return}Uc=e,zc=Wu(e.current,null),Gc=t,Wc=Ac,Hc=null,Vc=Kc=1073741823,qc=null,$c=0,Yc=!1}function wu(e,t){for(;;){try{if(ai(),Ki.current=xa,Qi)for(var n=$i.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(qi=0,Xi=Yi=$i=null,Qi=!1,null===zc||null===zc.return)return Wc=Pc,Hc=t,zc=null;e:{var o=e,i=zc.return,a=zc,c=t;if(t=Gc,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var s=0!==(1&Gi.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!s)}}if(d){var v=f.updateQueue;if(null===v){var m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var b=hi(1073741823,null);b.tag=2,vi(a,b)}a.expirationTime=1073741823;break e}c=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new xc,c=new Set,y.set(u,c)):void 0===(c=y.get(u))&&(c=new Set,y.set(u,c)),!c.has(a)){c.add(a);var g=Mu.bind(null,o,u,a);u.then(g,g)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);c=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+be(a))}Wc!==Dc&&(Wc=Rc),c=ic(c,a),f=i;do{switch(f.tag){case 3:u=c,f.effectTag|=4096,f.expirationTime=t,mi(f,jc(f,u,t));break e;case 1:u=c;var w=f.type,O=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==O&&"function"===typeof O.componentDidCatch&&(null===tu||!tu.has(O)))){f.effectTag|=4096,f.expirationTime=t,mi(f,Ec(f,u,t));break e}}f=f.return}while(null!==f)}zc=Lu(zc)}catch(x){t=x;continue}break}}function Ou(){var e=Lc.current;return Lc.current=xa,null===e?xa:e}function xu(e,t){e<Kc&&2<e&&(Kc=e),null!==t&&e<Vc&&2<e&&(Vc=e,qc=t)}function ju(e){e>$c&&($c=e)}function Eu(){for(;null!==zc;)zc=Su(zc)}function ku(){for(;null!==zc&&!Uo();)zc=Su(zc)}function Su(e){var t=kc(e.alternate,e,Gc);return e.memoizedProps=e.pendingProps,null===t&&(t=Lu(e)),Cc.current=null,t}function Lu(e){zc=e;do{var t=zc.alternate;if(e=zc.return,0===(2048&zc.effectTag)){if(t=rc(t,zc,Gc),1===Gc||1!==zc.childExpirationTime){for(var n=0,r=zc.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}zc.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=zc.firstEffect),null!==zc.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=zc.firstEffect),e.lastEffect=zc.lastEffect),1<zc.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=zc:e.firstEffect=zc,e.lastEffect=zc))}else{if(null!==(t=oc(zc)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=zc.sibling))return t;zc=e}while(null!==zc);return Wc===Ac&&(Wc=Dc),null}function Cu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Tu(e){var t=qo();return Yo(99,Iu.bind(null,e,t)),null}function Iu(e,t){do{Nu()}while(null!==ru);if((Bc&(_c|Nc))!==Tc)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Cu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Uc&&(zc=Uc=null,Gc=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Bc;Bc|=Nc,Cc.current=null,On=qt;var c=vn();if(mn(c)){if("selectionStart"in c)var u={start:c.selectionStart,end:c.selectionEnd};else e:{var l=(u=(u=c.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var s=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(S){u=null;break e}var d=0,p=-1,h=-1,v=0,m=0,b=c,y=null;t:for(;;){for(var g;b!==u||0!==s&&3!==b.nodeType||(p=d+s),b!==f||0!==l&&3!==b.nodeType||(h=d+l),3===b.nodeType&&(d+=b.nodeValue.length),null!==(g=b.firstChild);)y=b,b=g;for(;;){if(b===c)break t;if(y===u&&++v===s&&(p=d),y===f&&++m===l&&(h=d),null!==(g=b.nextSibling))break;y=(b=y).parentNode}b=g}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;xn={activeElementDetached:null,focusedElem:c,selectionRange:u},qt=!1,Jc=o;do{try{_u()}catch(S){if(null===Jc)throw Error(a(330));Ru(Jc,S),Jc=Jc.nextEffect}}while(null!==Jc);Jc=o;do{try{for(c=e,u=t;null!==Jc;){var w=Jc.effectTag;if(16&w&&ze(Jc.stateNode,""),128&w){var O=Jc.alternate;if(null!==O){var x=O.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&w){case 2:mc(Jc),Jc.effectTag&=-3;break;case 6:mc(Jc),Jc.effectTag&=-3,wc(Jc.alternate,Jc);break;case 1024:Jc.effectTag&=-1025;break;case 1028:Jc.effectTag&=-1025,wc(Jc.alternate,Jc);break;case 4:wc(Jc.alternate,Jc);break;case 8:gc(c,s=Jc,u),hc(s)}Jc=Jc.nextEffect}}catch(S){if(null===Jc)throw Error(a(330));Ru(Jc,S),Jc=Jc.nextEffect}}while(null!==Jc);if(x=xn,O=vn(),w=x.focusedElem,u=x.selectionRange,O!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==u&&mn(w)&&(O=u.start,void 0===(x=u.end)&&(x=O),"selectionStart"in w?(w.selectionStart=O,w.selectionEnd=Math.min(x,w.value.length)):(x=(O=w.ownerDocument||document)&&O.defaultView||window).getSelection&&(x=x.getSelection(),s=w.textContent.length,c=Math.min(u.start,s),u=void 0===u.end?c:Math.min(u.end,s),!x.extend&&c>u&&(s=u,u=c,c=s),s=pn(w,c),f=pn(w,u),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((O=O.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),c>u?(x.addRange(O),x.extend(f.node,f.offset)):(O.setEnd(f.node,f.offset),x.addRange(O))))),O=[];for(x=w;x=x.parentNode;)1===x.nodeType&&O.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<O.length;w++)(x=O[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}qt=!!On,xn=On=null,e.current=n,Jc=o;do{try{for(w=e;null!==Jc;){var j=Jc.effectTag;if(36&j&&dc(w,Jc.alternate,Jc),128&j){O=void 0;var E=Jc.ref;if(null!==E){var k=Jc.stateNode;Jc.tag,O=k,"function"===typeof E?E(O):E.current=O}}Jc=Jc.nextEffect}}catch(S){if(null===Jc)throw Error(a(330));Ru(Jc,S),Jc=Jc.nextEffect}}while(null!==Jc);Jc=null,zo(),Bc=i}else e.current=n;if(nu)nu=!1,ru=e,ou=t;else for(Jc=o;null!==Jc;)t=Jc.nextEffect,Jc.nextEffect=null,Jc=t;if(0===(t=e.firstPendingTime)&&(tu=null),1073741823===t?e===cu?au++:(au=0,cu=e):au=0,"function"===typeof Du&&Du(n.stateNode,r),hu(e),Zc)throw Zc=!1,e=eu,eu=null,e;return(Bc&Ic)!==Tc||Jo(),null}function _u(){for(;null!==Jc;){var e=Jc.effectTag;0!==(256&e)&&lc(Jc.alternate,Jc),0===(512&e)||nu||(nu=!0,Xo(97,(function(){return Nu(),null}))),Jc=Jc.nextEffect}}function Nu(){if(90!==ou){var e=97<ou?97:ou;return ou=90,Yo(e,Au)}}function Au(){if(null===ru)return!1;var e=ru;if(ru=null,(Bc&(_c|Nc))!==Tc)throw Error(a(331));var t=Bc;for(Bc|=Nc,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:sc(5,n),fc(5,n)}}catch(r){if(null===e)throw Error(a(330));Ru(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Bc=t,Jo(),!0}function Pu(e,t,n){vi(e,t=jc(e,t=ic(n,t),1073741823)),null!==(e=du(e,1073741823))&&hu(e)}function Ru(e,t){if(3===e.tag)Pu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Pu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===tu||!tu.has(r))){vi(n,e=Ec(n,e=ic(t,e),1073741823)),null!==(n=du(n,1073741823))&&hu(n);break}}n=n.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Uc===e&&Gc===n?Wc===Fc||Wc===Mc&&1073741823===Kc&&Vo()-Xc<Qc?gu(e,Gc):Yc=!0:Yu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,hu(e)))}function Fu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=su(t=lu(),e,null)),null!==(e=du(e,t))&&hu(e)}kc=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||go.current)Ma=!0;else{if(r<n){switch(Ma=!1,t.tag){case 3:Ka(t),Pa();break;case 5:if(Ui(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:xo(t.type)&&So(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,mo(ni,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Qa(e,t,n):(mo(Gi,1&Gi.current),null!==(t=tc(e,t,n))?t.sibling:null);mo(Gi,1&Gi.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return ec(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),mo(Gi,Gi.current),!r)return null}return tc(e,t,n)}Ma=!1}}else Ma=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=Oo(t,yo.current),li(t,n),o=ea(null,t,r,e,o,n),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,xo(r)){var i=!0;So(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,di(t);var c=r.getDerivedStateFromProps;"function"===typeof c&&Oi(t,r,c,e),o.updater=xi,t.stateNode=o,o._reactInternalFiber=t,Si(t,r,e,n),t=Ha(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"===typeof e)return Gu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(o),e=ti(o,e),i){case 0:t=Ga(null,t,o,e,n);break e;case 1:t=Wa(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,ti(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ga(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 3:if(Ka(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,pi(e,t),bi(t,r,null,n),(r=t.memoizedState.element)===o)Pa(),t=tc(e,t,n);else{if((o=t.stateNode.hydrate)&&(La=Ln(t.stateNode.containerInfo.firstChild),Sa=t,o=Ca=!0),o)for(n=Ni(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Fa(e,t,r,n),Pa();t=t.child}return t;case 5:return Ui(t),null===e&&_a(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,c=o.children,En(r,o)?c=null:null!==i&&En(r,i)&&(t.effectTag|=16),za(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,c,n),t=t.child),t;case 6:return null===e&&_a(t),null;case 13:return Qa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,c=t.memoizedProps,i=o.value;var u=t.type._context;if(mo(ni,u._currentValue),u._currentValue=i,null!==c)if(u=c.value,0===(i=Wr(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(c.children===o.children&&!go.current){t=tc(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){c=u.child;for(var s=l.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&i)){1===u.tag&&((s=hi(n,null)).tag=2,vi(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ui(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}s=s.next}}else c=10===u.tag&&u.type===t.type?null:u.child;if(null!==c)c.return=u;else for(c=u;null!==c;){if(c===t){c=null;break}if(null!==(u=c.sibling)){u.return=c.return,c=u;break}c=c.return}u=c}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,li(t,n),r=r(o=si(o,i.unstable_observedBits)),t.effectTag|=1,Fa(e,t,r,n),t.child;case 14:return i=ti(o=t.type,t.pendingProps),Ba(e,t,o,i=ti(o.type,i),r,n);case 15:return Ua(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,xo(r)?(e=!0,So(t)):e=!1,li(t,n),Ei(t,r,o),Si(t,r,o,n),Ha(null,t,r,!0,e,n);case 19:return ec(e,t,n)}throw Error(a(156,t.tag))};var Du=null,Bu=null;function Uu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function zu(e,t,n,r){return new Uu(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wu(e,t){var n=e.alternate;return null===n?((n=zu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hu(e,t,n,r,o,i){var c=2;if(r=e,"function"===typeof e)Gu(e)&&(c=1);else if("string"===typeof e)c=5;else e:switch(e){case ne:return Ku(n.children,o,i,t);case ce:c=8,o|=7;break;case re:c=8,o|=1;break;case oe:return(e=zu(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case le:return(e=zu(13,n,t,o)).type=le,e.elementType=le,e.expirationTime=i,e;case se:return(e=zu(19,n,t,o)).elementType=se,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:c=10;break e;case ae:c=9;break e;case ue:c=11;break e;case fe:c=14;break e;case de:c=16,r=null;break e;case pe:c=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=zu(c,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Ku(e,t,n,r){return(e=zu(7,e,r,t)).expirationTime=n,e}function Vu(e,t,n){return(e=zu(6,e,null,t)).expirationTime=n,e}function qu(e,t,n){return(t=zu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $u(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Yu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Xu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Qu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ju(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Zu(e,t,n,r){var o=t.current,i=lu(),c=gi.suspense;i=su(i,o,c);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(xo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(xo(l)){n=ko(n,l,u);break e}}n=u}else n=bo;return null===t.context?t.context=n:t.pendingContext=n,(t=hi(i,c)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),vi(o,t),fu(o,i),i}function el(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function nl(e,t){tl(e,t),(e=e.alternate)&&tl(e,t)}function rl(e,t,n){var r=new $u(e,t,n=null!=n&&!0===n.hydrate),o=zu(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,di(o),e[Nn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Lt.forEach((function(e){vt(e,t,n)})),Ct.forEach((function(e){vt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function il(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var c=o;o=function(){var e=el(a);c.call(e)}}Zu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var u=o;o=function(){var e=el(a);u.call(e)}}yu((function(){Zu(t,a,e,o)}))}return el(a)}function al(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}rl.prototype.render=function(e){Zu(e,this._internalRoot,null,null)},rl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Zu(null,e,null,(function(){t[Nn]=null}))},mt=function(e){if(13===e.tag){var t=ei(lu(),150,100);fu(e,t),nl(e,t)}},bt=function(e){13===e.tag&&(fu(e,3),nl(e,3))},yt=function(e){if(13===e.tag){var t=lu();fu(e,t=su(t,e,null)),nl(e,t)}},C=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Mn(r);if(!o)throw Error(a(90));Oe(r),ke(r,o)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Te(e,!!n.multiple,t,!1)}},P=bu,R=function(e,t,n,r,o){var i=Bc;Bc|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{(Bc=i)===Tc&&Jo()}},M=function(){(Bc&(1|_c|Nc))===Tc&&(function(){if(null!==iu){var e=iu;iu=null,e.forEach((function(e,t){Ju(t,e),hu(t)})),Jo()}}(),Nu())},F=function(e,t){var n=Bc;Bc|=2;try{return e(t)}finally{(Bc=n)===Tc&&Jo()}};var cl={Events:[Pn,Rn,Mn,S,j,Wn,function(e){it(e,Gn)},N,A,Jt,ut,Nu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Du=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Bu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:An,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cl,t.createPortal=al,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Bc&(_c|Nc))!==Tc)throw Error(a(187));var n=Bc;Bc|=1;try{return Yo(99,e.bind(null,t))}finally{Bc=n,Jo()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(yu((function(){il(null,null,e,!1,(function(){e._reactRootContainer=null,e[Nn]=null}))})),!0)},t.unstable_batchedUpdates=bu,t.unstable_createPortal=function(e,t){return al(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return il(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(217)},function(e,t,n){"use strict";var r,o,i,a,c;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,l=null,s=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var b=p.now();t.unstable_now=function(){return p.now()-b}}var y=!1,g=null,w=-1,O=5,x=0;a=function(){return t.unstable_now()>=x},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):O=0<e?Math.floor(1e3/e):5};var j=new MessageChannel,E=j.port2;j.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+O;try{g(!0,e)?E.postMessage(null):(y=!1,g=null)}catch(n){throw E.postMessage(null),n}}else y=!1},r=function(e){g=e,y||(y=!0,E.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){v(w),w=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function L(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,u=e[c];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],I=[],_=1,N=null,A=3,P=!1,R=!1,M=!1;function F(e){for(var t=S(I);null!==t;){if(null===t.callback)L(I);else{if(!(t.startTime<=e))break;L(I),t.sortIndex=t.expirationTime,k(T,t)}t=S(I)}}function D(e){if(M=!1,F(e),!R)if(null!==S(T))R=!0,r(B);else{var t=S(I);null!==t&&o(D,t.startTime-e)}}function B(e,n){R=!1,M&&(M=!1,i()),P=!0;var r=A;try{for(F(n),N=S(T);null!==N&&(!(N.expirationTime>n)||e&&!a());){var c=N.callback;if(null!==c){N.callback=null,A=N.priorityLevel;var u=c(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?N.callback=u:N===S(T)&&L(T),F(n)}else L(T);N=S(T)}if(null!==N)var l=!0;else{var s=S(I);null!==s&&o(D,s.startTime-n),l=!1}return l}finally{N=null,A=r,P=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=c;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||P||(R=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?c+u:c,a="number"===typeof a.timeout?a.timeout:U(e)}else a=U(e),u=c;return e={id:_++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>c?(e.sortIndex=u,k(I,e),null===S(T)&&e===S(I)&&(M?i():M=!0,o(D,u-c))):(e.sortIndex=a,k(T,e),R||P||(R=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();F(e);var n=S(T);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},function(e,t,n){"use strict";e.exports=n(219)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case b:case m:case l:return e;default:return t}}case i:return t}}}function j(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=b,t.Memo=m,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||x(e)===f},t.isConcurrentMode=j,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===b},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===c},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===c||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===l||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=x},function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,c=60114,u=60109,l=60110,s=60112,f=60113,d=60120,p=60115,h=60116,v=60121,m=60122,b=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),o=w("react.portal"),i=w("react.fragment"),a=w("react.strict_mode"),c=w("react.profiler"),u=w("react.provider"),l=w("react.context"),s=w("react.forward_ref"),f=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),h=w("react.lazy"),v=w("react.block"),m=w("react.server.block"),b=w("react.fundamental"),y=w("react.debug_trace_mode"),g=w("react.legacy_hidden")}function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case h:case p:case u:return e;default:return t}}case o:return t}}}var x=u,j=r,E=s,k=i,S=h,L=p,C=o,T=c,I=a,_=f;t.ContextConsumer=l,t.ContextProvider=x,t.Element=j,t.ForwardRef=E,t.Fragment=k,t.Lazy=S,t.Memo=L,t.Portal=C,t.Profiler=T,t.StrictMode=I,t.Suspense=_,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return O(e)===l},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===s},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===h},t.isMemo=function(e){return O(e)===p},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===c},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===c||e===y||e===a||e===f||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===u||e.$$typeof===l||e.$$typeof===s||e.$$typeof===b||e.$$typeof===v||e[0]===m)},t.typeOf=O},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(19),c=n(23),u=n(60),l=n(206),s=n(31),f=i.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,f=e.color,d=void 0===f?"default":f,p=e.component,h=void 0===p?"button":p,v=e.disabled,m=void 0!==v&&v,b=e.disableElevation,y=void 0!==b&&b,g=e.disableFocusRipple,w=void 0!==g&&g,O=e.endIcon,x=e.focusVisibleClassName,j=e.fullWidth,E=void 0!==j&&j,k=e.size,S=void 0===k?"medium":k,L=e.startIcon,C=e.type,T=void 0===C?"button":C,I=e.variant,_=void 0===I?"text":I,N=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),A=L&&i.createElement("span",{className:Object(a.a)(c.startIcon,c["iconSize".concat(Object(s.a)(S))])},L),P=O&&i.createElement("span",{className:Object(a.a)(c.endIcon,c["iconSize".concat(Object(s.a)(S))])},O);return i.createElement(l.a,Object(o.a)({className:Object(a.a)(c.root,c[_],u,"inherit"===d?c.colorInherit:"default"!==d&&c["".concat(_).concat(Object(s.a)(d))],"medium"!==S&&[c["".concat(_,"Size").concat(Object(s.a)(S))],c["size".concat(Object(s.a)(S))]],y&&c.disableElevation,m&&c.disabled,E&&c.fullWidth),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Object(a.a)(c.focusVisible,x),ref:t,type:T},N),i.createElement("span",{className:c.label},A,n,P))}));t.a=Object(c.a)((function(e){return{root:Object(o.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n.n(i),c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u="object"===("undefined"===typeof window?"undefined":c(window))&&"object"===("undefined"===typeof document?"undefined":c(document))&&9===document.nodeType;var l=n(146),s=n(117),f=n(129),d=n(76),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function v(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=h(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},b=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=m(e[n]," ");else t=m(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function y(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function w(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var c=y(n),u=c.linebreak,l=c.space;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var f=a[s];for(var d in f){var p=f[d];null!=p&&(r&&(r+=u),r+=g(d+":"+l+b(p)+";",i))}}else for(var h in a){var v=a[h];null!=v&&(r&&(r+=u),r+=g(h+":"+l+b(v)+";",i))}for(var m in t){var w=t[m];null!=w&&"fallbacks"!==m&&(r&&(r+=u),r+=g(m+":"+l+b(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+u+r+u),g(""+e+l+"{"+r,--i)+g("}",i)):r}var O=/([[\].#*$><+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,j=function(e){return x?x(e):e.replace(O,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var c=i&&a;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),k=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,c=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u(Object(f.a)(Object(f.a)(o)),c),o.selectorText="."+j(o.id)),o}Object(s.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=b(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.selectorText,this.style,n)},Object(l.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new k(e,t,n)}},L={indent:1,children:!0},C=/@([\w-]+)/,T=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(C);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new J(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=L);var t=y(e).linebreak;if(null==e.indent&&(e.indent=L.indent),null==e.children&&(e.children=L.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),I=/@container|@media|@supports\s+/,_={onCreateRule:function(e,t,n){return I.test(e)?new T(e,t,n):null}},N={indent:1,children:!0},A=/@keyframes\s+([\w-]+)/,P=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(A);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,c=n.generateId;for(var u in this.id=!1===i?this.name:j(c(this,a)),this.rules=new J(Object(o.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=N);var t=y(e).linebreak;if(null==e.indent&&(e.indent=N.indent),null==e.children&&(e.children=N.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),R=/@keyframes\s+/,M=/\$([\w-]+)/g,F=function(e,t){return"string"===typeof e?e.replace(M,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=F(r,n);o!==r&&(e[t]=o)},B={onCreateRule:function(e,t,n){return"string"===typeof e&&R.test(e)?new P(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return F(e,r.keyframes);default:return e}}},U=function(e){function t(){return e.apply(this,arguments)||this}return Object(s.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.key,this.style,n)},t}(E),z={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new U(e,t,n):null}},G=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=y(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=w(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return w(this.at,this.style,e)},e}(),W=/@font-face/,H={onCreateRule:function(e,t,n){return W.test(e)?new G(e,t,n):null}},K=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return w(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new K(e,t,n):null}},q=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),$={"@charset":!0,"@import":!0,"@namespace":!0},Y=[S,_,B,z,H,V,{onCreateRule:function(e,t,n){return e in $?new q(e,t,n):null}}],X={process:!0},Q={force:!0,process:!0},J=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,c=r.jss,u=r.Renderer,l=r.generateId,s=r.scoped,f=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:c,Renderer:u,generateId:l,scoped:s,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+j(this.classes[d]));var p=v(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=Object(o.a)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof k?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof P&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof k?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof P&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=X);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var c=t.style;if(i.onUpdate(n,t,a,r),r.process&&c&&c!==t.style){for(var u in i.onProcessStyle(t.style,t,a),t.style){var l=t.style[u];l!==c[u]&&t.prop(u,l,Q)}for(var s in c){var f=t.style[s],d=c[s];null==f&&f!==d&&t.prop(s,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=y(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Z=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new J(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(d.a)(t,["attached"]),o=y(r).linebreak,i="",a=0;a<this.registry.length;a++){var c=this.registry[a];null!=n&&c.attached!==n||(i&&(i+=o),i+=c.toString(r))}return i},Object(l.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),re="2f1acc6c3a606b082e5eef5e54414ffb";null==ne[re]&&(ne[re]=0);var oe=ne[re]++,ie=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+oe+o+t:i+n.key+"-"+oe+(o?"-"+o:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},ce=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=b(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},le=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},fe=ae((function(){return document.querySelector("head")}));function de(e){var t=te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var pe=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},ve=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},me=function(){function e(e){this.getPropertyValue=ce,this.setProperty=ue,this.removeProperty=le,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=pe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=de(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ve(n,t);if(!1===(o=he(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var c=ve(n,t),u=he(n,a,c);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,c,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),be=0,ye=function(){function e(e){this.id=be++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ie,Renderer:u?me:null,plugins:[]},this.generateId=ie({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===te.index?0:te.index+1);var r=new Z(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=v(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),ge=function(e){return new ye(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Oe(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Oe(r);i&&(t||(t={}),t[n]=i)}}return t}ge();var xe=n(256),je={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ee=je,ke=n(205),Se=n(168),Le=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ce=Date.now(),Te="fnValues"+Ce,Ie="fnStyle"+ ++Ce,_e=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[Ie]=t,r},onProcessStyle:function(e,t){if(Te in t||Ie in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Te]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Ie];i&&(o.style=i(e)||{});var a=o[Te];if(a)for(var c in a)o.prop(c,a[c](e),r)}}},Ne="@global",Ae="@global ",Pe=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new J(Object(o.a)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Re=function(){function e(e,t,n){this.type="global",this.at=Ne,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Object(o.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Me=/\s*,\s*/g;function Fe(e,t){for(var n=e.split(Me),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var De=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ne)return new Pe(e,t,n);if("@"===e[0]&&e.substr(0,8)===Ae)return new Re(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Ne]:null;if(i){for(var a in i)t.addRule(a,i[a],Object(o.a)({},n,{selector:Fe(a,e.selector)}));delete r[Ne]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Ne.length)===Ne){var a=Fe(i.substr(Ne.length),e.selector);t.addRule(a,r[i],Object(o.a)({},n,{selector:a})),delete r[i]}}(e,t))}}},Be=/\s*,\s*/g,Ue=/&/g,ze=/\$([\w-]+)/g;var Ge=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Be),r=e.split(Be),o="",i=0;i<n.length;i++)for(var a=n[i],c=0;c<r.length;c++){var u=r[c];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(Ue,a):a+" "+u}return o}function n(e,t,n){if(n)return Object(o.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Object(o.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var c,u,l=i,s=l.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(c=n(l,s,c),d){var h=t(f,l.selector);u||(u=e(s,a)),h=h.replace(ze,u);var v=l.key+"-"+f;"replaceRule"in s?s.replaceRule(v,r[f],Object(o.a)({},c,{selector:h})):s.addRule(v,r[f],Object(o.a)({},c,{selector:h}))}else p&&s.addRule(f,{},c).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},We=/[A-Z]/g,He=/^ms-/,Ke={};function Ve(e){return"-"+e.toLowerCase()}var qe=function(e){if(Ke.hasOwnProperty(e))return Ke[e];var t=e.replace(We,Ve);return Ke[e]=He.test(t)?"-"+t:t};function $e(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:qe(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($e):t.fallbacks=$e(e.fallbacks)),t}var Ye=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=$e(e[t]);return e}return $e(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=qe(t);return t===r?e:(n.prop(r,e),null)}}},Xe=we&&CSS?CSS.px:"px",Qe=we&&CSS?CSS.ms:"ms",Je=we&&CSS?CSS.percent:"%";function Ze(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var et=Ze({"animation-delay":Qe,"animation-duration":Qe,"background-position":Xe,"background-position-x":Xe,"background-position-y":Xe,"background-size":Xe,border:Xe,"border-bottom":Xe,"border-bottom-left-radius":Xe,"border-bottom-right-radius":Xe,"border-bottom-width":Xe,"border-left":Xe,"border-left-width":Xe,"border-radius":Xe,"border-right":Xe,"border-right-width":Xe,"border-top":Xe,"border-top-left-radius":Xe,"border-top-right-radius":Xe,"border-top-width":Xe,"border-width":Xe,"border-block":Xe,"border-block-end":Xe,"border-block-end-width":Xe,"border-block-start":Xe,"border-block-start-width":Xe,"border-block-width":Xe,"border-inline":Xe,"border-inline-end":Xe,"border-inline-end-width":Xe,"border-inline-start":Xe,"border-inline-start-width":Xe,"border-inline-width":Xe,"border-start-start-radius":Xe,"border-start-end-radius":Xe,"border-end-start-radius":Xe,"border-end-end-radius":Xe,margin:Xe,"margin-bottom":Xe,"margin-left":Xe,"margin-right":Xe,"margin-top":Xe,"margin-block":Xe,"margin-block-end":Xe,"margin-block-start":Xe,"margin-inline":Xe,"margin-inline-end":Xe,"margin-inline-start":Xe,padding:Xe,"padding-bottom":Xe,"padding-left":Xe,"padding-right":Xe,"padding-top":Xe,"padding-block":Xe,"padding-block-end":Xe,"padding-block-start":Xe,"padding-inline":Xe,"padding-inline-end":Xe,"padding-inline-start":Xe,"mask-position-x":Xe,"mask-position-y":Xe,"mask-size":Xe,height:Xe,width:Xe,"min-height":Xe,"max-height":Xe,"min-width":Xe,"max-width":Xe,bottom:Xe,left:Xe,top:Xe,right:Xe,inset:Xe,"inset-block":Xe,"inset-block-end":Xe,"inset-block-start":Xe,"inset-inline":Xe,"inset-inline-end":Xe,"inset-inline-start":Xe,"box-shadow":Xe,"text-shadow":Xe,"column-gap":Xe,"column-rule":Xe,"column-rule-width":Xe,"column-width":Xe,"font-size":Xe,"font-size-delta":Xe,"letter-spacing":Xe,"text-decoration-thickness":Xe,"text-indent":Xe,"text-stroke":Xe,"text-stroke-width":Xe,"word-spacing":Xe,motion:Xe,"motion-offset":Xe,outline:Xe,"outline-offset":Xe,"outline-width":Xe,perspective:Xe,"perspective-origin-x":Je,"perspective-origin-y":Je,"transform-origin":Je,"transform-origin-x":Je,"transform-origin-y":Je,"transform-origin-z":Je,"transition-delay":Qe,"transition-duration":Qe,"vertical-align":Xe,"flex-basis":Xe,"shape-margin":Xe,size:Xe,gap:Xe,grid:Xe,"grid-gap":Xe,"row-gap":Xe,"grid-row-gap":Xe,"grid-column-gap":Xe,"grid-template-rows":Xe,"grid-template-columns":Xe,"grid-auto-rows":Xe,"grid-auto-columns":Xe,"box-shadow-x":Xe,"box-shadow-y":Xe,"box-shadow-blur":Xe,"box-shadow-spread":Xe,"font-line-height":Xe,"text-shadow-x":Xe,"text-shadow-y":Xe,"text-shadow-blur":Xe});function tt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=tt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=tt(o,t[o],n);else for(var i in t)t[i]=tt(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||et[e];return!a||0===t&&a===Xe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var nt=function(e){void 0===e&&(e={});var t=Ze(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=tt(r,e[r],t);return e},onChangeValue:function(e,n){return tt(n,e,t)}}},rt=n(119),ot="",it="",at="",ct="",ut=u&&"ontouchstart"in document.documentElement;if(u){var lt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},st=document.createElement("p").style;for(var ft in lt)if(ft+"Transform"in st){ot=ft,it=lt[ft];break}"Webkit"===ot&&"msHyphens"in st&&(ot="ms",it=lt.ms,ct="edge"),"Webkit"===ot&&"-apple-trailing-word"in st&&(at="apple")}var dt={js:ot,css:it,vendor:at,browser:ct,isTouch:ut};var pt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===dt.js?"-webkit-"+e:dt.css+e)}},ht={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===dt.js?dt.css+"print-"+e:e)}},vt=/[-\s]+(.)?/g;function mt(e,t){return t?t.toUpperCase():""}function bt(e){return e.replace(vt,mt)}function yt(e){return bt("-"+e)}var gt,wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===dt.js){var n="mask-image";if(bt(n)in t)return e;if(dt.js+yt(n)in t)return dt.css+e}return e}},Ot={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==dt.vendor||dt.isTouch?e:dt.css+e)}},xt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:dt.css+e)}},jt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:dt.css+e)}},Et={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===dt.js||"ms"===dt.js&&"edge"!==dt.browser?dt.css+e:e)}},kt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===dt.js||"ms"===dt.js||"apple"===dt.vendor?dt.css+e:e)}},St={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===dt.js?"WebkitColumn"+yt(e)in t&&dt.css+"column-"+e:"Moz"===dt.js&&("page"+yt(e)in t&&"page-"+e))}},Lt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===dt.js)return e;var n=e.replace("-inline","");return dt.js+yt(n)in t&&dt.css+n}},Ct={supportedProperty:function(e,t){return bt(e)in t&&e}},Tt={supportedProperty:function(e,t){var n=yt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:dt.js+n in t?dt.css+e:"Webkit"!==dt.js&&"Webkit"+n in t&&"-webkit-"+e}},It={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===dt.js?""+dt.css+e:e)}},_t={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===dt.js?dt.css+"scroll-chaining":e)}},Nt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},At={supportedProperty:function(e,t){var n=Nt[e];return!!n&&(dt.js+yt(n)in t&&dt.css+n)}},Pt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Rt=Object.keys(Pt),Mt=function(e){return dt.css+e},Ft=[pt,ht,wt,Ot,xt,jt,Et,kt,St,Lt,Ct,Tt,It,_t,At,{supportedProperty:function(e,t,n){var r=n.multiple;if(Rt.indexOf(e)>-1){var o=Pt[e];if(!Array.isArray(o))return dt.js+yt(o)in t&&dt.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(dt.js+yt(o[0])in t))return!1;return o.map(Mt)}return!1}}],Dt=Ft.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bt=Ft.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(rt.a)(t.noPrefill)),e}),[]),Ut={};if(u){gt=document.createElement("p");var zt=window.getComputedStyle(document.documentElement,"");for(var Gt in zt)isNaN(Gt)||(Ut[zt[Gt]]=zt[Gt]);Bt.forEach((function(e){return delete Ut[e]}))}function Wt(e,t){if(void 0===t&&(t={}),!gt)return e;if(null!=Ut[e])return Ut[e];"transition"!==e&&"transform"!==e||(t[e]=e in gt.style);for(var n=0;n<Dt.length&&(Ut[e]=Dt[n](e,gt.style,t),!Ut[e]);n++);try{gt.style[e]=""}catch(r){return!1}return Ut[e]}var Ht,Kt={},Vt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},qt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function $t(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Wt(t):", "+Wt(n);return r||(t||n)}function Yt(e,t){var n=t;if(!Ht||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Kt[r])return Kt[r];try{Ht.style[e]=n}catch(o){return Kt[r]=!1,!1}if(Vt[e])n=n.replace(qt,$t);else if(""===Ht.style[e]&&("-ms-flex"===(n=dt.css+n)&&(Ht.style[e]="-ms-flexbox"),Ht.style[e]=n,""===Ht.style[e]))return Kt[r]=!1,!1;return Ht.style[e]="",Kt[r]=n,Kt[r]}u&&(Ht=document.createElement("p"));var Xt=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Wt(n);i&&i!==n&&(o=!0);var a=!1,c=Yt(i,b(r));c&&c!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=c||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===dt.js?n:"@"+dt.css+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Yt(t,b(e))||e}}};var Qt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Jt(){return{plugins:[_e(),De(),Ge(),Ye(),nt(),"undefined"===typeof window?null:Xt(),Qt()]}}var Zt=ge(Jt()),en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,c=""===a?"":"".concat(a,"-"),u=0,l=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Le.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(c).concat(r,"-").concat(e.key);return t.options.theme[Se.a]&&""===a?"".concat(i,"-").concat(l()):i}return"".concat(c).concat(o).concat(l())}}(),tn={disableGeneration:!1,generateClassName:en,jss:Zt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},nn=a.a.createContext(tn);var rn=-1e9;n(68);var on=n(255);var an={};function cn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,c=e.name;if(!i.disableGeneration){var u=Ee.get(i.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Ee.set(i.sheetsManager,a,r,u));var l=Object(o.a)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var s=i.sheetsRegistry;if(0===u.refs){var f;i.sheetsCache&&(f=Ee.get(i.sheetsCache,a,r));var d=a.create(r,c);f||((f=i.jss.createStyleSheet(d,Object(o.a)({link:!1},l))).attach(),i.sheetsCache&&Ee.set(i.sheetsCache,a,r,f)),s&&s.add(f),u.staticSheet=f,u.dynamicStyles=Oe(d)}if(u.dynamicStyles){var p=i.jss.createStyleSheet(u.dynamicStyles,Object(o.a)({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Object(xe.a)({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,c=t.Component,u=t.defaultTheme,l=void 0===u?an:u,s=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=function(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],c=Object(o.a)({},i);return Object.keys(a).forEach((function(e){c[e]=Object(on.a)(c[e],a[e])})),c},options:{}}}(e),d=n||i||"makeStyles";f.options={index:rn+=1,name:n,meta:d,classNamePrefix:d};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(ke.a)()||l,r=Object(o.a)({},a.a.useContext(nn),s),i=a.a.useRef(),u=a.a.useRef();!function(e,t){var n,r=a.a.useRef([]),o=a.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return cn(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Ee.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Ee.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,f]),a.a.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Object(xe.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,c);return d}}n.d(t,"a",(function(){return un}))},function(e,t,n){"use strict";var r=n(76),o=n(117),i=n(0),a=n.n(i),c=n(48),u=n.n(c),l=!1,s=n(147),f="unmounted",d="exited",p="entering",h="entered",v="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||l?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(s.a.Provider,{value:null},"function"===typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function b(){}m.contextType=s.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},m.UNMOUNTED=f,m.EXITED=d,m.ENTERING=p,m.ENTERED=h,m.EXITING=v;t.a=m},,,,,,function(e,t,n){"use strict";var r=n(68),o=n(16);var i=n(21);function a(e){if(Object(o.a)(1,arguments),!function(e){return Object(o.a)(1,arguments),e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=Object(i.a)(e);return!isNaN(Number(t))}var c=n(55);function u(e,t){return Object(o.a)(2,arguments),function(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(e).getTime(),r=Object(c.a)(t);return new Date(n+r)}(e,-Object(c.a)(t))}function l(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function s(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=l(r),c=new Date(0);c.setUTCFullYear(n,0,4),c.setUTCHours(0,0,0,0);var u=l(c);return t.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function f(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=l(t).getTime()-function(e){Object(o.a)(1,arguments);var t=s(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)}(t).getTime();return Math.round(n/6048e5)+1}var d=n(72);function p(e,t){var n,r,a,u,l,s,f,p;Object(o.a)(1,arguments);var h=Object(d.a)(),v=Object(c.a)(null!==(n=null!==(r=null!==(a=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:h.weekStartsOn)&&void 0!==r?r:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Object(i.a)(e),b=m.getUTCDay(),y=(b<v?7:0)+b-v;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function h(e,t){var n,r,a,u,l,s,f,h;Object(o.a)(1,arguments);var v=Object(i.a)(e),m=v.getUTCFullYear(),b=Object(d.a)(),y=Object(c.a)(null!==(n=null!==(r=null!==(a=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:b.firstWeekContainsDate)&&void 0!==r?r:null===(f=b.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(m+1,0,y),g.setUTCHours(0,0,0,0);var w=p(g,t),O=new Date(0);O.setUTCFullYear(m,0,y),O.setUTCHours(0,0,0,0);var x=p(O,t);return v.getTime()>=w.getTime()?m+1:v.getTime()>=x.getTime()?m:m-1}function v(e,t){Object(o.a)(1,arguments);var n=Object(i.a)(e),r=p(n,t).getTime()-function(e,t){var n,r,i,a,u,l,s,f;Object(o.a)(1,arguments);var v=Object(d.a)(),m=Object(c.a)(null!==(n=null!==(r=null!==(i=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==i?i:v.firstWeekContainsDate)&&void 0!==r?r:null===(s=v.locale)||void 0===s||null===(f=s.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),b=h(e,t),y=new Date(0);return y.setUTCFullYear(b,0,m),y.setUTCHours(0,0,0,0),p(y,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function m(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var b={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return m("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):m(n+1,2)},d:function(e,t){return m(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return m(e.getUTCHours()%12||12,t.length)},H:function(e,t){return m(e.getUTCHours(),t.length)},m:function(e,t){return m(e.getUTCMinutes(),t.length)},s:function(e,t){return m(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return m(Math.floor(r*Math.pow(10,n-3)),t.length)}},y="midnight",g="noon",w="morning",O="afternoon",x="evening",j="night",E={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return b.y(e,t)},Y:function(e,t,n,r){var o=h(e,r),i=o>0?o:1-o;return"YY"===t?m(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):m(i,t.length)},R:function(e,t){return m(s(e),t.length)},u:function(e,t){return m(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return b.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=v(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):m(o,t.length)},I:function(e,t,n){var r=f(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):m(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):b.d(e,t)},D:function(e,t,n){var r=function(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return m(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return m(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return m(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?g:0===o?y:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?x:o>=12?O:o>=4?w:j,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return b.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):b.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):b.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):b.s(e,t)},S:function(e,t){return b.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return S(o);case"XXXX":case"XX":return L(o);default:return L(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return S(o);case"xxxx":case"xx":return L(o);default:return L(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+k(o,":");default:return"GMT"+L(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+k(o,":");default:return"GMT"+L(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return m(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return m((r._originalDate||e).getTime(),t.length)}};function k(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+m(i,2)}function S(e,t){return e%60===0?(e>0?"-":"+")+m(Math.abs(e)/60,2):L(e,t)}function L(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+m(Math.floor(o/60),2)+n+m(o%60,2)}var C=E,T=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},I=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},_={p:I,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return T(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",T(o,t)).replace("{{time}}",I(i,t))}},N=n(92),A=["D","DD"],P=["YY","YYYY"];function R(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var M=n(106);n.d(t,"a",(function(){return G}));var F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,B=/^'([^]*?)'?$/,U=/''/g,z=/[a-zA-Z]/;function G(e,t,n){var r,l,s,f,p,h,v,m,b,y,g,w,O,x,j,E,k,S;Object(o.a)(2,arguments);var L=String(t),T=Object(d.a)(),I=null!==(r=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:T.locale)&&void 0!==r?r:M.a,G=Object(c.a)(null!==(s=null!==(f=null!==(p=null!==(h=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null===n||void 0===n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==p?p:T.firstWeekContainsDate)&&void 0!==f?f:null===(b=T.locale)||void 0===b||null===(y=b.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==s?s:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Object(c.a)(null!==(g=null!==(w=null!==(O=null!==(x=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==x?x:null===n||void 0===n||null===(j=n.locale)||void 0===j||null===(E=j.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==O?O:T.weekStartsOn)&&void 0!==w?w:null===(k=T.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==g?g:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!I.localize)throw new RangeError("locale must contain localize property");if(!I.formatLong)throw new RangeError("locale must contain formatLong property");var H=Object(i.a)(e);if(!a(H))throw new RangeError("Invalid time value");var K=u(H,Object(N.a)(H)),V={firstWeekContainsDate:G,weekStartsOn:W,locale:I,_originalDate:H};return L.match(D).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_[t])(e,I.formatLong):e})).join("").match(F).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(B);if(!t)return e;return t[1].replace(U,"'")}(r);var i,a=C[o];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||(i=r,-1===P.indexOf(i))||R(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==A.indexOf(e)}(r)||R(r,t,String(e)),a(K,r,I.localize,V);if(o.match(z))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:u(c(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var s=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?s:10===e?f:s||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function v(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||p(e.firstElementChild)===e)}(a)?a:p(a);var c=h(e);return c.host?v(c.host,t):v(e,h(t).host)}function m(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function g(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),O=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function j(e){return x({},e,{right:e.left+e.width,bottom:e.top+e.height})}function E(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=m(e,"top"),r=m(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(p){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?g(e.ownerDocument):{},c=i.width||e.clientWidth||o.width,u=i.height||e.clientHeight||o.height,l=e.offsetWidth-c,s=e.offsetHeight-u;if(l||s){var f=a(e);l-=b(f,"x"),s-=b(f,"y"),o.width-=l,o.height-=s}return j(o)}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),o="HTML"===t.nodeName,i=E(e),c=E(t),l=u(e),s=a(t),f=parseFloat(s.borderTopWidth),p=parseFloat(s.borderLeftWidth);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var h=j({top:i.top-c.top-f,left:i.left-c.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var v=parseFloat(s.marginTop),b=parseFloat(s.marginLeft);h.top-=f-v,h.bottom-=f-v,h.left-=p-b,h.right-=p-b,h.marginTop=v,h.marginLeft=b}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),o=m(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function S(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=c(e);return!!n&&S(n)}function L(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function C(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?L(e):v(e,l(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=k(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:m(n),c=t?0:m(n,"left");return j({top:a-r.top+r.marginTop,left:c-r.left+r.marginLeft,width:o,height:i})}(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=u(c(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=k(s,a,o);if("HTML"!==s.nodeName||S(a))i=f;else{var d=g(e.ownerDocument),p=d.height,h=d.width;i.top+=f.top-f.marginTop,i.bottom=p+f.top,i.left+=f.left-f.marginLeft,i.right=h+f.left}}var b="number"===typeof(n=n||0);return i.left+=b?n:n.left||0,i.top+=b?n:n.top||0,i.right-=b?n:n.right||0,i.bottom-=b?n:n.bottom||0,i}function T(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=C(n,r,i,o),c={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(c).map((function(e){return x({key:e},c[e],{area:(t=c[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),l=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),s=l.length>0?l[0].key:u[0].key,f=e.split("-")[1];return s+(f?"-"+f:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,r?L(t):v(t,l(n)),r)}function _(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function A(e,t,n){n=n.split("-")[0];var r=_(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",c=i?"left":"top",u=i?"height":"width",l=i?"width":"height";return o[a]=t[a]+t[u]/2-r[u]/2,o[c]=n===c?t[c]-r[l]:t[N(c)],o}function P(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=P(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=j(t.offsets.popper),t.offsets.reference=j(t.offsets.reference),t=n(t,e))})),t}function M(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=T(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function D(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!==typeof document.body.style[i])return i}return null}function B(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[D("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function z(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||z(u(i.parentNode),t,n,r),r.push(i)}function G(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var o=u(e);return z(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function H(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var q=n&&/Firefox/i.test(navigator.userAgent);function $(e,t,n){var r=P(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=Y.slice(3);function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(e),r=X.slice(n+1).concat(X.slice(0,n));return t?r.reverse():r}var J="flip",Z="clockwise",ee="counterclockwise";function te(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=a.indexOf(P(a,(function(e){return-1!==e.search(/,|\s/)})));a[c]&&-1===a[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==c?[a.slice(0,c).concat([a[c].split(u)[0]]),[a[c].split(u)[1]].concat(a.slice(c+1))]:[a];return l=l.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return j("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),l.forEach((function(e,t){e.forEach((function(n,r){K(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ne={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,c=-1!==["bottom","top"].indexOf(n),u=c?"left":"top",l=c?"width":"height",s={start:O({},u,i[u]),end:O({},u,i[u]+i[l]-a[l])};e.offsets.popper=x({},a,s[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,c=r.split("-")[0],u=void 0;return u=K(+n)?[+n,0]:te(n,i,a,c),"left"===c?(i.top+=u[0],i.left-=u[1]):"right"===c?(i.top+=u[0],i.left+=u[1]):"top"===c?(i.left+=u[0],i.top-=u[1]):"bottom"===c&&(i.left+=u[0],i.top+=u[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=D("transform"),o=e.instance.popper.style,i=o.top,a=o.left,c=o[r];o.top="",o.left="",o[r]="";var u=C(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=c,t.boundaries=u;var l=t.priority,s=e.offsets.popper,f={primary:function(e){var n=s[e];return s[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(s[e],u[e])),O({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=s[n];return s[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(s[n],u[e]-("right"===e?s.width:s.height))),O({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";s=x({},s,f[t](e))})),e.offsets.popper=s,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),c=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[c]<i(r[u])&&(e.offsets.popper[u]=i(r[u])-n[l]),n[u]>i(r[c])&&(e.offsets.popper[u]=i(r[c])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,u=i.reference,l=-1!==["left","right"].indexOf(o),s=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",v=_(r)[s];u[h]-v<c[d]&&(e.offsets.popper[d]-=c[d]-(u[h]-v)),u[d]+v>c[h]&&(e.offsets.popper[d]+=u[d]+v-c[h]),e.offsets.popper=j(e.offsets.popper);var m=u[d]+u[s]/2-v/2,b=a(e.instance.popper),y=parseFloat(b["margin"+f]),g=parseFloat(b["border"+f+"Width"]),w=m-e.offsets.popper[d]-y-g;return w=Math.max(Math.min(c[s]-v,w),0),e.arrowElement=r,e.offsets.arrow=(O(n={},d,Math.round(w)),O(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=C(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=N(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case J:a=[r,o];break;case Z:a=Q(r);break;case ee:a=Q(r,!0);break;default:a=t.behavior}return a.forEach((function(c,u){if(r!==c||a.length===u+1)return e;r=e.placement.split("-")[0],o=N(r);var l=e.offsets.popper,s=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(s.left)||"right"===r&&f(l.left)<f(s.right)||"top"===r&&f(l.bottom)>f(s.top)||"bottom"===r&&f(l.top)<f(s.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),v=f(l.top)<f(n.top),m=f(l.bottom)>f(n.bottom),b="left"===r&&p||"right"===r&&h||"top"===r&&v||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&v||!y&&"end"===i&&m),w=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&m||!y&&"end"===i&&v),O=g||w;(d||b||O)&&(e.flipped=!0,(d||b)&&(r=a[u+1]),O&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=x({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=R(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),c=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(c?o[a?"width":"height"]:0),e.placement=N(t),e.offsets.popper=j(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=P(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=P(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,c=p(e.instance.popper),u=E(c),l={position:o.position},s=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,c=function(e){return e},u=i(o.width),l=i(r.width),s=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?s||f||u%2===l%2?i:a:c,p=t?i:c;return{left:d(u%2===1&&l%2===1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!q),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=D("transform"),v=void 0,m=void 0;if(m="bottom"===f?"HTML"===c.nodeName?-c.clientHeight+s.bottom:-u.height+s.bottom:s.top,v="right"===d?"HTML"===c.nodeName?-c.clientWidth+s.right:-u.width+s.right:s.left,a&&h)l[h]="translate3d("+v+"px, "+m+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var b="bottom"===f?-1:1,y="right"===d?-1:1;l[f]=m*b,l[d]=v*y,l.willChange=f+", "+d}var g={"x-placement":e.placement};return e.attributes=x({},g,e.attributes),e.styles=x({},l,e.styles),e.arrowStyles=x({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return V(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=I(o,t,e,n.positionFixed),a=T(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),V(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},re={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ne},oe=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=x({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return x({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var c=this.options.eventsEnabled;c&&this.enableEventListeners(),this.state.eventsEnabled=c}return w(e,[{key:"update",value:function(){return M.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),e}();oe.Utils=("undefined"!==typeof window?window:e).PopperUtils,oe.placements=Y,oe.Defaults=re,t.a=oe}).call(this,n(136))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(272)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(68);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(19),c=n(23),u=i.forwardRef((function(e,t){var n=e.classes,c=e.className,u=e.component,l=void 0===u?"div":u,s=e.square,f=void 0!==s&&s,d=e.elevation,p=void 0===d?1:d,h=e.variant,v=void 0===h?"elevation":h,m=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(l,Object(o.a)({className:Object(a.a)(n.root,c,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},m))}));t.a=Object(c.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(u)},function(e,t,n){"use strict";var r=n(0),o=n(48),i=n(103),a=n(44);var c="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(e,t){var n=e.children,u=e.container,l=e.disablePortal,s=void 0!==l&&l,f=e.onRendered,d=r.useState(null),p=d[0],h=d[1],v=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return c((function(){s||h(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(u)||document.body)}),[u,s]),c((function(){if(p&&!s)return Object(i.a)(t,p),function(){Object(i.a)(t,null)}}),[t,p,s]),c((function(){f&&(p||s)&&f()}),[f,p,s]),s?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:p?o.createPortal(n,p):p}));t.a=u},function(e,t,n){"use strict";var r=n(0),o=n(89);t.a=Object(o.a)(r.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings")},function(e,t,n){"use strict";var r=n(0),o=n(89);t.a=Object(o.a)(r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}),"ImageOutlined")},function(e,t,n){"use strict";var r=n(4),o=n(101),i=n(15),a=n(0),c=n(223),u=n(98),l=n(127),s=n(44);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,v=e.in,m=e.onEnter,b=e.onEntered,y=e.onEntering,g=e.onExit,w=e.onExited,O=e.onExiting,x=e.style,j=e.timeout,E=void 0===j?"auto":j,k=e.TransitionComponent,S=void 0===k?c.a:k,L=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=a.useRef(),T=a.useRef(),I=Object(u.a)(),_=I.unstable_strictMode&&!h,N=a.useRef(null),A=Object(s.a)(n.ref,t),P=Object(s.a)(_?N:void 0,A),R=function(e){return function(t,n){if(e){var r=_?[N.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],c=i[1];void 0===c?e(a):e(a,c)}}},M=R(y),F=R((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:x,timeout:E},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===E?(n=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=o,e.style.transition=[I.transitions.create("opacity",{duration:n,delay:i}),I.transitions.create("transform",{duration:.666*n,delay:i})].join(","),m&&m(e,t)})),D=R(b),B=R(O),U=R((function(e){var t,n=Object(l.a)({style:x,timeout:E},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===E?(t=I.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[I.transitions.create("opacity",{duration:t,delay:o}),I.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),g&&g(e)})),z=R(w);return a.useEffect((function(){return function(){clearTimeout(C.current)}}),[]),a.createElement(S,Object(r.a)({appear:!0,in:v,nodeRef:_?N:void 0,onEnter:F,onEntered:D,onEntering:M,onExit:U,onExited:z,onExiting:B,addEndListener:function(e,t){var n=_?e:t;"auto"===E&&(C.current=setTimeout(n,T.current||0))},timeout:"auto"===E?null:E},L),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||v?void 0:"hidden"},d[e],x,n.props.style),ref:P},t))}))}));p.muiSupportAuto=!0,t.a=p},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(23),u=n(60),l=n(206),s=n(31),f=i.forwardRef((function(e,t){var n=e.edge,c=void 0!==n&&n,u=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,v=e.disabled,m=void 0!==v&&v,b=e.disableFocusRipple,y=void 0!==b&&b,g=e.size,w=void 0===g?"medium":g,O=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(l.a,Object(r.a)({className:Object(a.a)(f.root,d,"default"!==h&&f["color".concat(Object(s.a)(h))],m&&f.disabled,"small"===w&&f["size".concat(Object(s.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[c]),centerRipple:!0,focusRipple:!y,disabled:m,ref:t},O),i.createElement("span",{className:f.label},u))}));t.a=Object(c.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(133),u=n(23),l=n(31),s=n(160),f=n(118),d=i.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,p=e.color,h=void 0===p?"primary":p,v=e.component,m=void 0===v?"div":v,b=e.disabled,y=void 0!==b&&b,g=e.error,w=void 0!==g&&g,O=e.fullWidth,x=void 0!==O&&O,j=e.focused,E=e.hiddenLabel,k=void 0!==E&&E,S=e.margin,L=void 0===S?"none":S,C=e.required,T=void 0!==C&&C,I=e.size,_=e.variant,N=void 0===_?"standard":_,A=Object(o.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),P=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if(Object(s.a)(t,["Input","Select"])){var n=Object(s.a)(t,["Select"])?t.props.input:t;n&&Object(c.a)(n.props)&&(e=!0)}})),e})),R=P[0],M=P[1],F=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){Object(s.a)(t,["Input","Select"])&&Object(c.b)(t.props,!0)&&(e=!0)})),e})),D=F[0],B=F[1],U=i.useState(!1),z=U[0],G=U[1],W=void 0!==j?j:z;y&&W&&G(!1);var H=i.useCallback((function(){B(!0)}),[]),K={adornedStart:R,setAdornedStart:M,color:h,disabled:y,error:w,filled:D,focused:W,fullWidth:x,hiddenLabel:k,margin:("small"===I?"dense":void 0)||L,onBlur:function(){G(!1)},onEmpty:i.useCallback((function(){B(!1)}),[]),onFilled:H,onFocus:function(){G(!0)},registerEffect:undefined,required:T,variant:N};return i.createElement(f.a.Provider,{value:K},i.createElement(m,Object(r.a)({className:Object(a.a)(u.root,d,"none"!==L&&u["margin".concat(Object(l.a)(L))],x&&u.fullWidth),ref:t},A),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(23),l=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,s=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,m=void 0===v?"text":v,b=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(c.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:s,inputComponent:d,multiline:h,ref:t,type:m},b))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(23),l=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,s=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,m=void 0===v?"text":v,b=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(c.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:s,inputComponent:d,multiline:h,ref:t,type:m},b))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(l)},function(e,t,n){"use strict";var r=n(268);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(4),o=n(0),i=n.n(o),a=n(167),c=n(205),u=n(168);t.a=function(e){var t=e.children,n=e.theme,o=Object(c.a)(),l=i.a.useMemo((function(){var e=null===o?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(o,n);return null!=e&&(e[u.a]=null!==o),e}),[n,o]);return i.a.createElement(a.a.Provider,{value:l},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(73),o=n(86);function i(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.thisArg))},e}(),c=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r.a(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},t}(o.a)},,function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(48),a=n.n(i),c=n(195),u=n(2),l=n(1),s=n(11),f=n(28),d=n(270),p=n(96),h=n.n(p),v=n(27),m=n(24),b=n(7),y=n(17),g=n(196),w=n(26),O=n(184),x=n(269),j=n(112),E=n(197),k=n(108),S=n(30),L=n(8),C=n(162);function T(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}function I(){return new Promise((function(e){setTimeout(e,0)}))}var _=n(97),N=n(18),A=n(9),P=n(5),R=n(4),M=n(15),F=n(54),D=n(19),B=n(23),U=n(31),z=n(275),G=n(101),W=n(223),H=n(123),K=n(98),V=n(127),q=n(44),$={entering:{opacity:1},entered:{opacity:1}},Y={enter:H.b.enteringScreen,exit:H.b.leavingScreen},X=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,c=e.onEnter,u=e.onEntered,l=e.onEntering,s=e.onExit,f=e.onExited,d=e.onExiting,p=e.style,h=e.TransitionComponent,v=void 0===h?W.a:h,m=e.timeout,b=void 0===m?Y:m,y=Object(M.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),g=Object(K.a)(),w=g.unstable_strictMode&&!i,O=r.useRef(null),x=Object(q.a)(n.ref,t),j=Object(q.a)(w?O:void 0,x),E=function(e){return function(t,n){if(e){var r=w?[O.current,t]:[t,n],o=Object(G.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},k=E(l),S=E((function(e,t){Object(V.b)(e);var n=Object(V.a)({style:p,timeout:b},{mode:"enter"});e.style.webkitTransition=g.transitions.create("opacity",n),e.style.transition=g.transitions.create("opacity",n),c&&c(e,t)})),L=E(u),C=E(d),T=E((function(e){var t=Object(V.a)({style:p,timeout:b},{mode:"exit"});e.style.webkitTransition=g.transitions.create("opacity",t),e.style.transition=g.transitions.create("opacity",t),s&&s(e)})),I=E(f);return r.createElement(v,Object(R.a)({appear:!0,in:a,nodeRef:w?O:void 0,onEnter:S,onEntered:L,onEntering:k,onExit:T,onExited:I,onExiting:C,timeout:b},y),(function(e,t){return r.cloneElement(n,Object(R.a)({style:Object(R.a)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},$[e],p,n.props.style),ref:j},t))}))})),Q=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,c=void 0!==a&&a,u=e.open,l=e.transitionDuration,s=e.TransitionComponent,f=void 0===s?X:s,d=Object(M.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,Object(R.a)({in:u,timeout:l},d),r.createElement("div",{className:Object(D.a)(o.root,i,c&&o.invisible),"aria-hidden":!0,ref:t},n))})),J=Object(B.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Q),Z=n(258),ee={enter:H.b.enteringScreen,exit:H.b.leavingScreen},te=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,c=e.disableBackdropClick,u=void 0!==c&&c,l=e.disableEscapeKeyDown,s=void 0!==l&&l,f=e.fullScreen,d=void 0!==f&&f,p=e.fullWidth,h=void 0!==p&&p,v=e.maxWidth,m=void 0===v?"sm":v,b=e.onBackdropClick,y=e.onClose,g=e.onEnter,w=e.onEntered,O=e.onEntering,x=e.onEscapeKeyDown,j=e.onExit,E=e.onExited,k=e.onExiting,S=e.open,L=e.PaperComponent,C=void 0===L?Z.a:L,T=e.PaperProps,I=void 0===T?{}:T,_=e.scroll,N=void 0===_?"paper":_,A=e.TransitionComponent,P=void 0===A?X:A,F=e.transitionDuration,B=void 0===F?ee:F,G=e.TransitionProps,W=e["aria-describedby"],H=e["aria-labelledby"],K=Object(M.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),V=r.useRef();return r.createElement(z.a,Object(R.a)({className:Object(D.a)(i.root,a),BackdropComponent:J,BackdropProps:Object(R.a)({transitionDuration:B},n),closeAfterTransition:!0},u?{disableBackdropClick:u}:{},{disableEscapeKeyDown:s,onEscapeKeyDown:x,onClose:y,open:S,ref:t},K),r.createElement(P,Object(R.a)({appear:!0,in:S,timeout:B,onEnter:g,onEntering:O,onEntered:w,onExit:j,onExiting:k,onExited:E,role:"none presentation"},G),r.createElement("div",{className:Object(D.a)(i.container,i["scroll".concat(Object(U.a)(N))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===V.current&&(V.current=null,b&&b(e),!u&&y&&y(e,"backdropClick"))},onMouseDown:function(e){V.current=e.target}},r.createElement(C,Object(R.a)({elevation:24,role:"dialog","aria-describedby":W,"aria-labelledby":H},I,{className:Object(D.a)(i.paper,i["paperScroll".concat(Object(U.a)(N))],i["paperWidth".concat(Object(U.a)(String(m)))],I.className,d&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),ne=Object(B.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(F.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(F.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(F.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(F.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(F.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(te),re=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,c=Object(M.a)(e,["classes","className","dividers"]);return r.createElement("div",Object(R.a)({className:Object(D.a)(n.root,o,a&&n.dividers),ref:t},c))})),oe=Object(B.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(re),ie={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ae=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,c=e.color,u=void 0===c?"initial":c,l=e.component,s=e.display,f=void 0===s?"initial":s,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,v=void 0!==h&&h,m=e.paragraph,b=void 0!==m&&m,y=e.variant,g=void 0===y?"body1":y,w=e.variantMapping,O=void 0===w?ie:w,x=Object(M.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),j=l||(b?"p":O[g]||ie[g])||"span";return r.createElement(j,Object(R.a)({className:Object(D.a)(i.root,a,"inherit"!==g&&i[g],"initial"!==u&&i["color".concat(Object(U.a)(u))],v&&i.noWrap,p&&i.gutterBottom,b&&i.paragraph,"inherit"!==o&&i["align".concat(Object(U.a)(o))],"initial"!==f&&i["display".concat(Object(U.a)(f))]),ref:t},x))})),ce=Object(B.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ae),ue=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,c=Object(M.a)(e,["disableSpacing","classes","className"]);return r.createElement("div",Object(R.a)({className:Object(D.a)(i.root,a,!o&&i.spacing),ref:t},c))})),le=Object(B.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(ue),se=n(83),fe=n(33),de=function(e){var t=e.size,n=void 0===t?20:t,r=e.topColor,i=void 0===r?"currentColor":r,a=e.topOpacity,c=void 0===a?.6:a,u=e.outlineColor,l=void 0===u?"transparent":u,s=e.bottomColor,f=void 0===s?"currentColor":s,d=e.bottomOpacity,p=void 0===d?1:d;return o.a.createElement("svg",{width:n,height:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"148 164 65 65"},o.a.createElement("path",{fill:i,opacity:c,d:"M176.4,203.8v-16.1c0-7.3,6-13.3,13.3-13.3h13.6c-5.7-5.8-13.5-9.4-22.3-9.4c-17.2,0-31.2,13.9-31.2,31.2 c0,4.5,0.9,8.7,2.6,12.5h19C174.3,208.6,176.4,206.5,176.4,203.8z"}),o.a.createElement("path",{fill:f,opacity:p,d:"M209.6,183.7h-19.9c-2.2,0-4,1.8-4,4v16.1c0,7.8-6.4,14.2-14.2,14.2h-12.7c5.7,5.8,13.5,9.3,22.2,9.3 c17.2,0,31.2-13.9,31.2-31.2C212.2,191.7,211.3,187.5,209.6,183.7z"}),o.a.createElement("path",{fill:l,d:"M185.7,203.8v-16.1c0-2.2,1.8-4,4-4h19.9c-0.2-0.6-0.5-1.1-0.8-1.7c-1.1-2.1-2.4-4.2-4-6 c-0.5-0.6-1-1.1-1.5-1.7h-13.6c-7.3,0-13.3,6-13.3,13.3v16.1c0,2.7-2.2,4.9-4.9,4.9h-19c0.2,0.6,0.5,1.1,0.8,1.7 c1.1,2.2,2.4,4.2,4,6c0.5,0.6,1,1.1,1.5,1.7h12.7C179.4,217.9,185.7,211.6,185.7,203.8z"}))},pe=Object(O.a)((function(e){return{firstContentBlock:{"&&&":{paddingTop:e.spacing(4)}},description:{lineHeight:1.5,whiteSpace:"pre-line",color:e.palette.text.secondary,"& a":{color:"inherit",textUnderlineOffset:"2px","&:hover":{color:e.palette.text.primary}}}}})),he=function(){var e=Object(s.b)(),t=pe(),n=Object(r.useCallback)((function(){e(Object(y.q)("showWelcome",!1))}),[e]);return Object(se.a)(n),o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"welcome",open:!0,onClose:n},o.a.createElement(oe,{className:t.firstContentBlock},o.a.createElement(de,{size:60,topColor:"#0083dd",bottomColor:"#0083dd"})),o.a.createElement(oe,null,o.a.createElement(ce,{variant:"h5"},"Thanks for installing Session Buddy!")),o.a.createElement(oe,{className:t.description},"To restore data from a backup, ",o.a.createElement("a",{href:"https://sessionbuddy.com/restore",target:"_blank",rel:"noopener"},"click here")),o.a.createElement(le,null,o.a.createElement(fe.a,{label:"Close",onClick:n})))},ve=n(14),me=n(255),be=n(60),ye=n(262),ge=n(230),we=n(205),Oe=n(259),xe=n(124),je=n(103);function Ee(e){return"function"===typeof e?e():e}var ke="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,Se={},Le=r.forwardRef((function(e,t){var n=e.anchorEl,o=e.children,i=e.container,a=e.disablePortal,c=void 0!==a&&a,u=e.keepMounted,l=void 0!==u&&u,s=e.modifiers,f=e.open,d=e.placement,p=void 0===d?"bottom":d,h=e.popperOptions,v=void 0===h?Se:h,m=e.popperRef,b=e.style,y=e.transition,g=void 0!==y&&y,w=Object(M.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),O=r.useRef(null),x=Object(q.a)(O,t),j=r.useRef(null),E=Object(q.a)(j,m),k=r.useRef(E);ke((function(){k.current=E}),[E]),r.useImperativeHandle(m,(function(){return j.current}),[]);var S=r.useState(!0),L=S[0],C=S[1],T=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,Object(we.a)()),I=r.useState(T),_=I[0],N=I[1];r.useEffect((function(){j.current&&j.current.update()}));var A=r.useCallback((function(){if(O.current&&n&&f){j.current&&(j.current.destroy(),k.current(null));var e=function(e){N(e.placement)},t=(Ee(n),new ge.a(Ee(n),O.current,Object(R.a)({placement:T},v,{modifiers:Object(R.a)({},c?{}:{preventOverflow:{boundariesElement:"window"}},s,v.modifiers),onCreate:Object(xe.a)(e,v.onCreate),onUpdate:Object(xe.a)(e,v.onUpdate)})));k.current(t)}}),[n,c,s,f,T,v]),P=r.useCallback((function(e){Object(je.a)(x,e),A()}),[x,A]),F=function(){j.current&&(j.current.destroy(),k.current(null))};if(r.useEffect((function(){return function(){F()}}),[]),r.useEffect((function(){f||g||F()}),[f,g]),!l&&!f&&(!g||L))return null;var D={placement:_};return g&&(D.TransitionProps={in:f,onEnter:function(){C(!1)},onExited:function(){C(!0),F()}}),r.createElement(Oe.a,{disablePortal:c,container:i},r.createElement("div",Object(R.a)({ref:P,role:"tooltip"},w,{style:Object(R.a)({position:"fixed",top:0,left:0,display:f||!l||g?null:"none"},b)}),"function"===typeof o?o(D):o))}));var Ce=n(177),Te=n(153);function Ie(e){return Math.round(1e5*e)/1e5}var _e=!1,Ne=null;var Ae=r.forwardRef((function(e,t){var n=e.arrow,o=void 0!==n&&n,a=e.children,c=e.classes,u=e.disableFocusListener,l=void 0!==u&&u,s=e.disableHoverListener,f=void 0!==s&&s,d=e.disableTouchListener,p=void 0!==d&&d,h=e.enterDelay,v=void 0===h?100:h,m=e.enterNextDelay,b=void 0===m?0:m,y=e.enterTouchDelay,g=void 0===y?700:y,w=e.id,O=e.interactive,x=void 0!==O&&O,j=e.leaveDelay,E=void 0===j?0:j,k=e.leaveTouchDelay,S=void 0===k?1500:k,L=e.onClose,C=e.onOpen,T=e.open,I=e.placement,_=void 0===I?"bottom":I,N=e.PopperComponent,A=void 0===N?Le:N,P=e.PopperProps,F=e.title,B=e.TransitionComponent,z=void 0===B?ye.a:B,W=e.TransitionProps,H=Object(M.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),V=Object(K.a)(),$=r.useState(),Y=$[0],X=$[1],Q=r.useState(null),J=Q[0],Z=Q[1],ee=r.useRef(!1),te=r.useRef(),ne=r.useRef(),re=r.useRef(),oe=r.useRef(),ie=Object(Te.a)({controlled:T,default:!1,name:"Tooltip",state:"open"}),ae=Object(G.a)(ie,2),ce=ae[0],ue=ae[1],le=ce,se=function(e){var t=r.useState(e),n=t[0],o=t[1],i=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}(w);r.useEffect((function(){return function(){clearTimeout(te.current),clearTimeout(ne.current),clearTimeout(re.current),clearTimeout(oe.current)}}),[]);var fe=function(e){clearTimeout(Ne),_e=!0,ue(!0),C&&C(e)},de=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),ee.current&&"touchstart"!==t.type||(Y&&Y.removeAttribute("title"),clearTimeout(ne.current),clearTimeout(re.current),v||_e&&b?(t.persist(),ne.current=setTimeout((function(){fe(t)}),_e?b:v)):fe(t))}},pe=Object(Ce.a)(),he=pe.isFocusVisible,ve=pe.onBlurVisible,be=pe.ref,ge=r.useState(!1),we=ge[0],Oe=ge[1],xe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){Y||X(t.currentTarget),he(t)&&(Oe(!0),de()(t));var n=a.props;n.onFocus&&e&&n.onFocus(t)}},Ee=function(e){clearTimeout(Ne),Ne=setTimeout((function(){_e=!1}),800+E),ue(!1),L&&L(e),clearTimeout(te.current),te.current=setTimeout((function(){ee.current=!1}),V.transitions.duration.shortest)},ke=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=a.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),we&&(Oe(!1),ve())),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===Y&&n.onMouseLeave(t),clearTimeout(ne.current),clearTimeout(re.current),t.persist(),re.current=setTimeout((function(){Ee(t)}),E)}},Se=function(e){ee.current=!0;var t=a.props;t.onTouchStart&&t.onTouchStart(e)},Ie=Object(q.a)(X,t),Ae=Object(q.a)(be,Ie),Pe=r.useCallback((function(e){Object(je.a)(Ae,i.findDOMNode(e))}),[Ae]),Re=Object(q.a)(a.ref,Pe);""===F&&(le=!1);var Me=!le&&!f,Fe=Object(R.a)({"aria-describedby":le?se:null,title:Me&&"string"===typeof F?F:null},H,a.props,{className:Object(D.a)(H.className,a.props.className),onTouchStart:Se,ref:Re}),De={};p||(Fe.onTouchStart=function(e){Se(e),clearTimeout(re.current),clearTimeout(te.current),clearTimeout(oe.current),e.persist(),oe.current=setTimeout((function(){de()(e)}),g)},Fe.onTouchEnd=function(e){a.props.onTouchEnd&&a.props.onTouchEnd(e),clearTimeout(oe.current),clearTimeout(re.current),e.persist(),re.current=setTimeout((function(){Ee(e)}),S)}),f||(Fe.onMouseOver=de(),Fe.onMouseLeave=ke(),x&&(De.onMouseOver=de(!1),De.onMouseLeave=ke(!1))),l||(Fe.onFocus=xe(),Fe.onBlur=ke(),x&&(De.onFocus=xe(!1),De.onBlur=ke(!1)));var Be=r.useMemo((function(){return Object(me.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(J),element:J}}}},P)}),[J,P]);return r.createElement(r.Fragment,null,r.cloneElement(a,Fe),r.createElement(A,Object(R.a)({className:Object(D.a)(c.popper,x&&c.popperInteractive,o&&c.popperArrow),placement:_,anchorEl:Y,open:!!Y&&le,id:Fe["aria-describedby"],transition:!0},De,Be),(function(e){var t=e.placement,n=e.TransitionProps;return r.createElement(z,Object(R.a)({timeout:V.transitions.duration.shorter},n,W),r.createElement("div",{className:Object(D.a)(c.tooltip,c["tooltipPlacement".concat(Object(U.a)(t.split("-")[0]))],ee.current&&c.touch,o&&c.tooltipArrow)},F,o?r.createElement("span",{className:c.arrow,ref:Z}):null))})))})),Pe=Object(B.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(be.a)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(Ie(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(be.a)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(Ie(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(F.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(F.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(F.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(F.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(Ae),Re=n(61),Me=n(187),Fe=n(3),De=n(50),Be=n(51),Ue=function(e){var t=e.translate,n=void 0===t?function(e){return null!==e&&void 0!==e?e:{width:0,height:0}}:t,o=e.throttleDelay,i=void 0===o?150:o,a=Object(r.useState)(n),c=Object(ve.a)(a,2),u=c[0],l=c[1];return Object(r.useLayoutEffect)((function(){var e=h()((function(){l((function(e){var t=n({width:window.innerWidth,height:window.innerHeight}),r=t.width,o=t.height;return e.width!==r||e.height!==o?{width:r,height:o}:e}))}),i,{leading:!0,trailing:!0});return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[i,n]),u},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.toleranceTop,n=void 0===t?1:t,o=e.toleranceBottom,i=void 0===o?1:o,a=e.ref,c=Object(r.useState)("top"),u=Object(ve.a)(c,2),l=u[0],s=u[1],f=Object(r.useRef)(),d=Object(r.useMemo)((function(){return h()(function(){var e;return function(){if(f.current){var t=f.current,r=t.scrollTop,o=t.scrollHeight,a=t.clientHeight,c=r<=n?"top":o-a-r<=i?"bottom":"middle";c!==e&&(s(c),e=c)}}}(),60,{leading:!0,trailing:!0})}),[n,i,s]);return[l,Object(r.useMemo)((function(){var e,t;return function(n){n?(a&&(a.current=n),n.addEventListener("scroll",d),f.current=n,(e=new ResizeObserver((function(){d()}))).observe(n),(t=new MutationObserver((function(){d()}))).observe(n,{childList:!0}),d()):(f.current&&f.current.removeEventListener("scroll",d),e&&(e.disconnect(),e=null),t&&(t.disconnect(),t=null))}}),[d,a])]},Ge=n(45),We=n(70),He=n(62),Ke=n(53),Ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.slow,r=void 0===n?50:n,o=t.verySlow,i=void 0===o?100:o,a=t.report,c=void 0===a?"all":a,u=t.prod,l=t.unit,s=void 0===l?"ms":l,f=performance.now(),d=0,p=0;return{log:function(t){if(u){var n,o=performance.now(),a=o-f,l=d?o-d:a,s=Math.max(a,l);if(d=o,p++,"all"===c||"slow"===c&&s>r||"verySlow"===c&&s>i)(n=console).log.apply(n,["%c".concat(t||e,": %c").concat(v(l)).concat(l===a?"":"%c (#".concat(p," total: %c").concat(v(a),"%c)")),Object(Ke.c)(Ke.b.gray),Object(Ke.c)(h(l))].concat(Object(Fe.a)(l===a?[]:[Object(Ke.c)(Ke.b.gray),Object(Ke.c)(h(a)),Object(Ke.c)(Ke.b.gray)])));return a}}};function h(e){return e>i?Ke.b.red:e>r?Ke.b.yellow:Ke.b.green}function v(e){var t="s"===s?e/1e3:e,n=Math.round(100*t)/100;return"".concat(n.toLocaleString()," ").concat("s"===s?"s":"ms")}},qe=n(39),$e=function(e){var t=Object(f.c)(Object(y.l)("experiments"));return Object(qe.c)({keys:e,savedExperiments:t})},Ye=n(129),Xe=n(117),Qe=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Je(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||Qe(r)&&Qe(o)))return!1;var r,o;return!0}var Ze=function(e,t){var n;void 0===t&&(t=Je);var r,o=[],i=!1;return function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}},et=(n(76),"object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()});function tt(e){cancelAnimationFrame(e.id)}function nt(e,t){var n=et();var r={id:requestAnimationFrame((function o(){et()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var rt=-1;function ot(e){if(void 0===e&&(e=!1),-1===rt||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),rt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return rt}var it=null;function at(e){if(void 0===e&&(e=!1),null===it||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?it="positive-descending":(t.scrollLeft=1,it=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),it}return it}var ct=function(e,t){return e};function ut(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,c=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,l=e.initInstanceProps,s=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return(t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Object(Ye.a)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Object(Ye.a)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ze((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Ze((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,c=o.itemSize,u=o.layout,l=r._getItemStyleCache(s&&c,s&&u,s&&a);if(l.hasOwnProperty(e))t=l[e];else{var f=n(r.props,e,r._instanceProps),d=i(r.props,e,r._instanceProps),p="horizontal"===a||"horizontal"===u,h="rtl"===a,v=p?f:0;l[e]=t={position:"absolute",left:h?void 0:v,right:h?v:void 0,top:p?0:f,height:p?"100%":d,width:p?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Ze((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(at()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&tt(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=nt(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Object(Xe.a)(t,e),t.getDerivedStateFromProps=function(e,t){return lt(e,t),f(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var c=0;if(this._outerRef){var u=this._outerRef;c="vertical"===o?u.scrollWidth>u.clientWidth?ot():0:u.scrollHeight>u.clientHeight?ot():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,c))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"===typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(at()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,c=i.scrollWidth;i.scrollLeft=c-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&tt(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,c=e.innerRef,u=e.innerElementType,l=e.innerTagName,s=e.itemCount,f=e.itemData,d=e.itemKey,p=void 0===d?ct:d,h=e.layout,v=e.outerElementType,m=e.outerTagName,b=e.style,y=e.useIsScrolling,g=e.width,w=this.state.isScrolling,O="horizontal"===i||"horizontal"===h,x=O?this._onScrollHorizontal:this._onScrollVertical,j=this._getRangeToRender(),E=j[0],k=j[1],S=[];if(s>0)for(var L=E;L<=k;L++)S.push(Object(r.createElement)(t,{data:f,key:p(L,f),index:L,isScrolling:y?w:void 0,style:this._getItemStyle(L)}));var C=o(this.props,this._instanceProps);return Object(r.createElement)(v||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:Object(R.a)({position:"relative",height:a,width:g,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},Object(r.createElement)(u||l||"div",{children:S,ref:c,style:{height:O?"100%":C,pointerEvents:w?"none":void 0,width:O?C:"100%"}}))},d._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,c=i.scrollOffset,u=i.scrollUpdateWasRequested;this._callOnScroll(a,c,u)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var l=c(this.props,a,this._instanceProps),s=u(this.props,l,a,this._instanceProps),f=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,l-f),Math.max(0,Math.min(t-1,s+d)),l,s]},t}(r.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lt=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},st=ut({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,c=e.height,u=e.itemCount,l=e.itemSize,s=e.layout,f=e.width,d="horizontal"===a||"horizontal"===s?f:c,p=Math.max(0,u*l-d),h=Math.min(p,t*l),v=Math.max(0,t*l-d+l+i);switch("smart"===n&&(n=r>=v-d&&r<=h+d?"auto":"center"),n){case"start":return h;case"end":return v;case"center":var m=Math.round(v+(h-v)/2);return m<Math.ceil(d/2)?0:m>p+Math.floor(d/2)?p:m;default:return r>=v&&r<=h?r:r<v?v:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,c=e.layout,u=e.width,l=t*a,s="horizontal"===r||"horizontal"===c?u:o,f=Math.ceil((s+n-l)/a);return Math.max(0,Math.min(i-1,t+f-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var ft=n(221),dt=n(263),pt=n(109),ht=n(10),vt=n(56),mt=n(20),bt=n(13);function yt(e,t){var n=function(e,t){var n=0,r=t?e.split("").reverse().join(""):e;r.split("").forEach((function(e){n=e.charCodeAt(0)+((n<<5)-n)}));for(var o="#",i=0;i<3;i++){o+=(n>>8*i&255).toString(16).padStart(2,"0")}return o}(e,t);return{color:function(e,t){if("#"!==e[0]||7!==e.length)throw new Error("invalid hex color");e=e.slice(1);var n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);if(t)return.299*n+.587*r+.114*o>186?"#000000":"#FFFFFF";return"#".concat(gt(n)).concat(gt(r)).concat(gt(o))}(n,!0),backgroundColor:n}}function gt(e){return(255-e).toString(16).padStart(2,"0")}var wt=n(35),Ot=Object(O.a)((function(e){return{NavSectionHeader:{display:"flex",height:28,paddingRight:16,paddingLeft:6,marginTop:20,marginBottom:8,whiteSpace:"nowrap",alignItems:"center",textTransform:"uppercase",color:e.palette.text.primary,"& ~ $NavSectionHeader":{marginTop:36}},scrollTopButton:{padding:e.spacing(1),marginLeft:"auto"},icon:{display:"flex",alignItems:"center",justifyContent:"center",marginLeft:e.spacing(1),"& svg":{height:16,width:16}}}})),xt=function(e){var t=e.title,n=e.icon,r=e.onClick,i=e.onDblClick,a=e.onScrollTopClick,c=Ot();return o.a.createElement("div",{className:c.NavSectionHeader},o.a.createElement("div",{onClick:Object(He.h)({single:r,double:i})},t),n?o.a.createElement(Pe,{title:"Collections are filtered by search",placement:"top"},o.a.createElement("div",{className:c.icon},n)):null,a?o.a.createElement(dt.a,{className:c.scrollTopButton,tabIndex:-1,onClick:a},o.a.createElement(mt.ArrowUpIcon,null)):null)},jt=n(32),Et=Object(O.a)((function(e){return{mark:{borderRadius:2,color:"inherit",backgroundColor:"dark"===e.palette.type?"#ffff0045":"#fffa00c4",border:"dark"===e.palette.type?"1px solid #ffff00d9":"none"}}})),kt=function(e){var t=e.text,n=e.split,r=Et();if(!n)return o.a.createElement("span",null,t);var i=n.parts,a=n.matchParts;return a.length?o.a.createElement("span",null,i.map((function(e,t){return a.includes(e)?o.a.createElement("mark",{key:t,className:r.mark},e):e}))):o.a.createElement("span",null,t)},St=Object(O.a)((function(e){return{NavTile:{position:"relative",padding:16,marginBottom:10,fontSize:"0.85rem",borderRadius:e.shape.borderRadius,fontWeight:400,color:e.palette.text.primary,backgroundColor:e.palette.background.paper,boxShadow:"dark"===e.palette.type?void 0:"-4px 2px 16px 0 #aaaaaa29",cursor:"pointer","&.selected":{boxShadow:"none",color:e.palette.primary.contrastText,backgroundColor:"dark"===e.palette.type?"#646464":"#6e6e6e",".focus-container:focus-within &, .isNavTileMenuOpen &":{backgroundColor:e.palette.primary.main},"&.invalid":{color:"dark"===e.palette.type?"#ffb4b4":"#ffbec0",".focus-container:focus-within &, .isNavTileMenuOpen &":{color:e.palette.error.contrastText,backgroundColor:e.palette.error.main}}},"&.invalid":{color:e.palette.error.light},"&:hover":{"& $menuButtonContainer":{visibility:"visible"},"& $title":{width:"calc(100% - 44px)"},"& $swatch + $title":{width:"calc(100% - 44px - 14px)"},"& $description":{width:"calc(100% - 44px)"},"& $pinned":{display:"none"}},"& mark":{color:"inherit"},"&.selected mark":{color:"dark"===e.palette.type?"inherit":"#000"}},menuButtonContainer:{visibility:"hidden",display:"flex",position:"absolute",top:0,right:10,height:"100%",alignItems:"center","& button":{transition:"none",padding:8,"& svg":{height:"2rem",width:"2rem",color:e.palette.text.secondary,".selected &":{color:e.palette.primary.secondaryContrastText},".selected.invalid &":{color:e.palette.error.secondaryContrastText}},"&:hover":{backgroundColor:e.palette.nxsAction.hover.main,".selected &":{backgroundColor:"#00000038"},"& svg":{color:e.palette.text.primary,".selected &":{color:e.palette.primary.contrastText},".invalid &":{color:e.palette.error.light},".selected.invalid &":{color:e.palette.error.contrastText}}}}},header:{display:"flex",alignItems:"center",gap:e.spacing(1)},title:{fontSize:"1rem",fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},swatch:{width:10,minWidth:10,height:10,borderRadius:20},description:{marginTop:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre",color:e.palette.text.secondary,".selected &":{color:e.palette.primary.secondaryContrastText},".selected.invalid &":{color:e.palette.error.secondaryContrastText}},pinned:{display:"flex",justifyContent:"center",width:14,marginLeft:"auto",color:"dark"===e.palette.type?"#fff":"#474747",".selected &":{color:"#fff"},"& svg":{fontSize:"1rem"}}}})),Lt=function(e){var t=e.title,n=e.description,i=e.selected,a=e.pinned,c=e.color,u=e.invalid,l=e.highlight,s=e.onClick,f=e.onMenuButtonClick,d=e.onContainerFocusNeeded,p=St(),h=Object(r.useRef)(null),v=Object(S.a)(p.NavTile,{invalid:u,selected:i});return o.a.createElement("div",{className:v,onMouseDown:function(e){0===e.button&&s(Object(We.c)(e))},onContextMenu:function(e){h.current&&(f({menuButtonEl:h.current}),i||s(Object(We.c)(e)),e.preventDefault())}},o.a.createElement("div",{className:p.header},c?o.a.createElement("div",{className:p.swatch,style:{backgroundColor:c}}):null,o.a.createElement("div",{className:p.title},o.a.createElement(kt,{text:t||ht.a.untitled(),split:Object(jt.b)(t,l)})),a?o.a.createElement("div",{className:p.pinned},o.a.createElement(mt.PinIcon,null)):null),o.a.createElement("div",{className:p.description},"deleted"===u?"Deleted":u?"Unavailable":n),o.a.createElement("div",{className:p.menuButtonContainer},o.a.createElement(dt.a,{ref:h,"aria-label":"set-actions",tabIndex:-1,onBlur:d?function(e){e.relatedTarget||d()}:void 0,onMouseDown:function(e){0===e.button&&(f({menuButtonEl:e.currentTarget}),i||s(Object(We.c)(e)),e.preventDefault(),e.stopPropagation())}},o.a.createElement(mt.KebabIcon,null))))},Ct=n(71),Tt=n(63),It=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.onlyCollectionsAreSelected),i=Object(s.c)(b.c.selectedCollectionCount),a=Object(s.c)(b.c.onlyLocalClientEventIsSelected);return Object(r.useMemo)((function(){return n||a?{id:"delete-sets",label:"Delete ".concat(n?ht.a.collection({count:i,includeCount:i>1}):ht.a.event()),icon:o.a.createElement(mt.DeleteIcon,null),destructive:!0,onClick:function(r){t(n?b.a.deleteSelectedCollections(r.shiftKey):b.a.deleteSelectedEvents(r.shiftKey)).then((function(){null===e||void 0===e||e()}))}}:void 0}),[n,a,i,e,t])},_t={moveItemsTitle:function(e){var t=e.folderCount,n=e.linkCount;return"move ".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!1}),"?")},moveItemsText:function(e){var t=e.folderCount,n=e.linkCount;return"".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!1,includeCount:!0})," will be moved from this collection to a new one")},combineTip:function(){return"collapse selected collections into one"},saveMultiTip:function(e){return"save ".concat(e?"selection":"combined view"," as new collection")},saveTip:function(e,t){return"save ".concat(t?"selected":"all"," ").concat((e?ht.a.tab:ht.a.link)({count:wt.a})," as a collection")},addFromText:function(e){return"".concat(e?"open":"add"," ").concat((e?ht.a.tab:ht.a.link)({count:wt.a})," from text")},openTip:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selected,n=e.ctrlOrMetaKey,r=e.shiftKey;return"open ".concat(t?"selected ":"").concat(ht.a.tab({count:wt.a})).concat(n?" in this ".concat(ht.a.window()):r?" in new ".concat(ht.a.window()):"")},saveAndCloseItemsTitle:function(e){var t=e.windowCount,n=e.tabCount;return"save and close ".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!0}),"?")},saveAndCloseItemsText:function(e){var t=e.windowCount,n=e.tabCount;return"".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!0,includeCount:!0})," will be saved to a new collection and closed")}},Nt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.multipleSetsAreSelected),i=Object(s.c)(b.c.selectedCollectionCount),a=Object(s.c)(b.c.someSelectedSetsArePending),c=Object(s.c)(b.c.selectedSetsHaveUnits),u=n&&i>0;return Object(r.useMemo)((function(){return u?{id:"combine",label:"Combine",icon:o.a.createElement(mt.MergeIcon,null),disabled:!c||a,tip:Object(bt.d)(_t.combineTip()),onClick:function(){t(b.a.createCollectionFromSelectedSets({combine:!0})).then((function(){null===e||void 0===e||e()}))}}:void 0}),[u,a,c,e,t])},At=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.singleCollectionIsSelected),i=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),a=Object(s.c)(b.c.selectedSetsHaveUnits);return Object(r.useMemo)((function(){return n?{id:"clone-collection",label:"Clone collection",icon:o.a.createElement(mt.CloneIcon,null),disabled:i||!a,onClick:function(){t(b.a.createCollectionFromSelectedSets({propagateColor:!0})).then((function(){null===e||void 0===e||e()}))}}:void 0}),[n,i,a,e,t])},Pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreItemSelection,n=e.onActionCompleted,i=Object(f.b)(),a=Object(s.c)(b.c.onlyLocalClientIsSelected),c=Object(s.c)(b.c.singleRemoteClientIsSelected),u=Object(s.c)(b.c.multipleSetsAreSelected),l=Object(s.c)(b.c.someSelectedSetsArePending),d=Object(s.c)(b.c.selectedSetsHaveUnits),p=Object(s.c)(b.c.hasItemSelection),h=p&&!t;return Object(r.useMemo)((function(){return a||c||u?{id:"save-session",label:"Save",icon:o.a.createElement(mt.CollectionIcon,null),disabled:!d||l,tip:Object(bt.d)(u?_t.saveMultiTip(p):_t.saveTip(!0,p)),onClick:function(){var e=i(Object(b.d)(b.c.onlyLocalClientNowIsSelected));i(b.a.createCollectionFromSelectedSets({selectedItemsOnly:h,propagateColor:!0})).then((function(){e?i(Object(y.k)("askForNameWhenSavingCollection"))?i(Object(j.a)({isNew:!0,onEditingEnded:n})):null===n||void 0===n||n():null===n||void 0===n||n()}))}}:void 0}),[a,c,u,d,l,p,h,n,i])},Rt=n(163),Mt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.onlyLocalClientNowIsSelected),i=Object(s.c)(b.c.singleRemoteClientIsSelected),a=Object(s.c)(b.c.singleCollectionIsSelected),c=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),u=Object(s.c)(b.c.hasItemSelection);return Object(r.useMemo)((function(){return!u&&(n||i||a)?{id:"add-from-text",label:a?"Add from text...":"Open from text...",icon:o.a.createElement(mt.AddIcon,null),disabled:c,tip:Object(bt.d)(_t.addFromText(!a)),onClick:function(){t(Object(Rt.c)({onSessionEnded:e}))}}:void 0}),[u,n,i,a,c,e,t])},Ft=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.onlyLocalClientNowIsSelected),i=Object(s.c)(b.c.singleRemoteClientIsSelected),a=Object(s.c)(b.c.singleCollectionIsSelected),c=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid);return Object(r.useMemo)((function(){return n||i||a?{id:"edit-set",label:a?"Edit collection...":"Edit browser...",disabled:c,icon:o.a.createElement(mt.EditIcon,null),onClick:function(){t(Object(j.a)({onEditingEnded:e}))}}:void 0}),[n,i,a,c,e,t])};function Dt(e,t,n){"Control"===e?n.ctrlKey=t:"Meta"===e?n.metaKey=t:"Shift"===e?n.shiftKey=t:"Alt"===e&&(n.altKey=t)}var Bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement,t=Object(r.useState)({ctrlKey:!1,metaKey:!1,shiftKey:!1,altKey:!1}),n=Object(ve.a)(t,2),o=n[0],i=n[1];return Object(r.useEffect)((function(){var t=function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey,o=e.altKey;i((function(e){return e.ctrlKey!==t||e.metaKey!==n||e.shiftKey!==r||e.altKey!==o?{ctrlKey:t,metaKey:n,shiftKey:r,altKey:o}:e}))},n=function(){i((function(e){return e.ctrlKey||e.metaKey||e.shiftKey||e.altKey?{ctrlKey:!1,metaKey:!1,shiftKey:!1,altKey:!1}:e}))};e.addEventListener("keydown",t),e.addEventListener("keyup",t),window.addEventListener("blur",n);var r=Object(He.i)(e,(function(){n()}));return function(){e.removeEventListener("keydown",t),e.removeEventListener("keyup",t),window.removeEventListener("blur",n),r()}}),[e]),o},Ut={};var zt=function(){return"some ".concat(ht.a.tab({count:wt.a})," could not be opened")},Gt=function(e){var t=e.folderCount,n=e.linkCount,r=e.isWindow,o=void 0!==r&&r;return"delete ".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:o}),"?")},Wt=function(e){var t=e.folderCount,n=e.linkCount,r=e.isWindow,o=void 0!==r&&r;return"".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:o,includeCount:!0})," will be permanently deleted")};function Ht(){Ht=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Kt={singleWindow:!1},Vt=function(){var e=Object(f.b)(),t=Object(r.useMemo)((function(){return function(){var t=Object(u.a)(Ht().mark((function t(n){var r,o,i,a,c,l,s,f,d,p,h,v,m,b,g=arguments;return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(b=function(){return(b=Object(u.a)(Ht().mark((function t(){var r,o,i;return Ht().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=Ut.session){t.next=3;break}throw new Error("no session");case 3:return h&&Object(A.a)("Opening tabs in optimized mode because number of tabs (".concat(l,") exceeds optimization threshold (").concat(d,")")),t.next=6,r.openTabs(n,{target:a,unfocused:c,optimized:h});case 6:return o=t.sent,(null===(i=o.unopenableUrls)||void 0===i?void 0:i.length)&&(Object(A.f)("".concat(ht.a.tab({count:i.length,includeCount:!0})," could not be opened. see https://sessionbuddy.com/tab-open-permissions/ for more information.")),e(Object(vt.e)({text:Object(bt.d)(zt()),severity:"error",timeout:L.f,actionText:Object(bt.d)(ht.a.learnMore()),action:function(){r.activateOrOpenTab("https://sessionbuddy.com/tab-open-permissions/")}}))),t.abrupt("return",o);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)},m=function(){return b.apply(this,arguments)},i=(o=g.length>1&&void 0!==g[1]?g[1]:{}).target,a=void 0===i?Kt:i,c=o.unfocused,Object(P.w)()){t.next=5;break}return t.abrupt("return",{wins:[]});case 5:if(Ut.session){t.next=7;break}throw new Error("no session");case 7:if(n.length){t.next=9;break}return t.abrupt("return",{wins:[]});case 9:return l=Object(P.r)(n).length,s=e(Object(y.k)("enableOpenOptimizations")),t.next=13,Object(qe.b)(["optimizedOpenThreshold","warnOnOpenTabCount"]);case 13:return f=t.sent,d=f.optimizedOpenThreshold,p=f.warnOnOpenTabCount,h=s&&l>d,v=l>p,t.next=20,e(Object(Tt.d)({title:"Open ".concat(ht.a.tab({count:l,includeCount:!0}),"?"),text:"This could take some time.".concat(h?"\n\nSession Buddy will reduce memory usage by automatically suspending some of these tabs.":""),bypass:!v,bypassSetting:"bypassConfirmClientItemOpen",okAction:m}));case 20:if(t.t1=r=t.sent,t.t0=null!==t.t1,!t.t0){t.next=24;break}t.t0=void 0!==r;case 24:if(!t.t0){t.next=28;break}t.t2=r,t.next=29;break;case 28:t.t2={wins:[]};case 29:return t.abrupt("return",t.t2);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}),[e]),n=Object(r.useMemo)((function(){return Object(u.a)(Ht().mark((function n(){var r,o,i,a,c,u,l,s,f,d,p,h,v,m,g=arguments;return Ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=(r=g.length>0&&void 0!==g[0]?g[0]:{}).target,i=void 0===o?"default":o,a=r.unfocused,c=e(Object(b.d)(b.c.selectedSetGroups)),u=c.windows,l=c.folders,s=e(Object(b.d)(b.c.searchTerms)),f=e(Object(b.d)(b.c.filterSearchTerms)),d=e(Object(y.k)("showAllItemMatches")),(p=!s&&!f||d?u||l:u?Object(Ge.d)(u):Object(Ge.c)(l)).length){n.next=8;break}return n.abrupt("return",{wins:[]});case 8:return h=e(Object(b.d)(b.c.itemSelections)),v=h?Object(P.C)(p,h):p,m="this-window"===i?{appendToWindow:chrome.windows.WINDOW_ID_CURRENT}:{singleWindow:"one-window"===i},n.abrupt("return",t(v,{target:m,unfocused:a}));case 12:case"end":return n.stop()}}),n)})))}),[e,t]),o=Object(r.useMemo)((function(){return function(){var n=Object(u.a)(Ht().mark((function n(r){var o,i,a,c,u,l,s,f,d,p,h,v;return Ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=r.id,i=r.ctrlOrMetaKey,a=r.shiftKey,c=e(Object(b.d)(b.c.selectedSetGroups)),u=c.windows,l=c.folders,s=e(Object(b.d)(b.c.searchTerms)),f=e(Object(b.d)(b.c.filterSearchTerms)),d=e(Object(y.k)("showAllItemMatches")),p=!s&&!f||d?u||l:u?Object(Ge.d)(u):Object(Ge.c)(l),h=p.find((function(e){return e.id===o}))){n.next=9;break}return n.abrupt("return",{wins:[]});case 9:return v=i?{appendToWindow:chrome.windows.WINDOW_ID_CURRENT}:void 0,n.abrupt("return",t([h],{target:v,unfocused:i&&!a}));case 11:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}),[e,t]);return{open:t,openSelectedItems:n,openFolder:o}},qt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Vt().openSelectedItems,n=Bt(),i=Object(He.c)(n),a=n.shiftKey,c=Object(s.c)(b.c.onlyLocalClientNowIsSelected),u=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),l=Object(s.c)(b.c.hasItemSelection),f=Object(s.c)(b.c.selectedSetsHaveUnits),d=Object(P.w)()&&!c,p=!f||u,h=Object(r.useMemo)((function(){return d?{id:"open",label:"Open",icon:i?o.a.createElement(mt.ThisWindowIcon,null):a?o.a.createElement(mt.WindowIcon,null):o.a.createElement(mt.WindowsIcon,null),disabled:p,tip:_t.openTip({selected:!!l,ctrlOrMetaKey:i,shiftKey:a}),onClick:function(){t({target:i?"this-window":a?"one-window":"default",unfocused:i&&!a}).then((function(){null===e||void 0===e||e()}))}}:null}),[d,l,p,t,i,a,e]),v=Object(r.useMemo)((function(){return d?[{id:"open-in-one-window",label:"Open in one window",icon:o.a.createElement(mt.WindowIcon,null),disabled:p,onClick:function(){t({target:"one-window"}).then((function(){null===e||void 0===e||e()}))}},{id:"open-in-this-window",label:"Open in this window",icon:o.a.createElement(mt.ThisWindowIcon,null),disabled:p,onClick:function(n){var r=n.shiftKey;t({target:"this-window",unfocused:!r}).then((function(){null===e||void 0===e||e()}))}}]:[]}),[d,p,t,e]);return{primaryOpenAction:h,secondaryOpenActions:v}};function $t(e){return"top"===e?"bottom":"right"===e?"left":"bottom"===e?"top":"left"===e?"right":"center"}function Yt(e){if("vertical"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vertical")){if("start"===e)return"top";if("end"===e)return"bottom"}return"start"===e?"left":"end"===e?"right":"center"}function Xt(e){var t,n,r=function(e){var t="".concat(e,"-center").split("-"),n=Object(ve.a)(t,2),r=n[0],o=void 0===r?"bottom":r,i=n[1];return{placementToAnchor:o,alignment:void 0===i?"end":i}}(e),o=r.placementToAnchor,i=r.alignment;return"top"===o||"bottom"===o?(t=Yt(i,"horizontal"),n=$t(o)):(t=$t(o),n=Yt(i,"vertical")),"".concat(t," ").concat(n)}var Qt=n(74),Jt=n(82);function Zt(e){return e.substring(2).toLowerCase()}var en=function(e){var t=e.children,n=e.disableReactTree,o=void 0!==n&&n,a=e.mouseEvent,c=void 0===a?"onClick":a,u=e.onClickAway,l=e.touchEvent,s=void 0===l?"onTouchEnd":l,f=r.useRef(!1),d=r.useRef(null),p=r.useRef(!1),h=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){p.current=!0}),0),function(){p.current=!1}}),[]);var v=r.useCallback((function(e){d.current=i.findDOMNode(e)}),[]),m=Object(q.a)(t.ref,v),b=Object(Jt.a)((function(e){var t=h.current;if(h.current=!1,p.current&&d.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(f.current)f.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(d.current)>-1;else n=!Object(Qt.a)(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!o&&t||u(e)}})),y=function(e){return function(n){h.current=!0;var r=t.props[e];r&&r(n)}},g={ref:m};return!1!==s&&(g[s]=y(s)),r.useEffect((function(){if(!1!==s){var e=Zt(s),t=Object(Qt.a)(d.current),n=function(){f.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,b),t.removeEventListener("touchmove",n)}}}),[b,s]),!1!==c&&(g[c]=y(c)),r.useEffect((function(){if(!1!==c){var e=Zt(c),t=Object(Qt.a)(d.current);return t.addEventListener(e,b),function(){t.removeEventListener(e,b)}}}),[b,c]),r.createElement(r.Fragment,null,r.cloneElement(t,g))},tn=n(278),nn=r.forwardRef((function(e,t){var n=e.absolute,o=void 0!==n&&n,i=e.classes,a=e.className,c=e.component,u=void 0===c?"hr":c,l=e.flexItem,s=void 0!==l&&l,f=e.light,d=void 0!==f&&f,p=e.orientation,h=void 0===p?"horizontal":p,v=e.role,m=void 0===v?"hr"!==u?"separator":void 0:v,b=e.variant,y=void 0===b?"fullWidth":b,g=Object(M.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return r.createElement(u,Object(R.a)({className:Object(D.a)(i.root,a,"fullWidth"!==y&&i[y],o&&i.absolute,s&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},g))})),rn=Object(B.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(be.a)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(nn),on=n(206),an=n(160),cn=n(132),un="undefined"===typeof window?r.useEffect:r.useLayoutEffect,ln=r.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,a=e.autoFocus,c=void 0!==a&&a,u=e.button,l=void 0!==u&&u,s=e.children,f=e.classes,d=e.className,p=e.component,h=e.ContainerComponent,v=void 0===h?"li":h,m=e.ContainerProps,b=(m=void 0===m?{}:m).className,y=Object(M.a)(m,["className"]),g=e.dense,w=void 0!==g&&g,O=e.disabled,x=void 0!==O&&O,j=e.disableGutters,E=void 0!==j&&j,k=e.divider,S=void 0!==k&&k,L=e.focusVisibleClassName,C=e.selected,T=void 0!==C&&C,I=Object(M.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),_=r.useContext(cn.a),N={dense:w||_.dense||!1,alignItems:o},A=r.useRef(null);un((function(){c&&A.current&&A.current.focus()}),[c]);var P=r.Children.toArray(s),F=P.length&&Object(an.a)(P[P.length-1],["ListItemSecondaryAction"]),B=r.useCallback((function(e){A.current=i.findDOMNode(e)}),[]),U=Object(q.a)(B,t),z=Object(R.a)({className:Object(D.a)(f.root,d,N.dense&&f.dense,!E&&f.gutters,S&&f.divider,x&&f.disabled,l&&f.button,"center"!==o&&f.alignItemsFlexStart,F&&f.secondaryAction,T&&f.selected),disabled:x},I),G=p||"li";return l&&(z.component=p||"div",z.focusVisibleClassName=Object(D.a)(f.focusVisible,L),G=on.a),F?(G=z.component||p?G:"div","li"===v&&("li"===G?G="div":"li"===z.component&&(z.component="div")),r.createElement(cn.a.Provider,{value:N},r.createElement(v,Object(R.a)({className:Object(D.a)(f.container,b),ref:U},y),r.createElement(G,z,P),P.pop()))):r.createElement(cn.a.Provider,{value:N},r.createElement(G,Object(R.a)({ref:U},z),P))})),sn=Object(B.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(ln),fn=r.forwardRef((function(e,t){var n,o=e.classes,i=e.className,a=e.component,c=void 0===a?"li":a,u=e.disableGutters,l=void 0!==u&&u,s=e.ListItemClasses,f=e.role,d=void 0===f?"menuitem":f,p=e.selected,h=e.tabIndex,v=Object(M.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==h?h:-1),r.createElement(sn,Object(R.a)({button:!0,role:d,tabIndex:n,component:c,selected:p,disableGutters:l,classes:Object(R.a)({dense:o.dense},s),className:Object(D.a)(o.root,i,p&&o.selected,!l&&o.gutters),ref:t},v))})),dn=Object(B.a)((function(e){return{root:Object(R.a)({},e.typography.body1,Object(F.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(R.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(fn),pn=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=Object(M.a)(e,["classes","className"]),a=r.useContext(cn.a);return r.createElement("div",Object(R.a)({className:Object(D.a)(n.root,o,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),hn=Object(B.a)((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(pn),vn=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,u=e.inset,l=void 0!==u&&u,s=e.primary,f=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=Object(M.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),v=r.useContext(cn.a).dense,m=null!=s?s:n;null==m||m.type===ce||c||(m=r.createElement(ce,Object(R.a)({variant:v?"body2":"body1",className:o.primary,component:"span",display:"block"},f),m));var b=d;return null==b||b.type===ce||c||(b=r.createElement(ce,Object(R.a)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},p),b)),r.createElement("div",Object(R.a)({className:Object(D.a)(o.root,i,v&&o.dense,l&&o.inset,m&&b&&o.multiline),ref:t},h),m,b)})),mn=Object(B.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(vn),bn=Object(O.a)((function(e){return{destructive:{"&:hover, &:focus":{color:e.palette.error.contrastText,backgroundColor:e.palette.error.main,"& $icon":{color:e.palette.error.contrastText}}},subAction:{paddingLeft:e.spacing(6)},icon:{}}})),yn=function(e){var t,n=e.label,r=e.icon,i=e.disabled,a=e.destructive,c=e.isSubAction,u=e.url,l=e.onClick,s=bn(),f=u?{href:u,target:"_blank",rel:"noopener"}:{};return o.a.createElement(dn,Object.assign({className:Object(S.a)((t={},Object(w.a)(t,s.destructive,!!a),Object(w.a)(t,s.subAction,!!c),t)),component:u?"a":"li",disabled:i,onClick:l},f),o.a.createElement(hn,{className:s.icon},r),o.a.createElement(mn,{primary:n}))};function gn(){gn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var wn=Object(O.a)((function(){return{icon:{transition:"rotate 150ms",rotate:"90deg"},iconOpen:{rotate:"180deg"}}})),On=function(e){var t,n=e.label,r=e.open,i=e.disabled,a=e.menu,c=e.onToggle,l=e.onActionClick,s=wn(),f=function(e){return(e||[]).filter((function(e){return!!e&&!e.hidden}))}(a);return f.length?o.a.createElement(o.a.Fragment,null,o.a.createElement(dn,{disabled:i,onClick:function(){return c()}},o.a.createElement(hn,null,o.a.createElement(mt.ArrowUpIcon,{className:Object(S.a)((t={},Object(w.a)(t,s.icon,!0),Object(w.a)(t,s.iconOpen,r),t))})),o.a.createElement(mn,{primary:n})),r?f.map((function(e){return o.a.createElement(yn,{isSubAction:!0,key:e.id||e.label,label:e.label,icon:e.icon,disabled:e.disabled,destructive:e.destructive,url:e.url,onClick:function(){var t=Object(u.a)(gn().mark((function t(n){return gn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=l,t.t1=!!e.url,t.t1){t.next=6;break}return t.next=5,e.onClick(n);case 5:t.t1=!t.sent;case 6:t.t2=t.t1,(0,t.t0)(t.t2);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})})):null):null};function xn(){xn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var jn="---",En=Object(O.a)((function(){return{paper:{minWidth:170}}})),kn=function(e){var t=e.anchorEl,n=e.placement,i=void 0===n?"bottom-end":n,a=e.skidding,c=void 0===a?0:a,s=e.distance,f=void 0===s?6:s,d=e.spec,p=e.onClose,h=En(),v=function(){p({})};function m(e){"Escape"===e.key?(e.preventDefault(),p({focusedCancel:!0})):"Tab"===e.key&&(e.preventDefault(),v())}Object(r.useLayoutEffect)((function(){var e=t&&!document.body.contains(t),n=!x.length;(e||n)&&v()})),Object(r.useEffect)((function(){t||O((function(e){return Object.keys(e).length?{}:e}))}),[t]);var b=Object(r.useState)({}),y=Object(ve.a)(b,2),g=y[0],O=y[1],x=function(e){var t=e.filter((function(e){return!!e&&(e===jn||!e.hidden)})),n=t.length-1,r=t.filter((function(e,r){return e!==jn||r!==n&&t[r+1]!==jn}));return r[0]===jn?r.slice(1):r}(d);return x.length?o.a.createElement(Le,{open:!!t,anchorEl:t,transition:!0,placement:i,style:{zIndex:1e3},modifiers:{offset:{offset:"".concat(c,", ").concat(f),order:100},flip:{flipVariationsByContent:!0,order:200},preventOverflow:{boundariesElement:"viewport",order:300}}},(function(e){var n=e.TransitionProps,r=e.placement;return o.a.createElement(ye.a,{in:null===n||void 0===n?void 0:n.in,timeout:150,style:{transformOrigin:Xt(r)}},o.a.createElement(Z.a,{elevation:10,className:h.paper},o.a.createElement(en,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(e){1===e.buttons&&(null===t||void 0===t?void 0:t.contains(e.target))||v()}},o.a.createElement(tn.a,{autoFocus:!0,autoFocusItem:!1,onKeyDown:m,onClick:function(e){e.stopPropagation()}},x.map((function(e,t){return e===jn?o.a.createElement(rn,{key:"".concat(jn).concat(t),variant:"middle",style:{outline:"none"}}):function(e){return e!==jn&&"menu"in e}(e)?o.a.createElement(On,{key:e.id,label:e.label,open:!!g[e.id]&&!e.disabled,disabled:e.disabled,menu:e.menu,onToggle:function(){O((function(t){return Object(l.a)(Object(l.a)({},t),{},Object(w.a)({},e.id,!t[e.id]))}))},onActionClick:function(e){e&&v()}}):o.a.createElement(yn,{key:e.id||e.label,label:e.label,icon:e.icon,disabled:e.disabled,destructive:e.destructive,url:e.url,onClick:function(){var t=Object(u.a)(xn().mark((function t(n){return xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=e.url,t.t0){t.next=5;break}return t.next=4,e.onClick(n);case 4:t.t0=!t.sent;case 5:if(!t.t0){t.next=7;break}v();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})})).filter(Boolean)))))})):null};var Sn=function(e){var t=e.anchorEl,n=e.onClose,r=e.onActionCompleted,i=Object(f.b)(),a=Object(s.c)(b.c.onlyCollectionsAreSelected),c=Object(s.c)(b.c.someSelectedSetsAreLoading),u=Object(s.c)(b.c.someSelectedSetsAreInvalid),l=Object(s.c)(b.c.allSelectedCollectionsArePinned),d=Object(s.c)(b.c.allSelectedCollectionsAreAtTop),p=Object(s.c)(b.c.searchTerms),h=Object(s.c)(b.c.hasItemSelection),v=Pt({ignoreItemSelection:!0,onActionCompleted:r}),m=Nt({onActionCompleted:r}),y=Mt({onActionCompleted:r}),g=At({onActionCompleted:r}),w=Ft({onActionCompleted:r}),O=It({onActionCompleted:r}),x=qt({onActionCompleted:r}).primaryOpenAction,j=[a&&!p?{label:l?"Unpin":"Pin",icon:l?o.a.createElement(mt.UnpinIcon,null):o.a.createElement(mt.PinIcon,{transform:"scale(0.9)"}),disabled:u||c,onClick:function(){try{i(l?b.a.unpinSelectedCollections():b.a.pinSelectedCollections()).then((function(){null===r||void 0===r||r()}))}catch(e){e instanceof Ct.a&&i(Object(Tt.d)({title:"I'm sorry, Dave...",text:"No more than ".concat(P.c," collections can be pinned")})).then((function(){null===r||void 0===r||r()}))}}}:null,a&&!p?{label:"Move to top",icon:o.a.createElement(mt.MoveToTopIcon,null),disabled:d||u||c,onClick:function(){i(b.a.touchSelectedCollections()).then((function(){null===r||void 0===r||r()}))}}:null,jn,v,m,y,h?null:x,jn,g,w,jn,a?O:null];return o.a.createElement(kn,{anchorEl:t,placement:"right-start",distance:18,spec:j,onClose:n})},Ln=n(67),Cn=["color","size","thickness"],Tn=Object(O.a)((function(){return{Spinner:{animationName:"$nxs-spinner-rotate",animationDuration:"400ms",animationIterationCount:"infinite",animationTimingFunction:"linear"},"@keyframes nxs-spinner-rotate":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}}})),In=function(e){var t=e.color,n=void 0===t?"#007acc":t,r=e.size,i=void 0===r?"1em":r,a=e.thickness,c=void 0===a?"s":a,u=Object(Ln.a)(e,Cn),l=Tn(),s=function(e){switch(e){case"xl":return 6;case"l":return 5;case"m":return 4;case"xs":return 2;default:return 3}}(c);return o.a.createElement("svg",Object.assign({className:l.Spinner,role:"img",height:i,width:i,viewBox:"0 0 32 32"},u),o.a.createElement("circle",{role:"presentation",cx:16,cy:16,r:14-s/2,fill:"none",stroke:n,strokeWidth:s,strokeDasharray:14*Math.PI,strokeLinecap:"round"}))};var _n={solid:"3px",shadow:"5px",tapered:"6px"},Nn={solid:"rgba(0,0,0,0.13)",shadow:"rgba(0,0,0,0.17)",tapered:"rgba(0,0,0,0.12)"},An=Object(O.a)((function(){return{ScrollHint:{position:"sticky",top:0,height:0,zIndex:100,transition:"transform 150ms",transform:function(e){var t=e.height;return"translateY(calc(-".concat(t," - 1px))")},"&.show:not(.bottom)":{transform:"none"},"&.bottom":{top:"auto",bottom:0,opacity:0,transition:"opacity 150ms","&:not(.tapered)":{transform:function(e){var t=e.height;return"translateY(calc(-".concat(t,"))")}},"&.show":{opacity:1}}},inner:{pointerEvents:"none",height:function(e){return e.height},background:function(e){var t=e.color;return"linear-gradient(".concat(t,", transparent)")},"$ScrollHint.bottom &":{background:function(e){var t=e.color;return"linear-gradient(transparent, ".concat(t,")")}},"$ScrollHint.solid &&":{background:function(e){return e.color}},"$ScrollHint.tapered &":{borderTop:function(e){var t=e.color;return"1px solid ".concat(t)},maskImage:"linear-gradient(\n 90deg,\n rgba(0, 0, 0, 0) 0%,\n black 10%,\n black 90%,\n rgba(0, 0, 0, 0) 100%\n )"},"$ScrollHint.tapered.bottom &":{borderTop:"initial",borderBottom:function(e){var t=e.color;return"1px solid ".concat(t)}}}}})),Pn=function(e){var t=e.show,n=e.position,r=e.type,i=void 0===r?"solid":r,a=e.height,c=e.color,u=An({height:a||_n[i],color:c||Nn[i]}),l=Object(S.a)(u.ScrollHint,{show:t,bottom:"bottom"===n,solid:"solid"===i,tapered:"tapered"===i});return o.a.createElement("div",{className:l},o.a.createElement("div",{className:u.inner}))},Rn=function(e){return Object(r.useMemo)((function(){return{get current(){var t;return null!==(t=e.current)&&void 0!==t?t:null}}}),[e])};function Mn(){Mn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Fn=function(e){var t=e.scrollContainerRef,n=e.selectedClass,o=void 0===n?"selected":n,i=Object(r.useCallback)((function(){var e,n;null===(e=t.current)||void 0===e||null===(n=e.querySelector(".".concat(o)))||void 0===n||n.scrollIntoView({behavior:"smooth",block:"nearest"})}),[t,o]),a=Object(r.useCallback)((function(){var e;null===(e=t.current)||void 0===e||e.scrollTo({top:0,behavior:"smooth"})}),[t]),c=Object(r.useCallback)((function(){var e;null===(e=t.current)||void 0===e||e.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})}),[t]),l=Object(r.useCallback)((function(e){"scroll-top"===e?a():"scroll-bottom"===e?c():"scroll-selected"===e&&i()}),[a,c,i]),s=Object(r.useCallback)(function(){var e=Object(u.a)(Mn().mark((function e(t,n){var r,o,i,u,s,f,d,p,h,v,m,b,y,g,w,O,x,j;return Mn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.ignore,o=n.up,i=n.down,u=n.left,s=n.right,f=n.start,d=n.end,p=n.invoke,h=n.edit,v=n.remove,m=n.escape,b=t.target,y=t.key,!Object(He.g)(b)&&!(null===r||void 0===r?void 0:r())){e.next=4;break}return e.abrupt("return");case 4:if("ArrowUp"!==y){e.next=23;break}if(!o){e.next=21;break}return t.preventDefault(),e.t0=l,e.next=10,o();case 10:if(e.t2=g=e.sent,e.t1=null!==e.t2,!e.t1){e.next=14;break}e.t1=void 0!==g;case 14:if(!e.t1){e.next=18;break}e.t3=g,e.next=19;break;case 18:e.t3="scroll-selected";case 19:e.t4=e.t3,(0,e.t0)(e.t4);case 21:e.next=123;break;case 23:if("ArrowDown"!==y){e.next=42;break}if(!i){e.next=40;break}return t.preventDefault(),e.t5=l,e.next=29,i();case 29:if(e.t7=w=e.sent,e.t6=null!==e.t7,!e.t6){e.next=33;break}e.t6=void 0!==w;case 33:if(!e.t6){e.next=37;break}e.t8=w,e.next=38;break;case 37:e.t8="scroll-selected";case 38:e.t9=e.t8,(0,e.t5)(e.t9);case 40:e.next=123;break;case 42:if("ArrowLeft"!==y){e.next=61;break}if(!u){e.next=59;break}return t.preventDefault(),e.t10=l,e.next=48,u();case 48:if(e.t12=O=e.sent,e.t11=null!==e.t12,!e.t11){e.next=52;break}e.t11=void 0!==O;case 52:if(!e.t11){e.next=56;break}e.t13=O,e.next=57;break;case 56:e.t13="scroll-selected";case 57:e.t14=e.t13,(0,e.t10)(e.t14);case 59:e.next=123;break;case 61:if("ArrowRight"!==y){e.next=80;break}if(!s){e.next=78;break}return t.preventDefault(),e.t15=l,e.next=67,s();case 67:if(e.t17=x=e.sent,e.t16=null!==e.t17,!e.t16){e.next=71;break}e.t16=void 0!==x;case 71:if(!e.t16){e.next=75;break}e.t18=x,e.next=76;break;case 75:e.t18="scroll-selected";case 76:e.t19=e.t18,(0,e.t15)(e.t19);case 78:e.next=123;break;case 80:if(!Object(He.f)(t)){e.next=88;break}if(!f){e.next=86;break}return t.preventDefault(),e.next=85,f();case 85:a();case 86:e.next=123;break;case 88:if(!Object(He.e)(t)){e.next=96;break}if(!d){e.next=94;break}return t.preventDefault(),e.next=93,d();case 93:c();case 94:e.next=123;break;case 96:if("Enter"!==y){e.next=100;break}null===p||void 0===p||p(),e.next=123;break;case 100:if("F2"!==y){e.next=104;break}null===h||void 0===h||h(),e.next=123;break;case 104:if(!Object(He.d)(y)){e.next=122;break}if(!v){e.next=120;break}return e.t20=l,e.next=109,v();case 109:if(e.t22=j=e.sent,e.t21=null!==e.t22,!e.t21){e.next=113;break}e.t21=void 0!==j;case 113:if(!e.t21){e.next=117;break}e.t23=j,e.next=118;break;case 117:e.t23="scroll-selected";case 118:e.t24=e.t23,(0,e.t20)(e.t24);case 120:e.next=123;break;case 122:"Escape"===y&&(null===m||void 0===m||m());case 123:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[l,a,c]);return{processKeyDown:s}},Dn=n(125),Bn=n(69),Un=n(29);function zn(){zn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Gn=function(e){var t=Object(r.useState)(void 0),n=Object(ve.a)(t,2),o=n[0],i=n[1];return Object(r.useEffect)((function(){return Object(Bn.g)(e,(function(e){i(null!==e&&void 0!==e?e:null)}))}),[e]),o},Wn={xs:0,sm:180,md:235,lg:274,xl:310},Hn=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).includeMinWidth;return Object(l.a)({},Object.fromEntries(Object.entries(Wn).map((function(n){var r=Object(ve.a)(n,2),o=r[0],i=r[1];return[e.up(o),Object(l.a)({width:i},t?{minWidth:i}:null)]}))))},Kn=Object(O.a)((function(e){var t,n,r="dark"===e.palette.type,o=Hn(e.breakpoints,{includeMinWidth:!0});return{Nav:Object(l.a)(Object(l.a)({display:"flex",flexDirection:"column",boxSizing:"border-box"},o),{},(t={paddingLeft:14,color:e.palette.text.primary,backgroundColor:e.palette.background.secondaryDefault,userSelect:"none",outline:"none",borderRight:"2px solid ".concat(e.palette.background.secondaryDefault)},Object(w.a)(t,e.breakpoints.down("xs"),{paddingLeft:0,borderRightWidth:0}),Object(w.a)(t,"&:focus-within",{borderRightColor:"dark"===e.palette.type?"#414141":"#e3e3e3"}),t)),sectionClients:{paddingRight:14,outline:"none"},sectionCollections:function(e){var t=e.isNavTileMenuOpen;return Object(l.a)({flexGrow:1,flexBasis:0,overflowY:"scroll",outline:"none"},Object(S.e)({thickness:7,spacing:3.5,hoverColor:t?"transparent":r?"hsl(0, 0%, 30%)":"hsl(0, 0%, 80%)"}))},sectionCollectionsNoScroll:{overflow:"hidden"},sectionEmpty:(n={display:"flex",alignItems:"center",flexDirection:"column",gap:e.spacing(2),padding:e.spacing(3),textAlign:"center",color:"#898989"},Object(w.a)(n,e.breakpoints.down("sm"),{padding:e.spacing(3,1)}),Object(w.a)(n,"& button",{margin:e.spacing(1,0)}),Object(w.a)(n,"& a",{color:"inherit","&:hover":{color:e.palette.text.primary}}),n),sectionEmptyIcon:{fontSize:0,"& svg":{fontSize:30}},sectionEmptyTitle:{color:e.palette.text.primary,fontWeight:500},loadingFooter:{display:"flex",height:77,marginBottom:5,alignItems:"center",justifyContent:"center"},loadMore:{cursor:"pointer"}}})),Vn=o.a.forwardRef((function(e,t){var n=$e(["debug","omitSbTitleSuffix"]),i=n.debug,a=n.omitSbTitleSuffix,c=Object(f.b)(),u=function(){var e=Object(r.useState)((function(){return Object(Dn.a)()})),t=Object(ve.a)(e,2),n=t[0],o=t[1],i=Object(r.useCallback)((function(){o(Object(Dn.a)())}),[]);return Object(se.a)(i),{locationSetIds:n}}(),d=u.locationSetIds,p=Object(s.c)(Object(y.l)("clientTitle")),h=Object(s.c)(b.c.navRemoteClients),v=Object(s.c)(b.c.navCollections),m=Object(s.c)(b.c.localClientIsSelected),g=Object(s.c)(b.c.selectedSetIds),O=Object(s.c)(b.c.collectionsInitialized),x=Object(s.c)(b.c.navCollectionsAreLoading),E=Object(s.c)(b.c.navCollectionsAreLoadingLong),k=Object(s.c)(b.c.navCollectionsIsExhausted),L=Object(s.c)(b.c.localWindowsInitialized),C=Object(s.c)(b.c.localWindows),I=Object(s.c)(b.c.searchTerms),_=Object(s.c)(Object(y.l)("defaultCollectionColor")),N=Object(s.c)(b.c.selectedSetTitle),A=Object(P.t)(C),R=Gn("collections"),M=!!(null===R||void 0===R?void 0:R.count),F=Object(r.useRef)(),D=Rn(F),B=ze({toleranceBottom:308,ref:F}),U=Object(ve.a)(B,2),z=U[0],G=U[1],W=Object(r.useRef)(z),H=!1;z!==W.current&&(H=!0,W.current=z);var V=Object(r.useState)(),q=Object(ve.a)(V,2),$=q[0],Y=q[1],X=Kn({isNavTileMenuOpen:!!$}),Q=Object(K.a)(),J=Object(r.useRef)(),Z=Fn({scrollContainerRef:D}).processKeyDown,ee=function(e){var t,n=e.menuButtonEl;n===$?(Y(null),null===(t=J.current)||void 0===t||t.focus()):Y(n)},te=function(e){var t;e.focusedCancel&&(null===(t=J.current)||void 0===t||t.focus());Y(null)};Object(r.useEffect)((function(){c(b.a.fetchNavCollections({reset:!0}))}),[c]),Object(r.useEffect)((function(){c(b.a.selectAndHydrateSets({ids:d}))}),[c,d]);var ne=m&&1===g.length?p||Object(bt.d)(ht.a.thisBrowser()):N,re=ne?"".concat(ne).concat(a?"":" - Session Buddy"):"Session Buddy";Object(r.useEffect)((function(){document.title=re}),[re]),Object(r.useEffect)((function(){!H||"bottom"!==z||k||x||c(b.a.fetchNavCollections())}),[c,H,z,k,x]);var oe=function(e,t){"single"===t?c(b.a.selectAndHydrateSets({ids:[e]})):"range"===t?c(b.a.rangeSelectAndHydrateSets({id:e,additive:!1})):"additive-range"===t?c(b.a.rangeSelectAndHydrateSets({id:e,additive:!0})):"toggle"===t&&c(b.a.toggleSelectAndHydrateSet(e))},ie=function(){c(b.a.fetchNavCollections({}))},ae=Object(S.a)(X.Nav,"focus-container",{isNavTileMenuOpen:!!$});return o.a.createElement("div",{ref:function(e){J.current=null!==e&&void 0!==e?e:void 0,t&&("function"===typeof t?t(e):t.current=e)},className:ae,tabIndex:0,onKeyDown:function(e){Z(e,{ignore:function(){return!!$},up:function(){return c(b.a.selectPrevNavSet())},down:function(){return c(b.a.selectNextNavSet())},start:function(){return c(b.a.selectFirstNavSet())},end:function(){return c(b.a.selectLastNavSet())},edit:function(){c(Object(j.a)())},remove:function(){return c(b.a.deleteSelectedCollections(e.shiftKey))}})}},o.a.createElement(xt,{title:h.length?ht.a.client({count:wt.a}):ht.a.tab({count:wt.a})}),o.a.createElement("div",{className:X.sectionClients,tabIndex:-1},o.a.createElement(Lt,{title:p||Object(bt.d)(ht.a.thisBrowser()),description:L?Object(bt.d)(ht.a.tab({count:A,includeCount:!0})):" ",selected:m,onClick:function(e){oe(P.j,e)},onMenuButtonClick:function(e){ee(e)}}),h.map((function(e){var t=e.id,n=e.title,r=void 0===n?"":n;return o.a.createElement(Lt,{key:t,title:r,description:"tbd",selected:g.includes(t),onClick:function(){},onMenuButtonClick:function(e){ee(e)}})}))),o.a.createElement(xt,{title:ht.a.collection({count:wt.a}),icon:I?o.a.createElement(mt.FilterIcon,null):void 0,onDblClick:function(){F.current&&(F.current.scrollTop=0)},onScrollTopClick:"top"!==z?function(){var e;F.current&&(F.current.scrollTop=0),null===(e=J.current)||void 0===e||e.focus()}:void 0}),o.a.createElement("div",{className:Object(S.a)(X.sectionCollections,Object(w.a)({},X.sectionCollectionsNoScroll,!v.length)),ref:G,onScroll:function(){$&&te({focusedCancel:!0})},onContextMenu:function(e){e.preventDefault()},tabIndex:-1},o.a.createElement(Pn,{show:"top"!==z}),v.length?v.map((function(e){var t=e.id,n=e.title,r=void 0===n?"":n,a=e.created,u=e.updated,l=e.pinned,s=e.color,f=e.invalid;return o.a.createElement(Lt,{key:t,color:Object(pt.b)({id:t,color:s,defaultCollectionColor:_,theme:Q}),title:i?"".concat(r," - ").concat(t):r,pinned:l,invalid:f,description:Object(bt.d)(Object(P.s)(a,u,{relative:!0})),selected:g.includes(t),highlight:I?[].concat(Object(Fe.a)(I.free),Object(Fe.a)(I.collection)):[],onClick:function(e){oe(t,e),g.includes(t)||c(Object(vt.b)())},onMenuButtonClick:function(e){ee(e)},onContainerFocusNeeded:function(){var e;null===(e=J.current)||void 0===e||e.focus()}})})):!x&&O?o.a.createElement("div",{className:X.sectionEmpty},o.a.createElement("div",{className:X.sectionEmptyIcon},o.a.createElement(mt.CollectionIcon,null)),o.a.createElement("div",{className:X.sectionEmptyTitle},I?"No matching collections":M?"Collections missing?":"No collections"),I?null:M?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,"Session Buddy saved a backup of your collections."),o.a.createElement(fe.a,{color:"primary",label:"Restore collections...",size:"small",onClick:function(){c(Object(y.i)())}})):o.a.createElement("div",null,"Save tabs to create a collection")):null,x?o.a.createElement("div",{className:X.loadingFooter},E?o.a.createElement(In,{size:"40px",thickness:"xs",color:"#aaa"}):null):v.length&&!k?o.a.createElement("div",{className:Object(S.a)(X.loadingFooter,X.loadMore),onClick:ie},o.a.createElement(fe.a,{label:"Load more",outlined:!0,tabIndex:-1,onClick:ie})):null),o.a.createElement(Sn,{anchorEl:$,onClose:te,onActionCompleted:function(){T((function(){var e;null===(e=J.current)||void 0===e||e.focus()}))}}),i&&g.length?o.a.createElement("div",{style:{position:"absolute",top:150,right:0,display:"flex",flexDirection:"column",gap:10,padding:16,margin:16,borderRadius:10,zIndex:600,backgroundColor:"#aaaaaa5e"}},g.map((function(e){return o.a.createElement("span",{key:e,style:Object(l.a)(Object(l.a)({padding:"2px 8px",fontFamily:"monospace",fontWeight:800,borderRadius:4},yt(e.toString())),{},{userSelect:"text"})},e)}))):null)})),qn=n(102),$n=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=Object(M.a)(e,["classes","className"]),a=r.useContext(cn.a);return r.createElement("div",Object(R.a)({className:Object(D.a)(n.root,o,"flex-start"===a.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Yn=Object(B.a)({root:{minWidth:56,flexShrink:0},alignItemsFlexStart:{marginTop:8}},{name:"MuiListItemAvatar"})($n),Xn=n(89),Qn=Object(Xn.a)(r.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var Jn=r.forwardRef((function(e,t){var n=e.alt,o=e.children,i=e.classes,a=e.className,c=e.component,u=void 0===c?"div":c,l=e.imgProps,s=e.sizes,f=e.src,d=e.srcSet,p=e.variant,h=void 0===p?"circular":p,v=Object(M.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),m=null,b=function(e){var t=e.src,n=e.srcSet,o=r.useState(!1),i=o[0],a=o[1];return r.useEffect((function(){if(t||n){a(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&a("loaded")},r.onerror=function(){e&&a("error")},function(){e=!1}}}),[t,n]),i}({src:f,srcSet:d}),y=f||d,g=y&&"error"!==b;return m=g?r.createElement("img",Object(R.a)({alt:n,src:f,srcSet:d,sizes:s,className:i.img},l)):null!=o?o:y&&n?n[0]:r.createElement(Qn,{className:i.fallback}),r.createElement(u,Object(R.a)({className:Object(D.a)(i.root,i.system,i[h],a,!g&&i.colorDefault),ref:t},v),m)})),Zn=Object(B.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(Jn),er=Object(O.a)((function(e){return{SearchResultIcon:{"& svg,img":{height:18,width:18}},colorDefault:{color:e.palette.text.primary,backgroundColor:e.palette.background.secondaryPaper}}})),tr=function(e){var t=e.icon,n=e.onHoverChanged,r=er(),i=t;return o.a.createElement("div",Object.assign({className:r.SearchResultIcon},n?{onMouseEnter:function(){n(!0)},onMouseLeave:function(){n(!1)}}:null),o.a.createElement(Yn,null,o.a.createElement(Zn,{classes:{colorDefault:r.colorDefault}},o.a.createElement(i,null))))},nr=Object(O.a)((function(){return{primary:Object(l.a)({},Object(S.c)(2)),secondary:Object(l.a)({},Object(S.b)())}})),rr=function(e){var t=e.primary,n=e.secondary,r=e.highlight,i=nr();return o.a.createElement(mn,{classes:{primary:i.primary,secondary:i.secondary},primary:o.a.createElement(kt,{text:t,split:Object(jt.b)(t,r)}),secondary:n})},or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(wt.b)(e,"result","results")},ir=function(){return"Press Enter to search everywhere"},ar=function(){return"Getting results by relevance..."},cr=function(){return"No results to show"},ur=function(){return"Search tabs and collections"},lr=function(e,t){return sr("collection",e,t)};function sr(e,t,n){var r=t?"in ".concat(ht.a[e](),' "').concat(t,'"'):"in untitled ".concat(ht.a[e]()),o=n&&ht.a[n]();return o?"".concat(o," ").concat(r):r}function fr(e){switch(e){case"folder":return mt.FolderIcon;case"collection":return mt.CollectionIcon;case"event":return mt.HistoryIcon;case"window":return mt.WindowIcon;case"remote-client":return mt.BrowserIcon}return mt.DefaultFavIconIcon}var dr=function(e){var t=e.result,n=e.highlight,r=$e(["debug"]).debug;return o.a.createElement(o.a.Fragment,null,o.a.createElement(tr,{icon:fr(t.type)}),o.a.createElement(rr,{primary:r?"".concat(t.text||ht.a.untitled()," - ").concat(t.score," - ").concat(t.secondaryScore," - ").concat(t.id):t.text||ht.a.untitled(),secondary:function(){if("collection"===t.type)return t.unitMatchCount?"".concat(t.unitMatchCount," matching ").concat(ht.a.link({count:t.unitMatchCount})," in ").concat(ht.a.collection()," ").concat(Object(P.s)(t.setCreated,t.setUpdated,{relative:!0})):Object(bt.d)(Object(P.s)(t.setCreated,t.setUpdated,{relative:!0,noun:"collection"}));if("event"===t.type){var e="".concat(qn.a.clientHistoryItemType(t.eventType)," ").concat(ht.a.event());return t.unitMatchCount?"".concat(t.unitMatchCount," matching ").concat(ht.a.tab({count:t.unitMatchCount})," in ").concat(e):Object(bt.d)(e)}return"folder"===t.type?Object(bt.d)(lr(t.setTitle,t.type)):"remote-client"===t.type?Object(bt.d)(t.setUpdated?ht.a.date(t.setUpdated,{format:"relative",noun:"client",verb:"updated"}):ht.a.client()):"window"===t.type?Object(bt.d)("window in ".concat(t.setTitle)):void 0}(),highlight:t.text?n:[]}))},pr=n(41),hr="https://icons.nooxis.com";function vr(e,t){var n=null!==t&&void 0!==t?t:{},r=n.dark,o=n.light,i=n.color,a=new URLSearchParams(Object(l.a)(Object(l.a)(Object(l.a)({},r&&{dark:r}),o&&{light:o}),i&&{color:i})).toString();return"".concat(hr,"/").concat(e).concat(a?"?".concat(a):"")}var mr=n(176),br=n.n(mr),yr=n(34),gr=n(178),wr=n(179),Or=Object(Xn.a)(r.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp"),xr=n(260),jr=Object(Xn.a)(r.createElement("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"History"),Er=Object(Xn.a)(r.createElement("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension"),kr=Object(Xn.a)(r.createElement("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Sr=Object(Xn.a)(r.createElement("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1zm-2-3h1v3h-1V9zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1v-2zm0-2h1v1h-1V9z"}),"PictureAsPdfOutlined"),Lr=n(261),Cr={download:Or,gear:xr.a,history:jr,page:Object(yr.a)(gr.a),puzzle:Object(yr.b)(Er),star:kr,pdf:Sr,markdown:Object(yr.a)(Object(yr.d)(wr.a,1.1,1.4)),image:Lr.a};var Tr=br()((function(e,t){var n,r,i=Cr[e];if(i)return n=i,r=t,function(e){var t=e.color;return o.a.createElement(n,{style:{color:r||t}})}}),(function(e,t){return"".concat(e||"",";").concat(t||"")})),Ir=function(e,t){var n=function(e){if(!e||!Object(pr.l)(e,hr))return{};var t=Object.fromEntries(Object(pr.m)(e)),n=Object(pr.p)(e).substring(24);if(""===n||"/"===n)return{query:t};if(!n.startsWith("/"))return{};var r=n.substring(1),o=r.indexOf("/"),i=(o>-1?r.substring(0,o):r).trim();return i?{name:i,query:t}:{}}(e),r=n.name,o=n.query,i=void 0===o?{}:o;if(function(e){return!!e&&e in Cr}(r)){var a=t&&i[t]||i.color;return Tr(r,a)}},_r=n(87),Nr=n(22);function Ar(e){return{urlIdentifiers:{ext:Object(m.i)(e.ext,["isNxsUrl","isMainUrl","isOptionsUrl"]),web:Object(m.i)(e.web,["isAppUrl"]),browser:Object(m.i)(e.browser,["isFeatureUrl","isExtensionUrl"])}}}function Pr(e){var t=e.rules||[],n=!!e.isDarkTheme;return{transform:function(e){var o=e.windows,i=e.folders,a=e.rules,c=e.isDarkTheme,u=void 0===c?n:c,s=[].concat(Object(Fe.a)(t),Object(Fe.a)(a||[]));return o?o.map((function(e){return Object(l.a)(Object(l.a)({},e),{},{tabs:e.tabs.map((function(e){return r(e,s,u)})).filter((function(e){return!!e}))})})).filter((function(e){return e.tabs.length})):i.map((function(e){var t=e.links.map((function(e){return r(e,s,u)})).filter((function(e){return!!e}));return e.links.length&&!t.length?null:Object(l.a)(Object(l.a)({},e),{},{links:t})})).filter((function(e){return!!e}))},transformUnit:function(e,o,i){return r(e,null!==o&&void 0!==o?o:t,null!==i&&void 0!==i?i:n)}};function r(t,n,r){var o,i=void 0,a=Object(Nr.a)(n);try{for(a.s();!(o=a.n()).done;){var c=o.value;if(!c.disabled){var u=c.matches({unit:t,url:"pendingUrl"in t&&t.pendingUrl||t.url,loading:"status"in t&&"loading"===t.status,urlIdentifiers:e.urlIdentifiers,dark:r});if(u){var s=c.apply({unit:t,dark:r,matches:u});if(!s)return null;i=Object(l.a)(Object(l.a)({},i),s)}}}}catch(f){a.e(f)}finally{a.f()}return i?Object(l.a)(Object(l.a)({},t),i):t}}var Rr=[{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url)},apply:function(){return{favIconUrl:vr("gear",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"bookmarks")},apply:function(){return{favIconUrl:vr("star",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"downloads")},apply:function(){return{favIconUrl:vr("download",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"extensions")},apply:function(){return{favIconUrl:vr("puzzle",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"history")},apply:function(){return{favIconUrl:vr("history",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"newtab")},apply:function(){return{favIconUrl:vr("page",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.browser.isFeatureUrl(t.url,"settings")},apply:function(){return{favIconUrl:vr("gear",{dark:"rgb(200, 200, 200)"})}}},{matches:function(e){var t=e.unit;return e.urlIdentifiers.ext.isNxsUrl(t.url)},apply:function(){return{favIconUrl:"favicon.ico"}}}],Mr="https://github.githubassets.com/favicons/",Fr="favicon.svg",Dr="favicon-dark.svg",Br="https://docs.github.com/assets/cb-803/images/site/favicon.svg",Ur=[{matches:function(e){var t=e.unit;return!e.dark&&"string"===typeof t.favIconUrl&&(t.favIconUrl===Br||t.favIconUrl.startsWith(Mr)&&t.favIconUrl.endsWith("/".concat(Dr)))},apply:function(){return{favIconUrl:"".concat(Mr).concat(Fr)}}},{matches:function(e){var t=e.unit;return e.dark&&"string"===typeof t.favIconUrl&&(t.favIconUrl===Br||t.favIconUrl.startsWith(Mr)&&t.favIconUrl.endsWith("/".concat(Fr)))},apply:function(){return{favIconUrl:"".concat(Mr).concat(Dr)}}}],zr=n(151),Gr=[Wr("www.youtube.com"," - YouTube"),Wr("docs.google.com"," - Google Docs"),Wr("stackoverflow.com"," - Stack Overflow"),Wr("www.google.com"," - Google Search"),Wr("www.google.com/maps"," - Google Maps"),Wr("en.wikipedia.org"," - Wikipedia"),Wr("www.npmjs.com"," - npm"),Wr("www.amazon.com"," | Prime Video"),Wr("www.linkedin.com"," | LinkedIn"),Wr("www.facebook.com"," | Facebook"),Wr("www.instagram.com"," \u2022 Instagram photos and videos"),{matches:function(e){var t,n,r,o=e.unit;return!("www.amazon.com"!==Object(pr.n)(o.url).hostname||!(null===(t=o.title)||void 0===t?void 0:t.startsWith("Amazon.com: "))||!(null===(n=o.title)||void 0===n?void 0:n.endsWith(": Prime Video"))&&!(null===(r=o.title)||void 0===r?void 0:r.endsWith(": Movies & TV")))},apply:function(e){var t=e.unit,n=Object(bt.i)(Object(bt.i)(Object(bt.h)(t.title,"Amazon.com: "),": Prime Video"),": Movies & TV");if(n){var r=n.lastIndexOf(":");return r>-1&&(n=n.substring(0,r)),Object(zr.a)(t,n.trim())}return{}}}];function Wr(e,t){return{matches:Hr(e,t),apply:Kr(t)}}function Hr(e,t){return function(n){var r,o=n.unit;return Object(pr.l)(o.url,"https://".concat(e))&&!!(null===(r=o.title)||void 0===r?void 0:r.endsWith(t))}}function Kr(e){return function(t){var n=t.unit;return Object(zr.a)(n,Object(bt.i)(n.title,e))}}var Vr=function(){var e=$e(["useThemeSensitiveFavicons"]).useThemeSensitiveFavicons,t=Object(r.useMemo)((function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).useThemeSensitiveFavicons,t=Object(_r.a)();return Pr(Object(l.a)({rules:[].concat(Object(Fe.a)(Rr),Object(Fe.a)(e?Ur:[]))},Ar(t)))}({useThemeSensitiveFavicons:e})}),[e]),n="dark"===Object(K.a)().palette.type;return{transform:Object(r.useCallback)((function(e){var r=e.windows,o=e.folders;return r?{windows:t.transform({windows:r,isDarkTheme:n})}:{folders:t.transform({folders:o||[],isDarkTheme:n})}}),[t,n]),transformUnit:Object(r.useCallback)((function(e){return t.transformUnit(e,void 0,n)}),[t,n])}};var qr=function(e){var t=e.imageThumbs,n=e.defaultFavIconUrl,r=e.fileDefaultFavIconUrl,o=e.imageDefaultFavIconUrl,i=e.fileImageDefaultFavIconUrl,a=e.pdfDefaultFavIconUrl,c=e.filePdfDefaultFavIconUrl,u=e.markdownDefaultFavIconUrl,l=e.fileMarkdownDefaultFavIconUrl,s=new Set,f=t,d=!1,p={getWithFallback:function(e,t){if(f&&Object(pr.g)(e)&&(Object(pr.f)(e)||Object(pr.c)(e))&&!s.has(e))return e;if(!t||s.has(t)){var d=Object(pr.n)(e);if(Object(pr.e)(e))return i&&Object(pr.g)(d)?i:c&&Object(pr.j)(d)?c:l&&Object(pr.i)(d)?l:r||n;var p=function(e){var t="string"===typeof e?Object(pr.n)(e):e,n=t.protocol,r=t.origin;if(r&&("https:"===n||"http:"===n))return"".concat(r,"/favicon.ico")}(d);return!p||s.has(p)?o&&Object(pr.g)(d)?o:a&&Object(pr.j)(d)?a:u&&Object(pr.i)(d)?u:n:p}return t},invalidate:function(e){if(e&&!s.has(e))return s.size>4e3&&p.clearCache(),s.add(e),d&&p.logInvalidFaviconUrls(e),!0},toggleImageThumbs:function(e){f=null!==e&&void 0!==e?e:!f},clearCache:function(){s.clear()},toggleDebug:function(e){d=null!==e&&void 0!==e?e:!d},isDebugOn:function(){return d},logInvalidFaviconUrls:function(e){var t,n=Array.from(s.values()),r=0,o=n.length?"\n".concat(n.sort().map((function(t){return e&&t===e?(r++,"%c".concat(t,"%c")):t})).join("\n")):"%c(none)",i=n.length?new Array(r).fill(["background-color: hsl(50deg 100% 40% / 36%); padding: 2px 0;",""]).flat():["color: hsl(0deg 100% 100% / 50%);"];(t=console).log.apply(t,[n.length?"".concat(ht.a.integer(n.length)," invalid favicon ").concat(ht.a.url({count:n.length}),": ").concat(o):"invalid favicon urls: ".concat(o)].concat(Object(Fe.a)(i)))}};return p}({imageThumbs:!1,defaultFavIconUrl:vr("page",{dark:"rgb(200, 200, 200)"}),fileDefaultFavIconUrl:vr("page",{light:"rgb(0 122 204)",dark:"rgb(0 122 204)"}),imageDefaultFavIconUrl:vr("image",{dark:"rgb(200, 200, 200)"}),fileImageDefaultFavIconUrl:vr("image",{light:"rgb(0 122 204)",dark:"rgb(0 122 204)"}),pdfDefaultFavIconUrl:vr("pdf",{dark:"rgb(200, 200, 200)"}),filePdfDefaultFavIconUrl:vr("pdf",{light:"rgb(0 122 204)",dark:"rgb(0 122 204)"}),markdownDefaultFavIconUrl:vr("markdown",{dark:"rgb(200, 200, 200)"}),fileMarkdownDefaultFavIconUrl:vr("markdown",{light:"rgb(0 122 204)",dark:"rgb(0 122 204)"})}),$r=function(e){var t,n=Vr().transformUnit,i=Object(K.a)(),a=Object(r.useReducer)((function(e){return e+1}),0)[1];if("status"in e&&"loading"===e.status)return null;var c=null===(t=n(e))||void 0===t?void 0:t.favIconUrl,u=qr.getWithFallback(e.url,c),l=Ir(u,i.palette.type);return l?o.a.createElement(l,{color:"#666"}):o.a.createElement("img",{src:u,alt:"",onError:function(e){var t=e.currentTarget;t&&(t.onerror=null),qr.invalidate(u),a()}})},Yr=function(e){var t=e.text,n=e.type,i=e.unit,a=e.setTitle,c=e.highlight,u=$r(i),l=Object(r.useState)(!1),s=Object(ve.a)(l,2),f=s[0],d=s[1];return o.a.createElement(o.a.Fragment,null,o.a.createElement(tr,{icon:function(){return u},onHoverChanged:d}),o.a.createElement(rr,{primary:t||ht.a.untitled(),secondary:f&&i.url?i.url:Object(bt.d)("tab"===n?"tab in ".concat(a):lr(a,n)),highlight:t?c:[]}))},Xr=Object(O.a)((function(e){return{SearchResult:{height:80,cursor:"pointer","&:hover:not($selected)":{backgroundColor:e.palette.nxsAction.hover.main}},selected:{backgroundColor:e.palette.nxsAction.selected.main}}})),Qr=function(e){var t=e.result,n=e.selected,r=e.searchTerms,i=e.onClick,a=Xr(),c=Object(S.a)(a.SearchResult,Object(w.a)({},a.selected,n));return o.a.createElement(sn,{className:c,onClick:function(){null===i||void 0===i||i({type:t.type,id:t.id,setId:t.setId})}},Object(Ge.f)(t)?o.a.createElement(Yr,{text:t.text,type:t.type,unit:t.unit,setTitle:t.setTitle,highlight:r?[].concat(Object(Fe.a)(r.free),Object(Fe.a)("link"===t.type?r.collection:t.setId===P.j?[]:r.history),Object(Fe.a)("link"===t.type?r.folder:r.window),Object(Fe.a)("link"===t.type?r.link:r.tab)):[]}):o.a.createElement(dr,{result:t,highlight:r?"collection"===t.type?[].concat(Object(Fe.a)(r.free),Object(Fe.a)(r.collection)):"window"===t.type?[].concat(Object(Fe.a)(r.free),Object(Fe.a)(t.setId===P.j?[]:r.history),Object(Fe.a)(r.window)):[].concat(Object(Fe.a)(r.free),Object(Fe.a)(r.collection),Object(Fe.a)(r.folder)):[]}))};function Jr(){Jr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Zr=Object(O.a)((function(e){var t,n;return{Search:Object(w.a)({width:"100%",padding:Object(S.d)(0,10)},"@media (min-width:".concat(e.breakpoints.values.sm,"px)"),{padding:0}),focusable:(t={display:"inline-block",width:"100%"},Object(w.a)(t,"@media (min-width:".concat(530,"px)"),{maxWidth:400,minWidth:400}),Object(w.a)(t,"&:focus-within",{"& $dropdown":{display:"flex"}}),t),input:{display:"flex",alignItems:"center",boxSizing:"border-box",height:lo-18,paddingLeft:18,borderRadius:e.shape.borderRadiusSmall,color:"hsl(0deg 0% 100% / 75%)",backgroundColor:e.palette.primary[e.palette.type],"&:focus-within":{color:"#fff"},"& input":(n={flex:1,width:"100%",height:"100%",border:"none",outline:"none",fontSize:"1rem",marginLeft:12,color:"#fff",backgroundColor:"transparent","&::placeholder":{color:"transparent"}},Object(w.a)(n,"@media (min-width:".concat(530,"px)"),{"&::placeholder":{color:"dark"===e.palette.type?"hsl(0, 0%, 100%, 54%)":"hsl(204, 90%, 88%)"}}),Object(w.a)(n,"&:focus::placeholder",{color:"transparent"}),Object(w.a)(n,"&::selection",{backgroundColor:"dark"===e.palette.type?"#000":e.palette.primary.dark}),n)},clearButtonContainer:{display:"inline-flex",width:0},clearButton:{position:"relative",right:38,padding:6,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.main}},dropdown:{position:"absolute",zIndex:9999999,display:"none",borderRadius:e.shape.borderRadiusLarge,overflow:"hidden",marginTop:e.spacing(2),color:e.palette.text.primary,backgroundColor:e.palette.background.paper,boxShadow:e.shadows[10]},info:{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:function(e){return e.resultsWidth},height:e.spacing(6),fontSize:"1.1rem",fontWeight:400,"& *":{margin:e.spacing(0,1)}},notFoundIcon:{color:e.palette.error.light},results:{display:"flex",flexDirection:"column",outline:"none"},resultsHeader:{display:"flex",padding:e.spacing(1,2),fontWeight:500,backgroundColor:e.palette.background.paper,zIndex:500},resultsHeaderAnnotation:{fontWeight:200,marginLeft:6},resultsHeaderButtons:{display:"flex",gap:e.spacing(1),marginLeft:"auto"},resultsBody:Object(l.a)(Object(l.a)({},Object(S.e)({color:"dark"===e.palette.type?e.palette.nxsAction.active.main:e.palette.nxsAction.hover.dark})),{},{outline:"none"}),typeSelectorButtonRoot:{lineHeight:"1.2rem",borderRadius:6}}})),eo=0,to=function(){var e=$e(["debug"]).debug,t=Object(f.b)(),n=Object(s.c)(Object(y.l)("searchResultsShowUnitsOnly")),i=Object(s.c)(b.c.searchTerms),a=Object(s.c)(b.c.searchResults),c=Object(s.c)(b.c.searchResultsLoading),l=Object(K.a)(),d=Object(r.useState)(""),p=Object(ve.a)(d,2),v=p[0],m=p[1],g=Object(r.useState)(null),w=Object(ve.a)(g,2),O=w[0],x=w[1],j=Object(r.useCallback)(Object(u.a)(Jr().mark((function r(){var o,a,c,u,l,s;return Jr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i){r.next=2;break}return r.abrupt("return");case 2:return o=++eo,t(b.a.setSearchResultsLoading(!0)),a=Ve("search",{prod:!0,slow:2e3,verySlow:5e3}),c=t(b.a.findTabs(i,{excludeWindows:n})),r.next=8,Object(De.g)(i,{excludeCollections:n,excludeFolders:n});case 8:return u=r.sent,r.next=11,Object(Be.i)(i,{excludeEvents:n,excludeWindows:n});case 11:if(l=r.sent,s=[].concat(Object(Fe.a)(c.window),Object(Fe.a)(c.tab),Object(Fe.a)(u.collection),Object(Fe.a)(u.folder),Object(Fe.a)(u.link),Object(Fe.a)(l.event),Object(Fe.a)(l.window),Object(Fe.a)(l.tab)),eo===o){r.next=16;break}return e&&Object(A.f)("search results dropped",i),r.abrupt("return");case 16:t(b.a.setSearchResults(s)),t(b.a.setSearchResultsLoading(!1)),e&&a.log("\ud83d\udd0d ".concat(ht.a.integer(s.length)," search results"));case 19:case"end":return r.stop()}}),r)}))),[i,n,t,e]);Object(r.useEffect)((function(){j()}),[j]);var E=(a||[]).filter((function(e){var t=e.type;return!n||"tab"===t||"link"===t})),k=Math.min(5,E.length||1),S=Object(r.useMemo)((function(){return function(e){if(!e)return{width:650,height:80};var t=e.width<l.breakpoints.values.sm?e.width-20:e.width<660?460:e.width<850?e.width-200:650,n=e.height-lo-80,r=Math.floor(n/80)||1;return{width:t,height:80*Math.min(r,k)}}}),[k,l.breakpoints.values]),L=Ue({translate:S}),C=L.width,T=L.height,I=Zr({resultsWidth:C}),_=Object(r.useRef)(null),N=Object(r.useRef)(),R=Object(r.useRef)(null),M=ze({ref:N}),F=Object(ve.a)(M,2),D=F[0],B=F[1],U=Object(r.useMemo)((function(){return h()((function(e){t(b.a.setFilterSearchTerms(Object(Ge.e)(e)))}),200,{leading:!1,trailing:!0})}),[t]);Object(r.useLayoutEffect)((function(){var e;null!=O&&(null===(e=R.current)||void 0===e||e.scrollToItem(O))}),[O]);var z=function(e){m(e),e.trim().length>1?U(e):t(b.a.setFilterSearchTerms(null)),!e&&i&&(t(b.a.setSearchTerms(null)),x(null),++eo,t(b.a.setSearchResultsLoading(!1)),t(b.a.fetchNavCollections({reset:!0})),t(b.a.fetchNavClientHistory({reset:!0})))},G=function(){z("")},W=function(e){x((function(t){return Object(We.a)(t,e,E)}))},H=function(e){var t=e.type,n=e.setId,r=e.id,o=E.findIndex((function(e){var o=e.type,i=e.setId,a=e.id;return o===t&&i===n&&a===r}));null==o||o<0||(x(o),V(o))},V=function(e){var n;if(E.length&&null!=e){var r=E[e];if(r){var o=r.id,i=r.setId,a=r.type;"collection"===a||"link"===a||"folder"===a||("tab"===a||"window"===a)&&i===P.j?(t(b.a.selectAndHydrateSets({ids:[i]})),"link"===a||"tab"===a?t(b.a.itemsSelected({unitIds:[o]})):"folder"!==a&&"window"!==a||t(b.a.itemsSelected({groupIds:[o]}))):"event"===a?(t(Object(y.q)("historyIsOpen",!0)),t(b.a.selectAndHydrateSets({ids:[P.j]})),t(b.a.selectClientHistoryItem(o))):"tab"!==a&&"window"!==a||i===P.j||(t(Object(y.q)("historyIsOpen",!0)),t(b.a.selectAndHydrateSets({ids:[P.j]})),t(b.a.selectClientHistoryItem(i)),"tab"===a?t(b.a.itemsSelected({unitIds:[o]})):"window"===a&&t(b.a.itemsSelected({groupIds:[o]}))),null===(n=N.current)||void 0===n||n.blur()}}};return o.a.createElement("div",{className:I.Search},o.a.createElement("div",{className:I.focusable},o.a.createElement("div",{className:I.input},o.a.createElement(mt.SearchIcon,null),o.a.createElement("input",{type:"text",value:v,placeholder:ur(),ref:_,onChange:function(e){var t=e.currentTarget.value;z(t)},onKeyDown:function(e){var n;"Enter"===e.key?e.currentTarget.value.trim().length>1&&(null===(n=_.current)||void 0===n||n.blur(),t(b.a.setSearchTerms(Object(Ge.e)(e.currentTarget.value))),t(b.a.fetchNavCollections({reset:!0})),t(b.a.fetchNavClientHistory({reset:!0}))):"Escape"===e.key?G():"Tab"===e.key&&null==O&&E.length&&W("first")}})),v.trim().length>1?o.a.createElement("div",{className:I.dropdown},c?o.a.createElement("div",{className:I.info},o.a.createElement(In,{size:"18px",thickness:"xs",color:"#aaa"}),o.a.createElement("div",null,ar())):i?o.a.createElement("div",{className:I.results,onKeyDown:function(e){if("ArrowDown"===e.key)W("next");else if("ArrowUp"===e.key)W("prev");else if(Object(He.f)(e))W("first");else if(Object(He.e)(e))W("last");else if("Enter"===e.key)V(O);else if("Escape"===e.key){var t;null===(t=_.current)||void 0===t||t.focus()}}},o.a.createElement("div",{className:I.resultsHeader},o.a.createElement("div",null,or({count:E.length,includeCount:!0})),o.a.createElement("div",{className:I.resultsHeaderAnnotation},"by relevance"),o.a.createElement("div",{className:I.resultsHeaderButtons},o.a.createElement(ft.a,{tabIndex:-1,classes:{root:I.typeSelectorButtonRoot},variant:n?"contained":"outlined",size:"small",onClick:function(){var e;t(Object(y.p)("searchResultsShowUnitsOnly")),null===(e=_.current)||void 0===e||e.focus()}},"Show tabs & links only"))),E.length?o.a.createElement("div",null,o.a.createElement(Pn,{show:"top"!==D,height:"1px",color:"dark"===l.palette.type?"hsla(0, 0%, 0%, 41%)":void 0}),o.a.createElement(st,{className:I.resultsBody,"aria-label":"search results",itemCount:E.length,itemSize:80,width:C,height:T,ref:R,outerRef:function(e){B(e),e&&(e.tabIndex=0,e.addEventListener("keydown",(function(e){"ArrowUp"!==e.key&&"ArrowDown"!==e.key||e.preventDefault()})))}},(function(e){var t=e.index,n=e.style;return o.a.createElement("div",{key:"".concat(E[t].type,"-").concat(E[t].setId,"-").concat(E[t].id),style:n},o.a.createElement(Qr,{result:E[t],selected:O===t,searchTerms:i,onClick:H}))}))):o.a.createElement("div",{className:I.info},o.a.createElement(mt.NotFoundIcon,{className:I.notFoundIcon}),o.a.createElement("div",null,cr()))):o.a.createElement("div",{className:I.info},o.a.createElement(mt.EnterIcon,null),o.a.createElement("div",null,ir()))):null),v.trim().length>1?o.a.createElement("div",{className:I.clearButtonContainer},o.a.createElement(dt.a,{className:I.clearButton,tabIndex:-1,onClick:function(){var e;G(),null===(e=_.current)||void 0===e||e.focus()}},o.a.createElement(mt.CloseIcon,null))):null)},no=function(e){var t=e.anchorEl,n=e.onClose,r=Object(s.b)(),i=Object(s.c)(b.c.noNavCollectionsExist),a=Object(s.c)(b.c.noNavClientHistoryExists),c=[{label:"Settings",icon:o.a.createElement(mt.SettingsIcon,null),onClick:function(){r(Object(y.n)())}},jn,{label:"Import...",icon:o.a.createElement(mt.ImportIcon,null),onClick:function(){r(Object(y.f)())}},{label:"Export...",icon:o.a.createElement(mt.ExportIcon,null),disabled:i,onClick:function(){r(Object(y.d)())}},jn,{label:"Backup...",icon:o.a.createElement(mt.BackupIcon,null),disabled:i&&a,onClick:function(){r(Object(y.c)())}},{label:"Restore...",icon:o.a.createElement(mt.RestoreIcon,null),onClick:function(){r(Object(y.j)())}},jn,{label:"Help",icon:o.a.createElement(mt.HelpIcon,null),url:"https://sessionbuddy.com/support/"},{label:"Donate",icon:o.a.createElement(mt.DonateIcon,null),url:"https://sessionbuddy.com/donate/"},{label:"Rate",icon:o.a.createElement(mt.RateIcon,null),url:"https://chromewebstore.google.com/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko/reviews"}];return o.a.createElement(kn,{anchorEl:t,spec:c,onClose:n})},ro=n(100),oo=n(37),io=3*L.g,ao=6*L.g,co=Object(O.a)((function(){return{LoveButton:{"& svg":{filter:"drop-shadow(0 0 16px #00121e)"},"&:hover svg":{filter:"none"}}}})),uo=function(e){var t=e.className,n=co(),r=Object(f.b)();return function(){var e=Object(ro.b)(),t=Object(Un.c)(),n=Object(s.c)(Object(y.l)("rateDonateViewed"));if(!e||!t||!e.maxRDCohort||!t.id||!t.created||!t.settings)return!1;var r=Object(L.k)(t.created),o=Object(L.k)(Object(L.m)()-io);if(!r||!o||o<r)return!1;var i=Object(L.k)(n),a=Object(L.k)(Object(L.m)()-ao);if(i&&(!a||a<i))return!1;var c=Object(oo.a)(t.id);return!(!c||c<1||c>100||c>e.maxRDCohort)}()?o.a.createElement(fe.a,{round:!0,className:Object(S.a)(n.LoveButton,t),color:"primary-dark",icon:o.a.createElement(mt.HeartIcon,{color:"#ff8585"}),link:"https://sessionbuddy.com/love/",onClick:function(){r(Object(y.q)("rateDonateViewed",Object(L.m)()))}}):null},lo=62,so=Object(O.a)((function(e){var t;return{AppHeader:{display:"flex",height:lo,minHeight:lo,color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,userSelect:"none"},left:Object(l.a)({display:"flex",alignItems:"center",overflow:"hidden"},Hn(e.breakpoints)),logo:{fontSize:0,color:"currentColor","& svg":{margin:Object(S.d)(0,20),opacity:.8,transition:"all 150ms ease-in-out","&:hover":{scale:1.2,opacity:1}}},center:{display:"flex",alignItems:"center",flex:1},right:(t={display:"none"},Object(w.a)(t,"@media (min-width:".concat(530,"px)"),{display:"flex"}),Object(w.a)(t,"alignItems","center"),Object(w.a)(t,"padding",Object(S.d)(0,10)),t),sbUpdateNotification:{padding:"2px 8px",margin:e.spacing(0,1),border:"8px solid transparent",backgroundClip:"padding-box",fontSize:"0.8rem",fontWeight:500,borderRadius:12,textTransform:"uppercase",textDecoration:"none",color:e.palette.primary.main,backgroundColor:e.palette.primary.contrastText,transition:"scale 150ms ease-in-out",outline:"none","&:hover, &:focus":{scale:1.1}},appMenuButton:{margin:e.spacing(0,1)},tooltip:{textAlign:"center"}}})),fo=function(e){var t=e.inert,n=so(),i=Object(r.useState)(),a=Object(ve.a)(i,2),c=a[0],u=a[1],l=function(e){var t=Object(r.useState)(),n=Object(ve.a)(t,2),o=n[0],i=n[1];return Object(r.useEffect)((function(){return Object(v.e)(e,(function(e){i(e)}))}),[e]),o}("showSbUpdateNotification"),s=l&&Object(P.w)()&&"".concat(Object(Me.a)(Object(Re.c)()).replaceAll(".","-"),"-0");return o.a.createElement("header",{className:n.AppHeader},o.a.createElement("div",{className:n.left},o.a.createElement("a",{className:n.logo,href:"https://sessionbuddy.com",target:"_blank",rel:"noopener",tabIndex:-1},o.a.createElement(de,null))),t?null:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:n.center},o.a.createElement(to,null)),o.a.createElement("div",{className:n.right},s?o.a.createElement(Pe,{classes:{tooltip:n.tooltip},title:"Session Buddy has been updated.\nClick to see what's new.",placement:"bottom"},o.a.createElement("a",{className:n.sbUpdateNotification,href:"https://sessionbuddy.com/release-".concat(s,"/"),target:"_blank",rel:"noopener",onClick:function(){Object(v.i)("showSbUpdateNotification",!1)}},"new")):null,o.a.createElement(uo,{className:n.appMenuButton}),o.a.createElement(fe.a,{round:!0,className:n.appMenuButton,color:"primary-dark",icon:o.a.createElement(mt.GearIcon,null),selected:!!c,selectedColor:"hover",onClick:function(e){var t=e.currentTarget;return u(t===c?null:t),!0}}),o.a.createElement(no,{anchorEl:c,onClose:function(){u(null)}}))))},po=n(49);function ho(){ho=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var vo=function(){var e=Object(f.b)(),t=Object(r.useMemo)((function(){return function(){var t=Object(u.a)(ho().mark((function t(n){var r,o,i,a,c,u,l,s,f,d,p;return ho().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.bypassConfirmation,i=n.unitIds,a=n.groupIds,c=n.contentGroups,u=n.reselect,l=e(Object(b.d)(b.c.selectedSetGroups)),s=l.folders,f=l.windows,null===(r=s||f)||void 0===r?void 0:r.length){t.next=4;break}return t.abrupt("return");case 4:if(a.length||i.length){t.next=6;break}return t.abrupt("return");case 6:if(d=e(Object(b.d)(b.c.singleCollectionIsSelected)),p=e(Object(b.d)(b.c.onlyLocalClientEventIsSelected)),d||p){t.next=10;break}return t.abrupt("return");case 10:return t.abrupt("return",e(Object(Tt.d)({title:Object(bt.d)(Gt({folderCount:a.length,linkCount:i.length,isWindow:!!f})),text:Object(bt.d)(Wt({folderCount:a.length,linkCount:i.length,isWindow:!!f})),bypass:o,bypassSetting:f?"bypassConfirmEventItemDelete":"bypassConfirmCollectionItemDelete",okAction:function(){var t,n,r={unitIds:i,groupIds:a},o=u&&c&&(e(Object(b.d)(b.c.afterSelectedItem,{contentGroups:c,skip:r}))||e(Object(b.d)(b.c.beforeSelectedItem,{contentGroups:c,skip:r}))),l=e(f?b.a.deleteItemsFromSelectedEvent(r):b.a.deleteItemsFromSelectedCollection(r));o&&(e(Object(b.d)(b.c.hasItemSelection))||((null===(t=o.unitIds)||void 0===t?void 0:t.length)?e(b.a.itemsSelected({unitIds:o.unitIds})):(null===(n=o.groupIds)||void 0===n?void 0:n.length)&&e(b.a.itemsSelected({groupIds:o.groupIds}))));return l}})));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}),[e]);return{deleteItems:t}},mo=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=vo().deleteItems,n=Object(s.c)(b.c.singleCollectionIsSelected),i=Object(s.c)(b.c.onlyLocalClientEventIsSelected),a=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),c=Object(s.c)(b.c.itemSelections),u=n||i;return Object(r.useMemo)((function(){return u&&c.unitIds.length+c.groupIds.length?{id:"delete-items",label:"Delete",icon:o.a.createElement(mt.DeleteIcon,null),destructive:!0,disabled:a,tip:Object(bt.d)("delete selected items"),onClick:function(n){var r=n.shiftKey;t({bypassConfirmation:r,unitIds:c.unitIds,groupIds:c.groupIds}).then((function(){null===e||void 0===e||e()}))}}:void 0}),[u,c,a,t,e])},bo=n(156),yo=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.singleCollectionIsSelected),i=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),a=Object(s.c)(b.c.itemSelections),c=a.groupIds,u=a.unitIds,l=c.length,d=u.length;return Object(r.useMemo)((function(){return n&&l+d?{id:"edit-item",label:"Edit...",icon:o.a.createElement(mt.EditIcon,null),disabled:l+d!==1||i,tip:Object(bt.d)("Edit selected ".concat(l?"folder":"link")),onClick:function(){t(Object(bo.d)({onEditingEnded:e}))}}:void 0}),[n,l,d,i,t,e])},go=/^-?\d+$/,wo=/^-?\d*\.\d+$|^\d+\.\d*$/,Oo=/^\s|\s$|,|"|\n/,xo=function(e){e=e.trim();for(var t="",n="",r=[],o=!1,i=!1,a=[],c=0;c<e.length;c++)t=e.charAt(c),!1!==o||","!==t&&"\n"!==t?'"'===t?o?'"'===e.charAt(c+1)?(n+='"',c++):o=!1:(o=!0,i=!0):n+=t:(r.push(u(n,i)),"\n"===t&&(a.push(r),r=[]),n="",i=!1);return n=u(n,i),r.push(n),a.push(r),a;function u(e,t){if(!t){if(""===e)return null;if(go.test(e))return parseInt(e,10);if(wo.test(e))return parseFloat(e)}return e}},jo=function(e){return e.map((function(e){return function(e){if(null==e)return"";if("string"===typeof e&&Oo.test(e))return'"'.concat(e.replace(/"/g,'""'),'"');if("number"===typeof e)return e.toString(10);return e}(e)})).join(",")};var Eo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(ht.a.title(e)," & ").concat(ht.a.url(e))},ko=function(){return"Markdown"},So=function(){return"BBCode"},Lo=function(){return"CSV"},Co=function(){return"JSON"},To=function(){return"HTML"},Io=function(){return"copy"},_o=function(){return"paste"},No=function(){return"paste as one ".concat(ht.a.window())},Ao=function(){return"paste as one ".concat(ht.a.folder())},Po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(ht.a.title(e)," copied to clipboard")},Ro=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(ht.a.tab(e)," copied to clipboard")},Mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat(ht.a.link(e)," copied to clipboard")},Fo=Wo({unit:function(e){return e.url}}),Do=Wo({unit:function(e){var t=e.title,n=e.url;return t||n}}),Bo=Wo({unit:function(e){var t=e.title,n=e.url;return'<a href="'.concat(n,'">').concat(Object(bt.a)(t||n),"</a>")},delimiter:"<br>\n"}),Uo={label:Io(),icon:o.a.createElement(mt.CopyIcon,null),output:{text:Fo,html:Bo,nxs:function(e,t){var n=e.windows,r=e.folders;return n?{type:"windows",value:{windows:n,selections:t}}:{type:"folders",value:{folders:r,selections:t}}}},getSuccessMessage:Ho},zo={title:{label:ht.a.title(),icon:o.a.createElement(mt.TitleIcon,null),output:{text:Do},getSuccessMessage:function(e){return Po({count:e,includeCount:1!==e})}},titleAndUrl:{label:Eo(),icon:o.a.createElement(mt.CopyIcon,null),output:{text:Wo({unit:function(e){var t=e.title,n=e.url;return"".concat(t||n,"\n").concat(n,"\n")}})},getSuccessMessage:Ho},markdown:{label:ko(),icon:o.a.createElement(mt.MarkdownIcon,null),output:{text:Wo({unit:function(e){var t=e.title,n=e.url;return"[".concat((t||n).replace(/\[/g,"\\[").replace(/\]/g,"\\]"),"](").concat(n.replace(/\(/g,"\\(").replace(/\)/g,"\\)"),")")},delimiter:"\n\n"})},getSuccessMessage:Ho},bbCode:{label:So(),icon:o.a.createElement(mt.BbcodeIcon,null),output:{text:Wo({unit:function(e){var t=e.title,n=e.url;return t?"[url=".concat(n,"]").concat(t,"[/url]"):"[url]".concat(n,"[/url]")}})},getSuccessMessage:Ho},csv:{label:Lo(),icon:o.a.createElement(mt.CsvIcon,null),output:{text:Wo({unit:function(e){var t=e.title,n=e.url;return jo([null!==t&&void 0!==t?t:null,n])},wrap:["Title,URL\n"]})},getSuccessMessage:Ho},json:{label:Co(),icon:o.a.createElement(mt.JsonIcon,null),output:{text:Wo({unit:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return Object(bt.b)(JSON.stringify(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},e.title?{title:e.title}:null),null!=e.titleOriginal?{titleOriginal:e.titleOriginal}:null),{},{url:e.url},e.description?{description:e.description}:null),"userDescription"in e&&e.userDescription?{userDescription:e.userDescription}:null),void 0,2),2)})),delimiter:",\n",wrap:["[\n","\n]"]})},getSuccessMessage:Ho},html:{label:To(),icon:o.a.createElement(mt.HtmlIcon,null),output:{text:Bo},getSuccessMessage:Ho}};function Go(e){return Object(m.b)(zo).filter((function(t){var n=Object(ve.a)(t,1)[0];return!e||e.includes(n)})).map((function(e){var t=Object(ve.a)(e,2),n=t[0],r=t[1];return Object(l.a)({id:n},r)}))}function Wo(e){return function(t){var n,r,o,i,a=Object(P.r)(t.windows||t.folders);return"".concat(null!==(n=null===(r=e.wrap)||void 0===r?void 0:r[0])&&void 0!==n?n:"").concat(a.map((function(t){return e.unit(t)})).join(e.delimiter||"\n")).concat(null!==(o=null===(i=e.wrap)||void 0===i?void 0:i[1])&&void 0!==o?o:"")}}function Ho(e,t){return(t?Ro:Mo)({count:e,includeCount:1!==e})}var Ko="web ".concat("application/vnd.nxs"),Vo=["windows","folders"];function qo(e){return!!e&&"object"===typeof e&&"type"in e&&"string"===typeof e.type&&Vo.includes(e.type)&&"value"in e}var $o="nxs.clipboard",Yo=[];function Xo(){Yo.forEach((function(e){return e()}))}function Qo(e){e.storageArea===localStorage&&e.key===$o&&Xo()}var Jo={get:function(){try{var e=JSON.parse(localStorage.getItem($o)||"null");if(qo(e))return e}catch(t){Object(N.g)("Unable to parse app clipboard",localStorage.getItem($o))}},set:function(e){if(qo(e)){var t=JSON.stringify(e);localStorage.getItem($o)!==t&&(localStorage.setItem($o,t),Xo())}},clear:function(){null!==localStorage.getItem($o)&&(localStorage.removeItem($o),Xo())},hasContent:function(){return!!localStorage.getItem($o)},subscribe:function(e){Yo.includes(e)||(Yo.length||window.addEventListener("storage",Qo),Yo.push(e))},unsubscribe:function(e){var t=Yo.indexOf(e);-1!==t&&(Yo.splice(t,1),Yo.length||window.removeEventListener("storage",Qo))}};function Zo(){Zo=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ei(e){return ti.apply(this,arguments)}function ti(){return(ti=Object(u.a)(Zo().mark((function e(t){var n;return Zo().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!1,e.prev=1,e.next=4,navigator.permissions.query({name:t});case 4:e.t0=e.sent.state,n="granted"===e.t0,e.next=11;break;case 8:e.prev=8,e.t1=e.catch(1),Object(N.e)(e.t1,{prefix:'Unable to check navigator permission "'.concat(t,'"')});case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function ni(e){try{return JSON.parse(e)}catch(t){}}function ri(){ri=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function oi(e){return ii.apply(this,arguments)}function ii(){return(ii=Object(u.a)(ri().mark((function e(t){var n,r,o,i,a;return ri().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.text,r=t.html,o=t.nxs,e.t1=o,!e.t1){e.next=6;break}return e.next=5,di();case 5:e.t1=e.sent;case 6:if(e.t0=e.t1,!e.t0){e.next=11;break}return e.next=10,ei("clipboard-write");case 10:e.t0=e.sent;case 11:return i=e.t0,a=new ClipboardItem(Object(l.a)(Object(l.a)({"text/plain":new Blob([n],{type:"text/plain"})},r?{"text/html":new Blob([r],{type:"text/html"})}:null),i?Object(w.a)({},Ko,new Blob([JSON.stringify(o)],{type:Ko})):null)),e.next=15,navigator.clipboard.write([a]);case 15:return e.abrupt("return",i);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ai(){return ci.apply(this,arguments)}function ci(){return(ci=Object(u.a)(ri().mark((function e(){var t,n;return ri().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ui(Ko);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",null);case 5:if(!t){e.next=13;break}return e.t0=ni,e.next=9,t.text();case 9:if(e.t1=e.sent,!qo(n=(0,e.t0)(e.t1))){e.next=13;break}return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ui(e){return li.apply(this,arguments)}function li(){return(li=Object(u.a)(ri().mark((function e(t){var n,r;return ri().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,si();case 2:if(null!==(n=e.sent)){e.next=5;break}return e.abrupt("return",null);case 5:return r=null===n||void 0===n?void 0:n.find((function(e){return e.types.includes(t)})),e.prev=6,e.abrupt("return",null===r||void 0===r?void 0:r.getType(t));case 10:e.prev=10,e.t0=e.catch(6);case 12:case"end":return e.stop()}}),e,null,[[6,10]])})))).apply(this,arguments)}function si(){return fi.apply(this,arguments)}function fi(){return(fi=Object(u.a)(ri().mark((function e(){return ri().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,di();case 2:if(e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return e.prev=5,e.abrupt("return",navigator.clipboard.read());case 9:e.prev=9,e.t0=e.catch(5);case 11:case"end":return e.stop()}}),e,null,[[5,9]])})))).apply(this,arguments)}function di(){return ei("clipboard-read")}function pi(){pi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var hi=function(){var e=Object(f.b)(),t=Object(r.useMemo)((function(){return function(){var t=Object(u.a)(pi().mark((function t(n){var r,o,i,a,c,u,l,s,f,d;return pi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.itemSelections,o=n.output,i=n.getSuccessMessage,a=e(Object(b.d)(b.c.selectedSetGroups)),c=a.windows,u=a.folders,(c||u).length){t.next=4;break}return t.abrupt("return");case 4:return l=e(Object(b.d)(b.c.searchTerms)),s=e(Object(b.d)(b.c.filterSearchTerms)),f=e(Object(y.k)("showAllItemMatches")),d=c?{windows:Object(P.C)(!l&&!s||f?c:Object(Ge.d)(c),r)}:{folders:Object(P.C)(!l&&!s||f?u:Object(Ge.c)(u),r)},t.prev=8,t.next=11,vi({output:o,contentGroups:d,itemSelections:r});case 11:e(Object(vt.e)({text:Object(bt.d)(i(Object(P.r)(d.windows||d.folders).length,!!c))})),t.next=18;break;case 14:t.prev=14,t.t0=t.catch(8),Object(N.e)(t.t0,{prefix:"Unable to write to clipboard"}),e(Object(vt.e)({text:"Unable to write to clipboard",severity:"error"}));case 18:case"end":return t.stop()}}),t,null,[[8,14]])})));return function(e){return t.apply(this,arguments)}}()}),[e]);return{copyAndNotify:t}};function vi(e){return mi.apply(this,arguments)}function mi(){return(mi=Object(u.a)(pi().mark((function e(t){var n,r,o,i,a,c,u;return pi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.output,i=t.contentGroups,a=t.itemSelections,c=null===(n=o.nxs)||void 0===n?void 0:n.call(o,i,a),e.next=4,oi({text:o.text(i),html:null===(r=o.html)||void 0===r?void 0:r.call(o,i),nxs:c});case 4:u=e.sent,c&&!u?Jo.set(c):Jo.clear();case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var bi=n(12);function yi(){yi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var gi=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scrollContainerRef,t=Object(f.b)(),n=Object(r.useMemo)((function(){return function(){var n=Object(u.a)(yi().mark((function n(r,o){var i,a,c,u,l,s,f,d,p;return yi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,wi();case 2:if(i=n.sent){n.next=6;break}return Object(A.f)("no clipboard nxs mime content"),n.abrupt("return");case 6:if("windows"===i.type||"folders"===i.type){n.next=9;break}return Object(A.f)("no clipboard nxs mime groups"),n.abrupt("return");case 9:return n.next=11,r("windows"===i.type?{windows:i.value.windows}:{folders:i.value.folders});case 11:return a=n.sent,c=t(Object(b.d)(b.c.selectedSetGroups)),(u=c.folders||c.windows)&&(l=xi({content:i,addedOrOpenedItems:a,singleGroupTarget:o}),s=l.unitIds,f=void 0===s?[]:s,d=l.groupIds,p=void 0===d?[]:d,t(b.a.itemsSelected({unitIds:f,groupIds:p,allGroups:u}))),(null===e||void 0===e?void 0:e.current)&&ji(a)&&e.current.scrollTo({top:e.current.scrollHeight,behavior:"smooth"}),n.abrupt("return",a);case 17:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}),[t,e]);return{addOrOpenItemsFromClipboard:n}};function wi(){return Oi.apply(this,arguments)}function Oi(){return(Oi=Object(u.a)(yi().mark((function e(){var t;return yi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ai();case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",Jo.get());case 5:return Jo.clear(),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xi(e){var t=e.content,n=e.addedOrOpenedItems,r=e.singleGroupTarget,o=function(e){if(Ei(e))return e.folders?{groups:e.folders}:{units:e.links};if(e.wins)return{groups:e.wins};return{units:e.tabs}}(n),i=o.groups,a=o.units;if(a)return{unitIds:a.map((function(e){return e.id}))};if(r){var c=i[0];return{unitIds:(c?Object(P.u)(c):[]).map((function(e){return e.id}))}}return function(e,t){var n=Object(bi.o)(t,(function(t){var n,r,o=t.sourceId;return null!=o&&!!(null===(n=e.value.selections)||void 0===n||null===(r=n.groupIds)||void 0===r?void 0:r.includes(o))})),r=Object(ve.a)(n,2),o=r[0],i=r[1],a=o.map((function(e){return e.id}));return{unitIds:i.flatMap(P.u).map((function(e){return e.id})),groupIds:a}}(t,i)}function ji(e){return Ei(e)?!!e.folders:!!e.wins}function Ei(e){return"folders"in e&&!!e.folders||"links"in e&&!!e.links}var ki=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scrollContainerRef,t=gi({scrollContainerRef:e}).addOrOpenItemsFromClipboard,n=Vt().open;return{openTabsFromClipboard:Object(r.useMemo)((function(){return function(e){return t((function(t){return n(t.windows||t.folders,{target:e,unfocused:!0})}),e.singleWindow)}}),[t,n])}},Si=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scrollContainerRef,t=gi({scrollContainerRef:e}).addOrOpenItemsFromClipboard,n=Object(f.b)();return{addLinksFromClipboard:Object(r.useMemo)((function(){return function(e){return t((function(t){return n(b.a.addLinksToSelectedCollection(t,{target:e}))}),e.singleFolder)}}),[t,n])}},Li=function(e){var t=e.isWindows,n=e.unitIds,i=e.groupIds,a=e.includePasteAsOne,c=e.primaryItemId,u=e.primaryItemType,l=e.scrollContainerRef,f=e.onActionCompleted,d=hi().copyAndNotify,p=ki({scrollContainerRef:l}).openTabsFromClipboard,h=Si({scrollContainerRef:l}).addLinksFromClipboard,v=Object(s.c)(Object(y.l)("enabledCopyActions")),m=Object(s.c)(b.c.onlyLocalClientEventIsSelected),g=Object(s.c)(b.c.selectedSetCount),w=!g,O=Object(s.c)(b.c.someSelectedSetsArePending),x=Object(s.c)(b.c.allSelectedSetsAreInvalid),j=Object(s.c)(b.c.itemSelections),E=j.unitIds,k=j.groupIds,S=Object(s.c)(b.c.selectedSetsHaveUnits),L=n||E,C=i||k,T=!S||O,I=1!==g||m||O||x,_=Object(r.useMemo)((function(){return function(e,t,n){return{id:t,label:Object(bt.d)("".concat(n?"copy as ":"").concat(e.label)),icon:e.icon,disabled:T,tip:Object(bt.d)("copy to clipboard"),onClick:function(){d({itemSelections:{unitIds:L,groupIds:C},output:e.output,getSuccessMessage:e.getSuccessMessage}).then((function(){null===f||void 0===f||f()}))}}}}),[T,d,L,C,f]),N=Object(r.useMemo)((function(){return function(e,t,n){return{id:n,label:Object(bt.d)(e?t?No():Ao():_o()),icon:o.a.createElement(mt.PasteIcon,null),disabled:I,onClick:t?function(t){var n=t.shiftKey;p("tab"===u&&null!=c?{afterTab:c}:"window"===u&&null!=c?{prependToWindow:c}:{singleWindow:!!n||e}).then((function(){null===f||void 0===f||f()}))}:function(t){var n=t.shiftKey;h("link"===u&&null!=c?{afterLink:c}:"folder"===u&&null!=c?{prependToFolder:c}:{singleFolder:!!n||e}).then((function(){null===f||void 0===f||f()}))}}}}),[I,c,u,p,h,f]),A=Object(r.useMemo)((function(){return Go(v)}),[v]);return Object(r.useMemo)((function(){return w?{copyAs:[]}:{copy:_(Uo,"copy"),copyAs:A.map((function(e){return _(e,"copy-as-".concat(e.id),1===A.length)})),paste:N(!1,t,"paste"),pasteAsOne:a?N(!0,t,"paste-as-one"):null}}),[w,_,N,A,a,t])},Ci={noTabsDescription:function(){return"Session Buddy didn't find any tabs \nother than its own"},noMatchingTabsDescription:function(){return"no matching tabs found"},closeItemsTitle:function(e){var t=e.windowCount,n=e.tabCount;return"close ".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!0}),"?")},closeItemsText:function(e){var t=e.windowCount,n=e.tabCount;return"".concat(ht.a.summarizedItems({groupCount:t,unitCount:n,isWindow:!0,includeCount:!0})," will be closed")}};function Ti(){Ti=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ii=function(){var e=Object(f.b)(),t=Object(r.useMemo)((function(){return function(){var t=Object(u.a)(Ti().mark((function t(n){var r,o,i,a,c,l,s,f,d,p,h,v,m,y,g;return Ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.preAction,o=n.titleLabel,i=void 0===o?Ci.closeItemsTitle:o,a=n.textLabel,c=void 0===a?Ci.closeItemsText:a,l=n.bypassConfirmation,s=n.tabIds,f=n.winIds,d=n.reselect,p=n.filteredWindows,h=e(Object(b.d)(b.c.selectedSetGroups)),v=h.windows,m=Ni({windows:v,tabIds:s,winIds:f}),y=m.closeWinIds,g=m.closeTabIds,y.length||g.length){t.next=5;break}return t.abrupt("return");case 5:return t.abrupt("return",e(Object(Tt.d)({title:Object(bt.d)(i({windowCount:y.length,tabCount:g.length})),text:Object(bt.d)(c({windowCount:y.length,tabCount:g.length})),bypass:l,bypassSetting:"bypassConfirmClientItemClose",okAction:function(){var t=Object(u.a)(Ti().mark((function t(){var n,o,i,a,c;return Ti().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===r||void 0===r?void 0:r();case 2:if(Ut.session){t.next=5;break}return Object(N.g)("cannot close items. session not available."),t.abrupt("return");case 5:return i=d&&p&&(e(Object(b.d)(b.c.afterSelectedItem,{contentGroups:{windows:p},skip:{unitIds:g,groupIds:y}}))||e(Object(b.d)(b.c.beforeSelectedItem,{contentGroups:{windows:p},skip:{unitIds:g,groupIds:y}}))),e(b.a.localItemsClosed({tabIds:g,winIds:y})),null===(n=Ut.session)||void 0===n||n.closeTabs(g),null===(o=Ut.session)||void 0===o||o.closeWindows(y),i&&(e(Object(b.d)(b.c.hasItemSelection))||((null===(a=i.unitIds)||void 0===a?void 0:a.length)?e(b.a.itemsSelected({unitIds:i.unitIds})):(null===(c=i.groupIds)||void 0===c?void 0:c.length)&&e(b.a.itemsSelected({groupIds:i.groupIds})))),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}),[e]);return{closeItems:t}},_i={closeWinIds:[],closeTabIds:[]};function Ni(e){var t=e.windows,n=e.tabIds,r=e.winIds;if(!(null===t||void 0===t?void 0:t.length))return _i;var o=t.find((function(e){return e.current}));if(!o||!r.includes(o.id))return{closeWinIds:r,closeTabIds:n};var i=o.tabs.map((function(e){return e.id}));return{closeWinIds:r.filter((function(e){return e!==o.id})),closeTabIds:[].concat(Object(Fe.a)(i),Object(Fe.a)(n))}}function Ai(){Ai=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Pi={},Ri=function(e){var t=e.itemSelections,n=e.onActionCompleted,i=Object(f.b)(),a=Ii().closeItems,c=Object(s.c)(b.c.onlyLocalClientNowIsSelected),l=Object(r.useMemo)((function(){return c&&(t.unitIds.length||t.groupIds.length)?{close:{id:"close",label:"Close",icon:o.a.createElement(mt.CloseTabIcon,null),destructive:!0,tip:Object(bt.d)("close selected items"),onClick:function(e){var r=e.shiftKey;a({bypassConfirmation:r,tabIds:t.unitIds,winIds:t.groupIds}).then((function(){null===n||void 0===n||n()}))}},saveAndClose:{id:"save-and-close",label:"Save & close",icon:o.a.createElement(mt.CollectionIcon,null),destructive:!0,onClick:function(e){var r=e.shiftKey;a({preAction:function(){var e=Object(u.a)(Ai().mark((function e(){return Ai().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(b.a.createCollectionFromSelectedSets({selectedItemsOnly:!0}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),titleLabel:_t.saveAndCloseItemsTitle,textLabel:_t.saveAndCloseItemsText,bypassConfirmation:r,tabIds:t.unitIds,winIds:t.groupIds}).then((function(e){e?i(Object(y.k)("askForNameWhenSavingCollection"))?i(Object(j.a)({isNew:!0,onEditingEnded:n})):null===n||void 0===n||n():null===n||void 0===n||n()}))}}}:Pi}),[c,t,i,a,n]);return l},Mi=n(276),Fi=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Bt().shiftKey,i=Object(s.c)(b.c.onlyLocalClientIsSelected),a=Object(s.c)(b.c.itemSelections).unitIds,c=Object(s.c)(Object(y.l)("showAllItemMatches"));return Object(r.useMemo)((function(){return a.length?{id:"select-same-units",label:"Select all ".concat(i?"tabs":"links",n?" not like this":" like this"),icon:o.a.createElement(mt.SelectDuplicatesIcon,null),onClick:function(){t(b.a.selectDuplicateUnits({invert:n,showAllItemMatches:c,limitToUnitIds:a})),null===e||void 0===e||e()}}:void 0}),[a,i,c,n,t,e])},Di=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).scrollContainerRef,t=Object(f.b)(),n=Object(s.c)(b.c.singleCollectionIsSelected),i=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),a=Object(s.c)(b.c.selectedSetGroups).folders,c=!i&&a&&a.length>1,u=Object(s.c)(b.c.itemSelections),l=u.groupIds,d=u.unitIds,p=l.length,h=d.length>0;return Object(r.useMemo)((function(){return n?{id:"unify",label:Object(bt.d)("unify ".concat(h||p?"selection":"folders")),icon:o.a.createElement(mt.FolderIcon,null),disabled:!h&&(!c||1===p),onClick:function(){t(Object(Tt.d)({title:Object(bt.d)("unify ".concat(h||p?"selection":"all folders","?")),text:Object(bt.d)(h||p?"selected folders and links\nwill be combined into a single folder":"all links will be combined into a single folder"),okAction:function(){return t(b.a.unifySelectedCollectionFolders()),!0},bypassSetting:"bypassConfirmUnify"})).then((function(t){var n,r;(null===e||void 0===e||null===(n=e.current)||void 0===n||n.focus(),t)&&(h&&!p&&(null===e||void 0===e||null===(r=e.current)||void 0===r||r.scrollTo({top:e.current.scrollHeight,behavior:"smooth"})))}))}}:void 0}),[n,h,p,c,e,t])},Bi=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.selectedCollectionCount),i=Object(s.c)(b.c.someSelectedSetsArePending),a=Object(s.c)(b.c.hasItemSelection)&&n;return Object(r.useMemo)((function(){return a?{id:"copy-to-new-collection",label:"Copy to new collection",icon:o.a.createElement(mt.CollectionIcon,null),disabled:i,onClick:function(){t(b.a.createCollectionFromSelectedSets({selectedItemsOnly:!0})).then((function(){null===e||void 0===e||e()}))}}:void 0}),[a,i,t,e])},Ui=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onActionCompleted,t=Object(f.b)(),n=Object(s.c)(b.c.singleCollectionIsSelected),i=Object(s.c)(b.c.selectedCollectionCount),a=Object(s.c)(b.c.someSelectedSetsArePendingOrInvalid),c=Object(s.c)(b.c.itemSelections);return Object(r.useMemo)((function(){return c.groupIds.length+c.unitIds.length&&i?{id:"move-to-new-collection",label:"Move to new collection",icon:o.a.createElement(mt.CollectionIcon,null),disabled:!n||a,onClick:function(){t(Object(Tt.d)({title:Object(bt.d)(_t.moveItemsTitle({folderCount:c.groupIds.length,linkCount:c.unitIds.length})),text:Object(bt.d)(_t.moveItemsText({folderCount:c.groupIds.length,linkCount:c.unitIds.length})),bypassSetting:"bypassConfirmCollectionItemMove",okAction:function(){t(b.a.moveItemsFromSelectedCollection(c))}})).then((function(){null===e||void 0===e||e()}))}}:void 0}),[c,i,n,a,t,e])};function zi(e){var t=e.every((function(e){return e.disabled}));return e.length>1?{id:"copy-as",label:"Copy as...",disabled:t,menu:e}:e[0]}var Gi=function(e){var t,n,i,a=e.itemSelections,c=e.anchorEl,u=e.selectedSetGroups,l=e.primaryOverflowActions,d=e.scrollContainerRef,p=e.navFocusContainerRef,h=e.onClose,v=Object(f.b)(),m=Bt().shiftKey,g=Object(s.c)(b.c.localWindows),w=Object(s.c)(b.c.singleCollectionIsSelected),O=Object(s.c)(b.c.someSelectedSetsArePending),x=Object(s.c)(b.c.allSelectedSetsAreInvalid),j=O||x,E=Object(s.c)(Object(y.l)("showAllItemMatches")),k=a.unitIds.length+a.groupIds.length>0,S=Object(s.c)(b.c.selectedSetsHaveDuplicateUnits),L=!j&&(null===(t=u.folders)||void 0===t?void 0:t.some((function(e){return e.links&&e.links.length>1}))),C=Object(r.useCallback)((function(){T((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}))}),[d]),I=Object(r.useCallback)((function(){T((function(){var e;null===(e=p.current)||void 0===e||e.focus()}))}),[p]),_=qt({onActionCompleted:C}).secondaryOpenActions,N=Li({isWindows:!!u.windows,scrollContainerRef:d,onActionCompleted:C}),A=Ri({itemSelections:a,onActionCompleted:C}).saveAndClose,P=Ft({onActionCompleted:C}),R=At({onActionCompleted:I}),M=Fi({onActionCompleted:C}),F=Di({scrollContainerRef:d}),D=It({onActionCompleted:C}),B=Bi({onActionCompleted:I}),U=Ui({onActionCompleted:C}),z=(n=l,i=["save-session","history","copy","close","delete-items","edit-item"],{extracted:Object.fromEntries(i.map((function(e){var t;return[e,null!==(t=n.find((function(t){return"string"!==typeof t&&t.id===e})))&&void 0!==t?t:null]}))),rest:n.filter((function(e){return"string"===typeof e||!e.id||!i.includes(e.id)}))}),G=z.extracted,W=G["save-session"],H=G.history,K=G.copy,V=G.close,q=G["delete-items"],$=G["edit-item"],Y=z.rest,X=[W,A].concat(Object(Fe.a)(Y),Object(Fe.a)(_),[jn,H,jn,k?K:N.copy,zi(N.copyAs),k?null:N.paste,k?null:N.pasteAsOne,jn,M,k?null:{label:m?"Select uniques":"Select duplicates",icon:o.a.createElement(mt.SelectDuplicatesIcon,null),disabled:!S,onClick:function(){var e;v(b.a.selectDuplicateUnits({invert:m,showAllItemMatches:E})),null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}},jn,w&&!k?{id:"sort-by",label:"Sort by...",disabled:!L,menu:[{label:Object(bt.d)("title"),icon:o.a.createElement(mt.SortTitleIcon,null),disabled:!L,onClick:function(){v(Object(Tt.d)({title:Object(bt.d)("sort links?"),text:Object(bt.d)("all links will be sorted by title"),bypassSetting:"bypassConfirmSort",okAction:function(){v(b.a.sortSelectedCollectionLinks({by:"title"}))}})).then((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}))}},{label:Object(bt.d)("URL"),icon:o.a.createElement(mt.SortUrlIcon,null),disabled:!L,onClick:function(){v(Object(Tt.d)({title:Object(bt.d)("sort links?"),text:Object(bt.d)("all links will be sorted by URL"),bypassSetting:"bypassConfirmSort",okAction:function(){v(b.a.sortSelectedCollectionLinks({by:"url"}))}})).then((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}))}}]}:null,null!==F&&void 0!==F?F:null,w&&!k?{label:Object(bt.d)("replace with open tabs"),icon:o.a.createElement(mt.BrowserIcon,null),disabled:!g.length||j,onClick:function(){v(Object(Tt.d)({title:Object(bt.d)("replace content?"),text:Object(bt.d)("everything in this collection will be replaced\nwith the current session"),bypassSetting:"bypassConfirmReplace",okAction:function(){v(b.a.overwriteSelectedCollectionWithCurrent())}})).then((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}))}}:null,B,U,jn,$,jn,k?null:R,k?null:P,jn,k?null:D,V,q]);return o.a.createElement(kn,{anchorEl:c,spec:X,onClose:h})};var Wi=function(){return"nothing selected"},Hi=function(){return"click a tile on the left \nor search for a collection above"},Ki=function(e){return e?"this collection cannot be viewed":"these collections cannot be viewed"},Vi=function(e){return e?"it may have been deleted or you may need permission to access it":"they may have been deleted or you may need permission to access them"},qi=function(){return"click to edit"},$i=function(){return"clear selection"},Yi=function(){return"".concat(ht.a.tab()," could not be opened")},Xi=function(e,t){var n=e&&ht.a.client({count:e,includeCount:!0}),r=t&&ht.a.collection({count:t,includeCount:!0}),o=n&&r?"".concat(n," & ").concat(r):n||r||"";return"".concat(o," selected")},Qi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.unitCount,n=e.selectedUnitCount,r=e.isWindows;if(null==t&&null==n)return"";if(null==t)return(r?ht.a.selectedTab:ht.a.selectedLink)({count:n,includeCount:!0});var o=(r?ht.a.tab:ht.a.link)({count:t,includeCount:!0});return n?"".concat(n," of ").concat(o," selected"):o},Ji=Object(O.a)((function(e){var t="dark"===e.palette.type;return{ContentHeader:{display:"flex",height:100,boxSizing:"border-box",userSelect:"none",margin:Object(S.d)(0,10,0,32),transition:"margin-right 200ms"},ContentHeaderWithSelections:{backgroundColor:t?e.palette.nxsAction.selected.main:"#00000010",height:60,margin:Object(S.d)(20,26),borderRadius:e.spacing(2),boxShadow:t?"0 0 8px 8px #00000022":"0 2px 0 0 #dbdbdb",transition:"background-color 400ms, margin-right 200ms, box-shadow 400ms"},left:{display:"flex",alignItems:"center",flex:1,minWidth:1},icon:{position:"relative",marginLeft:18,marginRight:26,fontSize:0,color:e.palette.nxsSetIcon.client.main,"$ContentHeader.event &":{color:e.palette.nxsSetIcon.event.main},"$ContentHeader.collection &":{color:e.palette.nxsSetIcon.collection.main},"$ContentHeaderWithSelections &":{marginLeft:24},"& > svg":{fontSize:32}},countsBadge:{display:"flex",position:"absolute",right:-10,bottom:-6,borderRadius:"50%","& > div":{display:"flex",alignItems:"center",justifyContent:"center",width:18,height:18,fontSize:10,fontWeight:500,border:"2px solid ".concat(e.palette.background.default),borderRadius:"50%",color:e.palette.background.default,backgroundColor:"dark"===e.palette.type?"#e0e0e0":"#515151"}},titleAndClearContainer:{display:"flex",alignItems:"center",gap:e.spacing(2)},titleAndDescriptionContainer:{display:"flex",flexDirection:"column",flex:1,minWidth:1},titleContainer:{display:"flex"},title:{fontSize:"1.4rem",fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","$ContentHeaderWithSelections &":{fontSize:"1.1rem"}},titleMissing:{color:e.palette.text.secondary},canEdit:{cursor:"pointer","&:hover":{textDecoration:"underline"}},description:{height:22,display:"flex",alignItems:"center",position:"relative",fontSize:"0.9rem",whiteSpace:"pre",overflow:"hidden",opacity:0},descriptionVisible:{transition:"opacity 200ms",opacity:.65},fade:{position:"absolute",top:0,right:0,bottom:0,width:e.spacing(4),backgroundImage:"linear-gradient(90deg, hsla(0, 0%, 0%, 0%), ".concat(e.palette.background.default,")"),pointerEvents:"none"},right:{display:"flex",alignItems:"center",marginLeft:"auto","& button":{margin:e.spacing(0,.8)}},contentMenuButton:{"&&&":{margin:e.spacing(0,1),"& svg":{fontSize:24}}},tooltip:{textAlign:"center"},showMatchesOnly:{display:"flex",alignItems:"center",marginLeft:e.spacing(3),cursor:"pointer"},checkbox:{padding:"0 6px"}}})),Zi=function(e){var t,n,i=e.selectedSetGroups,a=e.historyIsVisible,c=e.scrollContainerRef,u=e.navFocusContainerRef,d=Object(f.b)(),p=Object(s.c)(b.c.onlyLocalClientIsSelected),h=Object(s.c)(b.c.onlyLocalClientEventIsSelected),v=Object(s.c)(b.c.selectedClientCount),m=Object(s.c)(b.c.selectedCollectionCount),g=v+m,O=g>1,x=Object(s.c)(b.c.someSelectedSetsAreLoading),j=Object(s.c)(b.c.allSelectedSetsAreInvalid),E=Object(s.c)(b.c.someSelectedSetsAreUnhydrated),k=Object(s.c)(b.c.selectedSetTitle),L=Object(s.c)(b.c.selectedSetDateTexts),C=Object(s.c)(b.c.searchTerms),I=Object(s.c)(b.c.filterSearchTerms),_=Object(s.c)(Object(y.l)("showAllItemMatches")),N=i.windows,A=i.folders,R=Object(s.c)(b.c.itemSelections),M=R.groupIds.length+R.unitIds.length?Object(P.r)(Object(P.C)(N||A,R)).length:0,F=!!M,D=Ji(),B=Ue({translate:function(e){return{width:e?Math.ceil((Math.max(e.width,700)-700)/100):0,height:0}}}).width,U=Object(r.useState)(),z=Object(ve.a)(U,2),G=z[0],W=z[1],H=Object(r.useState)(!1),V=Object(ve.a)(H,2),q=V[0],$=V[1];Object(r.useEffect)((function(){F&&$(!0)}),[F]);var Y=function(){var e=Object(K.a)(),t=Object(s.c)(b.c.lastSelectedCollection),n=Object(s.c)(Object(y.l)("defaultCollectionColor"));return t?{setColor:Object(pt.c)({id:t.id,color:t.color,defaultCollectionColor:n}),value:Object(pt.b)({id:t.id,color:t.color,defaultCollectionColor:n,theme:e})}:{setColor:void 0,value:void 0}}().value,X=!!N,Q=Object(r.useCallback)((function(){T((function(){var e;null===(e=u.current)||void 0===e||e.focus()}))}),[u]),J=Object(r.useCallback)((function(){T((function(){var e;null===c||void 0===c||null===(e=c.current)||void 0===e||e.focus()}))}),[c]),Z=Pt({onActionCompleted:Q}),ee=Nt({onActionCompleted:Q}),te=Mt({onActionCompleted:J}),ne=yo({onActionCompleted:J}),re=mo({onActionCompleted:J}),oe=qt({onActionCompleted:J}).primaryOpenAction,ie=Ft(),ae=ie&&!ie.disabled,ce=Li({isWindows:X,scrollContainerRef:c,onActionCompleted:J}).copy,ue=Ri({itemSelections:R,onActionCompleted:J}).close,le=Object(S.a)(D.title,(t={},Object(w.a)(t,D.titleMissing,!k&&!p),Object(w.a)(t,D.canEdit,ae),t)),se=Object(S.a)(D.description,Object(w.a)({},D.descriptionVisible,!x&&!E)),de=Object(r.useMemo)((function(){var e,t,n,r,i,c,u,s=[],f=[];Z&&(s.length<B?s.push(o.a.createElement(Pe,{key:Z.id,classes:{tooltip:D.tooltip},disableHoverListener:Z.disabled,disableFocusListener:Z.disabled,disableTouchListener:Z.disabled,title:Z.disabled?"":null!==(e=Z.tip)&&void 0!==e?e:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,Z)))):f.push(Z));ee&&!F&&(s.length<B?s.push(o.a.createElement(Pe,{key:ee.id,classes:{tooltip:D.tooltip},disableHoverListener:ee.disabled,disableFocusListener:ee.disabled,disableTouchListener:ee.disabled,title:ee.disabled?"":null!==(t=ee.tip)&&void 0!==t?t:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,ee)))):f.push(ee));te&&(s.length<B?s.push(o.a.createElement(Pe,{key:te.id,classes:{tooltip:D.tooltip},disableHoverListener:te.disabled,disableFocusListener:te.disabled,disableTouchListener:te.disabled,title:te.disabled?"":null!==(n=te.tip)&&void 0!==n?n:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,te)))):(f.push(te),f.push(jn)));(oe&&(s.length<B?s.push(o.a.createElement(Pe,{key:oe.id,classes:{tooltip:D.tooltip},disableHoverListener:oe.disabled,disableFocusListener:oe.disabled,disableTouchListener:oe.disabled,title:oe.disabled?"":Object(bt.d)(oe.tip),placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,oe)))):(f.push(jn),f.push(oe))),ce&&F)&&(s.length<B?s.push(o.a.createElement(Pe,{key:ce.id,classes:{tooltip:D.tooltip},disableHoverListener:ce.disabled,disableFocusListener:ce.disabled,disableTouchListener:ce.disabled,title:ce.disabled?"":null!==(r=ce.tip)&&void 0!==r?r:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,ce)))):f.push(ce));ne&&F&&(s.length<B?s.push(o.a.createElement(Pe,{key:ne.id,classes:{tooltip:D.tooltip},disableHoverListener:ne.disabled,disableFocusListener:ne.disabled,disableTouchListener:ne.disabled,title:ne.disabled?"":null!==(i=ne.tip)&&void 0!==i?i:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,ne)))):f.push(ne));ue&&F&&(s.length<B?s.push(o.a.createElement(Pe,{key:ue.id,classes:{tooltip:D.tooltip},disableHoverListener:ue.disabled,disableFocusListener:ue.disabled,disableTouchListener:ue.disabled,title:ue.disabled?"":null!==(c=ue.tip)&&void 0!==c?c:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,ue)))):f.push(ue));re&&F&&(s.length<B?s.push(o.a.createElement(Pe,{key:re.id,classes:{tooltip:D.tooltip},disableHoverListener:re.disabled,disableFocusListener:re.disabled,disableTouchListener:re.disabled,title:re.disabled?"":null!==(u=re.tip)&&void 0!==u?u:"",placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,re)))):f.push(re));if(p&&!F){var h={icon:o.a.createElement(mt.HistoryIcon,null),onClick:function(){d(Object(y.p)("historyIsOpen")),d(b.a.selectClientHistoryItem(po.a))}};s.length<B?s.push(o.a.createElement(fe.a,Object.assign({key:"history"},h,{label:"History",selected:a,selectedColor:"secondary"}))):f.push(Object(l.a)(Object(l.a)({},h),{},{id:"history",label:a?"Hide history":"Show history"}))}return{primaryActionButtons:s,primaryOverflowActions:f}}),[Z,ee,te,oe,ce,ne,ue,re,B,p,a,F,D.tooltip,d]),pe=de.primaryActionButtons,he=de.primaryOverflowActions,me=!he.length&&0===g,be=Object(S.a)(D.ContentHeader,(n={},Object(w.a)(n,D.ContentHeaderWithSelections,F),Object(w.a)(n,"event",h),Object(w.a)(n,"collection",m),n));return o.a.createElement("header",{className:be,onClick:function(e){var t;null===c||void 0===c||null===(t=c.current)||void 0===t||t.focus(),e.stopPropagation()},onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){F||$(!1)},onMouseEnter:function(){F||$(!1)}},o.a.createElement("div",{className:D.left},o.a.createElement(Pe,{classes:{tooltip:D.tooltip},disableHoverListener:!O,disableFocusListener:!O,disableTouchListener:!O,title:O&&Xi(v,m),placement:"top"},o.a.createElement("div",{className:D.icon},m?o.a.createElement(mt.CollectionIcon,{color:Y}):h?o.a.createElement(mt.HistoryIcon,null):o.a.createElement(mt.BrowserIcon,null),O?o.a.createElement("div",{className:D.countsBadge},o.a.createElement("div",null,g)):null)),F?o.a.createElement("div",{className:D.titleAndClearContainer},o.a.createElement("div",{className:D.title},Object(bt.d)(Qi({selectedUnitCount:M,isWindows:X}))),o.a.createElement(Pe,{classes:{tooltip:D.tooltip},title:Object(bt.d)($i()),placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,{round:!0,icon:o.a.createElement(mt.CloseIcon,null),onClick:function(){d(b.a.itemSelectionCleared()),J()}})))):o.a.createElement("div",{className:D.titleAndDescriptionContainer},o.a.createElement("div",{className:D.titleContainer},o.a.createElement(Pe,{disableHoverListener:!ae||q,disableFocusListener:!ae||q,disableTouchListener:!ae||q,title:!ae||q?"":Object(bt.d)(qi()),placement:"top"},o.a.createElement("div",{className:le,onClick:ae?function(e){ie.onClick(e)}:void 0},!p&&k&&C?o.a.createElement(kt,{text:k,split:Object(jt.b)(k,[].concat(Object(Fe.a)(C.free),Object(Fe.a)(C.collection)))}):k||(p?Object(bt.d)(ht.a.thisBrowser()):ht.a.untitled())))),o.a.createElement("div",{className:se},o.a.createElement("span",null,o.a.createElement("span",null,Object(bt.d)(Qi({unitCount:Object(P.r)(N||A).length,selectedUnitCount:M,isWindows:X}))),(null===L||void 0===L?void 0:L.primary)&&!j?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",null," \u2022 "),o.a.createElement(Pe,{classes:{tooltip:D.tooltip},disableHoverListener:x||q,disableFocusListener:x||q,disableTouchListener:x||q,title:L.secondary,placement:"top"},o.a.createElement("span",null,L.primary))):null),C||I?o.a.createElement("div",{className:D.showMatchesOnly},o.a.createElement(Mi.a,{classes:{root:D.checkbox},checked:!_,color:"secondary",inputProps:{"aria-label":"show matches only checkbox"},onClick:function(){d(Object(y.p)("showAllItemMatches"))}}),o.a.createElement("span",{onClick:function(){d(Object(y.p)("showAllItemMatches"))}},"Show matches only")):null,o.a.createElement("div",{className:D.fade})))),o.a.createElement("div",{className:D.right},pe,o.a.createElement(fe.a,{round:!0,className:D.contentMenuButton,icon:o.a.createElement(mt.KebabIcon,null),selected:!!G,selectedColor:"hover",disabled:me,onClick:function(e){var t=e.currentTarget;return W(t===G?null:t),!0}}),o.a.createElement(Gi,{itemSelections:R,anchorEl:G,selectedSetGroups:i,primaryOverflowActions:he,scrollContainerRef:c,navFocusContainerRef:u,onClose:function(){W(null)}})))},ea=function(e){var t=hi().copyAndNotify;Object(r.useEffect)((function(){var n=function(n){var r;"Range"!==(null===(r=window.getSelection())||void 0===r?void 0:r.type)&&(t({itemSelections:e,output:Uo.output,getSuccessMessage:Uo.getSuccessMessage}),n.preventDefault())};return document.addEventListener("copy",n),function(){document.removeEventListener("copy",n)}}),[t,e])},ta=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement,t=Object(r.useRef)({ctrlKey:!1,metaKey:!1,shiftKey:!1,altKey:!1});return Object(r.useEffect)((function(){var n=function(e){Dt(e.key,!0,t.current)},r=function(e){Dt(e.key,!1,t.current)},o=function(){t.current.ctrlKey=!1,t.current.metaKey=!1,t.current.shiftKey=!1,t.current.altKey=!1};e.addEventListener("keydown",n),e.addEventListener("keyup",r),window.addEventListener("blur",o);var i=Object(He.i)(e,(function(){o()}));return function(){e.removeEventListener("keydown",n),e.removeEventListener("keyup",r),window.removeEventListener("blur",o),i()}}),[e]),t.current}();Object(r.useEffect)((function(){var r=function(r){t.ignoreInput&&(r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement)||e(!!n.shiftKey)};return document.addEventListener("paste",r),function(){document.removeEventListener("paste",r)}}),[e,n,t.ignoreInput])},na=Object(O.a)((function(e){return{HistoryTile:{padding:e.spacing(1.375,2),marginBottom:e.spacing(.5),borderRadius:e.shape.borderRadius,color:e.palette.text.primary,cursor:"pointer","&.current":{marginBottom:e.spacing(.5)+18},"&:hover":{backgroundColor:e.palette.nxsAction.hover.main},"&&.selected":{color:e.palette.primary.contrastText,backgroundColor:"dark"===e.palette.type?"#646464":"#6e6e6e","&.current":{color:e.palette.nxsAction.selected.contrastText,backgroundColor:e.palette.nxsAction.selected.main},".focus-container:focus-within &":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main}}},title:{display:"flex",alignItems:"center",fontWeight:400,whiteSpace:"pre"},marker:{position:"absolute",left:(12+oa)/-2,boxSizing:"border-box",width:12,height:12,border:"2px solid ".concat(e.palette.nxsTimelineMarker.neutral.main),borderRadius:"50%",backgroundColor:e.palette.background.default,pointerEvents:"none",boxShadow:"0 0 0 8px ".concat(e.palette.background.default),".focus-container:focus-within &":{borderColor:"dark"===e.palette.type?e.palette.text.primary:"#707070"}},description:{fontSize:"0.85rem",color:e.palette.text.secondary,"$HistoryTile.selected &":{color:e.palette.error.secondaryContrastText}}}})),ra=function(e){var t=e.timestamp,n=e.type,r=e.selected,i=e.edited,a=e.onClick,c=na(),u=Object(S.a)(c.HistoryTile,{selected:r,current:"current"===n});return o.a.createElement("div",{className:u,onMouseDown:function(){a()}},o.a.createElement("div",{className:c.title},o.a.createElement("div",{className:c.marker}),o.a.createElement("div",null,Object(bt.d)("current"===n?ht.a.now():ht.a.shortDate(t,{abbreviateRecent:!0})))),"current"!==n?o.a.createElement("div",{className:c.description},"".concat(Object(bt.d)(qn.a.clientHistoryItemType(n))).concat(i?" (edited)":"")):null)},oa=2,ia="150ms",aa=Object(O.a)((function(e){return{History:{display:"flex",flexDirection:"column",position:"absolute",bottom:0,boxSizing:"border-box",width:260,height:"calc(100% - ".concat(100,"px)"),right:-260,backgroundColor:e.palette.background.default,userSelect:"none","&.open":{right:0},"&.enableAnimation":{willChange:"right",transition:"right ".concat(ia)}},header:{display:"none",justifyContent:"space-between",alignItems:"center",paddingRight:18,paddingBottom:13,whiteSpace:"nowrap"},headerLeft:{marginLeft:e.spacing(1),fontSize:"1.2em",textTransform:"uppercase"},closeButton:{padding:e.spacing(1)},scrollContainer:Object(l.a)({flexGrow:1,flexBasis:0,overflowX:"hidden",overflowY:"scroll",outline:"none"},Object(S.e)({thickness:7,spacing:3.5,hoverColor:e.palette.nxsAction.hover["dark"===e.palette.type?"light":"dark"]})),timeline:{position:"relative",paddingBottom:e.spacing(4),paddingLeft:e.spacing(1),marginLeft:e.spacing(4),borderLeft:"".concat(oa,"px solid ").concat("dark"===e.palette.type?"#4f4f4f":e.palette.divider),"&::before":{content:'""',position:"absolute",top:0,left:-6,width:10,height:10,background:e.palette.background.default,zIndex:50},"&::after":{content:'""',position:"absolute",bottom:0,left:-6,width:10,height:62,background:e.palette.background.default,zIndex:50},"$History.loadMore &::after":{height:144},"$History:focus-within &":{borderLeftColor:"dark"===e.palette.type?"#8b8b8b":"#ccc"}},sectionEmpty:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.spacing(2),padding:e.spacing(3,4),textAlign:"center",color:"#898989","& button":{margin:e.spacing(1,0)},"& a":{color:"inherit","&:hover":{color:e.palette.text.primary}}},sectionEmptyIcon:{fontSize:0,"& svg":{fontSize:26}},sectionEmptyTitle:{color:e.palette.text.primary,fontWeight:500},loadingFooter:{display:"flex",height:77,marginBottom:5,alignItems:"center",justifyContent:"center"},loadMore:{cursor:"pointer"}}})),ca=function(e){var t=e.open,n=e.enableAnimation,i=e.onCloseClick,a=Object(f.b)(),c=aa(),u=Object(s.c)(b.c.navClientHistory),l=Object(s.c)(b.c.selectedClientHistoryItemId),d=Object(s.c)(b.c.clientHistoryInitialized),p=Object(s.c)(b.c.navClientHistoryIsLoading),h=Object(s.c)(b.c.navClientHistoryIsLoadingLong),v=Object(s.c)(b.c.navClientHistoryIsExhausted),m=Object(s.c)(b.c.searchTerms),g=Gn("events"),w=!!(null===g||void 0===g?void 0:g.count),O=Object(r.useRef)(),x=Rn(O),j=ze({toleranceBottom:308,ref:O}),E=Object(ve.a)(j,2),k=E[0],L=E[1],C=Object(r.useRef)(k),T=!1;k!==C.current&&(T=!0,C.current=k);var I=Fn({scrollContainerRef:x}).processKeyDown;Object(r.useEffect)((function(){a(b.a.fetchNavClientHistory({reset:!0}))}),[a]),Object(r.useEffect)((function(){!T||"bottom"!==k||v||p||a(b.a.fetchNavClientHistory())}),[a,T,k,v,p]);var _=function(){a(b.a.fetchNavClientHistory({}))},N=Object(r.useRef)(!0),A=t!==N.current;N.current=t;var P=Object(S.a)(c.History,"focus-container",{open:t,enableAnimation:n&&A,loadMore:u.length&&!v});return o.a.createElement("div",{className:P,inert:t&&(u.length||w)?void 0:"true",onClick:function(e){e.stopPropagation()},onKeyDown:function(e){I(e,{up:function(){return a(b.a.selectPrevNavEvent())},down:function(){return a(b.a.selectNextNavEvent())},start:function(){return a(b.a.selectFirstNavEvent())},end:function(){return a(b.a.selectLastNavEvent())},remove:function(){return a(b.a.deleteSelectedEvents(e.shiftKey))}})}},o.a.createElement("header",{className:c.header},o.a.createElement("div",{className:c.headerLeft},"History"),o.a.createElement(dt.a,{className:c.closeButton,onClick:i},o.a.createElement(mt.CloseIcon,null))),o.a.createElement("div",{tabIndex:0,className:c.scrollContainer,ref:L},o.a.createElement(Pn,{show:"top"!==k,color:"rgba(0,0,0,0.1)"}),d?!u.length&&p?o.a.createElement("div",{className:c.loadingFooter},o.a.createElement(In,{size:"40px",thickness:"xs",color:"#aaa"})):p||u.length?o.a.createElement("div",{className:c.timeline},o.a.createElement(ra,{key:"".concat(0),timestamp:0,type:"current",selected:l===po.a,onClick:function(){a(b.a.selectClientHistoryItem(po.a))}}),u.map((function(e){var t=e.id,n=e.type,r=e.updated;return o.a.createElement(ra,{key:"".concat(t),timestamp:t,type:n,selected:l===t,edited:!!r,onClick:function(){a(b.a.selectClientHistoryItem(t))}})})),p?o.a.createElement("div",{className:c.loadingFooter},h?o.a.createElement(In,{size:"40px",thickness:"xs",color:"#aaa"}):null):u.length&&!v?o.a.createElement("div",{className:Object(S.a)(c.loadingFooter,c.loadMore),onClick:_},o.a.createElement(fe.a,{label:"Load more",outlined:!0,tabIndex:-1,onClick:_})):null):o.a.createElement("div",{className:c.sectionEmpty},o.a.createElement("div",{className:c.sectionEmptyIcon},o.a.createElement(mt.HistoryIcon,null)),o.a.createElement("div",{className:c.sectionEmptyTitle},m?"No matching events":w?"Events missing?":"No events"),m||!w?null:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,"Session Buddy saved a backup of your events."),o.a.createElement(fe.a,{color:"primary",label:"Restore events...",size:"small",onClick:function(){a(Object(y.i)())}}))):null))},ua=Object(O.a)((function(e){return{Group:{display:"flex",alignItems:"center",height:e.spacing(4),paddingRight:e.spacing(1),margin:e.spacing(6,6,.5,0),whiteSpace:"nowrap","&:first-of-type":{marginTop:e.spacing(1)}},primary:{display:"flex",alignItems:"center",alignSelf:"stretch",paddingLeft:7,paddingRight:12,fontSize:"1.1rem",fontWeight:400,borderRadius:e.shape.borderRadiusSmall,cursor:"pointer","&&:hover":{backgroundColor:e.palette.nxsAction.hover.main,"& + $secondary":{"& $setText":{display:"none"},"& $unitCounts":{display:"initial"}}},"$Group.selected &":{backgroundColor:e.palette.nxsAction.selected.main,"& mark":{color:"dark"===e.palette.type?"inherit":"#000"},".focus-container:focus-within &, .isContentMenuOpen &":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main}}},iconOrCheckbox:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,marginRight:3,"&:hover $checkbox svg":{color:e.palette.text.primary},"$Group $primary:hover &, $Group.selected &":{"& $icon":{display:"none"},"& $checkbox":{display:"flex"}}},icon:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:0,"& > svg":{fontSize:"1.5rem"},"& > .adornment":{height:16},"& + $icon":{marginLeft:2},"&:first-of-type + $icon":{marginLeft:8},"& + .title":{marginLeft:8}},checkbox:{display:"none","& svg":{fontSize:18,color:e.palette.secondary.main,".focus-container:focus-within $Group.selected &, .isContentMenuOpen $Group.selected &":{color:"dark"===e.palette.type?void 0:e.palette.primary.contrastText}}},secondary:{paddingLeft:e.spacing(1),color:e.palette.text.secondary},setText:{},unitCounts:{display:"none","$Group.alwaysShowUnitCounts &":{display:"initial"},"$Group.alwaysShowUnitCounts $setText + &":{display:"none"}}}})),la=function(e){var t,n=e.window,r=e.folder,i=e.selected,a=e.alwaysShowUnitCounts,c=e.onClick,u=e.onDblClick,l=e.onOpenMenuClick,s=e.onRemove,f=ua(),d=$e(["debug"]).debug,p=Object(S.a)(f.Group,{selected:i,alwaysShowUnitCounts:a||i}),h=r||n,v=h.title||Object(bt.d)(r?h.incognito?ht.a.incognitoFolder():ht.a.folder():n.current?ht.a.currentWindow():h.incognito?ht.a.incognitoWindow():ht.a.window()),m=null===(t=r||n)||void 0===t?void 0:t._setText,b=Object(bt.d)(r?ht.a.link({count:r.links.length,includeCount:!0}):ht.a.tab({count:n.tabs.length,includeCount:!0}));return o.a.createElement("div",{className:p},o.a.createElement("div",{className:f.primary,onMouseDown:Object(He.h)({single:function(e){null===c||void 0===c||c(h.id,Object(We.c)(e))},double:function(e){null===u||void 0===u||u({id:h.id,selectionType:Object(We.c)(e),ctrlOrMetaKey:Object(He.c)(e),shiftKey:e.shiftKey})},leftButtonOnly:!0}),onClick:function(e){e.stopPropagation()},onContextMenu:function(e){if(l){var t=e.currentTarget,n=t.getBoundingClientRect().left,r=Math.max(e.pageX-n-18,0);l({anchor:{el:t,xOffset:r},id:h.id,selectionType:i?null:Object(We.c)(e)}),e.preventDefault()}}},o.a.createElement("span",{className:f.iconOrCheckbox,onClick:function(e){null===s||void 0===s||s(e.shiftKey)},onMouseDown:function(e){s||0!==e.button||null===c||void 0===c||c(h.id,Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})),e.stopPropagation()},onContextMenu:s?void 0:function(e){if(l){var t=e.currentTarget;l({anchor:{el:t,xOffset:0},id:h.id,selectionType:i?null:Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})}),e.preventDefault(),e.stopPropagation()}}},o.a.createElement("span",{className:f.icon},h.incognito?o.a.createElement(mt.IncognitoIcon,null):r?o.a.createElement(mt.FolderIcon,null):n.current?o.a.createElement(mt.ThisWindowIcon,null):o.a.createElement(mt.WindowIcon,null)),o.a.createElement("span",{className:f.checkbox},s?o.a.createElement(mt.CloseTabIcon,null):o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.CheckboxCheckedIcon,{style:{display:i?"initial":"none"}}),o.a.createElement(mt.CheckboxEmptyIcon,{style:{display:i?"none":"initial"}})))),o.a.createElement("span",{className:"title"},o.a.createElement(kt,{text:v,split:null===h||void 0===h?void 0:h.titleSplit}),d?" - ".concat(h.id):null)),o.a.createElement("div",{className:f.secondary},m?o.a.createElement("span",{className:f.setText},m):null,o.a.createElement("span",{className:f.unitCounts},b)))},sa=Object(O.a)((function(e){var t="dark"===e.palette.type;return{Unit:{display:"flex",height:e.spacing(3.5),paddingRight:e.spacing(1),whiteSpace:"nowrap",transition:"opacity 400ms",opacity:1,"&.loading":{transition:"none",opacity:.6},"&:hover $secondary":{display:"initial"}},primary:{display:"flex",alignItems:"center",paddingLeft:7,paddingRight:12,borderRadius:e.shape.borderRadiusSmall,cursor:"pointer","&:hover":{backgroundColor:e.palette.nxsAction.hover.main},"$Unit.selected &":{backgroundColor:e.palette.nxsAction.selected.main,"& mark":{color:"dark"===e.palette.type?"inherit":"#000"},".focus-container:focus-within &, .isContentMenuOpen &":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main}}},iconOrCheckbox:{display:"flex",alignItems:"center",justifyContent:"center",width:28,height:28,marginRight:3,"&:hover $checkbox svg":{color:e.palette.text.primary},"$Unit $primary:hover &, $Unit.selected &":{"& $icon":{display:"none"},"& $checkbox":{display:"flex"}}},icon:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:0,height:18,width:18,color:e.palette.grey[t?500:700],"& > svg, img, span":{height:"100%",minWidth:"100%",maxWidth:"100%",display:"block",".focus-container:focus-within $Unit.selected &, .isContentMenuOpen $Unit.selected &":{color:e.palette.primary.contrastText}},"& > .adornment":{height:12},"& + $icon":{marginLeft:2}},checkbox:{display:"none","& svg":{fontSize:18,color:e.palette.secondary.main,".focus-container:focus-within $Unit.selected &, .isContentMenuOpen $Unit.selected &":{color:"dark"===e.palette.type?void 0:e.palette.primary.contrastText}}},title:{marginLeft:2,"$icon + &":{marginLeft:8}},secondary:{display:"none",alignSelf:"center",paddingLeft:e.spacing(2),"$Unit.showUrl &":{display:"initial"}},url:{color:e.palette.nxsUrl.link.main,textDecoration:"none",outline:"none","&:hover, &:focus":{color:e.palette.nxsUrl.hover.main,textDecoration:"underline","&:visited":{color:e.palette.nxsUrl.visited.main}}}}})),fa=function(e){var t,n,r=e.unit,i=e.selected,a=e.onClick,c=e.onDblClick,u=e.onUrlClick,s=e.onOpenMenuClick,f=e.onRemove,d=e.onContainerFocusNeeded,p=$r(r),h="dark"===Object(K.a)().palette.type,v="status"in r&&"loading"===r.status,m=sa(),b=$e(["debug"]).debug,y=Object(S.a)(m.Unit,{selected:i,loading:v,showUrl:(null===(t=r.urlSplit)||void 0===t?void 0:t.matchParts.length)||i}),g=r.title||r.url;return o.a.createElement("div",{className:y},o.a.createElement("div",{className:m.primary,onMouseDown:Object(He.h)({single:function(e){null===a||void 0===a||a(r.id,Object(We.c)(e))},double:function(e){null===c||void 0===c||c({id:r.id,url:r.url,selectionType:Object(We.c)(e),shiftKey:e.shiftKey})},leftButtonOnly:!0}),onClick:function(e){e.stopPropagation()},onContextMenu:function(e){if(s){var t=e.currentTarget,n=t.getBoundingClientRect().left,o=Math.max(e.pageX-n-18,0);s({anchor:{el:t,xOffset:o},id:r.id,selectionType:i?null:Object(We.c)(e)}),e.preventDefault()}}},o.a.createElement("span",{className:m.iconOrCheckbox,onClick:function(e){null===f||void 0===f||f(e.shiftKey)},onMouseDown:function(e){f||0!==e.button||null===a||void 0===a||a(r.id,Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})),e.stopPropagation()},onContextMenu:f?void 0:function(e){if(s){var t=e.currentTarget;s({anchor:{el:t,xOffset:0},id:r.id,selectionType:i?null:Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})}),e.preventDefault(),e.stopPropagation()}}},o.a.createElement("span",{className:m.icon},v?o.a.createElement(In,{color:h?"#fff":"#666"}):p),o.a.createElement("span",{className:m.checkbox},f?o.a.createElement(mt.CloseTabIcon,null):o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.CheckboxCheckedIcon,{style:{display:i?"initial":"none"}}),o.a.createElement(mt.CheckboxEmptyIcon,{style:{display:i?"none":"initial"}})))),r.pinned?o.a.createElement("span",{className:m.icon},o.a.createElement(mt.PinIcon,{className:"adornment"})):null,"audible"in r&&r.audible?o.a.createElement("span",{className:m.icon},(null===(n=r.mutedInfo)||void 0===n?void 0:n.muted)?o.a.createElement(mt.MutedIcon,{className:"adornment"}):o.a.createElement(mt.AudibleIcon,{className:"adornment"})):null,o.a.createElement("span",{className:m.title},b?o.a.createElement("span",{style:Object(l.a)({fontFamily:"monospace",fontSize:"0.9rem",fontWeight:800,padding:"2px 8px",marginRight:8,borderRadius:4,userSelect:"text"},yt(r.id.toString(),!0)),onClick:function(e){e.stopPropagation()}},r.id):null,o.a.createElement(kt,{text:g,split:r.titleSplit}))),o.a.createElement("div",{className:m.secondary},o.a.createElement("a",{className:m.url,href:r.url,rel:"noreferrer",onClick:function(e){e.shiftKey||e.ctrlKey||e.metaKey||0!==e.button||(null===u||void 0===u||u({id:r.id,url:r.url,shiftKey:e.shiftKey}),e.preventDefault(),e.stopPropagation())},onBlur:d?function(e){e.relatedTarget||d()}:void 0},o.a.createElement(kt,{text:r.url,split:r.urlSplit}))))},da=Object(O.a)((function(e){var t="dark"===e.palette.type;return{Unit:{marginRight:e.spacing(3),alignItems:"center",height:70,marginBottom:8,display:"flex",paddingRight:e.spacing(1),transition:"opacity 400ms",opacity:1,backgroundColor:t?"#ffffff08":"#00000008",borderRadius:8,"&.loading":{transition:"none",opacity:.6},"& button":{marginRight:e.spacing(1)},"&:hover":{backgroundColor:e.palette.nxsAction.hover.main},"&:selected":{backgroundColor:e.palette.nxsAction.selected.main}},primary:{fontWeight:500,display:"flex",alignItems:"center",paddingRight:12,borderRadius:e.shape.borderRadiusSmall,cursor:"pointer","$Unit.selected &":{"& mark":{color:"dark"===e.palette.type?"inherit":"#000"}}},iconOrCheckbox:{backgroundColor:t?"#ffffff22":"#5c5c5c1a",borderRadius:8,display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,marginRight:3,"&:hover $checkbox svg":{color:e.palette.text.primary},"$Unit $primary:hover &, $Unit.selected &":{"& $icon":{display:"none"},"& $checkbox":{display:"flex"}},"$Unit.selected &":{".focus-container:focus-within &, .isContentMenuOpen &":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main}}},icon:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:0,height:18,width:18,color:e.palette.grey[t?500:700],"& > svg, img, span":{height:"100%",minWidth:"100%",maxWidth:"100%",display:"block",".focus-container:focus-within $Unit.selected &, .isContentMenuOpen $Unit.selected &":{color:e.palette.primary.contrastText}},"& > .adornment":{height:12},"& + $icon":{marginLeft:2}},checkbox:{display:"none","& svg":{fontSize:18,color:e.palette.secondary.main,".focus-container:focus-within $Unit.selected &, .isContentMenuOpen $Unit.selected &":{color:"dark"===e.palette.type?void 0:e.palette.primary.contrastText}}},iconContainer:{boxSizing:"border-box",padding:12,height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},titleAndUrl:{width:"100%",display:"flex",flexDirection:"column",justifyContent:"center",flexGrow:1,minWidth:0},title:{"$icon + &":{marginLeft:8}},buttonContainer:{display:"none",alignItems:"center",height:"100%","$Unit:hover &":{display:"flex"}},secondary:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},url:{fontSize:"0.85rem",fontWeight:400,color:e.palette.nxsUrl.link.main,textDecoration:"none",outline:"none","&:hover, &:focus":{color:e.palette.nxsUrl.hover.main,textDecoration:"underline","&:visited":{color:e.palette.nxsUrl.visited.main}}}}})),pa=function(e){var t,n=e.unit,r=e.selected,i=e.onClick,a=e.onDblClick,c=e.onUrlClick,u=e.onOpenMenuClick,s=e.onRemove,f=e.onContainerFocusNeeded,d=$r(n),p="dark"===Object(K.a)().palette.type,h="status"in n&&"loading"===n.status,v=da(),m=$e(["debug"]).debug,b=Object(S.a)(v.Unit,{selected:r,loading:h}),y=n.title||n.url;return o.a.createElement("div",{className:b,onMouseDown:Object(He.h)({single:function(e){null===i||void 0===i||i(n.id,Object(We.c)(e))},double:function(e){null===a||void 0===a||a({id:n.id,url:n.url,selectionType:Object(We.c)(e),shiftKey:e.shiftKey})},leftButtonOnly:!0}),onClick:function(e){e.stopPropagation()},onContextMenu:function(e){if(u){var t=e.currentTarget,o=t.getBoundingClientRect().left,i=Math.max(e.pageX-o-18,0);u({anchor:{el:t,xOffset:i},id:n.id,selectionType:r?null:Object(We.c)(e)}),e.preventDefault()}}},o.a.createElement("div",{className:v.iconContainer},o.a.createElement("span",{className:v.iconOrCheckbox,onClick:function(e){null===s||void 0===s||s(e.shiftKey)},onMouseDown:function(e){s||0!==e.button||null===i||void 0===i||i(n.id,Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})),e.stopPropagation()},onContextMenu:s?void 0:function(e){if(u){var t=e.currentTarget;u({anchor:{el:t,xOffset:0},id:n.id,selectionType:r?null:Object(We.c)({ctrlKey:!0,metaKey:!0,shiftKey:e.shiftKey,altKey:!1})}),e.preventDefault(),e.stopPropagation()}}},o.a.createElement("span",{className:v.icon},h?o.a.createElement(In,{color:p?"#fff":"#666"}):d),o.a.createElement("span",{className:v.checkbox},s?o.a.createElement(mt.CloseTabIcon,null):o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.CheckboxCheckedIcon,{style:{display:r?"initial":"none"}}),o.a.createElement(mt.CheckboxEmptyIcon,{style:{display:r?"none":"initial"}}))))),o.a.createElement("div",{className:v.titleAndUrl},o.a.createElement("div",{className:v.primary},n.pinned?o.a.createElement("span",{className:v.icon},o.a.createElement(mt.PinIcon,{className:"adornment"})):null,"audible"in n&&n.audible?o.a.createElement("span",{className:v.icon},(null===(t=n.mutedInfo)||void 0===t?void 0:t.muted)?o.a.createElement(mt.MutedIcon,{className:"adornment"}):o.a.createElement(mt.AudibleIcon,{className:"adornment"})):null,o.a.createElement("span",{className:v.title},m?o.a.createElement("span",{style:Object(l.a)({fontFamily:"monospace",fontSize:"0.9rem",fontWeight:800,padding:"2px 8px",marginRight:8,borderRadius:4,userSelect:"text"},yt(n.id.toString(),!0)),onClick:function(e){e.stopPropagation()}},n.id):null,o.a.createElement(kt,{text:y,split:n.titleSplit}))),o.a.createElement("div",{className:v.secondary},o.a.createElement("a",{className:v.url,href:n.url,rel:"noreferrer",onClick:function(e){e.shiftKey||e.ctrlKey||e.metaKey||0!==e.button||(null===c||void 0===c||c({id:n.id,url:n.url,shiftKey:e.shiftKey}),e.preventDefault(),e.stopPropagation())},onBlur:f?function(e){e.relatedTarget||f()}:void 0},o.a.createElement(kt,{text:n.url,split:n.urlSplit})))),o.a.createElement("div",{className:v.buttonContainer},o.a.createElement(fe.a,{round:!0,icon:o.a.createElement(mt.WindowsIcon,null),link:"https://sessionbuddy.com/love/",onClick:function(){}}),o.a.createElement(fe.a,{round:!0,icon:o.a.createElement(mt.CopyIcon,null),link:"https://sessionbuddy.com/love/",onClick:function(){}}),o.a.createElement(fe.a,{round:!0,icon:o.a.createElement(mt.DeleteIcon,null),link:"https://sessionbuddy.com/love/",onClick:function(){}}),o.a.createElement(fe.a,{round:!0,icon:o.a.createElement(mt.KebabIcon,null),link:"https://sessionbuddy.com/love/",onClick:function(){}})))},ha=Object(O.a)((function(e){var t="dark"===e.palette.type;return{ContentMessage:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",padding:e.spacing(6,3,3)},icon:{marginBottom:e.spacing(2),"& > svg":{fontSize:"6rem",opacity:t?.1:.08},"& > img":{height:84,opacity:t?.4:.15,filter:"grayscale(1)"}},title:{fontSize:"1.1rem",fontWeight:500},description:{marginTop:e.spacing(2),maxWidth:260,whiteSpace:"pre-line",color:e.palette.text.secondary}}})),va=function(e){var t=e.icon,n=e.title,r=e.description,i=ha();return o.a.createElement("div",{className:i.ContentMessage},t?o.a.createElement("div",{className:i.icon},t):null,o.a.createElement("div",{className:i.title},n),r?o.a.createElement("div",{className:i.description},r):null)},ma=function(e,t){var n=Object(f.b)();return{updateGroupSelection:Object(r.useMemo)((function(){return function(r,o){"single"===o?n(b.a.itemsSelected({groupIds:[r]})):"range"===o||"additive-range"===o?n(b.a.groupRangeSelected({id:r,additive:"additive-range"===o,allGroups:e,showAllItemMatches:t})):"toggle"===o&&n(b.a.groupSelectionToggled({id:r,allGroups:e}))}}),[n,e,t]),updateUnitSelection:Object(r.useMemo)((function(){return function(r,o){"single"===o?n(b.a.itemsSelected({unitIds:[r]})):"range"===o||"additive-range"===o?n(b.a.unitRangeSelected({id:r,additive:"additive-range"===o,allGroups:e,showAllItemMatches:t})):"toggle"===o&&n(b.a.unitSelectionToggled({id:r,allGroups:e}))}}),[n,e,t])}};function ba(){ba=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ya=function(){var e=Object(f.b)(),t=Object(r.useCallback)(function(){var t=Object(u.a)(ba().mark((function t(n){var r,o,i,a;return ba().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.url,o=n.incognito,i=n.shiftKey,Object(P.w)()){t.next=3;break}return t.abrupt("return");case 3:if(a=Ut.session){t.next=6;break}throw new Error("no session");case 6:return e(Object(vt.b)()),t.next=9,a.activateOrOpenTab(r,{unfocusedIfCurrent:!i,targetWindowPrivacy:o?"incognito":"clear"});case 9:t.sent||(Object(A.f)("".concat(r," could not be opened. see https://sessionbuddy.com/tab-open-permissions/ for more information.")),e(Object(vt.e)({text:Object(bt.d)(Yi()),severity:"error",timeout:L.f,actionText:Object(bt.d)(ht.a.learnMore()),action:function(){a.activateOrOpenTab("https://sessionbuddy.com/tab-open-permissions/")}})));case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e]);return{activateOrOpen:t}},ga=function(e){var t=e.windows,n=e.anchorEl,r=e.xOffset,i=e.itemContext,a=e.onClose,c=e.onActionCompleted,u=Object(s.c)(b.c.onlyLocalClientNowIsSelected),f=Object(s.c)(b.c.itemSelections),d=Ut.session,p=qt({onActionCompleted:c}),h=p.primaryOpenAction,v=p.secondaryOpenActions,m=Li({isWindows:!0,primaryItemId:null===i||void 0===i?void 0:i.itemId,primaryItemType:null===i||void 0===i?void 0:i.itemType,onActionCompleted:c}),y=Ri({itemSelections:f,onActionCompleted:c}),g=y.close,w=y.saveAndClose,O=Pt({onActionCompleted:c}),x=Fi({onActionCompleted:c}),j=mo({onActionCompleted:c});return o.a.createElement(kn,{anchorEl:n,placement:"bottom-start",skidding:r,distance:2,spec:function(){var e=!(!f.unitIds.length&&!f.groupIds.length),n=t.find((function(e){return e.current})),r=null===n||void 0===n?void 0:n.id;return[h].concat(Object(Fe.a)(v),[jn,e&&i&&u?{label:"Go to",icon:o.a.createElement(mt.GoToIcon,null),disabled:"window"===i.itemType&&i.itemId===r,onClick:function(){"tab"===i.itemType?null===d||void 0===d||d.activateTab(i.itemId,{focusWindow:!0}).then((function(){null===c||void 0===c||c()})):"window"===i.itemType&&(null===d||void 0===d||d.focusWindow(i.itemId).then((function(){null===c||void 0===c||c()})))}}:null,jn,O&&Object(l.a)(Object(l.a)({},O),{},{onClick:function(e){return O.onClick(e),!0}}),w,jn,m.copy,zi(m.copyAs),m.paste,m.pasteAsOne,jn,"tab"===(null===i||void 0===i?void 0:i.itemType)?x:null,jn,j,g])}(),onClose:a})};function wa(){wa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Oa=Object(O.a)((function(e){return{Windows:function(t){var n=t.noContent,r=t.isMenuOpen,o=t.narrow;return Object(l.a)(Object(l.a)({flexGrow:1,flexBasis:0,overflowX:"hidden",overflowY:n?"hidden":"auto",transitionProperty:"margin-right",outline:"none"},o?{marginRight:260,transitionDelay:ia}:null),Object(S.e)({spacing:6,hoverColor:r?"transparent":"dark"===e.palette.type?e.palette.nxsAction.hover.light:e.palette.nxsAction.hover.dark}))},windowsInner:{position:"relative",paddingLeft:42,paddingTop:e.spacing(2),paddingBottom:e.spacing(10),overflow:"hidden",userSelect:"none"},fade:{position:"absolute",top:0,right:0,bottom:0,width:e.spacing(4),backgroundImage:"linear-gradient(90deg, hsla(0, 0%, 0%, 0%), ".concat(e.palette.background.default,")"),pointerEvents:"none"}}})),xa=function(e){var t,n=e.id;null===(t=Ut.session)||void 0===t||t.focusWindow(n)},ja=function(e){var t,n=e.id;null===(t=Ut.session)||void 0===t||t.activateTab(n,{focusWindow:!0})},Ea=o.a.forwardRef((function(e,t){var n=e.windows,i=e.narrow,a=Object(f.b)(),c=Ii().closeItems,l=vo().deleteItems,d=Object(s.c)(b.c.itemSelections),p=Object(s.c)(Object(y.l)("enableSingleClickRemove")),h=Object(s.c)(Object(y.l)("alwaysShowUnitCounts")),v=Object(s.c)(b.c.selectedClientHistoryItemId),m=Object(s.c)(b.c.searchTerms),g=Object(s.c)(b.c.filterSearchTerms),w=Object(s.c)(Object(y.l)("showAllItemMatches")),O=Object(s.c)(Object(y.l)("view"));ea(d);var x=Object(r.useRef)(),j=Rn(x),E=ze({ref:x}),k=Object(ve.a)(E,2),L=k[0],C=k[1],I=ki({scrollContainerRef:j}).openTabsFromClipboard;ta(Object(r.useMemo)((function(){return function(e){I({singleWindow:e})}}),[I]),{ignoreInput:!0});var _=Object(r.useState)(),N=Object(ve.a)(_,2),A=N[0],R=N[1],M=Object(s.c)(b.c.localWindowsInitialized),F=!m&&!g||w?n:Object(Ge.d)(n),D=!F.length&&M,B=Oa({noContent:D,isMenuOpen:!!A,narrow:i}),U=Vt().openFolder,z=ma(n,w),G=z.updateGroupSelection,W=z.updateUnitSelection,H=ya().activateOrOpen,K=Fn({scrollContainerRef:j}).processKeyDown,V=F.map((function(e){return e.id})),q=Object(P.r)(F).map((function(e){return e.id})),$=Object(r.useRef)(V),Y=Object(r.useRef)(q);Object(r.useEffect)((function(){var e=$.current.filter((function(e){return!V.includes(e)})),t=Y.current.filter((function(e){return!q.includes(e)})),n=e.filter((function(e){return d.groupIds.includes(e)})),r=t.filter((function(e){return d.unitIds.includes(e)}));(n.length||r.length)&&a(b.a.itemsDeselected({groupIds:n,unitIds:r})),$.current=V,Y.current=q}),[V,q,d,a]);var X=Object(r.useCallback)((function(){T((function(){var e;null===(e=x.current)||void 0===e||e.focus()}))}),[]);if(D)return o.a.createElement("div",{className:B.Windows},o.a.createElement(va,{icon:o.a.createElement(mt.BrowserIcon,null),title:Object(bt.d)(ht.a.tab({count:0,includeCount:!0})),description:Object(bt.d)(!m&&!g||w?Ci.noTabsDescription():Ci.noMatchingTabsDescription())}));var Q=function(e){var t="window"===e?G:W;return function(n){var r=n.anchor,o=n.id,i=n.selectionType;i&&t(o,i),R({anchor:r,itemContext:{itemId:o,itemType:e}})}},J=function(e){var t;e.focusedCancel&&(null===(t=x.current)||void 0===t||t.focus());R(void 0)},Z="single-line"===O?fa:pa;return o.a.createElement("div",{className:Object(S.a)(B.Windows,"focus-container",{isContentMenuOpen:!!(null===A||void 0===A?void 0:A.anchor)}),ref:function(e){C(e),t&&("function"===typeof t?t(e):t.current=e)},onScroll:function(){A&&J({focusedCancel:!0})},tabIndex:0,onKeyDown:function(e){K(e,{ignore:function(){return!!(null===A||void 0===A?void 0:A.anchor)},up:function(){return a(b.a.selectPrevItem({windows:F}))},down:function(){return a(b.a.selectNextItem({windows:F}))},left:function(){return a(b.a.selectUnitGroup({windows:F}))},right:function(){return a(b.a.selectGroupUnit({windows:F}))},start:function(){return a(b.a.selectFirstItem({windows:F}))},end:function(){return a(b.a.selectLastItem({windows:F}))},invoke:function(){var t=a(Object(b.d)(b.c.itemSelections));if(1!==t.groupIds.length||t.unitIds.length){if(1===t.unitIds.length&&!t.groupIds.length)if(v){var n,r,o=Object(P.p)(F,(function(e){return e.id===t.unitIds[0]})),i=null===o||void 0===o||null===(n=o.unit)||void 0===n?void 0:n.url;if(!i)return;H({url:i,incognito:!!(null===(r=o.group)||void 0===r?void 0:r.incognito),shiftKey:e.shiftKey})}else ja({id:t.unitIds[0]})}else v?U({id:t.groupIds[0],ctrlOrMetaKey:Object(He.c)(e),shiftKey:e.shiftKey}):xa({id:t.groupIds[0]})},remove:function(){var t=Object(u.a)(wa().mark((function t(){return wa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:v?l({bypassConfirmation:e.shiftKey,unitIds:d.unitIds,groupIds:d.groupIds,contentGroups:{windows:F},reselect:!0}):c({bypassConfirmation:e.shiftKey,tabIds:d.unitIds,winIds:d.groupIds,reselect:!0,filteredWindows:F});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()})}},o.a.createElement(Pn,{show:"top"!==L,color:"rgba(0,0,0,0.1)",type:"tapered"}),o.a.createElement("div",{className:B.windowsInner},F.map((function(e){return[o.a.createElement(la,{key:e.id,window:e,selected:d.groupIds.includes(e.id),alwaysShowUnitCounts:h,onClick:function(e,t){J({}),G(e,t)},onDblClick:v?U:xa,onOpenMenuClick:Q("window"),onRemove:p?function(t){v?l({bypassConfirmation:t,unitIds:[],groupIds:[e.id]}):c({bypassConfirmation:t,tabIds:[],winIds:[e.id]})}:null})].concat(Object(Fe.a)((e.tabs||[]).map((function(t){return o.a.createElement(Z,{key:t.id,unit:t,selected:d.unitIds.includes(t.id),onClick:function(e,t){J({}),W(e,t)},onDblClick:v?function(t){var n=t.url,r=t.shiftKey;H({url:n,incognito:!!e.incognito,shiftKey:r})}:ja,onUrlClick:v?function(t){var n=t.url,r=t.shiftKey;H({url:n,incognito:!!e.incognito,shiftKey:r})}:ja,onRemove:p?function(e){v?l({bypassConfirmation:e,unitIds:[t.id],groupIds:[]}):c({bypassConfirmation:e,tabIds:[t.id],winIds:[]})}:null,onOpenMenuClick:Q("tab"),onContainerFocusNeeded:function(){var e;null===(e=x.current)||void 0===e||e.focus()}})}))))})),o.a.createElement("div",{className:B.fade})),o.a.createElement(ga,{windows:n,anchorEl:null===A||void 0===A?void 0:A.anchor.el,xOffset:null===A||void 0===A?void 0:A.anchor.xOffset,itemContext:null===A||void 0===A?void 0:A.itemContext,onClose:J,onActionCompleted:X}))})),ka=Object(O.a)((function(e){return{AppTip:{display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(2),padding:e.spacing(2,1),fontSize:"0.9rem",borderRadius:e.shape.borderRadiusSmall,background:"dark"===e.palette.type?"linear-gradient(135deg, #4caf50, #2e7d32)":"linear-gradient(135deg, #ffe1c0, #ffbd77)"},overlay:Object(w.a)({display:"none",position:"fixed",top:e.spacing(24),right:e.spacing(4),maxWidth:205,padding:e.spacing(2),borderRadius:16},"@media (min-width:1000px)",{display:"flex"}),header:{display:"flex",alignItems:"center",gap:e.spacing(1),fontSize:"1.1rem",fontWeight:500,lineHeight:1,"& svg":{fontSize:"inherit"}},text:{whiteSpace:"pre-line",lineHeight:1.5,textAlign:"center"},button:{height:28,minWidth:48,padding:"0 14px",fontSize:"0.8rem",whiteSpace:"nowrap",color:"dark"===e.palette.type?"#1a471c":"#fff",backgroundColor:"dark"===e.palette.type?"#fff":"#d2995b","&:hover":{backgroundColor:"dark"===e.palette.type?"#ffffffc2":"#a87a48"}}}})),Sa=function(e){var t=e.tipId,n=e.className,r=e.type,i=void 0===r?"inline":r,a=ka(),c=Object(s.b)(),u=Object(s.c)(Object(y.l)(t));return u?o.a.createElement("div",{className:"overlay"===i?Object(S.a)(a.AppTip,a.overlay,n):Object(S.a)(a.AppTip,n),onClick:function(e){e.stopPropagation()}},"overlay"===i?o.a.createElement("div",{className:a.header},o.a.createElement(mt.TipIcon,null),o.a.createElement("span",null,"TIP")):null,o.a.createElement("div",{className:a.text},u.text),o.a.createElement(ft.a,{className:a.button,onClick:function(){return c(Object(y.q)(t,null))}},"Got it")):null},La=function(e){return e?"this collection doesn't have any links":"these collections don't have any links"},Ca=function(){return"no matching links found"},Ta=function(e){var t=e.anchorEl,n=e.xOffset,r=e.itemContext,i=e.onClose,a=e.onActionCompleted,c=e.scrollContainerRef,u=qt({onActionCompleted:a}),s=u.primaryOpenAction,f=u.secondaryOpenActions,d=Li({isWindows:!1,primaryItemId:null===r||void 0===r?void 0:r.itemId,primaryItemType:null===r||void 0===r?void 0:r.itemType,onActionCompleted:a}),p=yo({onActionCompleted:a}),h=Fi({onActionCompleted:a}),v=Di({scrollContainerRef:c}),m=Bi(),b=Ui({onActionCompleted:a}),y=mo({onActionCompleted:a}),g=[s].concat(Object(Fe.a)(f),[jn,d.copy,zi(d.copyAs),d.paste,d.pasteAsOne,jn,"link"===(null===r||void 0===r?void 0:r.itemType)?h:null,jn,v,m&&Object(l.a)(Object(l.a)({},m),{},{onClick:function(e){return m.onClick(e),!0}}),b,jn,p,jn,y]);return o.a.createElement(kn,{anchorEl:t,placement:"bottom-start",skidding:n,distance:2,spec:g,onClose:i})},Ia=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,u=Object(M.a)(e,["children","classes","className","disableTypography"]);return r.createElement("div",Object(R.a)({className:Object(D.a)(o.root,i),ref:t},u),c?n:r.createElement(ce,{component:"h2",variant:"h6"},n))})),_a=Object(B.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(Ia),Na=n(264),Aa=n(93),Pa=r.forwardRef((function(e,t){e.checked;var n=e.classes,o=e.className,i=e.control,a=e.disabled,c=(e.inputRef,e.label),u=e.labelPlacement,l=void 0===u?"end":u,s=(e.name,e.onChange,e.value,Object(M.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=Object(Aa.a)(),d=a;"undefined"===typeof d&&"undefined"!==typeof i.props.disabled&&(d=i.props.disabled),"undefined"===typeof d&&f&&(d=f.disabled);var p={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof i.props[t]&&"undefined"!==typeof e[t]&&(p[t]=e[t])})),r.createElement("label",Object(R.a)({className:Object(D.a)(n.root,o,"end"!==l&&n["labelPlacement".concat(Object(U.a)(l))],d&&n.disabled),ref:t},s),r.cloneElement(i,p),r.createElement(ce,{component:"span",className:Object(D.a)(n.label,d&&n.disabled)},c))})),Ra=Object(B.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Pa),Ma=n(279),Fa=n(265),Da=0,Ba=function(e){var t=e.id,n=e.label,i=e.value,a=e.autoSelect,c=e.onChange,u=Object(r.useState)((function(){return null!==t&&void 0!==t?t:"text-input-".concat(Da++)})),l=Object(ve.a)(u,1)[0],s=Object(r.useRef)(null);Object(r.useEffect)((function(){var e;a&&(null===(e=s.current)||void 0===e||e.select())}),[a]);return o.a.createElement(Na.a,{fullWidth:!0},n?o.a.createElement(Ma.a,{htmlFor:l,color:"secondary"},n):null,o.a.createElement(Fa.a,{inputRef:s,id:l,color:"secondary",value:i,onChange:function(e){c(e.target.value)},autoFocus:!0}))};function Ua(){Ua=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var za=Object(O.a)((function(e){return{content:{display:"flex",flexDirection:"column",gap:e.spacing(2.5)}}})),Ga=function(e){var t,n,i=e.folderId,a=e.onClose,c=Object(f.b)(),l=za(),s=Object(r.useState)(),d=Object(ve.a)(s,2),p=d[0],h=d[1],v=Object(r.useState)(""),m=Object(ve.a)(v,2),y=m[0],g=m[1],w=Object(r.useState)(!1),O=Object(ve.a)(w,2),x=O[0],j=O[1];if(Object(r.useEffect)((function(){if(i){var e,t=c(Object(b.d)(b.c.selectedSetGroups)).folders,n=null===t||void 0===t?void 0:t.find((function(e){return e.id===i}));h(n),g(null!==(e=null===n||void 0===n?void 0:n.title)&&void 0!==e?e:""),j(!!(null===n||void 0===n?void 0:n.incognito))}else h(void 0)}),[i,c]),Object(se.a)(a),!p)return null;var E=null!==(t=null===(n=p.title)||void 0===n?void 0:n.trim())&&void 0!==t?t:"",k=y.trim(),S=k===E&&x===!!p.incognito;return o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"folder-editor",open:!0,onClose:a,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){e.stopPropagation(),"Escape"===e.key&&a()}},o.a.createElement(_a,null,"Edit folder"),o.a.createElement("form",{onSubmit:function(){var e=Object(u.a)(Ua().mark((function e(t){return Ua().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,c(b.a.patchSelectedCollectionFolder(p.id,{title:k,incognito:x}));case 3:a();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},o.a.createElement(oe,{className:l.content},o.a.createElement(Ba,{id:"folder-editor-title",label:"Title",value:y,onChange:function(e){g(e)}}),o.a.createElement(Na.a,null,o.a.createElement(Ra,{label:"Incognito",control:o.a.createElement(Mi.a,{checked:x,color:"secondary",inputProps:{"aria-label":"setting checkbox"},onClick:function(){j((function(e){return!e}))}})}))),o.a.createElement(le,null,o.a.createElement(fe.a,{label:"OK",color:"primary",type:"submit",disabled:S}),o.a.createElement(fe.a,{label:"Cancel",onClick:a}))))},Wa=n(280),Ha=n(118),Ka=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,c=void 0===a?"div":a,u=e.disablePointerEvents,l=void 0!==u&&u,s=e.disableTypography,f=void 0!==s&&s,d=e.position,p=e.variant,h=Object(M.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),v=Object(Ha.b)()||{},m=p;return p&&v.variant,v&&!m&&(m=v.variant),r.createElement(Ha.a.Provider,{value:null},r.createElement(c,Object(R.a)({className:Object(D.a)(o.root,i,"end"===d?o.positionEnd:o.positionStart,l&&o.disablePointerEvents,v.hiddenLabel&&o.hiddenLabel,"filled"===m&&o.filled,"dense"===v.margin&&o.marginDense),ref:t},h),"string"!==typeof n||f?n:r.createElement(ce,{color:"textSecondary"},n)))})),Va=Object(B.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Ka);function qa(){qa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var $a=Object(O.a)((function(e){return{content:{display:"flex",flexDirection:"column",gap:e.spacing(2.5)}}})),Ya=function(e){var t,n,i,a,c=e.linkId,l=e.onClose,s=Object(f.b)(),d=$a(),p=Object(r.useState)(),h=Object(ve.a)(p,2),v=h[0],m=h[1],y=Object(r.useState)(""),g=Object(ve.a)(y,2),w=g[0],O=g[1],x=Object(r.useState)(""),j=Object(ve.a)(x,2),E=j[0],k=j[1],S=Object(r.useState)(!1),L=Object(ve.a)(S,2),C=L[0],T=L[1];if(Object(r.useEffect)((function(){if(c){var e,t,n=s(Object(b.d)(b.c.selectedSetGroups)).folders,r=n&&Object(P.p)(n,(function(e){return e.id===c})).unit;m(r),O(null!==(e=null===r||void 0===r?void 0:r.title)&&void 0!==e?e:""),k(null!==(t=null===r||void 0===r?void 0:r.url)&&void 0!==t?t:""),T(!!(null===r||void 0===r?void 0:r.pinned))}else m(void 0)}),[c,s]),Object(se.a)(l),!v)return null;var I=null!==(t=null===(n=v.title)||void 0===n?void 0:n.trim())&&void 0!==t?t:"",_=w.trim(),N=!_,A=null!==(i=null===(a=v.url)||void 0===a?void 0:a.trim())&&void 0!==i?i:"",R=E.trim(),M=Object(pr.n)(R),F=!M.origin||"null"===M.origin,D=_===I&&R===A&&C===!!v.pinned;return o.a.createElement(ne,{fullWidth:!0,maxWidth:"sm","aria-labelledby":"link-editor",open:!0,onClose:l,onClick:function(e){return e.stopPropagation()},onKeyDown:function(e){e.stopPropagation(),"Escape"===e.key&&l()}},o.a.createElement(_a,null,"Edit link"),o.a.createElement("form",{onSubmit:function(){var e=Object(u.a)(qa().mark((function e(t){var n;return qa().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=Object(P.o)(v,_),e.next=4,s(b.a.patchSelectedCollectionLink(v.id,{title:n.title,titleOriginal:n.titleOriginal,url:R,pinned:C}));case 4:l();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},o.a.createElement(oe,{className:d.content},o.a.createElement(Na.a,{fullWidth:!0},o.a.createElement(Wa.a,{id:"link-editor-title",label:"Title",color:"secondary",value:w,error:N,helperText:N?"Title cannot be empty":void 0,onChange:function(e){O(e.target.value)},autoFocus:!0,InputProps:v.titleOriginal&&v.titleOriginal!==_?{endAdornment:o.a.createElement(Va,{position:"end"},o.a.createElement(Pe,{title:"Revert to original title",placement:"top"},o.a.createElement(ft.a,{size:"small",onClick:function(){return O(v.titleOriginal)}},"Revert")))}:void 0})),o.a.createElement(Na.a,{fullWidth:!0},o.a.createElement(Wa.a,{id:"link-editor-url",label:"URL",color:"secondary",value:E,error:F,helperText:F?"Invalid URL":void 0,onChange:function(e){k(e.target.value)}})),o.a.createElement(Na.a,null,o.a.createElement(Ra,{label:"Pinned",control:o.a.createElement(Mi.a,{checked:C,color:"secondary",inputProps:{"aria-label":"setting checkbox"},onClick:function(){T((function(e){return!e}))}})}))),o.a.createElement(le,null,o.a.createElement(fe.a,{label:"OK",color:"primary",type:"submit",disabled:N||F||D}),o.a.createElement(fe.a,{label:"Cancel",onClick:l}))))},Xa=function(e){var t=e.itemContext,n=e.onClose;return t?"folder"===t.type?o.a.createElement(Ga,{folderId:t.id,onClose:n}):o.a.createElement(Ya,{linkId:t.id,onClose:n}):null};function Qa(){Qa=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ja=Object(O.a)((function(e){return{Folders:function(t){var n=t.noContent,r=t.isMenuOpen;return Object(l.a)({flexGrow:1,flexBasis:0,overflowX:"hidden",overflowY:n?"hidden":"auto",transitionProperty:"margin-right",outline:"none"},Object(S.e)({spacing:6,hoverColor:r?"transparent":"dark"===e.palette.type?e.palette.nxsAction.hover.light:e.palette.nxsAction.hover.dark}))},foldersInner:{position:"relative",paddingLeft:42,paddingTop:e.spacing(2),paddingBottom:e.spacing(10),overflow:"hidden",userSelect:"none"},fade:{position:"absolute",top:0,right:0,bottom:0,width:e.spacing(4),backgroundImage:"linear-gradient(90deg, hsla(0, 0%, 0%, 0%), ".concat(e.palette.background.default,")"),pointerEvents:"none"}}})),Za=o.a.forwardRef((function(e,t){var n=e.folders,i=Object(f.b)(),a=vo().deleteItems,c=Object(s.c)(b.c.itemSelections),l=c.unitIds,d=c.groupIds,p=!!l.length,h=!!d.length,v=1===l.length&&!h,m=1===d.length&&!p,g=Object(s.c)(b.c.singleCollectionIsSelected),w=Object(s.c)(b.c.selectedSetCount),O=Object(s.c)(Object(y.l)("enableSingleClickRemove")),x=Object(s.c)(Object(y.l)("alwaysShowUnitCounts")),j=Object(s.c)(b.c.searchTerms),E=Object(s.c)(b.c.filterSearchTerms),k=Object(s.c)(Object(y.l)("showAllItemMatches")),L=Object(s.c)(Object(y.l)("view")),C=Object(s.c)(bo.c.context);ea(c);var I=Object(r.useRef)(),_=Rn(I),N=ze({ref:I}),A=Object(ve.a)(N,2),R=A[0],M=A[1],F=Si({scrollContainerRef:_}).addLinksFromClipboard;ta(Object(r.useMemo)((function(){return function(e){F({singleFolder:e})}}),[F]),{ignoreInput:!0});var D=Object(r.useState)(),B=Object(ve.a)(D,2),U=B[0],z=B[1],G=!j&&!E||k?n:Object(Ge.c)(n),W=!G.length,H=Ja({noContent:W,isMenuOpen:!!U}),K=Vt().openFolder,V=ma(n,k),q=V.updateGroupSelection,$=V.updateUnitSelection,Y=ya().activateOrOpen,X=Fn({scrollContainerRef:_}).processKeyDown,Q=G.map((function(e){return e.id})),J=Object(P.r)(G).map((function(e){return e.id})),Z=Object(r.useRef)(Q),ee=Object(r.useRef)(J);Object(r.useEffect)((function(){var e=Z.current.filter((function(e){return!Q.includes(e)})),t=ee.current.filter((function(e){return!J.includes(e)})),n=e.filter((function(e){return c.groupIds.includes(e)})),r=t.filter((function(e){return c.unitIds.includes(e)}));(n.length||r.length)&&i(b.a.itemsDeselected({groupIds:n,unitIds:r})),Z.current=Q,ee.current=J}),[Q,J,c,i]);var te=Object(r.useCallback)((function(){i(Object(bo.a)())}),[i]);if(W)return o.a.createElement("div",{className:H.Folders},o.a.createElement(va,{icon:o.a.createElement(mt.CollectionIcon,null),title:Object(bt.d)(ht.a.link({count:0,includeCount:!0})),description:Object(bt.d)(!j&&!E||k?La(1===w):Ca())}));var ne=function(e){var t="folder"===e?q:$;return function(n){var r=n.anchor,o=n.id,i=n.selectionType;i&&t(o,i),z({anchor:r,itemContext:{itemId:o,itemType:e}})}},re=function(e){var t;e.focusedCancel&&(null===(t=I.current)||void 0===t||t.focus());z(void 0)},oe="single-line"===L?fa:pa;return o.a.createElement("div",{className:Object(S.a)(H.Folders,"focus-container",{isContentMenuOpen:!!(null===U||void 0===U?void 0:U.anchor)}),ref:function(e){M(e),t&&("function"===typeof t?t(e):t.current=e)},onScroll:function(){U&&re({focusedCancel:!0})},tabIndex:0,onKeyDown:function(e){X(e,{ignore:function(){return!!(null===U||void 0===U?void 0:U.anchor)},up:function(){return e.altKey?i(b.a.moveSelectedCollectionItems({direction:"up"})):i(b.a.selectPrevItem({folders:G}))},down:function(){return e.altKey?i(b.a.moveSelectedCollectionItems({direction:"down"})):i(b.a.selectNextItem({folders:G}))},left:function(){return i(b.a.selectUnitGroup({folders:G}))},right:function(){return i(b.a.selectGroupUnit({folders:G}))},start:function(){return i(b.a.selectFirstItem({folders:G}))},end:function(){return i(b.a.selectLastItem({folders:G}))},invoke:function(){var t=i(Object(b.d)(b.c.itemSelections));if(1!==t.groupIds.length||t.unitIds.length){if(1===t.unitIds.length&&!t.groupIds.length){var n,r,o=Object(P.p)(G,(function(e){return e.id===t.unitIds[0]})),a=null===o||void 0===o||null===(n=o.unit)||void 0===n?void 0:n.url;if(!a)return;Y({url:a,incognito:!!(null===(r=o.group)||void 0===r?void 0:r.incognito),shiftKey:e.shiftKey})}}else K({id:t.groupIds[0],ctrlOrMetaKey:Object(He.c)(e),shiftKey:e.shiftKey})},edit:function(){if(i(Object(b.d)(b.c.singleCollectionIsSelected))){var e=i(Object(b.d)(b.c.itemSelections));1===e.unitIds.length+e.groupIds.length&&i(Object(bo.d)())}},remove:function(){var t=Object(u.a)(Qa().mark((function t(){return Qa().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a({bypassConfirmation:e.shiftKey,unitIds:l,groupIds:d,contentGroups:{folders:G},reselect:!0});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()})}},o.a.createElement(Pn,{show:"top"!==R,color:"rgba(0,0,0,0.1)",type:"tapered"}),o.a.createElement("div",{className:H.foldersInner},G.map((function(e){return[o.a.createElement(la,{key:e.id,folder:e,selected:d.includes(e.id),alwaysShowUnitCounts:x,onClick:function(e,t){re({}),q(e,t)},onDblClick:K,onOpenMenuClick:ne("folder"),onRemove:O&&g?function(t){a({bypassConfirmation:t,unitIds:[],groupIds:[e.id]})}:null})].concat(Object(Fe.a)((e.links||[]).map((function(t){return o.a.createElement(oe,{key:t.id,unit:t,selected:l.includes(t.id),onClick:function(e,t){re({}),$(e,t)},onDblClick:function(t){var n=t.url,r=t.shiftKey;Y({url:n,incognito:!!e.incognito,shiftKey:r})},onUrlClick:function(t){var n=t.url,r=t.shiftKey;Y({url:n,incognito:!!e.incognito,shiftKey:r})},onOpenMenuClick:ne("link"),onRemove:O&&g?function(e){a({bypassConfirmation:e,unitIds:[t.id],groupIds:[]})}:null,onContainerFocusNeeded:function(){var e;null===(e=I.current)||void 0===e||e.focus()}})}))))})),o.a.createElement("div",{className:H.fade})),o.a.createElement(Ta,{anchorEl:null===U||void 0===U?void 0:U.anchor.el,xOffset:null===U||void 0===U?void 0:U.anchor.xOffset,itemContext:null===U||void 0===U?void 0:U.itemContext,scrollContainerRef:_,onClose:re,onActionCompleted:function(){T((function(){var e;null===(e=I.current)||void 0===e||e.focus()}))}}),o.a.createElement(Xa,{itemContext:C,onClose:te}),(!j&&!E||k)&&(v&&J.length>1||m&&G.length>1)?o.a.createElement(Sa,{tipId:"appTip_itemMove",type:"overlay"}):null)})),ec=Object(O.a)((function(){return{loader:{display:"flex",justifyContent:"center",paddingTop:50}}})),tc=o.a.forwardRef((function(e,t){var n=e.selectedSetGroups,r=e.loading,i=e.narrow;ec();return r?null:n.windows?o.a.createElement(Ea,{windows:n.windows,narrow:i,ref:t}):o.a.createElement(Za,{folders:n.folders,ref:t})})),nc=Object(O.a)((function(e){return{Content:{display:"flex",flexDirection:"column",position:"relative",flexGrow:1,color:e.palette.text.primary,backgroundColor:e.palette.background.default,overflow:"hidden"},messageContainer:{paddingTop:e.spacing(8),"& img":{padding:e.spacing(1),boxSizing:"border-box"}},macShortcutBugNotification:{zIndex:1e3,pointerEvents:"none",position:"absolute",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},macShortcutBugNotificationContent:{display:"flex",alignItems:"center",background:"dark"===e.palette.type?"#af7133":"#ffee81",padding:e.spacing(2,1),borderRadius:16,color:"inherit",margin:8,pointerEvents:"all",backgroundClip:"padding-box",boxShadow:e.shadows[4]},macShortcutBugNotificationText:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"0 16px",gap:6,"& a":{color:"inherit"}},closeButton:{color:"dark"===e.palette.type?"#fff":"#000"}}})),rc=function(e){var t=e.navFocusContainerRef,n=nc(),i=Object(s.b)(),a=Object(s.c)(Object(y.l)("historyIsOpen")),c=Object(s.c)(b.c.selectedSetInfo),u=Object(s.c)(b.c.onlyLocalClientIsSelected),l=Object(r.useRef)(!0),f=u&&l.current;l.current=u;var d=Object(s.c)(b.c.selectedSetGroups),p=Object(s.c)(b.c.someSelectedSetsAreUnhydrated),h=Object(s.c)(Object(y.l)("suppressMacShortcutBugNotification")),v=Object(r.useState)(!1),m=Object(ve.a)(v,2),g=m[0],w=m[1];Object(r.useEffect)((function(){if(h)w(!1);else try{chrome.commands.getAll((function(e){e.find((function(e){var t=e.name,n=e.shortcut;return"_execute_action"===t&&("cmd+b"===(null===n||void 0===n?void 0:n.toLowerCase())||"\u2318B"===n||"\u2318b"===n)}))&&w(!0)}))}catch(e){Object(A.c)(e)}}),[h]),Object(r.useEffect)((function(){localStorage.setItem("load",Object(L.n)())}),[]);var O=Object(r.useRef)(null);if(c.none)return o.a.createElement("div",{className:n.Content},o.a.createElement("div",{className:n.messageContainer},o.a.createElement(va,{icon:o.a.createElement(de,{size:80}),title:Object(bt.d)(Wi()),description:Object(bt.d)(Hi())})));if(c.allInvalid)return o.a.createElement("div",{className:n.Content},o.a.createElement("div",{className:n.messageContainer},o.a.createElement(va,{icon:o.a.createElement(mt.RemoveIcon,null),title:Object(bt.d)(Ki(c.singleInvalid)),description:Object(bt.d)(Vi(c.singleInvalid))})));var x=a&&u;return o.a.createElement("div",{className:n.Content,onClick:function(e){var t=e.ctrlKey,n=e.metaKey,r=e.shiftKey;t||n||r||i(b.a.itemSelectionCleared())}},o.a.createElement(Zi,{selectedSetGroups:d,historyIsVisible:x,scrollContainerRef:O,navFocusContainerRef:t}),o.a.createElement(tc,{selectedSetGroups:d,loading:p,narrow:x,ref:O}),o.a.createElement(ca,{open:x,enableAnimation:f,onCloseClick:function(){i(Object(y.q)("historyIsOpen",!1))}}),g?o.a.createElement("div",{className:n.macShortcutBugNotification,onClick:function(e){e.stopPropagation()}},o.a.createElement("div",{className:n.macShortcutBugNotificationContent},o.a.createElement("div",{className:n.macShortcutBugNotificationText},o.a.createElement("div",{style:{fontWeight:400,fontSize:"1.1rem"}},"Session Buddy is using a bad keyboard shortcut"),o.a.createElement("div",null,o.a.createElement("a",{href:"https://sessionbuddy.com/mac-shortcut-bug/",target:"_blank",rel:"noopener",onClick:function(){i(Object(y.q)("suppressMacShortcutBugNotification",!0))}},"Click here to fix it"))),o.a.createElement("div",null,o.a.createElement(dt.a,{className:n.closeButton,onClick:function(){i(Object(y.q)("suppressMacShortcutBugNotification",!0))}},o.a.createElement(mt.CloseIcon,null))))):null)},oc=n(128);function ic(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var c=n.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),a=parseInt(c[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var ac,cc={enter:H.b.enteringScreen,exit:H.b.leavingScreen},uc=r.forwardRef((function(e,t){var n=e.children,o=e.direction,a=void 0===o?"down":o,c=e.in,u=e.onEnter,l=e.onEntered,s=e.onEntering,f=e.onExit,d=e.onExited,p=e.onExiting,h=e.style,v=e.timeout,m=void 0===v?cc:v,b=e.TransitionComponent,y=void 0===b?W.a:b,g=Object(M.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=Object(K.a)(),O=r.useRef(null),x=r.useCallback((function(e){O.current=i.findDOMNode(e)}),[]),j=Object(q.a)(n.ref,x),E=Object(q.a)(j,t),k=function(e){return function(t){e&&(void 0===t?e(O.current):e(O.current,t))}},S=k((function(e,t){ic(a,e),Object(V.b)(e),u&&u(e,t)})),L=k((function(e,t){var n=Object(V.a)({timeout:m,style:h},{mode:"enter"});e.style.webkitTransition=w.transitions.create("-webkit-transform",Object(R.a)({},n,{easing:w.transitions.easing.easeOut})),e.style.transition=w.transitions.create("transform",Object(R.a)({},n,{easing:w.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",s&&s(e,t)})),C=k(l),T=k(p),I=k((function(e){var t=Object(V.a)({timeout:m,style:h},{mode:"exit"});e.style.webkitTransition=w.transitions.create("-webkit-transform",Object(R.a)({},t,{easing:w.transitions.easing.sharp})),e.style.transition=w.transitions.create("transform",Object(R.a)({},t,{easing:w.transitions.easing.sharp})),ic(a,e),f&&f(e)})),_=k((function(e){e.style.webkitTransition="",e.style.transition="",d&&d(e)})),N=r.useCallback((function(){O.current&&ic(a,O.current)}),[a]);return r.useEffect((function(){if(!c&&"down"!==a&&"right"!==a){var e=Object(oc.a)((function(){O.current&&ic(a,O.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[a,c]),r.useEffect((function(){c||N()}),[c,N]),r.createElement(y,Object(R.a)({nodeRef:O,onEnter:S,onEntered:C,onEntering:L,onExit:I,onExited:_,onExiting:T,appear:!0,in:c,timeout:m},g),(function(e,t){return r.cloneElement(n,Object(R.a)({ref:E,style:Object(R.a)({visibility:"exited"!==e||c?void 0:"hidden"},h,n.props.style)},t))}))})),lc=r.forwardRef((function(e,t){var n=e.action,o=e.classes,i=e.className,a=e.message,c=e.role,u=void 0===c?"alert":c,l=Object(M.a)(e,["action","classes","className","message","role"]);return r.createElement(Z.a,Object(R.a)({role:u,square:!0,elevation:6,className:Object(D.a)(o.root,i),ref:t},l),r.createElement("div",{className:o.message},a),n?r.createElement("div",{className:o.action},n):null)})),sc=Object(B.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(be.c)(e.palette.background.default,t);return{root:Object(R.a)({},e.typography.body2,Object(F.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(lc),fc=r.forwardRef((function(e,t){var n=e.action,o=e.anchorOrigin,i=(o=void 0===o?{vertical:"bottom",horizontal:"center"}:o).vertical,a=o.horizontal,c=e.autoHideDuration,u=void 0===c?null:c,l=e.children,s=e.classes,f=e.className,d=e.ClickAwayListenerProps,p=e.ContentProps,h=e.disableWindowBlurListener,v=void 0!==h&&h,m=e.message,b=e.onClose,y=e.onEnter,g=e.onEntered,w=e.onEntering,O=e.onExit,x=e.onExited,j=e.onExiting,E=e.onMouseEnter,k=e.onMouseLeave,S=e.open,L=e.resumeHideDuration,C=e.TransitionComponent,T=void 0===C?ye.a:C,I=e.transitionDuration,_=void 0===I?{enter:H.b.enteringScreen,exit:H.b.leavingScreen}:I,N=e.TransitionProps,A=Object(M.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),P=r.useRef(),F=r.useState(!0),B=F[0],z=F[1],G=Object(Jt.a)((function(){b&&b.apply(void 0,arguments)})),W=Object(Jt.a)((function(e){b&&null!=e&&(clearTimeout(P.current),P.current=setTimeout((function(){G(null,"timeout")}),e))}));r.useEffect((function(){return S&&W(u),function(){clearTimeout(P.current)}}),[S,u,W]);var K=function(){clearTimeout(P.current)},V=r.useCallback((function(){null!=u&&W(null!=L?L:.5*u)}),[u,L,W]);return r.useEffect((function(){if(!v&&S)return window.addEventListener("focus",V),window.addEventListener("blur",K),function(){window.removeEventListener("focus",V),window.removeEventListener("blur",K)}}),[v,V,S]),!S&&B?null:r.createElement(en,Object(R.a)({onClickAway:function(e){b&&b(e,"clickaway")}},d),r.createElement("div",Object(R.a)({className:Object(D.a)(s.root,s["anchorOrigin".concat(Object(U.a)(i)).concat(Object(U.a)(a))],f),onMouseEnter:function(e){E&&E(e),K()},onMouseLeave:function(e){k&&k(e),V()},ref:t},A),r.createElement(T,Object(R.a)({appear:!0,in:S,onEnter:Object(xe.a)((function(){z(!1)}),y),onEntered:g,onEntering:w,onExit:O,onExited:Object(xe.a)((function(){z(!0)}),x),onExiting:j,timeout:_,direction:"top"===i?"down":"up"},N),l||r.createElement(sc,Object(R.a)({message:m,action:n},p)))))})),dc=Object(B.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},c={right:24},u={left:24},l={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(R.a)({},t,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({},i,l))),anchorOriginBottomCenter:Object(R.a)({},n,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({},a,l))),anchorOriginTopRight:Object(R.a)({},t,r,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({left:"auto"},i,c))),anchorOriginBottomRight:Object(R.a)({},n,r,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({left:"auto"},a,c))),anchorOriginTopLeft:Object(R.a)({},t,o,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({right:"auto"},i,u))),anchorOriginBottomLeft:Object(R.a)({},n,o,Object(F.a)({},e.breakpoints.up("sm"),Object(R.a)({right:"auto"},a,u)))}}),{flip:!1,name:"MuiSnackbar"})(fc),pc=function(e){return o.a.createElement(uc,Object.assign({},e,{direction:"up"}))},hc=Object(O.a)((function(e){return{Notification:{backgroundColor:function(t){var n=t.severity;return"error"===n?e.palette.error.main:"warning"===n?e.palette.warning.main:e.palette.background.popup}}}})),vc=function(){var e=Object(s.c)(vt.d.notificationVisible),t=Object(s.c)(vt.d.notificationText),n=Object(s.c)(vt.d.notificationSeverity),i=Object(s.c)(vt.d.notificationActionText),a=Object(s.b)(),c=hc({severity:n||"info"}),u=Object(r.useCallback)((function(){a(Object(vt.b)())}),[a]);function l(e,t){"clickaway"!==t&&u()}return Object(se.a)(u),o.a.createElement(dc,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,TransitionComponent:pc,onClose:l,ContentProps:{classes:{root:c.Notification},"aria-describedby":"message-id"},message:o.a.createElement("span",{id:"message-id"},Object(bt.d)(t)),action:[i?o.a.createElement(fe.a,{key:"action",label:Object(bt.d)(i),size:"small",onClick:function(){Object(vt.a)()||l()}}):null,o.a.createElement(dt.a,{key:"close","aria-label":"close",onClick:l},o.a.createElement(mt.CloseIcon,null))]})},mc=r.forwardRef((function(e,t){return r.createElement(ce,Object(R.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),bc=Object(B.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(mc),yc=Object(O.a)((function(e){return{Setting:function(t){var n=t.justify,r=t.multiline,o=t.maxHeight,i=t.compact;return r?Object(l.a)({maxHeight:"full"===o?void 0:o,overflowY:"full"===o?void 0:"auto",textAlign:"stretch"===n?"center":n},Object(S.e)({hoverColor:e.palette.nxsAction.hover.dark})):{display:"flex",alignItems:"center",justifyContent:"right"===n?"flex-end":"flex-start",padding:e.spacing(i?.5:1,0),"& > button + button":{marginLeft:e.spacing(1)},"& > :last-child":{marginLeft:"stretch"===n?"auto":void 0}}}}})),gc=function(e){var t=e.justify,n=void 0===t?"left":t,r=e.multiline,i=e.maxHeight,a=void 0===i?200:i,c=e.compact,u=e.children,l=yc({justify:n,multiline:r,maxHeight:a,compact:c}),s=ze(),f=Object(ve.a)(s,2),d=f[0],p=f[1],h=r&&"full"!==a;return o.a.createElement("div",{className:l.Setting,ref:p},h?o.a.createElement(Pn,{show:"top"!==d,type:"tapered"}):null,u,h?o.a.createElement(Pn,{show:"bottom"!==d,position:"bottom",type:"tapered"}):null)},wc=Object(O.a)((function(e){return{Tip:{maxWidth:function(e){return e.maxWidth}},icon:{marginLeft:e.spacing(1.5),fontSize:"1.1rem",opacity:.4,transition:"opacity 150ms","&:hover":{opacity:1}}}})),Oc=function(e){var t=e.text,n=e.maxWidth,r=wc({maxWidth:n});return o.a.createElement(Pe,{classes:{tooltip:r.Tip},title:t,placement:"right"},o.a.createElement(mt.AboutIcon,{className:r.icon}))},xc=function(e){var t=e.checked,n=e.label,r=e.tipText,i=e.disabled,a=e.compact,c=e.onClick;return o.a.createElement(gc,{compact:a},o.a.createElement(Ra,{disabled:i,control:o.a.createElement(Mi.a,{checked:t,color:"secondary",inputProps:{"aria-label":"setting checkbox"},onClick:c}),label:n}),r?o.a.createElement(Oc,{text:r,maxWidth:240}):null)},jc=Object(O.a)((function(e){return{description:{padding:e.spacing(4),whiteSpace:"pre-line"},bypass:{marginRight:"auto",paddingLeft:e.spacing(2)}}})),Ec=function(){var e=jc(),t=Object(f.c)(Tt.c.confirmationVisible),n=Object(f.c)(Tt.c.confirmationTitle),i=Object(f.c)(Tt.c.confirmationText),a=Object(f.c)(Tt.c.confirmationBypassSetting),c=Object(f.c)(Tt.c.confirmationBypassText),u=Object(f.c)(Tt.c.hasOkAction),l=Object(f.c)((function(e){return a&&Object(y.l)(a)(e)})),d=Object(s.b)(),p=Object(r.useCallback)((function(){d(Object(Tt.a)())}),[d]);return Object(se.a)(p),o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"confirmation-dialog-title",open:t,onClose:p},o.a.createElement(_a,{id:"confirmation-dialog-title"},n),o.a.createElement(oe,{className:e.description},o.a.createElement(bc,null,i)),o.a.createElement(le,null,a&&c&&null!=l?o.a.createElement("div",{className:e.bypass},o.a.createElement(xc,{compact:!0,label:c,checked:l,onClick:function(){d(Object(y.p)(a))}})):null,o.a.createElement(fe.a,{autoFocus:!0,label:"OK",color:"primary",onClick:function(){d(Object(Tt.a)({executeAction:!0}))}}),u?o.a.createElement(fe.a,{label:"Cancel",onClick:p}):null))},kc=function(){return"settings"},Sc=function(){return"close"},Lc=function(){return"Copy As formats"},Cc=function(){return'select the formats to show\nin the "Copy as" menu'},Tc=function(){return"ignored tabs"},Ic=function(){return"ignored tabs are not displayed or saved by Session Buddy"},_c=function(){return"list current window first"},Nc=function(){return"show the window containing the current Session Buddy tab at the top of the list of open windows"},Ac=function(){return"confirm closing windows and tabs"},Pc=function(){return"warn when opening lots of tabs"},Rc=function(){return"show tab count on extension icon"},Mc=function(){return"enable optimizations"},Fc=function(e){return e&&e<999?"suspend and delay tabs after opening more than ".concat(e," at a time"):"suspend and delay opening tabs"},Dc=function(e){return"show a confirmation before opening more than ".concat(e," tabs")},Bc=function(){return"confirm moving folders and links"},Uc=function(){return"confirm deleting collections"},zc=function(){return"confirm deleting events"},Gc=function(){return"ask for name when saving collections"},Wc=function(){return"auto-name collections"},Hc=function(){return"name new collections automatically based on the current date and time"},Kc=function(){return"confirm deleting folders and links"},Vc=function(){return"confirm deleting windows and tabs"},qc=function(){return"ignore Session Buddy tabs"},$c=function(){return"ignore all Session Buddy tabs in addition to the current one, which is always ignored"},Yc=function(){return"ignore browser feature tabs"},Xc=function(){return"ignore tabs for browser settings, downloads, history, and others"},Qc=function(){return"ignore pinned tabs"},Jc=function(){return"ignore new tabs"},Zc=function(){return"theme"},eu=function(){return"auto"},tu=function(){return"match the OS theme"},nu=function(){return"light"},ru=function(){return"dark"},ou=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.disabled,a=void 0!==i&&i,c=e.disableFocusRipple,u=void 0!==c&&c,l=e.fullWidth,s=e.icon,f=e.indicator,d=e.label,p=e.onChange,h=e.onClick,v=e.onFocus,m=e.selected,b=e.selectionFollowsFocus,y=e.textColor,g=void 0===y?"inherit":y,w=e.value,O=e.wrapped,x=void 0!==O&&O,j=Object(M.a)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return r.createElement(on.a,Object(R.a)({focusRipple:!u,className:Object(D.a)(n.root,n["textColor".concat(Object(U.a)(g))],o,a&&n.disabled,m&&n.selected,d&&s&&n.labelIcon,l&&n.fullWidth,x&&n.wrapped),ref:t,role:"tab","aria-selected":m,disabled:a,onClick:function(e){p&&p(e,w),h&&h(e)},onFocus:function(e){b&&!m&&p&&p(e,w),v&&v(e)},tabIndex:m?0:-1},j),r.createElement("span",{className:n.wrapper},s,d),f)})),iu=Object(B.a)((function(e){var t;return{root:Object(R.a)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Object(F.a)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Object(F.a)(t,"overflow","hidden"),Object(F.a)(t,"whiteSpace","normal"),Object(F.a)(t,"textAlign","center"),Object(F.a)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(ou),au=(n(142),n(152));function cu(){if(ac)return ac;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ac="reverse",e.scrollLeft>0?ac="default":(e.scrollLeft=1,0===e.scrollLeft&&(ac="negative")),document.body.removeChild(e),ac}function uu(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(cu()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function lu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var su={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function fu(e){var t=e.onChange,n=Object(M.a)(e,["onChange"]),o=r.useRef(),i=r.useRef(null),a=function(){o.current=i.current.offsetHeight-i.current.clientHeight};return r.useEffect((function(){var e=Object(oc.a)((function(){var e=o.current;a(),e!==o.current&&t(o.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),r.useEffect((function(){a(),t(o.current)}),[t]),r.createElement("div",Object(R.a)({style:su,ref:i},n))}var du=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=e.orientation,c=Object(M.a)(e,["classes","className","color","orientation"]);return r.createElement("span",Object(R.a)({className:Object(D.a)(n.root,n["color".concat(Object(U.a)(i))],o,"vertical"===a&&n.vertical),ref:t},c))})),pu=Object(B.a)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(du),hu=Object(Xn.a)(r.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vu=Object(Xn.a)(r.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),mu=r.createElement(hu,{fontSize:"small"}),bu=r.createElement(vu,{fontSize:"small"}),yu=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.direction,a=e.orientation,c=e.disabled,u=Object(M.a)(e,["classes","className","direction","orientation","disabled"]);return r.createElement(on.a,Object(R.a)({component:"div",className:Object(D.a)(n.root,o,c&&n.disabled,"vertical"===a&&n.vertical),ref:t,role:null,tabIndex:null},u),"left"===i?mu:bu)})),gu=Object(B.a)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(yu),wu=r.forwardRef((function(e,t){var n=e["aria-label"],o=e["aria-labelledby"],i=e.action,a=e.centered,c=void 0!==a&&a,u=e.children,l=e.classes,s=e.className,f=e.component,d=void 0===f?"div":f,p=e.indicatorColor,h=void 0===p?"secondary":p,v=e.onChange,m=e.orientation,b=void 0===m?"horizontal":m,y=e.ScrollButtonComponent,g=void 0===y?gu:y,w=e.scrollButtons,O=void 0===w?"auto":w,x=e.selectionFollowsFocus,j=e.TabIndicatorProps,E=void 0===j?{}:j,k=e.TabScrollButtonProps,S=e.textColor,L=void 0===S?"inherit":S,C=e.value,T=e.variant,I=void 0===T?"standard":T,_=Object(M.a)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),N=Object(K.a)(),A="scrollable"===I,P="rtl"===N.direction,B="vertical"===b,U=B?"scrollTop":"scrollLeft",z=B?"top":"left",G=B?"bottom":"right",W=B?"clientHeight":"clientWidth",H=B?"height":"width";var V=r.useState(!1),q=V[0],$=V[1],Y=r.useState({}),X=Y[0],Q=Y[1],J=r.useState({start:!1,end:!1}),Z=J[0],ee=J[1],te=r.useState({overflow:"hidden",marginBottom:null}),ne=te[0],re=te[1],oe=new Map,ie=r.useRef(null),ae=r.useRef(null),ce=function(){var e,t,n=ie.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:uu(n,N.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==C){var o=ae.current.children;if(o.length>0){var i=o[oe.get(C)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ue=Object(Jt.a)((function(){var e,t=ce(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(B)o=r.top-n.top+n.scrollTop;else{var i=P?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(e={},Object(F.a)(e,z,o),Object(F.a)(e,H,r?r[H]:0),e);if(isNaN(X[z])||isNaN(X[H]))Q(a);else{var c=Math.abs(X[z]-a[z]),u=Math.abs(X[H]-a[H]);(c>=1||u>=1)&&Q(a)}})),le=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?lu:i,c=r.duration,u=void 0===c?300:c,l=null,s=t[e],f=!1,d=function(){f=!0};s===n?o(new Error("Element already at target position")):requestAnimationFrame((function r(i){if(f)o(new Error("Animation cancelled"));else{null===l&&(l=i);var c=Math.min(1,(i-l)/u);t[e]=a(c)*(n-s)+s,c>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}}))}(U,ie.current,e)},se=function(e){var t=ie.current[U];B?t+=e:(t+=e*(P?-1:1),t*=P&&"reverse"===cu()?-1:1),le(t)},fe=function(){se(-ie.current[W])},de=function(){se(ie.current[W])},pe=r.useCallback((function(e){re({overflow:null,marginBottom:-e})}),[]),he=Object(Jt.a)((function(){var e=ce(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[z]<t[z]){var r=t[U]+(n[z]-t[z]);le(r)}else if(n[G]>t[G]){var o=t[U]+(n[G]-t[G]);le(o)}})),ve=Object(Jt.a)((function(){if(A&&"off"!==O){var e,t,n=ie.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,c=n.clientWidth;if(B)e=r>1,t=r<o-i-1;else{var u=uu(ie.current,N.direction);e=P?u<a-c-1:u>1,t=P?u>1:u<a-c-1}e===Z.start&&t===Z.end||ee({start:e,end:t})}}));r.useEffect((function(){var e=Object(oc.a)((function(){ue(),ve()})),t=Object(au.a)(ie.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ue,ve]);var me=r.useCallback(Object(oc.a)((function(){ve()})));r.useEffect((function(){return function(){me.clear()}}),[me]),r.useEffect((function(){$(!0)}),[]),r.useEffect((function(){ue(),ve()})),r.useEffect((function(){he()}),[he,X]),r.useImperativeHandle(i,(function(){return{updateIndicator:ue,updateScrollButtons:ve}}),[ue,ve]);var be=r.createElement(pu,Object(R.a)({className:l.indicator,orientation:b,color:h},E,{style:Object(R.a)({},X,E.style)})),ye=0,ge=r.Children.map(u,(function(e){if(!r.isValidElement(e))return null;var t=void 0===e.props.value?ye:e.props.value;oe.set(t,ye);var n=t===C;return ye+=1,r.cloneElement(e,{fullWidth:"fullWidth"===I,indicator:n&&!q&&be,selected:n,selectionFollowsFocus:x,onChange:v,textColor:L,value:t})})),we=function(){var e={};e.scrollbarSizeListener=A?r.createElement(fu,{className:l.scrollable,onChange:pe}):null;var t=Z.start||Z.end,n=A&&("auto"===O&&t||"desktop"===O||"on"===O);return e.scrollButtonStart=n?r.createElement(g,Object(R.a)({orientation:b,direction:P?"right":"left",onClick:fe,disabled:!Z.start,className:Object(D.a)(l.scrollButtons,"on"!==O&&l.scrollButtonsDesktop)},k)):null,e.scrollButtonEnd=n?r.createElement(g,Object(R.a)({orientation:b,direction:P?"left":"right",onClick:de,disabled:!Z.end,className:Object(D.a)(l.scrollButtons,"on"!==O&&l.scrollButtonsDesktop)},k)):null,e}();return r.createElement(d,Object(R.a)({className:Object(D.a)(l.root,s,B&&l.vertical),ref:t},_),we.scrollButtonStart,we.scrollbarSizeListener,r.createElement("div",{className:Object(D.a)(l.scroller,A?l.scrollable:l.fixed),style:ne,ref:ie,onScroll:me},r.createElement("div",{"aria-label":n,"aria-labelledby":o,className:Object(D.a)(l.flexContainer,B&&l.flexContainerVertical,c&&!A&&l.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==b?"ArrowLeft":"ArrowUp",o="vertical"!==b?"ArrowRight":"ArrowDown";switch("vertical"!==b&&"rtl"===N.direction&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ae.current.lastChild;break;case o:n=t.nextElementSibling||ae.current.firstChild;break;case"Home":n=ae.current.firstChild;break;case"End":n=ae.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ae,role:"tablist"},ge),q&&be),we.scrollButtonEnd)})),Ou=Object(B.a)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Object(F.a)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(wu),xu=Object(O.a)((function(e){return{tab:{minWidth:90},panel:{padding:e.spacing(1)}}})),ju=function(e){var t=e.spec,n=e.disabled,i=e.collapseSingleTab,a=e.classes,c=xu(),u=Object(r.useState)((function(){var e=t.findIndex((function(e){return e.defaultSelected&&e.panel&&!e.hidden}));return e>=0?e:t.findIndex((function(e){return e.panel&&!e.hidden}))})),l=Object(ve.a)(u,2),s=l[0],f=l[1],d=t.map((function(e,t){return e.panel&&!e.hidden?o.a.createElement(iu,{disabled:n,key:t,classes:{root:c.tab},value:t,label:e.title,id:"tab-".concat(t),"aria-controls":"tabpanel-".concat(t)}):null}));d[s]||f(d.findIndex((function(e){return!!e})));var p=!i||d.filter(Boolean).length>1;return o.a.createElement(o.a.Fragment,null,p?o.a.createElement(Ou,{value:s,onChange:function(e,t){f(t)},indicatorColor:"primary",textColor:"primary",variant:"fullWidth"},d):null,o.a.createElement("div",{role:"tabpanel",className:p?Object(S.a)(c.panel,null===a||void 0===a?void 0:a.panel):void 0,id:"tabpanel-".concat(s),"aria-labelledby":"tab-".concat(s)},t[s].panel))},Eu=n(114),ku=Object(O.a)((function(e){return{SettingsSection:{marginTop:e.spacing(4),"&:first-child":{marginTop:e.spacing(2)}},header:{display:"flex",alignItems:"center",marginBottom:e.spacing(1.5)},headerText:{fontSize:"1.2rem",fontWeight:500}}})),Su=function(e){var t=e.header,n=e.tipText,r=e.children,i=ku();return o.a.createElement("div",{className:i.SettingsSection},t?o.a.createElement("div",{className:i.header},o.a.createElement("div",{className:i.headerText},t),n?o.a.createElement(Oc,{text:n,maxWidth:240}):null):null,r)};function Lu(){Lu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Cu=function(){var e=$e(["warnOnOpenTabCount","optimizedOpenThreshold"]),t=e.warnOnOpenTabCount,n=e.optimizedOpenThreshold,r=Object(f.b)(),i=Object(s.c)(Object(y.l)("currentWindowFirst")),a=Object(s.c)(Object(y.l)("bypassConfirmClientItemClose")),c=Object(s.c)(Object(y.l)("bypassConfirmClientItemOpen")),l=Object(s.c)(Object(y.l)("ignoreNxsTabs")),d=Object(s.c)(Object(y.l)("ignoreNewTabs")),p=Object(s.c)(Object(y.l)("ignorePinnedTabs")),h=Object(s.c)(Object(y.l)("ignoreBrowserFeatureTabs")),v=Object(s.c)(Object(y.l)("showTabCountsBadge")),m=Object(s.c)(Object(y.l)("enableOpenOptimizations"));return o.a.createElement(o.a.Fragment,null,o.a.createElement(Su,null,o.a.createElement(xc,{checked:i,onClick:function(){r(Object(y.p)("currentWindowFirst"))},label:Object(bt.d)(_c()),tipText:Object(bt.d)(Nc())}),o.a.createElement(xc,{checked:!a,onClick:function(){r(Object(y.p)("bypassConfirmClientItemClose"))},label:Object(bt.d)(Ac())}),o.a.createElement(xc,{checked:!c,onClick:function(){r(Object(y.p)("bypassConfirmClientItemOpen"))},label:Object(bt.d)(Pc()),tipText:Object(bt.d)(Dc(t))}),o.a.createElement(xc,{checked:m,onClick:function(){r(Object(y.p)("enableOpenOptimizations"))},label:Object(bt.d)(Mc()),tipText:Object(bt.d)(Fc(n))}),o.a.createElement(xc,{checked:v,onClick:Object(u.a)(Lu().mark((function e(){return Lu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(Object(y.p)("showTabCountsBadge"));case 2:Object(Eu.a)({type:"onSettingUpdated",target:"showTabCountsBadge"});case 3:case"end":return e.stop()}}),e)}))),label:Object(bt.d)(Rc())})),o.a.createElement(Su,{header:Object(bt.d)(Tc()),tipText:Object(bt.d)(Ic())},o.a.createElement(xc,{checked:l,onClick:function(){r(Object(y.p)("ignoreNxsTabs"))},label:Object(bt.d)(qc()),tipText:Object(bt.d)($c())}),o.a.createElement(xc,{checked:d,onClick:function(){r(Object(y.p)("ignoreNewTabs"))},label:Object(bt.d)(Jc())}),o.a.createElement(xc,{checked:p,onClick:function(){r(Object(y.p)("ignorePinnedTabs"))},label:Object(bt.d)(Qc())}),o.a.createElement(xc,{checked:h,onClick:function(){r(Object(y.p)("ignoreBrowserFeatureTabs"))},label:Object(bt.d)(Yc()),tipText:Object(bt.d)(Xc())})))},Tu=Object(O.a)((function(e){return{Swatch:{display:"inline-block",boxSizing:"border-box",borderRadius:"100%",backgroundColor:"currentColor","&.selectable":{cursor:"pointer","&:hover, &:focus":{outline:"solid 2px ".concat(e.palette.text.primary)}},"&.selected":{outline:"solid 2px ".concat(e.palette.text.primary)}}}})),Iu=function(e){var t,n=e.color,r=e.size,i=void 0===r?12:r,a=e.selected,c=e.onEngaged,u=e.onSelectedEnter,l=Tu();return n?o.a.createElement("span",{className:Object(S.a)((t={},Object(w.a)(t,l.Swatch,!0),Object(w.a)(t,"selected",a),Object(w.a)(t,"selectable",c),t)),tabIndex:c?0:void 0,style:{color:n,height:i,width:i},onClick:function(){a||null===c||void 0===c||c()},onKeyDown:function(e){"Enter"===e.key&&(a?null===u||void 0===u||u():null===c||void 0===c||c())}}):null},_u=n(274),Nu=Object(O.a)((function(){return{rootSmall:{fontSize:"0.8rem",lineHeight:"24px",height:24,paddingTop:0,paddingBottom:0},selectMenuSmall:{minHeight:10},selectIconSmall:{height:24},icon:{marginRight:8}}}));function Au(e){var t=e.value,n=e.options,r=e.onChange,i=e.autoFocus,a=e.noUnderline,c=e.small,u=e.disabled,l=Nu();return o.a.createElement(_u.a,{disabled:u,classes:c?{root:l.rootSmall,selectMenu:l.selectMenuSmall,icon:l.selectIconSmall}:void 0,color:"secondary",value:n.findIndex((function(e){return"string"!==typeof e&&e.value===t})),onChange:function(e){var t=n[e.target.value];"string"!==typeof t&&r(t.value)},autoFocus:i,disableUnderline:a},n.map((function(e,t){return"string"===typeof e?o.a.createElement(rn,{key:"divider-".concat(t),variant:"middle",style:{outline:"none"}}):o.a.createElement(dn,{key:"".concat(e.value),value:t},e.icon?o.a.createElement("span",{className:l.icon},e.icon):null,o.a.createElement("span",null,e.text))})))}ft.a.styles;var Pu=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,c=void 0===a?"default":a,u=e.component,l=void 0===u?"div":u,s=e.disabled,f=void 0!==s&&s,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,v=void 0!==h&&h,m=e.disableRipple,b=void 0!==m&&m,y=e.fullWidth,g=void 0!==y&&y,w=e.orientation,O=void 0===w?"horizontal":w,x=e.size,j=void 0===x?"medium":x,E=e.variant,k=void 0===E?"outlined":E,S=Object(M.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"]),L=Object(D.a)(o.grouped,o["grouped".concat(Object(U.a)(O))],o["grouped".concat(Object(U.a)(k))],o["grouped".concat(Object(U.a)(k)).concat(Object(U.a)(O))],o["grouped".concat(Object(U.a)(k)).concat("default"!==c?Object(U.a)(c):"")],f&&o.disabled);return r.createElement(l,Object(R.a)({role:"group",className:Object(D.a)(o.root,i,g&&o.fullWidth,p&&o.disableElevation,"contained"===k&&o.contained,"vertical"===O&&o.vertical),ref:t},S),r.Children.map(n,(function(e){return r.isValidElement(e)?r.cloneElement(e,{className:Object(D.a)(L,e.props.className),color:e.props.color||c,disabled:e.props.disabled||f,disableElevation:e.props.disableElevation||p,disableFocusRipple:v,disableRipple:b,fullWidth:g,size:e.props.size||j,variant:e.props.variant||k}):null})))})),Ru=Object(B.a)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},contained:{boxShadow:e.shadows[2]},disableElevation:{boxShadow:"none"},disabled:{},fullWidth:{width:"100%"},vertical:{flexDirection:"column"},grouped:{minWidth:40},groupedHorizontal:{"&:not(:first-child)":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{borderTopRightRadius:0,borderTopLeftRadius:0},"&:not(:last-child)":{borderBottomRightRadius:0,borderBottomLeftRadius:0}},groupedText:{},groupedTextHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")}},groupedTextPrimary:{"&:not(:last-child)":{borderColor:Object(be.a)(e.palette.primary.main,.5)}},groupedTextSecondary:{"&:not(:last-child)":{borderColor:Object(be.a)(e.palette.secondary.main,.5)}},groupedOutlined:{},groupedOutlinedHorizontal:{"&:not(:first-child)":{marginLeft:-1},"&:not(:last-child)":{borderRightColor:"transparent"}},groupedOutlinedVertical:{"&:not(:first-child)":{marginTop:-1},"&:not(:last-child)":{borderBottomColor:"transparent"}},groupedOutlinedPrimary:{"&:hover":{borderColor:e.palette.primary.main}},groupedOutlinedSecondary:{"&:hover":{borderColor:e.palette.secondary.main}},groupedContained:{boxShadow:"none"},groupedContainedHorizontal:{"&:not(:last-child)":{borderRight:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderRight:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedVertical:{"&:not(:last-child)":{borderBottom:"1px solid ".concat(e.palette.grey[400]),"&$disabled":{borderBottom:"1px solid ".concat(e.palette.action.disabled)}}},groupedContainedPrimary:{"&:not(:last-child)":{borderColor:e.palette.primary.dark}},groupedContainedSecondary:{"&:not(:last-child)":{borderColor:e.palette.secondary.dark}}}}),{name:"MuiButtonGroup"})(Pu),Mu=Object(O.a)((function(){return{grouped:{minWidth:function(e){return e.minButtonWidth||void 0}}}}));function Fu(e){var t=e.value,n=e.options,r=e.onChange,i=e.minButtonWidth,a=e.autoFocus,c=Mu({minButtonWidth:i});return o.a.createElement(Ru,{classes:{grouped:c.grouped},size:"small","aria-label":"theme button group",disableRipple:!0,disableFocusRipple:!0,disableElevation:!0},n.map((function(e){var n=e.text,i=e.value,c=e.tipText,u=void 0===c?"":c;return o.a.createElement(Pe,{key:"".concat(i),title:u,placement:"top"},o.a.createElement(ft.a,{color:t===i?"secondary":"default",variant:t===i?"contained":"outlined",onClick:function(){return r(i)},autoFocus:a&&t===i},n))})))}var Du=Object(O.a)((function(){return{label:{fontWeight:400},controlContainer:{display:"flex",alignItems:"center"}}}));function Bu(e){var t=e.value,n=e.options,r=e.onChange,i=e.label,a=e.tipText,c=e.tipPlacement,u=void 0===c?i?"after-label":"after-control":c,l=e.buttonGroup,s=e.autoFocus,f=Du(),d=a?o.a.createElement(Oc,{text:a,maxWidth:166}):null;return o.a.createElement(gc,{justify:i?"stretch":"left"},i?o.a.createElement("span",{className:f.label},i):null,d&&i&&"after-label"===u?d:null,o.a.createElement("span",{className:f.controlContainer},l?o.a.createElement(Fu,{value:t,options:n,onChange:r,autoFocus:s,minButtonWidth:78}):o.a.createElement(Au,{value:t,options:n,onChange:r,autoFocus:s}),d&&"after-control"===u?d:null))}var Uu=function(){var e=Object(f.b)(),t=Object(K.a)(),n=Object(s.c)(Object(y.l)("defaultCollectionColor")),r=Object(s.c)(Object(y.l)("bypassConfirmCollectionDelete")),i=Object(s.c)(Object(y.l)("bypassConfirmCollectionItemMove")),a=Object(s.c)(Object(y.l)("bypassConfirmCollectionItemDelete")),c=Object(s.c)(Object(y.l)("bypassConfirmSort")),u=Object(s.c)(Object(y.l)("bypassConfirmUnify")),l=Object(s.c)(Object(y.l)("bypassConfirmReplace")),d=Object(s.c)(Object(y.l)("askForNameWhenSavingCollection")),p=Object(s.c)(Object(y.l)("autoNameCollections"));return o.a.createElement(o.a.Fragment,null,o.a.createElement(Su,null,o.a.createElement(xc,{checked:d,onClick:function(){e(Object(y.p)("askForNameWhenSavingCollection"))},label:Object(bt.d)(Gc())}),o.a.createElement(xc,{checked:p,onClick:function(){e(Object(y.p)("autoNameCollections"))},label:Object(bt.d)(Wc()),tipText:Object(bt.d)(Hc())}),o.a.createElement(Bu,{label:"Default color",value:n,options:[{text:"None",value:"none",icon:o.a.createElement(Iu,{color:"transparent"})},{text:"Automatic",value:"auto",icon:o.a.createElement(Iu,{color:"transparent"})}].concat(Object(Fe.a)(pt.a.map((function(e){return{text:Object(bt.d)(e),value:e,icon:o.a.createElement(Iu,{color:Object(pt.d)({color:e,theme:t})})}})))),onChange:function(t){e(Object(y.q)("defaultCollectionColor",t))}})),o.a.createElement(Su,{header:Object(bt.d)("confirmations")},o.a.createElement(xc,{checked:!r,onClick:function(){e(Object(y.p)("bypassConfirmCollectionDelete"))},label:Object(bt.d)(Uc())}),o.a.createElement(xc,{checked:!i,onClick:function(){e(Object(y.p)("bypassConfirmCollectionItemMove"))},label:Object(bt.d)(Bc())}),o.a.createElement(xc,{checked:!a,onClick:function(){e(Object(y.p)("bypassConfirmCollectionItemDelete"))},label:Object(bt.d)(Kc())}),o.a.createElement(xc,{checked:!c,onClick:function(){e(Object(y.p)("bypassConfirmSort"))},label:Object(bt.d)("confirm sort")}),o.a.createElement(xc,{checked:!u,onClick:function(){e(Object(y.p)("bypassConfirmUnify"))},label:Object(bt.d)("confirm unify")}),o.a.createElement(xc,{checked:!l,onClick:function(){e(Object(y.p)("bypassConfirmReplace"))},label:Object(bt.d)("confirm replace with open tabs")})))},zu=n(95);function Gu(){Gu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Wu=Object(O.a)((function(e){return{copyAsFormats:{display:"flex",gap:e.spacing(6)},copyAsFormatGroup:{"& > div":{paddingTop:0}},diagnosticsSaveStatus:{display:"flex",alignItems:"center",gap:e.spacing(1),height:36,"& svg":{fontSize:"1.2rem"}}}})),Hu=function(){var e=Wu(),t=Object(s.b)(),n=(Object(s.c)(Object(y.l)("view")),Object(s.c)(Object(y.l)("desiredTheme"))),i=Object(s.c)(Object(y.l)("enabledCopyActions")),a=Object(s.c)(Object(y.l)("enableSingleClickRemove")),c=Object(s.c)(Object(y.l)("alwaysShowUnitCounts")),l=Object(s.c)(Object(y.l)("shareUsageStats")),f=Object(r.useState)("pending"),d=Object(ve.a)(f,2),p=d[0],h=d[1];return o.a.createElement(o.a.Fragment,null,o.a.createElement(Su,null,null,o.a.createElement(xc,{checked:a,onClick:function(){t(Object(y.p)("enableSingleClickRemove"))},label:"Enable single-click close and delete",tipText:"Close tabs and delete links by clicking their icon"}),o.a.createElement(xc,{checked:c,onClick:function(){t(Object(y.p)("alwaysShowUnitCounts"))},label:"Always show tab and link counts",tipText:"Permanently show counts next to windows and folders instead of only on hover"})),o.a.createElement(Su,{header:Object(bt.d)(Zc())},o.a.createElement(Bu,{buttonGroup:!0,value:n,options:[{text:Object(bt.d)(nu()),value:"light"},{text:Object(bt.d)(ru()),value:"dark"},{text:Object(bt.d)(eu()),value:"default",tipText:Object(bt.d)(tu())}],onChange:function(e){t(Object(y.a)()),t(Object(y.q)("desiredTheme",e)),T((function(){t(Object(y.b)())}))}})),o.a.createElement(Su,{header:Object(bt.d)(Lc()),tipText:Object(bt.d)(Cc())},o.a.createElement(gc,null,o.a.createElement("div",{className:e.copyAsFormats},Object(bi.a)(Go(),4).map((function(n,r){return o.a.createElement("div",{key:r,className:e.copyAsFormatGroup},n.map((function(e){var n=e.id,r=e.label;return o.a.createElement(xc,{key:n,label:Object(bt.d)(r),checked:i.includes(n),onClick:function(){t(Object(y.o)("enabledCopyActions",n))}})})))}))))),Object(P.w)()&&Ut.session?o.a.createElement(Su,{header:"Keyboard shortcuts"},o.a.createElement(gc,null,o.a.createElement(fe.a,{label:"Open extension shortcuts",color:"secondary",onClick:function(){Ut.session.activateOrOpenTab("chrome://extensions/shortcuts")}}))):null,o.a.createElement(Su,{header:"Stats"},o.a.createElement(gc,null,"saving"===p?o.a.createElement("span",{className:e.diagnosticsSaveStatus},o.a.createElement(In,{color:"#aaa"}),o.a.createElement("span",null,"Saving diagnostics...")):"saved"===p?o.a.createElement("span",{className:e.diagnosticsSaveStatus},o.a.createElement(mt.BackupIcon,null),o.a.createElement("span",null,"Diagnostics saved. Check your downloads folder.")):o.a.createElement(fe.a,{label:"Save diagnostics",color:"secondary",onClick:Object(u.a)(Gu().mark((function e(){return Gu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h("saving"),e.next=3,Object(zu.h)();case 3:h("saved");case 4:case"end":return e.stop()}}),e)})))})),o.a.createElement(xc,{checked:l,onClick:function(){t(Object(y.p)("shareUsageStats"))},label:"Share anonymous usage statistics",tipText:"Help improve Session Buddy by allowing the collection of anonymous usage statistics. No personal information or browsing data is collected."})))},Ku=n(135),Vu=function(e){var t=e.date,n=e.deriveValue,o=t?+t:void 0,i=Object(r.useState)((function(){return n(o)})),a=Object(ve.a)(i,2),c=a[0],u=a[1],l=Object(r.useRef)(null);return Object(r.useEffect)((function(){if(u(n(o)),o){return function e(){l.current=window.setTimeout((function(){u(n(o)),e()}),function(e){var t=e-Object(L.m)();return n(L.b)||n(L.d)||n(L.f)||299;function n(e){if(t<=-e||t>=e){var n=t%e;return(n<0?e:0)+n+100}}}(o))}(),function(){l.current&&clearTimeout(l.current)}}}),[o,n]),c};function qu(){qu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var $u=Object(O.a)((function(e){return{nextSnapshotCheckIn:{textAlign:"left",fontStyle:"italic",fontSize:e.typography.caption.fontSize}}})),Yu=function(){var e=$u(),t=Object(f.b)(),n=Object(s.c)(Object(y.l)("scheduledSnapshotCycle")),i=Object(s.c)(Object(y.l)("scheduledSnapshotRemoveOlderThan")),a=Object(s.c)(Object(y.l)("scheduledSnapshotKeepAtMost")),c=Object(s.c)(b.c.noNavClientHistoryExists),l=Object(s.c)(b.c.clientHistoryInitialized),d=Object(s.c)(Object(y.l)("bypassConfirmEventDelete")),p=Object(s.c)(Object(y.l)("bypassConfirmEventItemDelete")),h=function(e){var t=Object(r.useState)(),n=Object(ve.a)(t,2),o=n[0],i=n[1];return Object(r.useEffect)((function(){Object(Ku.c)(e).then((function(e){i(null===e||void 0===e?void 0:e.scheduledTime)}));var t=Object(Ku.e)(e,(function(e){i(null===e||void 0===e?void 0:e.scheduledTime)}));return function(){t()}}),[e]),{scheduledTime:o}}("snapshot"),v=h.scheduledTime,m=Vu({date:v,deriveValue:Object(r.useCallback)((function(e){return e?e<Object(L.m)()+1e3?"Checking...":"Next check ".concat(Object(L.j)(e)):""}),[])});return o.a.createElement(o.a.Fragment,null,o.a.createElement(Su,null,o.a.createElement(xc,{checked:!d,onClick:function(){t(Object(y.p)("bypassConfirmEventDelete"))},label:Object(bt.d)(zc())}),o.a.createElement(xc,{checked:!p,onClick:function(){t(Object(y.p)("bypassConfirmEventItemDelete"))},label:Object(bt.d)(Vc())})),o.a.createElement(Su,{header:"Snapshots"},o.a.createElement(Bu,{label:"Check for changes every",tipText:"A snapshot is only created if something has changed",tipPlacement:"after-control",value:n,options:[{text:"5 minutes",value:5},{text:"10 minutes",value:10},{text:"30 minutes",value:30},{text:"1 Hour",value:L.c},{text:"2 Hours",value:2*L.c},{text:"4 Hours",value:4*L.c},{text:"8 Hours",value:8*L.c},{text:"1 Day",value:L.a},{text:"Never",value:0}],onChange:function(){var e=Object(u.a)(qu().mark((function e(n){return qu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(Object(y.q)("scheduledSnapshotCycle",n));case 2:Object(Eu.a)({type:"onSettingUpdated",target:"scheduledSnapshotCycle",data:n});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),o.a.createElement("div",{className:e.nextSnapshotCheckIn},m)),o.a.createElement(Su,{header:"Retention"},o.a.createElement(Bu,{label:"Keep events from the last",tipText:"Events may be removed sooner when storage is low",tipPlacement:"after-control",value:i,options:[{text:"1 day",value:L.a},{text:"5 days",value:5*L.a},{text:"7 days",value:7*L.a},{text:"30 days",value:30*L.a},{text:"1 year",value:L.i},{text:"10 years",value:10*L.i},{text:"100 years",value:100*L.i}],onChange:function(){var e=Object(u.a)(qu().mark((function e(n){return qu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(Object(y.q)("scheduledSnapshotRemoveOlderThan",n));case 2:return e.next=4,Object(Be.k)({maxAge:n*L.f});case 4:t(b.a.selectClientHistoryItem(po.a)),t(b.a.itemSelectionCleared()),t(b.a.fetchNavClientHistory({reset:!0}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),o.a.createElement(Bu,{label:"Keep at most",tipText:"Number of events are limited by available storage",tipPlacement:"after-control",value:a,options:[{text:"10 events",value:10},{text:"50 events",value:50},{text:"100 events",value:100},{text:"200 events",value:200},{text:"500 events",value:500},{text:"1000 events",value:1e3},{text:"2000 events",value:2e3}],onChange:function(){var e=Object(u.a)(qu().mark((function e(n){return qu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(Object(y.q)("scheduledSnapshotKeepAtMost",n));case 2:return e.next=4,Object(Be.k)({maxCount:n});case 4:t(b.a.selectClientHistoryItem(po.a)),t(b.a.itemSelectionCleared()),t(b.a.fetchNavClientHistory({reset:!0}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),o.a.createElement(Su,null,o.a.createElement(gc,null,o.a.createElement(fe.a,{label:"Clear history",color:"secondary",disabled:l&&c,onClick:function(){t(Object(Tt.d)({title:"Clear history?",text:"All events will be removed",okAction:function(){t(b.a.clearClientHistory())}}))}})),o.a.createElement(gc,null,o.a.createElement(fe.a,{label:"Remove snapshots only",color:"secondary",disabled:l&&c,onClick:function(){t(Object(Tt.d)({title:"Remove snapshots?",text:"All snapshot events will be removed",okAction:function(){t(b.a.removeSnapshotItems())}}))}}))))},Xu=n(90),Qu=n.n(Xu),Ju=function(e){var t=e.name,n=e.label,i=e.tipText,a=Object(r.useState)(),c=Object(ve.a)(a,2),u=c[0],l=c[1],s=void 0===u;return Object(r.useEffect)((function(){var e=!1;chrome.permissions.contains({permissions:[t]},l);return chrome.permissions.onAdded.addListener((function(n){var r;e||(null===(r=n.permissions)||void 0===r?void 0:r.includes(t))&&l(!0)})),chrome.permissions.onRemoved.addListener((function(n){var r;e||(null===(r=n.permissions)||void 0===r?void 0:r.includes(t))&&l(!1)})),function(){e=!0}}),[t]),o.a.createElement(xc,{label:n||t,tipText:i,disabled:s,checked:!!u,onClick:function(){(u?chrome.permissions.remove:chrome.permissions.request)({permissions:[t]})}})};function Zu(){Zu=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var el,tl=Object(O.a)((function(e){return{IconDemo:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",zIndex:function(e){return e.hovered?1:0},padding:14,borderRadius:e.shape.borderRadiusSmall,scale:function(e){var t=e.active,n=e.hovered;return t?"1.3":n?"1.5":"1"},color:function(t){return t.hovered?e.palette.text.primary:e.palette.text.secondary},backgroundColor:e.palette.background.paper,cursor:"pointer",transition:"all 150ms",boxShadow:function(t){var n=t.active,r=t.hovered;return n?e.shadows[6]:r?e.shadows[10]:""}}}})),nl=function(e){var t=e.name,n=e.icon,i=Object(r.useState)(!1),a=Object(ve.a)(i,2),c=a[0],l=a[1],s=Object(r.useState)(!1),f=Object(ve.a)(s,2),d=f[0],p=f[1],h=Object(r.useState)(!1),v=Object(ve.a)(h,2),m=v[0],b=v[1],y=tl({active:c,hovered:d}),g=o.a.createElement("span",{className:y.IconDemo,onMouseDown:function(){l(!0)},onMouseUp:Object(u.a)(Zu().mark((function e(){return Zu().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.clearTimeout(el),l(!1),e.next=4,oi({text:t});case 4:b(!0),el=window.setTimeout((function(){b(!1)}),1e3);case 6:case"end":return e.stop()}}),e)}))),onMouseEnter:function(){p(!0)},onMouseLeave:function(){p(!1),l(!1)}},o.a.createElement(n,null));return m?o.a.createElement(Pe,{PopperProps:{modifiers:{offset:{offset:"0, 8"}}},title:'"'.concat(t,'" copied'),placement:"top"},g):g},rl=Object(O.a)((function(e){return{Swatch:{display:"inline-block",boxSizing:"border-box",width:24,height:24,margin:e.spacing(.5),border:"3px solid #96969670",backgroundClip:"padding-box",borderRadius:"100%",backgroundColor:function(e){return e.color},cursor:"pointer"}}})),ol=function(e){var t=e.name,n=e.color,r=e.copyText,i=rl({color:n});return o.a.createElement(Pe,{title:t,placement:"top"},o.a.createElement("span",{className:i.Swatch,onClick:function(){oi({text:r||t})}}))},il=Object(O.a)((function(e){return{SwatchGroup:{"& + &":{marginTop:e.spacing(1)}},header:{padding:e.spacing(1),fontSize:"1.1rem",fontWeight:400}}})),al=function(e){var t=e.name,n=e.values,r=il();return o.a.createElement("div",{className:r.SwatchGroup},o.a.createElement("div",{className:r.header},t),Object.entries(n).map((function(e){var n=Object(ve.a)(e,2),r=n[0],i=n[1];return o.a.createElement(ol,{key:r,name:r,color:i,copyText:"theme.palette.".concat(t,".").concat(r)})})))},cl=function(){var e=Object(K.a)(),t=Object(r.useReducer)((function(e){return e+1}),0)[1];return o.a.createElement(o.a.Fragment,null,o.a.createElement(Su,{header:"App icons",tipText:"Click icon to copy name"},o.a.createElement(gc,{multiline:!0,maxHeight:"full"},Object.entries(mt).map((function(e){var t=Object(ve.a)(e,2),n=t[0],r=t[1];return o.a.createElement(nl,{key:n,name:n,icon:r})})))),o.a.createElement(Su,{header:"Theme palette"},o.a.createElement(gc,{multiline:!0},Object.entries(e.palette).filter((function(e){var t=Object(ve.a)(e,2),n=t[0],r=t[1];return Qu()(r)&&!["tonalOffset"].includes(n)})).map((function(e){var t=Object(ve.a)(e,2),n=t[0],r=t[1];return n.startsWith("nxs")?Object.entries(r).map((function(e){var t=Object(ve.a)(e,2),r=t[0],i=t[1];return o.a.createElement(al,{key:"".concat(n,".").concat(r),name:"".concat(n,".").concat(r),values:i})})):o.a.createElement(al,{key:n,name:n,values:r})})))),o.a.createElement(Su,{header:"Metadata"},o.a.createElement(gc,null,o.a.createElement(fe.a,{label:"Log metadata",color:"secondary",onClick:function(){console.log(Object(_r.a)())}}))),o.a.createElement(Su,{header:"FavIcons"},o.a.createElement(xc,{checked:qr.isDebugOn(),onClick:function(){qr.toggleDebug(),t()},label:"Enable logging"}),o.a.createElement(gc,null,o.a.createElement(fe.a,{label:"Log invalid favicons",color:"secondary",onClick:function(){qr.logInvalidFaviconUrls()}}),o.a.createElement(fe.a,{label:"Clear invalid favicons",color:"secondary",onClick:function(){qr.clearCache(),qr.logInvalidFaviconUrls()}}))),Object(P.w)()?o.a.createElement(Su,{header:"Optional permissions"},o.a.createElement(Ju,{name:"tabGroups",tipText:"Allows Session Buddy to access tab group names and colors"})):null)},ul=Object(O.a)((function(e){return{Settings:function(e){return e.animationIsDisabled?{"& *":{transition:"none !important"},userSelect:"none"}:{userSelect:"none"}},title:{display:"flex",alignItems:"center","& > svg":{fontSize:"1.28rem",marginRight:16}},info:{textWrap:"balance",padding:e.spacing(2),marginTop:e.spacing(1),marginBottom:e.spacing(1),borderRadius:e.shape.borderRadius,color:e.palette.info.contrastText,backgroundColor:e.palette.info.main},version:{marginRight:"auto",color:e.palette.text.secondary,paddingLeft:e.spacing(2),"& a":{color:"inherit",textDecoration:"none",outline:"none","&:hover, &:focus":{color:e.palette.text.primary,textDecoration:"underline"}}}}})),ll=function(){var e=$e(["debug"]).debug,t=Object(s.b)(),n=Object(s.c)(Object(y.l)("settingsIsOpen")),i=Object(s.c)(Object(y.l)("animationIsDisabled")),a=ul({animationIsDisabled:i}),c=Object(r.useCallback)((function(){t(Object(y.m)())}),[t]);Object(se.a)(c);var u=Object(P.w)()&&Object(Re.c)();return o.a.createElement(ne,{className:a.Settings,open:n,"aria-labelledby":"settings-title",onClose:c,fullWidth:!0,maxWidth:e?"sm":"xs",scroll:"body"},o.a.createElement(_a,{id:"settings-title"},o.a.createElement("div",{className:a.title},o.a.createElement(mt.SettingsIcon,null),o.a.createElement("span",null,Object(bt.d)(kc())))),o.a.createElement(oe,null,o.a.createElement(ju,{spec:[{title:"Tabs",panel:Object(P.w)()?o.a.createElement(Cu,null):void 0},{title:"Collections",panel:o.a.createElement(Uu,null)},{title:"History",panel:o.a.createElement(Yu,null)},{title:"General",panel:o.a.createElement(Hu,null)},{title:"Dev",panel:e?o.a.createElement(cl,null):void 0}]})),o.a.createElement(le,null,u?o.a.createElement("div",{className:a.version},o.a.createElement("a",{href:"https://sessionbuddy.com/release-".concat(u.replaceAll(".","-"),"/"),target:"_blank",rel:"noopener"},"v".concat(u))):null,o.a.createElement(fe.a,{label:Object(bt.d)(Sc()),color:"primary",onClick:c})))},sl=Object(O.a)((function(e){return{content:{"&&&":{paddingTop:32}},colors:{display:"flex",alignItems:"center",gap:8,boxSizing:"border-box",height:52,padding:e.spacing(0,3,3)},colorClearButton:{marginLeft:"auto"},dontAskAgain:{marginRight:"auto",paddingLeft:e.spacing(2)}}})),fl=function(e){var t=e.id,n=e.type,i=e.initialTitle,a=e.initialColor,c=e.initialTitleSelect,u=e.neverDisableOK,l=e.showDontAskAgain,d=e.onCancel,p=e.onOK,h=Object(f.b)(),v=Object(r.useState)(i),m=Object(ve.a)(v,2),b=m[0],g=m[1],w=Object(s.c)(Object(y.l)("defaultCollectionColor")),O=Object(s.c)(Object(y.l)("askForNameWhenSavingCollection")),x="collection"===n?Object(pt.c)({id:t,color:a,defaultCollectionColor:w}):void 0,j=Object(r.useState)(x),E=Object(ve.a)(j,2),k=E[0],S=E[1],L=sl(),C=Object(K.a)();Object(se.a)(d);var T=!u&&b.trim()===i.trim()&&k===x;return o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"set-editor",open:!0,onClose:d},o.a.createElement("form",{onSubmit:function(e){e.preventDefault(),p(b.trim(),x===k?null:k)}},o.a.createElement(oe,{className:L.content},o.a.createElement(Ba,{id:"set-editor-title",label:"client"===n?"Browser title":"Collection title",value:b,autoSelect:c,onChange:function(e){g(e)}})),"collection"===n?o.a.createElement("div",{className:L.colors},pt.a.map((function(e){return o.a.createElement(Iu,{key:e,selected:k===e,color:Object(pt.d)({color:e,theme:C}),size:20,onEngaged:function(){S(e)},onSelectedEnter:function(){x!==k&&p(b.trim(),k)}})})),"none"===w&&k?o.a.createElement(fe.a,{className:L.colorClearButton,outlined:!0,label:"Clear",size:"small",onClick:function(){S(void 0)}}):null):null,o.a.createElement(le,null,l?o.a.createElement("div",{className:L.dontAskAgain},o.a.createElement(xc,{compact:!0,label:"Don't ask again",checked:!O,onClick:function(){h(Object(y.p)("askForNameWhenSavingCollection"))}})):null,o.a.createElement(fe.a,{label:"OK",color:"primary",type:"submit",disabled:T}),o.a.createElement(fe.a,{label:"Cancel",onClick:d}))))},dl=function(){var e=Object(s.c)(j.c.context),t=Object(s.b)(),n=Object(r.useCallback)((function(){t(Object(j.d)())}),[t]);return e?o.a.createElement(fl,{id:e.id,type:"collection"===e.type?"collection":"client",initialTitle:e.title||"",initialColor:e.color,initialTitleSelect:e.isNew,neverDisableOK:e.isNew,showDontAskAgain:e.isNew&&"collection"===e.type,onCancel:n,onOK:function(n,r){if("collection"===e.type){var o=null===r;t(b.a.updateCollection({id:e.id,props:Object(l.a)({title:n},o?null:{color:r}),timestamp:0}))}else"local-client"===e.type?t(Object(y.q)("clientTitle",n)):e.type;t(Object(j.d)())}}):null},pl=n(25),hl=n.n(pl);function vl(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function c(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function ml(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(u){c=[6,u],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}Object.create;function bl(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function yl(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var gl=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function wl(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=gl.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var Ol=[".DS_Store","Thumbs.db"];function xl(e){return"object"===typeof e&&null!==e}function jl(e){return Ll(e.target.files).map((function(e){return wl(e)}))}function El(e){return vl(this,void 0,void 0,(function(){return ml(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return wl(e)}))]}}))}))}function kl(e,t){return vl(this,void 0,void 0,(function(){var n;return ml(this,(function(r){switch(r.label){case 0:return e.items?(n=Ll(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(Cl))]):[3,2];case 1:return[2,Sl(Tl(r.sent()))];case 2:return[2,Sl(Ll(e.files).map((function(e){return wl(e)})))]}}))}))}function Sl(e){return e.filter((function(e){return-1===Ol.indexOf(e.name)}))}function Ll(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Cl(e){if("function"!==typeof e.webkitGetAsEntry)return Il(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Nl(t):Il(e)}function Tl(e){return e.reduce((function(e,t){return yl(yl([],bl(e),!1),bl(Array.isArray(t)?Tl(t):[t]),!1)}),[])}function Il(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=wl(t);return Promise.resolve(n)}function _l(e){return vl(this,void 0,void 0,(function(){return ml(this,(function(t){return[2,e.isDirectory?Nl(e):Al(e)]}))}))}function Nl(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return vl(i,void 0,void 0,(function(){var i,a,c;return ml(this,(function(u){switch(u.label){case 0:if(t.length)return[3,5];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=u.sent(),e(i),[3,4];case 3:return a=u.sent(),n(a),[3,4];case 4:return[3,6];case 5:c=Promise.all(t.map(_l)),r.push(c),o(),u.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function Al(e){return vl(this,void 0,void 0,(function(){return ml(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=wl(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var Pl=n(231),Rl=n.n(Pl);function Ml(e){return function(e){if(Array.isArray(e))return Gl(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||zl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach((function(t){Bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||zl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zl(e,t){if(e){if("string"===typeof e)return Gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gl(e,t):void 0}}function Gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wl="file-invalid-type",Hl="file-too-large",Kl="file-too-small",Vl="too-many-files",ql=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Wl,message:"File type must be ".concat(t)}},$l=function(e){return{code:Hl,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Yl=function(e){return{code:Kl,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Xl={code:Vl,message:"Too many files"};function Ql(e,t){var n="application/x-moz-file"===e.type||Rl()(e,t);return[n,n?null:ql(t)]}function Jl(e,t,n){if(Zl(e.size))if(Zl(t)&&Zl(n)){if(e.size>n)return[!1,$l(n)];if(e.size<t)return[!1,Yl(t)]}else{if(Zl(t)&&e.size<t)return[!1,Yl(t)];if(Zl(n)&&e.size>n)return[!1,$l(n)]}return[!0,null]}function Zl(e){return void 0!==e&&null!==e}function es(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function ts(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ns(e){e.preventDefault()}function rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!es(e)&&t&&t.apply(void 0,[e].concat(r)),es(e)}))}}function os(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function is(e){return/^.*\.[\w]+$/.test(e)}var as=["children"],cs=["open"],us=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],ls=["refKey","onChange","onClick"];function ss(e){return function(e){if(Array.isArray(e))return ps(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ds(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||ds(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ds(e,t){if(e){if("string"===typeof e)return ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(e,t):void 0}}function ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bs(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ys=Object(r.forwardRef)((function(e,t){var n=e.children,i=Os(bs(e,as)),a=i.open,c=bs(i,cs);return Object(r.useImperativeHandle)(t,(function(){return{open:a}}),[a]),o.a.createElement(r.Fragment,null,n(vs(vs({},c),{},{open:a})))}));ys.displayName="Dropzone";var gs={disabled:!1,getFilesFromEvent:function(e){return vl(this,void 0,void 0,(function(){return ml(this,(function(t){return xl(e)&&xl(e.dataTransfer)?[2,kl(e.dataTransfer,e.type)]:function(e){return xl(e)&&xl(e.target)}(e)?[2,jl(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,El(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};ys.defaultProps=gs,ys.propTypes={children:hl.a.func,accept:hl.a.objectOf(hl.a.arrayOf(hl.a.string)),multiple:hl.a.bool,preventDropOnDocument:hl.a.bool,noClick:hl.a.bool,noKeyboard:hl.a.bool,noDrag:hl.a.bool,noDragEventsBubbling:hl.a.bool,minSize:hl.a.number,maxSize:hl.a.number,maxFiles:hl.a.number,disabled:hl.a.bool,getFilesFromEvent:hl.a.func,onFileDialogCancel:hl.a.func,onFileDialogOpen:hl.a.func,useFsAccessApi:hl.a.bool,autoFocus:hl.a.bool,onDragEnter:hl.a.func,onDragLeave:hl.a.func,onDragOver:hl.a.func,onDrop:hl.a.func,onDropAccepted:hl.a.func,onDropRejected:hl.a.func,onError:hl.a.func,validator:hl.a.func};var ws={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Os(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=vs(vs({},gs),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,u=t.multiple,l=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,v=t.onDropRejected,m=t.onFileDialogCancel,b=t.onFileDialogOpen,y=t.useFsAccessApi,g=t.autoFocus,w=t.preventDropOnDocument,O=t.noClick,x=t.noKeyboard,j=t.noDrag,E=t.noDragEventsBubbling,k=t.onError,S=t.validator,L=Object(r.useMemo)((function(){return function(e){if(Zl(e))return Object.entries(e).reduce((function(e,t){var n=Ul(t,2),r=n[0],o=n[1];return[].concat(Ml(e),[r],Ml(o))}),[]).filter((function(e){return os(e)||is(e)})).join(",")}(n)}),[n]),C=Object(r.useMemo)((function(){return function(e){return Zl(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=Ul(e,2),n=t[0],r=t[1],o=!0;return os(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),Array.isArray(r)&&r.every(is)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),o=!1),o})).reduce((function(e,t){var n=Ul(t,2),r=n[0],o=n[1];return Dl(Dl({},e),{},Bl({},r,o))}),{})}]:e}(n)}),[n]),T=Object(r.useMemo)((function(){return"function"===typeof b?b:js}),[b]),I=Object(r.useMemo)((function(){return"function"===typeof m?m:js}),[m]),_=Object(r.useRef)(null),N=Object(r.useRef)(null),A=fs(Object(r.useReducer)(xs,ws),2),P=A[0],R=A[1],M=P.isFocused,F=P.isFileDialogActive,D=Object(r.useRef)("undefined"!==typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),B=function(){!D.current&&F&&setTimeout((function(){N.current&&(N.current.files.length||(R({type:"closeDialog"}),I()))}),300)};Object(r.useEffect)((function(){return window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)}}),[N,F,I,D]);var U=Object(r.useRef)([]),z=function(e){_.current&&_.current.contains(e.target)||(e.preventDefault(),U.current=[])};Object(r.useEffect)((function(){return w&&(document.addEventListener("dragover",ns,!1),document.addEventListener("drop",z,!1)),function(){w&&(document.removeEventListener("dragover",ns),document.removeEventListener("drop",z))}}),[_,w]),Object(r.useEffect)((function(){return!o&&g&&_.current&&_.current.focus(),function(){}}),[_,g,o]);var G=Object(r.useCallback)((function(e){k?k(e):console.error(e)}),[k]),W=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[].concat(ss(U.current),[e.target]),ts(e)&&Promise.resolve(i(e)).then((function(t){if(!es(e)||E){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,c=e.validator;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=Ul(Ql(e,n),1)[0],i=Ul(Jl(e,r,o),1)[0],a=c?c(e):null;return t&&i&&!a}))}({files:t,accept:L,minSize:c,maxSize:a,multiple:u,maxFiles:l,validator:S});R({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e)}})).catch((function(e){return G(e)}))}),[i,s,G,E,L,c,a,u,l,S]),H=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=ts(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&d&&d(e),!1}),[d,E]),K=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=U.current.filter((function(e){return _.current&&_.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),U.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ts(e)&&f&&f(e))}),[_,f,E]),V=Object(r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=fs(Ql(e,L),2),o=t[0],i=t[1],u=fs(Jl(e,c,a),2),l=u[0],s=u[1],f=S?S(e):null;if(o&&l&&!f)n.push(e);else{var d=[i,s];f&&(d=d.concat(f)),r.push({file:e,errors:d.filter((function(e){return e}))})}})),(!u&&n.length>1||u&&l>=1&&n.length>l)&&(n.forEach((function(e){r.push({file:e,errors:[Xl]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&v&&v(r,t),n.length>0&&h&&h(n,t)}),[R,u,L,c,a,l,p,h,v,S]),q=Object(r.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),U.current=[],ts(e)&&Promise.resolve(i(e)).then((function(t){es(e)&&!E||V(t,e)})).catch((function(e){return G(e)})),R({type:"reset"})}),[i,V,G,E]),$=Object(r.useCallback)((function(){if(D.current){R({type:"openDialog"}),T();var e={multiple:u,types:C};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){V(e,null),R({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(I(e),R({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?G(e):(D.current=!1,N.current?(N.current.value=null,N.current.click()):G(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else N.current&&(R({type:"openDialog"}),T(),N.current.value=null,N.current.click())}),[R,T,I,y,V,G,C,u]),Y=Object(r.useCallback)((function(e){_.current&&_.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),$()))}),[_,$]),X=Object(r.useCallback)((function(){R({type:"focus"})}),[]),Q=Object(r.useCallback)((function(){R({type:"blur"})}),[]),J=Object(r.useCallback)((function(){O||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?$():setTimeout($,0))}),[O,$]),Z=function(e){return o?null:e},ee=function(e){return x?null:Z(e)},te=function(e){return j?null:Z(e)},ne=function(e){E&&e.stopPropagation()},re=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,u=e.onClick,l=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,d=e.onDrop,p=bs(e,us);return vs(vs(ms({onKeyDown:ee(rs(i,Y)),onFocus:ee(rs(a,X)),onBlur:ee(rs(c,Q)),onClick:Z(rs(u,J)),onDragEnter:te(rs(l,W)),onDragOver:te(rs(s,H)),onDragLeave:te(rs(f,K)),onDrop:te(rs(d,q)),role:"string"===typeof r&&""!==r?r:"presentation"},n,_),o||x?{}:{tabIndex:0}),p)}}),[_,Y,X,Q,J,W,H,K,q,x,j,o]),oe=Object(r.useCallback)((function(e){e.stopPropagation()}),[]),ie=Object(r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,o=e.onClick,i=bs(e,ls);return vs(vs({},ms({accept:L,multiple:u,type:"file",style:{display:"none"},onChange:Z(rs(r,q)),onClick:Z(rs(o,oe)),tabIndex:-1},n,N)),i)}}),[N,n,u,q,o]);return vs(vs({},P),{},{isFocused:M&&!o,getRootProps:re,getInputProps:ie,rootRef:_,inputRef:N,open:Z($)})}function xs(e,t){switch(t.type){case"focus":return vs(vs({},e),{},{isFocused:!0});case"blur":return vs(vs({},e),{},{isFocused:!1});case"openDialog":return vs(vs({},ws),{},{isFileDialogActive:!0});case"closeDialog":return vs(vs({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return vs(vs({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return vs(vs({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return vs({},ws);default:return e}}function js(){}var Es=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,c=e.value,u=e.valueBuffer,l=e.variant,s=void 0===l?"indeterminate":l,f=Object(M.a)(e,["classes","className","color","value","valueBuffer","variant"]),d=Object(K.a)(),p={},h={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==c){p["aria-valuenow"]=Math.round(c),p["aria-valuemin"]=0,p["aria-valuemax"]=100;var v=c-100;"rtl"===d.direction&&(v=-v),h.bar1.transform="translateX(".concat(v,"%)")}else 0;if("buffer"===s)if(void 0!==u){var m=(u||0)-100;"rtl"===d.direction&&(m=-m),h.bar2.transform="translateX(".concat(m,"%)")}else 0;return r.createElement("div",Object(R.a)({className:Object(D.a)(n.root,n["color".concat(Object(U.a)(a))],o,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[s]),role:"progressbar"},p,{ref:t},f),"buffer"===s?r.createElement("div",{className:Object(D.a)(n.dashed,n["dashedColor".concat(Object(U.a)(a))])}):null,r.createElement("div",{className:Object(D.a)(n.bar,n["barColor".concat(Object(U.a)(a))],("indeterminate"===s||"query"===s)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[s]),style:h.bar1}),"determinate"===s?null:r.createElement("div",{className:Object(D.a)(n.bar,("indeterminate"===s||"query"===s)&&n.bar2Indeterminate,"buffer"===s?[n["color".concat(Object(U.a)(a))],n.bar2Buffer]:n["barColor".concat(Object(U.a)(a))]),style:h.bar2}))})),ks=Object(B.a)((function(e){var t=function(t){return"light"===e.palette.type?Object(be.e)(t,.62):Object(be.b)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(Es),Ss=n(58),Ls=n(59),Cs=n(64),Ts=n(65),Is=n(116),_s=["type","state","incognito","top","left","width","height"],Ns=["url","groupId","active","pinned"];function As(e){var t,n=Object(P.E)(e),r=e.incognito||(null===(t=e.tabs)||void 0===t?void 0:t.some((function(e){return e.incognito}))),o=Object(l.a)(Object(l.a)({},Object(m.i)(n,_s)),{},{incognito:r,id:Object(oo.c)()}),i=e.nx_title||e.title;i&&(o.title=i);var a=(n.tabs||[]).filter((function(e){return e.url})),c=Object(l.a)(Object(l.a)({},o),{},{links:a.map((function(e){return function(e){var t=Object(P.D)(e),n=Object(l.a)(Object(l.a)({},Object(m.i)(t,Ns)),{},{id:Object(oo.c)()});if(e.nx_title&&e.nx_title!==e.title){var r;n.title=e.nx_title,n.titleOriginal=null!==(r=e.title)&&void 0!==r?r:""}else e.title&&(n.title=e.title);var o=e.favIconUrl||e.nx_googleFallbackFavIconUrl;o&&(n.favIconUrl=o);return n}(e)}))});return c.links.filter((function(e){return e.active})).slice(1).forEach((function(e){delete e.active})),c}function Ps(e){var t,n,r=Object(P.E)(e),o=e.incognito||(null===(t=e.tabs)||void 0===t?void 0:t.some((function(e){return e.incognito}))),i=Object(l.a)(Object(l.a)({},Object(m.i)(r,_s)),{},{id:null!==(n=r.id)&&void 0!==n?n:9999999});o&&(i.incognito=o);var a=(r.tabs||[]).filter((function(e){return e.url}));return Object(l.a)(Object(l.a)({},i),{},{tabs:a.map((function(e){return function(e){var t,n=Object(P.D)(e),r=Object(l.a)(Object(l.a)({},Object(m.i)(n,Ns)),{},{id:null!==(t=n.id)&&void 0!==t?t:9999999});n.title&&(r.title=n.title);n.favIconUrl&&(r.favIconUrl=n.favIconUrl);return Object(m.c)(r,(function(e,t){return!1!==e&&("title"!==t||""!==e)&&("favIconUrl"!==t||""!==e)}))}(e)}))})}function Rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object(L.m)();if(!e||"string"!==typeof e)return t;if(e.indexOf("T")>0)return+Date.parse(e);var n=e.split("-");return 6===n.length?Date.UTC(+n[0],+n[1],+n[2],+n[3],+n[4],+n[5]):t}var Ms={saved:"nxs.v3-id-map-saved-sessions",previous:"nxs.v3-id-map-previous-sessions"};function Fs(e,t){var n=function(e){try{return JSON.parse(localStorage.getItem(Ms[e])||"{}")}catch(t){return{}}}(t),r=n[e];return r||(n[e]=Object(oo.c)(),function(e,t){localStorage.setItem(Ms[t],JSON.stringify(e))}(n,t),n[e])}var Ds=n(88),Bs=n(46),Us=["name","title","color","created","updated","modified","touched"],zs=["nx_title","name","title","incognito","top","left","width","height","state","type"],Gs=["units"],Ws=["minimized","maximized","fullscreen","locked-fullscreen"],Hs=["popup","panel","app","devtools"],Ks=[{id:"freeform",label:"Free-form",parse:function(e){try{return[{groups:[{units:(e.match(/[('"]?\b(https?|file|ftp|chrome|brave|edge|opera|chrome-extension|moz-extension|extension):\/\/\S+/gi)||[]).map((function(e){return e.replace(/[,.?]+$/,"")})).map((function(e){return function(e){if(e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"')||e.startsWith("(")&&e.endsWith(")"))return e.slice(1,-1);return e}(e)})).filter((function(e){return e&&Object(pr.k)(e)})).map((function(e){return{url:e}}))}].filter(sf)}].filter(lf)}catch(t){throw Object(N.e)(t,{prefix:"Error parsing free-form URLs"}),new $s("Error parsing URLs")}}},"---",{id:"plaintext-url",label:"URLs",preParse:function(e){var t=e.text,n=e.lines,r=null!==n&&void 0!==n?n:t.split("\n"),o=[],i=0;for(;i<r.length;i++){var a=r[i].trim();if(a){if(!Object(pr.k)(a))throw new $s("Expected URL on line ".concat(i+1,": ").concat(a));o.push(a)}}return o},parse:function(e){if(!e.length)return[];return[{groups:[{units:e.map((function(e){return{url:e}}))}]}]},detectionPriority:7},{id:"plaintext-title-url",label:"Title/URL pairs",preParse:function(e){var t=e.text,n=e.lines,r=null!==n&&void 0!==n?n:t.split("\n"),o=null,i=[],a=null,c=0;for(;c<r.length;c++){var u=r[c].trim();if("blank"===o){if(u)throw new $s("Expected line ".concat(c+1," to be blank"));o=null}else if("url"===o){if(!Object(pr.k)(u))throw new $s("Expected URL on line ".concat(c+1));if(!a)throw new $s("URL without unit found on line ".concat(c+1));a.url=u,i.push(a),o="blank"}else u&&(a={title:u},o="url")}if("url"===o)throw new $s("Expected URL on line ".concat(c+1));return i},parse:function(e){if(!e.length)return[];return[{groups:[{units:e}]}]},detectionPriority:5},{id:"plaintext-url-spaced-groups",label:"Groups of URLs",preParse:function(e){var t=e.text,n=e.lines,r=null!==n&&void 0!==n?n:t.split("\n"),o=[{groups:[]}],i={units:[]},a=0;for(;a<r.length;a++){var c=r[a].trim();if(c){if(!Object(pr.k)(c))throw new $s("Expected URL on line ".concat(a+1,": ").concat(c));i.units.push({url:c})}else i.units.length&&(o[0].groups.push(i),i={units:[]})}i.units.length&&o[0].groups.push(i);return o.filter(lf)},parse:Ds.b,detectionPriority:6},"---",{id:"plaintext-url-spaced-named-groups",label:"Named groups of URLs",parse:function(e){try{for(var t=e.split("\n"),n=[{groups:[]}],r={units:[]},o=0,i=0,a=0;a<t.length;a++)if(o)o--;else{var c=t[a].trim();if(c)if(r.title){if(!Object(pr.k)(c))throw new $s("Expected URL on line ".concat(a+1,": ").concat(c));r.units.push({url:c})}else{var u;if(""!==(null===(u=t[a+1])||void 0===u?void 0:u.trim()))throw new $s("Expected group title followed by blank line on line ".concat(a+1));r.title=c,i=a,o=1}else r.units.length&&(n[0].groups.push(r),r={units:[]})}if(r.units.length)n[0].groups.push(r);else if(r.title)throw new $s('Empty group "'.concat(r.title,'" found on line ').concat(i+1));return n.filter(lf)}catch(l){throw Object(A.c)(l,{prefix:"Error parsing named groups of URLs"}),l instanceof $s?l:new $s("Error parsing named groups of URLs")}}},{id:"plaintext-title-url-spaced-named-groups",label:"Named groups of title/URL pairs",parse:function(e){try{for(var t=e.split("\n"),n=[{groups:[]}],r=null,o=0,i=0,a=0;a<t.length;a++)if(o)o--;else{var c=t[a].trim();if(c){var u,l=a+1,s=null===(u=t[l])||void 0===u?void 0:u.trim();if(null==s){if(!r)throw new $s("Expected group title followed by blank line on line ".concat(a+1));if(!r.units.length)throw new $s("Expected title/URL pair on line ".concat(a+1));throw new $s("Expected title/URL pair or group name on line ".concat(a+1))}if(s){var f;if(!r)throw new $s("Expected group title followed by blank line on line ".concat(a+1));if(!Object(pr.k)(s)){if(!r.units.length)throw new $s("Expected URL on line ".concat(l+1,": ").concat(s));throw new $s("Expected URL or blank line on line ".concat(l+1,": ").concat(s))}var d=a+2;if(null===(f=t[d])||void 0===f?void 0:f.trim())throw new $s("Expected line ".concat(d+1," to be blank"));r.units.push({title:c,url:s}),o=2}else{if(r){if(!r.units.length)throw new $s("Expected title/URL pair on line ".concat(a+1));n[0].groups.push(r)}r={title:c,units:[]},i=a,o=1}}}if(r){if(!r.units.length)throw new $s('Empty group "'.concat(r.title,'" found on line ').concat(i+1));n[0].groups.push(r)}return n.filter(lf)}catch(p){throw Object(A.c)(p,{prefix:"Error parsing named groups of title/URL pairs"}),p instanceof $s?p:new $s("Error parsing named groups of title/URL pairs")}}},"---",{id:"plaintext-url-indented-groups",label:"Indented groups of URLs",preParse:function(e){var t=e.text,n=e.lines;return nf({unitType:"url",text:t,lines:n})},parse:Ds.b,detectionPriority:4},{id:"plaintext-title-url-indented-groups",label:"Indented groups of title/URL pairs",preParse:function(e){var t=e.text,n=e.lines;return nf({unitType:"title-url",text:t,lines:n})},parse:Ds.b,detectionPriority:3},"---",{id:"json",label:"JSON",preParse:function(e){var t=e.text,n=t.trim();if((!n.startsWith("{")||!n.endsWith("}"))&&(!n.startsWith("[")||!n.endsWith("]")))throw new $s("JSON must be an object or array");return JSON.parse(t)},parse:function(e){var t=e;if(Array.isArray(t)){if(!t.length)return[];var n=t[0];if(!vf(n))throw new $s("Array items must be objects");return pf(n,Js)?[{groups:c(t)}].filter(lf):pf(n,Qs)?a(t):[{groups:[{incognito:t.filter((function(e){return vf(e)})).some((function(e){return e.incognito})),units:u(t)}].filter(sf)}].filter(lf)}if(vf(t)){var r=pf(t,Xs);if(r)return a(r);var o=pf(t,Qs);if(o)return[{groups:c(o)}].filter(lf);var i=pf(t,Js);if(i)return[{groups:[{incognito:i.filter((function(e){return vf(e)})).some((function(e){return e.incognito})),units:u(i)}].filter(sf)}].filter(lf)}return[];function a(e){return e.filter((function(e){return vf(e)})).map((function(e){var t=e.name,n=e.title,r=e.color,o=e.created,i=e.updated,a=e.modified,s=e.touched,f=Object(Ln.a)(e,Us),d=o&&"string"===typeof o?Rs(o):o&&"number"===typeof o?o:0,p=a&&"string"===typeof a?Rs(a,d):0,h=i&&"number"===typeof i&&i>d?i:d,v=p>h?p:h,m=s&&"number"===typeof s&&s>v?s:v,b=d||v;return Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},(t||n)&&"string"===typeof(t||n)?{title:t||n}:null),r&&"string"===typeof r?{color:r}:null),b?{created:b}:null),v?{updated:v}:null),m&&v?{touched:m}:null),{},{groups:pf(f,Qs)?c(pf(f,Qs)):pf(f,Js)?[{units:u(pf(f,Js))}]:[]})})).filter(lf)}function c(e){return e.filter((function(e){return vf(e)})).map((function(e){var t=e.nx_title,n=e.name,r=e.title,o=e.incognito,i=e.top,a=e.left,c=e.width,s=e.height,f=e.state,d=e.type,p=Object(Ln.a)(e,zs);return Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},(t||n||r)&&"string"===typeof(t||n||r)?{title:t||n||r}:null),o?{incognito:!0}:null),"number"===typeof i&&i?{top:i}:null),"number"===typeof a&&a?{left:a}:null),"number"===typeof c?{width:c}:null),"number"===typeof s?{height:s}:null),Ws.includes(f)?{state:f}:null),Hs.includes(d)?{type:d}:null),{},{units:u(pf(p,Js)||[])})})).filter(sf)}function u(e){return e.filter((function(e){return vf(e)})).filter((function(e){return e.url&&"string"===typeof e.url})).map((function(e){var t=e.url,n=e.nx_title,r=e.title,o=e.favIconUrl,i=e.pinned,a=e.active,c=e.groupId;return Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({url:t},(n||r)&&"string"===typeof(n||r)?{title:n||r}:null),o&&"string"===typeof o?{favIconUrl:o}:null),i?{pinned:!0}:null),a?{active:!0}:null),"number"===typeof c&&c>-1?{groupId:c}:null)}))}},detectionPriority:1},{id:"csv",label:"CSV",preParse:function(e){var t,n=e.text,r=e.lines,o=null!==r&&void 0!==r?r:n.split("\n"),i=Object(Nr.a)(o);try{for(i.s();!(t=i.n()).done;){var a=t.value.trim();if(a){var c=xo(a)[0];if(!c.every((function(e){return"string"===typeof e})))throw new $s("Header fields must be strings");if(!ff(c))throw new $s('Header must include "URL"');break}}}catch(l){i.e(l)}finally{i.f()}var u=xo(n);return{fields:u[0],records:u.slice(1)}},parse:function(e){var t=e.fields;if(!t.length)throw new $s("No header");var n=e.records;if(!n.length)throw new $s("No records");var r=t.map((function(e){return e.trim().toLowerCase()})),o=r.findIndex((function(e){return Zs.includes(e)})),i=r.findIndex((function(e){return ef.includes(e)}));if(o>-1&&-1===i){var a=r[o];throw new $s("".concat(a," column requires a ").concat(ef[Zs.indexOf(a)]," column"))}for(var c=[],u=r.indexOf("url"),l=r.indexOf("pinned"),s=r.indexOf("active"),f=r.indexOf("title"),d=r.indexOf("faviconurl"),p=r.indexOf("groupid"),h=0;h<n.length;h++){var v=n[h],m=v[u];if(null==m)throw new $s("URL missing (record ".concat(h+1,")"));if("string"!==typeof m)throw new $s("Invalid URL (record ".concat(h+1,"): ").concat(m));var b=m.trim();if(!b)throw new $s("URL missing (record ".concat(h+1,")"));var y={url:b},g=v[l];"string"===typeof g&&"true"===g.trim().toLowerCase()&&(y.pinned=!0);var w=v[s];"string"===typeof w&&"true"===w.trim().toLowerCase()&&(y.active=!0);var O=v[f];if("string"===typeof O){var x=O.trim();x&&(y.title=x)}var j=v[d];if("string"===typeof j){var E=j.trim();E&&(y.favIconUrl=E)}var k=v[p];"number"===typeof k&&k>-1&&(y.groupId=k),L(S(c,v,h).groups,v,h).units.push(y)}return c;function S(e,t,n){var i;if(-1===o)return e.length||e.push({groups:[]}),e[0];var a="".concat(null!==(i=t[o])&&void 0!==i?i:"").trim();if(!a)throw new $s("Value missing for ".concat(r[o]," (record ").concat(n+1,")"));var c=e.find((function(e){return e.title===a}));return c||(c={title:a,groups:[]},e.push(c)),c}function L(e,t,n){var o;if(-1===i)return e.length||e.push({units:[]}),e[0];var a="".concat(null!==(o=t[i])&&void 0!==o?o:"").trim();if(!a)throw new $s("Value missing for ".concat(r[i]," (record ").concat(n+1,")"));var c=e.find((function(e){return e.title===a}));return c||(c={title:a,units:[]},e.push(c)),c}},detectionPriority:2}],Vs=Ks.filter((function(e){return"string"!==typeof e})),qs=function(e){return"preParse"in e&&!!e.preParse},$s=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).name="IngestFormatParseError",r}return Object(Ss.a)(n)}(Object(Is.a)(Error)),Ys=/^\s*/,Xs=["sessions","collections"],Qs=["windows","folders"],Js=["tabs","links"],Zs=["session","collection"],ef=["window","folder"],tf=Vs.filter(qs).sort((function(e,t){return Object(Bs.d)(e.detectionPriority,t.detectionPriority)}));function nf(e){var t=e.unitType,n=e.text,r=e.lines,o=null!==r&&void 0!==r?r:n.split("\n"),i=function(e){var t,n,r=0,o=0;for(;r<e.length&&o<3;r++){var i=e[r];if(!!i.trim()){if(o){if(1===o){if(!(t=df(i)))throw new $s("Expected second content line to be indented")}else if(2===o&&null==(n=hf(i,t)))throw new $s("Inconsistent indentation on line ".concat(r+1))}else if(df(i))throw new $s("Expected first content line to not be indented");o++}}if(o<2)throw new $s("Not enough content");return{indent:t,thirdContentLineIndentLevel:n}}(o),a=i.indent,c=i.thirdContentLineIndentLevel;if("title-url"===t){if(null==c)throw new $s("Not enough content");if(0===c)throw new $s("Inconsistent indentation")}for(var u=c||1,l="title-url"===t?"title/URL pair":"URL",s=[],f=null,d=null,p=0,h=0;h<o.length;h++)if(p)p--;else{var v=o[h],m=v.trim();if(!!m){var b=hf(v,a);if(null==b||b>u)throw new $s("Inconsistent indentation on line ".concat(h+1));if(b===u){if(!d)throw new $s("Expected group name on line ".concat(h+1));if("title-url"===t){var y=h+1,g=o[y],w=null===g||void 0===g?void 0:g.trim();if(!w)throw new $s("Expected URL on line ".concat(y+1));if(!Object(pr.k)(w))throw new $s("Expected URL on line ".concat(y+1,": ").concat(w));if(b!==hf(g,a))throw new $s("Inconsistent indentation on line ".concat(y+1));d.units.push({title:m,url:w}),p=1}else{if(!Object(pr.k)(m))throw new $s("Expected URL on line ".concat(h+1,": ").concat(m));d.units.push({url:m})}}else if(b===u-1){if(d&&!d.units.length)throw new $s("Expected indented ".concat(l," on line ").concat(h+1));f||(f={groups:[]},s.push(f)),d={title:m,units:[]},f.groups.push(d)}else{if(0!==b)throw new $s("Inconsistent indentation on line ".concat(h+1));if(f){if(!d)throw new $s("Expected group name on line ".concat(h+1));if(!d.units.length)throw new $s("Expected indented ".concat(l," on line ").concat(h+1))}f={title:m,groups:[]},s.push(f),d=null}}}var O=s.at(-1);if(!O)return[];if(!O.groups.length)throw new $s("Expected group name on line ".concat(h+1));if(!O.groups.at(-1).units.length)throw new $s("Expected ".concat(l," on line ").concat(h+1));return s}function rf(e,t){if(!e.trim())return[];var n=Vs.find((function(e){return e.id===t}));if(!n)throw new Error("Invalid format: ".concat(t));if(qs(n)){var r=n.preParse({text:e});return n.parse(r)}return n.parse(e)}var of={setCount:0,groupCount:0,unitCount:0};function af(e){var t;return null!==(t=null===e||void 0===e?void 0:e.map((function(e){var t=e.id,n=e.title,r=e.color,o=e.groups,i=e.created,a=e.updated,c=e.touched,u=i||Object(L.p)(),s=a||u,f=c||s;return Object(P.y)(Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({id:Object(oo.c)(),created:u,updated:s,touched:f,clientId:Un.a.id},t?{sourceId:t}:null),n?{title:n,sourceTitle:n}:null),r?{color:r}:null),{},{sourceType:"transfer",pinned:0,folders:uf(o)}),!0)})))&&void 0!==t?t:[]}function cf(e){var t;return uf(null!==(t=null===e||void 0===e?void 0:e.flatMap((function(e){return e.groups})))&&void 0!==t?t:[])}function uf(e){return e.map((function(e){var t=e.units,n=Object(Ln.a)(e,Gs);return Object(l.a)(Object(l.a)({},n),{},{id:Object(oo.c)(),links:t.map((function(e){return Object(l.a)(Object(l.a)({},e),{},{id:Object(oo.c)(),url:e.url||""})}))})}))}function lf(e){var t=e.groups;return Array.isArray(t)&&!!t.length}function sf(e){var t=e.units;return Array.isArray(t)&&!!t.length}function ff(e){return e.some((function(e){return"string"===typeof e&&"url"===e.trim().toLowerCase()}))}function df(e){var t;return(null===(t=e.match(Ys))||void 0===t?void 0:t[0])||""}function pf(e,t){var n,r=Object(Nr.a)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o in e&&Array.isArray(e[o]))return e[o]}}catch(i){r.e(i)}finally{r.f()}}function hf(e,t){var n=df(e);return n?n===t?1:n===t.repeat(2)?2:void 0:0}function vf(e){return Qu()(e)}var mf=n(207);var bf=Object(O.a)((function(e){var t="dark"===e.palette.type?"#303030":"#ebebeb",n="dark"===e.palette.type?"#202020":"#707070",r="dark"===e.palette.type?"#2a592b":"#5fbe58",o="dark"===e.palette.type?"#725e21":"#e7a600",i="dark"===e.palette.type?"#4f1c1c":"#ff7474",a="dark"===e.palette.type?"#828282":"#525252";return{container:{borderRadius:e.shape.borderRadius,overflow:"hidden",backgroundColor:t},inputAndPlaceholder:{display:"flex",position:"relative"},gutter:{flex:"0 0 28px",padding:"16px 0 18px 14px",overflow:"hidden",pointerEvents:"none",userSelect:"none","& textarea":{height:"100%",padding:0,border:"none",outline:"none",boxSizing:"border-box",font:"inherit",lineHeight:1.18,color:"#808080",backgroundColor:"transparent",resize:"none"}},input:{padding:"16px 0 0 18px","$gutter+&":{paddingLeft:0}},textarea:Object(l.a)({lineHeight:1.18,overflow:"scroll"},Object(S.e)({thickness:6,spacing:6,backgroundColor:t,hoverColor:"dark"===e.palette.type?e.palette.nxsAction.hover.light:e.palette.nxsAction.hover.dark,focusColor:"dark"===e.palette.type?e.palette.nxsAction.hover.light:e.palette.nxsAction.hover.dark})),variantCode:{fontFamily:"monospace",fontSize:"0.8rem"},info:{height:30,maxHeight:30,padding:"0 18px",fontSize:"0.8rem",overflow:"hidden",opacity:1,transition:"height 200ms, max-height 200ms, opacity 200ms",color:"#fff",backgroundColor:n},infoHidden:{height:0,maxHeight:0,opacity:0,transition:"none"},success:{backgroundColor:r},warning:{backgroundColor:o},error:{backgroundColor:i},placeholder:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",fontSize:"0.8rem",color:a}}})),yf=0,gf=function(e){var t,n=e.id,i=e.value,a=e.autoSelect,c=e.disabled,u=e.readOnly,l=e.wrap,s=e.variant,f=void 0===s?"normal":s,d=e.resize,p=void 0===d?"none":d,h=e.height,v=void 0===h?"100px":h,m=e.minHeight,b=e.maxHeight,y=e.placeholder,g=e.info,O=e.showInfo,x=e.infoType,j=void 0===x?"normal":x,E=e.showLineNumbers,k=e.onChange,L=e.onPaste,C=e.onKeyDown,I=e.onKeyUp,_=bf(),N=Object(r.useState)((function(){return null!==n&&void 0!==n?n:"text-area-".concat(yf++)})),A=Object(ve.a)(N,1)[0],P=Object(r.useRef)(null),R=Object(r.useRef)(null),M=Object(r.useCallback)((function(){R.current&&P.current&&(R.current.scrollTop=P.current.scrollTop)}),[]);Object(r.useEffect)((function(){var e;a&&(null===(e=P.current)||void 0===e||e.select())}),[a]),Object(r.useEffect)((function(){T((function(){M()}))})),function(e,t){var n=Object(r.useRef)(null);Object(r.useEffect)((function(){if(e){n.current=null;var r=new ResizeObserver((function(e){var r,o,i=e[0];n.current&&(o=i,(r=n.current).contentRect.width===o.contentRect.width&&r.contentRect.height===o.contentRect.height)||t({width:i.contentRect.width+18,height:i.contentRect.height+18}),n.current=i}));return r.observe(e),function(){return r.disconnect()}}}),[e,t])}(P.current,M);var F=!!y&&!i,D=!F&&E,B=Object(r.useMemo)((function(){var e;return D?((null===(e=i.match(/\n/g))||void 0===e?void 0:e.length)||0)+1:0}),[D,i]),U=Object(r.useMemo)((function(){return D?new Array(B).fill(void 0).map((function(e,t){return t+1})).join("\n"):""}),[D,B]);return o.a.createElement(Na.a,{fullWidth:!0,disabled:c},o.a.createElement("div",{className:_.container},o.a.createElement("div",{className:_.inputAndPlaceholder},D?o.a.createElement("div",{className:Object(S.a)(_.gutter,Object(w.a)({},_.variantCode,"code"===f)),style:{flexBasis:"".concat(4*"".concat(B).length+20,"px")}},o.a.createElement("textarea",{disabled:!0,ref:R,value:U})):null,o.a.createElement(mf.a,{onScroll:M,className:_.input,id:A,inputRef:P,inputProps:{className:Object(S.a)(_.textarea,Object(w.a)({},_.variantCode,"code"===f)),readOnly:u,spellCheck:!1,wrap:l?"soft":"off",style:{height:v,minHeight:m,maxHeight:b,resize:p}},color:"secondary",multiline:!0,fullWidth:!0,autoFocus:!0,value:i,onChange:function(e){k(e.target.value)},onPaste:L,onKeyDown:C,onKeyUp:I,rows:1}),F?o.a.createElement("div",{className:_.placeholder},y):null),o.a.createElement("div",{className:Object(S.a)(_.info,(t={},Object(w.a)(t,_.infoHidden,!O||!g),Object(w.a)(t,_.success,"success"===j),Object(w.a)(t,_.warning,"warning"===j),Object(w.a)(t,_.error,"error"===j),t))},g)))};function wf(){wf=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Of=Object(O.a)((function(e){return{placeholder:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,whiteSpace:"pre-line",lineHeight:1.5,"& a":{color:"inherit",textUnderlineOffset:"2px",pointerEvents:"all","&:hover":{color:e.palette.text.primary}}},placeholderTitle:{padding:e.spacing(0,2),fontSize:"1rem",fontWeight:500,color:e.palette.text.primary},placeholderFileIcon:{width:40,height:40,color:"dark"===e.palette.type?e.palette.action.active:"#aeaeae"},success:{color:e.palette.success.main},progress:{width:260},progressColor:{backgroundColor:"dark"===e.palette.type?"#0097ff":e.palette.primary.light},progressBackgroundColor:{backgroundColor:e.palette.background.secondaryPaper},fileSelectLinkButton:{borderBottom:"1px solid currentColor",cursor:"pointer",pointerEvents:"all","&:hover":{color:e.palette.text.primary}},status:{display:"flex",alignItems:"center",justifyContent:"flex-start",height:"100%"},statusMessage:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},secondaryStatusMessage:{marginLeft:"auto",whiteSpace:"nowrap",opacity:.5,"& a":{display:"flex",alignItems:"center",paddingLeft:e.spacing(1),color:"inherit"},"& svg":{fontSize:"1rem"}},showOnTextAreaFocus:{display:"none",paddingLeft:e.spacing(1),".textInputSection:focus-within &":{display:"initial"}},formatSection:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:e.spacing(1,.5)},formatLabel:{fontSize:"0.8rem"},formatSelection:{display:"flex",alignItems:"center"},autoDetectButton:{display:"flex",alignItems:"center",marginLeft:6,color:"#b0b0b0",cursor:"pointer","& svg":{fontSize:"1.2rem"}},autoDetectButtonOn:{color:e.palette.text.primary},autoDetectDisabled:{opacity:.5,cursor:"default"}}})),xf=function(e){var t,n=e.id,i=e.parseFile,a=e.parseText,c=e.getCountsLabel,l=e.status,s=e.busy,f=e.createProgress,d=e.isError,p=e.errorMessage,h=e.text,v=e.file,m=e.formatId,b=e.hasData,y=e.height,g=void 0===y?120:y,O=e.accept,x=e.onCtrlEnter,j=Of(),E=Object(r.useState)(!0),k=Object(ve.a)(E,2),L=k[0],C=k[1],T=L?void 0:m,I=Object(r.useCallback)(function(){var e=Object(u.a)(wf().mark((function e(t,n){var r,o;return wf().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=2;break}return e.abrupt("return");case 2:r=t.length+n.length>1,o=r?void 0:t[0],i(o,{formatId:T,isMultipleFiles:r,isInvalidFileType:!o,isEmptyFile:o&&!o.size,allowLargeFile:"application/json"===(null===o||void 0===o?void 0:o.type)});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[s,i,T]),_=Os({onDrop:I,accept:O,maxFiles:1,multiple:!1,noDragEventsBubbling:!0,noClick:!0,noKeyboard:!0}),N=_.getRootProps,A=_.getInputProps,P=_.open,R=_.isDragActive,M=Object(r.useCallback)((function(e){a(Object(bt.f)(e),{formatId:T,throttle:!0})}),[a,T]),F=Object(r.useCallback)((function(e){x&&"Enter"===e.key&&Object(He.c)(e)&&(e.preventDefault(),x())}),[x]),D=Ks.map((function(e){return"string"===typeof e?e:{value:e.id,text:m===e.id&&L&&"freeform"!==e.id?"".concat(e.label," (detected)"):e.label}})),B=window.innerHeight-400,U=function(e,t){switch(e){case"error-no-file":return"Invalid file";case"error-invalid-file-type":return"File type must be JSON";case"error-empty-file":return"This file is empty";case"error-multiple-files":return"You cannot drop more than one file";case"error-max-file-size-exceeded":return t||"This file is too large";case"error-not-a-text-file":return"This file does not appear to be a text file";case"error-reading-file":return t||"Failed to read file";case"error-parsing":return t||"Parse error";case"error-creating":return t||"Error adding items";case"aborted":return"The process was interrupted"}}(l,p)||"".concat(c()," found"),z=N();return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",Object.assign({},z,{className:"textInputSection"}),o.a.createElement("input",A()),o.a.createElement(gf,{disabled:s,id:jf(n),variant:"code",resize:"vertical",height:"".concat(Math.min(g,B),"px"),minHeight:"100px",maxHeight:"".concat(B,"px"),showInfo:!(!(h||v||d)||!U||s||"created"===l),infoType:d||!b?"error":"success",info:o.a.createElement("div",{className:j.status},o.a.createElement("div",{className:j.statusMessage},U),o.a.createElement("div",{className:j.secondaryStatusMessage},!d&&b?o.a.createElement("span",{className:j.showOnTextAreaFocus},"".concat(Object(bt.d)(Object(He.a)())," + Enter to add")):"error-max-file-size-exceeded"===l?o.a.createElement(Pe,{title:"Click to learn more",placement:"top"},o.a.createElement("a",{href:"https://sessionbuddy.com/formats#large-files",target:"_blank",rel:"noopener"},o.a.createElement(mt.HelpIcon,null))):null)),placeholder:o.a.createElement("div",{className:j.placeholder},v&&"parsing"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.FileIcon,{className:j.placeholderFileIcon}),o.a.createElement("div",{className:j.placeholderTitle},"Checking file..."),o.a.createElement("div",null,"".concat(c()," found"))):!v||"parsed"!==l&&"error-parsing"!==l&&"error-creating"!==l&&"aborted"!==l?"creating"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:j.placeholderTitle},"Adding ".concat(v?"collections":c(),"...")),f?o.a.createElement(ks,{className:j.progress,classes:{colorPrimary:j.progressBackgroundColor,barColorPrimary:j.progressColor},variant:"determinate",value:f}):null,v&&b?o.a.createElement("div",null,"".concat(c()," added")):null):"created"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.SuccessIcon,{className:Object(S.a)(j.placeholderFileIcon,j.success)}),o.a.createElement("div",{className:j.placeholderTitle},"".concat(c()," added"))):s?o.a.createElement("div",{className:j.placeholderTitle},"Working..."):R?o.a.createElement("div",null,"Drop it"):o.a.createElement("div",null,o.a.createElement("div",null,"Paste text here,"),o.a.createElement("div",null,o.a.createElement("span",null,"drop a file, or "),o.a.createElement("span",{className:j.fileSelectLinkButton,onClick:P},"select one"))):o.a.createElement(o.a.Fragment,null,"error-parsing"===l||"error-creating"===l||"aborted"===l?o.a.createElement(mt.FileBadIcon,{className:j.placeholderFileIcon}):o.a.createElement(mt.FileGoodIcon,{className:j.placeholderFileIcon}),v.name?o.a.createElement("div",{className:j.placeholderTitle},v.name):null,o.a.createElement("div",null,"File contents too large to display"))),showLineNumbers:!0,value:h,onChange:M,onKeyDown:F})),o.a.createElement("div",{className:j.formatSection},o.a.createElement("div",{className:j.formatLabel},"Format:"),o.a.createElement("div",{className:j.formatSelection},o.a.createElement(Au,{disabled:s,small:!0,noUnderline:!0,value:m,options:D,onChange:function(e){C(!1),a(h,{formatId:e})}}),o.a.createElement(Pe,{title:s?"":"Auto-detect is ".concat(L?"ON":"OFF"),placement:"top",disableHoverListener:s,disableFocusListener:s,disableTouchListener:s},o.a.createElement("div",{className:Object(S.a)(j.autoDetectButton,(t={},Object(w.a)(t,j.autoDetectButtonOn,L),Object(w.a)(t,j.autoDetectDisabled,s),t)),onClick:function(){s||(L||v||a(h),C((function(e){return!e})))}},L?o.a.createElement(mt.AutoDetectOnIcon,null):o.a.createElement(mt.AutoDetectOffIcon,null))))))};function jf(e){return"".concat(e,"-input")}var Ef=Object(O.a)((function(e){return{DialogTitle:{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:1},help:{display:"flex",alignItems:"center",gap:e.spacing(1),padding:"4px 6px 4px 14px",fontSize:"0.9rem",fontWeight:"normal",borderRadius:100,transform:"translateX(4px)",opacity:.8,color:e.palette.text.primary,transition:"opacity 150ms ease-in-out","& .helpText":{display:"none"},"& svg":{fontSize:"1.4rem"},"&:hover":{backgroundColor:e.palette.info.main,opacity:1,"& .helpText":{display:"initial"}}}}})),kf=function(e){var t=e.title,n=e.helpText,r=e.helpUrl,i=Ef();return o.a.createElement(_a,null,o.a.createElement("div",{className:i.DialogTitle},o.a.createElement("span",null,t),r?o.a.createElement("a",{href:r,target:"_blank",rel:"noopener",className:i.help},o.a.createElement("span",{className:"helpText"},n||Object(bt.d)(ht.a.learnMore())),o.a.createElement(mt.HelpIcon,null)):null))};var Sf,Lf,Cf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).name="NotATextFileError",r}return Object(Ss.a)(n)}(Object(Is.a)(Error)),Tf=function(e){return new Promise((function(t,n){var r=new FileReader,o=function(){n("Failed to read file.")};r.onabort=o,r.onerror=o,r.onload=function(){if(r.readyState===r.DONE){var e="string"===typeof r.result?r.result:"";e.includes("\ufffd")?n(new Cf("The selected file does not appear to be a text file.")):t(Object(bt.f)(e))}},r.readAsText(e)}))},If=n(77),_f=n(115);!function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"}(Lf||(Lf={}));var Nf,Af=(Sf={},Object(w.a)(Sf,Lf.QUOTATION_MARK,Lf.QUOTATION_MARK),Object(w.a)(Sf,Lf.REVERSE_SOLIDUS,Lf.REVERSE_SOLIDUS),Object(w.a)(Sf,Lf.SOLIDUS,Lf.SOLIDUS),Object(w.a)(Sf,Lf.LATIN_SMALL_LETTER_B,Lf.BACKSPACE),Object(w.a)(Sf,Lf.LATIN_SMALL_LETTER_F,Lf.FORM_FEED),Object(w.a)(Sf,Lf.LATIN_SMALL_LETTER_N,Lf.NEWLINE),Object(w.a)(Sf,Lf.LATIN_SMALL_LETTER_R,Lf.CARRIAGE_RETURN),Object(w.a)(Sf,Lf.LATIN_SMALL_LETTER_T,Lf.TAB),Sf),Pf=function(){function e(){Object(Ls.a)(this,e),this.decoder=new TextDecoder("utf-8"),this.strings=[],this.byteLength=0}return Object(Ss.a)(e,[{key:"appendChar",value:function(e){this.strings.push(String.fromCharCode(e)),this.byteLength+=1}},{key:"appendBuf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;this.strings.push(this.decoder.decode(e.subarray(t,n))),this.byteLength+=n-t}},{key:"reset",value:function(){this.strings=[],this.byteLength=0}},{key:"toString",value:function(){return this.strings.join("")}}]),e}(),Rf=function(){function e(t){Object(Ls.a)(this,e),this.decoder=new TextDecoder("utf-8"),this.bufferOffset=0,this.string="",this.byteLength=0,this.buffer=new Uint8Array(t)}return Object(Ss.a)(e,[{key:"appendChar",value:function(e){this.bufferOffset>=this.buffer.length&&this.flushStringBuffer(),this.buffer[this.bufferOffset++]=e,this.byteLength+=1}},{key:"appendBuf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=n-t;this.bufferOffset+r>this.buffer.length&&this.flushStringBuffer(),this.buffer.set(e.subarray(t,n),this.bufferOffset),this.bufferOffset+=r,this.byteLength+=r}},{key:"flushStringBuffer",value:function(){this.string+=this.decoder.decode(this.buffer.subarray(0,this.bufferOffset)),this.bufferOffset=0}},{key:"reset",value:function(){this.string="",this.bufferOffset=0,this.byteLength=0}},{key:"toString",value:function(){return this.flushStringBuffer(),this.string}}]),e}();!function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"}(Nf||(Nf={}));var Mf,Ff=Nf;function Df(e){return["START","ENDED","ERROR","TRUE1","TRUE2","TRUE3","FALSE1","FALSE2","FALSE3","FALSE4","NULL1","NULL2","NULL3","STRING_DEFAULT","STRING_AFTER_BACKSLASH","STRING_UNICODE_DIGIT_1","STRING_UNICODE_DIGIT_2","STRING_UNICODE_DIGIT_3","STRING_UNICODE_DIGIT_4","STRING_INCOMPLETE_CHAR","NUMBER_AFTER_INITIAL_MINUS","NUMBER_AFTER_INITIAL_ZERO","NUMBER_AFTER_INITIAL_NON_ZERO","NUMBER_AFTER_FULL_STOP","NUMBER_AFTER_DECIMAL","NUMBER_AFTER_E","NUMBER_AFTER_E_AND_SIGN","NUMBER_AFTER_E_AND_DIGIT","SEPARATOR","BOM_OR_START","BOM"][e]}!function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"}(Mf||(Mf={}));var Bf,Uf,zf={stringBufferSize:0,numberBufferSize:0,separator:void 0,emitPartialTokens:!1},Gf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),r=t.call(this,e),Object.setPrototypeOf(Object(_f.a)(r),n.prototype),r}return Object(Ss.a)(n)}(Object(Is.a)(Error)),Wf=function(){function e(t){Object(Ls.a)(this,e),this.state=Mf.BOM_OR_START,this.bomIndex=0,this.separatorIndex=0,this.bytes_remaining=0,this.bytes_in_sequence=0,this.char_split_buffer=new Uint8Array(4),this.encoder=new TextEncoder,this.offset=-1,t=Object.assign(Object.assign({},zf),t),this.emitPartialTokens=!0===t.emitPartialTokens,this.bufferedString=t.stringBufferSize&&t.stringBufferSize>4?new Rf(t.stringBufferSize):new Pf,this.bufferedNumber=t.numberBufferSize&&t.numberBufferSize>0?new Rf(t.numberBufferSize):new Pf,this.separator=t.separator,this.separatorBytes=t.separator?this.encoder.encode(t.separator):void 0}return Object(Ss.a)(e,[{key:"isEnded",get:function(){return this.state===Mf.ENDED}},{key:"write",value:function(e){try{var t;if(e instanceof Uint8Array)t=e;else if("string"===typeof e)t=this.encoder.encode(e);else if(Array.isArray(e))t=Uint8Array.from(e);else{if(!ArrayBuffer.isView(e))throw new TypeError("Unexpected type. The `write` function only accepts Arrays, TypedArrays and Strings.");t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}for(var n=0;n<t.length;n+=1){var r=t[n];switch(this.state){case Mf.BOM_OR_START:if(e instanceof Uint8Array&&239===r){this.bom=[239,187,191],this.bomIndex+=1,this.state=Mf.BOM;continue}if(e instanceof Uint16Array){if(254===r){this.bom=[254,255],this.bomIndex+=1,this.state=Mf.BOM;continue}if(255===r){this.bom=[255,254],this.bomIndex+=1,this.state=Mf.BOM;continue}}if(e instanceof Uint32Array){if(0===r){this.bom=[0,0,254,255],this.bomIndex+=1,this.state=Mf.BOM;continue}if(255===r){this.bom=[255,254,0,0],this.bomIndex+=1,this.state=Mf.BOM;continue}}case Mf.START:if(this.offset+=1,this.separatorBytes&&r===this.separatorBytes[0]){if(1===this.separatorBytes.length){this.state=Mf.START,this.onToken({token:Ff.SEPARATOR,value:this.separator,offset:this.offset+this.separatorBytes.length-1});continue}this.state=Mf.SEPARATOR;continue}if(r===Lf.SPACE||r===Lf.NEWLINE||r===Lf.CARRIAGE_RETURN||r===Lf.TAB)continue;if(r===Lf.LEFT_CURLY_BRACKET){this.onToken({token:Ff.LEFT_BRACE,value:"{",offset:this.offset});continue}if(r===Lf.RIGHT_CURLY_BRACKET){this.onToken({token:Ff.RIGHT_BRACE,value:"}",offset:this.offset});continue}if(r===Lf.LEFT_SQUARE_BRACKET){this.onToken({token:Ff.LEFT_BRACKET,value:"[",offset:this.offset});continue}if(r===Lf.RIGHT_SQUARE_BRACKET){this.onToken({token:Ff.RIGHT_BRACKET,value:"]",offset:this.offset});continue}if(r===Lf.COLON){this.onToken({token:Ff.COLON,value:":",offset:this.offset});continue}if(r===Lf.COMMA){this.onToken({token:Ff.COMMA,value:",",offset:this.offset});continue}if(r===Lf.LATIN_SMALL_LETTER_T){this.state=Mf.TRUE1;continue}if(r===Lf.LATIN_SMALL_LETTER_F){this.state=Mf.FALSE1;continue}if(r===Lf.LATIN_SMALL_LETTER_N){this.state=Mf.NULL1;continue}if(r===Lf.QUOTATION_MARK){this.bufferedString.reset(),this.state=Mf.STRING_DEFAULT;continue}if(r>=Lf.DIGIT_ONE&&r<=Lf.DIGIT_NINE){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_INITIAL_NON_ZERO;continue}if(r===Lf.DIGIT_ZERO){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_INITIAL_ZERO;continue}if(r===Lf.HYPHEN_MINUS){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_INITIAL_MINUS;continue}break;case Mf.STRING_DEFAULT:if(r===Lf.QUOTATION_MARK){var o=this.bufferedString.toString();this.state=Mf.START,this.onToken({token:Ff.STRING,value:o,offset:this.offset}),this.offset+=this.bufferedString.byteLength+1;continue}if(r===Lf.REVERSE_SOLIDUS){this.state=Mf.STRING_AFTER_BACKSLASH;continue}if(r>=128){if(this.bytes_in_sequence=r>=194&&r<=223?2:r<=239?3:4,this.bytes_in_sequence<=t.length-n){this.bufferedString.appendBuf(t,n,n+this.bytes_in_sequence),n+=this.bytes_in_sequence-1;continue}this.bytes_remaining=n+this.bytes_in_sequence-t.length,this.char_split_buffer.set(t.subarray(n)),n=t.length-1,this.state=Mf.STRING_INCOMPLETE_CHAR;continue}if(r>=Lf.SPACE){this.bufferedString.appendChar(r);continue}break;case Mf.STRING_INCOMPLETE_CHAR:this.char_split_buffer.set(t.subarray(n,n+this.bytes_remaining),this.bytes_in_sequence-this.bytes_remaining),this.bufferedString.appendBuf(this.char_split_buffer,0,this.bytes_in_sequence),n=this.bytes_remaining-1,this.state=Mf.STRING_DEFAULT;continue;case Mf.STRING_AFTER_BACKSLASH:var i=Af[r];if(i){this.bufferedString.appendChar(i),this.state=Mf.STRING_DEFAULT;continue}if(r===Lf.LATIN_SMALL_LETTER_U){this.unicode="",this.state=Mf.STRING_UNICODE_DIGIT_1;continue}break;case Mf.STRING_UNICODE_DIGIT_1:case Mf.STRING_UNICODE_DIGIT_2:case Mf.STRING_UNICODE_DIGIT_3:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE||r>=Lf.LATIN_CAPITAL_LETTER_A&&r<=Lf.LATIN_CAPITAL_LETTER_F||r>=Lf.LATIN_SMALL_LETTER_A&&r<=Lf.LATIN_SMALL_LETTER_F){this.unicode+=String.fromCharCode(r),this.state+=1;continue}break;case Mf.STRING_UNICODE_DIGIT_4:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE||r>=Lf.LATIN_CAPITAL_LETTER_A&&r<=Lf.LATIN_CAPITAL_LETTER_F||r>=Lf.LATIN_SMALL_LETTER_A&&r<=Lf.LATIN_SMALL_LETTER_F){var a=parseInt(this.unicode+String.fromCharCode(r),16);void 0===this.highSurrogate?a>=55296&&a<=56319?this.highSurrogate=a:this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(a))):(a>=56320&&a<=57343?this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(this.highSurrogate,a))):this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.state=Mf.STRING_DEFAULT;continue}break;case Mf.NUMBER_AFTER_INITIAL_MINUS:if(r===Lf.DIGIT_ZERO){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_INITIAL_ZERO;continue}if(r>=Lf.DIGIT_ONE&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_INITIAL_NON_ZERO;continue}break;case Mf.NUMBER_AFTER_INITIAL_ZERO:if(r===Lf.FULL_STOP){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_FULL_STOP;continue}if(r===Lf.LATIN_SMALL_LETTER_E||r===Lf.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_E;continue}n-=1,this.state=Mf.START,this.emitNumber();continue;case Mf.NUMBER_AFTER_INITIAL_NON_ZERO:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r);continue}if(r===Lf.FULL_STOP){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_FULL_STOP;continue}if(r===Lf.LATIN_SMALL_LETTER_E||r===Lf.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_E;continue}n-=1,this.state=Mf.START,this.emitNumber();continue;case Mf.NUMBER_AFTER_FULL_STOP:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_DECIMAL;continue}break;case Mf.NUMBER_AFTER_DECIMAL:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r);continue}if(r===Lf.LATIN_SMALL_LETTER_E||r===Lf.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_E;continue}n-=1,this.state=Mf.START,this.emitNumber();continue;case Mf.NUMBER_AFTER_E:if(r===Lf.PLUS_SIGN||r===Lf.HYPHEN_MINUS){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_E_AND_SIGN;continue}case Mf.NUMBER_AFTER_E_AND_SIGN:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r),this.state=Mf.NUMBER_AFTER_E_AND_DIGIT;continue}break;case Mf.NUMBER_AFTER_E_AND_DIGIT:if(r>=Lf.DIGIT_ZERO&&r<=Lf.DIGIT_NINE){this.bufferedNumber.appendChar(r);continue}n-=1,this.state=Mf.START,this.emitNumber();continue;case Mf.TRUE1:if(r===Lf.LATIN_SMALL_LETTER_R){this.state=Mf.TRUE2;continue}break;case Mf.TRUE2:if(r===Lf.LATIN_SMALL_LETTER_U){this.state=Mf.TRUE3;continue}break;case Mf.TRUE3:if(r===Lf.LATIN_SMALL_LETTER_E){this.state=Mf.START,this.onToken({token:Ff.TRUE,value:!0,offset:this.offset}),this.offset+=3;continue}break;case Mf.FALSE1:if(r===Lf.LATIN_SMALL_LETTER_A){this.state=Mf.FALSE2;continue}break;case Mf.FALSE2:if(r===Lf.LATIN_SMALL_LETTER_L){this.state=Mf.FALSE3;continue}break;case Mf.FALSE3:if(r===Lf.LATIN_SMALL_LETTER_S){this.state=Mf.FALSE4;continue}break;case Mf.FALSE4:if(r===Lf.LATIN_SMALL_LETTER_E){this.state=Mf.START,this.onToken({token:Ff.FALSE,value:!1,offset:this.offset}),this.offset+=4;continue}break;case Mf.NULL1:if(r===Lf.LATIN_SMALL_LETTER_U){this.state=Mf.NULL2;continue}break;case Mf.NULL2:if(r===Lf.LATIN_SMALL_LETTER_L){this.state=Mf.NULL3;continue}break;case Mf.NULL3:if(r===Lf.LATIN_SMALL_LETTER_L){this.state=Mf.START,this.onToken({token:Ff.NULL,value:null,offset:this.offset}),this.offset+=3;continue}break;case Mf.SEPARATOR:if(this.separatorIndex+=1,!this.separatorBytes||r!==this.separatorBytes[this.separatorIndex])break;this.separatorIndex===this.separatorBytes.length-1&&(this.state=Mf.START,this.onToken({token:Ff.SEPARATOR,value:this.separator,offset:this.offset+this.separatorIndex}),this.separatorIndex=0);continue;case Mf.BOM:if(r===this.bom[this.bomIndex]){if(this.bomIndex===this.bom.length-1){this.state=Mf.BOM_OR_START,this.bom=void 0,this.bomIndex=0;continue}this.bomIndex+=1;continue}break;case Mf.ENDED:if(r===Lf.SPACE||r===Lf.NEWLINE||r===Lf.CARRIAGE_RETURN||r===Lf.TAB)continue}throw new Gf('Unexpected "'.concat(String.fromCharCode(r),'" at position "').concat(n,'" in state ').concat(Df(this.state)))}if(this.emitPartialTokens)switch(this.state){case Mf.TRUE1:case Mf.TRUE2:case Mf.TRUE3:this.onToken({token:Ff.TRUE,value:!0,offset:this.offset,partial:!0});break;case Mf.FALSE1:case Mf.FALSE2:case Mf.FALSE3:case Mf.FALSE4:this.onToken({token:Ff.FALSE,value:!1,offset:this.offset,partial:!0});break;case Mf.NULL1:case Mf.NULL2:case Mf.NULL3:this.onToken({token:Ff.NULL,value:null,offset:this.offset,partial:!0});break;case Mf.STRING_DEFAULT:var c=this.bufferedString.toString();this.onToken({token:Ff.STRING,value:c,offset:this.offset,partial:!0});break;case Mf.NUMBER_AFTER_INITIAL_ZERO:case Mf.NUMBER_AFTER_INITIAL_NON_ZERO:case Mf.NUMBER_AFTER_DECIMAL:case Mf.NUMBER_AFTER_E_AND_DIGIT:try{this.onToken({token:Ff.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset,partial:!0})}catch(u){}}}catch(u){this.error(u)}}},{key:"emitNumber",value:function(){this.onToken({token:Ff.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset}),this.offset+=this.bufferedNumber.byteLength-1}},{key:"parseNumber",value:function(e){return Number(e)}},{key:"error",value:function(e){this.state!==Mf.ENDED&&(this.state=Mf.ERROR),this.onError(e)}},{key:"end",value:function(){switch(this.state){case Mf.NUMBER_AFTER_INITIAL_ZERO:case Mf.NUMBER_AFTER_INITIAL_NON_ZERO:case Mf.NUMBER_AFTER_DECIMAL:case Mf.NUMBER_AFTER_E_AND_DIGIT:this.state=Mf.ENDED,this.emitNumber(),this.onEnd();break;case Mf.BOM_OR_START:case Mf.START:case Mf.ERROR:case Mf.SEPARATOR:this.state=Mf.ENDED,this.onEnd();break;default:this.error(new Gf("Tokenizer ended in the middle of a token (state: ".concat(Df(this.state),"). Either not all the data was received or the data was invalid.")))}}},{key:"onToken",value:function(e){throw new Gf('Can\'t emit tokens before the "onToken" callback has been set up.')}},{key:"onError",value:function(e){throw e}},{key:"onEnd",value:function(){}}]),e}();function Hf(e){return["VALUE","KEY","COLON","COMMA","ENDED","ERROR","SEPARATOR"][e]}!function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"}(Bf||(Bf={})),function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"}(Uf||(Uf={}));var Kf={paths:void 0,keepStack:!0,separator:void 0,emitPartialValues:!1},Vf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),r=t.call(this,e),Object.setPrototypeOf(Object(_f.a)(r),n.prototype),r}return Object(Ss.a)(n)}(Object(Is.a)(Error)),qf=function(){function e(t){Object(Ls.a)(this,e),this.state=Uf.VALUE,this.mode=void 0,this.key=void 0,this.value=void 0,this.stack=[],(t=Object.assign(Object.assign({},Kf),t)).paths&&(this.paths=t.paths.map((function(e){if(void 0!==e&&"$*"!==e){if(!e.startsWith("$"))throw new Vf('Invalid selector "'.concat(e,'". Should start with "$".'));var t=e.split(".").slice(1);if(t.includes(""))throw new Vf('Invalid selector "'.concat(e,'". ".." syntax not supported.'));return t}}))),this.keepStack=t.keepStack||!1,this.separator=t.separator,t.emitPartialValues||(this.emitPartial=function(){})}return Object(Ss.a)(e,[{key:"shouldEmit",value:function(){var e=this;return!this.paths||this.paths.some((function(t){var n;if(void 0===t)return!0;if(t.length!==e.stack.length)return!1;for(var r=0;r<t.length-1;r++){var o=t[r],i=e.stack[r+1].key;if("*"!==o&&o!==i)return!1}var a=t[t.length-1];return"*"===a||a===(null===(n=e.key)||void 0===n?void 0:n.toString())}))}},{key:"push",value:function(){this.stack.push({key:this.key,value:this.value,mode:this.mode,emit:this.shouldEmit()})}},{key:"pop",value:function(){var e,t=this.value,n=this.stack.pop();this.key=n.key,this.value=n.value,this.mode=n.mode,e=n.emit,this.state=void 0!==this.mode?Uf.COMMA:Uf.VALUE,this.emit(t,e)}},{key:"emit",value:function(e,t){!this.keepStack&&this.value&&this.stack.every((function(e){return!e.emit}))&&delete this.value[this.key],t&&this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack}),0===this.stack.length&&(this.separator?this.state=Uf.SEPARATOR:void 0===this.separator&&this.end())}},{key:"emitPartial",value:function(e){this.shouldEmit()&&(this.state!==Uf.KEY?this.onValue({value:e,key:this.key,parent:this.value,stack:this.stack,partial:!0}):this.onValue({value:void 0,key:e,parent:this.value,stack:this.stack,partial:!0}))}},{key:"isEnded",get:function(){return this.state===Uf.ENDED}},{key:"write",value:function(e){var t=e.token,n=e.value,r=e.partial;try{if(r)return void this.emitPartial(n);if(this.state===Uf.VALUE){if(t===Ff.STRING||t===Ff.NUMBER||t===Ff.TRUE||t===Ff.FALSE||t===Ff.NULL)return this.mode===Bf.OBJECT?(this.value[this.key]=n,this.state=Uf.COMMA):this.mode===Bf.ARRAY&&(this.value.push(n),this.state=Uf.COMMA),void this.emit(n,this.shouldEmit());if(t===Ff.LEFT_BRACE){if(this.push(),this.mode===Bf.OBJECT)this.value=this.value[this.key]={};else if(this.mode===Bf.ARRAY){var o={};this.value.push(o),this.value=o}else this.value={};return this.mode=Bf.OBJECT,this.state=Uf.KEY,this.key=void 0,void this.emitPartial()}if(t===Ff.LEFT_BRACKET){if(this.push(),this.mode===Bf.OBJECT)this.value=this.value[this.key]=[];else if(this.mode===Bf.ARRAY){var i=[];this.value.push(i),this.value=i}else this.value=[];return this.mode=Bf.ARRAY,this.state=Uf.VALUE,this.key=0,void this.emitPartial()}if(this.mode===Bf.ARRAY&&t===Ff.RIGHT_BRACKET&&0===this.value.length)return void this.pop()}if(this.state===Uf.KEY){if(t===Ff.STRING)return this.key=n,this.state=Uf.COLON,void this.emitPartial();if(t===Ff.RIGHT_BRACE&&0===Object.keys(this.value).length)return void this.pop()}if(this.state===Uf.COLON&&t===Ff.COLON)return void(this.state=Uf.VALUE);if(this.state===Uf.COMMA){if(t===Ff.COMMA){if(this.mode===Bf.ARRAY)return this.state=Uf.VALUE,void(this.key+=1);if(this.mode===Bf.OBJECT)return void(this.state=Uf.KEY)}if(t===Ff.RIGHT_BRACE&&this.mode===Bf.OBJECT||t===Ff.RIGHT_BRACKET&&this.mode===Bf.ARRAY)return void this.pop()}if(this.state===Uf.SEPARATOR&&t===Ff.SEPARATOR&&n===this.separator)return void(this.state=Uf.VALUE);throw new Vf("Unexpected ".concat(Ff[t]," (").concat(JSON.stringify(n),") in state ").concat(Hf(this.state)))}catch(a){this.error(a)}}},{key:"error",value:function(e){this.state!==Uf.ENDED&&(this.state=Uf.ERROR),this.onError(e)}},{key:"end",value:function(){this.state!==Uf.VALUE&&this.state!==Uf.SEPARATOR||this.stack.length>0?this.error(new Error("Parser ended in mid-parsing (state: ".concat(Hf(this.state),"). Either not all the data was received or the data was invalid."))):(this.state=Uf.ENDED,this.onEnd())}},{key:"onValue",value:function(e){throw new Vf('Can\'t emit data before the "onValue" callback has been set up.')}},{key:"onError",value:function(e){throw e}},{key:"onEnd",value:function(){}}]),e}(),$f=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(Ls.a)(this,e),this.tokenizer=new Wf(n),this.tokenParser=new qf(n),this.tokenizer.onToken=this.tokenParser.write.bind(this.tokenParser),this.tokenizer.onEnd=function(){t.tokenParser.isEnded||t.tokenParser.end()},this.tokenParser.onError=this.tokenizer.error.bind(this.tokenizer),this.tokenParser.onEnd=function(){t.tokenizer.isEnded||t.tokenizer.end()}}return Object(Ss.a)(e,[{key:"isEnded",get:function(){return this.tokenizer.isEnded&&this.tokenParser.isEnded}},{key:"write",value:function(e){this.tokenizer.write(e)}},{key:"end",value:function(){this.tokenizer.end()}},{key:"onToken",set:function(e){var t=this;this.tokenizer.onToken=function(n){e(n),t.tokenParser.write(n)}}},{key:"onValue",set:function(e){this.tokenParser.onValue=e}},{key:"onError",set:function(e){this.tokenizer.onError=e}},{key:"onEnd",set:function(e){var t=this;this.tokenParser.onEnd=function(){t.tokenizer.isEnded||t.tokenizer.end(),e.call(t.tokenParser)}}}]),e}();function Yf(e){var t=e.value,n=e.key,r=e.parent,o=e.stack,i=e.partial;return{value:t,key:n,parent:Xf(r),stack:Xf(o),partial:i}}function Xf(e){return"object"!==typeof e||Array.isArray(e)&&0===e.filter((function(e){return e})).length?e:JSON.parse(JSON.stringify(e))}var Qf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).onValue=function(e){return r.controller.enqueue(Yf(e))},r.onError=function(e){return r.controller.error(e)},r.onEnd=function(){return r.controller.terminate()},r}return Object(Ss.a)(n,[{key:"start",value:function(e){this.controller=e}},{key:"transform",value:function(e){this.write(e)}},{key:"flush",value:function(){this.end()}}]),n}($f),Jf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e,r,o){Object(Ls.a)(this,n);var i=new Qf(e);return t.call(this,i,r,o)}return Object(Ss.a)(n)}(TransformStream),Zf=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).onToken=function(e){return r.controller.enqueue(e)},r.onError=function(e){return r.controller.error(e)},r.onEnd=function(){return r.controller.terminate()},r}return Object(Ss.a)(n,[{key:"start",value:function(e){this.controller=e}},{key:"transform",value:function(e){this.write(e)}},{key:"flush",value:function(){this.end()}}]),n}(Wf),ed=(TransformStream,function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).onValue=function(e){return r.controller.enqueue(Yf(e))},r.onError=function(e){return r.controller.error(e)},r.onEnd=function(){return r.controller.terminate()},r}return Object(Ss.a)(n,[{key:"start",value:function(e){this.controller=e}},{key:"transform",value:function(e){this.write(e)}},{key:"flush",value:function(){this.end()}}]),n}(qf)),td=(TransformStream,n(6));function nd(){nd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var rd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.restore,n=e.onBusyChanged,o=Object(r.useState)("ready"),i=Object(ve.a)(o,2),a=i[0],c=i[1],l=Object(r.useState)(null),s=Object(ve.a)(l,2),f=s[0],d=s[1],p=Object(r.useState)(0),h=Object(ve.a)(p,2),v=h[0],m=h[1],b=Object(r.useRef)(null),y=Object(r.useRef)(!1),g=Object(r.useCallback)((function(e){if(c(e),n){var t="summarizing"===e||"importing"===e;y.current!==t&&(y.current=t,n(t))}}),[n]),w=Object(r.useMemo)((function(){return Object(u.a)(nd().mark((function e(){var t;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b.current){e.next=15;break}return e.prev=1,t=b.current.cancel(),b.current=null,e.next=6,t;case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:return e.prev=10,b.current=null,g("aborted"),Object(A.f)("import aborted"),e.finish(10);case 15:case"end":return e.stop()}}),e,null,[[1,8,10,15]])})))}),[g]);Object(r.useEffect)((function(){return function(){w()}}),[w]);var O=Object(r.useMemo)((function(){return function(){var e=Object(u.a)(nd().mark((function e(t,n){var r,o,i,a,c,l,s,f,p,h,v,y,O,x,j,E,S,C,T,_;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.action,i="restore"===r||"summarize-restore"===r,a=(o="summarize-transfer"===r||"summarize-restore"===r)?["summarizing","summarized"]:["importing","imported"],c=Object(ve.a)(a,2),l=c[0],s=c[1],e.prev=4,!b.current){e.next=8;break}return e.next=8,w();case 8:if("string"!==typeof t){e.next=11;break}return g(t),e.abrupt("return");case 11:if(t){e.next=14;break}return g("error-no-file"),e.abrupt("return");case 14:f=0,p=0,v=new Jf({stringBufferSize:void 0,paths:["$.format","$.collections.*","$.sessions.*","$.windows.*","$.tabs.*",i?"$.history.*":""].filter(Boolean),keepStack:!1}),y=t.stream().pipeThrough(v),b.current=y.getReader(),d(null),m(0),g(l),O=function(){var e=Object(u.a)(nd().mark((function e(){var t,n,a,c,u,l,s,f,p,h,v;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=[],a=null;case 3:if(!(b.current&&t.length+n.length<8)){e.next=15;break}return e.next=6,b.current.read();case 6:if(f=e.sent,p=f.done,h=f.value,!p&&b.current){e.next=11;break}return e.abrupt("break",15);case 11:"collections"===(v=null===(c=h.stack)||void 0===c||null===(u=c[1])||void 0===u?void 0:u.key)?t.push(o?null:id(h.value,"restore"===r)):"sessions"===v&&"saved"===(null===(l=h.value)||void 0===l?void 0:l.type)?t.push(o?null:od(h.value,"restore"===r)):i&&"history"===v?n.push("summarize-restore"===r?null:cd(h.value)):i&&"sessions"===v&&"previous"===(null===(s=h.value)||void 0===s?void 0:s.type)?n.push("summarize-restore"===r?null:ad(h.value)):"windows"===v?(a=a||ud()).windows.push(h.value):"tabs"===v?(a=a||ud([ld()])).windows[0].tabs.push(h.value):"format"===h.key&&h.value.startsWith("nxs.json.v")&&(d(h.value),Object(A.a)('import detected format "'.concat(h.value,'"'))),e.next=3;break;case 15:return e.abrupt("return",{collections:a?[od(a,"restore"===r)]:t,events:n});case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();case 23:if(!b.current){e.next=79;break}return Object(k.b)(),e.next=27,O();case 27:if(x=e.sent,j=x.collections,E=x.events,b.current){e.next=32;break}return e.abrupt("break",79);case 32:if(S=j.length+E.length,!j.length){e.next=46;break}if("transfer"!==r){e.next=39;break}return e.next=37,Object(De.i)(j);case 37:e.next=44;break;case 39:if("restore"!==r){e.next=44;break}return e.next=42,Object(De.a)(j);case 42:C=e.sent,p+=j.length-C;case 44:if(b.current){e.next=46;break}return e.abrupt("break",79);case 46:if(!E.length){e.next=72;break}if("restore"!==r){e.next=72;break}return e.next=50,Object(Un.b)();case 50:if(T=e.sent,_=T.settings,b.current){e.next=54;break}return e.abrupt("break",79);case 54:if(e.t0=h,e.t0){e.next=65;break}return e.next=58,_.get("scheduledSnapshotRemoveOlderThan");case 58:return e.t1=e.sent,e.t2=L.f,e.t3=e.t1*e.t2,e.next=63,_.get("scheduledSnapshotKeepAtMost");case 63:e.t4=e.sent,e.t0={maxAge:e.t3,maxCount:e.t4};case 65:if(h=e.t0,b.current){e.next=68;break}return e.abrupt("break",79);case 68:return e.next=70,Object(Be.m)(E,h);case 70:if(b.current){e.next=72;break}return e.abrupt("break",79);case 72:if(S&&m(f+=S),8===S){e.next=75;break}return e.abrupt("break",79);case 75:return e.next=77,I();case 77:e.next=23;break;case 79:if(!b.current){e.next=84;break}try{b.current.cancel()}catch(P){}return b.current=null,g(s),e.abrupt("return",{foundSetCount:f,rejectedCollectionCount:p});case 84:e.next=92;break;case 86:return e.prev=86,e.t5=e.catch(4),e.next=90,w();case 90:g(o?"error-summarizing":"error-creating"),Object(N.e)(e.t5,{prefix:"Error importing"});case 92:case"end":return e.stop()}}),e,null,[[4,86]])})));return function(t,n){return e.apply(this,arguments)}}()}),[w,g]);return{summarizeFile:Object(r.useCallback)((function(e){return O(e,{action:t?"summarize-restore":"summarize-transfer"})}),[O,t]),importFile:Object(r.useCallback)((function(e){return O(e,{action:t?"restore":"transfer"})}),[O,t]),abort:w,status:a,busy:"summarizing"===a||"importing"===a,format:f,foundSetCount:v}};function od(e,t){var n=Rs(e.created),r=Rs(e.modified,n),o=t?!e.gid||e.gid.length>40?null!=e.id?Fs(e.id,"saved"):Object(oo.c)():e.gid:Object(oo.c)(),i=e.windows||(e.tabs?[ld(e.tabs)]:[]),a={id:o,sourceType:t?"v3-restore":"transfer",clientId:Un.a.id,created:n,updated:r,touched:r,pinned:0,folders:i.map((function(e){return As(e)}))};return t?e.gid&&e.gid.length>40&&(a.sourceId=e.gid):(e.gid&&(a.sourceId=e.gid),e.name&&(a.sourceTitle=e.name)),e.name&&(a.title=e.name),Object(P.y)(a,!0)}function id(e,t){var n=+(Object(L.k)(e.created)||Object(L.p)()),r=Object(L.k)(e.updated),o=r&&+r>n?+r:n,i=Object(L.k)(e.touched),a=i&&+i>o?+i:o,c=t&&e.id,u=Object(l.a)(Object(l.a)({pinned:0},e),{},{created:n,updated:o,touched:a,clientId:Un.a.id,folders:(e.folders||[]).filter((function(e){return!e.deleted})).map((function(e){return Object(td.a)(e,{preserveId:!!c})}))});return c||(u.id=Object(oo.c)()),t||(u.sourceType="transfer",u.sourceId=e.id,u.pinned=0,e.title&&(u.sourceTitle=e.title)),Object(P.y)(u,!0)}function ad(e){var t,n=Rs(e.created),r=Rs(e.generated)||n||Object(L.m)(),o=e.windows||(e.tabs?[ld(e.tabs)]:[]),i={id:r,clientId:null!==(t=Un.a.id)&&void 0!==t?t:"",type:"browser-closed",windows:o.map((function(e){return Ps(e)}))};return n&&(i.created=n),i}function cd(e){var t,n={id:e.id||Object(L.m)(),clientId:null!==(t=Un.a.id)&&void 0!==t?t:"",type:e.type,windows:e.windows||[]};return e.instant&&(n.instant=e.instant),e.created&&(n.created=e.created),e.updated&&(n.updated=e.updated),n}function ud(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(new Date).toJSON();return{created:t,modified:t,windows:e}}function ld(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{focused:!1,alwaysOnTop:!1,incognito:e.some((function(e){return e.incognito})),tabs:e}}function sd(){sd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var fd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.maxFileSize,n=e.throttleInterval,o=void 0===n?600:n,i=e.allowLargeFiles,a=Object(f.b)(),c=Vt().open,l=Object(r.useState)("ready"),s=Object(ve.a)(l,2),d=s[0],p=s[1],v=Object(r.useState)(""),m=Object(ve.a)(v,2),y=m[0],g=m[1],w=Object(r.useState)(""),O=Object(ve.a)(w,2),x=O[0],j=O[1],E=Object(r.useState)(null),k=Object(ve.a)(E,2),S=k[0],L=k[1],C=Object(r.useState)("freeform"),T=Object(ve.a)(C,2),I=T[0],_=T[1],P=Object(r.useState)(null),R=Object(ve.a)(P,2),M=R[0],F=R[1],D=Object(r.useState)(0),B=Object(ve.a)(D,2),U=B[0],z=B[1],G=Object(r.useState)(0),W=Object(ve.a)(G,2),H=W[0],K=W[1],V=Object(r.useState)(0),q=Object(ve.a)(V,2),$=q[0],Y=q[1],X=Object(r.useState)(0),Q=Object(ve.a)(X,2),J=Q[0],Z=Q[1],ee=Object(r.useCallback)((function(e){F(e);var t=function(e){return e?e.reduce((function(e,t){var n=t.groups;return e.setCount++,n.forEach((function(t){var n=t.units;e.groupCount++,n.forEach((function(){e.unitCount++}))})),e}),{setCount:0,groupCount:0,unitCount:0}):of}(e),n=t.setCount,r=t.groupCount,o=t.unitCount;z(n),K(r),Y(o)}),[]),te=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errorMessage,r=t.resetFormat;p(e),g(n||""),r&&_("freeform")}),[]),ne=Object(r.useCallback)((function(e){j(""),L(e)}),[]),re=Object(r.useCallback)((function(e){j(e),L(null)}),[]),oe=rd(),ie=oe.summarizeFile,ae=oe.importFile,ce=oe.abort,ue=oe.status,le=oe.foundSetCount,se=Object(r.useCallback)((function(e,t){try{if(t)_(t),ee(rf(e,t));else{var n=function(e){if(e.trim()){var t=Ve("pre-split"),n=e.split("\n");t.log();var r,o=Ve("detect format"),i=Object(Nr.a)(tf);try{var a=function(){var t=r.value;try{var i,a=t.preParse({text:e,lines:n});if("plaintext-url-spaced-groups"===t.id){if(1===a.length&&1===(null===(i=pf(a[0],["groups"]))||void 0===i?void 0:i.length))return"continue"}else if("plaintext-title-url"===t.id){var c=a.slice(0,6);if(c.filter((function(e){var t=e.title,n=e.url;return!t||!Object(pr.k)(t)||t===n})).length/c.length<.5)return"continue"}return{v:{id:t.id,parse:function(){return t.parse(a)}}}}catch(u){}finally{o.log()}};for(i.s();!(r=i.n()).done;){var c=a();if("continue"!==c&&"object"===typeof c)return c.v}}catch(u){i.e(u)}finally{i.f()}}}(e);n?(_(n.id),ee(n.parse())):(_("freeform"),ee(rf(e,"freeform")))}te("parsed")}catch(r){ee(null),te("error-parsing",{errorMessage:(null===r||void 0===r?void 0:r.message)||r||"Parse error"}),Object(A.c)(r)}}),[ee,te]),fe=Object(r.useCallback)(function(){var e=Object(u.a)(sd().mark((function e(n){var r,o,a,c,u,l,s,f,d,p,h=arguments;return sd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(o=h.length>1&&void 0!==h[1]?h[1]:{}).formatId,c=o.isMultipleFiles,u=o.isInvalidFileType,l=o.isEmptyFile,s=o.allowLargeFile,re(""),!c){e.next=5;break}return te("error-multiple-files",{resetFormat:!a}),e.abrupt("return");case 5:if(!u){e.next=8;break}return te("error-invalid-file-type",{resetFormat:!a}),e.abrupt("return");case 8:if(!l){e.next=11;break}return te("error-empty-file",{resetFormat:!a}),e.abrupt("return");case 11:if(n){e.next=14;break}return te("error-no-file",{resetFormat:!a}),e.abrupt("return");case 14:if(!(t&&(null!==(r=n.size)&&void 0!==r?r:0)>t)){e.next=27;break}if(!i||!s||a&&"json"!==a){e.next=24;break}return ne(n),ee(null),_("json"),e.next=21,ie(n);case 21:return(f=e.sent)&&Z(f.foundSetCount),e.abrupt("return");case 24:return d="".concat(Object(If.c)(n.size)," exceeds max file size (").concat(Object(If.c)(t),")"),te("error-max-file-size-exceeded",{errorMessage:d,resetFormat:!a}),e.abrupt("return");case 27:return te("parsing"),p="",e.prev=29,e.next=32,Tf(n);case 32:p=e.sent,e.next=39;break;case 35:return e.prev=35,e.t0=e.catch(29),e.t0 instanceof Cf?te("error-not-a-text-file",{resetFormat:!a}):te("error-reading-file",{errorMessage:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||e.t0||"Failed to read file",resetFormat:!a}),e.abrupt("return");case 39:re("application/json"===n.type?dd(p):p),se(p,a);case 41:case"end":return e.stop()}}),e,null,[[29,35]])})));return function(t){return e.apply(this,arguments)}}(),[se,t,te,re,ee,ie,i,ne]),de=Object(r.useMemo)((function(){return h()(se,o,{leading:!0,trailing:!0})}),[se,o]),pe=Object(r.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.formatId,r=t.throttle;re(e),te("throttling"),(r?de:se)(e,n)}),[re,te,de,se]),he=S?le:U,me=Object(r.useCallback)((function(){var e={count:$,includeCount:!0},t=ht.a.link(e);if(!$||H<2)return Object(bt.d)(t);var n={count:H,includeCount:!0},r=ht.a.folder(n);return Object(bt.d)("".concat(r,", ").concat(t))}),[H,$]),be=Object(r.useCallback)((function(){var e={count:$,includeCount:!0},t=ht.a.tab(e);if(!$||H<2)return Object(bt.d)(t);var n={count:H,includeCount:!0},r=ht.a.window(n);return Object(bt.d)("".concat(r,", ").concat(t))}),[H,$]),ye=Object(r.useCallback)((function(){return Object(bt.d)(ht.a.collection({count:he,includeCount:!0}))}),[he]),ge=Object(r.useCallback)(Object(u.a)(sd().mark((function e(){var t;return sd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=3;break}return Object(A.b)("file mode does not support link creation"),e.abrupt("return");case 3:if(e.prev=3,(t=cf(M)).length){e.next=7;break}return e.abrupt("return");case 7:return te("creating"),re(""),e.next=11,a(b.a.addLinksToSelectedCollection({folders:t},{}));case 11:return te("created"),e.abrupt("return",!0);case 15:e.prev=15,e.t0=e.catch(3),te("error-creating"),Object(N.e)(e.t0,{prefix:"Error adding links"});case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),[S,M,te,re,a]),we=Object(r.useCallback)(Object(u.a)(sd().mark((function e(){var t;return sd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=3;break}return Object(A.b)("file mode does not support tab creation"),e.abrupt("return");case 3:if(e.prev=3,(t=cf(M)).length){e.next=7;break}return e.abrupt("return");case 7:return te("creating"),re(""),e.next=11,c(t,{});case 11:return te("created"),e.abrupt("return",!0);case 15:e.prev=15,e.t0=e.catch(3),te("error-creating"),Object(N.e)(e.t0,{prefix:"Error adding tabs"});case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),[S,M,te,re,c]),Oe=Object(r.useCallback)(Object(u.a)(sd().mark((function e(){var t;return sd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=4;break}return e.next=3,ae(S);case 3:return e.abrupt("return");case 4:if(e.prev=4,(t=af(M)).length){e.next=8;break}return e.abrupt("return");case 8:return te("creating"),re(""),e.next=12,Object(De.i)(t);case 12:te("created"),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(4),te("error-creating"),Object(N.e)(e.t0,{prefix:"Error adding collections"});case 19:case"end":return e.stop()}}),e,null,[[4,15]])}))),[S,ae,M,te,re]),xe=S?function(e){return pd[e]||e}(ue):d;return{parseFile:fe,parseText:pe,createLinks:ge,createTabs:we,createCollections:Oe,abort:ce,getLinkCountsLabel:me,getTabCountsLabel:be,getCollectionCountsLabel:ye,text:x,file:S,status:xe,busy:"parsing"===xe||"creating"===xe,isError:xe.startsWith("error-")||"aborted"===xe,errorMessage:S?"":y,formatId:I,setCount:he,groupCount:S?0:H,unitCount:S?0:$,hasData:S?!!le:!!$,createProgress:S&&J&&"creating"===xe?le/J*100:0}};function dd(e){if(e.trim().includes("\n"))return e;try{var t=JSON.parse(e);if(t)return JSON.stringify(t,null,2)}catch(n){}return e}var pd={summarizing:"parsing",summarized:"parsed",importing:"creating",imported:"created","error-summarizing":"error-parsing"};function hd(){hd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var vd="unit-add",md=Object(O.a)((function(){return{paper:{overflow:"hidden"},actions:{padding:"0 24px 16px"}}})),bd=function(e){var t=e.setType,n=e.onClose,i=$e(["ingestMaxSize"]).ingestMaxSize,a=Object(f.b)(),c=md(),l=fd({maxFileSize:i}),d=l.parseFile,p=l.parseText,h=l.createLinks,v=l.createTabs,m=l.getLinkCountsLabel,b=l.getTabCountsLabel,g=l.status,w=l.busy,O=l.isError,x=l.errorMessage,j=l.text,E=l.file,k=l.formatId,S=l.hasData,L=l.createProgress,C=Object(s.c)(Object(y.l)("unitAddTextAreaHeight")),T=Object(r.useCallback)((function(){var e=document.getElementById(jf(vd));e&&a(Object(y.q)("unitAddTextAreaHeight",e.clientHeight+18))}),[a]),I="collection"===t,_=Object(r.useCallback)((function(){T(),n()}),[T,n]),N=I?h:v,A=O||!S||w||"throttling"===g||"created"===g,P=Object(r.useCallback)(Object(u.a)(hd().mark((function e(){return hd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,N();case 4:e.sent&&_();case 6:case"end":return e.stop()}}),e)}))),[A,N,_]),R=Object(r.useCallback)((function(e){e.preventDefault(),P()}),[P]);if(Object(se.a)(_),"remote-client"===t)return null;var M=Object(bt.d)(I?"add links":"open tabs"),F="".concat(M," from text");return o.a.createElement(ne,{classes:{paper:c.paper},fullWidth:!0,maxWidth:"xs","aria-labelledby":"unit-add",open:!0,onClose:w?function(e,t){"escapeKeyDown"===t&&_()}:_},o.a.createElement("form",{onSubmit:R},o.a.createElement(kf,{title:F,helpUrl:"https://sessionbuddy.com/formats",helpText:"Supported formats"}),o.a.createElement(oe,null,o.a.createElement(xf,{id:vd,parseFile:d,parseText:p,status:g,busy:w,isError:O,errorMessage:x,text:j,file:E,formatId:k,hasData:S,height:C,createProgress:L,getCountsLabel:I?m:b,onCtrlEnter:P})),o.a.createElement(le,{className:c.actions},o.a.createElement(fe.a,{label:M,color:"primary",type:"submit",disabled:A}),o.a.createElement(fe.a,{label:"created"===g?"Close":"Cancel",disabled:w,onClick:_}))))},yd=function(){var e=Object(s.b)(),t=Object(s.c)(Rt.b.context),n=Object(r.useCallback)((function(){e(Object(Rt.d)())}),[e]),i=null===t||void 0===t?void 0:t.setType;return i?o.a.createElement(bd,{setType:i,onClose:n}):null},gd=n(99);function wd(){wd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Od=Object(O.a)((function(e){return{Dialog:{"& .MuiDialogContent-root":{padding:e.spacing(1,8,1),whiteSpace:"pre-line",lineHeight:1.3,"&:first-child":{paddingTop:e.spacing(4)},"& a":{color:e.palette.text.primary}}},icon:{width:50,height:50},errorIcon:{color:e.palette.error.light},successIcon:{color:e.palette.success.main},spinner:{padding:3},action:{paddingTop:e.spacing(3)}}})),xd=function(){var e=Od(),t=Object(s.b)(),n=Object(f.c)(gd.d.criticalErrorShow),i=Object(f.c)(gd.d.criticalErrorIssues),a=Object(r.useState)("ready"),c=Object(ve.a)(a,2),l=c[0],d=c[1],p=Object(r.useCallback)((function(){"ready"===l&&t(Object(gd.b)())}),[l,t]);if(!n)return null;var h=function(e){if(e.length>1)return"data";switch(e[0]){case"collections-NotReadableError":return"collections";case"history-NotReadableError":return"history";case"settings-NotReadableError":return"settings";default:return"data"}}(i);return o.a.createElement(ne,{className:e.Dialog,fullWidth:!0,maxWidth:"xs",open:!0,onClose:function(){p()}},"repairing"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement(oe,null,o.a.createElement("div",{className:e.spinner},o.a.createElement(In,{size:"44px",thickness:"xs",color:"#aaa"}))),o.a.createElement(oe,null,"Repairing ".concat(h,"..."))):"repaired"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement(oe,null,o.a.createElement(mt.SuccessIcon,{className:Object(S.a)(e.icon,e.successIcon)})),o.a.createElement(oe,null,Object(bt.d)("".concat(h," repaired")))):o.a.createElement(o.a.Fragment,null,o.a.createElement(oe,null,o.a.createElement(mt.ErrorIcon,{className:Object(S.a)(e.icon,e.errorIcon)})),o.a.createElement(oe,null,"Session Buddy could not access ".concat(h," because some of its files have been deleted by a disk cleaner or other process on your device.")),o.a.createElement(oe,null,o.a.createElement("a",{href:"https://sessionbuddy.com/missing-data",target:"_blank",rel:"noopener",tabIndex:-1},"Learn more"))),o.a.createElement(le,{className:e.action},"ready"===l?o.a.createElement(o.a.Fragment,null,o.a.createElement(fe.a,{label:"Repair",color:"primary",onClick:Object(u.a)(wd().mark((function e(){return wd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d("repairing"),e.next=3,Object(zu.f)();case 3:d("repaired");case 4:case"end":return e.stop()}}),e)})))}),o.a.createElement(fe.a,{label:"Ignore",onClick:function(){p()}})):null,"repaired"===l?o.a.createElement(fe.a,{label:"Reload",onClick:function(){window.location.reload()}}):null))};function jd(){jd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Ed="import",kd=Object(O.a)((function(e){return{paper:{overflow:"hidden"},info:{paddingBottom:e.spacing(1),lineHeight:1.5,whiteSpace:"pre-line",color:e.palette.text.secondary,"& a":{color:"inherit",textUnderlineOffset:"2px","&:hover":{color:e.palette.text.primary}}},actions:{padding:e.spacing(0,3,2)}}})),Sd=function(e){var t=e.onClose,n=$e(["ingestMaxSize"]).ingestMaxSize,i=Object(f.b)(),a=kd(),c=fd({maxFileSize:n,allowLargeFiles:!0}),l=c.parseFile,d=c.parseText,p=c.createCollections,h=c.abort,v=c.getCollectionCountsLabel,m=c.status,b=c.busy,g=c.isError,w=c.errorMessage,O=c.text,x=c.file,j=c.formatId,E=c.hasData,k=c.createProgress,S=Object(s.c)(Object(y.l)("importTextAreaHeight")),L=Object(r.useCallback)((function(){var e=document.getElementById(jf(Ed));e&&i(Object(y.q)("importTextAreaHeight",e.clientHeight+18))}),[i]),C=!b&&("created"===m&&E),T=Object(r.useCallback)((function(){L(),t(C)}),[L,t,C]),I=g||!E||b||"throttling"===m||"created"===m,_=Object(r.useCallback)((function(){I||p()}),[I,p]),N=Object(r.useCallback)((function(e){e.preventDefault(),_()}),[_]);return Object(se.a)(T),o.a.createElement(ne,{classes:{paper:a.paper},fullWidth:!0,maxWidth:"xs","aria-labelledby":"import",open:!0,onClose:b?function(){var e=Object(u.a)(jd().mark((function e(n,r){return jd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("escapeKeyDown"!==r){e.next=5;break}return e.next=3,h();case 3:L(),t(!1);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}():T},o.a.createElement("form",{onSubmit:N},o.a.createElement(kf,{title:Object(bt.d)(ht.a.import()),helpUrl:"https://sessionbuddy.com/formats",helpText:"Supported formats"}),o.a.createElement(oe,{className:a.info},"Create collections from text or a file."),o.a.createElement(oe,null,o.a.createElement(xf,{id:Ed,parseFile:l,parseText:d,status:m,busy:b,isError:g,errorMessage:w,text:O,file:x,formatId:j,hasData:E,height:S,createProgress:k,getCountsLabel:v,onCtrlEnter:_})),o.a.createElement(le,{className:a.actions},o.a.createElement(fe.a,{label:Object(bt.d)(ht.a.import()),color:"primary",type:"submit",disabled:I}),o.a.createElement(fe.a,{label:"created"===m?"Close":"Cancel",disabled:b,onClick:T}))))},Ld=n(229),Cd=n(164);function Td(){Td=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Id=function(e){Object(Cs.a)(n,e);var t=Object(Ts.a)(n);function n(e){var r;return Object(Ls.a)(this,n),(r=t.call(this,e)).name="DestinationSelectionError",r}return Object(Ss.a)(n)}(Object(Is.a)(Error)),_d=function(){var e=Object(r.useState)("ready"),t=Object(ve.a)(e,2),n=t[0],o=t[1],i=Object(r.useState)(0),a=Object(ve.a)(i,2),c=a[0],l=a[1],s=Object(r.useRef)(null),f="showSaveFilePicker"in window,d=Object(r.useMemo)((function(){return Object(u.a)(Td().mark((function e(){var t;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.current){e.next=15;break}return e.prev=1,t=s.current.abort(),s.current=null,e.next=6,t;case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(1);case 10:return e.prev=10,s.current=null,o("aborted"),Object(A.f)("export aborted"),e.finish(10);case 15:case"end":return e.stop()}}),e,null,[[1,8,10,15]])})))}),[]);Object(r.useEffect)((function(){return function(){d()}}),[d]);var p=Object(r.useMemo)((function(){return function(){var e=Object(u.a)(Td().mark((function e(t){var n,r,i,a;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.format,r=t.collectionIds,e.prev=1,l(0),o("exporting"),(i=[]).push(Bd(n)),e.next=8,Object(De.d)(r);case 8:return(a=e.sent).length&&(i.push(Ud(n)),i.push(a.map((function(e,t){return Gd(e,t+1,n)})).join(zd(n))),i.push(Hd(n)),l(a.length)),i.push(Kd(n)),e.next=13,oi({text:i.join("")});case 13:o("copied"),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(1),o("error"),Object(N.e)(e.t0,{prefix:"Error exporting to clipboard"});case 20:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}()}),[]),h=Object(r.useMemo)((function(){return function(){var e=Object(u.a)(Td().mark((function e(t){var n,r,i,a,c,u,p,h,v,m,b,y;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.format,r=t.collectionIds,i=t.useDownload,e.prev=1,!s.current){e.next=5;break}return e.next=5,d();case 5:if(!(!i&&f)){e.next=25;break}return e.prev=7,e.next=10,window.showSaveFilePicker({suggestedName:Ad(Rd(n)),id:"session-buddy-export",startIn:"documents",types:Dd(n)});case 10:u=e.sent,e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(7),"AbortError"===e.t0.name){e.next=18;break}throw Object(N.e)(e.t0,{prefix:"Error selecting destination"}),new Id("Destination could not be selected");case 18:if(u){e.next=20;break}return e.abrupt("return");case 20:return e.next=22,u.createWritable();case 22:c=e.sent,e.next=26;break;case 25:c=Object(Cd.b)(Ad(Rd(n)),Md(n));case 26:return s.current=c.getWriter(),l(0),o("exporting"),p=!!(null===r||void 0===r?void 0:r.length),e.next=32,s.current.write(Bd(n));case 32:v=new Set,m=Td().mark((function e(){var t,o,i;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(k.b)(),!p){e.next=8;break}return e.next=4,Object(De.d)(r);case 4:e.t1=e.sent,e.t0={main:e.t1},e.next=11;break;case 8:return e.next=10,Object(De.c)({from:h?{pinnedTouchedTuple:[h.pinned,h.touched],collectionId:h.id}:void 0,limit:4,asc:!0});case 10:e.t0=e.sent;case 11:if(t=e.t0,s.current){e.next=14;break}return e.abrupt("return","break");case 14:if(o=(t.boundary||[]).filter((function(e){var t=e.id;return!v.has(t)})),(i=[].concat(Object(Fe.a)(o),Object(Fe.a)(t.main))).forEach((function(e){var t=e.id;return v.add(t)})),!i.length){e.next=33;break}if(!h){e.next=25;break}return e.next=21,s.current.write(zd(n));case 21:if(s.current){e.next=23;break}return e.abrupt("return","break");case 23:e.next=29;break;case 25:return e.next=27,s.current.write(Ud(n));case 27:if(s.current){e.next=29;break}return e.abrupt("return","break");case 29:return h=Object(bi.g)(i),l((function(e){return e+i.length})),e.next=33,s.current.write(i.map((function(e,t){return Gd(e,t+1,n)})).join(zd(n)));case 33:if(!p&&4===t.main.length){e.next=35;break}return e.abrupt("return","break");case 35:case"end":return e.stop()}}),e)}));case 34:if(!s.current){e.next=41;break}return e.delegateYield(m(),"t1",36);case 36:if("break"!==e.t1){e.next=39;break}return e.abrupt("break",41);case 39:e.next=34;break;case 41:if(!h){e.next=44;break}return e.next=44,null===(b=s.current)||void 0===b?void 0:b.write(Hd(n));case 44:return e.next=46,null===(a=s.current)||void 0===a?void 0:a.write(Kd(n));case 46:if(!s.current){e.next=52;break}return y=s.current.close(),s.current=null,e.next=51,y;case 51:o("saved");case 52:e.next=59;break;case 54:return e.prev=54,e.t2=e.catch(1),e.next=58,d();case 58:e.t2 instanceof Id?o("error-selecting-destination"):(o("error"),Object(N.e)(e.t2,{prefix:"Error exporting to file"}));case 59:case"end":return e.stop()}}),e,null,[[1,54],[7,13]])})));return function(t){return e.apply(this,arguments)}}()}),[d,f]),v=Object(r.useMemo)((function(){return Object(u.a)(Td().mark((function e(){var t,n,r,i,a,c,u,p,h,v,m,b,y,g,w,O,x=arguments;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(x.length>0&&void 0!==x[0]?x[0]:{}).useDownload,e.prev=1,!s.current){e.next=5;break}return e.next=5,d();case 5:if(!(!t&&f)){e.next=25;break}return e.prev=7,e.next=10,window.showSaveFilePicker({suggestedName:Pd(),id:"session-buddy-backup",startIn:"documents",types:[{description:"Session Buddy Backup",accept:{"application/json":[".json"]}}]});case 10:i=e.sent,e.next=18;break;case 13:if(e.prev=13,e.t0=e.catch(7),"AbortError"===e.t0.name){e.next=18;break}throw Object(N.e)(e.t0,{prefix:"Error selecting destination"}),new Id("Destination could not be selected");case 18:if(i){e.next=20;break}return e.abrupt("return");case 20:return e.next=22,i.createWritable();case 22:r=e.sent,e.next=26;break;case 25:r=Object(Cd.b)(Pd(),"application/json");case 26:return s.current=r.getWriter(),l(0),o("exporting"),e.next=31,Object(Un.b)();case 31:return a=e.sent,c=a.id,u={format:"nxs.json.v2",backupId:Object(oo.c)(),created:Object(L.n)(),source:{type:"client",id:c||"n/a",version:Object(Re.c)()||"n/a",language:navigator.language,ua:navigator.userAgent}},p=Object(bt.g)(JSON.stringify(u).trim(),"}").trim(),e.next=37,s.current.write(p);case 37:v=new Set,m=Td().mark((function e(){var t,n,r;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(k.b)(),e.next=3,Object(De.c)({from:h?{pinnedTouchedTuple:[h.pinned,h.touched],collectionId:h.id}:void 0,limit:4});case 3:if(t=e.sent,s.current){e.next=6;break}return e.abrupt("return","break");case 6:if(n=(t.boundary||[]).filter((function(e){var t=e.id;return!v.has(t)})),(r=[].concat(Object(Fe.a)(n),Object(Fe.a)(t.main))).forEach((function(e){var t=e.id;return v.add(t)})),!r.length){e.next=25;break}if(!h){e.next=17;break}return e.next=13,s.current.write(",");case 13:if(s.current){e.next=15;break}return e.abrupt("return","break");case 15:e.next=21;break;case 17:return e.next=19,s.current.write(',"collections":[');case 19:if(s.current){e.next=21;break}return e.abrupt("return","break");case 21:return h=Object(bi.g)(r),l((function(e){return e+r.length})),e.next=25,s.current.write(r.map((function(e){return JSON.stringify(Object(P.F)(e))})).join(","));case 25:if(4===t.main.length){e.next=27;break}return e.abrupt("return","break");case 27:case"end":return e.stop()}}),e)}));case 39:if(!s.current){e.next=46;break}return e.delegateYield(m(),"t1",41);case 41:if("break"!==e.t1){e.next=44;break}return e.abrupt("break",46);case 44:e.next=39;break;case 46:if(!h){e.next=49;break}return e.next=49,null===(b=s.current)||void 0===b?void 0:b.write("]");case 49:g=Td().mark((function e(){var t,n;return Td().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(k.b)(),e.next=3,Object(Be.e)({lastItemId:null===(t=y)||void 0===t?void 0:t.id,limit:4});case 3:if(n=e.sent,s.current){e.next=6;break}return e.abrupt("return","break");case 6:if(!n.length){e.next=22;break}if(!y){e.next=14;break}return e.next=10,s.current.write(",");case 10:if(s.current){e.next=12;break}return e.abrupt("return","break");case 12:e.next=18;break;case 14:return e.next=16,s.current.write(',"history":[');case 16:if(s.current){e.next=18;break}return e.abrupt("return","break");case 18:return y=Object(bi.g)(n),l((function(e){return e+n.length})),e.next=22,s.current.write(n.map((function(e){return JSON.stringify(Object(P.G)(e))})).join(","));case 22:if(4===n.length){e.next=24;break}return e.abrupt("return","break");case 24:case"end":return e.stop()}}),e)}));case 50:if(!s.current){e.next=57;break}return e.delegateYield(g(),"t2",52);case 52:if("break"!==e.t2){e.next=55;break}return e.abrupt("break",57);case 55:e.next=50;break;case 57:if(!y){e.next=60;break}return e.next=60,null===(w=s.current)||void 0===w?void 0:w.write("]");case 60:return e.next=62,null===(n=s.current)||void 0===n?void 0:n.write("}");case 62:if(!s.current){e.next=68;break}return O=s.current.close(),s.current=null,e.next=67,O;case 67:o("saved");case 68:e.next=75;break;case 70:return e.prev=70,e.t3=e.catch(1),e.next=74,d();case 74:e.t3 instanceof Id?o("error-selecting-destination"):(o("error"),Object(N.e)(e.t3,{prefix:"Error backing up"}));case 75:case"end":return e.stop()}}),e,null,[[1,70],[7,13]])})))}),[d,f]);return{performCopy:p,performExport:h,performBackup:v,abort:d,status:n,isDone:"saved"===n||"copied"===n,collectionCount:c,pickerSupported:f}};function Nd(e){return Object(P.y)(function(e){var t,n=Object(m.i)(e,["title","description","color","folders"]);return n.folders=(null!==(t=n.folders)&&void 0!==t?t:[]).map((function(e){return function(e){var t,n=Object(m.i)(e,["title","description","type","state","incognito","top","left","width","height","links"]);return n.links=(null!==(t=n.links)&&void 0!==t?t:[]).map((function(e){return function(e){return Object(m.i)(e,["url","favIconUrl","title","titleOriginal","description","userDescription","groupId","active","pinned"])}(e)})),n}(e)})),n}(e),!0)}function Ad(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"json";return"session-buddy-export-".concat(Object(Ld.a)(Object(L.m)(),"yyyy-MM-dd-HH-mm-ss"),".").concat(e)}function Pd(){return"session-buddy-backup-".concat(Object(Ld.a)(Object(L.m)(),"yyyy-MM-dd-HH-mm-ss"),".json")}function Rd(e){switch(e){case"json":return"json";case"csv":return"csv"}return"txt"}function Md(e){switch(e){case"json":return"application/json";case"csv":return"text/csv"}return"text/plain"}function Fd(e){switch(e){case"json":return"JSON";case"csv":return"CSV"}return"Plain text"}function Dd(e){return[{description:Fd(e),accept:Object(w.a)({},Md(e),[".".concat(Rd(e))])}]}function Bd(e){switch(e){case"json":return"{";case"csv":return"Collection,Folder,Title,URL,favIconUrl"}return""}function Ud(e){switch(e){case"json":return'\n "collections": [';case"csv":return"\n"}return""}function zd(e){switch(e){case"json":return",";case"plaintext-title-url":case"plaintext-url-indented-groups":case"plaintext-title-url-indented-groups":return"\n\n"}return"\n"}function Gd(e,t,n){switch(n){case"json":return"\n".concat(Object(bt.c)(JSON.stringify(Nd(e),null,2),4));case"csv":return(e.folders||[]).flatMap((function(n,r){var o=n.title;return n.links.map((function(n){var i=n.url,a=n.title,c=n.favIconUrl;return jo([e.title||"Collection ".concat(t),o||"Folder ".concat(r+1),a||"",i,c||""])}))})).join("\n");case"plaintext-url-indented-groups":case"plaintext-title-url-indented-groups":return"".concat(e.title||"Collection ".concat(t),"\n\n").concat((e.folders||[]).map((function(e,t){return function(e,t,n){return" ".concat(e.title||"Folder ".concat(t),"\n\n").concat(Object(bt.c)(Wd(e.links||[],n),4))}(e,t+1,"plaintext-title-url-indented-groups"===n)})).join("\n\n"));case"plaintext-url":case"plaintext-title-url":return(e.folders||[]).map((function(e){return Wd(e.links||[],"plaintext-title-url"===n)})).join("plaintext-title-url"===n?"\n\n":"\n")}}function Wd(e,t){return t?e.map((function(e){return"".concat(e.title||"Untitled","\n").concat(e.url)})).join("\n\n"):e.map((function(e){return e.url})).join("\n")}function Hd(e){return"json"===e?"\n ]":""}function Kd(e){return"json"===e?"\n}":""}var Vd=Object(O.a)((function(e){return{root:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.spacing(.5),boxSizing:"border-box"},icon:{width:40,height:40,transform:"scale(1.1)"},successIcon:{color:e.palette.success.main},errorIcon:{color:e.palette.error.light},message:{marginTop:e.spacing(2),"$message + &":{marginTop:e.spacing(1)},"& a":{color:"inherit"}}}})),qd=function(e){var t=e.status,n=e.isDone,r=e.readyContent,i=e.exportingMessage,a=e.successMessage,c=e.errorMessage,u=e.minHeight,l=Vd();return o.a.createElement(oe,{className:l.root,style:{minHeight:u}},"ready"===t?r:"exporting"===t?o.a.createElement(o.a.Fragment,null,o.a.createElement(In,{size:"40px",thickness:"xs",color:"#aaa"}),o.a.createElement("div",{className:l.message},i)):n?o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.SuccessIcon,{className:Object(S.a)(l.icon,l.successIcon)}),o.a.createElement("div",{className:l.message},a)):o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.ErrorIcon,{className:Object(S.a)(l.icon,l.errorIcon)}),"error-selecting-destination"===t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:l.message},"A file destination cannot be selected"),o.a.createElement("div",{className:l.message},o.a.createElement("a",{href:"https://sessionbuddy.com/troubleshooting-export/",target:"_blank",rel:"noopener"},"But why?"))):o.a.createElement("div",{className:l.message},c)))};function $d(){$d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Yd=Object(O.a)((function(e){return{appTip:{margin:e.spacing(2,3,1)},opt:{display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)},optLabel:{color:e.palette.text.secondary},tooltip:{textAlign:"center"},actions:{padding:e.spacing(3,3,2)}}})),Xd=[{value:"all-collections",text:"All collections"},{value:"selected-collections",text:"Selected collections"}],Qd=[{value:"plaintext-url",text:"URLs"},{value:"plaintext-title-url",text:"Title/URL pairs"},"---",{value:"plaintext-url-indented-groups",text:"Indented groups of URLs"},{value:"plaintext-title-url-indented-groups",text:"Indented groups of title/URL pairs"},"---",{value:"json",text:"JSON"},{value:"csv",text:"CSV"}],Jd=(Qd.filter((function(e){return"string"!==typeof e})),function(e){var t=e.onClose,n=$e(["copyCollectionsMax"]).copyCollectionsMax,i=Object(f.b)(),a=Yd(),c=Object(f.c)(b.c.selectedCollectionIds),s=Object(f.c)(Object(y.l)("exportScope")),d=Object(f.c)(Object(y.l)("exportFormat")),p=_d(),h=p.performCopy,v=p.performExport,m=p.abort,g=p.status,w=p.isDone,O=p.collectionCount,x=p.pickerSupported;Object(se.a)(t);var j=Xd.map((function(e){return"selected-collections"===e.value?Object(l.a)(Object(l.a)({},e),{},{text:"Selected collections (".concat(c.length,")")}):e})),E=Object(bt.d)(ht.a.collection({count:O,includeCount:!0})),k="exporting"===g||w,S=k||"selected-collections"===s&&!c.length,L=k||"selected-collections"!==s||!c.length||c.length>n,C="ready"!==g||"selected-collections"===s&&c.length<=n,T=C?"":"selected-collections"===s?"You cannot copy\nmore than ".concat(n," collections"):"To enable Copy, export\nselected collections instead of all",I=Object(r.useCallback)((function(){h({format:d,collectionIds:c})}),[d,c,h]),_=Object(r.useCallback)((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).useDownload;v({format:d,collectionIds:"selected-collections"===s?c:void 0,useDownload:e})}),[d,s,c,v]),N="aborted"===g||"error"===g||"error-selecting-destination"===g;return o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"export",open:!0,onClose:"exporting"===g?function(){var e=Object(u.a)($d().mark((function e(n,r){return $d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("escapeKeyDown"!==r){e.next=4;break}return e.next=3,m();case 3:t();case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}():t},o.a.createElement(kf,{title:"Export",helpUrl:"https://sessionbuddy.com/import-export"}),o.a.createElement(Sa,{className:a.appTip,tipId:"appTip_export"}),o.a.createElement(qd,{status:g,isDone:w,minHeight:110,exportingMessage:"".concat(E," found"),successMessage:"".concat(E," ").concat("copied"===g?"copied":"saved"),errorMessage:"Error exporting collections",readyContent:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:a.opt},o.a.createElement("div",{className:a.optLabel},"Export"),o.a.createElement("div",null,o.a.createElement(Au,{noUnderline:!0,value:s,options:j,onChange:function(e){i(Object(y.q)("exportScope",e))}}))),o.a.createElement("div",{className:a.opt},o.a.createElement("div",{className:a.optLabel},"As"),o.a.createElement("div",null,o.a.createElement(Au,{noUnderline:!0,value:d,options:Qd,onChange:function(e){i(Object(y.q)("exportFormat",e))}}))))}),o.a.createElement(le,{className:a.actions},o.a.createElement(fe.a,{disabled:S,label:N?"Try download":x?"Save":"Download",color:"primary",onClick:function(){_({useDownload:N})}}),o.a.createElement(Pe,{classes:{tooltip:a.tooltip},title:T,disableHoverListener:C,disableFocusListener:C,disableTouchListener:C,placement:"top"},o.a.createElement("div",null,o.a.createElement(fe.a,{disabled:L,label:"Copy",color:"primary",onClick:function(){I()}}))),o.a.createElement(fe.a,{label:w?"Close":"Cancel",disabled:"exporting"===g,onClick:t})))});function Zd(){Zd=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var ep=Object(O.a)((function(e){return{info:{paddingTop:e.spacing(2),lineHeight:1.5,whiteSpace:"pre-line",color:e.palette.text.secondary,"& a":{color:"inherit",textUnderlineOffset:"2px","&:hover":{color:e.palette.text.primary}}},actions:{padding:e.spacing(3,3,2)}}})),tp=function(e){var t=e.onClose,n=ep(),r=_d(),i=r.performBackup,a=r.abort,c=r.status,l=r.isDone,s=r.collectionCount,f=r.pickerSupported;Object(se.a)(t);var d=Object(bt.d)(ht.a.item({count:s,includeCount:!0})),p="exporting"===c||l,h="aborted"===c||"error"===c||"error-selecting-destination"===c;return o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"backup",open:!0,onClose:"exporting"===c?function(){var e=Object(u.a)(Zd().mark((function e(n,r){return Zd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("escapeKeyDown"!==r){e.next=4;break}return e.next=3,a();case 3:t();case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}():t},o.a.createElement(kf,{title:"Backup",helpUrl:"https://sessionbuddy.com/backup-restore"}),o.a.createElement(qd,{status:c,isDone:l,readyContent:o.a.createElement("div",{className:n.info},"Create a backup file of your collections and history."),exportingMessage:"".concat(d," found"),successMessage:"".concat(d," backed up"),errorMessage:"Error backing up collections and history"}),o.a.createElement(le,{className:n.actions},o.a.createElement(fe.a,{disabled:p,label:h?"Try download":f?"Save":"Download",color:"primary",onClick:function(){i({useDownload:h})}}),o.a.createElement(fe.a,{label:l?"Close":"Cancel",disabled:"exporting"===c,onClick:t})))};function np(){np=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var rp=Object(O.a)((function(e){var t="dark"===e.palette.type?"#303030":"#ebebeb";return{dropzoneContainer:{height:150,marginTop:8,whiteSpace:"pre-line",borderRadius:e.shape.borderRadius,backgroundColor:t,"& .MuiDialogContentText-root":{fontSize:"0.9rem"}},dropzone:{height:"100%","&.idle":{cursor:"pointer"},"& $statusIcon, p":{transitionProperty:"scale",transitionDuration:"150ms",transitionTimingFunction:"ease-in-out"},"& $statusIcon":{transformOrigin:"top"},"& p":{transformOrigin:"bottom"},"&.idle:hover, &.idle.isDragActive":{"& $statusIcon":{scale:1.1},"& p":{scale:.96}}},status:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:e.spacing(2),height:"100%"},statusTitle:{fontSize:"1rem",fontWeight:500,color:e.palette.text.primary},statusIcon:{width:40,height:40,color:"dark"===e.palette.type?e.palette.action.active:"#aeaeae"},success:{color:e.palette.success.main},warning:{color:e.palette.warning.main},error:{color:e.palette.error.light},progress:{width:"80%"},progressColor:{backgroundColor:"dark"===e.palette.type?"#0097ff":e.palette.primary.light},progressBackgroundColor:{backgroundColor:e.palette.background.secondaryPaper},tooltip:{textAlign:"center"},actions:{padding:e.spacing(2,0,0)}}})),op=Object(r.forwardRef)((function(e,t){var n=e.onBusyChanged,i=e.onRestored,a=e.onCancel,c=rp(),l=Object(r.useState)(),s=Object(ve.a)(l,2),f=s[0],d=s[1],p=Object(r.useState)(),h=Object(ve.a)(p,2),v=h[0],m=h[1],b=Object(r.useState)(),y=Object(ve.a)(b,2),g=y[0],w=y[1],O=rd({restore:!0,onBusyChanged:n}),x=O.summarizeFile,j=O.importFile,E=O.abort,k=O.status,C=O.busy,T=O.foundSetCount;Object(r.useImperativeHandle)(t,(function(){return{abort:E}}));var I=Object(r.useMemo)((function(){return"imported"===k&&!!T&&void 0!==g&&g<T}),[k,T,g]);Object(r.useEffect)((function(){I&&i()}),[i,I]);var _=Object(r.useCallback)(function(){var e=Object(u.a)(np().mark((function e(t,n){var r,o,i;return np().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!C){e.next=2;break}return e.abrupt("return");case 2:return r=t.length+n.length>1,o=r?void 0:t[0],d(o),m(void 0),e.next=8,x(r?"error-multiple-files":o?o.size?o:"error-empty-file":"error-invalid-file-type");case 8:(i=e.sent)&&m(i.foundSetCount);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[C,x]),N=Os({onDrop:_,accept:{"application/json":[".json"]},maxFiles:1,multiple:!1,noDragEventsBubbling:!0,noClick:C,noKeyboard:C}),A=N.getRootProps,P=N.getInputProps,R=N.isDragActive,M=Object(r.useCallback)(function(){var e=Object(u.a)(np().mark((function e(t){var n;return np().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!f){e.next=7;break}return w(void 0),e.next=5,j(f);case 5:(n=e.sent)&&w(n.rejectedCollectionCount);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[f,j]);return o.a.createElement("form",{onSubmit:M},o.a.createElement("div",{className:c.dropzoneContainer},o.a.createElement("div",A({className:Object(S.a)(c.dropzone,{isDragActive:R,idle:!C})}),o.a.createElement("input",P()),o.a.createElement("div",{className:c.status},function(e,t){var n="error-no-file"===e||"error-invalid-file-type"===e||"error-empty-file"===e||"error-multiple-files"===e,r="error-summarizing"===e||"error-creating"===e||"aborted"===e;if(n||r||("summarized"===e||"imported"===e)&&!t){var i=r?mt.ErrorIcon:n?mt.FileBadIcon:mt.WarningIcon,a=n||r?c.error:c.warning,u="error-summarizing"===e||"error-creating"===e?"Invalid format":"aborted"===e?"Restore aborted":"error-no-file"===e||"error-invalid-file-type"===e?"File type must be JSON":"error-empty-file"===e?"This file is empty":"error-multiple-files"===e?"You cannot drop more than one file":Object(bt.d)("".concat(ht.a.item({count:0,includeCount:!0})," found"));return o.a.createElement(o.a.Fragment,null,o.a.createElement(i,{className:Object(S.a)(c.statusIcon,a)}),o.a.createElement(bc,null,u))}}(k,T)||("summarizing"===k?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:c.statusTitle},"Checking file..."),o.a.createElement(bc,null,Object(bt.d)("".concat(ht.a.item({count:T,includeCount:!0})," found")))):"summarized"===k?o.a.createElement(o.a.Fragment,null,o.a.createElement(Pe,{classes:{tooltip:c.tooltip},title:(null===f||void 0===f?void 0:f.name)?"".concat(null===f||void 0===f?void 0:f.name).concat((null===f||void 0===f?void 0:f.lastModified)?"\nSaved ".concat(Object(L.j)(f.lastModified)):""):"",placement:"top"},o.a.createElement("div",null,o.a.createElement(mt.FileGoodIcon,{className:c.statusIcon}))),o.a.createElement(bc,null,"".concat(ht.a.item({count:T,includeCount:!0}),' found.\nClick "Restore" to proceed.'))):"importing"===k?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:c.statusTitle},"Restoring..."),v&&T?o.a.createElement(ks,{className:c.progress,classes:{colorPrimary:c.progressBackgroundColor,barColorPrimary:c.progressColor},variant:"determinate",value:T/v*100}):null,T?o.a.createElement(bc,null,"".concat(ht.a.item({count:T,includeCount:!0})," restored")):null):"imported"===k?o.a.createElement(o.a.Fragment,null,g&&g===T?o.a.createElement(mt.WarningIcon,{className:Object(S.a)(c.statusIcon,c.warning)}):o.a.createElement(mt.SuccessIcon,{className:Object(S.a)(c.statusIcon,c.success)}),o.a.createElement(bc,null,g?g===T?Object(bt.d)("".concat(ht.a.item({count:0,includeCount:!0})," were created because\nall ").concat(ht.a.item({count:wt.a})," have already been restored.")):"".concat(ht.a.integer(T-g)," of ").concat(ht.a.item({count:T,includeCount:!0})," ").concat(T-g===1?"was":"were"," created because\nsome ").concat(ht.a.item({count:wt.a})," have already been restored."):"".concat(ht.a.item({count:T,includeCount:!0})," restored"))):o.a.createElement(o.a.Fragment,null,o.a.createElement(mt.FileIcon,{className:c.statusIcon}),o.a.createElement(bc,null,"Drop a Session Buddy backup file here\nor click to select one")))))),o.a.createElement(le,{className:c.actions},o.a.createElement(fe.a,{label:Object(bt.d)(ht.a.restore()),color:"primary",type:"submit",disabled:"summarized"!==k||!T||!f}),o.a.createElement(fe.a,{label:"imported"===k?"Close":"Cancel",disabled:C,onClick:function(){null===a||void 0===a||a()}})))})),ip=Object(O.a)((function(e){return{AutoBackupTile:{display:"flex",alignItems:"center",gap:e.spacing(2),height:74,padding:e.spacing(0,2.5),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.secondary},icon:{fontSize:0,color:"dark"===e.palette.type?e.palette.action.active:"#aeaeae","& svg":{fontSize:"2.2rem"}},success:{color:e.palette.success.main},warning:{color:e.palette.warning.main},error:{color:e.palette.error.light},summary:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.spacing(.5)},restoreStatus:{flexGrow:1,display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(1),padding:e.spacing(0,3)},title:{fontWeight:500},description:{fontSize:"0.9rem",color:e.palette.text.secondary},multiLine:{whiteSpace:"pre-line",lineHeight:1.5},progress:{width:"100%"},progressColor:{backgroundColor:"dark"===e.palette.type?"#0097ff":e.palette.primary.light},progressBackgroundColor:{backgroundColor:e.palette.background.secondaryPaper},action:{marginLeft:"auto"}}})),ap=Object(r.forwardRef)((function(e,t){var n=e.type,i=e.summary,a=e.icon,c=e.typeLabel,s=e.disabled,f=e.onBusyChanged,d=e.onRestored,p=ip(),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.onBusyChanged,o=t.onRestored,i=Object(r.useState)("ready"),a=Object(ve.a)(i,2),c=a[0],s=a[1],f=Object(r.useState)({created:0,rejected:0}),d=Object(ve.a)(f,2),p=d[0],h=d[1],v=Object(r.useRef)(!1),m=Object(r.useRef)(!1),b=Object(r.useCallback)((function(e){if(s(e),n){var t="validating"===e||"restoring"===e;m.current!==t&&(m.current=t,n(t))}}),[n]),y=Object(r.useCallback)((function(e,t){(e||t)&&h((function(n){var r,o;return{created:(null!==(r=null===n||void 0===n?void 0:n.created)&&void 0!==r?r:0)+e,rejected:(null!==(o=null===n||void 0===n?void 0:n.rejected)&&void 0!==o?o:0)+t}}))}),[]),g=Object(r.useMemo)((function(){return Object(u.a)(zn().mark((function e(){return zn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v.current&&(v.current=!1,b("aborted"),Object(A.f)("restore aborted"));case 1:case"end":return e.stop()}}),e)})))}),[b]);return Object(r.useEffect)((function(){return function(){g()}}),[g]),{restore:Object(r.useMemo)((function(){return Object(u.a)(zn().mark((function t(){var n,r,i,a,c,u,s,f,d,p;return zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!v.current){t.next=4;break}return t.next=4,g();case 4:return h({created:0,rejected:0}),b("validating"),v.current=!0,t.next=9,Object(Bn.f)();case 9:if(t.t0=e,n=t.sent[t.t0],v.current){t.next=13;break}return t.abrupt("return");case 13:if(n){t.next=18;break}return t.next=16,g();case 16:return b("error-backup-missing"),t.abrupt("return");case 18:return t.next=20,Object(Bn.h)(e);case 20:if(t.t1=e,r=t.sent[t.t1],v.current){t.next=24;break}return t.abrupt("return");case 24:if(null===r||void 0===r?void 0:r.valid){t.next=30;break}return t.next=27,g();case 27:return b("error-backup-invalid"),r&&Object(A.f)("invalid ".concat(e," backup: ").concat(r.message)),t.abrupt("return");case 30:b("restoring"),i=Object(Bn.e)(e),a=!1;case 33:if(!v.current){t.next=64;break}return t.next=36,i.next();case 36:if(c=t.sent,u=c.value,!c.done&&u&&v.current){t.next=41;break}return t.abrupt("break",64);case 41:if(!u.length){t.next=60;break}if(s=0,"collections"!==e){t.next=50;break}return f=u.map((function(e){return Object(l.a)(Object(l.a)({},e),{},{clientId:Un.a.id})})),t.next=47,Object(De.a)(f);case 47:s=t.sent,t.next=55;break;case 50:if("events"!==e){t.next=55;break}return d=u.map((function(e){var t;return Object(l.a)(Object(l.a)({},e),{},{clientId:null!==(t=Un.a.id)&&void 0!==t?t:""})})),t.next=54,Object(Be.a)(d);case 54:s=t.sent;case 55:if(v.current){t.next=57;break}return t.abrupt("break",64);case 57:p=u.length-s,s&&(a=!0),y(s,p);case 60:return t.next=62,I();case 62:t.next=33;break;case 64:v.current&&(v.current=!1,b("restored"),o&&a&&o()),t.next=73;break;case 67:return t.prev=67,t.t2=t.catch(0),t.next=71,g();case 71:b("error-restoring"),Object(N.e)(t.t2,{prefix:"Error restoring"});case 73:case"end":return t.stop()}}),t,null,[[0,67]])})))}),[g,b,y,e,o]),abort:g,status:c,busy:"validating"===c||"restoring"===c,counts:p}}(n,{onBusyChanged:f,onRestored:d}),v=h.restore,m=h.abort,b=h.status,y=h.counts;Object(r.useImperativeHandle)(t,(function(){return{abort:m}}));var g=Vu({date:"ready"===b?Object(L.k)(null===i||void 0===i?void 0:i.timestamp):void 0,deriveValue:Object(r.useCallback)((function(e){return"Backed up ".concat(Object(L.j)(e))}),[])});return(null===i||void 0===i?void 0:i.count)?o.a.createElement("div",{className:p.AutoBackupTile},function(e,t){var n="restored"===e&&!t.created,r="error-backup-missing"===e||"error-backup-invalid"===e||"error-restoring"===e||"aborted"===e;if(n||r){var i=r?mt.ErrorIcon:mt.WarningIcon,a=r?p.error:p.warning,u="error-backup-missing"===e?"Backup is missing":"error-backup-invalid"===e?"Backup is invalid":"error-restoring"===e?"Restore failed":"aborted"===e?"Restore aborted":Object(bt.d)(t.rejected?"All backed-up ".concat(c({count:wt.a})," already exist."):"".concat(c({count:0,includeCount:!0})," found"));return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:p.icon},o.a.createElement(i,{className:a})),o.a.createElement("div",{className:p.restoreStatus},o.a.createElement("div",{className:r?p.title:p.description},u)))}}(b,y)||("validating"===b||"restoring"===b?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:p.icon},a),o.a.createElement("div",{className:p.restoreStatus},y.created||y.rejected?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:p.title},"Restoring..."),o.a.createElement(ks,{className:p.progress,classes:{colorPrimary:p.progressBackgroundColor,barColorPrimary:p.progressColor},variant:"determinate",value:(y.created+y.rejected)/i.count*100}),o.a.createElement("div",{className:p.description},function(e,t){var n=e.created,r=e.rejected;if(!n&&!r)return" ";if(!n||!r)return"".concat(t({count:r||n,includeCount:!0})," ").concat(n?"restored":"ignored");return"".concat(t({count:n,includeCount:!0})," restored (").concat(ht.a.integer(r)," ignored)")}(y,c))):o.a.createElement("div",{className:p.title},"Validating..."))):"restored"===b?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:p.icon},o.a.createElement(mt.SuccessIcon,{className:p.success})),o.a.createElement("div",{className:p.restoreStatus},o.a.createElement("div",{className:Object(S.a)(p.description,p.multiLine)},y.rejected?"".concat(ht.a.integer(y.created)," of ").concat(c({count:y.created+y.rejected,includeCount:!0})," restored.\nThe rest already exist."):"".concat(c({count:y.created,includeCount:!0})," restored")))):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:p.icon},a),o.a.createElement("div",{className:p.summary},o.a.createElement("div",{className:p.title},c({count:i.count,includeCount:!0})),o.a.createElement("div",{className:p.description},g)),o.a.createElement("div",{className:p.action},o.a.createElement(fe.a,{color:"primary",size:"small",label:Object(bt.d)(ht.a.recover()),disabled:s,onClick:function(){v()}}))))):null}));function cp(){cp=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var up=function(){var e=Object(K.a)();return o.a.createElement(mt.CollectionIcon,{color:e.palette.nxsSetIcon.collection.main})},lp=function(){var e=Object(K.a)();return o.a.createElement(mt.HistoryIcon,{color:e.palette.nxsSetIcon.event.main})},sp=Object(O.a)((function(e){return{status:{display:"flex",flexDirection:"column",gap:e.spacing(3.5),minHeight:130},description:{lineHeight:1.5,whiteSpace:"pre-line",color:e.palette.text.secondary,"& a":{color:"inherit",textUnderlineOffset:"2px","&:hover":{color:e.palette.text.primary}}},backups:{display:"flex",flexDirection:"column",gap:e.spacing(1.5)},disclaimer:{fontSize:"0.9rem"},noBackups:{paddingTop:e.spacing(1)},empty:{height:170},actions:{padding:e.spacing(3,0,0)}}})),fp=Object(r.forwardRef)((function(e,t){var n=e.onBusyChanged,i=e.onRestored,a=e.onCancel,c=sp(),l=Object(r.useState)(!1),s=Object(ve.a)(l,2),f=s[0],d=s[1],p=Object(r.useState)(!1),h=Object(ve.a)(p,2),v=h[0],m=h[1],b=Gn("collections"),y=Gn("events"),g=Object(r.useRef)(null),w=Object(r.useRef)(null);Object(r.useImperativeHandle)(t,(function(){return{abort:function(){var e=Object(u.a)(cp().mark((function e(){var t,n;return cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(t=g.current)||void 0===t?void 0:t.abort();case 2:return e.next=4,null===(n=w.current)||void 0===n?void 0:n.abort();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}));var O=Object(r.useCallback)((function(e){d(e),n(e)}),[n]),x=Object(r.useCallback)((function(){m(!0),i()}),[i]),j=void 0===b||void 0===y;return o.a.createElement("div",null,o.a.createElement("div",{className:c.status},j?o.a.createElement("div",{className:c.empty}):(null===b||void 0===b?void 0:b.count)||(null===y||void 0===y?void 0:y.count)?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:c.description},"Session Buddy automatically backs up your ".concat(ht.a.collection({count:wt.a})," and history to protect from "),o.a.createElement("a",{href:"https://sessionbuddy.com/data-reliability",target:"_blank",rel:"noopener"},"unexpected occurrences"),"."),o.a.createElement("div",{className:c.backups},(null===b||void 0===b?void 0:b.count)?o.a.createElement(ap,{ref:g,type:"collections",summary:b,icon:o.a.createElement(up,null),typeLabel:ht.a.collection,disabled:f,onBusyChanged:O,onRestored:x}):null,(null===y||void 0===y?void 0:y.count)?o.a.createElement(ap,{ref:w,type:"events",summary:y,icon:o.a.createElement(lp,null),typeLabel:ht.a.event,disabled:f,onBusyChanged:O,onRestored:x}):null),o.a.createElement("div",{className:Object(S.a)(c.description,c.disclaimer)},"Local backups cannot protect from all risks. ",o.a.createElement("a",{href:"https://sessionbuddy.com/local-backups",target:"_blank",rel:"noopener"},"Learn more"),".")):o.a.createElement("div",{className:c.noBackups},"No backups found")),o.a.createElement(le,{className:c.actions},o.a.createElement(fe.a,{label:v?"Close":"Cancel",disabled:f,onClick:function(){null===a||void 0===a||a()}})))}));function dp(){dp=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var pp=Object(O.a)((function(e){return{tabsPanel:{padding:e.spacing(3,0,0)}}})),hp=function(e){var t=e.defaultTab,n=void 0===t?"file":t,i=e.onClose,a=pp(),c=Object(r.useRef)(null),l=Object(r.useRef)(null),s=Gn("collections"),f=Gn("events"),d=Object(r.useState)(!1),p=Object(ve.a)(d,2),h=p[0],v=p[1],m=Object(r.useState)(!1),b=Object(ve.a)(m,2),y=b[0],g=b[1],w=Object(r.useCallback)((function(e){v(e)}),[]),O=Object(r.useCallback)((function(){g(!0)}),[]),x=Object(r.useCallback)((function(){i(y)}),[i,y]),j=Object(r.useCallback)(function(){var e=Object(u.a)(dp().mark((function e(t){var n,r;return dp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=9;break}if(t){e.next=7;break}return e.next=4,null===(n=c.current)||void 0===n?void 0:n.abort();case 4:return e.next=6,null===(r=l.current)||void 0===r?void 0:r.abort();case 6:i(y);case 7:e.next=10;break;case 9:i(y);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[h,y,i]);return Object(se.a)(j),void 0===s||void 0===f?null:o.a.createElement(ne,{fullWidth:!0,maxWidth:"xs","aria-labelledby":"restore",open:!0,onClose:function(e,t){j("escapeKeyDown"!==t)}},o.a.createElement(kf,{title:Object(bt.d)(ht.a.restore()),helpUrl:"https://sessionbuddy.com/restore"}),o.a.createElement(oe,null,o.a.createElement(ju,{disabled:h,collapseSingleTab:!0,spec:[{title:"From a file",panel:o.a.createElement(op,{ref:c,onBusyChanged:w,onRestored:O,onCancel:x})},{title:"From local backup",hidden:!(null===s||void 0===s?void 0:s.count)&&!(null===f||void 0===f?void 0:f.count),defaultSelected:"autoBackup"===n,panel:o.a.createElement(fp,{ref:l,onBusyChanged:w,onRestored:O,onCancel:x})}],classes:{panel:a.tabsPanel}})))},vp=n(203);function mp(){mp=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var bp=Object(O.a)((function(){return{App:{display:"flex",flexDirection:"column",height:"100vh",lineHeight:1.5},animationDisabled:{"& *":{transition:"none !important"}},body:{display:"flex",flexGrow:1}}})),yp=function(e){var t=e.initialized,n=Object(f.b)(),i=bp(),a=Object(C.a)(),c=Object(s.c)(Object(y.l)("desiredTheme")),l=Object(s.c)(Object(y.l)("importExportDialog")),d=Object(s.c)(Object(y.l)("animationIsDisabled")),p=Object(s.c)(Object(y.l)("showWelcome")),h=Object(s.d)(),v=Object(S.a)(i.App,Object(w.a)({},i.animationDisabled,d));Object(r.useEffect)((function(){var e=function(){Object(k.b)()};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[]),Object(r.useEffect)((function(){Object(A.d)("----- app load ".concat(Object(L.o)("en-US")," -----")),localStorage.getItem("evictionCheck")||localStorage.setItem("evictionCheck",Object(L.n)()),Object(_.d)(),Object(vp.a)();try{var e=function(){var e=Object(u.a)(mp().mark((function e(t,r){var o,i;return mp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.tabs.getCurrent();case 2:if(o=e.sent,!(null===r||void 0===r?void 0:r.id)||(null===r||void 0===r?void 0:r.id)!==(null===o||void 0===o?void 0:o.id)){e.next=14;break}if("save-session"!==t){e.next=13;break}if(n(b.a.createCollectionFromLocalWindows()),h.getState().settings.askForNameWhenSavingCollection){e.next=10;break}return null===(i=m.current)||void 0===i||i.focus(),e.abrupt("return");case 10:n(Object(j.a)({isNew:!0,onEditingEnded:function(){T((function(){var e;null===(e=m.current)||void 0===e||e.focus()}))}})),e.next=14;break;case 13:"clear-item-selections"===t&&n(b.a.itemSelectionCleared());case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return chrome.commands.onCommand.addListener(e),function(){chrome.commands.onCommand.removeListener(e)}}catch(t){Object(N.e)(t,{prefix:"Error adding command listener"})}}),[n,h]),Object(qe.e)();var m=Object(r.useRef)(null),g=Object(E.a)(t?Object(P.v)(c,a):Object(P.v)(gp(),a));t&&c!==gp()&&localStorage.setItem(P.x,c);var O=Object(r.useCallback)((function(){n(Object(y.g)())}),[n]),I=Object(r.useCallback)((function(e){e&&n(b.a.fetchNavCollections({reset:!0})),O()}),[n,O]),R=Object(r.useCallback)((function(e){e&&(n(b.a.fetchNavCollections({reset:!0})),n(b.a.fetchNavClientHistory({reset:!0}))),O()}),[n,O]);return o.a.createElement("div",{className:v},o.a.createElement(x.a,{theme:g},o.a.createElement(fo,{inert:!t}),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:i.body},o.a.createElement(Vn,{ref:m}),o.a.createElement(rc,{navFocusContainerRef:m})),o.a.createElement(vc,null),o.a.createElement(Ec,null),o.a.createElement(ll,null),o.a.createElement(dl,null),o.a.createElement(yd,null),p?o.a.createElement(he,null):null,o.a.createElement(xd,null),"transfer"===l?o.a.createElement(Sd,{onClose:I}):"export"===l?o.a.createElement(Jd,{onClose:O}):"backup"===l?o.a.createElement(tp,{onClose:O}):"restore"===l||"restore:auto-backup"===l?o.a.createElement(hp,{onClose:R,defaultTab:"restore:auto-backup"===l?"autoBackup":"file"}):null):null))};function gp(){var e=localStorage.getItem(P.x);return"dark"===e||"light"===e?e:"default"}var wp=[{matches:function(e){var t=e.url,n=e.urlIdentifiers,r=n.web,o=n.ext;return r.isAppUrl(t)||o.isNxsUrl(t)},apply:function(){return null}}],Op=[{matches:function(e){var t=e.url;return e.urlIdentifiers.browser.isFeatureUrl(t,"newtab")},apply:function(){return null}}],xp=[{matches:function(e){return!!e.unit.pinned},apply:function(){return null}}],jp=[{matches:function(e){var t=e.url,n=e.urlIdentifiers.browser;return n.isFeatureUrl(t)&&!n.isFeatureUrl(t,"newtab")},apply:function(){return null}}],Ep=function(){var e=$e(["removeTitleSuffixes"]).removeTitleSuffixes,t=Object(r.useMemo)((function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).removeTitleSuffixes,t=Object(_r.a)();return Pr(Object(l.a)({rules:Object(Fe.a)(e?Gr:[])},Ar(t)))}({removeTitleSuffixes:e})}),[e]),n=Object(s.c)(Object(y.l)("ignoreNxsTabs")),o=Object(s.c)(Object(y.l)("ignoreNewTabs")),i=Object(s.c)(Object(y.l)("ignorePinnedTabs")),a=Object(s.c)(Object(y.l)("ignoreBrowserFeatureTabs"));return{transform:Object(r.useCallback)((function(e){return t.transform({windows:e,rules:[].concat(Object(Fe.a)(n?wp:[]),Object(Fe.a)(o?Op:[]),Object(Fe.a)(i?xp:[]),Object(Fe.a)(a?jp:[]))})}),[t,n,o,i,a])}},kp=n(183);function Sp(){Sp=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new k(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(v=b);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var Lp,Cp=["WIN-UPDATED-BOUNDS","TAB-OPENED","TAB-CLOSED","TAB-MOVED","TAB-REPLACED","TAB-UPDATED-STATUS","TAB-UPDATED-FAVICONURL","TAB-UPDATED-TITLE","TAB-UPDATED-URL","TAB-UPDATED-PINNED","TAB-UPDATED-AUDIBLE","TAB-UPDATED-MUTEDINFO","TAB-UPDATED-GROUPID"],Tp=["id","incognito","tabs","title","current","type","state","top","left","width","height"],Ip=["id","status","favIconUrl","title","url","pinned","audible","mutedInfo","groupId","description","current","active","titleOriginal"],_p=Object(_r.a)(),Np=Object(kp.a)(Object(l.a)({},Object(kp.b)(_p)));Lp=Np,Ut.session=Lp;var Ap=function(){var e=$e(["debugSessionEvents"]).debugSessionEvents,t=Object(g.a)(),n=Object(s.c)(Object(y.l)("currentWindowFirst")),i=Object(f.b)(),a=Ep().transform,c=Object(r.useMemo)((function(){return h()(Object(u.a)(Sp().mark((function e(){var t,r,o,c,u,l;return Sp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Np.getWindows(n,!0);case 2:t=e.sent,r=t,(o=t.find((function(e){return e.current})))&&((c=o.tabs.filter((function(e){return!e.current}))).length?o.tabs=c:r=t.filter((function(e){return e!==o}))),u=a(r),l=u.map((function(e){return Pp(e)})),i(b.a.localWindowsChanged(l));case 9:case"end":return e.stop()}}),e)}))),600,{leading:!0,trailing:!0})}),[n,a,i]),l=Object(r.useMemo)((function(){return Np.observe().pipe(Object(d.a)((function(e){var t=e.type;return Cp.includes(t)})))}),[]);return Object(r.useEffect)((function(){if(t){var n=void 0;e&&(n=Object(v.e)("activeSnapshot",(function(e){(null===e||void 0===e?void 0:e.windows)&&console.log("\ud83d\udcf7 snapshot",e.windows)}),{skipInitial:!0})),c();var r=l.subscribe((function(t){e&&console.log(t),"TAB-CLOSED"===t.type?i(b.a.localItemsClosed(t.isWinClosing?{winIds:[t.winId]}:{tabIds:[t.tabId]})):"TAB-REPLACED"===t.type?(e&&console.log("%c********* TAB-REPLACED *********","color: orange",t),i(b.a.localTabIdSwapped({from:t.removedTabId,to:t.addedTabId}))):c()}));return function(){var e;r.unsubscribe(),null===(e=n)||void 0===e||e()}}}),[t,l,c,i,e]),o.a.createElement(yp,{initialized:t})};function Pp(e){var t=Object(m.i)(e,Tp);return t.tabs=t.tabs.map((function(e){return function(e){return Object(m.i)(e,Ip)}(e)})),t}a.a.render(o.a.createElement(c.a,null,o.a.createElement(Ap,null)),document.getElementById("root"))},,function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(256),c=n(101),u=n(68),l=n(204),s=(n(142),n(19)),f=n(74),d=n(31),p=n(23),h=n(48),v=n(128),m=n(152),b=n(124),y=n(275),g=n(262),w=n(258);function O(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function x(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function j(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function E(e){return"function"===typeof e?e():e}var k=i.forwardRef((function(e,t){var n=e.action,a=e.anchorEl,c=e.anchorOrigin,u=void 0===c?{vertical:"top",horizontal:"left"}:c,l=e.anchorPosition,d=e.anchorReference,p=void 0===d?"anchorEl":d,k=e.children,S=e.classes,L=e.className,C=e.container,T=e.elevation,I=void 0===T?8:T,_=e.getContentAnchorEl,N=e.marginThreshold,A=void 0===N?16:N,P=e.onEnter,R=e.onEntered,M=e.onEntering,F=e.onExit,D=e.onExited,B=e.onExiting,U=e.open,z=e.PaperProps,G=void 0===z?{}:z,W=e.transformOrigin,H=void 0===W?{vertical:"top",horizontal:"left"}:W,K=e.TransitionComponent,V=void 0===K?g.a:K,q=e.transitionDuration,$=void 0===q?"auto":q,Y=e.TransitionProps,X=void 0===Y?{}:Y,Q=Object(o.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=i.useRef(),Z=i.useCallback((function(e){if("anchorPosition"===p)return l;var t=E(a),n=(t&&1===t.nodeType?t:Object(f.a)(J.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+O(n,r),left:n.left+x(n,u.horizontal)}}),[a,u.horizontal,u.vertical,l,p]),ee=i.useCallback((function(e){var t=0;if(_&&"anchorEl"===p){var n=_(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,p,_]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:O(e,H.vertical)+t,horizontal:x(e,H.horizontal)}}),[H.horizontal,H.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===p)return{top:null,left:null,transformOrigin:j(r)};var o=Z(t),i=o.top-r.vertical,c=o.left-r.horizontal,u=i+n.height,l=c+n.width,s=Object(m.a)(E(a)),f=s.innerHeight-A,d=s.innerWidth-A;if(i<A){var h=i-A;i-=h,r.vertical+=h}else if(u>f){var v=u-f;i-=v,r.vertical+=v}if(c<A){var b=c-A;c-=b,r.horizontal+=b}else if(l>d){var y=l-d;c-=y,r.horizontal+=y}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(c),"px"),transformOrigin:j(r)}}),[a,p,Z,ee,te,A]),re=i.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){J.current=h.findDOMNode(e)}),[]);i.useEffect((function(){U&&re()})),i.useImperativeHandle(n,(function(){return U?{updatePosition:function(){re()}}:null}),[U,re]),i.useEffect((function(){if(U){var e=Object(v.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[U,re]);var ie=$;"auto"!==$||V.muiSupportAuto||(ie=void 0);var ae=C||(a?Object(f.a)(E(a)).body:void 0);return i.createElement(y.a,Object(r.a)({container:ae,open:U,ref:t,BackdropProps:{invisible:!0},className:Object(s.a)(S.root,L)},Q),i.createElement(V,Object(r.a)({appear:!0,in:U,onEnter:P,onEntered:R,onExit:F,onExited:D,onExiting:B,timeout:ie},X,{onEntering:Object(b.a)((function(e,t){M&&M(e,t),re()}),X.onEntering)}),i.createElement(w.a,Object(r.a)({elevation:I,ref:oe},G,{className:Object(s.a)(S.paper,G.className)}),k)))})),S=Object(p.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(k),L=n(278),C=n(103),T=n(98),I={vertical:"top",horizontal:"right"},_={vertical:"top",horizontal:"left"},N=i.forwardRef((function(e,t){var n=e.autoFocus,a=void 0===n||n,c=e.children,u=e.classes,l=e.disableAutoFocusItem,f=void 0!==l&&l,d=e.MenuListProps,p=void 0===d?{}:d,v=e.onClose,m=e.onEntering,b=e.open,y=e.PaperProps,g=void 0===y?{}:y,w=e.PopoverClasses,O=e.transitionDuration,x=void 0===O?"auto":O,j=e.TransitionProps,E=(j=void 0===j?{}:j).onEntering,k=Object(o.a)(j,["onEntering"]),N=e.variant,A=void 0===N?"selectedMenu":N,P=Object(o.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),R=Object(T.a)(),M=a&&!f&&b,F=i.useRef(null),D=i.useRef(null),B=-1;i.Children.map(c,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==A&&e.props.selected||-1===B)&&(B=t))}));var U=i.Children.map(c,(function(e,t){return t===B?i.cloneElement(e,{ref:function(t){D.current=h.findDOMNode(t),Object(C.a)(e.ref,t)}}):e}));return i.createElement(S,Object(r.a)({getContentAnchorEl:function(){return D.current},classes:w,onClose:v,TransitionProps:Object(r.a)({onEntering:function(e,t){F.current&&F.current.adjustStyleForScrollbar(e,R),m&&m(e,t),E&&E(e,t)}},k),anchorOrigin:"rtl"===R.direction?I:_,transformOrigin:"rtl"===R.direction?I:_,PaperProps:Object(r.a)({},g,{classes:Object(r.a)({},g.classes,{root:u.paper})}),open:b,ref:t,transitionDuration:x},P),i.createElement(L.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:F,autoFocus:a&&(-1===B||f),autoFocusItem:M,variant:A},p,{className:Object(s.a)(u.list,p.className)}),U))})),A=Object(p.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(N),P=n(133),R=n(44),M=n(153);function F(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var D=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,p=e.children,h=e.classes,v=e.className,m=e.defaultValue,b=e.disabled,y=e.displayEmpty,g=e.IconComponent,w=e.inputRef,O=e.labelId,x=e.MenuProps,j=void 0===x?{}:x,E=e.multiple,k=e.name,S=e.onBlur,L=e.onChange,C=e.onClose,T=e.onFocus,I=e.onOpen,_=e.open,N=e.readOnly,D=e.renderValue,B=e.SelectDisplayProps,U=void 0===B?{}:B,z=e.tabIndex,G=(e.type,e.value),W=e.variant,H=void 0===W?"standard":W,K=Object(o.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),V=Object(M.a)({controlled:G,default:m,name:"Select"}),q=Object(c.a)(V,2),$=q[0],Y=q[1],X=i.useRef(null),Q=i.useState(null),J=Q[0],Z=Q[1],ee=i.useRef(null!=_).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],ce=Object(R.a)(t,w);i.useImperativeHandle(ce,(function(){return{focus:function(){J.focus()},node:X.current,value:$}}),[J,$]),i.useEffect((function(){a&&J&&J.focus()}),[a,J]),i.useEffect((function(){if(J){var e=Object(f.a)(J).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&J.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[O,J]);var ue,le,se=function(e,t){e?I&&I(t):C&&C(t),ee||(re(u?null:J.clientWidth),ae(e))},fe=i.Children.toArray(p),de=function(e){return function(t){var n;if(E||se(!1,t),E){n=Array.isArray($)?$.slice():[];var r=$.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),$!==n&&(Y(n),L&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:k}}),L(t,e)))}},pe=null!==J&&(ee?_:ie);delete K["aria-invalid"];var he=[],ve=!1;(Object(P.b)({value:$})||y)&&(D?ue=D($):ve=!0);var me=fe.map((function(e){if(!i.isValidElement(e))return null;var t;if(E){if(!Array.isArray($))throw new Error(Object(l.a)(2));(t=$.some((function(t){return F(t,e.props.value)})))&&ve&&he.push(e.props.children)}else(t=F($,e.props.value))&&ve&&(le=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ve&&(ue=E?he.join(", "):le);var be,ye=ne;!u&&ee&&J&&(ye=J.clientWidth),be="undefined"!==typeof z?z:b?null:0;var ge=U.id||(k?"mui-component-select-".concat(k):void 0);return i.createElement(i.Fragment,null,i.createElement("div",Object(r.a)({className:Object(s.a)(h.root,h.select,h.selectMenu,h[H],v,b&&h.disabled),ref:Z,tabIndex:be,role:"button","aria-disabled":b?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[O,ge].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))}},onMouseDown:b||N?null:function(e){0===e.button&&(e.preventDefault(),J.focus(),se(!0,e))},onBlur:function(e){!pe&&S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:k}}),S(e))},onFocus:T},U,{id:ge}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ue),i.createElement("input",Object(r.a)({value:Array.isArray($)?$.join(","):$,name:k,ref:X,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];Y(n.props.value),L&&L(e,n)}},tabIndex:-1,className:h.nativeInput,autoFocus:a},K)),i.createElement(g,{className:Object(s.a)(h.icon,h["icon".concat(Object(d.a)(H))],pe&&h.iconOpen,b&&h.disabled)}),i.createElement(A,Object(r.a)({id:"menu-".concat(k||""),anchorEl:J,open:pe,onClose:function(e){se(!1,e)}},j,{MenuListProps:Object(r.a)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},j.MenuListProps),PaperProps:Object(r.a)({},j.PaperProps,{style:Object(r.a)({minWidth:ye},null!=j.PaperProps?j.PaperProps.style:null)})}),me))})),B=n(94),U=n(93),z=n(89),G=Object(z.a)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),W=n(265),H=i.forwardRef((function(e,t){var n=e.classes,a=e.className,c=e.disabled,u=e.IconComponent,l=e.inputRef,f=e.variant,p=void 0===f?"standard":f,h=Object(o.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",Object(r.a)({className:Object(s.a)(n.root,n.select,n[p],a,c&&n.disabled),disabled:c,ref:l||t},h)),e.multiple?null:i.createElement(u,{className:Object(s.a)(n.icon,n["icon".concat(Object(d.a)(p))],c&&n.disabled)}))})),K=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},V=i.createElement(W.a,null),q=i.forwardRef((function(e,t){var n=e.children,a=e.classes,c=e.IconComponent,u=void 0===c?G:c,l=e.input,s=void 0===l?V:l,f=e.inputProps,d=(e.variant,Object(o.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=Object(U.a)(),h=Object(B.a)({props:e,muiFormControl:p,states:["variant"]});return i.cloneElement(s,Object(r.a)({inputComponent:H,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:h.variant,type:void 0},f,s?s.props.inputProps:{}),ref:t},d))}));q.muiName="Select";Object(p.a)(K,{name:"MuiNativeSelect"})(q);var $=n(266),Y=n(281),X=K,Q=i.createElement(W.a,null),J=i.createElement($.a,null),Z=i.forwardRef((function e(t,n){var c=t.autoWidth,u=void 0!==c&&c,l=t.children,s=t.classes,f=t.displayEmpty,d=void 0!==f&&f,p=t.IconComponent,h=void 0===p?G:p,v=t.id,m=t.input,b=t.inputProps,y=t.label,g=t.labelId,w=t.labelWidth,O=void 0===w?0:w,x=t.MenuProps,j=t.multiple,E=void 0!==j&&j,k=t.native,S=void 0!==k&&k,L=t.onClose,C=t.onOpen,T=t.open,I=t.renderValue,_=t.SelectDisplayProps,N=t.variant,A=void 0===N?"standard":N,P=Object(o.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),R=S?H:D,M=Object(U.a)(),F=Object(B.a)({props:t,muiFormControl:M,states:["variant"]}).variant||A,z=m||{standard:Q,outlined:i.createElement(Y.a,{label:y,labelWidth:O}),filled:J}[F];return i.cloneElement(z,Object(r.a)({inputComponent:R,inputProps:Object(r.a)({children:l,IconComponent:h,variant:F,type:void 0,multiple:E},S?{id:v}:{autoWidth:u,displayEmpty:d,labelId:g,MenuProps:x,onClose:L,onOpen:C,open:T,renderValue:I,SelectDisplayProps:Object(r.a)({id:v},_)},b,{classes:b?Object(a.a)({baseClasses:s,newClasses:b.classes,Component:e}):s},m?m.props.inputProps:{}),ref:n},P))}));Z.muiName="Select";t.a=Object(p.a)(X,{name:"MuiSelect"})(Z)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(48),c=n(205),u=n(257),l=n(74),s=n(259),f=n(124),d=n(44),p=n(82),h=n(166);var v=n(146),m=n(119),b=n(169),y=n(152);function g(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(m.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&g(e,o)}))}function x(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function j(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(y.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Object(b.a)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(w(i)+a,"px"),n=Object(l.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(w(e)+a,"px")}))}var c=i.parentElement,u="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var E=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(v.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&g(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);O(t,e.mountNode,e.modalRef,r,!0);var o=x(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=j(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=x(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&g(e.modalRef,!0),O(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&g(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var k=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,c=void 0!==o&&o,u=e.disableRestoreFocus,s=void 0!==u&&u,f=e.getDoc,p=e.isEnabled,h=e.open,v=i.useRef(),m=i.useRef(null),b=i.useRef(null),y=i.useRef(),g=i.useRef(null),w=i.useCallback((function(e){g.current=a.findDOMNode(e)}),[]),O=Object(d.a)(t.ref,w),x=i.useRef();return i.useEffect((function(){x.current=h}),[h]),!x.current&&h&&"undefined"!==typeof window&&(y.current=f().activeElement),i.useEffect((function(){if(h){var e=Object(l.a)(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!c&&p()&&!v.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():v.current=!1)},n=function(t){!c&&p()&&9===t.keyCode&&e.activeElement===g.current&&(v.current=!0,t.shiftKey?b.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,c,s,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:O}),i.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))},S={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},L=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,c=e.open,u=Object(r.a)(e,["invisible","open"]);return c?i.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},u,{style:Object(o.a)({},S.root,a?S.invisible:{},u.style)})):null}));var C=new E,T=i.forwardRef((function(e,t){var n=Object(c.a)(),v=Object(u.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),m=v.BackdropComponent,b=void 0===m?L:m,y=v.BackdropProps,w=v.children,O=v.closeAfterTransition,x=void 0!==O&&O,j=v.container,E=v.disableAutoFocus,S=void 0!==E&&E,T=v.disableBackdropClick,I=void 0!==T&&T,_=v.disableEnforceFocus,N=void 0!==_&&_,A=v.disableEscapeKeyDown,P=void 0!==A&&A,R=v.disablePortal,M=void 0!==R&&R,F=v.disableRestoreFocus,D=void 0!==F&&F,B=v.disableScrollLock,U=void 0!==B&&B,z=v.hideBackdrop,G=void 0!==z&&z,W=v.keepMounted,H=void 0!==W&&W,K=v.manager,V=void 0===K?C:K,q=v.onBackdropClick,$=v.onClose,Y=v.onEscapeKeyDown,X=v.onRendered,Q=v.open,J=Object(r.a)(v,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=i.useState(!0),ee=Z[0],te=Z[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=Object(d.a)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),ce=function(){return Object(l.a)(re.current)},ue=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},le=function(){V.mount(ue(),{disableScrollLock:U}),oe.current.scrollTop=0},se=Object(p.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(j)||ce().body;V.add(ue(),e),oe.current&&le()})),fe=i.useCallback((function(){return V.isTopModal(ue())}),[V]),de=Object(p.a)((function(e){re.current=e,e&&(X&&X(),Q&&fe()?le():g(oe.current,!0))})),pe=i.useCallback((function(){V.remove(ue())}),[V]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){Q?se():ae&&x||pe()}),[Q,pe,ae,x,se]),!H&&!Q&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),ve={};return void 0===w.props.tabIndex&&(ve.tabIndex=w.props.tabIndex||"-1"),ae&&(ve.onEnter=Object(f.a)((function(){te(!1)}),w.props.onEnter),ve.onExited=Object(f.a)((function(){te(!0),x&&pe()}),w.props.onExited)),i.createElement(s.a,{ref:de,container:j,disablePortal:M},i.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),P||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},role:"presentation"},J,{style:Object(o.a)({},he.root,!Q&&ee?he.hidden:{},J.style)}),G?null:i.createElement(b,Object(o.a)({open:Q,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!I&&$&&$(e,"backdropClick"))}},y)),i.createElement(k,{disableEnforceFocus:N,disableAutoFocus:S,disableRestoreFocus:D,getDoc:ce,isEnabled:fe,open:Q},i.cloneElement(w,ve))))}));t.a=T},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(101),u=n(153),l=n(93),s=n(23),f=n(263),d=i.forwardRef((function(e,t){var n=e.autoFocus,s=e.checked,d=e.checkedIcon,p=e.classes,h=e.className,v=e.defaultChecked,m=e.disabled,b=e.icon,y=e.id,g=e.inputProps,w=e.inputRef,O=e.name,x=e.onBlur,j=e.onChange,E=e.onFocus,k=e.readOnly,S=e.required,L=e.tabIndex,C=e.type,T=e.value,I=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),_=Object(u.a)({controlled:s,default:Boolean(v),name:"SwitchBase",state:"checked"}),N=Object(c.a)(_,2),A=N[0],P=N[1],R=Object(l.a)(),M=m;R&&"undefined"===typeof M&&(M=R.disabled);var F="checkbox"===C||"radio"===C;return i.createElement(f.a,Object(r.a)({component:"span",className:Object(a.a)(p.root,h,A&&p.checked,M&&p.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:function(e){E&&E(e),R&&R.onFocus&&R.onFocus(e)},onBlur:function(e){x&&x(e),R&&R.onBlur&&R.onBlur(e)},ref:t},I),i.createElement("input",Object(r.a)({autoFocus:n,checked:s,defaultChecked:v,className:p.input,disabled:M,id:F&&y,name:O,onChange:function(e){var t=e.target.checked;P(t),j&&j(e,t)},readOnly:k,ref:w,required:S,tabIndex:L,type:C,value:T},g)),A?d:b)})),p=Object(s.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(d),h=n(89),v=Object(h.a)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),m=Object(h.a)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),b=n(60),y=Object(h.a)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),g=n(31),w=i.createElement(m,null),O=i.createElement(v,null),x=i.createElement(y,null),j=i.forwardRef((function(e,t){var n=e.checkedIcon,c=void 0===n?w:n,u=e.classes,l=e.color,s=void 0===l?"secondary":l,f=e.icon,d=void 0===f?O:f,h=e.indeterminate,v=void 0!==h&&h,m=e.indeterminateIcon,b=void 0===m?x:m,y=e.inputProps,j=e.size,E=void 0===j?"medium":j,k=Object(o.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),S=v?b:d,L=v?b:c;return i.createElement(p,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(u.root,u["color".concat(Object(g.a)(s))],v&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:s,inputProps:Object(r.a)({"data-indeterminate":v},y),icon:i.cloneElement(S,{fontSize:void 0===S.props.fontSize&&"small"===E?E:S.props.fontSize}),checkedIcon:i.cloneElement(L,{fontSize:void 0===L.props.fontSize&&"small"===E?E:L.props.fontSize}),ref:t},k))}));t.a=Object(s.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(b.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(b.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(j)},,function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=(n(142),n(48)),c=n(74),u=n(19),l=n(23),s=n(132),f=i.forwardRef((function(e,t){var n=e.children,a=e.classes,c=e.className,l=e.component,f=void 0===l?"ul":l,d=e.dense,p=void 0!==d&&d,h=e.disablePadding,v=void 0!==h&&h,m=e.subheader,b=Object(o.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(s.a.Provider,{value:y},i.createElement(f,Object(r.a)({className:Object(u.a)(a.root,c,p&&a.dense,!v&&a.padding,m&&a.subheader),ref:t},b),m,n))})),d=Object(l.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(f),p=n(169),h=n(44);function v(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function m(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function b(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function y(e,t,n,r,o,i){for(var a=!1,c=o(e,t,!!t&&n);c;){if(c===e.firstChild){if(a)return;a=!0}var u=!r&&(c.disabled||"true"===c.getAttribute("aria-disabled"));if(c.hasAttribute("tabindex")&&b(c,i)&&!u)return void c.focus();c=o(e,c,n)}}var g="undefined"===typeof window?i.useEffect:i.useLayoutEffect,w=i.forwardRef((function(e,t){var n=e.actions,u=e.autoFocus,l=void 0!==u&&u,s=e.autoFocusItem,f=void 0!==s&&s,w=e.children,O=e.className,x=e.disabledItemsFocusable,j=void 0!==x&&x,E=e.disableListWrap,k=void 0!==E&&E,S=e.onKeyDown,L=e.variant,C=void 0===L?"selectedMenu":L,T=Object(o.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),I=i.useRef(null),_=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});g((function(){l&&I.current.focus()}),[l]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!I.current.style.width;if(e.clientHeight<I.current.clientHeight&&n){var r="".concat(Object(p.a)(!0),"px");I.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,I.current.style.width="calc(100% + ".concat(r,")")}return I.current}}}),[]);var N=i.useCallback((function(e){I.current=a.findDOMNode(e)}),[]),A=Object(h.a)(N,t),P=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===P)&&(P=t))}));var R=i.Children.map(w,(function(e,t){if(t===P){var n={};return f&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(d,Object(r.a)({role:"menu",ref:A,className:O,onKeyDown:function(e){var t=I.current,n=e.key,r=Object(c.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),y(t,r,k,j,v);else if("ArrowUp"===n)e.preventDefault(),y(t,r,k,j,m);else if("Home"===n)e.preventDefault(),y(t,null,k,j,v);else if("End"===n)e.preventDefault(),y(t,null,k,j,m);else if(1===n.length){var o=_.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var u=r&&!o.repeating&&b(r,o);o.previousKeyMatched&&(u||y(t,r,!1,j,v,o))?e.preventDefault():o.previousKeyMatched=!1}S&&S(e)},tabIndex:l?0:-1},T),R)}));t.a=w},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(94),u=n(93),l=n(23),s=n(31),f=i.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=(e.color,e.component),p=void 0===d?"label":d,h=(e.disabled,e.error,e.filled,e.focused,e.required,Object(o.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),v=Object(u.a)(),m=Object(c.a)({props:e,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]});return i.createElement(p,Object(r.a)({className:Object(a.a)(l.root,l["color".concat(Object(s.a)(m.color||"primary"))],f,m.disabled&&l.disabled,m.error&&l.error,m.filled&&l.filled,m.focused&&l.focused,m.required&&l.required),ref:t},h),n,m.required&&i.createElement("span",{"aria-hidden":!0,className:Object(a.a)(l.asterisk,m.error&&l.error)},"\u2009","*"))})),d=Object(l.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f),p=i.forwardRef((function(e,t){var n=e.classes,l=e.className,s=e.disableAnimation,f=void 0!==s&&s,p=(e.margin,e.shrink),h=(e.variant,Object(o.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),v=Object(u.a)(),m=p;"undefined"===typeof m&&v&&(m=v.filled||v.focused||v.adornedStart);var b=Object(c.a)({props:e,muiFormControl:v,states:["margin","variant"]});return i.createElement(d,Object(r.a)({"data-shrink":m,className:Object(a.a)(n.root,l,v&&n.formControl,!f&&n.animated,m&&n.shrink,"dense"===b.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[b.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))}));t.a=Object(l.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(p)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(265),u=n(266),l=n(281),s=n(279),f=n(264),d=n(94),p=n(93),h=n(23),v=i.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,l=e.component,s=void 0===l?"p":l,f=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(o.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=Object(p.a)(),v=Object(d.a)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(s,Object(r.a)({className:Object(a.a)(c.root,("filled"===v.variant||"outlined"===v.variant)&&c.contained,u,v.disabled&&c.disabled,v.error&&c.error,v.filled&&c.filled,v.focused&&c.focused,v.required&&c.required,"dense"===v.margin&&c.marginDense),ref:t},f)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):n)})),m=Object(h.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(v),b=n(274),y={standard:c.a,filled:u.a,outlined:l.a},g=i.forwardRef((function(e,t){var n=e.autoComplete,c=e.autoFocus,u=void 0!==c&&c,l=e.children,d=e.classes,p=e.className,h=e.color,v=void 0===h?"primary":h,g=e.defaultValue,w=e.disabled,O=void 0!==w&&w,x=e.error,j=void 0!==x&&x,E=e.FormHelperTextProps,k=e.fullWidth,S=void 0!==k&&k,L=e.helperText,C=e.hiddenLabel,T=e.id,I=e.InputLabelProps,_=e.inputProps,N=e.InputProps,A=e.inputRef,P=e.label,R=e.multiline,M=void 0!==R&&R,F=e.name,D=e.onBlur,B=e.onChange,U=e.onFocus,z=e.placeholder,G=e.required,W=void 0!==G&&G,H=e.rows,K=e.rowsMax,V=e.maxRows,q=e.minRows,$=e.select,Y=void 0!==$&&$,X=e.SelectProps,Q=e.type,J=e.value,Z=e.variant,ee=void 0===Z?"standard":Z,te=Object(o.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var ne={};if("outlined"===ee&&(I&&"undefined"!==typeof I.shrink&&(ne.notched=I.shrink),P)){var re,oe=null!==(re=null===I||void 0===I?void 0:I.required)&&void 0!==re?re:W;ne.label=i.createElement(i.Fragment,null,P,oe&&"\xa0*")}Y&&(X&&X.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=L&&T?"".concat(T,"-helper-text"):void 0,ae=P&&T?"".concat(T,"-label"):void 0,ce=y[ee],ue=i.createElement(ce,Object(r.a)({"aria-describedby":ie,autoComplete:n,autoFocus:u,defaultValue:g,fullWidth:S,multiline:M,name:F,rows:H,rowsMax:K,maxRows:V,minRows:q,type:Q,value:J,id:T,inputRef:A,onBlur:D,onChange:B,onFocus:U,placeholder:z,inputProps:_},ne,N));return i.createElement(f.a,Object(r.a)({className:Object(a.a)(d.root,p),disabled:O,error:j,fullWidth:S,hiddenLabel:C,ref:t,required:W,color:v,variant:ee},te),P&&i.createElement(s.a,Object(r.a)({htmlFor:T,id:ae},I),P),Y?i.createElement(b.a,Object(r.a)({"aria-describedby":ie,id:T,labelId:ae,value:J,input:ue},X),l):ue,L&&i.createElement(m,Object(r.a)({id:ie},E),L))}));t.a=Object(h.a)({root:{}},{name:"MuiTextField"})(g)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(54),l=n(23),s=n(98),f=n(31),d=i.forwardRef((function(e,t){e.children;var n=e.classes,c=e.className,l=e.label,d=e.labelWidth,p=e.notched,h=e.style,v=Object(o.a)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===Object(s.a)().direction?"right":"left";if(void 0!==l)return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,c),ref:t,style:h},v),i.createElement("legend",{className:Object(a.a)(n.legendLabelled,p&&n.legendNotched)},l?i.createElement("span",null,l):i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var b=d>0?.75*d+8:.01;return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(u.a)({},"padding".concat(Object(f.a)(m)),8),h),className:Object(a.a)(n.root,c),ref:t},v),i.createElement("legend",{className:n.legend,style:{width:p?b:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),p=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(d),h=i.forwardRef((function(e,t){var n=e.classes,u=e.fullWidth,l=void 0!==u&&u,s=e.inputComponent,f=void 0===s?"input":s,d=e.label,h=e.labelWidth,v=void 0===h?0:h,m=e.multiline,b=void 0!==m&&m,y=e.notched,g=e.type,w=void 0===g?"text":g,O=Object(o.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(c.a,Object(r.a)({renderSuffix:function(e){return i.createElement(p,{className:n.notchedOutline,label:d,labelWidth:v,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:f,multiline:b,ref:t,type:w},O))}));h.muiName="Input";t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)}]);