super-time-tracker-ui 0.1.30 → 0.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/standalone/next-output/BUILD_ID +1 -1
  2. package/dist/standalone/next-output/app-path-routes-manifest.json +1 -0
  3. package/dist/standalone/next-output/build-manifest.json +3 -3
  4. package/dist/standalone/next-output/routes-manifest.json +6 -0
  5. package/dist/standalone/next-output/server/app/_global-error.html +1 -1
  6. package/dist/standalone/next-output/server/app/_global-error.rsc +1 -1
  7. package/dist/standalone/next-output/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/standalone/next-output/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/standalone/next-output/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/dist/standalone/next-output/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/dist/standalone/next-output/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/dist/standalone/next-output/server/app/_not-found/page.js.nft.json +1 -1
  13. package/dist/standalone/next-output/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/dist/standalone/next-output/server/app/login/page.js.nft.json +1 -1
  15. package/dist/standalone/next-output/server/app/login/page_client-reference-manifest.js +1 -1
  16. package/dist/standalone/next-output/server/app/offline/page.js.nft.json +1 -1
  17. package/dist/standalone/next-output/server/app/offline/page_client-reference-manifest.js +1 -1
  18. package/dist/standalone/next-output/server/app/page.js.nft.json +1 -1
  19. package/dist/standalone/next-output/server/app/page_client-reference-manifest.js +1 -1
  20. package/dist/standalone/next-output/server/app/pomodoro/page.js.nft.json +1 -1
  21. package/dist/standalone/next-output/server/app/pomodoro/page_client-reference-manifest.js +1 -1
  22. package/dist/standalone/next-output/server/app/register/page.js.nft.json +1 -1
  23. package/dist/standalone/next-output/server/app/register/page_client-reference-manifest.js +1 -1
  24. package/dist/standalone/next-output/server/app/reporting/page.js.nft.json +1 -1
  25. package/dist/standalone/next-output/server/app/reporting/page_client-reference-manifest.js +1 -1
  26. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page.js.nft.json +1 -1
  27. package/dist/standalone/next-output/server/app/settings/ai-suggestions/page_client-reference-manifest.js +1 -1
  28. package/dist/standalone/next-output/server/app/settings/cloud-sync/page.js.nft.json +1 -1
  29. package/dist/standalone/next-output/server/app/settings/cloud-sync/page_client-reference-manifest.js +1 -1
  30. package/dist/standalone/next-output/server/app/settings/data/page.js.nft.json +1 -1
  31. package/dist/standalone/next-output/server/app/settings/data/page_client-reference-manifest.js +1 -1
  32. package/dist/standalone/next-output/server/app/settings/display/page.js.nft.json +1 -1
  33. package/dist/standalone/next-output/server/app/settings/display/page_client-reference-manifest.js +1 -1
  34. package/dist/standalone/next-output/server/app/settings/goals/page.js.nft.json +1 -1
  35. package/dist/standalone/next-output/server/app/settings/goals/page_client-reference-manifest.js +1 -1
  36. package/dist/standalone/next-output/server/app/settings/notifications/page.js.nft.json +1 -1
  37. package/dist/standalone/next-output/server/app/settings/notifications/page_client-reference-manifest.js +1 -1
  38. package/dist/standalone/next-output/server/app/settings/page.js.nft.json +1 -1
  39. package/dist/standalone/next-output/server/app/settings/page_client-reference-manifest.js +1 -1
  40. package/dist/standalone/next-output/server/app/settings/pomodoro/page.js.nft.json +1 -1
  41. package/dist/standalone/next-output/server/app/settings/pomodoro/page_client-reference-manifest.js +1 -1
  42. package/dist/standalone/next-output/server/app/settings/quick-actions/page/app-paths-manifest.json +3 -0
  43. package/dist/standalone/next-output/server/app/settings/quick-actions/page/build-manifest.json +17 -0
  44. package/dist/standalone/next-output/server/app/settings/quick-actions/page/next-font-manifest.json +11 -0
  45. package/dist/standalone/next-output/server/app/settings/quick-actions/page/react-loadable-manifest.json +1 -0
  46. package/dist/standalone/next-output/server/app/settings/quick-actions/page/server-reference-manifest.json +4 -0
  47. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js +16 -0
  48. package/dist/standalone/next-output/server/app/settings/quick-actions/page.js.nft.json +1 -0
  49. package/dist/standalone/next-output/server/app/settings/quick-actions/page_client-reference-manifest.js +3 -0
  50. package/dist/standalone/next-output/server/app/settings/tags/page.js.nft.json +1 -1
  51. package/dist/standalone/next-output/server/app/settings/tags/page_client-reference-manifest.js +1 -1
  52. package/dist/standalone/next-output/server/app/sheets/page.js.nft.json +1 -1
  53. package/dist/standalone/next-output/server/app/sheets/page_client-reference-manifest.js +1 -1
  54. package/dist/standalone/next-output/server/app/today/page.js.nft.json +1 -1
  55. package/dist/standalone/next-output/server/app/today/page_client-reference-manifest.js +1 -1
  56. package/dist/standalone/next-output/server/app-paths-manifest.json +1 -0
  57. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0.ztg_g._.js +1 -1
  58. package/dist/standalone/next-output/server/chunks/[root-of-the-server]__0a7wn1j._.js +1 -1
  59. package/dist/standalone/next-output/server/chunks/ssr/0z~i_next_dist_esm_build_templates_app-page_0r4hd.l.js +4 -0
  60. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0bowsf1._.js +1 -1
  61. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0k~hq1g._.js +1 -1
  62. package/dist/standalone/next-output/server/chunks/ssr/[root-of-the-server]__0oqgod_._.js +3 -0
  63. package/dist/standalone/next-output/server/chunks/ssr/_002dssm._.js +1 -1
  64. package/dist/standalone/next-output/server/chunks/ssr/_00ic3j9._.js +3 -0
  65. package/dist/standalone/next-output/server/chunks/ssr/_00x~ete._.js +1 -1
  66. package/dist/standalone/next-output/server/chunks/ssr/_07p~0bg._.js +3 -0
  67. package/dist/standalone/next-output/server/chunks/ssr/{_10n~~xo._.js → _088~qfj._.js} +3 -3
  68. package/dist/standalone/next-output/server/chunks/ssr/_08qe8j9._.js +3 -0
  69. package/dist/standalone/next-output/server/chunks/ssr/_0agxxbf._.js +1 -1
  70. package/dist/standalone/next-output/server/chunks/ssr/_0c0txs~._.js +1 -1
  71. package/dist/standalone/next-output/server/chunks/ssr/_0cxg26n._.js +3 -0
  72. package/dist/standalone/next-output/server/chunks/ssr/_0l6-7m4._.js +1 -1
  73. package/dist/standalone/next-output/server/chunks/ssr/_0m.iebm._.js +3 -0
  74. package/dist/standalone/next-output/server/chunks/ssr/_0nnp~ae._.js +3 -0
  75. package/dist/standalone/next-output/server/chunks/ssr/_0q~8_bm._.js +3 -0
  76. package/dist/standalone/next-output/server/chunks/ssr/_0v9kigy._.js +3 -0
  77. package/dist/standalone/next-output/server/chunks/ssr/_0y3ypyx._.js +1 -1
  78. package/dist/standalone/next-output/server/chunks/ssr/_13crob-._.js +1 -1
  79. package/dist/standalone/next-output/server/chunks/ssr/_13y76jr._.js +1 -1
  80. package/dist/standalone/next-output/server/chunks/ssr/_next-internal_server_app_settings_quick-actions_page_actions_031bu28.js +3 -0
  81. package/dist/standalone/next-output/server/chunks/ssr/components_tracker-app_tsx_0qs9.7y._.js +1 -1
  82. package/dist/standalone/next-output/server/middleware-build-manifest.js +3 -3
  83. package/dist/standalone/next-output/server/middleware-manifest.json +1 -1
  84. package/dist/standalone/next-output/server/next-font-manifest.js +1 -1
  85. package/dist/standalone/next-output/server/next-font-manifest.json +4 -0
  86. package/dist/standalone/next-output/server/pages/500.html +1 -1
  87. package/dist/standalone/next-output/static/chunks/0.4obx1-sv46-.js +1 -0
  88. package/dist/standalone/next-output/static/chunks/029pvmqxn_t4z.js +1 -0
  89. package/dist/standalone/next-output/static/chunks/04~.lbegcwd41.js +1 -0
  90. package/dist/standalone/next-output/static/chunks/05tg.ske01w0a.js +1 -0
  91. package/dist/standalone/next-output/static/chunks/06xf_oh5oqbs2.js +1 -0
  92. package/dist/standalone/next-output/static/chunks/09acxdggb87~w.js +1 -0
  93. package/dist/standalone/next-output/static/chunks/09tjbwcc~3p_e.js +1 -0
  94. package/dist/standalone/next-output/static/chunks/0crn_fc6.6569.js +1 -0
  95. package/dist/standalone/next-output/static/chunks/0fkr5kz7p1r5l.js +1 -0
  96. package/dist/standalone/next-output/static/chunks/0lhj2p9.4g20~.js +1 -0
  97. package/dist/standalone/next-output/static/chunks/0o4zvrm3q.9k3.js +1 -0
  98. package/dist/standalone/next-output/static/chunks/0pqilbd~jphqs.css +3 -0
  99. package/dist/standalone/next-output/static/chunks/0q05k1wfzh4_a.js +1 -0
  100. package/dist/standalone/next-output/static/chunks/0vov8ngx9~8m2.js +1 -0
  101. package/dist/standalone/next-output/static/chunks/0watkjb-fw0vn.js +1 -0
  102. package/dist/standalone/next-output/static/chunks/{0znvz4n7decra.js → 0x9s1xcq69ppx.js} +5 -5
  103. package/dist/standalone/next-output/static/chunks/0xj4dodycy1oc.js +1 -0
  104. package/dist/standalone/next-output/static/chunks/12eaief5vtso9.js +1 -0
  105. package/dist/standalone/next-output/static/chunks/13-nw2q_c_9mk.js +1 -0
  106. package/dist/standalone/next-output/static/chunks/14jtaz5s.4ih1.js +1 -0
  107. package/dist/standalone/package.json +1 -1
  108. package/package.json +1 -1
  109. package/dist/standalone/next-output/server/chunks/ssr/_0-hc~ba._.js +0 -3
  110. package/dist/standalone/next-output/server/chunks/ssr/_00_8gfw._.js +0 -3
  111. package/dist/standalone/next-output/server/chunks/ssr/_059wg4v._.js +0 -3
  112. package/dist/standalone/next-output/server/chunks/ssr/_08dnxqq._.js +0 -3
  113. package/dist/standalone/next-output/server/chunks/ssr/_0hs4c5u._.js +0 -3
  114. package/dist/standalone/next-output/server/chunks/ssr/_0nz4ym1._.js +0 -3
  115. package/dist/standalone/next-output/server/chunks/ssr/_0wg9~zr._.js +0 -3
  116. package/dist/standalone/next-output/static/chunks/00rjs5ywh4_np.css +0 -3
  117. package/dist/standalone/next-output/static/chunks/03d24rbiv.lx7.js +0 -1
  118. package/dist/standalone/next-output/static/chunks/03flgrd7bw9r5.js +0 -1
  119. package/dist/standalone/next-output/static/chunks/041fttxys-zjw.js +0 -1
  120. package/dist/standalone/next-output/static/chunks/055~9w5b9lao5.js +0 -1
  121. package/dist/standalone/next-output/static/chunks/09mbpw08eiqwx.js +0 -1
  122. package/dist/standalone/next-output/static/chunks/0bw3uow4-~3fr.js +0 -1
  123. package/dist/standalone/next-output/static/chunks/0d2d-s..s8cfz.js +0 -1
  124. package/dist/standalone/next-output/static/chunks/0h72~3~6gq3fn.js +0 -1
  125. package/dist/standalone/next-output/static/chunks/0hhu330gm_fnl.js +0 -1
  126. package/dist/standalone/next-output/static/chunks/0ls_5qyf15z5_.js +0 -1
  127. package/dist/standalone/next-output/static/chunks/0n0.21h11yrv2.js +0 -1
  128. package/dist/standalone/next-output/static/chunks/0n2~cs.u7bygu.js +0 -1
  129. package/dist/standalone/next-output/static/chunks/0sywv5h95uodq.js +0 -1
  130. package/dist/standalone/next-output/static/chunks/0xccil3r~k_7n.js +0 -1
  131. package/dist/standalone/next-output/static/chunks/0~z41.7~3tpw3.js +0 -1
  132. package/dist/standalone/next-output/static/chunks/14oa3e0hktvxi.js +0 -1
  133. package/dist/standalone/next-output/static/chunks/15ixzo9s2kj_o.js +0 -1
  134. /package/dist/standalone/next-output/static/{Ohbr2ePvonj7GxdJPkXBY → gS32e4Tv_70ot1IWBJddE}/_buildManifest.js +0 -0
  135. /package/dist/standalone/next-output/static/{Ohbr2ePvonj7GxdJPkXBY → gS32e4Tv_70ot1IWBJddE}/_clientMiddlewareManifest.js +0 -0
  136. /package/dist/standalone/next-output/static/{Ohbr2ePvonj7GxdJPkXBY → gS32e4Tv_70ot1IWBJddE}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7902,e=>{"use strict";var t=e.i(46549);e.s(["persist_ui_preference",0,function(e,r){e.read()!==r&&(e.write(r),e.notify(),(0,t.notify_settings_saved)())}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),a=e.i(28274);let i=null,o=Promise.resolve();function s(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==i&&clearTimeout(i),i=setTimeout(()=>{i=null,o=o.then(()=>(0,a.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function l(){(0,t.is_greedy_cloud_sync_enabled)()&&s()}e.s(["schedule_tracker_db_cloud_sync",0,l],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?l():s()}],39474)},42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(44066)._(e.r(78677)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${a}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(29158);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=i(e,n)),t&&(a.current=i(t,n))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(31047),a=e.r(63334);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(44066),o=e.r(54710),s=i._(e.r(29158)),l=e.r(42552),u=e.r(61717),c=e.r(37879),d=e.r(31047),f=e.r(20321);e.r(90503);let h=e.r(38520),_=e.r(19947),m=e.r(59246),p=e.r(99046);function g(t){var r,n;let a,i,g,[y,x]=(0,s.useOptimistic)(_.IDLE_LINK_STATUS),w=(0,s.useRef)(null),{href:v,as:k,children:E,prefetch:O=null,passHref:S,replace:T,shallow:j,scroll:N,onClick:D,onMouseEnter:A,onTouchStart:L,legacyBehavior:C=!1,onNavigate:P,transitionTypes:M,ref:G,unstable_dynamicOnHover:R,...Y}=t;a=E,C&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let F=s.default.useContext(u.AppRouterContext),U=!1!==O,I=!1!==O?null===(n=O)||"auto"===n?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,K="string"==typeof(r=k||v)?r:(0,l.formatUrl)(r);if(C){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(a)}let $=C?i&&"object"==typeof i&&i.ref:G,W=s.default.useCallback(e=>(null!==F&&(w.current=(0,_.mountLinkInstance)(e,K,F,I,U,x)),()=>{w.current&&((0,_.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,_.unmountPrefetchableInstance)(e)}),[U,K,F,I,x]),H={ref:(0,c.useMergedRef)(W,$),onClick(t){C||"function"!=typeof D||D(t),C&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,a,i,o,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);s.default.startTransition(()=>{d(r,a?"replace":"push",!1===i?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(t,K,w,T,N,P,M)},onMouseEnter(e){C||"function"!=typeof A||A(e),C&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),F&&U&&(0,_.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){C||"function"!=typeof L||L(e),C&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),F&&U&&(0,_.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(K)?H.href=K:C&&!S&&("a"!==i.type||"href"in i.props)||(H.href=(0,f.addBasePath)(K)),g=C?s.default.cloneElement(i,H):(0,o.jsx)("a",{...Y,...H,children:a}),(0,o.jsx)(b.Provider,{value:y,children:g})}e.r(10364);let b=(0,s.createContext)(_.IDLE_LINK_STATUS),y=()=>(0,s.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},25204,e=>{"use strict";var t=e.i(29158),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let a=(0,t.useRef)(e);a.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),a.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),a=e.i(32417),i=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[o,s]=(0,r.useState)(null),[l,u]=(0,r.useState)(!1),c=(0,a.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!c)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{s(e?.user.email??null)}).catch(()=>{s(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{s(t?.user.email??null)});return()=>{t.unsubscribe()}},[c]),{is_configured:c,email:o,is_pending:l,sign_out:(0,r.useCallback)(async()=>{u(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,i.notify_settings_saved)("Signed out"),e.refresh()}finally{u(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let a=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/pomodoro")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function i(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:a.map(n=>{let a=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${a?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":a?"page":void 0,children:n.label},n.href)})})}],45200);var o=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:r}=(0,o.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(i,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},2268,76003,38240,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:r.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function a(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,n],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return a()}],76003);var i=e.i(17798),o=e.i(46549),s=e.i(10464),l=e.i(35434),u=e.i(61834),c=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===a()?"light":"dark";(0,i.apply_theme)(e),(0,c.write_stored_theme)(e),s.theme_mode_preference.write(e),(0,u.write_document_preference_cookies)({theme_mode:e,theme:e}),s.theme_mode_preference.notify(),(0,l.notify_theme_subscribers)(),(0,o.notify_settings_saved)()}],38240)},1976,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),a=e.i(29158),i=e.i(37399),o=e.i(90463),s=e.i(46549),l=e.i(2268),u=e.i(28274),c=e.i(76003),d=e.i(35434),f=e.i(38240),h=e.i(25204),_=e.i(77882);let m="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["TopbarOverflowMenu",0,function(){let e=(0,n.useRouter)(),p=(0,n.usePathname)()??"/",g=(0,a.useSyncExternalStore)(d.subscribe_theme,c.get_theme_snapshot,c.get_theme_server_snapshot),b=(0,a.useSyncExternalStore)(l.cloud_sync_enabled_preference.subscribe,l.cloud_sync_enabled_preference.get_snapshot,l.cloud_sync_enabled_preference.get_server_snapshot),{email:y,is_configured:x,is_pending:w,sign_out:v}=(0,_.use_supabase_auth_session)(),[k,E]=(0,a.useState)(!1),O=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(!k)return;let e=e=>{null===O.current||O.current.contains(e.target)||E(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[k]);let S=()=>{E(!1)};return(0,h.use_escape_to_cancel)(S,k),(0,t.jsxs)("div",{className:"relative shrink-0",ref:O,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":k,"aria-haspopup":"menu",onClick:()=>E(e=>!e),children:(0,t.jsx)(i.HamburgerIcon,{})}),k?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[x&&null!==y?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:y,children:y})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/settings/tags",className:m,role:"menuitem",onClick:S,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/pomodoro",className:m,role:"menuitem",onClick:S,children:"Pomodoro"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/settings/cloud-sync",className:m,role:"menuitem",onClick:S,children:"Sync settings"})}),x?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitemcheckbox","aria-checked":"true"===b,onClick:()=>{let e="true"===b?"false":"true";l.cloud_sync_enabled_preference.write(e),l.cloud_sync_enabled_preference.notify(),(0,s.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==y&&(0,u.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===b?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===b?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),(0,f.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===g?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===g?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===y?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),e.push((0,o.build_auth_page_href)("sign_in",p))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${m} text-danger`,role:"menuitem",disabled:w,onClick:()=>{S(),v()},children:w?"Signing out…":"Sign out"})})]}):null]}):null]})}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),a=e.i(1976),i=e.i(45958),o=e.i(71060),s=e.i(29539);function l(){let e=((0,o.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(i.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(s.SettingsIcon,{})})}function u({current:e,parent:r}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(i.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(u,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(r.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(l,{}),(0,t.jsx)(a.TopbarOverflowMenu,{})]})]})]})})}],75404)},52405,e=>{"use strict";e.s(["get_input_class_name",0,function(e="default"){let t="box-border max-w-full min-w-0 w-full rounded-[0.65rem] border border-panel-border bg-input-bg px-3 py-2.5 font-inherit text-inherit transition-[background-color,border-color] duration-200 focus:border-input-focus-border focus:outline-none";return"compact"===e?`${t} px-2.5 py-2`:t}])},31113,e=>{"use strict";e.s(["normalize_stored_tag",0,function(e){let t=e.trim().replace(/^@+/,"");if(0===t.length)throw Error("Tag name must not be empty.");if(!/^\w+$/.test(t))throw Error("Tags may only contain letters, numbers, and underscores.");return`@${t}`}])},18774,e=>{"use strict";e.s(["format_display_tag",0,function(e){return e.startsWith("@")?e:`@${e}`}])},14260,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(18774),a=e.i(52405),i=e.i(31113);e.s(["TagAutocompleteInput",0,function({id:e,value:o,known_tags:s,placeholder:l,disabled:u=!1,autoFocus:c=!1,on_change:d}){let f=(0,r.useRef)(null),h=(0,r.useRef)(null),_=(0,r.useRef)(null),[m,p]=(0,r.useState)(0),[g,b]=(0,r.useState)(0),y=function(e,t){let r=e.slice(0,t),n=r.lastIndexOf("@");if(-1===n)return null;let a=r.slice(n+1);return/\s/.test(a)?null:{query:a,start_index:n,end_index:t}}(o,m),x=null===y?[]:function(e,t,r=10){let n=t.toLowerCase();return e.filter(e=>{let t=e.replace(/^@/,"").toLowerCase();return 0===n.length||t.startsWith(n)}).slice(0,r)}(s,y.query),w=null!==y&&function(e,t){if(!/^\w+$/.test(e))return!1;let r=e.toLowerCase();return t.some(e=>{try{return(0,i.normalize_stored_tag)(e).slice(1).toLowerCase()===r}catch{return!1}})}(y.query,s),v=null!==y&&x.length>0&&!w&&!u;(0,r.useLayoutEffect)(()=>{null!==_.current&&null!==f.current&&(f.current.setSelectionRange(_.current,_.current),p(_.current),_.current=null)},[o]),(0,r.useEffect)(()=>{b(0)},[o,m,x.length]);let k=()=>{p(f.current?.selectionStart??o.length)},E=()=>{b(0)},O=e=>{let t,r,a;if(null===y)return;let{next_text:i,next_cursor:s}=(t=(0,n.format_display_tag)(e),r=o.slice(0,y.start_index),a=o.slice(y.end_index),{next_text:`${r}${t}${a}`,next_cursor:r.length+t.length});_.current=s,d(i),E()};return(0,t.jsxs)("div",{className:"relative min-w-0",children:[(0,t.jsx)("input",{ref:f,id:e,type:"text",className:(0,a.get_input_class_name)(),value:o,placeholder:l,disabled:u,autoFocus:c,autoComplete:"off","aria-autocomplete":"list","aria-expanded":v,"aria-controls":v?`${e}-tag-suggestions`:void 0,onChange:e=>{d(e.target.value),p(e.target.selectionStart??e.target.value.length)},onClick:k,onKeyUp:k,onKeyDown:e=>{if(v){if("ArrowDown"===e.key){e.preventDefault(),b(e=>(e+1)%x.length);return}if("ArrowUp"===e.key){e.preventDefault(),b(e=>(e-1+x.length)%x.length);return}if("Enter"===e.key||"Tab"===e.key){e.preventDefault();let t=x[g];void 0!==t&&O(t);return}"Escape"===e.key&&(e.preventDefault(),E())}},onBlur:()=>{window.setTimeout(E,120)}}),v?(0,t.jsx)("ul",{ref:h,id:`${e}-tag-suggestions`,role:"listbox",className:"absolute left-0 right-0 top-full z-20 mt-1 max-h-48 list-none overflow-y-auto rounded-md border border-panel-border bg-panel p-1.5 shadow-md",children:x.map((e,r)=>(0,t.jsx)("li",{role:"option","aria-selected":r===g,children:(0,t.jsx)("button",{type:"button",className:`block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit hover:bg-surface-hover ${r===g?"bg-surface-hover":""}`,onMouseDown:t=>{t.preventDefault(),O(e)},children:(0,n.format_display_tag)(e)})},e))}):null]})}],14260)},66770,e=>{"use strict";e.s(["get_entry_list_sort_options",0,function(){return[{value:"newest",label:"Newest"},{value:"oldest",label:"Oldest"},{value:"duration",label:"Duration"},{value:"description",label:"Description"}]}])},35877,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DEBUG_LOGGING_STORAGE_KEY,default_value:r.DEBUG_LOGGING_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["debug_logging_preference",0,n])},85323,e=>{"use strict";var t=e.i(49087);e.s(["notify_desktop",0,function(e){if((0,t.notify_in_app)({title:e.title,body:e.body}),"u"<typeof Notification||"u">typeof document&&"visible"===document.visibilityState&&document.hasFocus()||"granted"!==Notification.permission)return;let{body:r,tag:n,title:a}=e,i={body:r,...void 0!==n?{tag:n}:{}};try{new Notification(a,i)}catch{}},"supports_desktop_notifications",0,function(){return"u">typeof Notification}])},48541,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DESKTOP_NOTIFICATIONS_STORAGE_KEY,default_value:r.DESKTOP_NOTIFICATIONS_DEFAULT,is_valid:e=>"true"===e||"false"===e});e.s(["desktop_notifications_preference",0,n])},69472,84545,50937,83327,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLAUDE_API_KEY_STORAGE_KEY,default_value:r.CLAUDE_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["claude_api_key_preference",0,n],69472);let a=(0,t.create_ui_preference_store)({storage_key:r.ENTRY_SUGGESTION_PROVIDER_STORAGE_KEY,default_value:r.ENTRY_SUGGESTION_PROVIDER_DEFAULT,is_valid:e=>"none"===e||"openai"===e||"claude"===e||"google_ai"===e});e.s(["entry_suggestion_provider_preference",0,a],84545);let i=(0,t.create_ui_preference_store)({storage_key:r.GOOGLE_AI_API_KEY_STORAGE_KEY,default_value:r.GOOGLE_AI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["google_ai_api_key_preference",0,i],50937);let o=(0,t.create_ui_preference_store)({storage_key:r.OPENAI_API_KEY_STORAGE_KEY,default_value:r.OPENAI_API_KEY_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["openai_api_key_preference",0,o],83327)},83821,60145,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.DAILY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.DAILY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=30&&t<=720}});e.s(["daily_focus_target_minutes_preference",0,n],83821);let a=(0,t.create_ui_preference_store)({storage_key:r.WEEKLY_FOCUS_TARGET_MINUTES_STORAGE_KEY,default_value:r.WEEKLY_FOCUS_TARGET_MINUTES_DEFAULT,is_valid:e=>{if(!/^\d+$/.test(e))return!1;let t=Number.parseInt(e,10);return t>=60&&t<=4200}});e.s(["weekly_focus_target_minutes_preference",0,a],60145)},1238,51703,74597,77130,56442,73228,e=>{"use strict";e.s(["parse_focus_goals_by_name",0,function(e){if(0===e.length)return{};try{let t=JSON.parse(e);if(null===t||"object"!=typeof t||Array.isArray(t))return{};let r={};for(let[e,n]of Object.entries(t)){if(null===n||"object"!=typeof n)continue;let t={};"string"==typeof n.daily&&n.daily.length>0&&(t.daily=n.daily),"string"==typeof n.weekly&&n.weekly.length>0&&(t.weekly=n.weekly),(void 0!==t.daily||void 0!==t.weekly)&&(r[e]=t)}return r}catch{return{}}}],1238);var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_SCOPE_STORAGE_KEY,default_value:r.FOCUS_GOAL_SCOPE_DEFAULT,is_valid:e=>"global"===e||"sheet"===e||"tag"===e});e.s(["focus_goal_scope_preference",0,n],51703);let a=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_SHEET_NAME_STORAGE_KEY,default_value:r.FOCUS_GOAL_SHEET_NAME_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["focus_goal_sheet_name_preference",0,a],74597);let i=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOAL_TAG_NAME_STORAGE_KEY,default_value:r.FOCUS_GOAL_TAG_NAME_DEFAULT,is_valid:e=>e.trim().length>0});e.s(["focus_goal_tag_name_preference",0,i],77130);let o=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOALS_PER_SHEET_STORAGE_KEY,default_value:r.FOCUS_GOALS_PER_SHEET_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["focus_goals_per_sheet_preference",0,o],56442);let s=(0,t.create_ui_preference_store)({storage_key:r.FOCUS_GOALS_PER_TAG_STORAGE_KEY,default_value:r.FOCUS_GOALS_PER_TAG_DEFAULT,is_valid:e=>{if(0===e.length)return!1;try{let t=JSON.parse(e);return null!==t&&"object"==typeof t&&!Array.isArray(t)}catch{return!1}}});e.s(["focus_goals_per_tag_preference",0,s],73228)},39552,36519,35292,7312,43360,69978,42874,66852,16245,93415,e=>{"use strict";var t=e.i(26313),r=e.i(36145),n=e.i(72424),a=e.i(16913),i=e.i(8627),o=e.i(29263);function s(e,t){let r=(0,o.toDate)(e,t?.in);return r.setHours(0,0,0,0),r}function l(e,t){let r=(0,o.toDate)(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function u(e,t){let n=(0,r.getDefaultOptions)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,o.toDate)(e,t?.in),s=i.getDay();return i.setDate(i.getDate()-(7*(s<a)+s-a)),i.setHours(0,0,0,0),i}function c(e,t){return u(e,{...t,weekStartsOn:1})}e.s(["startOfDay",0,s],36519),e.s(["startOfYear",0,l],35292),e.s(["startOfWeek",0,u],7312),e.s(["startOfISOWeek",0,c],43360);var d=e.i(25402);function f(e,t){let r=(0,o.toDate)(e,t?.in),n=r.getFullYear(),a=(0,d.constructFrom)(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let i=c(a),s=(0,d.constructFrom)(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let l=c(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}function h(e,t){let r,n,a=(0,o.toDate)(e,t?.in);return Math.round((c(a)-(r=f(a,void 0),(n=(0,d.constructFrom)(a,0)).setFullYear(r,0,4),n.setHours(0,0,0,0),c(n)))/i.millisecondsInWeek)+1}function _(e,t){let n=(0,o.toDate)(e,t?.in),a=n.getFullYear(),i=(0,r.getDefaultOptions)(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=(0,d.constructFrom)(t?.in||e,0);l.setFullYear(a+1,0,s),l.setHours(0,0,0,0);let c=u(l,t),f=(0,d.constructFrom)(t?.in||e,0);f.setFullYear(a,0,s),f.setHours(0,0,0,0);let h=u(f,t);return+n>=+c?a+1:+n>=+h?a:a-1}function m(e,t){let n,a,s,l,c=(0,o.toDate)(e,t?.in);return Math.round((u(c,t)-(n=(0,r.getDefaultOptions)(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=_(c,t),(l=(0,d.constructFrom)(t?.in||c,0)).setFullYear(s,0,a),l.setHours(0,0,0,0),u(l,t)))/i.millisecondsInWeek)+1}function p(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}e.s(["getISOWeek",0,h],69978),e.s(["getWeekYear",0,_],42874),e.s(["getWeek",0,m],66852);let g={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return p("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):p(r+1,2)},d:(e,t)=>p(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>p(e.getHours()%12||12,t.length),H:(e,t)=>p(e.getHours(),t.length),m:(e,t)=>p(e.getMinutes(),t.length),s:(e,t)=>p(e.getSeconds(),t.length),S(e,t){let r=t.length;return p(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},b={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return g.y(e,t)},Y:function(e,t,r,n){let a=_(e,n),i=a>0?a:1-a;return"YY"===t?p(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):p(i,t.length)},R:function(e,t){return p(f(e),t.length)},u:function(e,t){return p(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return p(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return p(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return g.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return p(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=m(e,n);return"wo"===t?r.ordinalNumber(a,{unit:"week"}):p(a,t.length)},I:function(e,t,r){let n=h(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):p(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):g.d(e,t)},D:function(e,t,r){let u,c=function(e,t){let[r,o]=(0,a.normalizeDates)(void 0,e,t),l=s(r),u=s(o);return Math.round((l-(0,n.getTimezoneOffsetInMilliseconds)(l)-(u-(0,n.getTimezoneOffsetInMilliseconds)(u)))/i.millisecondsInDay)}(u=(0,o.toDate)(e,void 0),l(u))+1;return"Do"===t?r.ordinalNumber(c,{unit:"dayOfYear"}):p(c,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return p(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,a=e.getHours();switch(n=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,a=e.getHours();switch(n=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return g.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):g.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):p(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):p(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):g.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):g.s(e,t)},S:function(e,t){return g.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return x(n);case"XXXX":case"XX":return w(n);default:return w(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return x(n);case"xxxx":case"xx":return w(n);default:return w(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(n,":");default:return"GMT"+w(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(n,":");default:return"GMT"+w(n,":")}},t:function(e,t,r){return p(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return p(+e,t.length)}};function y(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return 0===i?r+String(a):r+String(a)+t+p(i,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+p(Math.abs(e)/60,2):w(e,t)}function w(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+p(Math.trunc(r/60),2)+t+p(r%60,2)}let v=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},k=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},E={p:k,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return v(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",v(a,t)).replace("{{time}}",k(i,t))}};e.s(["longFormatters",0,E],16245);let O=/^D+$/,S=/^Y+$/,T=["D","DD","YY","YYYY"];function j(e){return O.test(e)}function N(e){return S.test(e)}function D(e,t,r){var n,a,i;let o,s=(n=e,a=t,i=r,o="Y"===n[0]?"years":"days of the month",`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${a}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),T.includes(e))throw RangeError(s)}e.s(["isProtectedDayOfYearToken",0,j,"isProtectedWeekYearToken",0,N,"warnOrThrowProtectedError",0,D],93415);let A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C=/^'([^]*?)'?$/,P=/''/g,M=/[a-zA-Z]/;e.s(["format",0,function(e,n,a){let i=(0,r.getDefaultOptions)(),s=a?.locale??i.locale??t.defaultLocale,l=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,c=(0,o.toDate)(e,a?.in);if(!(c instanceof Date||"object"==typeof c&&"[object Date]"===Object.prototype.toString.call(c))&&"number"!=typeof c||isNaN(+(0,o.toDate)(c)))throw RangeError("Invalid time value");let d=n.match(L).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,E[t])(e,s.formatLong):e}).join("").match(A).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var r;let t;return{isToken:!1,value:(t=(r=e).match(C))?t[1].replace(P,"'"):r}}if(b[t])return{isToken:!0,value:e};if(t.match(M))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});s.localize.preprocessor&&(d=s.localize.preprocessor(c,d));let f={firstWeekContainsDate:l,weekStartsOn:u,locale:s};return d.map(t=>{if(!t.isToken)return t.value;let r=t.value;return(!a?.useAdditionalWeekYearTokens&&N(r)||!a?.useAdditionalDayOfYearTokens&&j(r))&&D(r,n,String(e)),(0,b[r[0]])(c,r,s.localize,f)}).join("")}],39552)},67999,e=>{"use strict";e.s(["get_serialized_entries_total_ms",0,function(e){return e.reduce((e,t)=>e+t.durationMs,0)}])}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return l},urlObjectKeys:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066)._(e.r(78677)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",o=e.hash||"",u=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:n&&(l=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(l+=":"+e.port)),u&&"object"==typeof u&&(u=String(a.urlQueryToSearchParams(u)));let d=e.search||u&&`?${u}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==l?(l="//"+(l||""),i&&"/"!==i[0]&&(i="/"+i)):l||(l=""),o&&"#"!==o[0]&&(o="#"+o),d&&"?"!==d[0]&&(d="?"+d),i=i.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${r}${l}${i}${d}${o}`}let u=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function l(e){return o(e)}},37879,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=e.r(29158);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=a(e,r)),t&&(i.current=a(t,r))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},59246,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(31047),i=e.r(63334);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},10364,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},45958,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},useLinkStatus:function(){return v}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(44066),s=e.r(54710),o=a._(e.r(29158)),u=e.r(42552),l=e.r(61717),d=e.r(37879),c=e.r(31047),m=e.r(20321);e.r(90503);let f=e.r(38520),h=e.r(19947),p=e.r(59246),g=e.r(99046);function b(t){var n,r;let i,a,b,[v,k]=(0,o.useOptimistic)(h.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:_,as:w,children:j,prefetch:M=null,passHref:N,replace:S,shallow:C,scroll:T,onClick:P,onMouseEnter:E,onTouchStart:O,legacyBehavior:A=!1,onNavigate:D,transitionTypes:W,ref:I,unstable_dynamicOnHover:z,...L}=t;i=j,A&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let R=o.default.useContext(l.AppRouterContext),F=!1!==M,$=!1!==M?null===(r=M)||"auto"===r?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,U="string"==typeof(n=w||_)?n:(0,u.formatUrl)(n);if(A){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(i)}let B=A?a&&"object"==typeof a&&a.ref:I,Y=o.default.useCallback(e=>(null!==R&&(x.current=(0,h.mountLinkInstance)(e,U,R,$,F,k)),()=>{x.current&&((0,h.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,h.unmountPrefetchableInstance)(e)}),[F,U,R,$,k]),K={ref:(0,d.useMergedRef)(Y,B),onClick(t){A||"function"!=typeof P||P(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!R||t.defaultPrevented||function(t,n,r,i,a,s,u){if("u">typeof window){let l,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((l=t.currentTarget.getAttribute("target"))&&"_self"!==l||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,p.isLocalURL)(n)){i&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:c}=e.r(91087);o.default.startTransition(()=>{c(n,i?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,u)})}}(t,U,x,S,T,D,W)},onMouseEnter(e){A||"function"!=typeof E||E(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),R&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){A||"function"!=typeof O||O(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),R&&F&&(0,h.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,c.isAbsoluteUrl)(U)?K.href=U:A&&!N&&("a"!==a.type||"href"in a.props)||(K.href=(0,m.addBasePath)(U)),b=A?o.default.cloneElement(a,K):(0,s.jsx)("a",{...L,...K,children:i}),(0,s.jsx)(y.Provider,{value:v,children:b})}e.r(10364);let y=(0,o.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,o.useContext)(y);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},77882,e=>{"use strict";var t=e.i(71060),n=e.i(29158),r=e.i(83105),i=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[s,o]=(0,n.useState)(null),[u,l]=(0,n.useState)(!1),d=(0,i.is_supabase_configured)();return(0,n.useEffect)(()=>{if(!d)return;let e=(0,r.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[d]),{is_configured:d,email:s,is_pending:u,sign_out:(0,n.useCallback)(async()=>{l(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,r.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{l(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),n=e.i(45958),r=e.i(71060);let i=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/pomodoro")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function a(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,r.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:i.map(r=>{let i=r.match(e);return(0,t.jsx)(n.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${i?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:r.href,"aria-current":i?"page":void 0,children:r.label},r.href)})})}],45200);var s=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:n}=(0,s.use_supabase_auth_session)();return n&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(a,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let n="sign_in"===e?"/login":"/register",r=t.trim();return 0===r.length||"/"===r?n:`${n}?next=${encodeURIComponent(r)}`}])},2268,76003,38240,e=>{"use strict";var t=e.i(34869),n=e.i(92629);let r=(0,t.create_ui_preference_store)({storage_key:n.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:n.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function i(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,r],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return i()}],76003);var a=e.i(17798),s=e.i(46549),o=e.i(10464),u=e.i(35434),l=e.i(61834),d=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===i()?"light":"dark";(0,a.apply_theme)(e),(0,d.write_stored_theme)(e),o.theme_mode_preference.write(e),(0,l.write_document_preference_cookies)({theme_mode:e,theme:e}),o.theme_mode_preference.notify(),(0,u.notify_theme_subscribers)(),(0,s.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),n=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,r=!0){let i=(0,t.useRef)(e);i.current=e,(0,t.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"!==e.key||(0,n.is_modal_dialog_open)()||(e.preventDefault(),i.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[r])}])},1976,e=>{"use strict";var t=e.i(54710),n=e.i(45958),r=e.i(71060),i=e.i(29158),a=e.i(37399),s=e.i(90463),o=e.i(46549),u=e.i(2268),l=e.i(28274),d=e.i(76003),c=e.i(35434),m=e.i(38240),f=e.i(25204),h=e.i(77882);let p="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["TopbarOverflowMenu",0,function(){let e=(0,r.useRouter)(),g=(0,r.usePathname)()??"/",b=(0,i.useSyncExternalStore)(c.subscribe_theme,d.get_theme_snapshot,d.get_theme_server_snapshot),y=(0,i.useSyncExternalStore)(u.cloud_sync_enabled_preference.subscribe,u.cloud_sync_enabled_preference.get_snapshot,u.cloud_sync_enabled_preference.get_server_snapshot),{email:v,is_configured:k,is_pending:x,sign_out:_}=(0,h.use_supabase_auth_session)(),[w,j]=(0,i.useState)(!1),M=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!w)return;let e=e=>{null===M.current||M.current.contains(e.target)||j(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[w]);let N=()=>{j(!1)};return(0,f.use_escape_to_cancel)(N,w),(0,t.jsxs)("div",{className:"relative shrink-0",ref:M,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":w,"aria-haspopup":"menu",onClick:()=>j(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),w?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[k&&null!==v?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:v,children:v})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(n.default,{href:"/settings/tags",className:p,role:"menuitem",onClick:N,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(n.default,{href:"/pomodoro",className:p,role:"menuitem",onClick:N,children:"Pomodoro"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(n.default,{href:"/settings/cloud-sync",className:p,role:"menuitem",onClick:N,children:"Sync settings"})}),k?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitemcheckbox","aria-checked":"true"===y,onClick:()=>{let e="true"===y?"false":"true";u.cloud_sync_enabled_preference.write(e),u.cloud_sync_enabled_preference.notify(),(0,o.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==v&&(0,l.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===y?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===y?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{N(),(0,m.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===b?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===b?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{N(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),k?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===v?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:p,role:"menuitem",onClick:()=>{N(),e.push((0,s.build_auth_page_href)("sign_in",g))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${p} text-danger`,role:"menuitem",disabled:x,onClick:()=>{N(),_()},children:x?"Signing out…":"Sign out"})})]}):null]}):null]})}])},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},75404,e=>{"use strict";var t=e.i(54710),n=e.i(45200),r=e.i(648),i=e.i(1976),a=e.i(45958),s=e.i(71060),o=e.i(29539);function u(){let e=((0,s.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(a.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(o.SettingsIcon,{})})}function l({current:e,parent:n}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==n.href?(0,t.jsx)(a.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:n.href,children:n.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:n.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(l,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(n.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(r.TopbarCloudStatus,{}),(0,t.jsx)(u,{}),(0,t.jsx)(i.TopbarOverflowMenu,{})]})]})]})})}],75404)},25402,8627,e=>{"use strict";let t=Symbol.for("constructDateFrom");e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInSecond",0,1e3,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],8627),e.s(["constructFrom",0,function(e,n){return"function"==typeof e?e(n):e&&"object"==typeof e&&t in e?e[t](n):e instanceof Date?new e.constructor(n):new Date(n)}],25402)},26313,e=>{"use strict";var t;let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function r(e){return (t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}let i={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({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:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;r=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;r=e.values[i]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}let o={ordinalNumber:(e,t)=>{let 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:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({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:s({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:s({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 u(e){return(t,n={})=>{let r,i=n.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;let o=s[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(u,e=>e.test(o)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(u,e=>e.test(o));return r=e.valueCallback?e.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(o.length)}}}let l={ordinalNumber:(t={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,n={})=>{let r=e.match(t.matchPattern);if(!r)return null;let i=r[0],a=e.match(t.parsePattern);if(!a)return null;let s=t.valueCallback?t.valueCallback(a[0]):a[0];return{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(i.length)}}),era:u({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:u({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:e=>e+1}),month:u({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:u({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:u({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"})};e.s(["defaultLocale",0,{code:"en-US",formatDistance:(e,t,r)=>{let i,a=n[e];if(i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:i,formatRelative:(e,t,n,r)=>a[e],localize:o,match:l,options:{weekStartsOn:0,firstWeekContainsDate:1}}],26313)},36145,e=>{"use strict";let t={};e.s(["getDefaultOptions",0,function(){return t}])},29263,e=>{"use strict";var t=e.i(25402);e.s(["toDate",0,function(e,n){return(0,t.constructFrom)(n||e,e)}])},72424,16913,e=>{"use strict";var t=e.i(29263);e.s(["getTimezoneOffsetInMilliseconds",0,function(e){let n=(0,t.toDate)(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),e-r}],72424);var n=e.i(25402);e.s(["normalizeDates",0,function(e,...t){let r=n.constructFrom.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}],16913)},86688,(e,t,n)=>{!function(){var n=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])b(t,r)&&(e[r]=t[r]);return e},r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=u(["χρόνος","χρόνια"],["μήνας","μήνες"],["εβδομάδα","εβδομάδες"],["μέρα","μέρες"],["ώρα","ώρες"],["λεπτό","λεπτά"],["δευτερόλεπτο","δευτερόλεπτα"],["χιλιοστό του δευτερολέπτου","χιλιοστά του δευτερολέπτου"],","),a={af:u(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:s("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:n(s(function(e){return["سنة","سنتان","سنوات"][m(e)]},function(e){return["شهر","شهران","أشهر"][m(e)]},function(e){return["أسبوع","أسبوعين","أسابيع"][m(e)]},function(e){return["يوم","يومين","أيام"][m(e)]},function(e){return["ساعة","ساعتين","ساعات"][m(e)]},function(e){return["دقيقة","دقيقتان","دقائق"][m(e)]},function(e){return["ثانية","ثانيتان","ثواني"][m(e)]},function(e){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][m(e)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:c(["години","година","години"],["месеца","месец","месеца"],["седмици","седмица","седмици"],["дни","ден","дни"],["часа","час","часа"],["минути","минута","минути"],["секунди","секунда","секунди"],["милисекунди","милисекунда","милисекунди"]),bn:s("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:u(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:s("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:s(function(e){return["rok","roku","roky","let"][h(e)]},function(e){return["měsíc","měsíce","měsíce","měsíců"][h(e)]},function(e){return["týden","týdne","týdny","týdnů"][h(e)]},function(e){return["den","dne","dny","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodin"][h(e)]},function(e){return["minuta","minuty","minuty","minut"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][h(e)]},","),cy:s("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:u(["år","år"],["måned","måneder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:u(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:i,en:u(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:u(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:u(["año","años"],["mes","meses"],["semana","semanas"],["día","días"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:u(["aasta","aastat"],["kuu","kuud"],["nädal","nädalat"],["päev","päeva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:s("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:s("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:u(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["päivä","päivää"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:u(["ár","ár"],["mánaður","mánaðir"],["vika","vikur"],["dagur","dagar"],["tími","tímar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:s(function(e){return"an"+(e>=2?"s":"")},"mois",function(e){return"semaine"+(e>=2?"s":"")},function(e){return"jour"+(e>=2?"s":"")},function(e){return"heure"+(e>=2?"s":"")},function(e){return"minute"+(e>=2?"s":"")},function(e){return"seconde"+(e>=2?"s":"")},function(e){return"milliseconde"+(e>=2?"s":"")},","),gr:i,he:u(["שנה","שנים"],["חודש","חודשים"],["שבוע","שבועות"],["יום","ימים"],["שעה","שעות"],["דקה","דקות"],["שניה","שניות"],["מילישנייה","מילישניות"]),hr:s(function(e){return e%10==2||e%10==3||e%10==4?"godine":"godina"},function(e){return 1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci"},function(e){return e%10==1&&11!==e?"tjedan":"tjedna"},o(["dan","dana"]),function(e){return 1===e?"sat":2===e||3===e||4===e?"sata":"sati"},function(e){var t=e%10;return(2===t||3===t||4===t)&&(e<10||e>14)?"minute":"minuta"},function(e){var t=e%10;if(5===t||Math.floor(e)===e&&e>=10&&e<=19);else if(1===t)return"sekunda";else if(2===t||3===t||4===t)return"sekunde";return"sekundi"},function(e){return 1===e?"milisekunda":e%10==2||e%10==3||e%10==4?"milisekunde":"milisekundi"},","),hi:s("साल",o(["महीना","महीने"]),o(["हफ़्ता","हफ्ते"]),"दिन",o(["घंटा","घंटे"]),"मिनट","सेकंड","मिलीसेकंड"),hu:s("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:s("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:u(["ár","ár"],["mánuður","mánuðir"],["vika","vikur"],["dagur","dagar"],["klukkutími","klukkutímar"],["mínúta","mínútur"],["sekúnda","sekúndur"],["millisekúnda","millisekúndur"]),it:u(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:s("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:s("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:u(["ವರ್ಷ","ವರ್ಷಗಳು"],["ತಿಂಗಳು","ತಿಂಗಳುಗಳು"],["ವಾರ","ವಾರಗಳು"],["ದಿನ","ದಿನಗಳು"],["ಗಂಟೆ","ಗಂಟೆಗಳು"],["ನಿಮಿಷ","ನಿಮಿಷಗಳು"],["ಸೆಕೆಂಡ್","ಸೆಕೆಂಡುಗಳು"],["ಮಿಲಿಸೆಕೆಂಡ್","ಮಿಲಿಸೆಕೆಂಡುಗಳು"]),ko:s("년","개월","주일","일","시간","분","초","밀리 초"),ku:s("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:s("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:s(function(e){return e%10==0||e%100>=10&&e%100<=20?"metų":"metai"},function(e){return["mėnuo","mėnesiai","mėnesių"][p(e)]},function(e){return["savaitė","savaitės","savaičių"][p(e)]},function(e){return["diena","dienos","dienų"][p(e)]},function(e){return["valanda","valandos","valandų"][p(e)]},function(e){return["minutė","minutės","minučių"][p(e)]},function(e){return["sekundė","sekundės","sekundžių"][p(e)]},function(e){return["milisekundė","milisekundės","milisekundžių"][p(e)]},","),lv:s(function(e){return g(e)?"gads":"gadi"},function(e){return g(e)?"mēnesis":"mēneši"},function(e){return g(e)?"nedēļa":"nedēļas"},function(e){return g(e)?"diena":"dienas"},function(e){return g(e)?"stunda":"stundas"},function(e){return g(e)?"minūte":"minūtes"},function(e){return g(e)?"sekunde":"sekundes"},function(e){return g(e)?"milisekunde":"milisekundes"},","),mk:u(["година","години"],["месец","месеци"],["недела","недели"],["ден","дена"],["час","часа"],["минута","минути"],["секунда","секунди"],["милисекунда","милисекунди"],","),mn:s("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:s(o(["वर्ष","वर्षे"]),o(["महिना","महिने"]),o(["आठवडा","आठवडे"]),"दिवस","तास",o(["मिनिट","मिनिटे"]),"सेकंद","मिलिसेकंद"),ms:s("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:u(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:u(["år","år"],["måned","måneder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:s(function(e){return["rok","roku","lata","lat"][f(e)]},function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][f(e)]},function(e){return["tydzień","tygodnia","tygodnie","tygodni"][f(e)]},function(e){return["dzień","dnia","dni","dni"][f(e)]},function(e){return["godzina","godziny","godziny","godzin"][f(e)]},function(e){return["minuta","minuty","minuty","minut"][f(e)]},function(e){return["sekunda","sekundy","sekundy","sekund"][f(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][f(e)]},","),pt:u(["ano","anos"],["mês","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:s(l("an","ani","de ani"),l("lună","luni","de luni"),l("săptămână","săptămâni","de săptămâni"),l("zi","zile","de zile"),l("oră","ore","de ore"),l("minut","minute","de minute"),l("secundă","secunde","de secunde"),l("milisecundă","milisecunde","de milisecunde"),","),ru:c(["лет","год","года"],["месяцев","месяц","месяца"],["недель","неделя","недели"],["дней","день","дня"],["часов","час","часа"],["минут","минута","минуты"],["секунд","секунда","секунды"],["миллисекунд","миллисекунда","миллисекунды"]),sq:s(o(["vit","vjet"]),"muaj","javë","ditë","orë",function(e){return"minut"+(1===e?"ë":"a")},function(e){return"sekond"+(1===e?"ë":"a")},function(e){return"milisekond"+(1===e?"ë":"a")},","),sr:c(["години","година","године"],["месеци","месец","месеца"],["недељи","недеља","недеље"],["дани","дан","дана"],["сати","сат","сата"],["минута","минут","минута"],["секунди","секунда","секунде"],["милисекунди","милисекунда","милисекунде"]),sr_Latn:c(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:u(["வருடம்","ஆண்டுகள்"],["மாதம்","மாதங்கள்"],["வாரம்","வாரங்கள்"],["நாள்","நாட்கள்"],["மணி","மணிநேரம்"],["நிமிடம்","நிமிடங்கள்"],["வினாடி","வினாடிகள்"],["மில்லி விநாடி","மில்லி விநாடிகள்"]),te:u(["సంవత్సరం","సంవత్సరాల"],["నెల","నెలల"],["వారం","వారాలు"],["రోజు","రోజులు"],["గంట","గంటలు"],["నిమిషం","నిమిషాలు"],["సెకను","సెకన్లు"],["మిల్లీసెకన్","మిల్లీసెకన్లు"]),uk:c(["років","рік","роки"],["місяців","місяць","місяці"],["тижнів","тиждень","тижні"],["днів","день","дні"],["годин","година","години"],["хвилин","хвилина","хвилини"],["секунд","секунда","секунди"],["мілісекунд","мілісекунда","мілісекунди"]),ur:s("سال",o(["مہینہ","مہینے"]),o(["ہفتہ","ہفتے"]),"دن",o(["گھنٹہ","گھنٹے"]),"منٹ","سیکنڈ","ملی سیکنڈ"),sk:s(function(e){return["rok","roky","roky","rokov"][h(e)]},function(e){return["mesiac","mesiace","mesiace","mesiacov"][h(e)]},function(e){return["týždeň","týždne","týždne","týždňov"][h(e)]},function(e){return["deň","dni","dni","dní"][h(e)]},function(e){return["hodina","hodiny","hodiny","hodín"][h(e)]},function(e){return["minúta","minúty","minúty","minút"][h(e)]},function(e){return["sekunda","sekundy","sekundy","sekúnd"][h(e)]},function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][h(e)]},","),sl:s(function(e){return e%10==1?"leto":e%100==2?"leti":e%100==3||e%100==4||Math.floor(e)!==e&&e%100<=5?"leta":"let"},function(e){return e%10==1?"mesec":e%100==2||Math.floor(e)!==e&&e%100<=5?"meseca":e%10==3||e%10==4?"mesece":"mesecev"},function(e){return e%10==1?"teden":e%10==2||Math.floor(e)!==e&&e%100<=4?"tedna":e%10==3||e%10==4?"tedne":"tednov"},function(e){return e%100==1?"dan":"dni"},function(e){return e%10==1?"ura":e%100==2?"uri":e%10==3||e%10==4||Math.floor(e)!==e?"ure":"ur"},function(e){return e%10==1?"minuta":e%10==2?"minuti":e%10==3||e%10==4||Math.floor(e)!==e&&e%100<=4?"minute":"minut"},function(e){return e%10==1?"sekunda":e%100==2?"sekundi":e%100==3||e%100==4||Math.floor(e)!==e?"sekunde":"sekund"},function(e){return e%10==1?"milisekunda":e%100==2?"milisekundi":e%100==3||e%100==4||Math.floor(e)!==e?"milisekunde":"milisekund"},","),sv:u(["år","år"],["månad","månader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:n(u(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:s("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:s("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:s("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:s("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:s("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:s("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:s("年","個月","周","天","小時","分鐘","秒","毫秒")};function s(e,t,n,r,i,a,s,o,u){var l={y:e,mo:t,w:n,d:r,h:i,m:a,s:s,ms:o};return u&&(l.decimal=u),l}function o(e){return function(t){return 1===t?e[0]:e[1]}}function u(e,t,n,r,i,a,u,l,d){return s(o(e),o(t),o(n),o(r),o(i),o(a),o(u),o(l),d)}function l(e,t,n){return function(r){if(1===r)return e;if(Math.floor(r)!==r||0===r)return t;var i=r%100;return i>=1&&i<=19?t:n}}function d(e){return function(t){return Math.floor(t)!==t?e[2]:t%100>=5&&t%100<=20||t%10>=5&&t%10<=9||t%10==0?e[0]:t%10==1?e[1]:t>1?e[2]:e[1]}}function c(e,t,n,r,i,a,o,u){return s(d(e),d(t),d(n),d(r),d(i),d(a),d(o),d(u),",")}function m(e){return 2===e?1:2*(e>2&&e<11)}function f(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&!(e%100>10&&e%100<20)?2:3}function h(e){return 1===e?0:Math.floor(e)!==e?1:e%10>=2&&e%10<=4&&e%100<10?2:3}function p(e){return 1===e||e%10==1&&e%100>20?0:Math.floor(e)!==e||e%10>=2&&e%100>20||e%10>=2&&e%100<10?1:2}function g(e){return e%10==1&&e%100!=11}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function y(e,t,n){var r,i,a,s,o=e.unitName,u=e.unitCount,l=n.spacer,d=n.maxDecimalPoints;r=b(n,"decimal")?n.decimal:b(t,"decimal")?t.decimal:".","digitReplacements"in n?i=n.digitReplacements:"_digitReplacements"in t&&(i=t._digitReplacements);var c=(void 0===d?u:Math.floor(u*Math.pow(10,d))/Math.pow(10,d)).toString();if(t._hideCountIf2&&2===u)a="",l="";else if(i){a="";for(var m=0;m<c.length;m++){var f=c[m];"."===f?a+=r:a+=i[f]}}else a=c.replace(".",r);var h=t[o];return(s="function"==typeof h?h(u):h,t._numberFirst)?s+l+a:a+l+s}function v(e){var t=function(e,i){e=Math.abs(e);var s=n({},t,i||{});return function(e,t){var n,i=function(e){var t=[e.language];if(b(e,"fallbacks"))if(r(e.fallbacks)&&e.fallbacks.length)t=t.concat(e.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var n=0;n<t.length;n++){var i=t[n];if(b(e.languages,i))return e.languages[i];if(b(a,i))return a[i]}throw Error("No language found.")}(t);if(!e.length){var s=t.units;return y({unitName:s[s.length-1],unitCount:0},i,t)}var o=t.conjunction,u=t.serialComma;n=b(t,"delimiter")?t.delimiter:b(i,"delimiter")?i.delimiter:", ";for(var l=[],d=0;d<e.length;d++)l.push(y(e[d],i,t));return o&&1!==e.length?2===e.length?l.join(o):l.slice(0,-1).join(n)+(u?",":"")+o+l.slice(-1):l.join(n)}(function(e,t){var n,r,i,a,s=t.units,o=t.unitMeasures,u="largest"in t?t.largest:1/0;if(!s.length)return[];var l={};for(r=0,a=e;r<s.length;r++){var d=o[n=s[r]];i=r===s.length-1?a/d:Math.floor(a/d),l[n]=i,a-=i*d}if(t.round){var c=u;for(r=0;r<s.length;r++)if(0!==(i=l[n=s[r]])&&0==--c){for(var m=r+1;m<s.length;m++){var f=s[m],h=l[f];l[n]+=h*o[f]/o[n],l[f]=0}break}for(r=s.length-1;r>=0;r--)if(0!==(i=l[n=s[r]])){var p=Math.round(i);if(l[n]=p,0===r)break;var g=s[r-1],b=o[g],y=Math.floor(p*o[n]/b);if(y)l[g]+=y,l[n]=0;else break}}var v=[];for(r=0;r<s.length&&v.length<u;r++)(i=l[n=s[r]])&&v.push({unitName:n,unitCount:i});return v}(e,s),s)};return n(t,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},e)}var k=n(v({}),{getSupportedLanguages:function(){var e=[];for(var t in a)b(a,t)&&"gr"!==t&&e.push(t);return e},humanizer:v});if("function"==typeof define&&define.amd)e.r,void 0!==k&&e.v(k);else t.exports?t.exports=k:this.humanizeDuration=k}()},32584,e=>{"use strict";var t=e.i(86688);let n=e=>e.toString().padStart(2,"0");e.s(["format_duration",0,function(e,r="humanized",i=!1){if("clock"===r){let t,r,i;return r=Math.floor((t=Math.round(Math.abs(e)/1e3))/3600),i=Math.floor(t%3600/60),`${e<0?"-":""}${n(r)}:${n(i)}:${n(t%60)}`}return"decimal"===r?`${(e/36e5).toFixed(2)}h`:(0,t.default)(e,{largest:i?3:2,round:!i,spacer:" ",delimiter:" "})}])},1800,e=>{"use strict";var t=e.i(29158),n=e.i(8492);e.s(["use_duration_format",0,function(){return(0,t.useSyncExternalStore)(n.duration_format_preference.subscribe,n.duration_format_preference.get_snapshot,n.duration_format_preference.get_server_snapshot)}])},17003,e=>{"use strict";var t=e.i(27850),n=e.i(72550);e.s(["write_active_sheet_preference",0,function(e){let r=e.trim();if(0!==r.length){try{window.localStorage.setItem(n.ACTIVE_SHEET_STORAGE_KEY,r),(0,t.schedule_ui_preferences_cloud_sync)()}catch{}try{let e=encodeURIComponent(r);document.cookie=`${n.ACTIVE_SHEET_COOKIE_NAME}=${e}; Path=/; Max-Age=31536000; SameSite=Lax`}catch{}}}])},67321,e=>{"use strict";var t=e.i(17003);e.s(["navigate_to_tracker_sheet",0,function(e){(0,t.write_active_sheet_preference)(e)}])},6690,e=>{"use strict";let t="super-time-tracker-pinned-sheet-names",n=new Set,r=[],i=null;function a(){try{let e=window.localStorage.getItem(t);if(null===e)return[];let n=JSON.parse(e);if(!Array.isArray(n))return[];return n.filter(e=>"string"==typeof e)}catch{return[]}}e.s(["get_pinned_sheet_names_server_snapshot",0,function(){return r},"get_pinned_sheet_names_snapshot",0,function(){var e=a();if(0===e.length)return r;let t=e.join("\0");if(null!==i&&i.key===t)return i.snapshot;let n=Object.freeze([...e]);return i={key:t,snapshot:n},n},"read_pinned_sheet_names",0,a,"subscribe_pinned_sheet_names",0,function(e){return n.add(e),()=>{n.delete(e)}},"write_pinned_sheet_names",0,function(e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch{}i=null,n.forEach(e=>{e()})}])},93749,e=>{"use strict";var t=e.i(6690);e.s(["toggle_pinned_sheet_name",0,function(e){let n=e.trim();if(0===n.length)return;let r=(0,t.read_pinned_sheet_names)(),i=r.indexOf(n);i>=0?(0,t.write_pinned_sheet_names)([...r.slice(0,i),...r.slice(i+1)]):(0,t.write_pinned_sheet_names)([...r,n])}])},71610,e=>{"use strict";var t=e.i(54710),n=e.i(29158),r=e.i(45958),i=e.i(25402),a=e.i(26313),s=e.i(36145),o=e.i(72424),u=e.i(16913),l=e.i(29263),d=e.i(8627),c=e.i(32584),m=e.i(67321);function f({row:e,duration_format:n,is_pinned:h,on_toggle_pin:p}){let g=function(e,t=Date.now()){var n;if(null===e)return"No activity";let r=new Date(e);return Number.isNaN(+r)?"No activity":(n={addSuffix:!0,roundingMethod:"floor"},function(e,t,n){var r;let i,c,m=(0,s.getDefaultOptions)(),f=n?.locale??m.locale??a.defaultLocale,h=(c=(0,l.toDate)(e)-(0,l.toDate)(t))<0?-1:c>0?1:c;if(isNaN(h))throw RangeError("Invalid time value");let p=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h}),[g,b]=(0,u.normalizeDates)(n?.in,...h>0?[t,e]:[e,t]),y=(r=n?.roundingMethod??"round",e=>{let t=(r?Math[r]:Math.trunc)(e);return 0===t?0:t}),v=b.getTime()-g.getTime(),k=v/d.millisecondsInMinute,x=(v-((0,o.getTimezoneOffsetInMilliseconds)(b)-(0,o.getTimezoneOffsetInMilliseconds)(g)))/d.millisecondsInMinute,_=n?.unit;if("second"===(i=_||(k<1?"second":k<60?"minute":k<d.minutesInDay?"hour":x<d.minutesInMonth?"day":x<d.minutesInYear?"month":"year"))){let e=y(v/1e3);return f.formatDistance("xSeconds",e,p)}if("minute"===i){let e=y(k);return f.formatDistance("xMinutes",e,p)}if("hour"===i){let e=y(k/60);return f.formatDistance("xHours",e,p)}if("day"===i){let e=y(x/d.minutesInDay);return f.formatDistance("xDays",e,p)}if("month"===i){let e=y(x/d.minutesInMonth);return 12===e&&"month"!==_?f.formatDistance("xYears",1,p):f.formatDistance("xMonths",e,p)}else{let e=y(x/d.minutesInYear);return f.formatDistance("xYears",e,p)}}(r,(0,i.constructFrom)(r,Date.now()),n))}(e.lastActivityAt);return(0,t.jsxs)("li",{className:"rounded-md border border-panel-border bg-panel p-3.5 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,t.jsx)("h2",{className:"m-0 min-w-0 truncate text-[1rem] font-semibold",children:e.sheetName}),e.hasActiveEntry?(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-accent px-2 py-0.5 text-[0.68rem] font-bold uppercase leading-none tracking-wider text-accent-text-on",children:"Tracking"}):null]}),(0,t.jsxs)("p",{className:"m-0 mt-1.5 flex flex-wrap gap-x-3 gap-y-0.5 text-[0.82rem] text-muted",children:[(0,t.jsx)("span",{children:g}),(0,t.jsxs)("span",{children:[e.entryCount," ",1===e.entryCount?"entry":"entries"]})]})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,t.jsx)("button",{type:"button",className:"cursor-pointer rounded-md border-0 bg-transparent px-2 py-1 text-[0.9rem] text-muted hover:bg-surface-hover hover:text-foreground","aria-pressed":h,"aria-label":h?`Unpin ${e.sheetName}`:`Pin ${e.sheetName}`,onClick:p,children:h?"★":"☆"}),(0,t.jsx)(r.default,{href:"/",className:"rounded-md px-2.5 py-1 text-[0.82rem] font-semibold text-accent no-underline hover:bg-accent-soft",onClick:()=>(0,m.navigate_to_tracker_sheet)(e.sheetName),children:"Open"})]})]}),(0,t.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-2",children:[(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This week"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,c.format_duration)(e.weekTotalMs,n)})]}),(0,t.jsxs)("div",{className:"rounded-md bg-surface-raised px-2.5 py-2",children:[(0,t.jsx)("p",{className:"m-0 text-[0.68rem] font-semibold uppercase tracking-[0.05em] text-muted",children:"This month"}),(0,t.jsx)("p",{className:"m-0 mt-0.5 font-mono text-[0.9rem] font-semibold text-accent",children:(0,c.format_duration)(e.monthTotalMs,n)})]})]})]})}var h=e.i(75404),p=e.i(6690),g=e.i(93749),b=e.i(1800);e.s(["SheetHubView",0,function({rows:e}){let r=(0,b.use_duration_format)(),i=new Set((0,n.useSyncExternalStore)(p.subscribe_pinned_sheet_names,p.get_pinned_sheet_names_snapshot,p.get_pinned_sheet_names_server_snapshot)),a=(0,n.useMemo)(()=>[...e].sort((e,t)=>{if(e.hasActiveEntry!==t.hasActiveEntry)return e.hasActiveEntry?-1:1;let n=null===e.lastActivityAt?0:+new Date(e.lastActivityAt);return(null===t.lastActivityAt?0:+new Date(t.lastActivityAt))-n}),[e]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.TrackerTopbar,{breadcrumb:{current:"Sheets"}}),(0,t.jsxs)("main",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-6 px-5 pb-12 pt-6",children:[(0,t.jsxs)("header",{className:"flex w-full flex-col gap-2 text-center",children:[(0,t.jsx)("h1",{className:"m-0 text-[1.5rem] font-[650] tracking-tight",children:"Sheets"}),(0,t.jsx)("p",{className:"m-0 text-[0.9rem] leading-relaxed text-muted",children:"Quick overview of every project. Pin sheets to filter the Today view."})]}),0===a.length?(0,t.jsx)("p",{className:"m-0 text-center text-[0.9rem] text-muted",children:"No sheets yet. Create one from the tracker."}):(0,t.jsx)("ul",{className:"m-0 flex w-full list-none flex-col gap-2 p-0","aria-label":"Sheet summaries",children:a.map(e=>(0,t.jsx)(f,{row:e,duration_format:r,is_pinned:i.has(e.sheetName),on_toggle_pin:()=>(0,g.toggle_pinned_sheet_name)(e.sheetName)},e.sheetName))})]})]})}],71610)}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42552,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066)._(e.r(78677)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",o=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${o}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},37879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(29158);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},59246,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(31047),s=e.r(63334);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},10364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},45958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return _}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(44066),l=e.r(54710),o=a._(e.r(29158)),i=e.r(42552),c=e.r(61717),u=e.r(37879),d=e.r(31047),h=e.r(20321);e.r(90503);let p=e.r(38520),f=e.r(19947),m=e.r(59246),g=e.r(99046);function x(t){var r,n;let s,a,x,[_,v]=(0,o.useOptimistic)(f.IDLE_LINK_STATUS),y=(0,o.useRef)(null),{href:j,as:w,children:k,prefetch:N=null,passHref:S,replace:C,shallow:E,scroll:O,onClick:R,onMouseEnter:T,onTouchStart:L,legacyBehavior:P=!1,onNavigate:$,transitionTypes:D,ref:M,unstable_dynamicOnHover:U,...I}=t;s=k,P&&("string"==typeof s||"number"==typeof s)&&(s=(0,l.jsx)("a",{children:s}));let A=o.default.useContext(c.AppRouterContext),B=!1!==N,W=!1!==N?null===(n=N)||"auto"===n?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,K="string"==typeof(r=w||j)?r:(0,i.formatUrl)(r);if(P){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(s)}let F=P?a&&"object"==typeof a&&a.ref:M,z=o.default.useCallback(e=>(null!==A&&(y.current=(0,f.mountLinkInstance)(e,K,A,W,B,v)),()=>{y.current&&((0,f.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,f.unmountPrefetchableInstance)(e)}),[B,K,A,W,v]),J={ref:(0,u.useMergedRef)(z,F),onClick(t){P||"function"!=typeof R||R(t),P&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!A||t.defaultPrevented||function(t,r,n,s,a,l,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(91087);o.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i)})}}(t,K,y,C,O,$,D)},onMouseEnter(e){P||"function"!=typeof T||T(e),P&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),A&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){P||"function"!=typeof L||L(e),P&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),A&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)(K)?J.href=K:P&&!S&&("a"!==a.type||"href"in a.props)||(J.href=(0,h.addBasePath)(K)),x=P?o.default.cloneElement(a,J):(0,l.jsx)("a",{...I,...J,children:s}),(0,l.jsx)(b.Provider,{value:_,children:x})}e.r(10364);let b=(0,o.createContext)(f.IDLE_LINK_STATUS),_=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77882,e=>{"use strict";var t=e.i(71060),r=e.i(29158),n=e.i(83105),s=e.i(32417),a=e.i(46549);e.s(["use_supabase_auth_session",0,function(){let e=(0,t.useRouter)(),[l,o]=(0,r.useState)(null),[i,c]=(0,r.useState)(!1),u=(0,s.is_supabase_configured)();return(0,r.useEffect)(()=>{if(!u)return;let e=(0,n.create_browser_supabase_client)();e.auth.getSession().then(({data:{session:e}})=>{o(e?.user.email??null)}).catch(()=>{o(null)});let{data:{subscription:t}}=e.auth.onAuthStateChange((e,t)=>{o(t?.user.email??null)});return()=>{t.unsubscribe()}},[u]),{is_configured:u,email:l,is_pending:i,sign_out:(0,r.useCallback)(async()=>{c(!0);try{await fetch("/api/auth/signout",{method:"POST"});let t=(0,n.create_browser_supabase_client)();await t.auth.signOut().catch(()=>{}),(0,a.notify_settings_saved)("Signed out"),e.refresh()}finally{c(!1)}},[e])}}])},45200,648,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/",label:"Tracker",match:e=>"/"===e},{href:"/today",label:"Today",match:e=>e.startsWith("/today")},{href:"/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/pomodoro")},{href:"/sheets",label:"Sheets",match:e=>e.startsWith("/sheets")},{href:"/reporting",label:"Reporting",match:e=>e.startsWith("/reporting")}];function a(){return(0,t.jsx)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.5 19a4.5 4.5 0 0 0 0-9 6.5 6.5 0 0 0-12.6 1.5A4 4 0 0 0 6 19h11.5z"})})}e.s(["TrackerNavLinks",0,function(){let e=(0,n.usePathname)()??"/";return(0,t.jsx)("div",{className:"scrollbar-none flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap py-0.5 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden min-[980px]:overflow-visible",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)(r.default,{className:`rounded-full px-3 py-1.5 text-[0.85rem] font-semibold no-underline transition-colors duration-150 shrink-0 ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,href:n.href,"aria-current":s?"page":void 0,children:n.label},n.href)})})}],45200);var l=e.i(77882);e.s(["TopbarCloudStatus",0,function(){let{email:e,is_configured:r}=(0,l.use_supabase_auth_session)();return r&&null!==e?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-accent","aria-label":`Cloud sync active for ${e}`,role:"img",children:(0,t.jsx)(a,{})}),(0,t.jsx)("div",{role:"tooltip",className:"pointer-events-none absolute right-0 top-full z-50 mt-1.5 w-max max-w-[min(18rem,calc(100vw-2.5rem))] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-within:opacity-100",children:(0,t.jsxs)("div",{className:"rounded-md border border-panel-border bg-panel px-2.5 py-1.5 shadow-md",children:[(0,t.jsx)("p",{className:"m-0 text-[0.72rem] font-semibold uppercase tracking-[0.04em] text-muted",children:"Signed in as"}),(0,t.jsx)("p",{className:"m-0 max-w-[16rem] truncate text-[0.82rem] font-medium",title:e,children:e})]})})]}):null}],648)},37399,e=>{"use strict";var t=e.i(54710);e.s(["HamburgerIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4 text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16"}),(0,t.jsx)("path",{d:"M4 12h16"}),(0,t.jsx)("path",{d:"M4 17h16"})]})}])},90463,e=>{"use strict";e.s(["build_auth_page_href",0,function(e,t){let r="sign_in"===e?"/login":"/register",n=t.trim();return 0===n.length||"/"===n?r:`${r}?next=${encodeURIComponent(n)}`}])},2268,76003,38240,e=>{"use strict";var t=e.i(34869),r=e.i(92629);let n=(0,t.create_ui_preference_store)({storage_key:r.CLOUD_SYNC_ENABLED_STORAGE_KEY,default_value:r.CLOUD_SYNC_ENABLED_DEFAULT,is_valid:e=>"true"===e||"false"===e});function s(){return"u"<typeof document?"dark":"light"===document.documentElement.getAttribute("data-theme")?"light":"dark"}e.s(["cloud_sync_enabled_preference",0,n],2268),e.s(["get_theme_server_snapshot",0,function(){return"dark"},"get_theme_snapshot",0,function(){return s()}],76003);var a=e.i(17798),l=e.i(46549),o=e.i(10464),i=e.i(35434),c=e.i(61834),u=e.i(81553);e.s(["toggle_theme",0,function(){let e="dark"===s()?"light":"dark";(0,a.apply_theme)(e),(0,u.write_stored_theme)(e),o.theme_mode_preference.write(e),(0,c.write_document_preference_cookies)({theme_mode:e,theme:e}),o.theme_mode_preference.notify(),(0,i.notify_theme_subscribers)(),(0,l.notify_settings_saved)()}],38240)},25204,e=>{"use strict";var t=e.i(29158),r=e.i(72074);e.s(["use_escape_to_cancel",0,function(e,n=!0){let s=(0,t.useRef)(e);s.current=e,(0,t.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"!==e.key||(0,r.is_modal_dialog_open)()||(e.preventDefault(),s.current())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[n])}])},1976,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060),s=e.i(29158),a=e.i(37399),l=e.i(90463),o=e.i(46549),i=e.i(2268),c=e.i(28274),u=e.i(76003),d=e.i(35434),h=e.i(38240),p=e.i(25204),f=e.i(77882);let m="block w-full cursor-pointer rounded-[0.45rem] border-0 bg-transparent px-2.5 py-1.5 text-left font-inherit text-[0.85rem] text-inherit no-underline hover:bg-surface-hover disabled:cursor-not-allowed disabled:opacity-55";e.s(["TopbarOverflowMenu",0,function(){let e=(0,n.useRouter)(),g=(0,n.usePathname)()??"/",x=(0,s.useSyncExternalStore)(d.subscribe_theme,u.get_theme_snapshot,u.get_theme_server_snapshot),b=(0,s.useSyncExternalStore)(i.cloud_sync_enabled_preference.subscribe,i.cloud_sync_enabled_preference.get_snapshot,i.cloud_sync_enabled_preference.get_server_snapshot),{email:_,is_configured:v,is_pending:y,sign_out:j}=(0,f.use_supabase_auth_session)(),[w,k]=(0,s.useState)(!1),N=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(!w)return;let e=e=>{null===N.current||N.current.contains(e.target)||k(!1)};return document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[w]);let S=()=>{k(!1)};return(0,p.use_escape_to_cancel)(S,w),(0,t.jsxs)("div",{className:"relative shrink-0",ref:N,children:[(0,t.jsx)("button",{type:"button",className:"inline-flex h-8 w-8 cursor-pointer items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent","aria-label":"Open menu","aria-expanded":w,"aria-haspopup":"menu",onClick:()=>k(e=>!e),children:(0,t.jsx)(a.HamburgerIcon,{})}),w?(0,t.jsxs)("ul",{className:"absolute right-0 top-full z-50 mt-1.5 min-w-56 list-none rounded-md border border-panel-border bg-panel p-1.5 shadow-md",role:"menu",children:[v&&null!==_?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("p",{className:"m-0 truncate px-2.5 py-1 text-[0.72rem] uppercase tracking-[0.04em] text-muted",title:_,children:_})}):null,(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/settings/tags",className:m,role:"menuitem",onClick:S,children:"Manage tags"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/pomodoro",className:m,role:"menuitem",onClick:S,children:"Pomodoro"})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)(r.default,{href:"/settings/cloud-sync",className:m,role:"menuitem",onClick:S,children:"Sync settings"})}),v?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitemcheckbox","aria-checked":"true"===b,onClick:()=>{let e="true"===b?"false":"true";i.cloud_sync_enabled_preference.write(e),i.cloud_sync_enabled_preference.notify(),(0,o.notify_settings_saved)("true"===e?"Cloud sync enabled":"Cloud sync disabled"),"true"===e&&null!==_&&(0,c.run_tracker_db_cloud_sync)({merge_on_load:!0}).catch(()=>{})},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"true"===b?"Pause cloud sync":"Resume cloud sync"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"true"===b?"On":"Off"})]})})}):null,(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),(0,h.toggle_theme)()},suppressHydrationWarning:!0,children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsxs)("span",{children:["dark"===x?"Dark":"Light"," theme"]}),(0,t.jsx)("span",{"aria-hidden":"true",children:"dark"===x?"☾":"☀"})]})})}),(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),document.dispatchEvent(new KeyboardEvent("keydown",{key:"?",shiftKey:!0,bubbles:!0}))},children:(0,t.jsxs)("span",{className:"inline-flex w-full items-center justify-between gap-2",children:[(0,t.jsx)("span",{children:"Keyboard shortcuts"}),(0,t.jsx)("span",{className:"text-muted","aria-hidden":"true",children:"(?)"})]})})}),v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"my-1 border-t border-panel-border",role:"separator","aria-hidden":"true"}),null===_?(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:m,role:"menuitem",onClick:()=>{S(),e.push((0,l.build_auth_page_href)("sign_in",g))},children:"Sign in"})}):(0,t.jsx)("li",{role:"none",children:(0,t.jsx)("button",{type:"button",className:`${m} text-danger`,role:"menuitem",disabled:y,onClick:()=>{S(),j()},children:y?"Signing out…":"Sign out"})})]}):null]}):null]})}])},29539,e=>{"use strict";var t=e.i(54710);e.s(["SettingsIcon",0,function(){return(0,t.jsxs)("svg",{className:"block h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}])},75404,e=>{"use strict";var t=e.i(54710),r=e.i(45200),n=e.i(648),s=e.i(1976),a=e.i(45958),l=e.i(71060),o=e.i(29539);function i(){let e=((0,l.usePathname)()??"/").startsWith("/settings");return(0,t.jsx)(a.default,{href:"/settings",className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-panel-border bg-ghost-bg text-muted no-underline hover:bg-surface-hover hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent${e?" border-accent-border text-foreground":""}`,"aria-label":"Settings","aria-current":e?"page":void 0,children:(0,t.jsx)(o.SettingsIcon,{})})}function c({current:e,parent:r}){return(0,t.jsx)("nav",{"aria-label":"Breadcrumb",className:"min-w-0 text-left",children:(0,t.jsxs)("ol",{className:"m-0 flex min-w-0 list-none flex-wrap items-center gap-1.5 p-0 text-[0.85rem]",children:[(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{className:"text-muted no-underline hover:text-foreground",href:"/",children:"Tracker"})}),void 0!==r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{children:void 0!==r.href?(0,t.jsx)(a.default,{className:"max-w-44 truncate text-muted no-underline hover:text-foreground sm:max-w-none",href:r.href,children:r.label}):(0,t.jsx)("span",{className:"max-w-44 truncate text-muted sm:max-w-none",children:r.label})})]}):null,(0,t.jsx)("li",{className:"text-muted","aria-hidden":"true",children:"/"}),(0,t.jsx)("li",{className:"max-w-44 truncate font-medium text-foreground sm:max-w-none","aria-current":"page",children:e})]})})}e.s(["TrackerTopbar",0,function({breadcrumb:e}={}){return(0,t.jsx)("header",{className:"relative z-1 border-b border-panel-border bg-[color-mix(in_srgb,var(--panel)_92%,var(--background))] shadow-sm backdrop-blur-[10px]",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-[1120px] min-h-13 flex-wrap items-center gap-x-4 gap-y-2 px-4 py-2 sm:px-5",children:[(0,t.jsx)("span",{className:"inline-flex min-w-0 shrink items-center font-mono text-[0.72rem] font-semibold uppercase leading-tight tracking-[0.08em] text-accent whitespace-nowrap",children:"super-time-tracker"}),void 0!==e?(0,t.jsx)("div",{className:"min-w-0 flex-1",children:(0,t.jsx)(c,{current:e.current,parent:e.parent})}):null,(0,t.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 min-[980px]:ml-auto min-[980px]:w-auto min-[980px]:justify-end",children:[(0,t.jsx)(r.TrackerNavLinks,{}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-2",children:[(0,t.jsx)(n.TopbarCloudStatus,{}),(0,t.jsx)(i,{}),(0,t.jsx)(s.TopbarOverflowMenu,{})]})]})]})})}],75404)},42800,e=>{"use strict";var t=e.i(54710),r=e.i(45958),n=e.i(71060);let s=[{href:"/settings",label:"General",match:e=>"/settings"===e},{href:"/settings/display",label:"Display & layout",match:e=>e.startsWith("/settings/display")},{href:"/settings/goals",label:"Goals",match:e=>e.startsWith("/settings/goals")},{href:"/settings/pomodoro",label:"Pomodoro",match:e=>e.startsWith("/settings/pomodoro")},{href:"/settings/notifications",label:"Notifications",match:e=>e.startsWith("/settings/notifications")},{href:"/settings/ai-suggestions",label:"AI suggestions",match:e=>e.startsWith("/settings/ai-suggestions")},{href:"/settings/cloud-sync",label:"Sync",match:e=>e.startsWith("/settings/cloud-sync")},{href:"/settings/data",label:"Data & backup",match:e=>e.startsWith("/settings/data")},{href:"/settings/tags",label:"Tag management",match:e=>e.startsWith("/settings/tags")}];e.s(["SettingsNav",0,function(){let e=(0,n.usePathname)()??"/settings";return(0,t.jsx)("nav",{"aria-label":"Settings sections",className:"w-full",children:(0,t.jsx)("ul",{className:"scrollbar-none m-0 flex w-full list-none gap-1 overflow-x-auto p-0 pb-1 [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden max-[860px]:flex-row min-[861px]:flex-col min-[861px]:gap-0.5 min-[861px]:overflow-visible min-[861px]:pb-0",children:s.map(n=>{let s=n.match(e);return(0,t.jsx)("li",{className:"shrink-0 min-[861px]:shrink",children:(0,t.jsx)(r.default,{href:n.href,"aria-current":s?"page":void 0,className:`block whitespace-nowrap rounded-md px-3 py-2 text-[0.9rem] no-underline transition-colors duration-150 min-[861px]:whitespace-normal ${s?"bg-accent-soft text-foreground":"text-muted hover:bg-surface-hover hover:text-foreground"}`,children:n.label})},n.href)})})})}])},39474,20993,e=>{"use strict";var t=e.i(13349),r=e.i(32417),n=e.i(44171),s=e.i(28274);let a=null,l=Promise.resolve();function o(){(0,r.is_supabase_configured)()&&(0,n.is_cloud_sync_enabled)()&&(null!==a&&clearTimeout(a),a=setTimeout(()=>{a=null,l=l.then(()=>(0,s.run_tracker_db_cloud_sync)()).catch(()=>{})},400))}function i(){(0,t.is_greedy_cloud_sync_enabled)()&&o()}e.s(["schedule_tracker_db_cloud_sync",0,i],20993),e.s(["push_tracker_db_cloud_after_change",0,function(){(0,t.is_greedy_cloud_sync_enabled)()?i():o()}],39474)},6216,e=>{"use strict";var t=e.i(54710),r=e.i(71060),n=e.i(29158),s=e.i(39474),a=e.i(14974),l=e.i(52663);e.s(["BackupRestoreSetting",0,function({db_path:e}){let o=(0,r.useRouter)(),{confirm:i}=(0,a.use_confirm_dialog)(),c=(0,n.useRef)(null),[u,d]=(0,n.useState)(null),[h,p]=(0,n.useState)(null),[f,m]=(0,n.useState)(!1),[g,x]=(0,n.useState)(!1),b=async()=>{m(!0),d(null),p(null);try{let e=await fetch("/api/backup");if(!e.ok){let t=await e.json();throw Error(t.error??"Download failed")}let t=await e.blob(),r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download="db.json",n.click(),URL.revokeObjectURL(r),p("Backup downloaded.")}catch(e){d(e instanceof Error?e.message:String(e))}finally{m(!1)}},_=async e=>{let t=e.target.files?.[0];if((e.target.value="",void 0!==t)&&await i({title:"Restore backup?",message:"This will replace your current time tracker data with the uploaded backup file. This cannot be undone.",confirmLabel:"Restore",variant:"danger"})){x(!0),d(null),p(null);try{let e,r=await t.text();try{e=JSON.parse(r)}catch{throw Error("Invalid backup file: file is not valid JSON.")}let n=await fetch("/api/backup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){let e=await n.json();throw Error(e.error??"Restore failed")}p("Backup restored. Opening tracker…"),(0,s.push_tracker_db_cloud_after_change)(),o.push("/"),o.refresh()}catch(e){d(e instanceof Error?e.message:String(e))}finally{x(!1)}}},v=f||g;return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Backup and restore"}),(0,t.jsx)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:"Download a copy of your database or replace it with a previously saved backup file."})]}),(0,t.jsx)("p",{className:"m-0 overflow-wrap-anywhere font-mono text-[0.65rem] leading-snug text-muted",title:e,children:e}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("ghost","small"),disabled:v,onClick:()=>void b(),children:f?"Downloading…":"Download backup"}),(0,t.jsx)("button",{type:"button",className:(0,l.get_button_class_name)("danger","small"),disabled:v,onClick:()=>{c.current?.click()},children:g?"Restoring…":"Restore from file"}),(0,t.jsx)("input",{ref:c,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>void _(e)})]}),null!==h?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:h}):null,null!==u?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:u}):null]})}],6216)},66764,e=>{"use strict";var t=e.i(54710),r=e.i(29158),n=e.i(52663);function s(e){let t=e.replaceAll('"','""');return`"${t}"`}function a(e){return e.replaceAll("|","\\|").replaceAll("\n"," ")}e.s(["DbExportSetting",0,function({db:e}){let[l,o]=(0,r.useState)(null),[i,c]=(0,r.useState)(null),u=(0,r.useMemo)(()=>e.sheets.reduce((e,t)=>e+t.entries.length,0),[e.sheets]),d=t=>{c(null),o(null);try{var r,n,l,i,u,d;let c,h,p,f,m="json"===t?(r=e,JSON.stringify(r,null,2)):"csv"===t?(c=e.sheets.flatMap(e=>e.entries.map(t=>{let r=new Date(t.start).toISOString(),n=null===t.end?"":new Date(t.end).toISOString(),a=null===t.end?"":String(Math.max(0,t.end-t.start)/6e4),l=t.notes.map(e=>e.text).join(" | ");return[e.name,String(t.id),t.description,t.tags.join(" "),r,n,a,String(t.notes.length),l].map(s).join(",")})),["sheet_name,entry_id,description,tags,start_iso,end_iso,duration_minutes,note_count,notes",...c].join("\n")):function(e){let t=[],r=new Date().toISOString(),n=e.sheets.reduce((e,t)=>e+t.entries.length,0);for(let s of(t.push("# super-time-tracker export"),t.push(""),t.push(`- Exported at: ${r}`),t.push(`- Active sheet: ${e.activeSheetName??"none"}`),t.push(`- Sheets: ${e.sheets.length}`),t.push(`- Entries: ${n}`),t.push(""),e.sheets)){if(t.push(`## ${s.name}`),t.push(""),t.push(`- Active entry ID: ${s.activeEntryID??"none"}`),t.push(`- Entries: ${s.entries.length}`),t.push(""),0===s.entries.length){t.push("_No entries_"),t.push("");continue}for(let e of(t.push("| ID | Description | Tags | Start | End | Duration | Notes |"),t.push("| --- | --- | --- | --- | --- | --- | --- |"),s.entries)){let r=new Date(e.start).toISOString(),n=null===e.end?"running":new Date(e.end).toISOString(),s=null===e.end?"running":`${Math.max(0,e.end-e.start)/6e4} min`,l=0===e.tags.length?"-":e.tags.map(e=>`@${e}`).join(" "),o=0===e.notes.length?"-":e.notes.map(e=>e.text).join(" / ");t.push(`| ${e.id} | ${a(e.description)} | ${a(l)} | ${r} | ${n} | ${s} | ${a(o)} |`)}t.push("")}return t.join("\n")}(e),g=`super-time-tracker-export.${(n=t,"json"===n?"json":"csv"===n?"csv":"md")}`,x=(l=t,"json"===l?"application/json":"csv"===l?"text/csv;charset=utf-8":"text/markdown;charset=utf-8");i=g,u=m,d=x,h=new Blob([u],{type:d}),p=URL.createObjectURL(h),(f=document.createElement("a")).href=p,f.download=i,f.click(),URL.revokeObjectURL(p),o(`Downloaded ${g}`)}catch(e){c(e instanceof Error?e.message:String(e))}};return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,t.jsx)("h2",{className:"m-0 text-[0.95rem] font-semibold",children:"Database export"}),(0,t.jsxs)("p",{className:"m-0 text-[0.8rem] leading-snug text-muted",children:[e.sheets.length," sheets and ",u," entries ready to export."]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost","small"),onClick:()=>d("json"),children:"Export JSON"}),(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost","small"),onClick:()=>d("csv"),children:"Export CSV"}),(0,t.jsx)("button",{type:"button",className:(0,n.get_button_class_name)("ghost","small"),onClick:()=>d("markdown"),children:"Export Markdown"})]}),null!==l?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-accent",children:l}):null,null!==i?(0,t.jsx)("p",{className:"m-0 text-[0.82rem] text-danger",children:i}):null]})}])}]);