khoj 1.30.2.dev22__py3-none-any.whl → 1.30.8.dev17__py3-none-any.whl

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 (89) hide show
  1. khoj/database/adapters/__init__.py +1 -1
  2. khoj/database/admin.py +39 -0
  3. khoj/interface/compiled/404/index.html +1 -1
  4. khoj/interface/compiled/_next/static/chunks/1603-c68d44bc4ae6039a.js +1 -0
  5. khoj/interface/compiled/_next/static/chunks/{6901-e3dc0d315e3f6033.js → 2646-92ba433951d02d52.js} +2 -2
  6. khoj/interface/compiled/_next/static/chunks/3463-081c031e873b7966.js +3 -0
  7. khoj/interface/compiled/_next/static/chunks/{6297-55f82537bb7068dd.js → 3717-b46079dbe9f55694.js} +1 -1
  8. khoj/interface/compiled/_next/static/chunks/4752-554a3db270186ce3.js +1 -0
  9. khoj/interface/compiled/_next/static/chunks/app/agents/layout-1878cc328ea380bd.js +1 -0
  10. khoj/interface/compiled/_next/static/chunks/app/agents/{page-5f6e0dacc34e33ad.js → page-2ffa7560aebff9a1.js} +1 -1
  11. khoj/interface/compiled/_next/static/chunks/app/automations/layout-f1050c1f20a3af67.js +1 -0
  12. khoj/interface/compiled/_next/static/chunks/app/automations/{page-60bc7454bc3ea881.js → page-b0a6a6ed2267c1a2.js} +1 -1
  13. khoj/interface/compiled/_next/static/chunks/app/chat/layout-9219a85f3477e722.js +1 -0
  14. khoj/interface/compiled/_next/static/chunks/app/chat/page-02f8616bba3e449e.js +1 -0
  15. khoj/interface/compiled/_next/static/chunks/app/layout-72ec1be8afd0b1ab.js +1 -0
  16. khoj/interface/compiled/_next/static/chunks/app/{page-358154a4436ef316.js → page-3ffd8f0934b896f3.js} +1 -1
  17. khoj/interface/compiled/_next/static/chunks/app/search/layout-2ca475462c0b2176.js +1 -0
  18. khoj/interface/compiled/_next/static/chunks/app/search/{page-64ea1717528979af.js → page-059f237514f77628.js} +1 -1
  19. khoj/interface/compiled/_next/static/chunks/app/settings/layout-fe8a2f65ccafd142.js +1 -0
  20. khoj/interface/compiled/_next/static/chunks/app/settings/{page-17a538580c65e7fe.js → page-32e9423bede5b4a1.js} +1 -1
  21. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-592e8c470f2c2084.js +1 -0
  22. khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-47641b3691fb0856.js → page-0b8d90dc57dbc1d8.js} +1 -1
  23. khoj/interface/compiled/_next/static/chunks/{webpack-2389f756cfc04602.js → webpack-64477b5a1e621214.js} +1 -1
  24. khoj/interface/compiled/_next/static/css/3c34171b174cc381.css +25 -0
  25. khoj/interface/compiled/_next/static/css/{2ff098d0815fdbc1.css → 9d45de78fba367c1.css} +1 -1
  26. khoj/interface/compiled/_next/static/css/bedf49fbfc598358.css +1 -0
  27. khoj/interface/compiled/_next/static/media/e098aaaecc9cfbb2-s.p.woff2 +0 -0
  28. khoj/interface/compiled/agents/index.html +1 -1
  29. khoj/interface/compiled/agents/index.txt +2 -2
  30. khoj/interface/compiled/automations/index.html +1 -1
  31. khoj/interface/compiled/automations/index.txt +3 -3
  32. khoj/interface/compiled/chat/index.html +1 -1
  33. khoj/interface/compiled/chat/index.txt +2 -2
  34. khoj/interface/compiled/index.html +1 -1
  35. khoj/interface/compiled/index.txt +2 -2
  36. khoj/interface/compiled/search/index.html +1 -1
  37. khoj/interface/compiled/search/index.txt +2 -2
  38. khoj/interface/compiled/settings/index.html +1 -1
  39. khoj/interface/compiled/settings/index.txt +3 -3
  40. khoj/interface/compiled/share/chat/index.html +1 -1
  41. khoj/interface/compiled/share/chat/index.txt +2 -2
  42. khoj/interface/web/.well-known/assetlinks.json +11 -0
  43. khoj/main.py +4 -0
  44. khoj/processor/conversation/anthropic/anthropic_chat.py +8 -2
  45. khoj/processor/conversation/anthropic/utils.py +8 -3
  46. khoj/processor/conversation/google/gemini_chat.py +8 -2
  47. khoj/processor/conversation/google/utils.py +8 -3
  48. khoj/processor/conversation/offline/chat_model.py +12 -4
  49. khoj/processor/conversation/openai/gpt.py +9 -2
  50. khoj/processor/conversation/openai/utils.py +7 -3
  51. khoj/processor/conversation/prompts.py +4 -4
  52. khoj/processor/conversation/utils.py +7 -4
  53. khoj/processor/tools/run_code.py +1 -25
  54. khoj/routers/api_chat.py +12 -2
  55. khoj/routers/api_subscription.py +9 -2
  56. khoj/routers/auth.py +2 -2
  57. khoj/routers/research.py +2 -1
  58. khoj/routers/web_client.py +5 -0
  59. khoj/utils/cli.py +2 -0
  60. khoj/utils/constants.py +1 -0
  61. khoj/utils/helpers.py +34 -4
  62. khoj/utils/state.py +1 -0
  63. {khoj-1.30.2.dev22.dist-info → khoj-1.30.8.dev17.dist-info}/METADATA +9 -4
  64. {khoj-1.30.2.dev22.dist-info → khoj-1.30.8.dev17.dist-info}/RECORD +74 -74
  65. khoj/interface/compiled/_next/static/chunks/1603-1407afe510f0145a.js +0 -1
  66. khoj/interface/compiled/_next/static/chunks/216-b2e4344315b88832.js +0 -1
  67. khoj/interface/compiled/_next/static/chunks/3124-e8410bbd01f6f188.js +0 -1
  68. khoj/interface/compiled/_next/static/chunks/796-36ee2d6829448c6d.js +0 -3
  69. khoj/interface/compiled/_next/static/chunks/9417-06236cd650f1abcd.js +0 -1
  70. khoj/interface/compiled/_next/static/chunks/app/agents/layout-e9838b642913a071.js +0 -1
  71. khoj/interface/compiled/_next/static/chunks/app/automations/layout-7f1b79a2c67af0b4.js +0 -1
  72. khoj/interface/compiled/_next/static/chunks/app/chat/layout-b0e7ff4baa3b5265.js +0 -1
  73. khoj/interface/compiled/_next/static/chunks/app/chat/page-ac366c9111374312.js +0 -1
  74. khoj/interface/compiled/_next/static/chunks/app/layout-86561d2fac35a91a.js +0 -1
  75. khoj/interface/compiled/_next/static/chunks/app/search/layout-ea6b73fdaf9b24ca.js +0 -1
  76. khoj/interface/compiled/_next/static/chunks/app/settings/layout-1f4d76a8b09517b1.js +0 -1
  77. khoj/interface/compiled/_next/static/chunks/app/share/chat/layout-cf7445cf0326bda3.js +0 -1
  78. khoj/interface/compiled/_next/static/css/0e9d53dcd7f11342.css +0 -1
  79. khoj/interface/compiled/_next/static/css/1a4038cc4acc8ee4.css +0 -25
  80. /khoj/interface/compiled/_next/static/{Tua1S1yzYQvGP_toWnaaz → X8lPgmtHPY-a6sH5qx8z9}/_buildManifest.js +0 -0
  81. /khoj/interface/compiled/_next/static/{Tua1S1yzYQvGP_toWnaaz → X8lPgmtHPY-a6sH5qx8z9}/_ssgManifest.js +0 -0
  82. /khoj/interface/compiled/_next/static/media/{5984b96ba4822821-s.woff2 → 5984b96ba4822821-s.p.woff2} +0 -0
  83. /khoj/interface/compiled/_next/static/media/{684adc3dde1b03f1-s.woff2 → 684adc3dde1b03f1-s.p.woff2} +0 -0
  84. /khoj/interface/compiled/_next/static/media/{82e3b9a1bdaf0c26-s.woff2 → 82e3b9a1bdaf0c26-s.p.woff2} +0 -0
  85. /khoj/interface/compiled/_next/static/media/{8d1ea331386a0db8-s.woff2 → 8d1ea331386a0db8-s.p.woff2} +0 -0
  86. /khoj/interface/compiled/_next/static/media/{b98b13dbc1c3b59c-s.woff2 → b98b13dbc1c3b59c-s.p.woff2} +0 -0
  87. {khoj-1.30.2.dev22.dist-info → khoj-1.30.8.dev17.dist-info}/WHEEL +0 -0
  88. {khoj-1.30.2.dev22.dist-info → khoj-1.30.8.dev17.dist-info}/entry_points.txt +0 -0
  89. {khoj-1.30.2.dev22.dist-info → khoj-1.30.8.dev17.dist-info}/licenses/LICENSE +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9417],{58575:function(c,a,s){s.d(a,{Iu:function(){return r},Zc:function(){return o},oz:function(){return n},tp:function(){return e},xF:function(){return t}});let t=["red","yellow","green","blue","orange","purple","pink","teal","cyan","lime","indigo","fuchsia","rose","sky","amber","emerald"];function n(c){return t.includes(c)?"text-".concat(c,"-500"):"text-gray-500"}function e(c){return t.includes(c)?"bg-".concat(c,"-500 dark:bg-").concat(c,"-900 hover:bg-").concat(c,"-400 dark:hover:bg-").concat(c,"-800"):"bg-background"}function o(c){return"".concat(t.includes(c)?"bg-gradient-to-b from-[hsl(var(--background))] to-".concat(c,"-100/70 dark:from-[hsl(var(--background))] dark:to-").concat(c,"-950/30 "):"bg-gradient-to-b from-white to-orange-50"," dark:border dark:border-neutral-700")}function r(c){return t.includes(c)?"border-".concat(c,"-500"):"border-gray-500"}let l={};for(let c of t)l[c]=r(c)},89417:function(c,a,s){s.d(a,{BI:function(){return co},vH:function(){return ct},Le:function(){return ce},TI:function(){return cn}});var t=s(57437);s(2265);var n=s(58575),e=s(16288),o=s(55631),r=s(8589),l=s(82059),m=s(58410),i=s(81980),u=s(46503),d=s(32145),x=s(57421),j=s(56698),N=s(47483),f=s(14850),h=s(5989),g=s(63205),p=s(18444),k=s(39557),b=s(86545),z=s(88420),w=s(70177),M=s(41959),v=s(67267),C=s(48687),y=s(96185),E=s(8606),W=s(48855),L=s(67247),B=s(43743),H=s(11925),T=s(20908),_=s(84835),A=s(77514),G=s(8658),I=s(58573),O=s(42520),S=s(98743),Y=s(92648),D=s(77574),F=s(89475),P=s(5198),R=s(2861),X=s(359),Z=s(52731),J=s(13493),K=s(88145),U=s(58259),$=s(26100),q=s(20153),Q=s(27850),V=s(48988),cc=s(12835);function ca(c){let{className:a}=c;return(0,t.jsxs)("svg",{className:"".concat(null!=a?a:"w-6 h-6 text-muted-foreground inline-flex mr-1"),xmlns:"http://www.w3.org/2000/svg",width:"144.98",height:"160",viewBox:"-7.65 -13.389 144.98 160",children:[(0,t.jsx)("path",{fill:"#a04d32",stroke:"#000",strokeWidth:"3",d:"M133.399 46.067c-.205-3.15-2.842-4.366-5.993-2.125-7.22-1.297-14.305-.687-17.8-.981-7.662-1.073-14.041-5.128-14.041-5.128.932-1.239.486-3.917-5.498-4.101-1.646-.542-3.336-1.327-4.933-1.979.544-1.145-.133-2.836-.133-2.836 2.435-.672 2.808-3.842 1.848-5.709 3.106.084 2.612-4.718 2.183-6.381 2.435-.923 2.77-3.831 1.763-6.129 2.938-.671 3.022-4.114 2.77-6.548 3.023-.168 2.604-5.457 2.604-6.549 2.604-1.679 2.016-3.946 2.425-6.573 1.605-3.25-.577-4.173-2.116-.71-1.651 3.001-3.77 4.311-3.75 6.528.755 1.259-5.625 3.106-3.61 7.052-1.428 1.763-4.785 4.03-3.592 6.733-.606 1.326-4.888 4.433-3.041 7.371-4.03 2.687-3.79 3.335-2.938 5.793-1.147.736-2.318 1.862-2.995 3.094-1.32-1.568-2.603-4.429-2.584-8.294 0-3.275-6.1.318-6.1 6.784 0 .556-.056 1.061-.134 1.542-2.11.243-4.751.707-8.08 1.494-.106.073-.157.186-.182.316a8.704 8.704 0 01-.277-1.553c-.582-3.79-4.934-9.56-7.057-2.434-1.096 2.611-1.74 4.392-2.115 5.789v0s-.336.226-.957.61c-2.62 1.622-3.562 6.686-13.075 9.883-3.211 1.079-7.4 1.945-12.96 2.395-9.57.773-27.887 17.314-29.114 33.097-.283 3.964.31 13.737 3.596 22.31l.005.02c.015.042.032.081.048.122.052.134.103.267.156.398.28.718.579 1.405.895 2.062 1.885 4.028 4.46 7.59 7.934 9.882a25.252 25.252 0 004.372 2.762c5.907 9.749 18.442 22.252 42.075 14.859 36.255-10.284 56.263 13.809 58.568 15.5 3.399 3.433-8.786-29.835-34.587-44.788-15.253-8.322-5.678-22.656-4.585-27.718 0 0 12.227 8.557 21.087-4.52 8.004 2.062 13.367-1.462 20.25 1.03 4.184 1.833 21.77.726 15.235-9.104 4.11-2.683 4.544-1.815 6.6-5.9 1.104-4.952-1.403-6.012-2.167-7.366zM63.106 32.768c-.041.018-.086.04-.125.056.039-.034.075-.062.115-.102l.01.046zm-13.413 4.523c-.073.429-.143.829-.212 1.216.037-.832.085-1.714.143-2.646.024.435.05.904.069 1.43zm10.693-6.333c.746 1.124 1.662 2.179 1.662 2.179s-.875-.79-1.662-2.179z"}),(0,t.jsx)("path",{fill:"#7a9",stroke:"#000",strokeWidth:".5",d:"M6.448 104.253s10.02 36.105 46.549 24.68c36.255-10.284 56.263 13.809 58.568 15.5 3.399 3.433-8.786-29.835-34.587-44.788-15.253-8.322-5.678-22.656-4.585-27.718 0 0 12.227 8.557 21.087-4.52 8.004 2.062 13.367-1.462 20.25 1.03 4.184 1.833 21.77.726 15.235-9.104 4.11-2.683 4.544-1.815 6.6-5.9 1.105-4.952-1.402-6.011-2.166-7.366-.205-3.15-2.842-4.366-5.993-2.125-7.22-1.297-14.305-.687-17.8-.981-7.662-1.073-14.041-5.128-14.041-5.128.932-1.239.486-3.917-5.498-4.101-3.287-1.082-6.752-3.136-9.288-3.162-2.567 0-2.914-2.537-2.914-2.537-1.606-.87-3.924-4.252-3.9-9.438 0-3.275-6.098.318-6.098 6.784s-5.818 7.758-5.818 7.758-2.55-2.281-2.855-5.958c-.582-3.79-4.934-9.56-7.057-2.434-3.226 7.646-3.485 9.43-4.115 13.154-1.31 7.711-.345 8.012-.345 8.012l-32.824 23.43z"}),(0,t.jsx)("path",{fill:"#314b49",stroke:"#314b49",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round",d:"M84.11 42.833c1.549-.562.897-.415 1.153-.581-2.96.575-9.635.614-14.317-1.133.392.23 2.568.962 2.845 1.128.218.715.1 1.438 2.932 2.709 2.559.793 5.845.461 6.835-.529.109-1.684.126-1.065.553-1.594z"}),(0,t.jsx)("path",{fill:"#314b49",stroke:"#314b49",strokeWidth:".5",d:"M116.479 61.979c-2.83-2.085-4.881-.264-6.47-.413.99-.645 3.763-2.062 8.246-2.062 2.532 0 3.879 2.196 5.57 2.207 1.14.007 4.472-1.71 5.14-2.378-.97.838.454 1.755-.49 3.003-.281.359-.836 1.511-2.662 2.051-2.05.971-5.411 1.762-9.334-2.408z"}),(0,t.jsx)("path",{fill:"#314b49",d:"M54.932 24.033s-3.355 7.996.312 15.329.522-6.829 4.688-4.162c3.397.385-2.387-3.215-2.033-7.819-.176-2.892-1.77-5.194-2.967-3.348zM119.336 50.417c0 1.121-1.363 2.03-3.045 2.03 3.573-1.121-.201-4.653-3.045-2.03 0-1.121 1.363-2.03 3.045-2.03s3.045.909 3.045 2.03z"}),(0,t.jsx)("path",{fill:"#314b49",d:"M114.169 47.833c3.772-.231 6.336.323 5.536 3.138.548-1.126 1.292-2.83-1.046-3.507-1.746-.388-3.3-.378-4.49.369z"}),(0,t.jsx)("path",{fill:"#a04d32",stroke:"#000",strokeWidth:".5",d:"M59.929 69.234c0-3.521-1.51-7.166-7.04-14.583-1.635-2.192-2.62-4.336-3.211-6.275-1.401-3.295-3.426-8.019-.613-17.233 0 0 .62-.384 0 0-2.62 1.622-3.562 6.686-13.075 9.883-3.211 1.079-7.4 1.945-12.96 2.395-9.568.773-27.886 17.314-29.113 33.097-.283 3.964.31 13.737 3.596 22.31l.005.02c.015.042.032.081.048.122.052.134.103.267.156.398.28.718.579 1.405.895 2.062 1.885 4.028 4.46 7.59 7.934 9.882 3.084 2.404 5.606 3.306 5.606 3.306-2.588-3.578-3.77-7.562-2.263-12.32.65 2.637 1.903 4.162 3.646 4.777-.615-1.884-.827-3.549 0-4.651 2.567 6.734 5.353 9.031 8.17 10.686-2.63-4.914-4.031-10.005-3.77-15.337 2.569 6.028 6.596 9.945 10.56 13.954-3.78-5.966-6.911-12.104-6.977-19.046 1.693 2.778 3.935 4.932 6.6 6.601-1.683-2.709-2.505-5.51-2.263-8.423 4.424 4.945 9.36 6.607 14.332 8.046-5.197-3.625-9.843-7.537-12.32-12.572 2.972 1.464 5.948 1.693 8.926 1.383-3.706-1.872-5.07-5.252-5.783-9.052 5.177 5.279 10.587 8.827 16.09 11.692-5.455-5.26-9.478-10.65-11.565-16.218 2.1 1.18 4.157 1.736 6.16 1.509-2.766-3.124-3.465-6.182-4.211-9.241 2.637 3.916 4.959 6.022 7.103 7.103-2.19-4.482-2.034-8.432-.503-12.068 2.524 1.675 4.902 4.295 6.915 9.303.73-2.386-.447-6.364-1.886-10.56 2.175.622 4.779 3.351 8.17 9.932-.33-3.865-2.138-7.775-4.147-11.692 3.027 3.51 7.557 12.713 6.788 10.81z"}),(0,t.jsx)("path",{fill:"#796958",stroke:"#000",strokeWidth:".5",d:"M76.27 30.176s-.252 7.472 6.717 2.603c3.61.084 2.015-3.862 2.015-3.862 2.435-.672 2.808-3.842 1.848-5.709 3.106.084 2.612-4.718 2.183-6.381 2.435-.923 2.77-3.831 1.763-6.129 2.938-.671 3.022-4.114 2.77-6.548 3.023-.168 2.604-5.457 2.604-6.549 2.604-1.679 2.016-3.946 2.425-6.573 1.605-3.25-.577-4.173-2.116-.71-1.651 3.001-3.77 4.311-3.75 6.528.755 1.259-5.625 3.106-3.61 7.052-1.428 1.763-4.785 4.03-3.592 6.733-.606 1.326-4.888 4.433-3.041 7.371-4.03 2.687-3.79 3.335-2.938 5.793-2.155 1.38-4.41 4.131-3.278 6.381z"}),(0,t.jsx)("path",{fill:"#fff",d:"M94.094-5.087s-.735 1.324-.735 2.133c0 .809 2.185.568 2.927-.227-1.625.024-2.965.289-2.192-1.906zM89.833 1.183s-.812 1.068-.183 2.316c.392.98 2.807.962 3.549.167-1.625.024-4.14-.287-3.366-2.483zM86.698 7.638s-.998 1.346-.492 2.602c0 .809 2.838.956 3.58.161-1.625.022-3.645-.489-3.088-2.763zM83.62 14.8s-1.402 1.542-.148 2.945c1.438.809 3.744.049 4.486-.746-1.625.022-4.894.076-4.337-2.199zM80.616 20.521s-1.575 1.414-.02 3.312c1.438.809 4.57.198 5.312-.597-1.624.024-5.99-1.346-5.292-2.715zM77.469 27.262s-1.403 1.542-.15 2.945c1.439.809 6.037-.186 6.779-.981-1.625.023-7.185.311-6.63-1.964z"}),(0,t.jsx)("path",{fill:"#a04d32",stroke:"#000",strokeWidth:".5",d:"M76.352 30.29c-.45-.45-.534-.896-.367-1.718 0 0 .369-4.107-16.333-.158-1.072.74 2.396 4.722 2.396 4.722s.418.215 1.047-.415c.253 1.123.852 4.081.233 4.579 1.245-.771 1.868-1.946 1.676-4.125 2.122.461 3.742 1.64 4.692 3.779.304-1.4.603-2.799-.384-4.126 2.182.285 3.88 1.496 5.362 3.124.22-.933.354-1.883 0-2.931 1.39.473 2.587 1.607 3.71 2.988 0 0 .21-3.862-2.032-5.719z"}),(0,t.jsx)("path",{opacity:".26",d:"M60.33 57.936s6.76 13.59 17.595 13.991c10.834.401 10.834-2.73 10.834-2.73s-15.527 3.048-28.43-11.261zM63.485 65.63c2.279 3.104 4.856 5.221 7.722 6.382 0 0-7.365 11.108-3.611 20.023s13.125 11.053 23.32 21.249c7.943 7.942 17.159 24.961 17.159 24.961s-17.834-14.176-29.42-13.479c0 0-2.687-9.668-10.585-17.566-11.244-11.245-16.168-25.875-4.585-41.57z"}),(0,t.jsx)("path",{opacity:".18",fill:"#fff",d:"M44.717 38.245c-3.874 2.501-8.42 7.096-24.415 8.083C3.252 53.112-7.131 73.013-3.475 86.792c1.348 7.317 3.89 14.18 3.89 14.18C-.47 95.053-.966 89.575 1.45 87.373c1.435 2.384 2.969 2.468 4.507 2.479-1.59-2.404-1.788-4.808 0-7.212 1.489 1.525 2.992 1.881 4.507 1.353-2.128-2.449-1.867-4.848 0-7.211 1.388 5.022 4.462 7.453 7.662 9.689-2.208-4.333-4.166-8.672-2.93-13.07 1.323.729 2.595.644 3.83 0-1.256-1.576-.924-3.153 0-4.732 2.948 3.04 6.214 3.724 9.466 4.507-2.661-2.454-5.543-4.527-6.761-9.465 1.5-1.811 3.269-2.685 5.408-2.253-1.901-1.167-1.65-2.543 0-4.057 2.089 1.104 4.195 1.352 6.31 1.127-2.807-1.68-8.424-4.994 11.269-20.283z"}),(0,t.jsx)("path",{opacity:".27",fill:"#fff",d:"M71.278 19.389c.996-.963 1.146-.65.854.285-.982 2.36.353 4.647.797 6.206l-3.871.114c.108-2.271.247-4.794 2.22-6.605z"})]})}let cs={Lightbulb:(c,a,s)=>(0,t.jsx)(e.v,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Robot:(c,a,s)=>(0,t.jsx)(o.H,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Aperture:(c,a,s)=>(0,t.jsx)(r.u,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),GraduationCap:(c,a,s)=>(0,t.jsx)(l.X,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Jeep:(c,a,s)=>(0,t.jsx)(m.s,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Island:(c,a,s)=>(0,t.jsx)(i.W,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),MathOperations:(c,a,s)=>(0,t.jsx)(u.M,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Asclepius:(c,a,s)=>(0,t.jsx)(d.N,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Couch:(c,a,s)=>(0,t.jsx)(x.v,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Code:(c,a,s)=>(0,t.jsx)(j.E,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Atom:(c,a,s)=>(0,t.jsx)(N.h,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),ClockCounterClockwise:(c,a,s)=>(0,t.jsx)(f.y,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Globe:(c,a,s)=>(0,t.jsx)(h.T,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Palette:(c,a,s)=>(0,t.jsx)(g.Y,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Book:(c,a,s)=>(0,t.jsx)(p.f,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Confetti:(c,a,s)=>(0,t.jsx)(k.D,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),House:(c,a,s)=>(0,t.jsx)(b.T,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Translate:(c,a,s)=>(0,t.jsx)(z.v,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),BowlFood:(c,a,s)=>(0,t.jsx)(w.a,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Lectern:(c,a,s)=>(0,t.jsx)(M.G,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Wallet:(c,a,s)=>(0,t.jsx)(v.w,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),PencilLine:(c,a,s)=>(0,t.jsx)(C.z,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Chalkboard:(c,a,s)=>(0,t.jsx)(y.a,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Cigarette:(c,a,s)=>(0,t.jsx)(E.m,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),CraneTower:(c,a,s)=>(0,t.jsx)(W.E,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Heart:(c,a,s)=>(0,t.jsx)(L.X,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Leaf:(c,a,s)=>(0,t.jsx)(B.B,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),NewspaperClipping:(c,a,s)=>(0,t.jsx)(H.g,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),OrangeSlice:(c,a,s)=>(0,t.jsx)(T.R,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),SmileyMelting:(c,a,s)=>(0,t.jsx)(_.N,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),YinYang:(c,a,s)=>(0,t.jsx)(A.x,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),SneakerMove:(c,a,s)=>(0,t.jsx)(G.D,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Student:(c,a,s)=>(0,t.jsx)(I.Z,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Oven:(c,a,s)=>(0,t.jsx)(O.o,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Gavel:(c,a,s)=>(0,t.jsx)(S._,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")}),Broadcast:(c,a,s)=>(0,t.jsx)(Y.z,{className:"".concat(a," ").concat(s," ").concat(c," mr-2")})};function ct(c){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=null!=a?a:"h-4 w-4";return c.includes("summarize")?(0,t.jsx)(D.U,{className:s}):c.includes("help")?(0,t.jsx)(F.H,{className:s}):c.includes("automation")?(0,t.jsx)(o.H,{className:s}):c.includes("webpage")?(0,t.jsx)(P.A,{className:s}):c.includes("notes")?(0,t.jsx)(R.a,{className:s}):c.includes("image")?(0,t.jsx)(X.E,{className:s}):c.includes("default")?(0,t.jsx)(Z.E,{className:s}):c.includes("diagram")?(0,t.jsx)(J.j,{className:s}):c.includes("general")?(0,t.jsx)(K.K,{className:s}):c.includes("online")?(0,t.jsx)(U.u,{className:s}):c.includes("text")?(0,t.jsx)(C.z,{className:s}):c.includes("code")?(0,t.jsx)(j.E,{className:s}):(0,t.jsx)($.o,{className:s})}function cn(c){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"gray",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"w-6",t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"h-6",e=cs[c],o=a.toLowerCase(),r=(0,n.oz)(o);return e?e(r,s,t):null}function ce(c){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"w-6 h-6 text-muted-foreground inline-flex mr-1";switch(c.split(".").pop()){case"org":return(0,t.jsx)(ca,{className:a});case"markdown":case"md":return(0,t.jsx)(q.Y,{className:a});case"pdf":return(0,t.jsx)(Q.y,{className:a});case"doc":case"docx":return(0,t.jsx)(V.t,{className:a});case"csv":case"json":return(0,t.jsx)(u.M,{className:a});case"txt":return(0,t.jsx)(R.a,{className:a});case"py":return(0,t.jsx)(j.E,{className:a});case"jpg":case"jpeg":case"png":case"webp":return(0,t.jsx)(X.E,{className:a,weight:"fill"});default:return(0,t.jsx)(cc.$,{className:a,weight:"fill"})}}function co(){return Object.keys(cs)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8459],{1600:function(n,_,a){Promise.resolve().then(a.t.bind(a,57454,23))},57454:function(n){n.exports={style:{fontFamily:"'__Noto_Sans_af6c42', '__Noto_Sans_Fallback_af6c42'",fontStyle:"normal"},className:"__className_af6c42"}}},function(n){n.O(0,[3729,2971,7023,1744],function(){return n(n.s=1600)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3179],{90836:function(t,e,r){Promise.resolve().then(r.bind(r,23367))},50151:function(t,e,r){"use strict";r.d(e,{FN:function(){return f},Mi:function(){return v},VW:function(){return d},_i:function(){return c},gD:function(){return p},lj:function(){return x},sA:function(){return m}});var s=r(57437),a=r(2265),n=r(44504),o=r(12218),i=r(74697),u=r(37440);let d=n.zt,c=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(n.l_,{ref:e,className:(0,u.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...a})});c.displayName=n.l_.displayName;let l=(0,o.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=a.forwardRef((t,e)=>{let{className:r,variant:a,...o}=t;return(0,s.jsx)(n.fC,{ref:e,className:(0,u.cn)(l({variant:a}),r),...o})});f.displayName=n.fC.displayName;let p=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(n.aU,{ref:e,className:(0,u.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...a})});p.displayName=n.aU.displayName;let m=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(n.x8,{ref:e,className:(0,u.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...a,children:(0,s.jsx)(i.Z,{className:"h-4 w-4"})})});m.displayName=n.x8.displayName;let v=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(n.Dx,{ref:e,className:(0,u.cn)("text-sm font-semibold",r),...a})});v.displayName=n.Dx.displayName;let x=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(n.dk,{ref:e,className:(0,u.cn)("text-sm opacity-90",r),...a})});x.displayName=n.dk.displayName},23367:function(t,e,r){"use strict";r.d(e,{Toaster:function(){return o}});var s=r(57437),a=r(50151),n=r(35657);function o(){let{toasts:t}=(0,n.pm)();return(0,s.jsxs)(a.VW,{children:[t.map(function(t){let{id:e,title:r,description:n,action:o,...i}=t;return(0,s.jsxs)(a.FN,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[r&&(0,s.jsx)(a.Mi,{children:r}),n&&(0,s.jsx)(a.lj,{children:n})]}),o,(0,s.jsx)(a.sA,{})]},e)}),(0,s.jsx)(a._i,{})]})}},35657:function(t,e,r){"use strict";r.d(e,{pm:function(){return f}});var s=r(2265);let a=0,n=new Map,o=t=>{if(n.has(t))return;let e=setTimeout(()=>{n.delete(t),c({type:"REMOVE_TOAST",toastId:t})},1e6);n.set(t,e)},i=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,1)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(t=>t.id===e.toast.id?{...t,...e.toast}:t)};case"DISMISS_TOAST":{let{toastId:r}=e;return r?o(r):t.toasts.forEach(t=>{o(t.id)}),{...t,toasts:t.toasts.map(t=>t.id===r||void 0===r?{...t,open:!1}:t)}}case"REMOVE_TOAST":if(void 0===e.toastId)return{...t,toasts:[]};return{...t,toasts:t.toasts.filter(t=>t.id!==e.toastId)}}},u=[],d={toasts:[]};function c(t){d=i(d,t),u.forEach(t=>{t(d)})}function l(t){let{...e}=t,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...e,id:r,open:!0,onOpenChange:t=>{t||s()}}}),{id:r,dismiss:s,update:t=>c({type:"UPDATE_TOAST",toast:{...t,id:r}})}}function f(){let[t,e]=s.useState(d);return s.useEffect(()=>(u.push(e),()=>{let t=u.indexOf(e);t>-1&&u.splice(t,1)}),[t]),{...t,toast:l,dismiss:t=>c({type:"DISMISS_TOAST",toastId:t})}}},37440:function(t,e,r){"use strict";r.d(e,{cn:function(){return n}});var s=r(44839),a=r(96164);function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,a.m6)((0,s.W)(e))}}},function(t){t.O(0,[3072,4504,2971,7023,1744],function(){return t(t.s=90836)}),_N_E=t.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3317],{97434:function(n,_,a){Promise.resolve().then(a.t.bind(a,52417,23))},52417:function(n){n.exports={style:{fontFamily:"'__Noto_Sans_af6c42', '__Noto_Sans_Fallback_af6c42'",fontStyle:"normal"},className:"__className_af6c42"}}},function(n){n.O(0,[4003,2971,7023,1744],function(){return n(n.s=97434)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{39929:function(e,t,s){Promise.resolve().then(s.bind(s,38874))},38874:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var a=s(57437),o=s(65104),n=s.n(o),i=s(2265),r=s(48861),l=s(55538),c=s(16463),d=s(58485),u=s(9557);s(7395);var h=s(69591),m=s(38423),g=s(79306);function f(e){let t=(0,c.useSearchParams)().get("conversationId"),[s,o]=(0,i.useState)(""),[r,d]=(0,i.useState)([]),[u,h]=(0,i.useState)(!1),[g,f]=(0,i.useState)(null),[p,_]=(0,i.useState)(!1),x=(0,i.useRef)(null),y=e.setQueryToProcess,w=e.onConversationIdChange,S=e.isMobileWidth?"w-full":"w-4/6";if((0,i.useEffect)(()=>{if(r.length>0){let t=r.map(e=>encodeURIComponent(e));e.setImages(t)}},[r,e.setImages]),(0,i.useEffect)(()=>{let t=localStorage.getItem("images");if(t){let s=JSON.parse(t);d(s);let a=s.map(e=>encodeURIComponent(e));e.setImages(a),localStorage.removeItem("images")}let s=localStorage.getItem("message");s&&(h(!0),y(s),s.trim().startsWith("/research")&&_(!0));let a=localStorage.getItem("uploadedFiles");if(a){let t=a?JSON.parse(a):[],s=[];for(let e of t)s.push({name:e.name,file_type:e.file_type,content:e.content,size:e.size});localStorage.removeItem("uploadedFiles"),e.setUploadedFiles(s)}},[y,e.setImages,t]),(0,i.useEffect)(()=>{s&&(h(!0),y(s))},[s,y]),(0,i.useEffect)(()=>{t&&(null==w||w(t))},[t,w]),(0,i.useEffect)(()=>{e.streamedMessages&&e.streamedMessages.length>0&&e.streamedMessages[e.streamedMessages.length-1].completed?(h(!1),d([]),e.setUploadedFiles(void 0)):o("")},[e.streamedMessages]),!t){window.location.href="/";return}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:n().chatBodyFull,children:(0,a.jsx)(l.Z,{conversationId:t,setTitle:e.setTitle,setAgent:f,pendingMessage:u?s:"",incomingMessages:e.streamedMessages,setIncomingMessages:e.setStreamedMessages,customClassName:S})}),(0,a.jsx)("div",{className:"".concat(n().inputBox," p-1 md:px-2 shadow-md bg-background align-middle items-center justify-center dark:bg-neutral-700 dark:border-0 dark:shadow-sm rounded-t-2xl rounded-b-none md:rounded-xl h-fit ").concat(S," mr-auto ml-auto"),children:(0,a.jsx)(m.a,{agentColor:null==g?void 0:g.color,isLoggedIn:e.isLoggedIn,sendMessage:e=>o(e),sendImage:e=>d(t=>[...t,e]),sendDisabled:u,chatOptionsData:e.chatOptionsData,conversationId:t,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,ref:x,isResearchModeEnabled:p,setTriggeredAbort:e.setTriggeredAbort})})]})}function p(){let e="Khoj AI - Chat",[t,s]=(0,i.useState)(null),[o,l]=(0,i.useState)(!0),[c,m]=(0,i.useState)(e),[p,_]=(0,i.useState)(null),[x,y]=(0,i.useState)([]),[w,S]=(0,i.useState)(""),[I,b]=(0,i.useState)(!1),[v,j]=(0,i.useState)(void 0),[C,B]=(0,i.useState)([]),[E,M]=(0,i.useState)(null),[T,k]=(0,i.useState)(!1),F=(0,h.k6)()||{timezone:Intl.DateTimeFormat().resolvedOptions().timeZone},R=(0,g.GW)(),N=(0,h.IC)();async function O(e){if(!e.ok)throw Error(e.statusText);if(!e.body)throw Error("Response body is null");let t=e.body.getReader(),s=new TextDecoder,a="␃\uD83D\uDD1A␗",o="",n=[],i={},r={};for(;;){let e;let{done:l,value:c}=await t.read();if(l){S(""),b(!1),B([]),p&&(0,u.tQ)(p,m);break}for(o+=s.decode(c,{stream:!0});-1!==(e=o.indexOf(a));){let t=o.slice(0,e);if(o=o.slice(e+a.length),t){let e=x.find(e=>!e.completed);if(!e){console.error("No current message found");return}({context:n,onlineContext:i,codeContext:r}=(0,u.VK)(t,e,n,i,r)),y([...x])}}}}async function W(){if(localStorage.removeItem("message"),!w||!p)return;let e={q:w,conversation_id:p,stream:!0,...F&&{city:F.city,region:F.region,country:F.country,country_code:F.countryCode,timezone:F.timezone},...C.length>0&&{images:C},...v&&{files:v}},t=await fetch("/api/chat?client=web",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),signal:null==E?void 0:E.signal});try{await O(t)}catch(n){let e=await t.json();console.error(e);let s=x.find(e=>!e.completed);if(!s)return;let a=n.message,o=n.name;a.includes("Error in input stream")?s.rawResponse="Woops! The connection broke while I was writing my thoughts down. Maybe try again in a bit or dislike this message if the issue persists?":429===t.status?"detail"in e?s.rawResponse="".concat(e.detail):s.rawResponse="I'm a bit overwhelmed at the moment. Could you try again in a bit or dislike this message if the issue persists?":"AbortError"===o?s.rawResponse="I've stopped processing this message. If you'd like to continue, please send the message again.":s.rawResponse="Umm, not sure what just happened. I see this error message: ".concat(a,". Could you try again or dislike this message if the issue persists?"),s.completed=!0,y([...x]),S(""),b(!1)}}return(0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{l(!1),e&&s(e)}).catch(e=>{console.error(e)}),(0,h.EK)()},[]),(0,i.useEffect)(()=>{T&&(null==E||E.abort(),function(){let e=x.find(e=>!e.completed);e&&(e.completed=!0,y([...x]),S(""),b(!1))}(),k(!1))}),(0,i.useEffect)(()=>{if(w){let e={rawResponse:"",trainOfThought:[],context:[],onlineContext:{},codeContext:{},completed:!1,timestamp:new Date().toISOString(),rawQuery:w||"",images:C,queryFiles:v};y(t=>[...t,e]),b(!0),M(new AbortController)}},[w]),(0,i.useEffect)(()=>{I&&W()},[I]),o?(0,a.jsx)(d.Z,{}):(0,a.jsxs)("div",{className:"".concat(n().main," ").concat(n().chatLayout),children:[(0,a.jsx)("title",{children:"".concat(e).concat(c&&c!==e?": ".concat(c):"")}),(0,a.jsx)("div",{children:(0,a.jsx)(r.ZP,{conversationId:p,uploadedFiles:[],isMobileWidth:N})}),(0,a.jsx)("div",{className:n().chatBox,children:(0,a.jsxs)("div",{className:n().chatBoxBody,children:[!N&&p&&(0,a.jsxs)("div",{className:"".concat(n().chatTitleWrapper," text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mr-8 pt-6 col-auto h-fit"),children:[c&&(0,a.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden",children:c}),(0,a.jsx)(r.En,{conversationId:p,setTitle:m,sizing:"md"})]}),(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(d.Z,{}),children:(0,a.jsx)(f,{isLoggedIn:null!==R,streamedMessages:x,setStreamedMessages:y,chatOptionsData:t,setTitle:m,setQueryToProcess:S,setUploadedFiles:j,isMobileWidth:N,onConversationIdChange:e=>{_(e)},setImages:B,setTriggeredAbort:k})})]})})]})}},16463:function(e,t,s){"use strict";var a=s(71169);s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")&&s.d(t,{useSearchParams:function(){return a.useSearchParams}})},65104:function(e){e.exports={main:"chat_main__8xQu5",suggestions:"chat_suggestions__m8n2t",inputBox:"chat_inputBox__LOFws",chatBodyFull:"chat_chatBodyFull__FfKEK",chatBody:"chat_chatBody__sS1LX",chatLayout:"chat_chatLayout__pR203",chatBox:"chat_chatBox__FBct_",titleBar:"chat_titleBar__R5QlK",chatBoxBody:"chat_chatBoxBody__qT_SC",agentIndicator:"chat_agentIndicator__8V55w",chatTitleWrapper:"chat_chatTitleWrapper__6ChWq"}}},function(e){e.O(0,[7812,9848,4836,3954,3072,216,3124,7592,3690,796,1603,9417,8423,5538,2971,7023,1744],function(){return e(e.s=39929)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{16964:function(n,e,_){Promise.resolve().then(_.t.bind(_,99177,23)),Promise.resolve().then(_.t.bind(_,58877,23))},58877:function(){},99177:function(n){n.exports={style:{fontFamily:"'__Noto_Sans_af6c42', '__Noto_Sans_Fallback_af6c42'",fontStyle:"normal"},className:"__className_af6c42"}}},function(n){n.O(0,[8942,404,2971,7023,1744],function(){return n(n.s=16964)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{63521:function(){}},function(n){n.O(0,[2971,7023,1744],function(){return n(n.s=63521)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3474],{82120:function(t,e,r){Promise.resolve().then(r.bind(r,23367)),Promise.resolve().then(r.t.bind(r,35031,23))},50151:function(t,e,r){"use strict";r.d(e,{FN:function(){return f},Mi:function(){return v},VW:function(){return d},_i:function(){return c},gD:function(){return p},lj:function(){return x},sA:function(){return m}});var s=r(57437),a=r(2265),o=r(44504),n=r(12218),i=r(74697),u=r(37440);let d=o.zt,c=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(o.l_,{ref:e,className:(0,u.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...a})});c.displayName=o.l_.displayName;let l=(0,n.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=a.forwardRef((t,e)=>{let{className:r,variant:a,...n}=t;return(0,s.jsx)(o.fC,{ref:e,className:(0,u.cn)(l({variant:a}),r),...n})});f.displayName=o.fC.displayName;let p=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(o.aU,{ref:e,className:(0,u.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...a})});p.displayName=o.aU.displayName;let m=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(o.x8,{ref:e,className:(0,u.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...a,children:(0,s.jsx)(i.Z,{className:"h-4 w-4"})})});m.displayName=o.x8.displayName;let v=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(o.Dx,{ref:e,className:(0,u.cn)("text-sm font-semibold",r),...a})});v.displayName=o.Dx.displayName;let x=a.forwardRef((t,e)=>{let{className:r,...a}=t;return(0,s.jsx)(o.dk,{ref:e,className:(0,u.cn)("text-sm opacity-90",r),...a})});x.displayName=o.dk.displayName},23367:function(t,e,r){"use strict";r.d(e,{Toaster:function(){return n}});var s=r(57437),a=r(50151),o=r(35657);function n(){let{toasts:t}=(0,o.pm)();return(0,s.jsxs)(a.VW,{children:[t.map(function(t){let{id:e,title:r,description:o,action:n,...i}=t;return(0,s.jsxs)(a.FN,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[r&&(0,s.jsx)(a.Mi,{children:r}),o&&(0,s.jsx)(a.lj,{children:o})]}),n,(0,s.jsx)(a.sA,{})]},e)}),(0,s.jsx)(a._i,{})]})}},35657:function(t,e,r){"use strict";r.d(e,{pm:function(){return f}});var s=r(2265);let a=0,o=new Map,n=t=>{if(o.has(t))return;let e=setTimeout(()=>{o.delete(t),c({type:"REMOVE_TOAST",toastId:t})},1e6);o.set(t,e)},i=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,1)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(t=>t.id===e.toast.id?{...t,...e.toast}:t)};case"DISMISS_TOAST":{let{toastId:r}=e;return r?n(r):t.toasts.forEach(t=>{n(t.id)}),{...t,toasts:t.toasts.map(t=>t.id===r||void 0===r?{...t,open:!1}:t)}}case"REMOVE_TOAST":if(void 0===e.toastId)return{...t,toasts:[]};return{...t,toasts:t.toasts.filter(t=>t.id!==e.toastId)}}},u=[],d={toasts:[]};function c(t){d=i(d,t),u.forEach(t=>{t(d)})}function l(t){let{...e}=t,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...e,id:r,open:!0,onOpenChange:t=>{t||s()}}}),{id:r,dismiss:s,update:t=>c({type:"UPDATE_TOAST",toast:{...t,id:r}})}}function f(){let[t,e]=s.useState(d);return s.useEffect(()=>(u.push(e),()=>{let t=u.indexOf(e);t>-1&&u.splice(t,1)}),[t]),{...t,toast:l,dismiss:t=>c({type:"DISMISS_TOAST",toastId:t})}}},37440:function(t,e,r){"use strict";r.d(e,{cn:function(){return o}});var s=r(44839),a=r(96164);function o(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return(0,a.m6)((0,s.W)(e))}},35031:function(t){t.exports={style:{fontFamily:"'__Noto_Sans_af6c42', '__Noto_Sans_Fallback_af6c42'",fontStyle:"normal"},className:"__className_af6c42"}}},function(t){t.O(0,[9092,3072,4504,2971,7023,1744],function(){return t(t.s=82120)}),_N_E=t.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138],{79508:function(n,_,a){Promise.resolve().then(a.t.bind(a,49376,23))},49376:function(n){n.exports={style:{fontFamily:"'__Noto_Sans_af6c42', '__Noto_Sans_Fallback_af6c42'",fontStyle:"normal"},className:"__className_af6c42"}}},function(n){n.O(0,[492,2971,7023,1744],function(){return n(n.s=79508)}),_N_E=n.O()}]);
@@ -1 +0,0 @@
1
- @font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/82e3b9a1bdaf0c26-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/684adc3dde1b03f1-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/5984b96ba4822821-s.woff2) format("woff2");unicode-range:u+0900-097f,u+1cd0-1cf9,u+200c-200d,u+20a8,u+20b9,u+20f0,u+25cc,u+a830-a839,u+a8e0-a8ff,u+11b00-11b09}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/91475f6526542a4f-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/c824d7a20139e39d-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/b98b13dbc1c3b59c-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/8d1ea331386a0db8-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Noto_Sans_af6c42;font-style:normal;font-weight:100 900;font-stretch:100%;font-display:swap;src:url(/_next/static/media/5455839c73f146e7-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Noto_Sans_Fallback_af6c42;src:local("Arial");ascent-override:100.54%;descent-override:27.56%;line-gap-override:0.00%;size-adjust:106.33%}.__className_af6c42{font-family:__Noto_Sans_af6c42,__Noto_Sans_Fallback_af6c42;font-style:normal}