zudoku 0.66.0 → 0.66.1

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 (93) hide show
  1. package/dist/config/validators/validate.d.ts +0 -2
  2. package/dist/config/validators/validate.js +0 -1
  3. package/dist/config/validators/validate.js.map +1 -1
  4. package/dist/flat-config.d.ts +1 -1
  5. package/dist/lib/authentication/ui/ZudokuAuthUi.js +5 -1
  6. package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
  7. package/lib/ActionButton-DUgvSylL.js +25 -0
  8. package/lib/ActionButton-DUgvSylL.js.map +1 -0
  9. package/lib/{ClaudeLogo-PxFjou9w.js → ClaudeLogo-B4Xxt-x_.js} +2 -2
  10. package/lib/{ClaudeLogo-PxFjou9w.js.map → ClaudeLogo-B4Xxt-x_.js.map} +1 -1
  11. package/lib/{ErrorAlert-BqjbNHIn.js → ErrorAlert-DrOR8w3f.js} +6 -6
  12. package/lib/{ErrorAlert-BqjbNHIn.js.map → ErrorAlert-DrOR8w3f.js.map} +1 -1
  13. package/lib/{MdxPage-CVFatbHw.js → MdxPage-BagO2c-n.js} +7 -7
  14. package/lib/{MdxPage-CVFatbHw.js.map → MdxPage-BagO2c-n.js.map} +1 -1
  15. package/lib/{Mermaid-CIFixY6C.js → Mermaid-D_VSX7_Q.js} +3 -3
  16. package/lib/{Mermaid-CIFixY6C.js.map → Mermaid-D_VSX7_Q.js.map} +1 -1
  17. package/lib/{OAuthErrorPage-Dup79DJk.js → OAuthErrorPage-Fq54RLgt.js} +6 -6
  18. package/lib/{OAuthErrorPage-Dup79DJk.js.map → OAuthErrorPage-Fq54RLgt.js.map} +1 -1
  19. package/lib/{OasProvider-BJeMq29o.js → OasProvider-DPH8mwDa.js} +3 -3
  20. package/lib/{OasProvider-BJeMq29o.js.map → OasProvider-DPH8mwDa.js.map} +1 -1
  21. package/lib/{OperationList-ff3ZvQsO.js → OperationList-C0jiEaG5.js} +329 -348
  22. package/lib/OperationList-C0jiEaG5.js.map +1 -0
  23. package/lib/{RouteGuard-BXy13JSz.js → RouteGuard-9wjejsKm.js} +3 -3
  24. package/lib/{RouteGuard-BXy13JSz.js.map → RouteGuard-9wjejsKm.js.map} +1 -1
  25. package/lib/{RouterError-CKOZTsDD.js → RouterError-DSLXagd5.js} +2 -2
  26. package/lib/{RouterError-CKOZTsDD.js.map → RouterError-DSLXagd5.js.map} +1 -1
  27. package/lib/{SchemaList-BSC1KM3v.js → SchemaList-BU0zCHn9.js} +7 -7
  28. package/lib/{SchemaList-BSC1KM3v.js.map → SchemaList-BU0zCHn9.js.map} +1 -1
  29. package/lib/{SchemaView-CgwJ9gtb.js → SchemaView-DVae4RO2.js} +3 -3
  30. package/lib/{SchemaView-CgwJ9gtb.js.map → SchemaView-DVae4RO2.js.map} +1 -1
  31. package/lib/Select-CkxXP5I7.js +243 -0
  32. package/lib/Select-CkxXP5I7.js.map +1 -0
  33. package/lib/Separator-CTPSeW1S.js +27 -0
  34. package/lib/Separator-CTPSeW1S.js.map +1 -0
  35. package/lib/{SignUp-Pm_LGm6T.js → SignUp-BjS4ozA7.js} +3 -3
  36. package/lib/{SignUp-Pm_LGm6T.js.map → SignUp-BjS4ozA7.js.map} +1 -1
  37. package/lib/{SyntaxHighlight-bkmst3oV.js → SyntaxHighlight-Kdyskw3C.js} +2 -2
  38. package/lib/{SyntaxHighlight-bkmst3oV.js.map → SyntaxHighlight-Kdyskw3C.js.map} +1 -1
  39. package/lib/{Toc-TUXNFbKl.js → Toc-DJxFPfcS.js} +2 -2
  40. package/lib/{Toc-TUXNFbKl.js.map → Toc-DJxFPfcS.js.map} +1 -1
  41. package/lib/{ZudokuContext-np1wheDl.js → ZudokuContext-BXldanA8.js} +5 -5
  42. package/lib/{ZudokuContext-np1wheDl.js.map → ZudokuContext-BXldanA8.js.map} +1 -1
  43. package/lib/{circular-XPj_dwqA.js → circular-CzWF1hj5.js} +2 -2
  44. package/lib/{circular-XPj_dwqA.js.map → circular-CzWF1hj5.js.map} +1 -1
  45. package/lib/{createServer-D01nCTNp.js → createServer-BIr2_tGn.js} +4 -4
  46. package/lib/{createServer-D01nCTNp.js.map → createServer-BIr2_tGn.js.map} +1 -1
  47. package/lib/createVariantComponent-B9_dVBvu.js +35 -0
  48. package/lib/createVariantComponent-B9_dVBvu.js.map +1 -0
  49. package/lib/{errors-B0hNTPFO.js → errors-Bs4duWDy.js} +2 -2
  50. package/lib/{errors-B0hNTPFO.js.map → errors-Bs4duWDy.js.map} +1 -1
  51. package/lib/firebase-qUdSEL1p.js +7366 -0
  52. package/lib/firebase-qUdSEL1p.js.map +1 -0
  53. package/lib/{hook-CvSwcbk6.js → hook-BNxidGQq.js} +2 -2
  54. package/lib/{hook-CvSwcbk6.js.map → hook-BNxidGQq.js.map} +1 -1
  55. package/lib/{index-Bjc_QsUR.js → index-0oT9beQN.js} +452 -476
  56. package/lib/index-0oT9beQN.js.map +1 -0
  57. package/lib/{index-DscsS121.js → index-Bh-MffiL.js} +2 -2
  58. package/lib/{index-DscsS121.js.map → index-Bh-MffiL.js.map} +1 -1
  59. package/lib/{index-mfkNWYG-.js → index-CCmMJp02.js} +5 -5
  60. package/lib/{index-mfkNWYG-.js.map → index-CCmMJp02.js.map} +1 -1
  61. package/lib/{index-DnMgJWrI.js → index-Css56y3F.js} +3 -3
  62. package/lib/{index-DnMgJWrI.js.map → index-Css56y3F.js.map} +1 -1
  63. package/lib/index.esm-kW-Utcsi.js +32 -0
  64. package/lib/index.esm-kW-Utcsi.js.map +1 -0
  65. package/lib/{mutation-BlmnL5qL.js → mutation-BoVlx8yA.js} +2 -2
  66. package/lib/{mutation-BlmnL5qL.js.map → mutation-BoVlx8yA.js.map} +1 -1
  67. package/lib/ui/SyntaxHighlight.js +2 -2
  68. package/lib/useMutation-C6RqWmTS.js +97 -0
  69. package/lib/useMutation-C6RqWmTS.js.map +1 -0
  70. package/lib/zudoku.__internal.js +6 -6
  71. package/lib/zudoku.auth-auth0.js +1 -1
  72. package/lib/zudoku.auth-azureb2c.js +4 -4
  73. package/lib/zudoku.auth-clerk.js +2 -2
  74. package/lib/zudoku.auth-firebase.js +9 -0
  75. package/lib/zudoku.auth-firebase.js.map +1 -0
  76. package/lib/zudoku.auth-openid.js +4 -4
  77. package/lib/zudoku.auth-supabase.js +4 -4
  78. package/lib/zudoku.components.js +5 -5
  79. package/lib/zudoku.hooks.js +3 -3
  80. package/lib/zudoku.mermaid.js +3 -3
  81. package/lib/zudoku.plugin-api-catalog.js +4 -4
  82. package/lib/zudoku.plugin-api-keys.js +162 -178
  83. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  84. package/lib/zudoku.plugin-custom-pages.js +1 -1
  85. package/lib/zudoku.plugin-markdown.js +1 -1
  86. package/lib/zudoku.plugin-openapi.js +2 -2
  87. package/lib/zudoku.plugin-search-pagefind.js +2 -2
  88. package/package.json +5 -1
  89. package/src/lib/authentication/ui/ZudokuAuthUi.tsx +11 -1
  90. package/lib/OperationList-ff3ZvQsO.js.map +0 -1
  91. package/lib/Select-VmDZ-nKe.js +0 -337
  92. package/lib/Select-VmDZ-nKe.js.map +0 -1
  93. package/lib/index-Bjc_QsUR.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-DnMgJWrI.js","sources":["../../../node_modules/.pnpm/@mdx-js+react@3.1.1_@types+react@19.2.7_react@19.2.0/node_modules/@mdx-js/react/lib/index.js","../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../src/lib/util/useExposedProps.tsx","../src/lib/hooks/useEvent.ts","../src/lib/hooks/index.ts"],"sourcesContent":["/**\n * @import {MDXComponents} from 'mdx/types.js'\n * @import {Component, ReactElement, ReactNode} from 'react'\n */\n\n/**\n * @callback MergeComponents\n * Custom merge function.\n * @param {Readonly<MDXComponents>} currentComponents\n * Current components from the context.\n * @returns {MDXComponents}\n * Additional components.\n *\n * @typedef Props\n * Configuration for `MDXProvider`.\n * @property {ReactNode | null | undefined} [children]\n * Children (optional).\n * @property {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @property {boolean | null | undefined} [disableParentContext=false]\n * Turn off outer component context (default: `false`).\n */\n\nimport React from 'react'\n\n/** @type {Readonly<MDXComponents>} */\nconst emptyComponents = {}\n\nconst MDXContext = React.createContext(emptyComponents)\n\n/**\n * Get current components from the MDX Context.\n *\n * @param {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @returns {MDXComponents}\n * Current components.\n */\nexport function useMDXComponents(components) {\n const contextComponents = React.useContext(MDXContext)\n\n // Memoize to avoid unnecessary top-level context changes\n return React.useMemo(\n function () {\n // Custom merge via a function prop\n if (typeof components === 'function') {\n return components(contextComponents)\n }\n\n return {...contextComponents, ...components}\n },\n [contextComponents, components]\n )\n}\n\n/**\n * Provider for MDX context.\n *\n * @param {Readonly<Props>} properties\n * Properties.\n * @returns {ReactElement}\n * Element.\n * @satisfies {Component}\n */\nexport function MDXProvider(properties) {\n /** @type {Readonly<MDXComponents>} */\n let allComponents\n\n if (properties.disableParentContext) {\n allComponents =\n typeof properties.components === 'function'\n ? properties.components(emptyComponents)\n : properties.components || emptyComponents\n } else {\n allComponents = useMDXComponents(properties.components)\n }\n\n return React.createElement(\n MDXContext.Provider,\n {value: allComponents},\n properties.children\n )\n}\n","\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import {\n type Location,\n type NavigateFunction,\n type Params,\n type SetURLSearchParams,\n useLocation,\n useNavigate,\n useParams,\n useSearchParams,\n} from \"react-router\";\n\nexport type ExposedComponentProps = {\n location: Location;\n navigate: NavigateFunction;\n searchParams: URLSearchParams;\n setSearchParams: SetURLSearchParams;\n params: Params;\n};\n\nexport const useExposedProps = (): ExposedComponentProps => {\n const location = useLocation();\n const navigate = useNavigate();\n const [searchParams, setSearchParams] = useSearchParams();\n const params = useParams();\n\n return { location, navigate, params, searchParams, setSearchParams };\n};\n","import { useEffect, useState } from \"react\";\nimport { useZudoku } from \"../components/context/ZudokuContext.js\";\nimport type { ZudokuEvents } from \"../core/ZudokuContext.js\";\n\ntype EventParameters<Event extends keyof ZudokuEvents> = Parameters<\n ZudokuEvents[Event]\n>;\n\n/**\n * Hook to subscribe to Zudoku events with automatic cleanup\n * @param event The event to subscribe to\n * @param callback Optional callback to be called when the event is emitted\n * @returns The latest event data if no callback is provided, or the callback's return value if it returns something\n */\nexport function useEvent<E extends keyof ZudokuEvents>(\n event: E,\n): EventParameters<E>;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback: (...args: EventParameters<E>) => R,\n): R;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback?: (...args: EventParameters<E>) => R,\n) {\n const zudoku = useZudoku();\n const [latestData, setLatestData] = useState<R | EventParameters<E>>();\n\n useEffect(() => {\n return zudoku.addEventListener(event, ((...args: EventParameters<E>) => {\n if (callback) {\n const result = callback(...args);\n setLatestData(result);\n } else {\n setLatestData(args);\n }\n }) as ZudokuEvents[E]);\n }, [zudoku, event, callback]);\n\n return latestData;\n}\n","import { useMDXComponents as useMDXComponentsImport } from \"@mdx-js/react\";\nimport { useTheme as useThemeImport } from \"next-themes\";\nimport { useAuth as useAuthImport } from \"../authentication/hook.js\";\nimport { CACHE_KEYS, useCache as useCacheImport } from \"../components/cache.js\";\nimport { useZudoku as useZudokuImport } from \"../components/context/ZudokuContext.js\";\nimport { useExposedProps as useExposedPropsImport } from \"../util/useExposedProps.js\";\nimport { useEvent as useEventImport } from \"./useEvent.js\";\n\nexport const useEvent = /*@__PURE__*/ useEventImport;\nexport const useTheme = /*@__PURE__*/ useThemeImport;\nexport const useExposedProps = /*@__PURE__*/ useExposedPropsImport;\nexport const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;\nexport const useAuth = /*@__PURE__*/ useAuthImport;\nexport const useZudoku = /*@__PURE__*/ useZudokuImport;\nexport const useCache = /*@__PURE__*/ useCacheImport;\nexport { CACHE_KEYS };\n"],"names":["emptyComponents","MDXContext","React","useMDXComponents","components","contextComponents","MDXProvider","properties","allComponents","M","i","s","u","m","a","l","d","w","p","n","k","S","f","R","c","b","I","O","x","t","z","J","V","N","H","T","y","E","o","r","v","C","W","P","L","g","D","A","Q","_","useExposedProps","location","useLocation","navigate","useNavigate","searchParams","setSearchParams","useSearchParams","params","useParams","useEvent","event","callback","zudoku","useZudoku","latestData","setLatestData","useState","useEffect","args","result","useEventImport","useTheme","useThemeImport","useExposedPropsImport","useMDXComponentsImport","useAuth","useAuthImport","useZudokuImport","useCache","useCacheImport"],"mappings":";;;;;AA0BA,MAAMA,IAAkB,CAAA,GAElBC,IAAaC,EAAM,cAAcF,CAAe;AAU/C,SAASG,EAAiBC,GAAY;AAC3C,QAAMC,IAAoBH,EAAM,WAAWD,CAAU;AAGrD,SAAOC,EAAM;AAAA,IACX,WAAY;AAEV,aAAI,OAAOE,KAAe,aACjBA,EAAWC,CAAiB,IAG9B,EAAC,GAAGA,GAAmB,GAAGD,EAAU;AAAA,IAC7C;AAAA,IACA,CAACC,GAAmBD,CAAU;AAAA,EAClC;AACA;AAWO,SAASE,GAAYC,GAAY;AAEtC,MAAIC;AAEJ,SAAID,EAAW,uBACbC,IACE,OAAOD,EAAW,cAAe,aAC7BA,EAAW,WAAWP,CAAe,IACrCO,EAAW,cAAcP,IAE/BQ,IAAgBL,EAAiBI,EAAW,UAAU,GAGjDL,EAAM;AAAA,IACXD,EAAW;AAAA,IACX,EAAC,OAAOO,EAAa;AAAA,IACrBD,EAAW;AAAA,EACf;AACA;AClFqC,IAAIE,IAAE,CAAC,GAAEC,GAAEC,GAAEC,GAAEC,GAAEC,GAAEC,GAAE,MAAI;AAAC,MAAIC,IAAE,SAAS,iBAAgBC,IAAE,CAAC,SAAQ,MAAM;AAAE,WAASC,EAAEC,GAAE;AAAC,KAAC,MAAM,QAAQ,CAAC,IAAE,IAAE,CAAC,CAAC,GAAG,QAAQ,OAAG;AAAC,UAAIC,IAAE,MAAI,SAAQC,IAAED,KAAGN,IAAED,EAAE,IAAI,CAAAS,MAAGR,EAAEQ,CAAC,KAAGA,CAAC,IAAET;AAAE,MAAAO,KAAGJ,EAAE,UAAU,OAAO,GAAGK,CAAC,GAAEL,EAAE,UAAU,IAAIF,KAAGA,EAAEK,CAA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AAE,GAAU,QAAAK,GAAQ,cAAAH,GAAc,iBAAAC,EAAA;AACrD;ACLO,SAASI,GACdC,GACAC,GACA;AACA,QAAMC,IAASC,EAAA,GACT,CAACC,GAAYC,CAAa,IAAIC,EAAA;AAEpC,SAAAC,EAAU,MACDL,EAAO,iBAAiBF,IAAQ,IAAIQ,MAA6B;AACtE,QAAIP,GAAU;AACZ,YAAMQ,IAASR,EAAS,GAAGO,CAAI;AAC/B,MAAAH,EAAcI,CAAM;AAAA,IACtB;AACE,MAAAJ,EAAcG,CAAI;AAAA,EAEtB,EAAA,GACC,CAACN,GAAQF,GAAOC,CAAQ,CAAC,GAErBG;AACT;AChCO,MAAML,KAAyBW,IACzBC,KAAyBC,GACzBvB,KAAgCwB,IAChCvE,KAAiCwE,GACjCC,KAAwBC,GACxBb,KAA0Bc,GAC1BC,KAAyBC;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"index-Css56y3F.js","sources":["../../../node_modules/.pnpm/@mdx-js+react@3.1.1_@types+react@19.2.7_react@19.2.0/node_modules/@mdx-js/react/lib/index.js","../../../node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs","../src/lib/util/useExposedProps.tsx","../src/lib/hooks/useEvent.ts","../src/lib/hooks/index.ts"],"sourcesContent":["/**\n * @import {MDXComponents} from 'mdx/types.js'\n * @import {Component, ReactElement, ReactNode} from 'react'\n */\n\n/**\n * @callback MergeComponents\n * Custom merge function.\n * @param {Readonly<MDXComponents>} currentComponents\n * Current components from the context.\n * @returns {MDXComponents}\n * Additional components.\n *\n * @typedef Props\n * Configuration for `MDXProvider`.\n * @property {ReactNode | null | undefined} [children]\n * Children (optional).\n * @property {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @property {boolean | null | undefined} [disableParentContext=false]\n * Turn off outer component context (default: `false`).\n */\n\nimport React from 'react'\n\n/** @type {Readonly<MDXComponents>} */\nconst emptyComponents = {}\n\nconst MDXContext = React.createContext(emptyComponents)\n\n/**\n * Get current components from the MDX Context.\n *\n * @param {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @returns {MDXComponents}\n * Current components.\n */\nexport function useMDXComponents(components) {\n const contextComponents = React.useContext(MDXContext)\n\n // Memoize to avoid unnecessary top-level context changes\n return React.useMemo(\n function () {\n // Custom merge via a function prop\n if (typeof components === 'function') {\n return components(contextComponents)\n }\n\n return {...contextComponents, ...components}\n },\n [contextComponents, components]\n )\n}\n\n/**\n * Provider for MDX context.\n *\n * @param {Readonly<Props>} properties\n * Properties.\n * @returns {ReactElement}\n * Element.\n * @satisfies {Component}\n */\nexport function MDXProvider(properties) {\n /** @type {Readonly<MDXComponents>} */\n let allComponents\n\n if (properties.disableParentContext) {\n allComponents =\n typeof properties.components === 'function'\n ? properties.components(emptyComponents)\n : properties.components || emptyComponents\n } else {\n allComponents = useMDXComponents(properties.components)\n }\n\n return React.createElement(\n MDXContext.Provider,\n {value: allComponents},\n properties.children\n )\n}\n","\"use client\";import*as t from\"react\";var M=(e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=[\"light\",\"dark\"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y===\"class\",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n===\"system\"?c():n;p(y)}catch(n){}};var b=[\"light\",\"dark\"],I=\"(prefers-color-scheme: dark)\",O=typeof window==\"undefined\",x=t.createContext(void 0),U={setTheme:e=>{},themes:[]},z=()=>{var e;return(e=t.useContext(x))!=null?e:U},J=e=>t.useContext(x)?t.createElement(t.Fragment,null,e.children):t.createElement(V,{...e}),N=[\"light\",\"dark\"],V=({forcedTheme:e,disableTransitionOnChange:i=!1,enableSystem:s=!0,enableColorScheme:u=!0,storageKey:m=\"theme\",themes:a=N,defaultTheme:l=s?\"system\":\"light\",attribute:h=\"data-theme\",value:d,children:w,nonce:p,scriptProps:R})=>{let[c,n]=t.useState(()=>H(m,l)),[T,y]=t.useState(()=>c===\"system\"?E():c),k=d?Object.values(d):a,S=t.useCallback(o=>{let r=o;if(!r)return;o===\"system\"&&s&&(r=E());let v=d?d[r]:r,C=i?W(p):null,P=document.documentElement,L=g=>{g===\"class\"?(P.classList.remove(...k),v&&P.classList.add(v)):g.startsWith(\"data-\")&&(v?P.setAttribute(g,v):P.removeAttribute(g))};if(Array.isArray(h)?h.forEach(L):L(h),u){let g=b.includes(l)?l:null,D=b.includes(r)?r:g;P.style.colorScheme=D}C==null||C()},[p]),f=t.useCallback(o=>{let r=typeof o==\"function\"?o(c):o;n(r);try{localStorage.setItem(m,r)}catch(v){}},[c]),A=t.useCallback(o=>{let r=E(o);y(r),c===\"system\"&&s&&!e&&S(\"system\")},[c,e]);t.useEffect(()=>{let o=window.matchMedia(I);return o.addListener(A),A(o),()=>o.removeListener(A)},[A]),t.useEffect(()=>{let o=r=>{r.key===m&&(r.newValue?n(r.newValue):f(l))};return window.addEventListener(\"storage\",o),()=>window.removeEventListener(\"storage\",o)},[f]),t.useEffect(()=>{S(e!=null?e:c)},[e,c]);let Q=t.useMemo(()=>({theme:c,setTheme:f,forcedTheme:e,resolvedTheme:c===\"system\"?T:c,themes:s?[...a,\"system\"]:a,systemTheme:s?T:void 0}),[c,f,e,T,s,a]);return t.createElement(x.Provider,{value:Q},t.createElement(_,{forcedTheme:e,storageKey:m,attribute:h,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:d,themes:a,nonce:p,scriptProps:R}),w)},_=t.memo(({forcedTheme:e,storageKey:i,attribute:s,enableSystem:u,enableColorScheme:m,defaultTheme:a,value:l,themes:h,nonce:d,scriptProps:w})=>{let p=JSON.stringify([s,i,a,e,h,l,u,m]).slice(1,-1);return t.createElement(\"script\",{...w,suppressHydrationWarning:!0,nonce:typeof window==\"undefined\"?d:\"\",dangerouslySetInnerHTML:{__html:`(${M.toString()})(${p})`}})}),H=(e,i)=>{if(O)return;let s;try{s=localStorage.getItem(e)||void 0}catch(u){}return s||i},W=e=>{let i=document.createElement(\"style\");return e&&i.setAttribute(\"nonce\",e),i.appendChild(document.createTextNode(\"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(i),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(i)},1)}},E=e=>(e||(e=window.matchMedia(I)),e.matches?\"dark\":\"light\");export{J as ThemeProvider,z as useTheme};\n","import {\n type Location,\n type NavigateFunction,\n type Params,\n type SetURLSearchParams,\n useLocation,\n useNavigate,\n useParams,\n useSearchParams,\n} from \"react-router\";\n\nexport type ExposedComponentProps = {\n location: Location;\n navigate: NavigateFunction;\n searchParams: URLSearchParams;\n setSearchParams: SetURLSearchParams;\n params: Params;\n};\n\nexport const useExposedProps = (): ExposedComponentProps => {\n const location = useLocation();\n const navigate = useNavigate();\n const [searchParams, setSearchParams] = useSearchParams();\n const params = useParams();\n\n return { location, navigate, params, searchParams, setSearchParams };\n};\n","import { useEffect, useState } from \"react\";\nimport { useZudoku } from \"../components/context/ZudokuContext.js\";\nimport type { ZudokuEvents } from \"../core/ZudokuContext.js\";\n\ntype EventParameters<Event extends keyof ZudokuEvents> = Parameters<\n ZudokuEvents[Event]\n>;\n\n/**\n * Hook to subscribe to Zudoku events with automatic cleanup\n * @param event The event to subscribe to\n * @param callback Optional callback to be called when the event is emitted\n * @returns The latest event data if no callback is provided, or the callback's return value if it returns something\n */\nexport function useEvent<E extends keyof ZudokuEvents>(\n event: E,\n): EventParameters<E>;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback: (...args: EventParameters<E>) => R,\n): R;\nexport function useEvent<E extends keyof ZudokuEvents, R>(\n event: E,\n callback?: (...args: EventParameters<E>) => R,\n) {\n const zudoku = useZudoku();\n const [latestData, setLatestData] = useState<R | EventParameters<E>>();\n\n useEffect(() => {\n return zudoku.addEventListener(event, ((...args: EventParameters<E>) => {\n if (callback) {\n const result = callback(...args);\n setLatestData(result);\n } else {\n setLatestData(args);\n }\n }) as ZudokuEvents[E]);\n }, [zudoku, event, callback]);\n\n return latestData;\n}\n","import { useMDXComponents as useMDXComponentsImport } from \"@mdx-js/react\";\nimport { useTheme as useThemeImport } from \"next-themes\";\nimport { useAuth as useAuthImport } from \"../authentication/hook.js\";\nimport { CACHE_KEYS, useCache as useCacheImport } from \"../components/cache.js\";\nimport { useZudoku as useZudokuImport } from \"../components/context/ZudokuContext.js\";\nimport { useExposedProps as useExposedPropsImport } from \"../util/useExposedProps.js\";\nimport { useEvent as useEventImport } from \"./useEvent.js\";\n\nexport const useEvent = /*@__PURE__*/ useEventImport;\nexport const useTheme = /*@__PURE__*/ useThemeImport;\nexport const useExposedProps = /*@__PURE__*/ useExposedPropsImport;\nexport const useMDXComponents = /*@__PURE__*/ useMDXComponentsImport;\nexport const useAuth = /*@__PURE__*/ useAuthImport;\nexport const useZudoku = /*@__PURE__*/ useZudokuImport;\nexport const useCache = /*@__PURE__*/ useCacheImport;\nexport { CACHE_KEYS };\n"],"names":["emptyComponents","MDXContext","React","useMDXComponents","components","contextComponents","MDXProvider","properties","allComponents","M","i","s","u","m","a","l","d","w","p","n","k","S","f","R","c","b","I","O","x","t","z","J","V","N","H","T","y","E","o","r","v","C","W","P","L","g","D","A","Q","_","useExposedProps","location","useLocation","navigate","useNavigate","searchParams","setSearchParams","useSearchParams","params","useParams","useEvent","event","callback","zudoku","useZudoku","latestData","setLatestData","useState","useEffect","args","result","useEventImport","useTheme","useThemeImport","useExposedPropsImport","useMDXComponentsImport","useAuth","useAuthImport","useZudokuImport","useCache","useCacheImport"],"mappings":";;;;;AA0BA,M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,IAAIQ,MAA6B;AACtE,QAAIP,GAAU;AACZ,YAAMQ,IAASR,EAAS,GAAGO,CAAI;AAC/B,MAAAH,EAAcI,CAAM;AAAA,IACtB;AACE,MAAAJ,EAAcG,CAAI;AAAA,EAEtB,EAAA,GACC,CAACN,GAAQF,GAAOC,CAAQ,CAAC,GAErBG;AACT;AChCO,MAAML,KAAyBW,IACzBC,KAAyBC,GACzBvB,KAAgCwB,IAChCvE,KAAiCwE,GACjCC,KAAwBC,GACxBb,KAA0Bc,GAC1BC,KAAyBC;","x_google_ignoreList":[0,1]}
@@ -0,0 +1,32 @@
1
+ import { A as a, a as r, E as t, b as i, F as o, G as n, c as d, O as h, d as u, T as l, e as A, f as P, g as c, h as g, i as m, j as p, k as v, l as b, m as C, n as E, o as w, p as I, q as k, r as O, s as R, t as T, u as W, v as f } from "./firebase-qUdSEL1p.js";
2
+ export {
3
+ a as ActionCodeURL,
4
+ r as AuthCredential,
5
+ t as EmailAuthCredential,
6
+ i as EmailAuthProvider,
7
+ o as FacebookAuthProvider,
8
+ n as GithubAuthProvider,
9
+ d as GoogleAuthProvider,
10
+ h as OAuthCredential,
11
+ u as OAuthProvider,
12
+ l as TwitterAuthProvider,
13
+ A as beforeAuthStateChanged,
14
+ P as browserLocalPersistence,
15
+ c as browserPopupRedirectResolver,
16
+ g as browserSessionPersistence,
17
+ m as connectAuthEmulator,
18
+ p as createUserWithEmailAndPassword,
19
+ v as getAuth,
20
+ b as getIdTokenResult,
21
+ C as inMemoryPersistence,
22
+ E as indexedDBLocalPersistence,
23
+ w as initializeAuth,
24
+ I as onIdTokenChanged,
25
+ k as prodErrorMap,
26
+ O as reload,
27
+ R as signInWithCredential,
28
+ T as signInWithEmailAndPassword,
29
+ W as signInWithPopup,
30
+ f as signOut
31
+ };
32
+ //# sourceMappingURL=index.esm-kW-Utcsi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm-kW-Utcsi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { R as a, c as r, n as u } from "./ZudokuContext-np1wheDl.js";
1
+ import { R as a, c as r, n as u } from "./ZudokuContext-BXldanA8.js";
2
2
  var d = class extends a {
3
3
  #e;
4
4
  #t;
@@ -193,4 +193,4 @@ export {
193
193
  d as M,
194
194
  h as g
195
195
  };
196
- //# sourceMappingURL=mutation-BlmnL5qL.js.map
196
+ //# sourceMappingURL=mutation-BoVlx8yA.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutation-BlmnL5qL.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.85.5/node_modules/@tanstack/query-core/build/modern/mutation.js"],"sourcesContent":["// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n const onContinue = () => {\n this.#dispatch({ type: \"continue\" });\n };\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (restored) {\n onContinue();\n } else {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map"],"names":["Mutation","Removable","#observers","#mutationCache","#retryer","config","getDefaultState","options","observer","x","variables","onContinue","#dispatch","createRetryer","failureCount","error","restored","isPaused","context","data","action","reducer","state","notifyManager"],"mappings":";AAIG,IAACA,IAAW,cAAcC,EAAU;AAAA,EACrCC;AAAA,EACAC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQ;AAClB,UAAK,GACL,KAAK,aAAaA,EAAO,YACzB,KAAKF,KAAiBE,EAAO,eAC7B,KAAKH,KAAa,CAAA,GAClB,KAAK,QAAQG,EAAO,SAASC,EAAe,GAC5C,KAAK,WAAWD,EAAO,OAAO,GAC9B,KAAK,WAAU;AAAA,EACjB;AAAA,EACA,WAAWE,GAAS;AAClB,SAAK,UAAUA,GACf,KAAK,aAAa,KAAK,QAAQ,MAAM;AAAA,EACvC;AAAA,EACA,IAAI,OAAO;AACT,WAAO,KAAK,QAAQ;AAAA,EACtB;AAAA,EACA,YAAYC,GAAU;AACpB,IAAK,KAAKN,GAAW,SAASM,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;AAAA,YACtB,UAAU;AAAA,YACV,QAAQ;AAAA,UACpB;AAAA,MACA;AAAA,IACI;AACA,SAAK,QAAQC,EAAQ,KAAK,KAAK,GAC/BE,EAAc,MAAM,MAAM;AACxB,WAAKrB,GAAW,QAAQ,CAACM,MAAa;AACpC,QAAAA,EAAS,iBAAiBY,CAAM;AAAA,MAClC,CAAC,GACD,KAAKjB,GAAe,OAAO;AAAA,QACzB,UAAU;AAAA,QACV,MAAM;AAAA,QACN,QAAAiB;AAAA,MACR,CAAO;AAAA,IACH,CAAC;AAAA,EACH;AACF;AACA,SAASd,IAAkB;AACzB,SAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,eAAe;AAAA,IACf,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"mutation-BoVlx8yA.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.85.5/node_modules/@tanstack/query-core/build/modern/mutation.js"],"sourcesContent":["// src/mutation.ts\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Removable } from \"./removable.js\";\nimport { createRetryer } from \"./retryer.js\";\nvar Mutation = class extends Removable {\n #observers;\n #mutationCache;\n #retryer;\n constructor(config) {\n super();\n this.mutationId = config.mutationId;\n this.#mutationCache = config.mutationCache;\n this.#observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n setOptions(options) {\n this.options = options;\n this.updateGcTime(this.options.gcTime);\n }\n get meta() {\n return this.options.meta;\n }\n addObserver(observer) {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer);\n this.clearGcTimeout();\n this.#mutationCache.notify({\n type: \"observerAdded\",\n mutation: this,\n observer\n });\n }\n }\n removeObserver(observer) {\n this.#observers = this.#observers.filter((x) => x !== observer);\n this.scheduleGc();\n this.#mutationCache.notify({\n type: \"observerRemoved\",\n mutation: this,\n observer\n });\n }\n optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === \"pending\") {\n this.scheduleGc();\n } else {\n this.#mutationCache.remove(this);\n }\n }\n }\n continue() {\n return this.#retryer?.continue() ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables);\n }\n async execute(variables) {\n const onContinue = () => {\n this.#dispatch({ type: \"continue\" });\n };\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error(\"No mutationFn found\"));\n }\n return this.options.mutationFn(variables);\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: \"failed\", failureCount, error });\n },\n onPause: () => {\n this.#dispatch({ type: \"pause\" });\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this)\n });\n const restored = this.state.status === \"pending\";\n const isPaused = !this.#retryer.canStart();\n try {\n if (restored) {\n onContinue();\n } else {\n this.#dispatch({ type: \"pending\", variables, isPaused });\n await this.#mutationCache.config.onMutate?.(\n variables,\n this\n );\n const context = await this.options.onMutate?.(variables);\n if (context !== this.state.context) {\n this.#dispatch({\n type: \"pending\",\n context,\n variables,\n isPaused\n });\n }\n }\n const data = await this.#retryer.start();\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this\n );\n await this.options.onSuccess?.(data, variables, this.state.context);\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(data, null, variables, this.state.context);\n this.#dispatch({ type: \"success\", data });\n return data;\n } catch (error) {\n try {\n await this.#mutationCache.config.onError?.(\n error,\n variables,\n this.state.context,\n this\n );\n await this.options.onError?.(\n error,\n variables,\n this.state.context\n );\n await this.#mutationCache.config.onSettled?.(\n void 0,\n error,\n this.state.variables,\n this.state.context,\n this\n );\n await this.options.onSettled?.(\n void 0,\n error,\n variables,\n this.state.context\n );\n throw error;\n } finally {\n this.#dispatch({ type: \"error\", error });\n }\n } finally {\n this.#mutationCache.runNext(this);\n }\n }\n #dispatch(action) {\n const reducer = (state) => {\n switch (action.type) {\n case \"failed\":\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n case \"pause\":\n return {\n ...state,\n isPaused: true\n };\n case \"continue\":\n return {\n ...state,\n isPaused: false\n };\n case \"pending\":\n return {\n ...state,\n context: action.context,\n data: void 0,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: \"pending\",\n variables: action.variables,\n submittedAt: Date.now()\n };\n case \"success\":\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: \"success\",\n isPaused: false\n };\n case \"error\":\n return {\n ...state,\n data: void 0,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: \"error\"\n };\n }\n };\n this.state = reducer(this.state);\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action);\n });\n this.#mutationCache.notify({\n mutation: this,\n type: \"updated\",\n action\n });\n });\n }\n};\nfunction getDefaultState() {\n return {\n context: void 0,\n data: void 0,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: \"idle\",\n variables: void 0,\n submittedAt: 0\n };\n}\nexport {\n Mutation,\n getDefaultState\n};\n//# sourceMappingURL=mutation.js.map"],"names":["Mutation","Removable","#observers","#mutationCache","#retryer","config","getDefaultState","options","observer","x","variables","onContinue","#dispatch","createRetryer","failureCount","error","restored","isPaused","context","data","action","reducer","state","notifyManager"],"mappings":";AAIG,IAACA,IAAW,cAAcC,EAAU;AAAA,EACrCC;AAAA,EACAC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQ;AAClB,UAAK,GACL,KAAK,aAAaA,EAAO,YACzB,KAAKF,KAAiBE,EAAO,eAC7B,KAAKH,KAAa,CAAA,GAClB,KAAK,QAAQG,EAAO,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AAA,YACL,GAAGE;AAAA,YACH,MAAMF,EAAO;AAAA,YACb,cAAc;AAAA,YACd,eAAe;AAAA,YACf,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,UAAU;AAAA,UACtB;AAAA,QACQ,KAAK;AACH,iBAAO;AAAA,YACL,GAAGE;AAAA,YACH,MAAM;AAAA,YACN,OAAOF,EAAO;AAAA,YACd,cAAcE,EAAM,eAAe;AAAA,YACnC,eAAeF,EAAO;AAAA,YACtB,UAAU;AAAA,YACV,QAAQ;AAAA,UACpB;AAAA,MACA;AAAA,IACI;AACA,SAAK,QAAQC,EAAQ,KAAK,KAAK,GAC/BE,EAAc,MAAM,MAAM;AACxB,WAAKrB,GAAW,QAAQ,CAACM,MAAa;AACpC,QAAAA,EAAS,iBAAiBY,CAAM;AAAA,MAClC,CAAC,GACD,KAAKjB,GAAe,OAAO;AAAA,QACzB,UAAU;AAAA,QACV,MAAM;AAAA,QACN,QAAAiB;AAAA,MACR,CAAO;AAAA,IACH,CAAC;AAAA,EACH;AACF;AACA,SAASd,IAAkB;AACzB,SAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,cAAc;AAAA,IACd,eAAe;AAAA,IACf,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,aAAa;AAAA,EACjB;AACA;","x_google_ignoreList":[0]}
@@ -1,7 +1,7 @@
1
1
  import "../jsx-runtime-BzflLqGi.js";
2
2
  import "react";
3
- import "../ZudokuContext-np1wheDl.js";
4
- import { S as h } from "../SyntaxHighlight-bkmst3oV.js";
3
+ import "../ZudokuContext-BXldanA8.js";
4
+ import { S as h } from "../SyntaxHighlight-Kdyskw3C.js";
5
5
  import "../invariant-CGOLuIIz.js";
6
6
  import "./CodeBlock.js";
7
7
  import "./EmbeddedCodeBlock.js";
@@ -0,0 +1,97 @@
1
+ import * as o from "react";
2
+ import { g as l } from "./mutation-BoVlx8yA.js";
3
+ import { S as p, s as d, h, n as a, f as b, g as m, i as f } from "./ZudokuContext-BXldanA8.js";
4
+ var v = class extends p {
5
+ #e;
6
+ #i = void 0;
7
+ #t;
8
+ #s;
9
+ constructor(t, s) {
10
+ super(), this.#e = t, this.setOptions(s), this.bindMethods(), this.#r();
11
+ }
12
+ bindMethods() {
13
+ this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
14
+ }
15
+ setOptions(t) {
16
+ const s = this.options;
17
+ this.options = this.#e.defaultMutationOptions(t), d(this.options, s) || this.#e.getMutationCache().notify({
18
+ type: "observerOptionsUpdated",
19
+ mutation: this.#t,
20
+ observer: this
21
+ }), s?.mutationKey && this.options.mutationKey && h(s.mutationKey) !== h(this.options.mutationKey) ? this.reset() : this.#t?.state.status === "pending" && this.#t.setOptions(this.options);
22
+ }
23
+ onUnsubscribe() {
24
+ this.hasListeners() || this.#t?.removeObserver(this);
25
+ }
26
+ onMutationUpdate(t) {
27
+ this.#r(), this.#o(t);
28
+ }
29
+ getCurrentResult() {
30
+ return this.#i;
31
+ }
32
+ reset() {
33
+ this.#t?.removeObserver(this), this.#t = void 0, this.#r(), this.#o();
34
+ }
35
+ mutate(t, s) {
36
+ return this.#s = s, this.#t?.removeObserver(this), this.#t = this.#e.getMutationCache().build(this.#e, this.options), this.#t.addObserver(this), this.#t.execute(t);
37
+ }
38
+ #r() {
39
+ const t = this.#t?.state ?? l();
40
+ this.#i = {
41
+ ...t,
42
+ isPending: t.status === "pending",
43
+ isSuccess: t.status === "success",
44
+ isError: t.status === "error",
45
+ isIdle: t.status === "idle",
46
+ mutate: this.mutate,
47
+ reset: this.reset
48
+ };
49
+ }
50
+ #o(t) {
51
+ a.batch(() => {
52
+ if (this.#s && this.hasListeners()) {
53
+ const s = this.#i.variables, i = this.#i.context;
54
+ t?.type === "success" ? (this.#s.onSuccess?.(t.data, s, i), this.#s.onSettled?.(t.data, null, s, i)) : t?.type === "error" && (this.#s.onError?.(t.error, s, i), this.#s.onSettled?.(
55
+ void 0,
56
+ t.error,
57
+ s,
58
+ i
59
+ ));
60
+ }
61
+ this.listeners.forEach((s) => {
62
+ s(this.#i);
63
+ });
64
+ });
65
+ }
66
+ };
67
+ function g(t, s) {
68
+ const i = b(s), [e] = o.useState(
69
+ () => new v(
70
+ i,
71
+ t
72
+ )
73
+ );
74
+ o.useEffect(() => {
75
+ e.setOptions(t);
76
+ }, [e, t]);
77
+ const r = o.useSyncExternalStore(
78
+ o.useCallback(
79
+ (n) => e.subscribe(a.batchCalls(n)),
80
+ [e]
81
+ ),
82
+ () => e.getCurrentResult(),
83
+ () => e.getCurrentResult()
84
+ ), u = o.useCallback(
85
+ (n, c) => {
86
+ e.mutate(n, c).catch(m);
87
+ },
88
+ [e]
89
+ );
90
+ if (r.error && f(e.options.throwOnError, [r.error]))
91
+ throw r.error;
92
+ return { ...r, mutate: u, mutateAsync: r.mutate };
93
+ }
94
+ export {
95
+ g as u
96
+ };
97
+ //# sourceMappingURL=useMutation-C6RqWmTS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMutation-C6RqWmTS.js","sources":["../../../node_modules/.pnpm/@tanstack+query-core@5.85.5/node_modules/@tanstack/query-core/build/modern/mutationObserver.js","../../../node_modules/.pnpm/@tanstack+react-query@5.85.5_react@19.2.0/node_modules/@tanstack/react-query/build/modern/useMutation.js"],"sourcesContent":["// src/mutationObserver.ts\nimport { getDefaultState } from \"./mutation.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { hashKey, shallowEqualObjects } from \"./utils.js\";\nvar MutationObserver = class extends Subscribable {\n #client;\n #currentResult = void 0;\n #currentMutation;\n #mutateOptions;\n constructor(client, options) {\n super();\n this.#client = client;\n this.setOptions(options);\n this.bindMethods();\n this.#updateResult();\n }\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n setOptions(options) {\n const prevOptions = this.options;\n this.options = this.#client.defaultMutationOptions(options);\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: \"observerOptionsUpdated\",\n mutation: this.#currentMutation,\n observer: this\n });\n }\n if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) {\n this.reset();\n } else if (this.#currentMutation?.state.status === \"pending\") {\n this.#currentMutation.setOptions(this.options);\n }\n }\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this);\n }\n }\n onMutationUpdate(action) {\n this.#updateResult();\n this.#notify(action);\n }\n getCurrentResult() {\n return this.#currentResult;\n }\n reset() {\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = void 0;\n this.#updateResult();\n this.#notify();\n }\n mutate(variables, options) {\n this.#mutateOptions = options;\n this.#currentMutation?.removeObserver(this);\n this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);\n this.#currentMutation.addObserver(this);\n return this.#currentMutation.execute(variables);\n }\n #updateResult() {\n const state = this.#currentMutation?.state ?? getDefaultState();\n this.#currentResult = {\n ...state,\n isPending: state.status === \"pending\",\n isSuccess: state.status === \"success\",\n isError: state.status === \"error\",\n isIdle: state.status === \"idle\",\n mutate: this.mutate,\n reset: this.reset\n };\n }\n #notify(action) {\n notifyManager.batch(() => {\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables;\n const context = this.#currentResult.context;\n if (action?.type === \"success\") {\n this.#mutateOptions.onSuccess?.(action.data, variables, context);\n this.#mutateOptions.onSettled?.(action.data, null, variables, context);\n } else if (action?.type === \"error\") {\n this.#mutateOptions.onError?.(action.error, variables, context);\n this.#mutateOptions.onSettled?.(\n void 0,\n action.error,\n variables,\n context\n );\n }\n }\n this.listeners.forEach((listener) => {\n listener(this.#currentResult);\n });\n });\n }\n};\nexport {\n MutationObserver\n};\n//# sourceMappingURL=mutationObserver.js.map","\"use client\";\n\n// src/useMutation.ts\nimport * as React from \"react\";\nimport {\n MutationObserver,\n noop,\n notifyManager,\n shouldThrowError\n} from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nfunction useMutation(options, queryClient) {\n const client = useQueryClient(queryClient);\n const [observer] = React.useState(\n () => new MutationObserver(\n client,\n options\n )\n );\n React.useEffect(() => {\n observer.setOptions(options);\n }, [observer, options]);\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n const mutate = React.useCallback(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop);\n },\n [observer]\n );\n if (result.error && shouldThrowError(observer.options.throwOnError, [result.error])) {\n throw result.error;\n }\n return { ...result, mutate, mutateAsync: result.mutate };\n}\nexport {\n useMutation\n};\n//# sourceMappingURL=useMutation.js.map"],"names":["MutationObserver","Subscribable","#client","#currentResult","#currentMutation","#mutateOptions","client","options","#updateResult","prevOptions","shallowEqualObjects","hashKey","action","#notify","variables","state","getDefaultState","notifyManager","context","listener","useMutation","queryClient","useQueryClient","observer","React","result","onStoreChange","mutate","mutateOptions","noop","shouldThrowError"],"mappings":";;;AAKA,IAAIA,IAAmB,cAAcC,EAAa;AAAA,EAChDC;AAAA,EACAC,KAAiB;AAAA,EACjBC;AAAA,EACAC;AAAA,EACA,YAAYC,GAAQC,GAAS;AAC3B,UAAK,GACL,KAAKL,KAAUI,GACf,KAAK,WAAWC,CAAO,GACvB,KAAK,YAAW,GAChB,KAAKC,GAAa;AAAA,EACpB;AAAA,EACA,cAAc;AACZ,SAAK,SAAS,KAAK,OAAO,KAAK,IAAI,GACnC,KAAK,QAAQ,KAAK,MAAM,KAAK,IAAI;AAAA,EACnC;AAAA,EACA,WAAWD,GAAS;AAClB,UAAME,IAAc,KAAK;AACzB,SAAK,UAAU,KAAKP,GAAQ,uBAAuBK,CAAO,GACrDG,EAAoB,KAAK,SAASD,CAAW,KAChD,KAAKP,GAAQ,iBAAgB,EAAG,OA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S,QAAQ,cAAc,CAACE,EAAO,KAAK,CAAC;AAChF,UAAMA,EAAO;AAEf,SAAO,EAAE,GAAGA,GAAQ,QAAAE,GAAQ,aAAaF,EAAO,OAAM;AACxD;","x_google_ignoreList":[0,1]}
@@ -1,22 +1,22 @@
1
1
  import { a as Ke, H as He } from "./index.esm-DtzT_KoE.js";
2
2
  import { j as a } from "./jsx-runtime-BzflLqGi.js";
3
- import { S as Ve, r as Je, Q as Zt, n as j, v as ye, w as we, i as I, x as $t, y as jt, z as Pt, A as Ot, B as be, D as ze, E as Et, h as ke, F as xe, G as At, H as Tt, g as St, I as Ge, f as It, a as re, p as Dt, j as Ct } from "./ZudokuContext-np1wheDl.js";
4
- import { M as Nt } from "./mutation-BlmnL5qL.js";
3
+ import { S as Ve, r as Je, Q as Zt, n as j, v as ye, w as we, g as I, x as $t, y as jt, z as Pt, A as Ot, B as be, D as ze, E as Et, h as ke, F as xe, G as At, H as Tt, f as St, I as Ge, k as It, a as re, p as Dt, j as Ct } from "./ZudokuContext-BXldanA8.js";
4
+ import { M as Nt } from "./mutation-BoVlx8yA.js";
5
5
  import * as D from "react";
6
6
  import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Rt, Suspense as Ft } from "react";
7
7
  import { t as Ut, S as qt, a as et, b2 as Mt, O as Qt } from "./chunk-PVWAREVJ-dLIqswPy.js";
8
8
  import * as Lt from "react-dom";
9
- import { a as Bt, u as Wt, P as Kt, H as Ht } from "./index-mfkNWYG-.js";
10
- import { B as tt, R as Vt } from "./RouteGuard-BXy13JSz.js";
9
+ import { a as Bt, u as Wt, P as Kt, H as Ht } from "./index-CCmMJp02.js";
10
+ import { B as tt, R as Vt } from "./RouteGuard-9wjejsKm.js";
11
11
  import { CircleFadingArrowUpIcon as Jt, LoaderCircleIcon as Gt, ExternalLink as Yt, PanelLeftIcon as Xt } from "lucide-react";
12
12
  import { Button as en } from "./ui/Button.js";
13
- import { a as C, A as tn, s as nn, N as Ze, f as rn, g as on, T as sn, H as an, E as cn } from "./ErrorAlert-BqjbNHIn.js";
13
+ import { a as C, A as tn, s as nn, N as Ze, f as rn, g as on, T as sn, H as an, E as cn } from "./ErrorAlert-DrOR8w3f.js";
14
14
  import { c as E } from "./cn-dYga0KKN.js";
15
15
  import { d as A, b as un, c as ln } from "./Drawer-Ci7XwhqT.js";
16
16
  import { VisuallyHidden as dn } from "@radix-ui/react-visually-hidden";
17
17
  import { S as hn } from "./Spinner-CI6bRyZw.js";
18
18
  import { C as fn } from "./CategoryHeading-DhmodDcq.js";
19
- import { N as pn, R as mn } from "./RouterError-CKOZTsDD.js";
19
+ import { N as pn, R as mn } from "./RouterError-DSLXagd5.js";
20
20
  var gn = class extends Ve {
21
21
  constructor(e = {}) {
22
22
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- import { u as r } from "./ZudokuContext-np1wheDl.js";
1
+ import { u as r } from "./ZudokuContext-BXldanA8.js";
2
2
  import { OpenIDAuthenticationProvider as a } from "./zudoku.auth-openid.js";
3
3
  class p extends a {
4
4
  options;
@@ -1,10 +1,10 @@
1
1
  import { j as n } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { PublicClientApplication as A, EventType as f } from "@azure/msal-browser";
3
- import { E as I } from "./index-mfkNWYG-.js";
3
+ import { E as I } from "./index-CCmMJp02.js";
4
4
  import { C as T } from "./ClientOnly-E7hGysn1.js";
5
- import { j as S, u as h } from "./ZudokuContext-np1wheDl.js";
6
- import { C, A as c } from "./errors-B0hNTPFO.js";
7
- import { C as k, O as w } from "./OAuthErrorPage-Dup79DJk.js";
5
+ import { j as S, u as h } from "./ZudokuContext-BXldanA8.js";
6
+ import { C, A as c } from "./errors-Bs4duWDy.js";
7
+ import { C as k, O as w } from "./OAuthErrorPage-Fq54RLgt.js";
8
8
  const u = "/oauth/callback";
9
9
  class y extends C {
10
10
  msalInstance;
@@ -1,7 +1,7 @@
1
1
  import { j as l } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { LogOutIcon as f } from "lucide-react";
3
- import { S as w, a as p, b as v } from "./SignUp-Pm_LGm6T.js";
4
- import { u as n } from "./ZudokuContext-np1wheDl.js";
3
+ import { S as w, a as p, b as v } from "./SignUp-BjS4ozA7.js";
4
+ import { u as n } from "./ZudokuContext-BXldanA8.js";
5
5
  const b = ({
6
6
  clerkPubKey: d,
7
7
  jwtTemplateName: m,
@@ -0,0 +1,9 @@
1
+ import "./jsx-runtime-BzflLqGi.js";
2
+ import { w as a } from "./firebase-qUdSEL1p.js";
3
+ import "./errors-Bs4duWDy.js";
4
+ import "./SignUp-BjS4ozA7.js";
5
+ import "./ZudokuContext-BXldanA8.js";
6
+ export {
7
+ a as default
8
+ };
9
+ //# sourceMappingURL=zudoku.auth-firebase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zudoku.auth-firebase.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,10 +1,10 @@
1
1
  import { j as D } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { a as Le } from "./invariant-CGOLuIIz.js";
3
- import { E as Ue } from "./index-mfkNWYG-.js";
3
+ import { E as Ue } from "./index-CCmMJp02.js";
4
4
  import { C as xe } from "./ClientOnly-E7hGysn1.js";
5
- import { j as Ce, u as S } from "./ZudokuContext-np1wheDl.js";
6
- import { C as Ie, O as re, A as R } from "./errors-B0hNTPFO.js";
7
- import { C as je, O as Oe } from "./OAuthErrorPage-Dup79DJk.js";
5
+ import { j as Ce, u as S } from "./ZudokuContext-BXldanA8.js";
6
+ import { C as Ie, O as re, A as R } from "./errors-Bs4duWDy.js";
7
+ import { C as je, O as Oe } from "./OAuthErrorPage-Fq54RLgt.js";
8
8
  var J = { exports: {} }, De = J.exports, oe;
9
9
  function Je() {
10
10
  return oe || (oe = 1, (function(t) {
@@ -1,12 +1,12 @@
1
1
  import { j as i } from "./jsx-runtime-BzflLqGi.js";
2
2
  import { createClient as h } from "@supabase/supabase-js";
3
- import { C as m, A as g } from "./errors-B0hNTPFO.js";
4
- import { S as f } from "./SignUp-Pm_LGm6T.js";
5
- import { u } from "./ZudokuContext-np1wheDl.js";
3
+ import { C as m, A as g } from "./errors-Bs4duWDy.js";
4
+ import { S as f } from "./SignUp-BjS4ozA7.js";
5
+ import { u } from "./ZudokuContext-BXldanA8.js";
6
6
  import { Auth as v } from "@supabase/auth-ui-react";
7
7
  import { ThemeSupa as S } from "@supabase/auth-ui-shared";
8
8
  import { b as A } from "./chunk-PVWAREVJ-dLIqswPy.js";
9
- import { H as T } from "./ErrorAlert-BqjbNHIn.js";
9
+ import { H as T } from "./ErrorAlert-DrOR8w3f.js";
10
10
  const d = ({
11
11
  client: s,
12
12
  config: e,
@@ -1,14 +1,14 @@
1
1
  import "./index.esm-DtzT_KoE.js";
2
- import "./index-DnMgJWrI.js";
2
+ import "./index-Css56y3F.js";
3
3
  import "./chunk-PVWAREVJ-dLIqswPy.js";
4
- import "./hook-CvSwcbk6.js";
4
+ import "./hook-BNxidGQq.js";
5
5
  import "./ui/Button.js";
6
6
  import "./ui/Callout.js";
7
7
  import "./ClientOnly-E7hGysn1.js";
8
- import "./ZudokuContext-np1wheDl.js";
9
- import "./ErrorAlert-BqjbNHIn.js";
8
+ import "./ZudokuContext-BXldanA8.js";
9
+ import "./ErrorAlert-DrOR8w3f.js";
10
10
  import "./Spinner-CI6bRyZw.js";
11
- import { B as d, i as h, C as l, d as k, c as S, L as y, M, e as T, S as Z, T as c, Z as f, g, h as A, f as B, j as E, u as H } from "./index-mfkNWYG-.js";
11
+ import { B as d, i as h, C as l, d as k, c as S, L as y, M, e as T, S as Z, T as c, Z as f, g, h as A, f as B, j as E, u as H } from "./index-CCmMJp02.js";
12
12
  export {
13
13
  d as Button,
14
14
  h as CACHE_KEYS,
@@ -1,6 +1,6 @@
1
- import { b as o, h as u, e as p, f as r, g as t, a as m, c as C } from "./index-DnMgJWrI.js";
2
- import "./hook-CvSwcbk6.js";
3
- import { C as E } from "./ZudokuContext-np1wheDl.js";
1
+ import { b as o, h as u, e as p, f as r, g as t, a as m, c as C } from "./index-Css56y3F.js";
2
+ import "./hook-BNxidGQq.js";
3
+ import { C as E } from "./ZudokuContext-BXldanA8.js";
4
4
  export {
5
5
  E as CACHE_KEYS,
6
6
  o as useAuth,
@@ -1,8 +1,8 @@
1
1
  import "./jsx-runtime-BzflLqGi.js";
2
- import "./ZudokuContext-np1wheDl.js";
2
+ import "./ZudokuContext-BXldanA8.js";
3
3
  import "react";
4
- import { M as e } from "./Mermaid-CIFixY6C.js";
5
- import "./index-DnMgJWrI.js";
4
+ import { M as e } from "./Mermaid-D_VSX7_Q.js";
5
+ import "./index-Css56y3F.js";
6
6
  import "./Spinner-CI6bRyZw.js";
7
7
  export {
8
8
  e as Mermaid
@@ -1,10 +1,10 @@
1
1
  import { j as t } from "./jsx-runtime-BzflLqGi.js";
2
- import { s as f } from "./index-DscsS121.js";
2
+ import { s as f } from "./index-Bh-MffiL.js";
3
3
  import { e as b, m as j } from "./chunk-PVWAREVJ-dLIqswPy.js";
4
- import { u as x, e as v, j as d } from "./ZudokuContext-np1wheDl.js";
4
+ import { u as x, e as v, j as d } from "./ZudokuContext-BXldanA8.js";
5
5
  import { H as y } from "./index.esm-DtzT_KoE.js";
6
- import { L as N } from "./index-mfkNWYG-.js";
7
- import { H as k, M as S } from "./ErrorAlert-BqjbNHIn.js";
6
+ import { L as N } from "./index-CCmMJp02.js";
7
+ import { H as k, M as S } from "./ErrorAlert-DrOR8w3f.js";
8
8
  const w = ({
9
9
  items: o,
10
10
  filterCatalogItems: r = (i) => i,