/* 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;t2&&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;n0&&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;n2&&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(C0?(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":C1&&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&&a1&&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;n2&&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)return[e];for(var n=[],r=0;r=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,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}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 tn?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=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.length1?"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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;n0&&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<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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;s0&&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;r3?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;r1&&(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;r1?r-1:0),i=1;i1?r-1:0),i=1;i=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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.created1&&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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;a0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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))&&l0&&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.usageo)){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&&er?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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;i0&&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=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;n1&&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;t1&&void 0!==arguments[1]?arguments[1]:[""],n=[],r=y(e);d(e.schemes.extension,[r]);for(var i=0,u=Object.values(c);i=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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;n0;)for(e=Te,Te=[],n=e.length,t=0;t0);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.",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=0}))){for(var n=0;n0){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;r0&&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 et?-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=0?e.substr(0,c)+t[c]+n.substr(c+1):null;o(e[u],l)<0&&(c=u)}return a0)&&(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;n0){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=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;c1?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);rMath.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;o0)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;o0,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;l0?Promise.reject(n.failures[0]):r.length0: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=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;u0){f.optimisticOps=f.optimisticOps.filter((function(e){return e.trans!==i}));for(var y=0,g=Object.values(f.queries.query);y=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;n0?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=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;t0?"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;n1&&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-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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;de.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&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;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;n0&&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);n0&&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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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-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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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;r1?M-1:0),D=1;D=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;nI.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;u1)for(var n=1;n1?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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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=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=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=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;i2?n-2:0),i=2;i2?i-2:0),c=2;c2?n-2:0),a=2;a1?t-1:0),o=1;o1&&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;n0&&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