openryoko 2026.5.8 → 2026.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/connectors/slack/__tests__/agents-canvas.test.d.ts +2 -0
  3. package/dist/src/connectors/slack/__tests__/agents-canvas.test.d.ts.map +1 -0
  4. package/dist/src/connectors/slack/__tests__/agents-canvas.test.js +191 -0
  5. package/dist/src/connectors/slack/__tests__/agents-canvas.test.js.map +1 -0
  6. package/dist/src/connectors/slack/__tests__/goal-extractor.test.d.ts +2 -0
  7. package/dist/src/connectors/slack/__tests__/goal-extractor.test.d.ts.map +1 -0
  8. package/dist/src/connectors/slack/__tests__/goal-extractor.test.js +129 -0
  9. package/dist/src/connectors/slack/__tests__/goal-extractor.test.js.map +1 -0
  10. package/dist/src/connectors/slack/agents-canvas.d.ts +59 -0
  11. package/dist/src/connectors/slack/agents-canvas.d.ts.map +1 -0
  12. package/dist/src/connectors/slack/agents-canvas.js +372 -0
  13. package/dist/src/connectors/slack/agents-canvas.js.map +1 -0
  14. package/dist/src/connectors/slack/goal-extractor.d.ts +67 -0
  15. package/dist/src/connectors/slack/goal-extractor.d.ts.map +1 -0
  16. package/dist/src/connectors/slack/goal-extractor.js +302 -0
  17. package/dist/src/connectors/slack/goal-extractor.js.map +1 -0
  18. package/dist/src/connectors/slack/index.d.ts +15 -0
  19. package/dist/src/connectors/slack/index.d.ts.map +1 -1
  20. package/dist/src/connectors/slack/index.js +78 -0
  21. package/dist/src/connectors/slack/index.js.map +1 -1
  22. package/dist/src/engines/claude.d.ts +11 -0
  23. package/dist/src/engines/claude.d.ts.map +1 -1
  24. package/dist/src/engines/claude.js +75 -13
  25. package/dist/src/engines/claude.js.map +1 -1
  26. package/dist/src/gateway/api.d.ts.map +1 -1
  27. package/dist/src/gateway/api.js +20 -0
  28. package/dist/src/gateway/api.js.map +1 -1
  29. package/dist/src/gateway/server.d.ts.map +1 -1
  30. package/dist/src/gateway/server.js +61 -2
  31. package/dist/src/gateway/server.js.map +1 -1
  32. package/dist/src/sessions/context.js +20 -2
  33. package/dist/src/sessions/context.js.map +1 -1
  34. package/dist/src/sessions/manager.d.ts.map +1 -1
  35. package/dist/src/sessions/manager.js +15 -1
  36. package/dist/src/sessions/manager.js.map +1 -1
  37. package/dist/src/shared/types.d.ts +21 -0
  38. package/dist/src/shared/types.d.ts.map +1 -1
  39. package/dist/web/404.html +1 -1
  40. package/dist/web/__next.__PAGE__.txt +2 -2
  41. package/dist/web/__next._full.txt +3 -3
  42. package/dist/web/__next._head.txt +1 -1
  43. package/dist/web/__next._index.txt +2 -2
  44. package/dist/web/__next._tree.txt +2 -2
  45. package/dist/web/_next/static/chunks/{0y3uv64m1qh.k.js → 012aakl34ff5a.js} +2 -2
  46. package/dist/web/_next/static/chunks/{0j4uz-g9x1_~s.js → 0a2uy1kw.~j~c.js} +1 -1
  47. package/dist/web/_next/static/chunks/{0v51a3blij~j6.js → 0agxgztb0b~.7.js} +2 -2
  48. package/dist/web/_next/static/chunks/{1645~4k0qcst0.js → 0g6xt.91k~0bc.js} +2 -2
  49. package/dist/web/_next/static/chunks/{16zc7-yv7supr.js → 0jzw1gpuag8bc.js} +2 -2
  50. package/dist/web/_next/static/chunks/0kceasmxfr3s1.js +1 -0
  51. package/dist/web/_next/static/chunks/{0wv0qjh9tuqx~.js → 0lkp92-ovteta.js} +2 -2
  52. package/dist/web/_next/static/chunks/{1621s_jgljr1_.js → 0msmlzd_~uk0y.js} +2 -2
  53. package/dist/web/_next/static/chunks/{00yn.jp4tr9l6.js → 0z5lzlvft9.4o.js} +2 -2
  54. package/dist/web/_next/static/chunks/103zsy0q9psfj.css +1 -0
  55. package/dist/web/_next/static/chunks/{0ma0h4_2c8y9y.js → 12m97bwrg1tuu.js} +2 -2
  56. package/dist/web/_not-found/__next._full.txt +2 -2
  57. package/dist/web/_not-found/__next._head.txt +1 -1
  58. package/dist/web/_not-found/__next._index.txt +2 -2
  59. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +1 -1
  60. package/dist/web/_not-found/__next._not-found.txt +1 -1
  61. package/dist/web/_not-found/__next._tree.txt +2 -2
  62. package/dist/web/_not-found.html +1 -1
  63. package/dist/web/_not-found.txt +2 -2
  64. package/dist/web/chat/__next._full.txt +3 -3
  65. package/dist/web/chat/__next._head.txt +1 -1
  66. package/dist/web/chat/__next._index.txt +2 -2
  67. package/dist/web/chat/__next._tree.txt +2 -2
  68. package/dist/web/chat/__next.chat.__PAGE__.txt +2 -2
  69. package/dist/web/chat/__next.chat.txt +1 -1
  70. package/dist/web/chat.html +1 -1
  71. package/dist/web/chat.txt +3 -3
  72. package/dist/web/cron/__next._full.txt +3 -3
  73. package/dist/web/cron/__next._head.txt +1 -1
  74. package/dist/web/cron/__next._index.txt +2 -2
  75. package/dist/web/cron/__next._tree.txt +2 -2
  76. package/dist/web/cron/__next.cron.__PAGE__.txt +2 -2
  77. package/dist/web/cron/__next.cron.txt +1 -1
  78. package/dist/web/cron.html +1 -1
  79. package/dist/web/cron.txt +3 -3
  80. package/dist/web/index.html +1 -1
  81. package/dist/web/index.txt +3 -3
  82. package/dist/web/kanban/__next._full.txt +3 -3
  83. package/dist/web/kanban/__next._head.txt +1 -1
  84. package/dist/web/kanban/__next._index.txt +2 -2
  85. package/dist/web/kanban/__next._tree.txt +2 -2
  86. package/dist/web/kanban/__next.kanban.__PAGE__.txt +2 -2
  87. package/dist/web/kanban/__next.kanban.txt +1 -1
  88. package/dist/web/kanban.html +1 -1
  89. package/dist/web/kanban.txt +3 -3
  90. package/dist/web/logs/__next._full.txt +3 -3
  91. package/dist/web/logs/__next._head.txt +1 -1
  92. package/dist/web/logs/__next._index.txt +2 -2
  93. package/dist/web/logs/__next._tree.txt +2 -2
  94. package/dist/web/logs/__next.logs.__PAGE__.txt +2 -2
  95. package/dist/web/logs/__next.logs.txt +1 -1
  96. package/dist/web/logs.html +2 -2
  97. package/dist/web/logs.txt +3 -3
  98. package/dist/web/org/__next._full.txt +3 -3
  99. package/dist/web/org/__next._head.txt +1 -1
  100. package/dist/web/org/__next._index.txt +2 -2
  101. package/dist/web/org/__next._tree.txt +2 -2
  102. package/dist/web/org/__next.org.__PAGE__.txt +2 -2
  103. package/dist/web/org/__next.org.txt +1 -1
  104. package/dist/web/org.html +1 -1
  105. package/dist/web/org.txt +3 -3
  106. package/dist/web/sessions/__next._full.txt +2 -2
  107. package/dist/web/sessions/__next._head.txt +1 -1
  108. package/dist/web/sessions/__next._index.txt +2 -2
  109. package/dist/web/sessions/__next._tree.txt +2 -2
  110. package/dist/web/sessions/__next.sessions.__PAGE__.txt +1 -1
  111. package/dist/web/sessions/__next.sessions.txt +1 -1
  112. package/dist/web/sessions.html +1 -1
  113. package/dist/web/sessions.txt +2 -2
  114. package/dist/web/settings/__next._full.txt +3 -3
  115. package/dist/web/settings/__next._head.txt +1 -1
  116. package/dist/web/settings/__next._index.txt +2 -2
  117. package/dist/web/settings/__next._tree.txt +2 -2
  118. package/dist/web/settings/__next.settings.__PAGE__.txt +2 -2
  119. package/dist/web/settings/__next.settings.txt +1 -1
  120. package/dist/web/settings.html +1 -1
  121. package/dist/web/settings.txt +3 -3
  122. package/dist/web/skills/__next._full.txt +3 -3
  123. package/dist/web/skills/__next._head.txt +1 -1
  124. package/dist/web/skills/__next._index.txt +2 -2
  125. package/dist/web/skills/__next._tree.txt +2 -2
  126. package/dist/web/skills/__next.skills.__PAGE__.txt +2 -2
  127. package/dist/web/skills/__next.skills.txt +1 -1
  128. package/dist/web/skills.html +1 -1
  129. package/dist/web/skills.txt +3 -3
  130. package/package.json +1 -1
  131. package/dist/web/_next/static/chunks/05uy~i7wsbsn3.js +0 -1
  132. package/dist/web/_next/static/chunks/0bj62gv2pext..css +0 -1
  133. package/dist/web/dev/logs/next-development.log +0 -5
  134. /package/dist/web/_next/static/{VBjMXtz9-pIo9izqNT-iu → 2gkySyM5UoStZGUIrVpRy}/_buildManifest.js +0 -0
  135. /package/dist/web/_next/static/{VBjMXtz9-pIo9izqNT-iu → 2gkySyM5UoStZGUIrVpRy}/_clientMiddlewareManifest.js +0 -0
  136. /package/dist/web/_next/static/{VBjMXtz9-pIo9izqNT-iu → 2gkySyM5UoStZGUIrVpRy}/_ssgManifest.js +0 -0
@@ -1,5 +1,5 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90922,e=>{"use strict";var t=e.i(25007);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:i="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...a,width:n,height:n,stroke:e,strokeWidth:s?24*Number(o)/Number(n):o,className:r("lucide",i),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,a)=>{let s=(0,t.forwardRef)(({className:s,...i},l)=>(0,t.createElement)(o,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...i}));return s.displayName=n(e),s}],90922)},9909,(e,t,r)=>{},20682,(e,t,r)=>{var n=e.i(10661);e.r(9909);var a=e.r(25007),o=a&&"object"==typeof a&&"default"in a?a:{default:a},s=void 0!==n.default&&n.default.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,a=t.optimizeForSpeed,o=void 0===a?s:a;c(i(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(i(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(i(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return r?a.insertBefore(n,r):a.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+u(e+"-"+r)),d[n]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,a=t.optimizeForSpeed,o=void 0!==a&&a;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,a=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var a=p(n,r);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return f(a,e)}):[f(a,t)]}}return{styleId:p(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=a.createContext(null);function v(){return new h}function g(){return a.useContext(m)}m.displayName="StyleSheetContext";var b=o.default.useInsertionEffect||o.default.useLayoutEffect,x="u">typeof window?v():void 0;function y(e){var t=x||g();return t&&("u"<typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,n=a.useContext(m),s=a.useState(function(){return n||t||v()})[0];return o.default.createElement(m.Provider,{value:s},r)},r.createStyleRegistry=v,r.style=y,r.useStyleRegistry=g},23097,(e,t,r)=>{t.exports=e.r(20682).style},39182,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(53432)._(e.r(33290)),s=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},25133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(25007);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},85672,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(84397),a=e.r(85326);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},19364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},94583,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(53432),s=e.r(98181),i=o._(e.r(25007)),l=e.r(39182),c=e.r(73232),u=e.r(25133),d=e.r(84397),p=e.r(14676);e.r(41385);let f=e.r(62256),h=e.r(96244),m=e.r(85672),v=e.r(85461);function g(t){var r,n;let a,o,g,[x,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:k,as:j,children:S,prefetch:E=null,passHref:N,replace:C,shallow:R,scroll:_,onClick:O,onMouseEnter:M,onTouchStart:z,legacyBehavior:I=!1,onNavigate:T,transitionTypes:A,ref:D,unstable_dynamicOnHover:P,...F}=t;a=S,I&&("string"==typeof a||"number"==typeof a)&&(a=(0,s.jsx)("a",{children:a}));let L=i.default.useContext(c.AppRouterContext),$=!1!==E,q=!1!==E?null===(n=E)||"auto"===n?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,W="string"==typeof(r=j||k)?r:(0,l.formatUrl)(r);if(I){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(a)}let Q=I?o&&"object"==typeof o&&o.ref:D,B=i.default.useCallback(e=>(null!==L&&(w.current=(0,h.mountLinkInstance)(e,W,L,q,$,y)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,W,L,q,y]),K={ref:(0,u.useMergedRef)(B,Q),onClick(t){I||"function"!=typeof O||O(t),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!L||t.defaultPrevented||function(t,r,n,a,o,s,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(58411);i.default.startTransition(()=>{d(r,a?"replace":"push",!1===o?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,W,w,C,_,T,A)},onMouseEnter(e){I||"function"!=typeof M||M(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),L&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===P)},onTouchStart:function(e){I||"function"!=typeof z||z(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),L&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===P)}};return(0,d.isAbsoluteUrl)(W)?K.href=W:I&&!N&&("a"!==o.type||"href"in o.props)||(K.href=(0,p.addBasePath)(W)),g=I?i.default.cloneElement(o,K):(0,s.jsx)("a",{...F,...K,children:a}),(0,s.jsx)(b.Provider,{value:x,children:g})}e.r(19364);let b=(0,i.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98676,(e,t,r)=>{t.exports=e.r(23586)},35717,71701,44415,46616,65390,45697,10587,58801,97058,68442,21430,48964,36511,93574,e=>{"use strict";var t=e.i(90922);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],35717);let n=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,n],71701);let a=(0,t.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,a],44415);let o=(0,t.default)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);e.s(["ArrowLeftRight",0,o],46616),e.s(["THEMES",0,[{id:"ryoko",label:"Ryoko",emoji:"🌸"},{id:"light",label:"ライト",emoji:"☀️"},{id:"dark",label:"ダーク",emoji:"🌑"},{id:"glass",label:"ガラス",emoji:"🪟"},{id:"color",label:"カラー",emoji:"🎨"},{id:"system",label:"システム",emoji:"⚙️"}]],65390);let s=(0,t.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,s],45697);let i=(0,t.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,i],10587);let l=(0,t.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,l],58801);let c=(0,t.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,c],97058);let u=(0,t.default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);e.s(["LayoutGrid",0,u],68442);let d=(0,t.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",0,d],21430);let p=(0,t.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,p],48964);let f=(0,t.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,f],36511);let h=[{href:"/",label:"ホーム",icon:s},{href:"/chat",label:"チャット",icon:i},{href:"/org",label:"組織",icon:l},{href:"/kanban",label:"カンバン",icon:u},{href:"/cron",label:"スケジュール",icon:c},{href:"/logs",label:"アクティビティ",icon:d},{href:"/skills",label:"スキル",icon:p},{href:"/settings",label:"設定",icon:f}];e.s(["NAV_ITEMS",0,h],93574)},47899,72415,e=>{"use strict";function t(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",0,t],72415);let r=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n=[],a=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],o=r.nextPart.get(n);if(o){let r=a(e,t+1,o);if(r)return r}let s=r.validators;if(null===s)return;let i=0===t?e.join("-"):e.slice(t).join("-"),l=s.length;for(let e=0;e<l;e++){let t=s[e];if(t.validator(i))return t.classGroupId}},o=(e,t)=>{let n=r();for(let r in e)s(e[r],n,r,t);return n},s=(e,t,r,n)=>{let a=e.length;for(let o=0;o<a;o++)i(e[o],t,r,n)},i=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?c(e,t,r,n):u(e,t,r,n)},l=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},c=(e,t,r,n)=>{p(e)?s(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},u=(e,t,r,n)=>{let a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){let[o,i]=a[e];s(i,d(t,o),r,n)}},d=(e,t)=>{let n=e,a=t.split("-"),o=a.length;for(let e=0;e<o;e++){let t=a[e],o=n.nextPart.get(t);o||(o=r(),n.nextPart.set(t,o)),n=o}return n},p=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],h=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),m=/\s+/,v=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=v(e[n]))&&(r&&(r+=" "),r+=t);return r},g=[],b=e=>{let t=t=>t[e]||g;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>w.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),_=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&R(e.slice(0,-1)),M=e=>k.test(e),z=()=>!0,I=e=>j.test(e)&&!S.test(e),T=()=>!1,A=e=>E.test(e),D=e=>N.test(e),P=e=>!L(e)&&!H(e),F=e=>et(e,eo,T),L=e=>x.test(e),$=e=>et(e,es,I),q=e=>et(e,ei,R),W=e=>et(e,ec,z),Q=e=>et(e,el,T),B=e=>et(e,en,T),K=e=>et(e,ea,D),U=e=>et(e,eu,A),H=e=>y.test(e),V=e=>er(e,es),G=e=>er(e,el),X=e=>er(e,en),Z=e=>er(e,eo),J=e=>er(e,ea),Y=e=>er(e,eu,!0),ee=e=>er(e,ec,!0),et=(e,t,r)=>{let n=x.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},er=(e,t,r=!1)=>{let n=y.exec(e);return!!n&&(n[1]?t(n[1]):r)},en=e=>"position"===e||"percentage"===e,ea=e=>"image"===e||"url"===e,eo=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,ei=e=>"number"===e,el=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,eu=e=>"shadow"===e,ed=((e,...t)=>{let r,s,i,l,c=e=>{let t=s(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:o}=t,s=[],i=e.trim().split(m),l="";for(let e=i.length-1;e>=0;e-=1){let t=i[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=n(h?p.substring(0,f):p);if(!m){if(!h||!(m=n(p))){l=t+(l.length>0?" "+l:l);continue}h=!1}let v=0===u.length?"":1===u.length?u[0]:o(u).join(":"),g=d?v+"!":v,b=g+m;if(s.indexOf(b)>-1)continue;s.push(b);let x=a(m,h);for(let e=0;e<x.length;++e){let t=x[e];s.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return i(e,n),n};return l=u=>{var d;let p;return s=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),a=(a,o)=>{r[a]=o,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,a=0,o=0,s=e.length;for(let i=0;i<s;i++){let s=e[i];if(0===n&&0===a){if(":"===s){r.push(e.slice(o,i)),o=i+1;continue}if("/"===s){t=i;continue}}"["===s?n++:"]"===s?n--:"("===s?a++:")"===s&&a--}let i=0===r.length?e:e.slice(o),l=i,c=!1;return i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0),h(r,c,l,t&&t>o?t-o:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):h(f,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(p=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{p.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],o="["===a[0],s=p.has(a);o||s?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return o(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,n))?"arbitrary.."+a:void 0)}let n=e.split("-"),o=+(""===n[0]&&n.length>1);return a(n,o,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=s[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||n}return r[e]||n}}})(d)}).cache.get,i=r.cache.set,l=c,c(u)},(...e)=>l(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=v(t))&&(a&&(a+=" "),a+=r);return a})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),a=b("tracking"),o=b("leading"),s=b("breakpoint"),i=b("container"),l=b("spacing"),c=b("radius"),u=b("shadow"),d=b("inset-shadow"),p=b("text-shadow"),f=b("drop-shadow"),h=b("blur"),m=b("perspective"),v=b("aspect"),g=b("ease"),x=b("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),H,L],j=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],E=()=>[H,L,l],N=()=>[C,"full","auto",...E()],I=()=>[_,"none","subgrid",H,L],T=()=>["auto",{span:["full",_,H,L]},_,H,L],A=()=>[_,"auto",H,L],D=()=>["auto","min","max","fr",H,L],et=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...E()],ea=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],eo=()=>[C,"screen","full","dvw","lvw","svw","min","max","fit",...E()],es=()=>[C,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],ei=()=>[e,H,L],el=()=>[...w(),X,B,{position:[H,L]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eu=()=>["auto","cover","contain",Z,F,{size:[H,L]}],ed=()=>[O,V,$],ep=()=>["","none","full",c,H,L],ef=()=>["",R,V,$],eh=()=>["solid","dashed","dotted","double"],em=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ev=()=>[R,O,X,B],eg=()=>["","none",h,H,L],eb=()=>["none",R,H,L],ex=()=>["none",R,H,L],ey=()=>[R,H,L],ew=()=>[C,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[z],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[P],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",R],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,L,H,v]}],container:["container"],columns:[{columns:[R,L,H,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[_,"auto",H,L]}],basis:[{basis:[C,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,C,"auto","initial","none",L]}],grow:[{grow:["",R,H,L]}],shrink:[{shrink:["",R,H,L]}],order:[{order:[_,"first","last","none",H,L]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...et(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...et()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":et()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...eo()]}],"min-inline-size":[{"min-inline":["auto",...eo()]}],"max-inline-size":[{"max-inline":["none",...eo()]}],"block-size":[{block:["auto",...es()]}],"min-block-size":[{"min-block":["auto",...es()]}],"max-block-size":[{"max-block":["none",...es()]}],w:[{w:[i,"screen",...ea()]}],"min-w":[{"min-w":[i,"screen","none",...ea()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",r,V,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ee,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,L]}],"font-family":[{font:[G,Q,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,H,L]}],"line-clamp":[{"line-clamp":[R,"none",H,q]}],leading:[{leading:[o,...E()]}],"list-image":[{"list-image":["none",H,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ei()}],"text-color":[{text:ei()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eh(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",H,$]}],"text-decoration-color":[{decoration:ei()}],"underline-offset":[{"underline-offset":[R,"auto",H,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:eu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_,H,L],radial:["",H,L],conic:[_,H,L]},J,K]}],"bg-color":[{bg:ei()}],"gradient-from-pos":[{from:ed()}],"gradient-via-pos":[{via:ed()}],"gradient-to-pos":[{to:ed()}],"gradient-from":[{from:ei()}],"gradient-via":[{via:ei()}],"gradient-to":[{to:ei()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:ef()}],"border-w-x":[{"border-x":ef()}],"border-w-y":[{"border-y":ef()}],"border-w-s":[{"border-s":ef()}],"border-w-e":[{"border-e":ef()}],"border-w-bs":[{"border-bs":ef()}],"border-w-be":[{"border-be":ef()}],"border-w-t":[{"border-t":ef()}],"border-w-r":[{"border-r":ef()}],"border-w-b":[{"border-b":ef()}],"border-w-l":[{"border-l":ef()}],"divide-x":[{"divide-x":ef()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ef()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eh(),"hidden","none"]}],"divide-style":[{divide:[...eh(),"hidden","none"]}],"border-color":[{border:ei()}],"border-color-x":[{"border-x":ei()}],"border-color-y":[{"border-y":ei()}],"border-color-s":[{"border-s":ei()}],"border-color-e":[{"border-e":ei()}],"border-color-bs":[{"border-bs":ei()}],"border-color-be":[{"border-be":ei()}],"border-color-t":[{"border-t":ei()}],"border-color-r":[{"border-r":ei()}],"border-color-b":[{"border-b":ei()}],"border-color-l":[{"border-l":ei()}],"divide-color":[{divide:ei()}],"outline-style":[{outline:[...eh(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,H,L]}],"outline-w":[{outline:["",R,V,$]}],"outline-color":[{outline:ei()}],shadow:[{shadow:["","none",u,Y,U]}],"shadow-color":[{shadow:ei()}],"inset-shadow":[{"inset-shadow":["none",d,Y,U]}],"inset-shadow-color":[{"inset-shadow":ei()}],"ring-w":[{ring:ef()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ei()}],"ring-offset-w":[{"ring-offset":[R,$]}],"ring-offset-color":[{"ring-offset":ei()}],"inset-ring-w":[{"inset-ring":ef()}],"inset-ring-color":[{"inset-ring":ei()}],"text-shadow":[{"text-shadow":["none",p,Y,U]}],"text-shadow-color":[{"text-shadow":ei()}],opacity:[{opacity:[R,H,L]}],"mix-blend":[{"mix-blend":[...em(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":em()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":ev()}],"mask-image-linear-to-pos":[{"mask-linear-to":ev()}],"mask-image-linear-from-color":[{"mask-linear-from":ei()}],"mask-image-linear-to-color":[{"mask-linear-to":ei()}],"mask-image-t-from-pos":[{"mask-t-from":ev()}],"mask-image-t-to-pos":[{"mask-t-to":ev()}],"mask-image-t-from-color":[{"mask-t-from":ei()}],"mask-image-t-to-color":[{"mask-t-to":ei()}],"mask-image-r-from-pos":[{"mask-r-from":ev()}],"mask-image-r-to-pos":[{"mask-r-to":ev()}],"mask-image-r-from-color":[{"mask-r-from":ei()}],"mask-image-r-to-color":[{"mask-r-to":ei()}],"mask-image-b-from-pos":[{"mask-b-from":ev()}],"mask-image-b-to-pos":[{"mask-b-to":ev()}],"mask-image-b-from-color":[{"mask-b-from":ei()}],"mask-image-b-to-color":[{"mask-b-to":ei()}],"mask-image-l-from-pos":[{"mask-l-from":ev()}],"mask-image-l-to-pos":[{"mask-l-to":ev()}],"mask-image-l-from-color":[{"mask-l-from":ei()}],"mask-image-l-to-color":[{"mask-l-to":ei()}],"mask-image-x-from-pos":[{"mask-x-from":ev()}],"mask-image-x-to-pos":[{"mask-x-to":ev()}],"mask-image-x-from-color":[{"mask-x-from":ei()}],"mask-image-x-to-color":[{"mask-x-to":ei()}],"mask-image-y-from-pos":[{"mask-y-from":ev()}],"mask-image-y-to-pos":[{"mask-y-to":ev()}],"mask-image-y-from-color":[{"mask-y-from":ei()}],"mask-image-y-to-color":[{"mask-y-to":ei()}],"mask-image-radial":[{"mask-radial":[H,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":ev()}],"mask-image-radial-to-pos":[{"mask-radial-to":ev()}],"mask-image-radial-from-color":[{"mask-radial-from":ei()}],"mask-image-radial-to-color":[{"mask-radial-to":ei()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":ev()}],"mask-image-conic-to-pos":[{"mask-conic-to":ev()}],"mask-image-conic-from-color":[{"mask-conic-from":ei()}],"mask-image-conic-to-color":[{"mask-conic-to":ei()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:eu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,L]}],filter:[{filter:["","none",H,L]}],blur:[{blur:eg()}],brightness:[{brightness:[R,H,L]}],contrast:[{contrast:[R,H,L]}],"drop-shadow":[{"drop-shadow":["","none",f,Y,U]}],"drop-shadow-color":[{"drop-shadow":ei()}],grayscale:[{grayscale:["",R,H,L]}],"hue-rotate":[{"hue-rotate":[R,H,L]}],invert:[{invert:["",R,H,L]}],saturate:[{saturate:[R,H,L]}],sepia:[{sepia:["",R,H,L]}],"backdrop-filter":[{"backdrop-filter":["","none",H,L]}],"backdrop-blur":[{"backdrop-blur":eg()}],"backdrop-brightness":[{"backdrop-brightness":[R,H,L]}],"backdrop-contrast":[{"backdrop-contrast":[R,H,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,H,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,H,L]}],"backdrop-invert":[{"backdrop-invert":["",R,H,L]}],"backdrop-opacity":[{"backdrop-opacity":[R,H,L]}],"backdrop-saturate":[{"backdrop-saturate":[R,H,L]}],"backdrop-sepia":[{"backdrop-sepia":["",R,H,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",H,L]}],ease:[{ease:["linear","initial",g,H,L]}],delay:[{delay:[R,H,L]}],animate:[{animate:["none",x,H,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,H,L]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:eb()}],"rotate-x":[{"rotate-x":eb()}],"rotate-y":[{"rotate-y":eb()}],"rotate-z":[{"rotate-z":eb()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:ey()}],"skew-x":[{"skew-x":ey()}],"skew-y":[{"skew-y":ey()}],transform:[{transform:[H,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ew()}],"translate-x":[{"translate-x":ew()}],"translate-y":[{"translate-y":ew()}],"translate-z":[{"translate-z":ew()}],"translate-none":["translate-none"],accent:[{accent:ei()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ei()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H,L]}],fill:[{fill:["none",...ei()]}],"stroke-w":[{stroke:[R,V,$,q]}],stroke:[{stroke:["none",...ei()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});e.s(["cn",0,function(...e){return ed(t(e))}],47899)},135,15433,e=>{"use strict";var t=e.i(98181),r=e.i(98676),n=e.i(25007),a=e.i(35717),o=e.i(71701),s=e.i(44415),i=e.i(46616),l=e.i(13765),c=e.i(36668),u=e.i(65390),d=e.i(93574),p=e.i(47899);function f({theme:e}){switch(e){case"light":return(0,t.jsx)(a.Sun,{size:18});case"dark":return(0,t.jsx)(o.Moon,{size:18});default:return(0,t.jsx)(s.Palette,{size:18})}}e.s(["Sidebar",0,function(){let e=(0,r.usePathname)(),{theme:a,setTheme:o}=(0,l.useTheme)(),{settings:s}=(0,c.useSettings)(),[h,m]=(0,n.useState)(!1),[v,g]=(0,n.useState)([]),[b,x]=(0,n.useState)(!1),y=s.portalEmoji??"🧞",w=s.portalName??"Ryoko";return(0,n.useEffect)(()=>{fetch("/api/instances").then(e=>e.json()).then(g).catch(()=>{})},[]),(0,t.jsxs)("aside",{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),className:(0,p.cn)("fixed inset-y-0 left-0 hidden overflow-hidden border-r border-border bg-[var(--bg-secondary)] transition-[width,z-index] duration-200 ease-out lg:flex lg:flex-col",h?"z-[110] w-[200px]":"z-[60] w-14"),children:[(0,t.jsxs)("div",{className:"flex min-h-14 shrink-0 items-center gap-2.5 px-3.5 pb-3 pt-4",children:[(0,t.jsx)("span",{className:"w-7 shrink-0 text-center text-2xl leading-none",children:y}),(0,t.jsx)("span",{className:(0,p.cn)("whitespace-nowrap text-[17px] font-semibold text-foreground transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:w})]}),(0,t.jsx)("nav",{className:"flex flex-1 flex-col gap-0.5 px-2",children:d.NAV_ITEMS.map(r=>{let n="/"===r.href?"/"===e:e.startsWith(r.href),a=r.icon;return(0,t.jsxs)("a",{href:r.href,className:(0,p.cn)("group flex h-10 items-center gap-2.5 rounded-md px-3 text-[13px] whitespace-nowrap transition-colors",n?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),"aria-label":r.label,"aria-current":n?"page":void 0,children:[(0,t.jsx)(a,{size:18,className:"shrink-0"}),(0,t.jsx)("span",{className:(0,p.cn)("transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:r.label})]},r.href)})}),v.length>1&&(0,t.jsxs)("div",{className:"relative shrink-0 px-2 pt-1",children:[(0,t.jsxs)("button",{onClick:()=>x(e=>!e),"aria-label":"Switch instance",className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,t.jsx)(i.ArrowLeftRight,{size:18,className:"shrink-0"}),(0,t.jsx)("span",{className:(0,p.cn)("transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:"Switch"})]}),b&&h&&(0,t.jsx)("div",{className:"absolute bottom-full left-2 z-100 mb-1 min-w-[180px] rounded-xl border border-border bg-[var(--material-thick)] p-1 shadow-[var(--shadow-overlay)] backdrop-blur-xl",children:v.map(e=>(0,t.jsxs)("button",{onClick:()=>{!e.current&&e.running&&(window.location.href=`http://localhost:${e.port}/chat`),x(!1)},className:(0,p.cn)("flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-[13px] transition-colors",e.current?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":e.running?"text-foreground hover:bg-accent":"cursor-default text-[var(--text-quaternary)]"),children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("span",{className:"size-2 shrink-0 rounded-full",style:{background:e.running?"var(--system-green)":"var(--text-quaternary)"}})]},e.port))})]}),(0,t.jsx)("div",{className:"shrink-0 px-2 pb-3 pt-2",children:(0,t.jsxs)("button",{onClick:function(){let e=u.THEMES.map(e=>e.id),t=e.indexOf(a);o(e[(t+1)%e.length])},"aria-label":`Theme: ${a}. Click to cycle.`,className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(f,{theme:a})}),(0,t.jsx)("span",{className:(0,p.cn)("capitalize transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:a})]})})]})}],135);let h=(0,e.i(90922).default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);e.s(["DollarSign",0,h],15433)},9156,e=>{"use strict";let t=(0,e.i(90922).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],9156)},12239,63949,66379,80011,99162,28509,87782,39202,16393,94080,72861,96436,38805,69113,64756,61624,19776,91356,9148,74499,53104,3025,33941,41864,83536,44251,82343,e=>{"use strict";let t,r;var n,a,o,s,i,l,c,u,d=e.i(98181),p=e.i(25007),f=e.i(98676),h=e.i(45697),m=e.i(10587),v=e.i(58801),g=e.i(68442),b=e.i(97058),x=e.i(15433),y=e.i(21430),w=e.i(48964),k=e.i(36511),j=e.i(9156),S=e.i(90922);let E=(0,S.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]),N=(0,S.default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);var C=/[\\\/_+.#"@\[\(\{&]/,R=/[\\\/_+.#"@\[\(\{&]/g,_=/[\s-]/,O=/[\s-]/g;function M(e){return e.toLowerCase().replace(O," ")}function z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function I(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function T(...e){return t=>{let r=!1,n=e.map(e=>{let n=I(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():I(e[t],null)}}}}function A(...e){return p.useCallback(T(...e),e)}function D(e,t){let r=p.createContext(t),n=e=>{let{children:t,...n}=e,a=p.useMemo(()=>n,Object.values(n));return(0,d.jsx)(r.Provider,{value:a,children:t})};return n.displayName=e+"Provider",[n,function(n){let a=p.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function P(e,t=[]){let r=[],n=()=>{let t=r.map(e=>p.createContext(e));return function(r){let n=r?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=p.createContext(n),o=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,i=r?.[e]?.[o]||a,l=p.useMemo(()=>s,Object.values(s));return(0,d.jsx)(i.Provider,{value:l,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let i=s?.[e]?.[o]||a,l=p.useContext(i);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,z],63949),e.s(["composeRefs",0,T,"useComposedRefs",0,A],66379),e.s(["createContext",0,D,"createContextScope",0,P],80011);var F=globalThis?.document?p.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,F],99162);var L=p[" useId ".trim().toString()]||(()=>void 0),$=0;function q(e){let[t,r]=p.useState(L());return F(()=>{e||r(e=>e??String($++))},[e]),e||(t?`radix-${t}`:"")}e.s(["useId",0,q],28509),p[" useEffectEvent ".trim().toString()],p[" useInsertionEffect ".trim().toString()];var W=p[" useInsertionEffect ".trim().toString()]||F;function Q({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[r,n]=p.useState(e),a=p.useRef(r),o=p.useRef(t);return W(()=>{o.current=t},[t]),p.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),i=void 0!==e,l=i?e:a;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==i){let t=i?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=i},[i,n])}return[l,p.useCallback(t=>{if(i){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[i,e,o,s])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,Q],87782);var B=e.i(39150);function K(e){var t;let r,n=(t=e,(r=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){var a;let e,o,s=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),i=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(i.ref=t?T(t,s):s),p.cloneElement(r,i)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=p.forwardRef((e,t)=>{let{children:r,...a}=e,o=p.Children.toArray(r),s=o.find(X);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,d.jsx)(n,{...a,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,d.jsx)(n,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var U=K("Slot"),H=Symbol("radix.slottable");function V(e){let t=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=H,t}var G=V("Slottable");function X(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===H}e.s(["Root",0,U,"Slot",0,U,"Slottable",0,G,"createSlot",0,K,"createSlottable",0,V],39202);var Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=K(`Primitive.${t}`),n=p.forwardRef((e,n)=>{let{asChild:a,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a?r:t,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function J(e,t){e&&B.flushSync(()=>e.dispatchEvent(t))}function Y(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["Primitive",0,Z,"dispatchDiscreteCustomEvent",0,J],16393),e.s(["useCallbackRef",0,Y],94080);var ee="dismissableLayer.update",et=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),er=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:i,...l}=e,u=p.useContext(et),[f,h]=p.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=p.useState({}),g=A(t,e=>h(e)),b=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(x),w=f?b.indexOf(f):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,j=w>=y,S=function(e,t=globalThis?.document){let r=Y(e),n=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){ea("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...u.branches].some(e=>e.contains(t));j&&!r&&(a?.(e),s?.(e),e.defaultPrevented||i?.())},m),E=function(e,t=globalThis?.document){let r=Y(e),n=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!n.current&&ea("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(o?.(e),s?.(e),e.defaultPrevented||i?.())},m);return!function(e,t=globalThis?.document){let r=Y(e);p.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},m),p.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(c=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),en(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=c)}},[f,m,r,u]),p.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),en())},[f,u]),p.useEffect(()=>{let e=()=>v({});return document.addEventListener(ee,e),()=>document.removeEventListener(ee,e)},[]),(0,d.jsx)(Z.div,{...l,ref:g,style:{pointerEvents:k?j?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,E.onFocusCapture),onBlurCapture:z(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,S.onPointerDownCapture)})});function en(){let e=new CustomEvent(ee);document.dispatchEvent(e)}function ea(e,t,r,{discrete:n}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?J(a,o):a.dispatchEvent(o)}er.displayName="DismissableLayer",p.forwardRef((e,t)=>{let r=p.useContext(et),n=p.useRef(null),a=A(t,n);return p.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(Z.div,{...e,ref:a})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,er],72861);var eo="focusScope.autoFocusOnMount",es="focusScope.autoFocusOnUnmount",ei={bubbles:!1,cancelable:!0},el=p.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[i,l]=p.useState(null),c=Y(a),u=Y(o),f=p.useRef(null),h=A(t,e=>l(e)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let e=function(e){if(m.paused||!i)return;let t=e.target;i.contains(t)?f.current=t:ed(f.current,{select:!0})},t=function(e){if(m.paused||!i)return;let t=e.relatedTarget;null!==t&&(i.contains(t)||ed(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ed(i)});return i&&r.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,i,m.paused]),p.useEffect(()=>{if(i){ep.add(m);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(eo,ei);i.addEventListener(eo,c),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ed(n,{select:t}),document.activeElement!==r)return}(ec(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ed(i))}return()=>{i.removeEventListener(eo,c),setTimeout(()=>{let t=new CustomEvent(es,ei);i.addEventListener(es,u),i.dispatchEvent(t),t.defaultPrevented||ed(e??document.body,{select:!0}),i.removeEventListener(es,u),ep.remove(m)},0)}}},[i,c,u,m]);let v=p.useCallback(e=>{if(!r&&!n||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var o;let t,n=e.currentTarget,[s,i]=[eu(t=ec(o=n),o),eu(t.reverse(),o)];s&&i?e.shiftKey||a!==i?e.shiftKey&&a===s&&(e.preventDefault(),r&&ed(i,{select:!0})):(e.preventDefault(),r&&ed(s,{select:!0})):a===n&&e.preventDefault()}},[r,n,m.paused]);return(0,d.jsx)(Z.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});function ec(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eu(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ed(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}el.displayName="FocusScope";var ep=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=ef(r,e)).unshift(e)},remove(e){r=ef(r,e),r[0]?.resume()}});function ef(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}e.s(["FocusScope",0,el],96436);var eh=p.forwardRef((e,t)=>{let{container:r,...n}=e,[a,o]=p.useState(!1);F(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?B.default.createPortal((0,d.jsx)(Z.div,{...n,ref:t}),s):null});eh.displayName="Portal",e.s(["Portal",0,eh],38805);var em=e=>{var t;let r,n,{present:a,children:o}=e,s=function(e){var t,r;let[n,a]=p.useState(),o=p.useRef(null),s=p.useRef(e),i=p.useRef("none"),[l,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>r[e][t]??e,t));return p.useEffect(()=>{let e=ev(o.current);i.current="mounted"===l?e:"none"},[l]),F(()=>{let t=o.current,r=s.current;if(r!==e){let n=i.current,a=ev(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):r&&n!==a?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),F(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=ev(o.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!s.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(i.current=ev(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(e=>{o.current=e?getComputedStyle(e):null,a(e)},[])}}(a),i="function"==typeof o?o({present:s.isPresent}):p.Children.only(o),l=A(s.ref,(t=i,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||s.isPresent?p.cloneElement(i,{ref:l}):null};function ev(e){return e?.animationName||"none"}em.displayName="Presence",e.s(["Presence",0,em],69113);var eg=0;function eb(){p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ex()),document.body.insertAdjacentElement("beforeend",e[1]??ex()),eg++,()=>{1===eg&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eg--}},[])}function ex(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",0,eb],64756);var ey=function(){return(ey=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ew(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var ek=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ej="width-before-scroll-bar";function eS(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eE="u">typeof window?p.useLayoutEffect:p.useEffect,eN=new WeakMap,eC=(void 0===n&&(n={}),(void 0===a&&(a=function(e){return e}),o=[],s=!1,i={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=a(e,s);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){s=!0;var t=[];if(o.length){var r=o;o=[],r.forEach(e),t=o}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),o={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),o}}}}).options=ey({async:!0,ssr:!1},n),i),eR=function(){},e_=p.forwardRef(function(e,t){var r,n,a,o,s=p.useRef(null),i=p.useState({onScrollCapture:eR,onWheelCapture:eR,onTouchMoveCapture:eR}),l=i[0],c=i[1],u=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,b=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,k=e.as,j=e.gapMode,S=ew(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(r=[s,t],n=function(e){return r.forEach(function(t){return eS(t,e)})},(a=(0,p.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,o=a.facade,eE(function(){var e=eN.get(o);if(e){var t=new Set(e),n=new Set(r),a=o.current;t.forEach(function(e){n.has(e)||eS(e,null)}),n.forEach(function(e){t.has(e)||eS(e,a)})}eN.set(o,r)},[r]),o),N=ey(ey({},S),l);return p.createElement(p.Fragment,null,m&&p.createElement(g,{sideCar:eC,removeScrollBar:h,shards:v,noRelative:b,noIsolation:x,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:s,gapMode:j}),u?p.cloneElement(p.Children.only(d),ey(ey({},N),{ref:E})):p.createElement(void 0===k?"div":k,ey({},N,{className:f,ref:E}),d))});e_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e_.classNames={fullWidth:ej,zeroRight:ek};var eO=function(e){var t=e.sideCar,r=ew(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return p.createElement(n,ey({},r))};eO.isSideCarExport=!0;var eM=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ez=function(){var e=eM();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},eI=function(){var e=ez();return function(t){return e(t.styles,t.dynamic),null}},eT={left:0,top:0,right:0,gap:0},eA=function(e){return parseInt(e||"",10)||0},eD=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[eA(r),eA(n),eA(a)]},eP=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eT;var t=eD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eF=eI(),eL="data-scroll-locked",e$=function(e,t,r,n){var a=e.left,o=e.top,s=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(eL,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ek," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(ej," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(ek," .").concat(ek," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ej," .").concat(ej," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(eL,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},eq=function(){var e=parseInt(document.body.getAttribute(eL)||"0",10);return isFinite(e)?e:0},eW=function(){p.useEffect(function(){return document.body.setAttribute(eL,(eq()+1).toString()),function(){var e=eq()-1;e<=0?document.body.removeAttribute(eL):document.body.setAttribute(eL,e.toString())}},[])},eQ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;eW();var o=p.useMemo(function(){return eP(a)},[a]);return p.createElement(eF,{styles:e$(o,!t,a,r?"":"!important")})},eB=!1;if("u">typeof window)try{var eK=Object.defineProperty({},"passive",{get:function(){return eB=!0,!0}});window.addEventListener("test",eK,eK),window.removeEventListener("test",eK,eK)}catch(e){eB=!1}var eU=!!eB&&{passive:!1},eH=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eV=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eG(e,n)){var a=eX(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},eG=function(e,t){return"v"===e?eH(t,"overflowY"):eH(t,"overflowX")},eX=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eZ=function(e,t,r,n,a){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),i=s*n,l=r.target,c=t.contains(l),u=!1,d=i>0,p=0,f=0;do{if(!l)break;var h=eX(e,l),m=h[0],v=h[1]-h[2]-s*m;(m||v)&&eG(e,l)&&(p+=v,f+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(a&&1>Math.abs(p)||!a&&i>p)?u=!0:!d&&(a&&1>Math.abs(f)||!a&&-i>f)&&(u=!0),u},eJ=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eY=function(e){return[e.deltaX,e.deltaY]},e0=function(e){return e&&"current"in e?e.current:e},e1=0,e2=[];let e4=(l=function(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(e1++)[0],o=p.useState(eI)[0],s=p.useRef(e);p.useEffect(function(){s.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(e0),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var a,o=eJ(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-o[0],c="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var h=eV(d,u);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=eV(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=a),!a)return!0;var m=n.current||a;return eZ(m,t,e,"h"===m?l:c,!0)},[]),l=p.useCallback(function(e){if(e2.length&&e2[e2.length-1]===o){var r="deltaY"in e?eY(e):eJ(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(s.current.shards||[]).map(e0).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?i(e,a[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=p.useCallback(function(e){r.current=eJ(e),n.current=void 0},[]),d=p.useCallback(function(t){c(t.type,eY(t),t.target,i(t,e.lockRef.current))},[]),f=p.useCallback(function(t){c(t.type,eJ(t),t.target,i(t,e.lockRef.current))},[]);p.useEffect(function(){return e2.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,eU),document.addEventListener("touchmove",l,eU),document.addEventListener("touchstart",u,eU),function(){e2=e2.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,eU),document.removeEventListener("touchmove",l,eU),document.removeEventListener("touchstart",u,eU)}},[]);var h=e.removeScrollBar,m=e.inert;return p.createElement(p.Fragment,null,m?p.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,h?p.createElement(eQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eC.useMedium(l),eO);var e5=p.forwardRef(function(e,t){return p.createElement(e_,ey({},e,{ref:t,sideCar:e4}))});e5.classNames=e_.classNames,e.s(["RemoveScroll",0,e5],61624);var e3=new WeakMap,e9=new WeakMap,e6={},e7=0,e8=function(e){return e&&(e.host||e8(e.parentNode))},te=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=e8(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});e6[r]||(e6[r]=new WeakMap);var o=e6[r],s=[],i=new Set,l=new Set(a),c=function(e){!e||i.has(e)||(i.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(e3.get(e)||0)+1,c=(o.get(e)||0)+1;e3.set(e,l),o.set(e,c),s.push(e),1===l&&a&&e9.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),i.clear(),e7++,function(){s.forEach(function(e){var t=e3.get(e)-1,a=o.get(e)-1;e3.set(e,t),o.set(e,a),t||(e9.has(e)||e.removeAttribute(n),e9.delete(e)),a||e.removeAttribute(r)}),--e7||(e3=new WeakMap,e3=new WeakMap,e9=new WeakMap,e6={})}},tt=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),te(n,a,r,"aria-hidden")):function(){return null}};e.s(["hideOthers",0,tt],19776);var tr="Dialog",[tn,ta]=P(tr),[to,ts]=tn(tr),ti=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,i=p.useRef(null),l=p.useRef(null),[c,u]=Q({prop:n,defaultProp:a??!1,onChange:o,caller:tr});return(0,d.jsx)(to,{scope:t,triggerRef:i,contentRef:l,contentId:q(),titleId:q(),descriptionId:q(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),modal:s,children:r})};ti.displayName=tr;var tl="DialogTrigger",tc=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ts(tl,r),o=A(t,a.triggerRef);return(0,d.jsx)(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":t_(a.open),...n,ref:o,onClick:z(e.onClick,a.onOpenToggle)})});tc.displayName=tl;var tu="DialogPortal",[td,tp]=tn(tu,{forceMount:void 0}),tf=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,o=ts(tu,t);return(0,d.jsx)(td,{scope:t,forceMount:r,children:p.Children.map(n,e=>(0,d.jsx)(em,{present:r||o.open,children:(0,d.jsx)(eh,{asChild:!0,container:a,children:e})}))})};tf.displayName=tu;var th="DialogOverlay",tm=p.forwardRef((e,t)=>{let r=tp(th,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=ts(th,e.__scopeDialog);return o.modal?(0,d.jsx)(em,{present:n||o.open,children:(0,d.jsx)(tg,{...a,ref:t})}):null});tm.displayName=th;var tv=K("DialogOverlay.RemoveScroll"),tg=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ts(th,r);return(0,d.jsx)(e5,{as:tv,allowPinchZoom:!0,shards:[a.contentRef],children:(0,d.jsx)(Z.div,{"data-state":t_(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tb="DialogContent",tx=p.forwardRef((e,t)=>{let r=tp(tb,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,o=ts(tb,e.__scopeDialog);return(0,d.jsx)(em,{present:n||o.open,children:o.modal?(0,d.jsx)(ty,{...a,ref:t}):(0,d.jsx)(tw,{...a,ref:t})})});tx.displayName=tb;var ty=p.forwardRef((e,t)=>{let r=ts(tb,e.__scopeDialog),n=p.useRef(null),a=A(t,r.contentRef,n);return p.useEffect(()=>{let e=n.current;if(e)return tt(e)},[]),(0,d.jsx)(tk,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:z(e.onFocusOutside,e=>e.preventDefault())})}),tw=p.forwardRef((e,t)=>{let r=ts(tb,e.__scopeDialog),n=p.useRef(!1),a=p.useRef(!1);return(0,d.jsx)(tk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let o=t.target;r.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),tk=p.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,i=ts(tb,r),l=p.useRef(null),c=A(t,l);return eb(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(el,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,d.jsx)(er,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":t_(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(tI,{titleId:i.titleId}),(0,d.jsx)(tT,{contentRef:l,descriptionId:i.descriptionId})]})]})}),tj="DialogTitle",tS=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ts(tj,r);return(0,d.jsx)(Z.h2,{id:a.titleId,...n,ref:t})});tS.displayName=tj;var tE="DialogDescription",tN=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ts(tE,r);return(0,d.jsx)(Z.p,{id:a.descriptionId,...n,ref:t})});tN.displayName=tE;var tC="DialogClose",tR=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=ts(tC,r);return(0,d.jsx)(Z.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>a.onOpenChange(!1))})});function t_(e){return e?"open":"closed"}tR.displayName=tC;var tO="DialogTitleWarning",[tM,tz]=D(tO,{contentName:tb,titleName:tj,docsSlug:"dialog"}),tI=({titleId:e})=>{let t=tz(tO),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90922,e=>{"use strict";var t=e.i(25007);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:i="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...a,width:n,height:n,stroke:e,strokeWidth:o?24*Number(s)/Number(n):s,className:r("lucide",i),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,a)=>{let o=(0,t.forwardRef)(({className:o,...i},l)=>(0,t.createElement)(s,{ref:l,iconNode:a,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...i}));return o.displayName=n(e),o}],90922)},9909,(e,t,r)=>{},20682,(e,t,r)=>{var n=e.i(10661);e.r(9909);var a=e.r(25007),s=a&&"object"==typeof a&&"default"in a?a:{default:a},o=void 0!==n.default&&n.default.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,a=t.optimizeForSpeed,s=void 0===a?o:a;c(i(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(c(i(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&c(i(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return r?a.insertBefore(n,r):a.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+u(e+"-"+r)),d[n]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,a=t.optimizeForSpeed,s=void 0!==a&&a;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,a=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=s,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return s.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var a=p(n,r);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return f(a,e)}):[f(a,t)]}}return{styleId:p(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=a.createContext(null);function v(){return new h}function g(){return a.useContext(m)}m.displayName="StyleSheetContext";var b=s.default.useInsertionEffect||s.default.useLayoutEffect,x="u">typeof window?v():void 0;function y(e){var t=x||g();return t&&("u"<typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,n=a.useContext(m),o=a.useState(function(){return n||t||v()})[0];return s.default.createElement(m.Provider,{value:o},r)},r.createStyleRegistry=v,r.style=y,r.useStyleRegistry=g},23097,(e,t,r)=>{t.exports=e.r(20682).style},39182,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(53432)._(e.r(33290)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},25133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(25007);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},85672,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(84397),a=e.r(85326);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},19364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},94583,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(53432),o=e.r(98181),i=s._(e.r(25007)),l=e.r(39182),c=e.r(73232),u=e.r(25133),d=e.r(84397),p=e.r(14676);e.r(41385);let f=e.r(62256),h=e.r(96244),m=e.r(85672),v=e.r(85461);function g(t){var r,n;let a,s,g,[x,y]=(0,i.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:k,as:j,children:S,prefetch:N=null,passHref:E,replace:C,shallow:R,scroll:_,onClick:O,onMouseEnter:M,onTouchStart:z,legacyBehavior:I=!1,onNavigate:T,transitionTypes:A,ref:D,unstable_dynamicOnHover:P,...F}=t;a=S,I&&("string"==typeof a||"number"==typeof a)&&(a=(0,o.jsx)("a",{children:a}));let L=i.default.useContext(c.AppRouterContext),$=!1!==N,q=!1!==N?null===(n=N)||"auto"===n?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,W="string"==typeof(r=j||k)?r:(0,l.formatUrl)(r);if(I){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});s=i.default.Children.only(a)}let Q=I?s&&"object"==typeof s&&s.ref:D,B=i.default.useCallback(e=>(null!==L&&(w.current=(0,h.mountLinkInstance)(e,W,L,q,$,y)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,W,L,q,y]),K={ref:(0,u.useMergedRef)(B,Q),onClick(t){I||"function"!=typeof O||O(t),I&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t),!L||t.defaultPrevented||function(t,r,n,a,s,o,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(58411);i.default.startTransition(()=>{d(r,a?"replace":"push",!1===s?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,W,w,C,_,T,A)},onMouseEnter(e){I||"function"!=typeof M||M(e),I&&s.props&&"function"==typeof s.props.onMouseEnter&&s.props.onMouseEnter(e),L&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===P)},onTouchStart:function(e){I||"function"!=typeof z||z(e),I&&s.props&&"function"==typeof s.props.onTouchStart&&s.props.onTouchStart(e),L&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===P)}};return(0,d.isAbsoluteUrl)(W)?K.href=W:I&&!E&&("a"!==s.type||"href"in s.props)||(K.href=(0,p.addBasePath)(W)),g=I?i.default.cloneElement(s,K):(0,o.jsx)("a",{...F,...K,children:a}),(0,o.jsx)(b.Provider,{value:x,children:g})}e.r(19364);let b=(0,i.createContext)(h.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},98676,(e,t,r)=>{t.exports=e.r(23586)},35717,71701,44415,46616,65390,45697,10587,58801,97058,68442,21430,48964,36511,93574,e=>{"use strict";var t=e.i(90922);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],35717);let n=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,n],71701);let a=(0,t.default)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]);e.s(["Palette",0,a],44415);let s=(0,t.default)("arrow-left-right",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);e.s(["ArrowLeftRight",0,s],46616),e.s(["THEMES",0,[{id:"ryoko",label:"Ryoko",emoji:"🌸"},{id:"light",label:"ライト",emoji:"☀️"},{id:"dark",label:"ダーク",emoji:"🌑"},{id:"glass",label:"ガラス",emoji:"🪟"},{id:"color",label:"カラー",emoji:"🎨"},{id:"system",label:"システム",emoji:"⚙️"}]],65390);let o=(0,t.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);e.s(["Home",0,o],45697);let i=(0,t.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,i],10587);let l=(0,t.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,l],58801);let c=(0,t.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,c],97058);let u=(0,t.default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);e.s(["LayoutGrid",0,u],68442);let d=(0,t.default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);e.s(["Activity",0,d],21430);let p=(0,t.default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,p],48964);let f=(0,t.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,f],36511);let h=[{href:"/",label:"ホーム",icon:o},{href:"/chat",label:"チャット",icon:i},{href:"/org",label:"組織",icon:l},{href:"/kanban",label:"カンバン",icon:u},{href:"/cron",label:"スケジュール",icon:c},{href:"/logs",label:"アクティビティ",icon:d},{href:"/skills",label:"スキル",icon:p},{href:"/settings",label:"設定",icon:f}];e.s(["NAV_ITEMS",0,h],93574)},47899,72415,e=>{"use strict";function t(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",0,t],72415);let r=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),n=[],a=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let n=e[t],s=r.nextPart.get(n);if(s){let r=a(e,t+1,s);if(r)return r}let o=r.validators;if(null===o)return;let i=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(i))return t.classGroupId}},s=(e,t)=>{let n=r();for(let r in e)o(e[r],n,r,t);return n},o=(e,t,r,n)=>{let a=e.length;for(let s=0;s<a;s++)i(e[s],t,r,n)},i=(e,t,r,n)=>{"string"==typeof e?l(e,t,r):"function"==typeof e?c(e,t,r,n):u(e,t,r,n)},l=(e,t,r)=>{(""===e?t:d(t,e)).classGroupId=r},c=(e,t,r,n)=>{p(e)?o(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},u=(e,t,r,n)=>{let a=Object.entries(e),s=a.length;for(let e=0;e<s;e++){let[s,i]=a[e];o(i,d(t,s),r,n)}},d=(e,t)=>{let n=e,a=t.split("-"),s=a.length;for(let e=0;e<s;e++){let t=a[e],s=n.nextPart.get(t);s||(s=r(),n.nextPart.set(t,s)),n=s}return n},p=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,f=[],h=(e,t,r,n,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:a}),m=/\s+/,v=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=v(e[n]))&&(r&&(r+=" "),r+=t);return r},g=[],b=e=>{let t=t=>t[e]||g;return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,j=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,N=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>w.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),_=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&R(e.slice(0,-1)),M=e=>k.test(e),z=()=>!0,I=e=>j.test(e)&&!S.test(e),T=()=>!1,A=e=>N.test(e),D=e=>E.test(e),P=e=>!L(e)&&!H(e),F=e=>et(e,es,T),L=e=>x.test(e),$=e=>et(e,eo,I),q=e=>et(e,ei,R),W=e=>et(e,ec,z),Q=e=>et(e,el,T),B=e=>et(e,en,T),K=e=>et(e,ea,D),U=e=>et(e,eu,A),H=e=>y.test(e),V=e=>er(e,eo),G=e=>er(e,el),X=e=>er(e,en),Z=e=>er(e,es),J=e=>er(e,ea),Y=e=>er(e,eu,!0),ee=e=>er(e,ec,!0),et=(e,t,r)=>{let n=x.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},er=(e,t,r=!1)=>{let n=y.exec(e);return!!n&&(n[1]?t(n[1]):r)},en=e=>"position"===e||"percentage"===e,ea=e=>"image"===e||"url"===e,es=e=>"length"===e||"size"===e||"bg-size"===e,eo=e=>"length"===e,ei=e=>"number"===e,el=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,eu=e=>"shadow"===e,ed=((e,...t)=>{let r,o,i,l,c=e=>{let t=o(e);if(t)return t;let n=((e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:s}=t,o=[],i=e.trim().split(m),l="";for(let e=i.length-1;e>=0;e-=1){let t=i[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=r(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=n(h?p.substring(0,f):p);if(!m){if(!h||!(m=n(p))){l=t+(l.length>0?" "+l:l);continue}h=!1}let v=0===u.length?"":1===u.length?u[0]:s(u).join(":"),g=d?v+"!":v,b=g+m;if(o.indexOf(b)>-1)continue;o.push(b);let x=a(m,h);for(let e=0;e<x.length;++e){let t=x[e];o.push(g+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return i(e,n),n};return l=u=>{var d;let p;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),a=(a,s)=>{r[a]=s,++t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(a(e,t),t):void 0},set(e,t){e in r?r[e]=t:a(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,n=e=>{let t,r=[],n=0,a=0,s=0,o=e.length;for(let i=0;i<o;i++){let o=e[i];if(0===n&&0===a){if(":"===o){r.push(e.slice(s,i)),s=i+1;continue}if("/"===o){t=i;continue}}"["===o?n++:"]"===o?n--:"("===o?a++:")"===o&&a--}let i=0===r.length?e:e.slice(s),l=i,c=!1;return i.endsWith("!")?(l=i.slice(0,-1),c=!0):i.startsWith("!")&&(l=i.slice(1),c=!0),h(r,c,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):h(f,!1,t,void 0,!0)}if(r){let e=n;n=t=>r({className:t,parseClassName:e})}return n})(d),sortModifiers:(p=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{p.set(e,1e6+t)}),e=>{let t=[],r=[];for(let n=0;n<e.length;n++){let a=e[n],s="["===a[0],o=p.has(a);s||o?(r.length>0&&(r.sort(),t.push(...r),r=[]),t.push(a)):r.push(a)}return r.length>0&&(r.sort(),t.push(...r)),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return s(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,n,a;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(n=(t=r.slice(1,-1)).indexOf(":"),(a=t.slice(0,n))?"arbitrary.."+a:void 0)}let n=e.split("-"),s=+(""===n[0]&&n.length>1);return a(n,s,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=o[e],a=r[e];if(t){if(a){let e=Array(a.length+t.length);for(let t=0;t<a.length;t++)e[t]=a[t];for(let r=0;r<t.length;r++)e[a.length+r]=t[r];return e}return t}return a||n}return r[e]||n}}})(d)}).cache.get,i=r.cache.set,l=c,c(u)},(...e)=>l(((...e)=>{let t,r,n=0,a="";for(;n<e.length;)(t=e[n++])&&(r=v(t))&&(a&&(a+=" "),a+=r);return a})(...e))})(()=>{let e=b("color"),t=b("font"),r=b("text"),n=b("font-weight"),a=b("tracking"),s=b("leading"),o=b("breakpoint"),i=b("container"),l=b("spacing"),c=b("radius"),u=b("shadow"),d=b("inset-shadow"),p=b("text-shadow"),f=b("drop-shadow"),h=b("blur"),m=b("perspective"),v=b("aspect"),g=b("ease"),x=b("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),H,L],j=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],N=()=>[H,L,l],E=()=>[C,"full","auto",...N()],I=()=>[_,"none","subgrid",H,L],T=()=>["auto",{span:["full",_,H,L]},_,H,L],A=()=>[_,"auto",H,L],D=()=>["auto","min","max","fr",H,L],et=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],en=()=>["auto",...N()],ea=()=>[C,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],es=()=>[C,"screen","full","dvw","lvw","svw","min","max","fit",...N()],eo=()=>[C,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],ei=()=>[e,H,L],el=()=>[...w(),X,B,{position:[H,L]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eu=()=>["auto","cover","contain",Z,F,{size:[H,L]}],ed=()=>[O,V,$],ep=()=>["","none","full",c,H,L],ef=()=>["",R,V,$],eh=()=>["solid","dashed","dotted","double"],em=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ev=()=>[R,O,X,B],eg=()=>["","none",h,H,L],eb=()=>["none",R,H,L],ex=()=>["none",R,H,L],ey=()=>[R,H,L],ew=()=>[C,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[z],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[P],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",R],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C,L,H,v]}],container:["container"],columns:[{columns:[R,L,H,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[_,"auto",H,L]}],basis:[{basis:[C,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,C,"auto","initial","none",L]}],grow:[{grow:["",R,H,L]}],shrink:[{shrink:["",R,H,L]}],order:[{order:[_,"first","last","none",H,L]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...et(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...et()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":et()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:en()}],mx:[{mx:en()}],my:[{my:en()}],ms:[{ms:en()}],me:[{me:en()}],mbs:[{mbs:en()}],mbe:[{mbe:en()}],mt:[{mt:en()}],mr:[{mr:en()}],mb:[{mb:en()}],ml:[{ml:en()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:ea()}],"inline-size":[{inline:["auto",...es()]}],"min-inline-size":[{"min-inline":["auto",...es()]}],"max-inline-size":[{"max-inline":["none",...es()]}],"block-size":[{block:["auto",...eo()]}],"min-block-size":[{"min-block":["auto",...eo()]}],"max-block-size":[{"max-block":["none",...eo()]}],w:[{w:[i,"screen",...ea()]}],"min-w":[{"min-w":[i,"screen","none",...ea()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[o]},...ea()]}],h:[{h:["screen","lh",...ea()]}],"min-h":[{"min-h":["screen","lh","none",...ea()]}],"max-h":[{"max-h":["screen","lh",...ea()]}],"font-size":[{text:["base",r,V,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ee,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,L]}],"font-family":[{font:[G,Q,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,H,L]}],"line-clamp":[{"line-clamp":[R,"none",H,q]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",H,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",H,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ei()}],"text-color":[{text:ei()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...eh(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",H,$]}],"text-decoration-color":[{decoration:ei()}],"underline-offset":[{"underline-offset":[R,"auto",H,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:el()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:eu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_,H,L],radial:["",H,L],conic:[_,H,L]},J,K]}],"bg-color":[{bg:ei()}],"gradient-from-pos":[{from:ed()}],"gradient-via-pos":[{via:ed()}],"gradient-to-pos":[{to:ed()}],"gradient-from":[{from:ei()}],"gradient-via":[{via:ei()}],"gradient-to":[{to:ei()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:ef()}],"border-w-x":[{"border-x":ef()}],"border-w-y":[{"border-y":ef()}],"border-w-s":[{"border-s":ef()}],"border-w-e":[{"border-e":ef()}],"border-w-bs":[{"border-bs":ef()}],"border-w-be":[{"border-be":ef()}],"border-w-t":[{"border-t":ef()}],"border-w-r":[{"border-r":ef()}],"border-w-b":[{"border-b":ef()}],"border-w-l":[{"border-l":ef()}],"divide-x":[{"divide-x":ef()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ef()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...eh(),"hidden","none"]}],"divide-style":[{divide:[...eh(),"hidden","none"]}],"border-color":[{border:ei()}],"border-color-x":[{"border-x":ei()}],"border-color-y":[{"border-y":ei()}],"border-color-s":[{"border-s":ei()}],"border-color-e":[{"border-e":ei()}],"border-color-bs":[{"border-bs":ei()}],"border-color-be":[{"border-be":ei()}],"border-color-t":[{"border-t":ei()}],"border-color-r":[{"border-r":ei()}],"border-color-b":[{"border-b":ei()}],"border-color-l":[{"border-l":ei()}],"divide-color":[{divide:ei()}],"outline-style":[{outline:[...eh(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,H,L]}],"outline-w":[{outline:["",R,V,$]}],"outline-color":[{outline:ei()}],shadow:[{shadow:["","none",u,Y,U]}],"shadow-color":[{shadow:ei()}],"inset-shadow":[{"inset-shadow":["none",d,Y,U]}],"inset-shadow-color":[{"inset-shadow":ei()}],"ring-w":[{ring:ef()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ei()}],"ring-offset-w":[{"ring-offset":[R,$]}],"ring-offset-color":[{"ring-offset":ei()}],"inset-ring-w":[{"inset-ring":ef()}],"inset-ring-color":[{"inset-ring":ei()}],"text-shadow":[{"text-shadow":["none",p,Y,U]}],"text-shadow-color":[{"text-shadow":ei()}],opacity:[{opacity:[R,H,L]}],"mix-blend":[{"mix-blend":[...em(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":em()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":ev()}],"mask-image-linear-to-pos":[{"mask-linear-to":ev()}],"mask-image-linear-from-color":[{"mask-linear-from":ei()}],"mask-image-linear-to-color":[{"mask-linear-to":ei()}],"mask-image-t-from-pos":[{"mask-t-from":ev()}],"mask-image-t-to-pos":[{"mask-t-to":ev()}],"mask-image-t-from-color":[{"mask-t-from":ei()}],"mask-image-t-to-color":[{"mask-t-to":ei()}],"mask-image-r-from-pos":[{"mask-r-from":ev()}],"mask-image-r-to-pos":[{"mask-r-to":ev()}],"mask-image-r-from-color":[{"mask-r-from":ei()}],"mask-image-r-to-color":[{"mask-r-to":ei()}],"mask-image-b-from-pos":[{"mask-b-from":ev()}],"mask-image-b-to-pos":[{"mask-b-to":ev()}],"mask-image-b-from-color":[{"mask-b-from":ei()}],"mask-image-b-to-color":[{"mask-b-to":ei()}],"mask-image-l-from-pos":[{"mask-l-from":ev()}],"mask-image-l-to-pos":[{"mask-l-to":ev()}],"mask-image-l-from-color":[{"mask-l-from":ei()}],"mask-image-l-to-color":[{"mask-l-to":ei()}],"mask-image-x-from-pos":[{"mask-x-from":ev()}],"mask-image-x-to-pos":[{"mask-x-to":ev()}],"mask-image-x-from-color":[{"mask-x-from":ei()}],"mask-image-x-to-color":[{"mask-x-to":ei()}],"mask-image-y-from-pos":[{"mask-y-from":ev()}],"mask-image-y-to-pos":[{"mask-y-to":ev()}],"mask-image-y-from-color":[{"mask-y-from":ei()}],"mask-image-y-to-color":[{"mask-y-to":ei()}],"mask-image-radial":[{"mask-radial":[H,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":ev()}],"mask-image-radial-to-pos":[{"mask-radial-to":ev()}],"mask-image-radial-from-color":[{"mask-radial-from":ei()}],"mask-image-radial-to-color":[{"mask-radial-to":ei()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":ev()}],"mask-image-conic-to-pos":[{"mask-conic-to":ev()}],"mask-image-conic-from-color":[{"mask-conic-from":ei()}],"mask-image-conic-to-color":[{"mask-conic-to":ei()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:el()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:eu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",H,L]}],filter:[{filter:["","none",H,L]}],blur:[{blur:eg()}],brightness:[{brightness:[R,H,L]}],contrast:[{contrast:[R,H,L]}],"drop-shadow":[{"drop-shadow":["","none",f,Y,U]}],"drop-shadow-color":[{"drop-shadow":ei()}],grayscale:[{grayscale:["",R,H,L]}],"hue-rotate":[{"hue-rotate":[R,H,L]}],invert:[{invert:["",R,H,L]}],saturate:[{saturate:[R,H,L]}],sepia:[{sepia:["",R,H,L]}],"backdrop-filter":[{"backdrop-filter":["","none",H,L]}],"backdrop-blur":[{"backdrop-blur":eg()}],"backdrop-brightness":[{"backdrop-brightness":[R,H,L]}],"backdrop-contrast":[{"backdrop-contrast":[R,H,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,H,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,H,L]}],"backdrop-invert":[{"backdrop-invert":["",R,H,L]}],"backdrop-opacity":[{"backdrop-opacity":[R,H,L]}],"backdrop-saturate":[{"backdrop-saturate":[R,H,L]}],"backdrop-sepia":[{"backdrop-sepia":["",R,H,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",H,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",H,L]}],ease:[{ease:["linear","initial",g,H,L]}],delay:[{delay:[R,H,L]}],animate:[{animate:["none",x,H,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,H,L]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:eb()}],"rotate-x":[{"rotate-x":eb()}],"rotate-y":[{"rotate-y":eb()}],"rotate-z":[{"rotate-z":eb()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:ey()}],"skew-x":[{"skew-x":ey()}],"skew-y":[{"skew-y":ey()}],transform:[{transform:[H,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ew()}],"translate-x":[{"translate-x":ew()}],"translate-y":[{"translate-y":ew()}],"translate-z":[{"translate-z":ew()}],"translate-none":["translate-none"],accent:[{accent:ei()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ei()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H,L]}],fill:[{fill:["none",...ei()]}],"stroke-w":[{stroke:[R,V,$,q]}],stroke:[{stroke:["none",...ei()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});e.s(["cn",0,function(...e){return ed(t(e))}],47899)},135,15433,e=>{"use strict";var t=e.i(98181),r=e.i(98676),n=e.i(25007),a=e.i(35717),s=e.i(71701),o=e.i(44415),i=e.i(46616),l=e.i(13765),c=e.i(36668),u=e.i(65390),d=e.i(93574),p=e.i(47899);function f({theme:e}){switch(e){case"light":return(0,t.jsx)(a.Sun,{size:18});case"dark":return(0,t.jsx)(s.Moon,{size:18});default:return(0,t.jsx)(o.Palette,{size:18})}}e.s(["Sidebar",0,function(){let e=(0,r.usePathname)(),{theme:a,setTheme:s}=(0,l.useTheme)(),{settings:o}=(0,c.useSettings)(),[h,m]=(0,n.useState)(!1),[v,g]=(0,n.useState)([]),[b,x]=(0,n.useState)(!1),y=o.portalEmoji??"🧞",w=o.portalName??"Ryoko";return(0,n.useEffect)(()=>{fetch("/api/instances").then(e=>e.json()).then(g).catch(()=>{})},[]),(0,t.jsxs)("aside",{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),className:(0,p.cn)("fixed inset-y-0 left-0 hidden overflow-hidden border-r border-border bg-[var(--bg-secondary)] transition-[width,z-index] duration-200 ease-out lg:flex lg:flex-col",h?"z-[110] w-[200px]":"z-[60] w-14"),children:[(0,t.jsxs)("div",{className:"flex min-h-14 shrink-0 items-center gap-2.5 px-3.5 pb-3 pt-4",children:[(0,t.jsx)("span",{className:"w-7 shrink-0 text-center text-2xl leading-none",children:y}),(0,t.jsx)("span",{className:(0,p.cn)("whitespace-nowrap text-[17px] font-semibold text-foreground transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:w})]}),(0,t.jsx)("nav",{className:"flex flex-1 flex-col gap-0.5 px-2",children:d.NAV_ITEMS.map(r=>{let n="/"===r.href?"/"===e:e.startsWith(r.href),a=r.icon;return(0,t.jsxs)("a",{href:r.href,className:(0,p.cn)("group flex h-10 items-center gap-2.5 rounded-md px-3 text-[13px] whitespace-nowrap transition-colors",n?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),"aria-label":r.label,"aria-current":n?"page":void 0,children:[(0,t.jsx)(a,{size:18,className:"shrink-0"}),(0,t.jsx)("span",{className:(0,p.cn)("transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:r.label})]},r.href)})}),v.length>1&&(0,t.jsxs)("div",{className:"relative shrink-0 px-2 pt-1",children:[(0,t.jsxs)("button",{onClick:()=>x(e=>!e),"aria-label":"Switch instance",className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,t.jsx)(i.ArrowLeftRight,{size:18,className:"shrink-0"}),(0,t.jsx)("span",{className:(0,p.cn)("transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:"Switch"})]}),b&&h&&(0,t.jsx)("div",{className:"absolute bottom-full left-2 z-100 mb-1 min-w-[180px] rounded-xl border border-border bg-[var(--material-thick)] p-1 shadow-[var(--shadow-overlay)] backdrop-blur-xl",children:v.map(e=>(0,t.jsxs)("button",{onClick:()=>{!e.current&&e.running&&(window.location.href=`http://localhost:${e.port}/chat`),x(!1)},className:(0,p.cn)("flex w-full items-center justify-between rounded-lg px-3 py-2 text-left text-[13px] transition-colors",e.current?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":e.running?"text-foreground hover:bg-accent":"cursor-default text-[var(--text-quaternary)]"),children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsx)("span",{className:"size-2 shrink-0 rounded-full",style:{background:e.running?"var(--system-green)":"var(--text-quaternary)"}})]},e.port))})]}),(0,t.jsx)("div",{className:"shrink-0 px-2 pb-3 pt-2",children:(0,t.jsxs)("button",{onClick:function(){let e=u.THEMES.map(e=>e.id),t=e.indexOf(a);s(e[(t+1)%e.length])},"aria-label":`Theme: ${a}. Click to cycle.`,className:"flex h-10 w-full items-center gap-2.5 rounded-md px-3 text-[13px] text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:[(0,t.jsx)("span",{className:"shrink-0",children:(0,t.jsx)(f,{theme:a})}),(0,t.jsx)("span",{className:(0,p.cn)("capitalize transition-opacity duration-200",h?"opacity-100":"opacity-0"),children:a})]})})]})}],135);let h=(0,e.i(90922).default)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);e.s(["DollarSign",0,h],15433)},9156,e=>{"use strict";let t=(0,e.i(90922).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],9156)},12239,52567,63949,66379,80011,99162,28509,87782,39202,16393,94080,72861,96436,38805,69113,64756,61624,19776,91356,9148,74499,53104,3025,33941,41864,83536,44251,82343,e=>{"use strict";let t,r;var n,a,s,o,i,l,c,u,d=e.i(98181),p=e.i(25007),f=e.i(98676),h=e.i(45697),m=e.i(10587),v=e.i(58801),g=e.i(68442),b=e.i(97058),x=e.i(15433),y=e.i(21430),w=e.i(48964),k=e.i(36511),j=e.i(9156),S=e.i(90922);let N=(0,S.default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);e.s(["Target",0,N],52567);let E=(0,S.default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);var C=/[\\\/_+.#"@\[\(\{&]/,R=/[\\\/_+.#"@\[\(\{&]/g,_=/[\s-]/,O=/[\s-]/g;function M(e){return e.toLowerCase().replace(O," ")}function z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function I(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function T(...e){return t=>{let r=!1,n=e.map(e=>{let n=I(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():I(e[t],null)}}}}function A(...e){return p.useCallback(T(...e),e)}function D(e,t){let r=p.createContext(t),n=e=>{let{children:t,...n}=e,a=p.useMemo(()=>n,Object.values(n));return(0,d.jsx)(r.Provider,{value:a,children:t})};return n.displayName=e+"Provider",[n,function(n){let a=p.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${n}\` must be used within \`${e}\``)}]}function P(e,t=[]){let r=[],n=()=>{let t=r.map(e=>p.createContext(e));return function(r){let n=r?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=p.createContext(n),s=r.length;r=[...r,n];let o=t=>{let{scope:r,children:n,...o}=t,i=r?.[e]?.[s]||a,l=p.useMemo(()=>o,Object.values(o));return(0,d.jsx)(i.Provider,{value:l,children:n})};return o.displayName=t+"Provider",[o,function(r,o){let i=o?.[e]?.[s]||a,l=p.useContext(i);if(l)return l;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,z],63949),e.s(["composeRefs",0,T,"useComposedRefs",0,A],66379),e.s(["createContext",0,D,"createContextScope",0,P],80011);var F=globalThis?.document?p.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,F],99162);var L=p[" useId ".trim().toString()]||(()=>void 0),$=0;function q(e){let[t,r]=p.useState(L());return F(()=>{e||r(e=>e??String($++))},[e]),e||(t?`radix-${t}`:"")}e.s(["useId",0,q],28509),p[" useEffectEvent ".trim().toString()],p[" useInsertionEffect ".trim().toString()];var W=p[" useInsertionEffect ".trim().toString()]||F;function Q({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,s,o]=function({defaultProp:e,onChange:t}){let[r,n]=p.useState(e),a=p.useRef(r),s=p.useRef(t);return W(()=>{s.current=t},[t]),p.useEffect(()=>{a.current!==r&&(s.current?.(r),a.current=r)},[r,a]),[r,n,s]}({defaultProp:t,onChange:r}),i=void 0!==e,l=i?e:a;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==i){let t=i?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=i},[i,n])}return[l,p.useCallback(t=>{if(i){let r="function"==typeof t?t(e):t;r!==e&&o.current?.(r)}else s(t)},[i,e,s,o])]}Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,Q],87782);var B=e.i(39150);function K(e){var t;let r,n=(t=e,(r=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(p.isValidElement(r)){var a;let e,s,o=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),i=function(e,t){let r={...t};for(let n in t){let a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...e)=>{let t=s(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...s}:"className"===n&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(i.ref=t?T(t,o):o),p.cloneElement(r,i)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName=`${t}.SlotClone`,r),a=p.forwardRef((e,t)=>{let{children:r,...a}=e,s=p.Children.toArray(r),o=s.find(X);if(o){let e=o.props.children,r=s.map(t=>t!==o?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,d.jsx)(n,{...a,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,d.jsx)(n,{...a,ref:t,children:r})});return a.displayName=`${e}.Slot`,a}var U=K("Slot"),H=Symbol("radix.slottable");function V(e){let t=({children:e})=>(0,d.jsx)(d.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=H,t}var G=V("Slottable");function X(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===H}e.s(["Root",0,U,"Slot",0,U,"Slottable",0,G,"createSlot",0,K,"createSlottable",0,V],39202);var Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=K(`Primitive.${t}`),n=p.forwardRef((e,n)=>{let{asChild:a,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(a?r:t,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function J(e,t){e&&B.flushSync(()=>e.dispatchEvent(t))}function Y(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["Primitive",0,Z,"dispatchDiscreteCustomEvent",0,J],16393),e.s(["useCallbackRef",0,Y],94080);var ee="dismissableLayer.update",et=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),er=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:o,onDismiss:i,...l}=e,u=p.useContext(et),[f,h]=p.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=p.useState({}),g=A(t,e=>h(e)),b=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(x),w=f?b.indexOf(f):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,j=w>=y,S=function(e,t=globalThis?.document){let r=Y(e),n=p.useRef(!1),a=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!n.current){let n=function(){ea("dismissableLayer.pointerDownOutside",r,s,{discrete:!0})},s={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=n,t.addEventListener("click",a.current,{once:!0})):n()}else t.removeEventListener("click",a.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,r=[...u.branches].some(e=>e.contains(t));j&&!r&&(a?.(e),o?.(e),e.defaultPrevented||i?.())},m),N=function(e,t=globalThis?.document){let r=Y(e),n=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!n.current&&ea("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(s?.(e),o?.(e),e.defaultPrevented||i?.())},m);return!function(e,t=globalThis?.document){let r=Y(e);p.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&i&&(e.preventDefault(),i()))},m),p.useEffect(()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(c=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),en(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=c)}},[f,m,r,u]),p.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),en())},[f,u]),p.useEffect(()=>{let e=()=>v({});return document.addEventListener(ee,e),()=>document.removeEventListener(ee,e)},[]),(0,d.jsx)(Z.div,{...l,ref:g,style:{pointerEvents:k?j?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,N.onFocusCapture),onBlurCapture:z(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,S.onPointerDownCapture)})});function en(){let e=new CustomEvent(ee);document.dispatchEvent(e)}function ea(e,t,r,{discrete:n}){let a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?J(a,s):a.dispatchEvent(s)}er.displayName="DismissableLayer",p.forwardRef((e,t)=>{let r=p.useContext(et),n=p.useRef(null),a=A(t,n);return p.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(Z.div,{...e,ref:a})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,er],72861);var es="focusScope.autoFocusOnMount",eo="focusScope.autoFocusOnUnmount",ei={bubbles:!1,cancelable:!0},el=p.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...o}=e,[i,l]=p.useState(null),c=Y(a),u=Y(s),f=p.useRef(null),h=A(t,e=>l(e)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let e=function(e){if(m.paused||!i)return;let t=e.target;i.contains(t)?f.current=t:ed(f.current,{select:!0})},t=function(e){if(m.paused||!i)return;let t=e.relatedTarget;null!==t&&(i.contains(t)||ed(f.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ed(i)});return i&&r.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,i,m.paused]),p.useEffect(()=>{if(i){ep.add(m);let e=document.activeElement;if(!i.contains(e)){let t=new CustomEvent(es,ei);i.addEventListener(es,c),i.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(ed(n,{select:t}),document.activeElement!==r)return}(ec(i).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&ed(i))}return()=>{i.removeEventListener(es,c),setTimeout(()=>{let t=new CustomEvent(eo,ei);i.addEventListener(eo,u),i.dispatchEvent(t),t.defaultPrevented||ed(e??document.body,{select:!0}),i.removeEventListener(eo,u),ep.remove(m)},0)}}},[i,c,u,m]);let v=p.useCallback(e=>{if(!r&&!n||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var s;let t,n=e.currentTarget,[o,i]=[eu(t=ec(s=n),s),eu(t.reverse(),s)];o&&i?e.shiftKey||a!==i?e.shiftKey&&a===o&&(e.preventDefault(),r&&ed(i,{select:!0})):(e.preventDefault(),r&&ed(o,{select:!0})):a===n&&e.preventDefault()}},[r,n,m.paused]);return(0,d.jsx)(Z.div,{tabIndex:-1,...o,ref:h,onKeyDown:v})});function ec(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function eu(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function ed(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}el.displayName="FocusScope";var ep=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=ef(r,e)).unshift(e)},remove(e){r=ef(r,e),r[0]?.resume()}});function ef(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}e.s(["FocusScope",0,el],96436);var eh=p.forwardRef((e,t)=>{let{container:r,...n}=e,[a,s]=p.useState(!1);F(()=>s(!0),[]);let o=r||a&&globalThis?.document?.body;return o?B.default.createPortal((0,d.jsx)(Z.div,{...n,ref:t}),o):null});eh.displayName="Portal",e.s(["Portal",0,eh],38805);var em=e=>{var t;let r,n,{present:a,children:s}=e,o=function(e){var t,r;let[n,a]=p.useState(),s=p.useRef(null),o=p.useRef(e),i=p.useRef("none"),[l,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>r[e][t]??e,t));return p.useEffect(()=>{let e=ev(s.current);i.current="mounted"===l?e:"none"},[l]),F(()=>{let t=s.current,r=o.current;if(r!==e){let n=i.current,a=ev(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):r&&n!==a?c("ANIMATION_OUT"):c("UNMOUNT"),o.current=e}},[e,c]),F(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let a=ev(s.current).includes(CSS.escape(r.animationName));if(r.target===n&&a&&(c("ANIMATION_END"),!o.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},a=e=>{e.target===n&&(i.current=ev(s.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(e=>{s.current=e?getComputedStyle(e):null,a(e)},[])}}(a),i="function"==typeof s?s({present:o.isPresent}):p.Children.only(s),l=A(o.ref,(t=i,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof s||o.isPresent?p.cloneElement(i,{ref:l}):null};function ev(e){return e?.animationName||"none"}em.displayName="Presence",e.s(["Presence",0,em],69113);var eg=0;function eb(){p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ex()),document.body.insertAdjacentElement("beforeend",e[1]??ex()),eg++,()=>{1===eg&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),eg--}},[])}function ex(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",0,eb],64756);var ey=function(){return(ey=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function ew(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}var ek=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ej="width-before-scroll-bar";function eS(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eN="u">typeof window?p.useLayoutEffect:p.useEffect,eE=new WeakMap,eC=(void 0===n&&(n={}),(void 0===a&&(a=function(e){return e}),s=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=a(e,o);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){o=!0;var t=[];if(s.length){var r=s;s=[],r.forEach(e),t=s}var n=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(n)};a(),s={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),s}}}}).options=ey({async:!0,ssr:!1},n),i),eR=function(){},e_=p.forwardRef(function(e,t){var r,n,a,s,o=p.useRef(null),i=p.useState({onScrollCapture:eR,onWheelCapture:eR,onTouchMoveCapture:eR}),l=i[0],c=i[1],u=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,b=e.noRelative,x=e.noIsolation,y=e.inert,w=e.allowPinchZoom,k=e.as,j=e.gapMode,S=ew(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(r=[o,t],n=function(e){return r.forEach(function(t){return eS(t,e)})},(a=(0,p.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,s=a.facade,eN(function(){var e=eE.get(s);if(e){var t=new Set(e),n=new Set(r),a=s.current;t.forEach(function(e){n.has(e)||eS(e,null)}),n.forEach(function(e){t.has(e)||eS(e,a)})}eE.set(s,r)},[r]),s),E=ey(ey({},S),l);return p.createElement(p.Fragment,null,m&&p.createElement(g,{sideCar:eC,removeScrollBar:h,shards:v,noRelative:b,noIsolation:x,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:o,gapMode:j}),u?p.cloneElement(p.Children.only(d),ey(ey({},E),{ref:N})):p.createElement(void 0===k?"div":k,ey({},E,{className:f,ref:N}),d))});e_.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e_.classNames={fullWidth:ej,zeroRight:ek};var eO=function(e){var t=e.sideCar,r=ew(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return p.createElement(n,ey({},r))};eO.isSideCarExport=!0;var eM=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var n,a;(n=t).styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ez=function(){var e=eM();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},eI=function(){var e=ez();return function(t){return e(t.styles,t.dynamic),null}},eT={left:0,top:0,right:0,gap:0},eA=function(e){return parseInt(e||"",10)||0},eD=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[eA(r),eA(n),eA(a)]},eP=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return eT;var t=eD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eF=eI(),eL="data-scroll-locked",e$=function(e,t,r,n){var a=e.left,s=e.top,o=e.right,i=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(i,"px ").concat(n,";\n }\n body[").concat(eL,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ek," {\n right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(ej," {\n margin-right: ").concat(i,"px ").concat(n,";\n }\n \n .").concat(ek," .").concat(ek," {\n right: 0 ").concat(n,";\n }\n \n .").concat(ej," .").concat(ej," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(eL,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},eq=function(){var e=parseInt(document.body.getAttribute(eL)||"0",10);return isFinite(e)?e:0},eW=function(){p.useEffect(function(){return document.body.setAttribute(eL,(eq()+1).toString()),function(){var e=eq()-1;e<=0?document.body.removeAttribute(eL):document.body.setAttribute(eL,e.toString())}},[])},eQ=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;eW();var s=p.useMemo(function(){return eP(a)},[a]);return p.createElement(eF,{styles:e$(s,!t,a,r?"":"!important")})},eB=!1;if("u">typeof window)try{var eK=Object.defineProperty({},"passive",{get:function(){return eB=!0,!0}});window.addEventListener("test",eK,eK),window.removeEventListener("test",eK,eK)}catch(e){eB=!1}var eU=!!eB&&{passive:!1},eH=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eV=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),eG(e,n)){var a=eX(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},eG=function(e,t){return"v"===e?eH(t,"overflowY"):eH(t,"overflowX")},eX=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eZ=function(e,t,r,n,a){var s,o=(s=window.getComputedStyle(t).direction,"h"===e&&"rtl"===s?-1:1),i=o*n,l=r.target,c=t.contains(l),u=!1,d=i>0,p=0,f=0;do{if(!l)break;var h=eX(e,l),m=h[0],v=h[1]-h[2]-o*m;(m||v)&&eG(e,l)&&(p+=v,f+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(a&&1>Math.abs(p)||!a&&i>p)?u=!0:!d&&(a&&1>Math.abs(f)||!a&&-i>f)&&(u=!0),u},eJ=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eY=function(e){return[e.deltaX,e.deltaY]},e0=function(e){return e&&"current"in e?e.current:e},e1=0,e2=[];let e4=(l=function(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),a=p.useState(e1++)[0],s=p.useState(eI)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,s=t.length;a<s;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(e0),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,s=eJ(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-s[0],c="deltaY"in e?e.deltaY:i[1]-s[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var h=eV(d,u);if(!h)return!0;if(h?a=d:(a="v"===d?"h":"v",h=eV(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=a),!a)return!0;var m=n.current||a;return eZ(m,t,e,"h"===m?l:c,!0)},[]),l=p.useCallback(function(e){if(e2.length&&e2[e2.length-1]===s){var r="deltaY"in e?eY(e):eJ(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(o.current.shards||[]).map(e0).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?i(e,a[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,r,n,a){var s={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(s),setTimeout(function(){t.current=t.current.filter(function(e){return e!==s})},1)},[]),u=p.useCallback(function(e){r.current=eJ(e),n.current=void 0},[]),d=p.useCallback(function(t){c(t.type,eY(t),t.target,i(t,e.lockRef.current))},[]),f=p.useCallback(function(t){c(t.type,eJ(t),t.target,i(t,e.lockRef.current))},[]);p.useEffect(function(){return e2.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,eU),document.addEventListener("touchmove",l,eU),document.addEventListener("touchstart",u,eU),function(){e2=e2.filter(function(e){return e!==s}),document.removeEventListener("wheel",l,eU),document.removeEventListener("touchmove",l,eU),document.removeEventListener("touchstart",u,eU)}},[]);var h=e.removeScrollBar,m=e.inert;return p.createElement(p.Fragment,null,m?p.createElement(s,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,h?p.createElement(eQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},eC.useMedium(l),eO);var e5=p.forwardRef(function(e,t){return p.createElement(e_,ey({},e,{ref:t,sideCar:e4}))});e5.classNames=e_.classNames,e.s(["RemoveScroll",0,e5],61624);var e3=new WeakMap,e6=new WeakMap,e9={},e7=0,e8=function(e){return e&&(e.host||e8(e.parentNode))},te=function(e,t,r,n){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=e8(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});e9[r]||(e9[r]=new WeakMap);var s=e9[r],o=[],i=new Set,l=new Set(a),c=function(e){!e||i.has(e)||(i.add(e),c(e.parentNode))};a.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))u(e);else try{var t=e.getAttribute(n),a=null!==t&&"false"!==t,l=(e3.get(e)||0)+1,c=(s.get(e)||0)+1;e3.set(e,l),s.set(e,c),o.push(e),1===l&&a&&e6.set(e,!0),1===c&&e.setAttribute(r,"true"),a||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),i.clear(),e7++,function(){o.forEach(function(e){var t=e3.get(e)-1,a=s.get(e)-1;e3.set(e,t),s.set(e,a),t||(e6.has(e)||e.removeAttribute(n),e6.delete(e)),a||e.removeAttribute(r)}),--e7||(e3=new WeakMap,e3=new WeakMap,e6=new WeakMap,e9={})}},tt=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),te(n,a,r,"aria-hidden")):function(){return null}};e.s(["hideOthers",0,tt],19776);var tr="Dialog",[tn,ta]=P(tr),[ts,to]=tn(tr),ti=e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:s,modal:o=!0}=e,i=p.useRef(null),l=p.useRef(null),[c,u]=Q({prop:n,defaultProp:a??!1,onChange:s,caller:tr});return(0,d.jsx)(ts,{scope:t,triggerRef:i,contentRef:l,contentId:q(),titleId:q(),descriptionId:q(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),modal:o,children:r})};ti.displayName=tr;var tl="DialogTrigger",tc=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=to(tl,r),s=A(t,a.triggerRef);return(0,d.jsx)(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":t_(a.open),...n,ref:s,onClick:z(e.onClick,a.onOpenToggle)})});tc.displayName=tl;var tu="DialogPortal",[td,tp]=tn(tu,{forceMount:void 0}),tf=e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,s=to(tu,t);return(0,d.jsx)(td,{scope:t,forceMount:r,children:p.Children.map(n,e=>(0,d.jsx)(em,{present:r||s.open,children:(0,d.jsx)(eh,{asChild:!0,container:a,children:e})}))})};tf.displayName=tu;var th="DialogOverlay",tm=p.forwardRef((e,t)=>{let r=tp(th,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=to(th,e.__scopeDialog);return s.modal?(0,d.jsx)(em,{present:n||s.open,children:(0,d.jsx)(tg,{...a,ref:t})}):null});tm.displayName=th;var tv=K("DialogOverlay.RemoveScroll"),tg=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=to(th,r);return(0,d.jsx)(e5,{as:tv,allowPinchZoom:!0,shards:[a.contentRef],children:(0,d.jsx)(Z.div,{"data-state":t_(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),tb="DialogContent",tx=p.forwardRef((e,t)=>{let r=tp(tb,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=to(tb,e.__scopeDialog);return(0,d.jsx)(em,{present:n||s.open,children:s.modal?(0,d.jsx)(ty,{...a,ref:t}):(0,d.jsx)(tw,{...a,ref:t})})});tx.displayName=tb;var ty=p.forwardRef((e,t)=>{let r=to(tb,e.__scopeDialog),n=p.useRef(null),a=A(t,r.contentRef,n);return p.useEffect(()=>{let e=n.current;if(e)return tt(e)},[]),(0,d.jsx)(tk,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:z(e.onFocusOutside,e=>e.preventDefault())})}),tw=p.forwardRef((e,t)=>{let r=to(tb,e.__scopeDialog),n=p.useRef(!1),a=p.useRef(!1);return(0,d.jsx)(tk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let s=t.target;r.triggerRef.current?.contains(s)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),tk=p.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,...o}=e,i=to(tb,r),l=p.useRef(null),c=A(t,l);return eb(),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(el,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,d.jsx)(er,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":t_(i.open),...o,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(tI,{titleId:i.titleId}),(0,d.jsx)(tT,{contentRef:l,descriptionId:i.descriptionId})]})]})}),tj="DialogTitle",tS=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=to(tj,r);return(0,d.jsx)(Z.h2,{id:a.titleId,...n,ref:t})});tS.displayName=tj;var tN="DialogDescription",tE=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=to(tN,r);return(0,d.jsx)(Z.p,{id:a.descriptionId,...n,ref:t})});tE.displayName=tN;var tC="DialogClose",tR=p.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,a=to(tC,r);return(0,d.jsx)(Z.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>a.onOpenChange(!1))})});function t_(e){return e?"open":"closed"}tR.displayName=tC;var tO="DialogTitleWarning",[tM,tz]=D(tO,{contentName:tb,titleName:tj,docsSlug:"dialog"}),tI=({titleId:e})=>{let t=tz(tO),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
2
 
3
3
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
4
 
5
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tT=({contentRef:e,descriptionId:t})=>{let r=tz("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};e.s(["Close",0,tR,"Content",0,tx,"Description",0,tN,"Dialog",0,ti,"DialogClose",0,tR,"DialogContent",0,tx,"DialogDescription",0,tN,"DialogOverlay",0,tm,"DialogPortal",0,tf,"DialogTitle",0,tS,"DialogTrigger",0,tc,"Overlay",0,tm,"Portal",0,tf,"Root",0,ti,"Title",0,tS,"Trigger",0,tc,"WarningProvider",0,tM,"createDialogScope",0,ta],79432);var tA=Symbol.for("react.lazy"),tD=p[" use ".trim().toString()];function tP(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tA&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var tF=Symbol("radix.slottable");function tL(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tF}var t$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let a,o,s,i=(n=r=`Primitive.${t}`,(a=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(tP(r)&&"function"==typeof tD&&(r=tD(r._payload)),p.isValidElement(r)){var a;let e,o,s=(a=r,(o=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(o=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),i=function(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...o}:"className"===n&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(i.ref=t?T(t,s):s),p.cloneElement(r,i)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName=`${n}.SlotClone`,o=a,(s=p.forwardRef((e,t)=>{let{children:r,...n}=e;tP(r)&&"function"==typeof tD&&(r=tD(r._payload));let a=p.Children.toArray(r),s=a.find(tL);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,d.jsx)(o,{...n,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,d.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,s),l=p.forwardRef((e,r)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(n?i:t,{...a,ref:r})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),tq='[cmdk-group=""]',tW='[cmdk-group-items=""]',tQ='[cmdk-item=""]',tB=`${tQ}:not([aria-disabled="true"])`,tK="cmdk-item-select",tU="data-value",tH=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,o,s,i){if(s===r.length)return o===t.length?1:.99;var l=`${o},${s}`;if(void 0!==i[l])return i[l];for(var c,u,d,p,f=a.charAt(s),h=n.indexOf(f,o),m=0;h>=0;)(c=e(t,r,n,a,h+1,s+1,i))>m&&(h===o?c*=1:C.test(t.charAt(h-1))?(c*=.8,(d=t.slice(o,h-1).match(R))&&o>0&&(c*=Math.pow(.999,d.length))):_.test(t.charAt(h-1))?(c*=.9,(p=t.slice(o,h-1).match(O))&&o>0&&(c*=Math.pow(.999,p.length))):(c*=.17,o>0&&(c*=Math.pow(.999,h-o))),t.charAt(h)!==r.charAt(s)&&(c*=.9999)),(c<.1&&n.charAt(h-1)===a.charAt(s+1)||a.charAt(s+1)===a.charAt(s)&&n.charAt(h-1)!==a.charAt(s))&&.1*(u=e(t,r,n,a,h+1,s+2,i))>c&&(c=.1*u),c>m&&(m=c),h=n.indexOf(f,h+1);return i[l]=m,m}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,M(n),M(t),0,0,{})},tV=p.createContext(void 0),tG=p.createContext(void 0),tX=p.createContext(void 0),tZ=p.forwardRef((e,t)=>{let r=t6(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=t6(()=>new Set),a=t6(()=>new Map),o=t6(()=>new Map),s=t6(()=>new Set),i=t3(e),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:h,loop:m,disablePointerSelection:v=!1,vimBindings:g=!0,...b}=e,x=q(),y=q(),w=q(),k=p.useRef(null),j=re();t9(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,S.emit()}},[u]),t9(()=>{j(6,O)},[]);let S=p.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,o,s,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)_(),C(),j(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(a=document.getElementById(x))||a.focus()}if(j(7,()=>{var e;r.current.selectedItemId=null==(e=M())?void 0:e.id,S.emit()}),n||j(5,O),(null==(o=i.current)?void 0:o.value)!==void 0){null==(l=(s=i.current).onValueChange)||l.call(s,null!=t?t:"");return}}S.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),E=p.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,N(t,n)),j(2,()=>{C(),S.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),j(3,()=>{_(),C(),r.current.value||R(),S.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=M();j(4,()=>{_(),(null==t?void 0:t.getAttribute("id"))===e&&R(),S.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:w,labelId:y,listInnerRef:k}),[]);function N(e,t){var n,a;let o=null!=(a=null==(n=i.current)?void 0:n.filter)?a:tH;return e?o(e,r.current.search,t):0}function C(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),o=0;n.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([r,o])});let n=k.current;z().sort((t,r)=>{var n,a;let o=t.getAttribute("id"),s=r.getAttribute("id");return(null!=(n=e.get(s))?n:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(tW);t?t.appendChild(e.parentElement===t?e:e.closest(`${tW} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${tW} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=k.current)?void 0:t.querySelector(`${tq}[${tU}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function R(){let e=z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tU);S.setState("value",t||void 0)}function _(){var e,t,s,l;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let a of n.current){let n=N(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(l=null==(s=o.current.get(a))?void 0:s.keywords)?l:[]);r.current.filtered.items.set(a,n),n>0&&c++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function O(){var e,t,r;let n=M();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(tq))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=k.current)?void 0:e.querySelector(`${tQ}[aria-selected="true"]`)}function z(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(tB))||[])}function I(e){let t=z()[e];t&&S.setState("value",t.getAttribute(tU))}function T(e){var t;let r=M(),n=z(),a=n.findIndex(e=>e===r),o=n[a+e];null!=(t=i.current)&&t.loop&&(o=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),o&&S.setState("value",o.getAttribute(tU))}function A(e){let t=M(),r=null==t?void 0:t.closest(tq),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,tq):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,tq))?void 0:r.querySelector(tB);n?S.setState("value",n.getAttribute(tU)):T(e)}let D=()=>I(z().length-1),P=e=>{e.preventDefault(),e.metaKey?D():e.altKey?A(1):T(1)},F=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?A(-1):T(-1)};return p.createElement(t$.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":g&&e.ctrlKey&&P(e);break;case"ArrowDown":P(e);break;case"p":case"k":g&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),D();break;case"Enter":{e.preventDefault();let t=M();if(t){let e=new Event(tK);t.dispatchEvent(e)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:rr},l),rt(e,e=>p.createElement(tG.Provider,{value:S},p.createElement(tV.Provider,{value:E},e))))}),tJ=p.forwardRef((e,t)=>{var r,n;let a=q(),o=p.useRef(null),s=p.useContext(tX),i=p.useContext(tV),l=t3(e),c=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==s?void 0:s.forceMount;t9(()=>{if(!c)return i.item(a,null==s?void 0:s.id)},[c]);let u=t8(a,o,[e.value,e.children,o],e.keywords),d=p.useContext(tG),f=t7(e=>e.value&&e.value===u.current),h=t7(e=>!!c||!1===i.filter()||!e.search||e.filtered.items.get(a)>0);function m(){var e,t;v(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function v(){d.setState("value",u.current,!0)}if(p.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(tK,m),()=>t.removeEventListener(tK,m)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:g,value:b,onSelect:x,forceMount:y,keywords:w,...k}=e;return p.createElement(t$.div,{ref:T(o,t),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||i.getDisablePointerSelection()?void 0:v,onClick:g?void 0:m},e.children)}),tY=p.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...o}=e,s=q(),i=p.useRef(null),l=p.useRef(null),c=q(),u=p.useContext(tV),d=t7(e=>!!a||!1===u.filter()||!e.search||e.filtered.groups.has(s));t9(()=>u.group(s),[]),t8(s,i,[e.value,e.heading,l]);let f=p.useMemo(()=>({id:s,forceMount:a}),[a]);return p.createElement(t$.div,{ref:T(i,t),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&p.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),rt(e,e=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},p.createElement(tX.Provider,{value:f},e))))}),t0=p.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=p.useRef(null),o=t7(e=>!e.search);return r||o?p.createElement(t$.div,{ref:T(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),t1=p.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,o=p.useContext(tG),s=t7(e=>e.search),i=t7(e=>e.selectedItemId),l=p.useContext(tV);return p.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),p.createElement(t$.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),t2=p.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,o=p.useRef(null),s=p.useRef(null),i=t7(e=>e.selectedItemId),l=p.useContext(tV);return p.useEffect(()=>{if(s.current&&o.current){let e=s.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),p.createElement(t$.div,{ref:T(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:l.listId},rt(e,e=>p.createElement("div",{ref:T(s,l.listInnerRef),"cmdk-list-sizer":""},e)))}),t4=p.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:o,container:s,...i}=e;return p.createElement(ti,{open:r,onOpenChange:n},p.createElement(tf,{container:s},p.createElement(tm,{"cmdk-overlay":"",className:a}),p.createElement(tx,{"aria-label":e.label,"cmdk-dialog":"",className:o},p.createElement(tZ,{ref:t,...i}))))}),t5=Object.assign(tZ,{List:t2,Item:tJ,Input:t1,Group:tY,Separator:t0,Dialog:t4,Empty:p.forwardRef((e,t)=>t7(e=>0===e.filtered.count)?p.createElement(t$.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:p.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...o}=e;return p.createElement(t$.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},rt(e,e=>p.createElement("div",{"aria-hidden":!0},e)))})});function t3(e){let t=p.useRef(e);return t9(()=>{t.current=e}),t}var t9="u"<typeof window?p.useEffect:p.useLayoutEffect;function t6(e){let t=p.useRef();return void 0===t.current&&(t.current=e()),t}function t7(e){let t=p.useContext(tG),r=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,r,r)}function t8(e,t,r,n=[]){let a=p.useRef(),o=p.useContext(tV);return t9(()=>{var s;let i=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=n.map(e=>e.trim());o.value(e,i,l),null==(s=t.current)||s.setAttribute(tU,i),a.current=i}),a}var re=()=>{let[e,t]=p.useState(),r=t6(()=>new Map);return t9(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function rt({asChild:e,children:t},r){let n;return e&&p.isValidElement(t)?p.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var rr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let rn=(0,S.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,rn],91356);var ra=e.i(47899);let ro=(0,S.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var rs=e.i(79432),rs=rs,ri=e.i(72415);let rl=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rc=ri.clsx,ru=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return rc(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:o}=t,s=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let s=rl(t)||rl(n);return a[e][s]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return rc(e,s,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...i}[t]):({...o,...i})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,ru],9148);var rd=e.i(39202),rd=rd;let rp=ru("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function rf({className:e,variant:t="default",size:r="default",asChild:n=!1,...a}){let o=n?rd.Root:"button";return(0,d.jsx)(o,{"data-slot":"button","data-variant":t,"data-size":r,className:(0,ra.cn)(rp({variant:t,size:r,className:e})),...a})}function rh({...e}){return(0,d.jsx)(rs.Root,{"data-slot":"dialog",...e})}function rm({...e}){return(0,d.jsx)(rs.Portal,{"data-slot":"dialog-portal",...e})}function rv({className:e,...t}){return(0,d.jsx)(rs.Overlay,{"data-slot":"dialog-overlay",className:(0,ra.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function rg({className:e,children:t,showCloseButton:r=!0,...n}){return(0,d.jsxs)(rm,{"data-slot":"dialog-portal",children:[(0,d.jsx)(rv,{}),(0,d.jsxs)(rs.Content,{"data-slot":"dialog-content",className:(0,ra.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...n,children:[t,r&&(0,d.jsxs)(rs.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,d.jsx)(ro,{}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rb({className:e,...t}){return(0,d.jsx)(t5,{"data-slot":"command",className:(0,ra.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function rx({className:e,...t}){return(0,d.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,d.jsx)(rn,{className:"size-4 shrink-0 opacity-50"}),(0,d.jsx)(t5.Input,{"data-slot":"command-input",className:(0,ra.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function ry({className:e,...t}){return(0,d.jsx)(t5.List,{"data-slot":"command-list",className:(0,ra.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function rw({...e}){return(0,d.jsx)(t5.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function rk({className:e,...t}){return(0,d.jsx)(t5.Group,{"data-slot":"command-group",className:(0,ra.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function rj({className:e,...t}){return(0,d.jsx)(t5.Separator,{"data-slot":"command-separator",className:(0,ra.cn)("-mx-1 h-px bg-border",e),...t})}function rS({className:e,...t}){return(0,d.jsx)(t5.Item,{"data-slot":"command-item",className:(0,ra.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}e.s(["Button",0,rf],74499),e.s(["Dialog",0,rh,"DialogContent",0,rg,"DialogDescription",0,function({className:e,...t}){return(0,d.jsx)(rs.Description,{"data-slot":"dialog-description",className:(0,ra.cn)("text-sm text-muted-foreground",e),...t})},"DialogFooter",0,function({className:e,showCloseButton:t=!1,children:r,...n}){return(0,d.jsxs)("div",{"data-slot":"dialog-footer",className:(0,ra.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n,children:[r,t&&(0,d.jsx)(rs.Close,{asChild:!0,children:(0,d.jsx)(rf,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...t}){return(0,d.jsx)("div",{"data-slot":"dialog-header",className:(0,ra.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})},"DialogTitle",0,function({className:e,...t}){return(0,d.jsx)(rs.Title,{"data-slot":"dialog-title",className:(0,ra.cn)("text-lg leading-none font-semibold",e),...t})}],53104);var rE=e.i(36668),rN=e.i(72940),rC=e.i(50079),rR=e.i(74403),r_=e.i(29679),rO=e.i(82900),rM=e.i(82751),rz=e.i(27904),rI=class extends r_.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,rO.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#a=void 0;#o=void 0;#s;#i;#r;#t;#l;#c;#u;#d;#p;#f;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),rT(this.#n,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rA(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rA(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#b(),this.#n.removeObserver(this)}setOptions(e){let t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,rM.resolveEnabled)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#n.setOptions(this.options),t._defaulted&&!(0,rM.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let n=this.hasListeners();n&&rD(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),n&&(this.#n!==r||(0,rM.resolveEnabled)(this.options.enabled,this.#n)!==(0,rM.resolveEnabled)(t.enabled,this.#n)||(0,rM.resolveStaleTime)(this.options.staleTime,this.#n)!==(0,rM.resolveStaleTime)(t.staleTime,this.#n))&&this.#y();let a=this.#w();n&&(this.#n!==r||(0,rM.resolveEnabled)(this.options.enabled,this.#n)!==(0,rM.resolveEnabled)(t.enabled,this.#n)||a!==this.#f)&&this.#k(a)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return t=this,r=a,(0,rM.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#o=a,this.#i=this.options,this.#s=this.#n.state),a}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#m(e){this.#x();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(rM.noop)),t}#y(){this.#g();let e=(0,rM.resolveStaleTime)(this.options.staleTime,this.#n);if(rM.isServer||this.#o.isStale||!(0,rM.isValidTimeout)(e))return;let t=(0,rM.timeUntilStale)(this.#o.dataUpdatedAt,e);this.#d=rz.timeoutManager.setTimeout(()=>{this.#o.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#k(e){this.#b(),this.#f=e,!rM.isServer&&!1!==(0,rM.resolveEnabled)(this.options.enabled,this.#n)&&(0,rM.isValidTimeout)(this.#f)&&0!==this.#f&&(this.#p=rz.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||rN.focusManager.isFocused())&&this.#m()},this.#f))}#v(){this.#y(),this.#k(this.#w())}#g(){this.#d&&(rz.timeoutManager.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#p&&(rz.timeoutManager.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){let r,n=this.#n,a=this.options,o=this.#o,s=this.#s,i=this.#i,l=e!==n?e.state:this.#a,{state:c}=e,u={...c},d=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&rT(e,t),s=r&&rD(e,n,t,a);(o||s)&&(u={...u,...(0,rR.fetchState)(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:h}=u;r=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===h){let e;o?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(h="success",r=(0,rM.replaceData)(o?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!m)if(o&&r===s?.data&&t.select===this.#l)r=this.#c;else try{this.#l=t.select,r=t.select(r),r=(0,rM.replaceData)(o?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(p=this.#t,r=this.#c,f=Date.now(),h="error");let v="fetching"===u.fetchStatus,g="pending"===h,b="error"===h,x=g&&v,y=void 0!==r,w={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:b,isInitialLoading:x,isLoading:x,data:r,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:b&&!y,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&y,isStale:rP(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,rM.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==w.data,r="error"===w.status&&!t,a=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},o=()=>{a(this.#r=w.promise=(0,rO.pendingThenable)())},s=this.#r;switch(s.status){case"pending":e.queryHash===n.queryHash&&a(s);break;case"fulfilled":(r||w.data!==s.value)&&o();break;case"rejected":r&&w.error===s.reason||o()}}return w}updateResult(){let e=this.#o,t=this.createResult(this.#n,this.options);if(this.#s=this.#n.state,this.#i=this.options,void 0!==this.#s.data&&(this.#u=this.#n),(0,rM.shallowEqualObjects)(t,e))return;this.#o=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#h.size)return!0;let n=new Set(r??this.#h);return this.options.throwOnError&&n.add("error"),Object.keys(this.#o).some(t=>this.#o[t]!==e[t]&&n.has(t))};this.#j({listeners:r()})}#x(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#j(e){rC.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#o)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function rT(e,t){return!1!==(0,rM.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&rA(e,t,t.refetchOnMount)}function rA(e,t,r){if(!1!==(0,rM.resolveEnabled)(t.enabled,e)&&"static"!==(0,rM.resolveStaleTime)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&rP(e,t)}return!1}function rD(e,t,r,n){return(e!==t||!1===(0,rM.resolveEnabled)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&rP(e,r)}function rP(e,t){return!1!==(0,rM.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,rM.resolveStaleTime)(t.staleTime,e))}e.i(10661);var rF=e.i(78821),rL=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),r$=p.createContext(!1);r$.Provider;var rq=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function rW(e,t){return function(e,t,r){let n,a=p.useContext(r$),o=p.useContext(rL),s=(0,rF.useQueryClient)(r),i=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(i);let l=s.getQueryCache().get(i.queryHash);if(i._optimisticResults=a?"isRestoring":"optimistic",i.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=i.staleTime;i.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof i.gcTime&&(i.gcTime=Math.max(i.gcTime,1e3))}n=l?.state.error&&"function"==typeof i.throwOnError?(0,rM.shouldThrowError)(i.throwOnError,[l.state.error,l]):i.throwOnError,(i.suspense||i.experimental_prefetchInRender||n)&&!o.isReset()&&(i.retryOnMount=!1),p.useEffect(()=>{o.clearReset()},[o]);let c=!s.getQueryCache().get(i.queryHash),[u]=p.useState(()=>new t(s,i)),d=u.getOptimisticResult(i),f=!a&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=f?u.subscribe(rC.notifyManager.batchCalls(e)):rM.noop;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.useEffect(()=>{u.setOptions(i)},[i,u]),i?.suspense&&d.isPending)throw rq(i,u,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&void 0===e.data||(0,rM.shouldThrowError)(r,[e.error,n])))({result:d,errorResetBoundary:o,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw d.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!rM.isServer&&d.isLoading&&d.isFetching&&!a){let e=c?rq(i,u,o):l?.promise;e?.catch(rM.noop).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?d:u.trackResult(d)}(e,rI,t)}var rQ=e.i(97478),rB=e.i(93716),rK=e.i(76590),rU=r_,rH=class extends rU.Subscribable{#e;#o=void 0;#S;#E;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#N()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,rM.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#S,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,rM.hashKey)(t.mutationKey)!==(0,rM.hashKey)(this.options.mutationKey)?this.reset():this.#S?.state.status==="pending"&&this.#S.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#S?.removeObserver(this)}onMutationUpdate(e){this.#N(),this.#j(e)}getCurrentResult(){return this.#o}reset(){this.#S?.removeObserver(this),this.#S=void 0,this.#N(),this.#j()}mutate(e,t){return this.#E=t,this.#S?.removeObserver(this),this.#S=this.#e.getMutationCache().build(this.#e,this.options),this.#S.addObserver(this),this.#S.execute(e)}#N(){let e=this.#S?.state??(0,rK.getDefaultState)();this.#o={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#j(e){rC.notifyManager.batch(()=>{if(this.#E&&this.hasListeners()){let t=this.#o.variables,r=this.#o.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#E.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#E.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#o)})})}};function rV(e,t){let r=(0,rF.useQueryClient)(t),[n]=p.useState(()=>new rH(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);let a=p.useSyncExternalStore(p.useCallback(e=>n.subscribe(rC.notifyManager.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=p.useCallback((e,t)=>{n.mutate(e,t).catch(rM.noop)},[n]);if(a.error&&(0,rM.shouldThrowError)(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function rG(){return rW({queryKey:rQ.queryKeys.sessions.all,queryFn:()=>rB.api.getSessions()})}e.s(["useBulkDeleteSessions",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.bulkDeleteSessions(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useDeleteSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.deleteSession(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useDuplicateSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.duplicateSession(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useSessions",0,rG,"useUpdateSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:({id:e,data:t})=>rB.api.updateSession(e,t),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all}),onError:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})}],3025);let rX="jinn-command-recent";function rZ(){try{let e=localStorage.getItem(rX);return e?JSON.parse(e):[]}catch{return[]}}let rJ=[{id:"page-home",label:"Dashboard",icon:h.Home,href:"/"},{id:"page-chat",label:"Chat",icon:m.MessageSquare,href:"/chat"},{id:"page-org",label:"Organization",icon:v.Users,href:"/org"},{id:"page-kanban",label:"Kanban",icon:g.LayoutGrid,href:"/kanban"},{id:"page-cron",label:"Cron",icon:b.Clock,href:"/cron"},{id:"page-costs",label:"Costs",icon:x.DollarSign,href:"/costs"},{id:"page-logs",label:"Activity",icon:y.Activity,href:"/logs"},{id:"page-skills",label:"Skills",icon:w.Zap,href:"/skills"},{id:"page-settings",label:"Settings",icon:k.Settings,href:"/settings"},{id:"page-goals",label:"Goals",icon:E,href:"/goals"}];e.s(["GlobalSearch",0,function(){let{settings:e}=(0,rE.useSettings)(),t=e.portalName??"Ryoko",[r,n]=(0,p.useState)(!1),[a,o]=(0,p.useState)([]),s=(0,f.useRouter)(),{data:i}=rW({queryKey:rQ.queryKeys.org.all,queryFn:()=>rB.api.getOrg()}),{data:l}=rW({queryKey:rQ.queryKeys.cron.all,queryFn:()=>rB.api.getCronJobs()}),{data:c}=rG(),{data:u}=rW({queryKey:rQ.queryKeys.skills.all,queryFn:()=>rB.api.getSkills()});(0,p.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),n(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,p.useEffect)(()=>{r&&o(rZ())},[r]);let h=(0,p.useCallback)((e,t)=>{let r;(r=rZ().filter(e=>e.id!==t.id)).unshift(t),localStorage.setItem(rX,JSON.stringify(r.slice(0,5))),n(!1),s.push(e)},[s]),g=Array.isArray(i?.employees)?i.employees.map(e=>e.name):[],x=Array.isArray(l)?l:[],y=Array.isArray(c)?c.slice(0,10):[],k=Array.isArray(u)?u.slice(0,10):[];return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(rh,{open:r,onOpenChange:n,children:(0,d.jsx)(rg,{className:"p-0 gap-0 max-w-[560px]",children:(0,d.jsxs)(rb,{className:"rounded-lg",children:[(0,d.jsx)(rx,{placeholder:`Search ${t}...`}),(0,d.jsxs)(ry,{children:[(0,d.jsx)(rw,{children:"No results found."}),a.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(rk,{heading:"Recent",children:a.map(e=>(0,d.jsxs)(rS,{onSelect:()=>h(e.href,e),children:[(0,d.jsx)(N,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,d.jsx)(rj,{})]}),(0,d.jsx)(rk,{heading:"Pages",children:rJ.map(e=>(0,d.jsxs)(rS,{onSelect:()=>h(e.href,{id:e.id,label:e.label,href:e.href,type:"page"}),children:[(0,d.jsx)(e.icon,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,d.jsx)(rk,{heading:"Actions",children:(0,d.jsxs)(rS,{onSelect:()=>{n(!1),s.push("/chat")},children:[(0,d.jsx)(j.Plus,{size:16,className:"mr-2 opacity-50"}),"New Chat"]})}),g.length>0&&(0,d.jsx)(rk,{heading:"Employees",children:g.slice(0,8).map(e=>(0,d.jsxs)(rS,{onSelect:()=>h("/org",{id:`emp-${e}`,label:e,href:"/org",type:"employee"}),children:[(0,d.jsx)(v.Users,{size:16,className:"mr-2 opacity-50"}),e]},e))}),y.length>0&&(0,d.jsx)(rk,{heading:"Recent Sessions",children:y.map(e=>{let t=String(e.id??""),r=String(e.title??e.id??"").slice(0,50);return(0,d.jsxs)(rS,{onSelect:()=>h("/chat",{id:`session-${t}`,label:r,href:"/chat",type:"session"}),children:[(0,d.jsx)(m.MessageSquare,{size:16,className:"mr-2 opacity-50"}),r]},t)})}),x.length>0&&(0,d.jsx)(rk,{heading:"Cron Jobs",children:x.slice(0,6).map(e=>{let t=String(e.id??""),r=String(e.name??t);return(0,d.jsxs)(rS,{onSelect:()=>h("/cron",{id:`cron-${t}`,label:r,href:"/cron",type:"cron"}),children:[(0,d.jsx)(b.Clock,{size:16,className:"mr-2 opacity-50"}),r]},t)})}),k.length>0&&(0,d.jsx)(rk,{heading:"Skills",children:k.map(e=>{let t=String(e.name??"");return(0,d.jsxs)(rS,{onSelect:()=>h("/skills",{id:`skill-${t}`,label:t,href:"/skills",type:"skill"}),children:[(0,d.jsx)(w.Zap,{size:16,className:"mr-2 opacity-50"}),t]},t)})})]})]})})})})}],12239);let rY=(0,S.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,rY],33941);let r0=(0,S.default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);e.s(["X",0,ro],41864);var r1=e.i(32984);let r2={info:"var(--system-green)",warn:"var(--system-orange)",error:"var(--system-red)",debug:"var(--text-tertiary)"},r4={info:"rgba(48,209,88,0.12)",warn:"rgba(255,159,10,0.12)",error:"rgba(255,69,58,0.12)",debug:"var(--fill-secondary)"},r5=[{key:"all",label:"All"},{key:"info",label:"Info"},{key:"warn",label:"Warn"},{key:"error",label:"Errors"}];function r3(e,t){let r=e.match(/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s*(.*)$/);return r?{id:`log-${t}`,timestamp:r[1],level:r[2].toLowerCase(),message:r[3]}:{id:`log-${t}`,timestamp:"",level:"info",message:e}}e.s(["LogBrowser",0,function({lines:e}){let[t,r]=(0,p.useState)("all"),[n,a]=(0,p.useState)(""),[o,s]=(0,p.useState)(null),i=e.map(r3),l=i.filter(e=>("all"===t||e.level===t)&&(!n||!!e.message.toLowerCase().includes(n.toLowerCase()))),c={all:i.length,info:i.filter(e=>"info"===e.level).length,warn:i.filter(e=>"warn"===e.level).length,error:i.filter(e=>"error"===e.level).length};return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center flex-wrap gap-[var(--space-2)] mb-[var(--space-3)]",children:[r5.map(e=>{let n=t===e.key;return(0,d.jsxs)("button",{onClick:()=>r(e.key),className:"focus-ring flex items-center flex-shrink-0 rounded-[20px] py-[6px] px-[14px] text-[length:var(--text-footnote)] font-[var(--weight-medium)] border-none cursor-pointer gap-[var(--space-2)] transition-all duration-200 ease-[var(--ease-smooth)]",style:{...n?{background:"var(--accent-fill)",color:"var(--accent)",boxShadow:"0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)"}:{background:"var(--fill-secondary)",color:"var(--text-primary)"}},children:[(0,d.jsx)("span",{children:e.label}),(0,d.jsx)("span",{className:"font-[var(--weight-semibold)]",style:{color:n?"var(--accent)":"var(--text-secondary)"},children:c[e.key]})]},e.key)}),(0,d.jsx)("input",{type:"text",placeholder:"Search logs...",value:n,onChange:e=>a(e.target.value),className:"focus-ring ml-auto py-[6px] px-3 text-[length:var(--text-footnote)] rounded-[var(--radius-sm)] border border-[var(--separator)] bg-[var(--fill-secondary)] text-[var(--text-primary)] outline-none min-w-40 max-w-60"})]}),0===l.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-[200px] text-[var(--text-secondary)] gap-[var(--space-2)]",children:[(0,d.jsx)("span",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-medium)]",children:0===i.length?"No log entries found":"No entries match this filter"}),(0,d.jsx)("span",{className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)]",children:0===i.length?"Log entries will appear here when available":"Try adjusting your filter or search"})]}):(0,d.jsx)("div",{className:"rounded-[var(--radius-md)] overflow-hidden bg-[var(--material-regular)]",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:l.map((e,t)=>{let r=o===e.id,n=r2[e.level]??"var(--text-tertiary)",a=e.message.length>120;return(0,d.jsxs)("div",{children:[t>0&&(0,d.jsx)("div",{className:"h-px bg-[var(--separator)] mx-[var(--space-4)]"}),(0,d.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":a?r:void 0,onClick:()=>a&&s(r?null:e.id),onKeyDown:t=>{a&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),s(r?null:e.id))},className:"flex items-center hover-bg focus-ring min-h-11 px-[var(--space-4)]",style:{cursor:a?"pointer":"default",background:"error"===e.level?"rgba(255,69,58,0.06)":void 0},children:[(0,d.jsx)("span",{className:"flex-shrink-0 rounded-full w-2 h-2",style:{background:n}}),e.timestamp&&(0,d.jsx)("span",{className:"flex-shrink-0 font-mono text-[length:var(--text-caption1)] text-[var(--text-tertiary)] ml-[var(--space-3)] min-w-[130px]",children:e.timestamp}),(0,d.jsx)("span",{className:"flex-shrink-0 text-[length:var(--text-caption2)] font-[var(--weight-semibold)] py-px px-1.5 rounded ml-[var(--space-2)] tracking-[0.04em] uppercase",style:{background:r4[e.level]??"var(--fill-secondary)",color:n},children:e.level}),(0,d.jsx)("span",{className:"truncate text-[length:var(--text-footnote)] text-[var(--text-primary)] ml-[var(--space-3)] flex-1 min-w-0",children:a&&!r?e.message.slice(0,117)+"...":e.message}),a&&(0,d.jsx)("span",{"aria-hidden":"true",className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)] inline-block ml-[var(--space-2)] transition-transform duration-200 ease-[var(--ease-smooth)]",style:{transform:r?"rotate(90deg)":"rotate(0deg)"},children:"›"})]}),r&&a&&(0,d.jsx)("div",{className:"animate-slide-down px-[var(--space-4)] pb-[var(--space-4)]",children:(0,d.jsx)("div",{className:"rounded-[var(--radius-sm)] bg-[var(--fill-secondary)] p-[var(--space-3)] mt-[var(--space-2)]",children:(0,d.jsx)("pre",{className:"font-mono text-[length:var(--text-caption2)] text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0 max-h-[300px] overflow-auto leading-[var(--leading-relaxed)]",children:e.message})})})]},e.id)})})]})},"parseLogLine",0,r3],83536);let r9="open-live-stream",r6={info:{bg:"rgba(48,209,88,0.12)",color:"var(--system-green)",label:"INF"},warn:{bg:"rgba(255,159,10,0.12)",color:"var(--system-orange)",label:"WRN"},error:{bg:"rgba(255,69,58,0.12)",color:"var(--system-red)",label:"ERR"},debug:{bg:"var(--fill-secondary)",color:"var(--text-tertiary)",label:"DBG"}};function r7(e){return`[${e.timestamp}] [${e.level.toUpperCase()}] ${e.message}`}function r8({entry:e}){let[t,r]=(0,p.useState)(!1),n=r6[e.level]??r6.debug,a=e.message.length>100;return(0,d.jsxs)("div",{className:`border-b border-[var(--separator)] ${"error"===e.level?"bg-[rgba(255,69,58,0.03)]":""}`,children:[(0,d.jsxs)("button",{onClick:()=>a&&r(e=>!e),className:`flex items-center w-full px-3 py-[5px] gap-2 border-none bg-transparent text-left ${a?"cursor-pointer":"cursor-default"}`,children:[a?(0,d.jsx)("span",{className:`text-[10px] text-[var(--text-tertiary)] shrink-0 inline-block transition-transform duration-150 ${t?"rotate-90":"rotate-0"}`,children:"›"}):(0,d.jsx)("span",{className:"w-[10px] shrink-0"}),(0,d.jsx)("span",{className:"font-mono text-[var(--text-tertiary)] text-[10px] shrink-0 min-w-[58px]",children:function(e){if(!e)return"";let t=e.split(" ");return t.length>1?t[1]:e}(e.timestamp)}),(0,d.jsx)("span",{className:"text-[9px] font-bold tracking-wide px-[5px] py-px rounded-[3px] shrink-0 leading-[14px]",style:{background:n.bg,color:n.color},children:n.label}),(0,d.jsx)("span",{className:`font-mono text-[10px] leading-snug overflow-hidden text-ellipsis whitespace-nowrap flex-1 min-w-0 ${"error"===e.level?"text-[var(--system-red)]":"text-[var(--text-secondary)]"}`,children:e.message})]}),t&&a&&(0,d.jsx)("div",{className:"px-3 pt-1.5 pb-2 pl-[30px] border-t border-[var(--separator)] bg-[var(--fill-secondary)]",children:(0,d.jsx)("pre",{className:"font-mono text-[9px] leading-normal text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0",children:e.message})})]})}e.s(["LiveStreamWidget",0,function(){let[e,t]=(0,p.useState)("hidden"),[r,n]=(0,p.useState)([]),[a,o]=(0,p.useState)(!0),[s,i]=(0,p.useState)(!1),[l,c]=(0,p.useState)(null),u=(0,p.useRef)(null),f=(0,p.useRef)(0),{events:h}=(0,r1.useGateway)();(0,p.useEffect)(()=>{a&&u.current&&(u.current.scrollTop=u.current.scrollHeight)},[r,a]);let m=(0,p.useCallback)(()=>{if(!u.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:r}=u.current;t-e-r<40?o(!0):o(!1)},[]);(0,p.useEffect)(()=>{"expanded"===e&&rB.api.getLogs(50).then(e=>{n((e.lines??[]).map(r3)),c(null)}).catch(e=>{c(e instanceof Error?e.message:"Failed to load logs")})},[e]),(0,p.useEffect)(()=>{if("hidden"===e||0===h.length)return;let t=h[h.length-1];if("log"===t.event&&"object"==typeof t.payload&&null!==t.payload){let e=t.payload,r=r3(e.line||e.message||JSON.stringify(t.payload),f.current++);n(e=>[...e,r].slice(-500))}},[h,e]);let v=(0,p.useCallback)(()=>{t("hidden")},[]),g=(0,p.useCallback)(async()=>{let e=r.map(r7).join("\n");await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),1500)},[r]);return((0,p.useEffect)(()=>{function e(){t("expanded")}return window.addEventListener(r9,e),()=>window.removeEventListener(r9,e)},[]),"hidden"===e)?null:"collapsed"===e?(0,d.jsxs)("button",{onClick:()=>t("expanded"),className:"focus-ring flex items-center fixed bottom-5 right-5 z-50 px-3.5 py-2 rounded-[var(--radius-pill)] border border-[var(--separator)] bg-[var(--material-regular)] cursor-pointer gap-2 backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_4px_24px_rgba(0,0,0,0.25)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,d.jsx)("span",{className:"text-[length:var(--text-caption1)] text-[var(--text-secondary)] font-[var(--weight-medium)]",children:"Live Stream"}),r.length>0&&(0,d.jsx)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)] bg-[var(--fill-secondary)] px-1.5 py-px rounded-[var(--radius-sm)]",children:r.length}),(0,d.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}):(0,d.jsxs)("div",{className:"panel-slide-in fixed bottom-5 right-5 z-50 w-[440px] h-[400px] rounded-[var(--radius-lg)] border border-[var(--separator)] bg-[var(--material-regular)] flex flex-col overflow-hidden backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_8px_40px_rgba(0,0,0,0.35)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,d.jsxs)("div",{className:"flex items-center shrink-0 px-3.5 py-2.5 border-b border-[var(--separator)] gap-2",children:[(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,d.jsx)("span",{className:"text-[length:var(--text-footnote)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:"Live Stream"}),r.length>0&&(0,d.jsxs)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)]",children:[r.length," line",1!==r.length?"s":""]}),(0,d.jsxs)("div",{className:"ml-auto flex gap-1",children:[(0,d.jsx)("button",{onClick:g,title:"Copy all logs",disabled:0===r.length,className:`focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none transition-all duration-150 ${s?"bg-[var(--accent-fill)] text-[var(--accent)]":"bg-transparent text-[var(--text-tertiary)]"} ${0===r.length?"cursor-default opacity-30":"cursor-pointer opacity-100"}`,children:(0,d.jsx)(rY,{size:14})}),(0,d.jsx)("button",{onClick:()=>t("collapsed"),className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Minimize",children:(0,d.jsx)(r0,{size:14})}),(0,d.jsx)("button",{onClick:v,className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Close",children:(0,d.jsx)(ro,{size:14})})]})]}),l&&(0,d.jsx)("div",{className:"px-3.5 py-1.5 bg-[rgba(255,69,58,0.06)] border-b border-[rgba(255,69,58,0.15)] text-[length:var(--text-caption2)] text-[var(--system-red)] shrink-0",children:l}),(0,d.jsx)("div",{ref:u,onScroll:m,className:"flex-1 min-h-0 overflow-y-auto overflow-x-hidden",children:0===r.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-[var(--text-secondary)] gap-[var(--space-2)] p-[var(--space-4)]",children:[(0,d.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:(0,d.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,d.jsx)("span",{className:"text-[length:var(--text-caption1)] font-[var(--weight-medium)]",children:"Waiting for log data..."})]}):(0,d.jsx)("div",{children:r.map(e=>(0,d.jsx)(r8,{entry:e},e.id))})}),(0,d.jsx)("div",{className:"flex items-center shrink-0 px-3.5 py-2 border-t border-[var(--separator)] gap-2",children:!a&&r.length>0&&(0,d.jsx)("button",{onClick:()=>o(!0),className:"focus-ring px-2.5 py-1 rounded-[var(--radius-sm)] border-none cursor-pointer text-[length:var(--text-caption2)] font-[var(--weight-medium)] bg-[var(--fill-secondary)] text-[var(--text-secondary)]",children:"Scroll to bottom"})}),(0,d.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]})}],44251);let ne=(0,S.default)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["Columns3",0,ne],82343)},40765,77110,e=>{"use strict";let t=(0,e.i(90922).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t],77110),e.s(["Check",0,t],40765)},60282,34528,98810,69591,97302,53146,e=>{"use strict";var t=e.i(98181),r=e.i(25007),n=e.i(98676),a=e.i(10587),o=e.i(58801),s=e.i(82343),i=e.i(97058),l=e.i(15433),c=e.i(21430),u=e.i(40765),d=e.i(90922);let p=(0,d.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),f=(0,d.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),h=(0,d.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var m=e.i(36668),v=e.i(13765),g=e.i(65390),b=e.i(93716);let x=[{label:"Red",value:"#EF4444"},{label:"Orange",value:"#F97316"},{label:"Amber",value:"#F59E0B"},{label:"Yellow",value:"#EAB308"},{label:"Lime",value:"#84CC16"},{label:"Green",value:"#22C55E"},{label:"Emerald",value:"#10B981"},{label:"Cyan",value:"#06B6D4"},{label:"Blue",value:"#3B82F6"},{label:"Indigo",value:"#6366F1"},{label:"Violet",value:"#8B5CF6"},{label:"Pink",value:"#EC4899"}],y=[{icon:a.MessageSquare,name:"チャット",desc:"従業員との直接対話"},{icon:o.Users,name:"組織",desc:"AIチームの組織図をビジュアル表示"},{icon:s.Columns3,name:"カンバン",desc:"タスクボードで作業を管理"},{icon:i.Clock,name:"スケジュール",desc:"cronジョブとステータス監視"},{icon:l.DollarSign,name:"コスト",desc:"トークン使用量とコストの追跡"},{icon:c.Activity,name:"アクティビティ",desc:"リアルタイムログ・イベントストリーム"}];e.s(["OnboardingWizard",0,function({forceOpen:e,onClose:a}){let{settings:o,setPortalName:s,setOperatorName:i,setAccentColor:l,setLanguage:c}=(0,m.useSettings)(),{theme:d,setTheme:w}=(0,v.useTheme)(),k=(0,n.useRouter)(),[j,S]=(0,r.useState)(!1),[E,N]=(0,r.useState)(0),[C,R]=(0,r.useState)("forward"),[_,O]=(0,r.useState)(""),[M,z]=(0,r.useState)(""),[I,T]=(0,r.useState)(o.language??"Japanese");(0,r.useEffect)(()=>{if(e){O(o.portalName??""),z(o.operatorName??""),S(!0);return}localStorage.getItem("jinn-onboarded")||b.api.getOnboarding().then(e=>{e.onboarded?localStorage.setItem("jinn-onboarded","true"):e.needed&&S(!0)}).catch(()=>{localStorage.getItem("jinn-onboarded")||S(!0)})},[e]);let A=(0,r.useCallback)(()=>{0===E&&(s(_||null),i(M||null),c(I||"Japanese")),E<3?(R("forward"),N(E+1)):(b.api.completeOnboarding({portalName:_||void 0,operatorName:M||void 0,language:I||void 0}).catch(()=>{}),e||localStorage.setItem("jinn-onboarded","true"),S(!1),a?.(),k.push("/chat"))},[E,_,M,e,a,s,i,k]),D=(0,r.useCallback)(()=>{E>0&&(R("back"),N(E-1))},[E]);return j?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",style:{backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,t.jsxs)("div",{className:"animate-fade-in w-full max-w-[520px] mx-[var(--space-4)] bg-[var(--material-regular)] rounded-[var(--radius-lg)] border border-[var(--separator)] overflow-hidden flex flex-col max-h-[90vh]",style:{boxShadow:"0 24px 48px rgba(0,0,0,0.3)"},children:[(0,t.jsx)("div",{className:"flex justify-center gap-2 pt-[var(--space-4)] px-[var(--space-4)]",children:Array.from({length:4}).map((e,r)=>(0,t.jsx)("div",{className:"h-2 rounded-full transition-all duration-200",style:{width:r===E?24:8,background:r===E||r<E?"var(--accent)":"var(--fill-tertiary)",opacity:r<E?.5:1}},r))}),(0,t.jsxs)("div",{className:"px-[var(--space-5)] pt-[var(--space-5)] pb-[var(--space-4)] overflow-y-auto flex-1",children:[0===E&&(0,t.jsxs)("div",{className:"animate-fade-in text-center",children:[(0,t.jsx)("div",{className:"text-[56px] mb-[var(--space-3)] leading-none",children:"🤖"}),(0,t.jsxs)("h2",{className:"text-[length:var(--text-large-title)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-2)]",children:[_||"Ryoko"," へようこそ"]}),(0,t.jsx)("p",{className:"text-[length:var(--text-body)] text-[var(--text-secondary)] leading-[var(--leading-relaxed)] max-w-[400px] mx-auto mb-[var(--space-5)]",children:"あなたのAIチーム管理ポータル。さっそくセットアップしましょう。"}),(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--space-3)] text-left",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"ポータル名"}),(0,t.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"Ryoko",value:_,onChange:e=>O(e.target.value),autoFocus:!0})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"あなたの呼び名は?"}),(0,t.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"お名前",value:M,onChange:e=>z(e.target.value)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"使用言語"}),(0,t.jsxs)("select",{value:I,onChange:e=>T(e.target.value),className:"w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)] cursor-pointer",children:[(0,t.jsx)("option",{value:"English",children:"English"}),(0,t.jsx)("option",{value:"Spanish",children:"Spanish"}),(0,t.jsx)("option",{value:"French",children:"French"}),(0,t.jsx)("option",{value:"German",children:"German"}),(0,t.jsx)("option",{value:"Portuguese",children:"Portuguese"}),(0,t.jsx)("option",{value:"Italian",children:"Italian"}),(0,t.jsx)("option",{value:"Dutch",children:"Dutch"}),(0,t.jsx)("option",{value:"Russian",children:"Russian"}),(0,t.jsx)("option",{value:"Chinese",children:"Chinese"}),(0,t.jsx)("option",{value:"Japanese",children:"Japanese"}),(0,t.jsx)("option",{value:"Korean",children:"Korean"}),(0,t.jsx)("option",{value:"Arabic",children:"Arabic"}),(0,t.jsx)("option",{value:"Hindi",children:"Hindi"}),(0,t.jsx)("option",{value:"Bulgarian",children:"Bulgarian"})]})]})]})]},"step-0"),1===E&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"テーマを選択"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"お好みの見た目を選んでください。即座に反映されます。"}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(130px,1fr))] gap-[var(--space-3)]",children:g.THEMES.map(e=>{let r=d===e.id;return(0,t.jsxs)("button",{onClick:()=>w(e.id),className:"flex flex-col items-center gap-[var(--space-2)] px-[var(--space-3)] py-[var(--space-4)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] cursor-pointer transition-all duration-150",style:{border:r?"2px solid var(--accent)":"2px solid var(--separator)"},children:[(0,t.jsx)("span",{className:"text-[28px]",children:e.emoji}),(0,t.jsx)("span",{className:"text-[length:var(--text-footnote)]",style:{fontWeight:r?"var(--weight-semibold)":"var(--weight-medium)",color:r?"var(--accent)":"var(--text-secondary)"},children:e.label})]},e.id)})})]},"step-1"),2===E&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"アクセントカラーを選択"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"お好きな色でパーソナライズしてください。"}),(0,t.jsx)("div",{className:"grid grid-cols-6 gap-[var(--space-3)] justify-items-center",children:x.map(e=>{let r=o.accentColor===e.value;return(0,t.jsx)("button",{onClick:()=>l(e.value),"aria-label":e.label,title:e.label,className:"w-10 h-10 rounded-full border-none cursor-pointer flex items-center justify-center transition-all duration-100",style:{background:e.value,outline:r?`3px solid ${e.value}`:"none",outlineOffset:3},children:r&&(0,t.jsx)(u.Check,{size:18,color:"#fff",strokeWidth:3})},e.value)})})]},"step-2"),3===E&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"セットアップ完了!"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"利用できる機能の一覧です。"}),(0,t.jsx)("div",{className:"flex flex-col gap-[var(--space-2)]",children:y.map(e=>{let r=e.icon;return(0,t.jsxs)("div",{className:"flex items-center gap-[var(--space-3)] p-[var(--space-3)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] border border-[var(--separator)]",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[var(--accent-fill)] flex items-center justify-center shrink-0",children:(0,t.jsx)(r,{size:18,className:"text-[var(--accent)]"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:e.name}),(0,t.jsx)("div",{className:"text-[length:var(--text-caption1)] text-[var(--text-tertiary)]",children:e.desc})]})]},e.name)})})]},"step-3")]}),(0,t.jsxs)("div",{className:"flex justify-between items-center px-[var(--space-5)] pb-[var(--space-5)] pt-[var(--space-3)] gap-[var(--space-3)]",children:[E>0?(0,t.jsxs)("button",{onClick:D,className:"px-[var(--space-4)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--fill-tertiary)] text-[var(--text-secondary)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-medium)] transition-all duration-150 inline-flex items-center gap-1.5",children:[(0,t.jsx)(p,{size:16}),"戻る"]}):(0,t.jsx)("div",{}),(0,t.jsxs)("button",{onClick:A,className:"px-[var(--space-6)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--accent)] text-[var(--accent-contrast)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] transition-all duration-150 inline-flex items-center gap-1.5",children:[0===E?"次へ":3===E?"はじめる":"次へ",3===E?(0,t.jsx)(h,{size:16}):(0,t.jsx)(f,{size:16})]})]})]})}):null}],60282);let w=(0,d.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,w],34528);let k=(0,d.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,k],98810);let j=(0,d.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,j],69591);let S=(0,d.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,S],97302);let E=(0,d.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,E],53146)},38524,e=>{"use strict";let t=(0,e.i(90922).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],38524)},58843,15587,98385,e=>{"use strict";var t=e.i(98181),r=e.i(23097),n=e.i(25007),a=e.i(94583),o=e.i(98676),s=e.i(36668),i=e.i(135),l=e.i(12239),c=e.i(44251),u=e.i(60282),d=e.i(34528),p=e.i(98810),f=e.i(69591),h=e.i(97302),m=e.i(53146),v=e.i(40765),g=e.i(38524),b=e.i(92105),x=e.i(74499),y=e.i(47899);let w={success:p.CheckCircle,error:f.XCircle,warning:h.AlertTriangle,info:m.Info},k={success:"text-[var(--system-green)]",error:"text-[var(--system-red)]",warning:"text-[var(--system-orange)]",info:"text-[var(--system-blue)]"};function j(){let{notifications:e,unreadCount:r,markAllRead:a,markRead:o,clearAll:s}=(0,b.useNotifications)(),[i,l]=(0,n.useState)(!1),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){c.current&&!c.current.contains(e.target)&&l(!1)}},[i]),(0,t.jsxs)("div",{ref:c,className:"relative",children:[(0,t.jsxs)(x.Button,{onClick:()=>l(e=>!e),"aria-label":`Notifications${r>0?` (${r} unread)`:""}`,variant:"ghost",size:"icon-sm",className:"relative text-muted-foreground",children:[(0,t.jsx)(d.Bell,{size:18}),r>0&&(0,t.jsx)("span",{className:"absolute right-0.5 top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-[var(--system-red)] px-1 text-[10px] font-bold leading-none text-white",children:r>99?"99+":r})]}),i&&(0,t.jsxs)("div",{className:"animate-scale-up absolute right-0 top-[calc(100%+8px)] z-[200] flex max-h-[480px] w-[360px] max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-[var(--radius-lg)] border border-border bg-[var(--material-thick)] shadow-[var(--shadow-overlay)] backdrop-blur-[40px]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-3",children:[(0,t.jsx)("span",{className:"text-[15px] font-semibold text-foreground",children:"Notifications"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[r>0&&(0,t.jsxs)("button",{onClick:a,title:"Mark all as read",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-[var(--system-blue)] transition-colors hover:bg-accent",children:[(0,t.jsx)(v.Check,{size:14}),"Read all"]}),e.length>0&&(0,t.jsx)("button",{onClick:()=>{s(),l(!1)},title:"Clear all",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(g.Trash2,{size:14})})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===e.length?(0,t.jsx)("div",{className:"px-4 py-8 text-center text-[13px] text-muted-foreground",children:"No notifications yet"}):e.map(e=>{var r;let n,a=w[e.type];return(0,t.jsxs)("div",{onClick:()=>o(e.id),className:(0,y.cn)("flex cursor-pointer items-start gap-2.5 border-b border-border px-4 py-2.5 transition-colors hover:bg-accent",e.read?"bg-transparent":"bg-[var(--material-ultra-thin)]"),children:[(0,t.jsx)(a,{size:16,className:(0,y.cn)("mt-0.5 shrink-0",k[e.type])}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:(0,y.cn)("text-[13px] leading-[1.3] text-foreground",e.read?"font-normal":"font-semibold"),children:e.title}),(0,t.jsx)("div",{className:"mt-0.5 truncate text-xs leading-[1.3] text-[var(--text-secondary)]",children:e.message})]}),(0,t.jsx)("span",{className:"mt-0.5 shrink-0 whitespace-nowrap text-[11px] text-[var(--text-quaternary)]",children:(r=e.timestamp,(n=Math.floor((Date.now()-r)/1e3))<60?"just now":n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`)}),!e.read&&(0,t.jsx)("span",{className:"mt-[5px] size-2 shrink-0 rounded-full bg-[var(--system-blue)]"})]},e.id)})})]})]})}e.s(["NotificationBell",0,j],15587);var S=e.i(41864);let E={success:p.CheckCircle,error:f.XCircle,warning:h.AlertTriangle,info:m.Info},N={success:"var(--system-green)",error:"var(--system-red)",warning:"var(--system-orange)",info:"var(--system-blue)"};function C(){let{toasts:e,dismissToast:r}=(0,b.useNotifications)();return 0===e.length?null:(0,t.jsx)("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 max-w-[380px] w-full pointer-events-none",children:e.map(e=>{let n=E[e.type],a=N[e.type];return(0,t.jsxs)("div",{className:"animate-slide-down pointer-events-auto flex items-start gap-2.5 px-3.5 py-3 bg-[var(--material-thick)] backdrop-blur-[40px] backdrop-saturate-[1.8] border border-[var(--separator)] rounded-[var(--radius-md)] shadow-[var(--shadow-overlay)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,t.jsx)(n,{size:18,className:"shrink-0 mt-px",style:{color:a}}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-[13px] font-semibold text-[var(--text-primary)] leading-[1.3]",children:e.title}),(0,t.jsx)("div",{className:"text-xs text-[var(--text-secondary)] mt-0.5 leading-[1.3] overflow-hidden text-ellipsis whitespace-nowrap",children:e.message}),(0,t.jsx)("div",{className:"text-[11px] text-[var(--text-quaternary)] mt-1",children:new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,t.jsx)("button",{onClick:()=>r(e.id),"aria-label":"Dismiss",className:"bg-transparent border-none cursor-pointer text-[var(--text-tertiary)] p-0.5 shrink-0",children:(0,t.jsx)(S.X,{size:14})})]},e.id)})})}var R=e.i(90922);let _=(0,R.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,_],98385);var O=e.i(11322);function M(){let{items:e}=(0,O.useBreadcrumbs)();return 0===e.length?null:1===e.length?(0,t.jsx)("h1",{className:"text-lg font-semibold text-[var(--text-primary)] tracking-tight",children:e[0].label}):(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-sm","aria-label":"Breadcrumb",children:e.map((r,n)=>{let o=n===e.length-1;return(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[n>0&&(0,t.jsx)(_,{size:14,className:"text-[var(--text-quaternary)]"}),o||!r.href?(0,t.jsx)("span",{className:o?"text-[var(--text-primary)] font-medium":"text-[var(--text-tertiary)]",children:r.label}):(0,t.jsx)(a.default,{href:r.href,className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)] transition-colors",children:r.label})]},n)})})}let z=(0,R.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var I=e.i(93574);function T({actions:e}){let[i,l]=(0,n.useState)(!1),c=(0,o.usePathname)(),{settings:u}=(0,s.useSettings)(),d=u.portalEmoji??"🧞",p=u.portalName??"Ryoko";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 relative z-60 flex h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-3 lg:hidden",children:[(0,t.jsx)("button",{onClick:()=>l(!0),"aria-label":"Open menu",className:"jsx-906cbf20b7aa1777 inline-flex size-9 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent",children:(0,t.jsx)(z,{size:20})}),(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 items-center justify-center text-center",children:[(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 mr-1.5 text-lg",children:d}),(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-sm font-semibold text-foreground",children:p})]}),(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-1",children:[e,(0,t.jsx)(j,{})]})]}),i&&(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 fixed inset-0 z-[120] lg:hidden",children:[(0,t.jsx)("div",{onClick:()=>l(!1),className:"jsx-906cbf20b7aa1777 absolute inset-0 bg-black/50 backdrop-blur-[1px]"}),(0,t.jsxs)("nav",{className:"jsx-906cbf20b7aa1777 absolute inset-y-0 left-0 flex w-[260px] animate-slide-in flex-col border-r border-border bg-[var(--bg-secondary)]",children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center justify-between border-b border-border px-3.5 py-3",children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-[22px]",children:d}),(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-base font-semibold text-foreground",children:p})]}),(0,t.jsx)("button",{onClick:()=>l(!1),"aria-label":"Close menu",className:"jsx-906cbf20b7aa1777 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(S.X,{size:18})})]}),(0,t.jsx)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 flex-col gap-1 p-2",children:I.NAV_ITEMS.map(e=>{let r="/"===e.href?"/"===c:c.startsWith(e.href),n=e.icon;return(0,t.jsxs)(a.default,{href:e.href,onClick:()=>l(!1),className:(0,y.cn)("flex h-11 items-center gap-3 rounded-[10px] px-3.5 text-[15px] transition-colors",r?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,t.jsx)(n,{size:18,className:"jsx-906cbf20b7aa1777 shrink-0"}),e.label]},e.href)})})]})]}),(0,t.jsx)(r.default,{id:"906cbf20b7aa1777",children:"@keyframes slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}"})]})}function A(){let{items:e}=(0,O.useBreadcrumbs)();return 0===e.length?null:(0,t.jsx)("div",{className:"hidden h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-5 lg:flex",children:(0,t.jsx)(M,{})})}e.s(["PageLayout",0,function({children:e,mobileHeaderActions:r}){return(0,t.jsxs)("div",{className:"flex h-dvh overflow-hidden bg-background",children:[(0,t.jsx)(i.Sidebar,{}),(0,t.jsx)(l.GlobalSearch,{}),(0,t.jsxs)("main",{className:"flex-1 overflow-hidden flex flex-col lg:ml-[56px]",children:[(0,t.jsx)(T,{actions:r}),(0,t.jsx)(A,{}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:e})]}),(0,t.jsx)(C,{}),(0,t.jsx)(c.LiveStreamWidget,{}),(0,t.jsx)(u.OnboardingWizard,{})]})},"ToolbarActions",0,function({children:e}){return(0,t.jsxs)("div",{className:"hidden items-center gap-2 lg:flex",children:[e,(0,t.jsx)(j,{})]})}],58843)}]);
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},tT=({contentRef:e,descriptionId:t})=>{let r=tz("DialogDescriptionWarning"),n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return p.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null};e.s(["Close",0,tR,"Content",0,tx,"Description",0,tE,"Dialog",0,ti,"DialogClose",0,tR,"DialogContent",0,tx,"DialogDescription",0,tE,"DialogOverlay",0,tm,"DialogPortal",0,tf,"DialogTitle",0,tS,"DialogTrigger",0,tc,"Overlay",0,tm,"Portal",0,tf,"Root",0,ti,"Title",0,tS,"Trigger",0,tc,"WarningProvider",0,tM,"createDialogScope",0,ta],79432);var tA=Symbol.for("react.lazy"),tD=p[" use ".trim().toString()];function tP(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===tA&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var tF=Symbol("radix.slottable");function tL(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tF}var t$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let a,s,o,i=(n=r=`Primitive.${t}`,(a=p.forwardRef((e,t)=>{let{children:r,...n}=e;if(tP(r)&&"function"==typeof tD&&(r=tD(r._payload)),p.isValidElement(r)){var a;let e,s,o=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),i=function(e,t){let r={...t};for(let n in t){let a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...e)=>{let t=s(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...s}:"className"===n&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==p.Fragment&&(i.ref=t?T(t,o):o),p.cloneElement(r,i)}return p.Children.count(r)>1?p.Children.only(null):null})).displayName=`${n}.SlotClone`,s=a,(o=p.forwardRef((e,t)=>{let{children:r,...n}=e;tP(r)&&"function"==typeof tD&&(r=tD(r._payload));let a=p.Children.toArray(r),o=a.find(tL);if(o){let e=o.props.children,r=a.map(t=>t!==o?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,d.jsx)(s,{...n,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,d.jsx)(s,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,o),l=p.forwardRef((e,r)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,d.jsx)(n?i:t,{...a,ref:r})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),tq='[cmdk-group=""]',tW='[cmdk-group-items=""]',tQ='[cmdk-item=""]',tB=`${tQ}:not([aria-disabled="true"])`,tK="cmdk-item-select",tU="data-value",tH=(e,t,r)=>{var n;return n=e,function e(t,r,n,a,s,o,i){if(o===r.length)return s===t.length?1:.99;var l=`${s},${o}`;if(void 0!==i[l])return i[l];for(var c,u,d,p,f=a.charAt(o),h=n.indexOf(f,s),m=0;h>=0;)(c=e(t,r,n,a,h+1,o+1,i))>m&&(h===s?c*=1:C.test(t.charAt(h-1))?(c*=.8,(d=t.slice(s,h-1).match(R))&&s>0&&(c*=Math.pow(.999,d.length))):_.test(t.charAt(h-1))?(c*=.9,(p=t.slice(s,h-1).match(O))&&s>0&&(c*=Math.pow(.999,p.length))):(c*=.17,s>0&&(c*=Math.pow(.999,h-s))),t.charAt(h)!==r.charAt(o)&&(c*=.9999)),(c<.1&&n.charAt(h-1)===a.charAt(o+1)||a.charAt(o+1)===a.charAt(o)&&n.charAt(h-1)!==a.charAt(o))&&.1*(u=e(t,r,n,a,h+1,o+2,i))>c&&(c=.1*u),c>m&&(m=c),h=n.indexOf(f,h+1);return i[l]=m,m}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,M(n),M(t),0,0,{})},tV=p.createContext(void 0),tG=p.createContext(void 0),tX=p.createContext(void 0),tZ=p.forwardRef((e,t)=>{let r=t9(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=t9(()=>new Set),a=t9(()=>new Map),s=t9(()=>new Map),o=t9(()=>new Set),i=t3(e),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:h,loop:m,disablePointerSelection:v=!1,vimBindings:g=!0,...b}=e,x=q(),y=q(),w=q(),k=p.useRef(null),j=re();t6(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,S.emit()}},[u]),t6(()=>{j(6,O)},[]);let S=p.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var a,s,o,l;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)_(),C(),j(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(a=document.getElementById(x))||a.focus()}if(j(7,()=>{var e;r.current.selectedItemId=null==(e=M())?void 0:e.id,S.emit()}),n||j(5,O),(null==(s=i.current)?void 0:s.value)!==void 0){null==(l=(o=i.current).onValueChange)||l.call(o,null!=t?t:"");return}}S.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),N=p.useMemo(()=>({value:(e,t,n)=>{var a;t!==(null==(a=s.current.get(e))?void 0:a.value)&&(s.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,E(t,n)),j(2,()=>{C(),S.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),j(3,()=>{_(),C(),r.current.value||R(),S.emit()}),()=>{s.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=M();j(4,()=>{_(),(null==t?void 0:t.getAttribute("id"))===e&&R(),S.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{s.current.delete(e),a.current.delete(e)}),filter:()=>i.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:x,inputId:w,labelId:y,listInnerRef:k}),[]);function E(e,t){var n,a;let s=null!=(a=null==(n=i.current)?void 0:n.filter)?a:tH;return e?s(e,r.current.search,t):0}function C(){if(!r.current.search||!1===i.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=a.current.get(r),s=0;n.forEach(t=>{s=Math.max(e.get(t),s)}),t.push([r,s])});let n=k.current;z().sort((t,r)=>{var n,a;let s=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(a=e.get(s))?a:0)}).forEach(e=>{let t=e.closest(tW);t?t.appendChild(e.parentElement===t?e:e.closest(`${tW} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${tW} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=k.current)?void 0:t.querySelector(`${tq}[${tU}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function R(){let e=z().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tU);S.setState("value",t||void 0)}function _(){var e,t,o,l;if(!r.current.search||!1===i.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let a of n.current){let n=E(null!=(t=null==(e=s.current.get(a))?void 0:e.value)?t:"",null!=(l=null==(o=s.current.get(a))?void 0:o.keywords)?l:[]);r.current.filtered.items.set(a,n),n>0&&c++}for(let[e,t]of a.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function O(){var e,t,r;let n=M();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(tq))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=k.current)?void 0:e.querySelector(`${tQ}[aria-selected="true"]`)}function z(){var e;return Array.from((null==(e=k.current)?void 0:e.querySelectorAll(tB))||[])}function I(e){let t=z()[e];t&&S.setState("value",t.getAttribute(tU))}function T(e){var t;let r=M(),n=z(),a=n.findIndex(e=>e===r),s=n[a+e];null!=(t=i.current)&&t.loop&&(s=a+e<0?n[n.length-1]:a+e===n.length?n[0]:n[a+e]),s&&S.setState("value",s.getAttribute(tU))}function A(e){let t=M(),r=null==t?void 0:t.closest(tq),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,tq):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,tq))?void 0:r.querySelector(tB);n?S.setState("value",n.getAttribute(tU)):T(e)}let D=()=>I(z().length-1),P=e=>{e.preventDefault(),e.metaKey?D():e.altKey?A(1):T(1)},F=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?A(-1):T(-1)};return p.createElement(t$.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":g&&e.ctrlKey&&P(e);break;case"ArrowDown":P(e);break;case"p":case"k":g&&e.ctrlKey&&F(e);break;case"ArrowUp":F(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),D();break;case"Enter":{e.preventDefault();let t=M();if(t){let e=new Event(tK);t.dispatchEvent(e)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:rr},l),rt(e,e=>p.createElement(tG.Provider,{value:S},p.createElement(tV.Provider,{value:N},e))))}),tJ=p.forwardRef((e,t)=>{var r,n;let a=q(),s=p.useRef(null),o=p.useContext(tX),i=p.useContext(tV),l=t3(e),c=null!=(n=null==(r=l.current)?void 0:r.forceMount)?n:null==o?void 0:o.forceMount;t6(()=>{if(!c)return i.item(a,null==o?void 0:o.id)},[c]);let u=t8(a,s,[e.value,e.children,s],e.keywords),d=p.useContext(tG),f=t7(e=>e.value&&e.value===u.current),h=t7(e=>!!c||!1===i.filter()||!e.search||e.filtered.items.get(a)>0);function m(){var e,t;v(),null==(t=(e=l.current).onSelect)||t.call(e,u.current)}function v(){d.setState("value",u.current,!0)}if(p.useEffect(()=>{let t=s.current;if(!(!t||e.disabled))return t.addEventListener(tK,m),()=>t.removeEventListener(tK,m)},[h,e.onSelect,e.disabled]),!h)return null;let{disabled:g,value:b,onSelect:x,forceMount:y,keywords:w,...k}=e;return p.createElement(t$.div,{ref:T(s,t),...k,id:a,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||i.getDisablePointerSelection()?void 0:v,onClick:g?void 0:m},e.children)}),tY=p.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:a,...s}=e,o=q(),i=p.useRef(null),l=p.useRef(null),c=q(),u=p.useContext(tV),d=t7(e=>!!a||!1===u.filter()||!e.search||e.filtered.groups.has(o));t6(()=>u.group(o),[]),t8(o,i,[e.value,e.heading,l]);let f=p.useMemo(()=>({id:o,forceMount:a}),[a]);return p.createElement(t$.div,{ref:T(i,t),...s,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&p.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),rt(e,e=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},p.createElement(tX.Provider,{value:f},e))))}),t0=p.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,a=p.useRef(null),s=t7(e=>!e.search);return r||s?p.createElement(t$.div,{ref:T(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),t1=p.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,a=null!=e.value,s=p.useContext(tG),o=t7(e=>e.search),i=t7(e=>e.selectedItemId),l=p.useContext(tV);return p.useEffect(()=>{null!=e.value&&s.setState("search",e.value)},[e.value]),p.createElement(t$.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":i,id:l.inputId,type:"text",value:a?e.value:o,onChange:e=>{a||s.setState("search",e.target.value),null==r||r(e.target.value)}})}),t2=p.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...a}=e,s=p.useRef(null),o=p.useRef(null),i=t7(e=>e.selectedItemId),l=p.useContext(tV);return p.useEffect(()=>{if(o.current&&s.current){let e=o.current,t=s.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),p.createElement(t$.div,{ref:T(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:l.listId},rt(e,e=>p.createElement("div",{ref:T(o,l.listInnerRef),"cmdk-list-sizer":""},e)))}),t4=p.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:a,contentClassName:s,container:o,...i}=e;return p.createElement(ti,{open:r,onOpenChange:n},p.createElement(tf,{container:o},p.createElement(tm,{"cmdk-overlay":"",className:a}),p.createElement(tx,{"aria-label":e.label,"cmdk-dialog":"",className:s},p.createElement(tZ,{ref:t,...i}))))}),t5=Object.assign(tZ,{List:t2,Item:tJ,Input:t1,Group:tY,Separator:t0,Dialog:t4,Empty:p.forwardRef((e,t)=>t7(e=>0===e.filtered.count)?p.createElement(t$.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:p.forwardRef((e,t)=>{let{progress:r,children:n,label:a="Loading...",...s}=e;return p.createElement(t$.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},rt(e,e=>p.createElement("div",{"aria-hidden":!0},e)))})});function t3(e){let t=p.useRef(e);return t6(()=>{t.current=e}),t}var t6="u"<typeof window?p.useEffect:p.useLayoutEffect;function t9(e){let t=p.useRef();return void 0===t.current&&(t.current=e()),t}function t7(e){let t=p.useContext(tG),r=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,r,r)}function t8(e,t,r,n=[]){let a=p.useRef(),s=p.useContext(tV);return t6(()=>{var o;let i=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),l=n.map(e=>e.trim());s.value(e,i,l),null==(o=t.current)||o.setAttribute(tU,i),a.current=i}),a}var re=()=>{let[e,t]=p.useState(),r=t9(()=>new Map);return t6(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function rt({asChild:e,children:t},r){let n;return e&&p.isValidElement(t)?p.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var rr={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let rn=(0,S.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,rn],91356);var ra=e.i(47899);let rs=(0,S.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ro=e.i(79432),ro=ro,ri=e.i(72415);let rl=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rc=ri.clsx,ru=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return rc(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=t,o=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let o=rl(t)||rl(n);return a[e][o]}),i=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return rc(e,o,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...i}[t]):({...s,...i})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)};e.s(["cva",0,ru],9148);var rd=e.i(39202),rd=rd;let rp=ru("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function rf({className:e,variant:t="default",size:r="default",asChild:n=!1,...a}){let s=n?rd.Root:"button";return(0,d.jsx)(s,{"data-slot":"button","data-variant":t,"data-size":r,className:(0,ra.cn)(rp({variant:t,size:r,className:e})),...a})}function rh({...e}){return(0,d.jsx)(ro.Root,{"data-slot":"dialog",...e})}function rm({...e}){return(0,d.jsx)(ro.Portal,{"data-slot":"dialog-portal",...e})}function rv({className:e,...t}){return(0,d.jsx)(ro.Overlay,{"data-slot":"dialog-overlay",className:(0,ra.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function rg({className:e,children:t,showCloseButton:r=!0,...n}){return(0,d.jsxs)(rm,{"data-slot":"dialog-portal",children:[(0,d.jsx)(rv,{}),(0,d.jsxs)(ro.Content,{"data-slot":"dialog-content",className:(0,ra.cn)("fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",e),...n,children:[t,r&&(0,d.jsxs)(ro.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,d.jsx)(rs,{}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rb({className:e,...t}){return(0,d.jsx)(t5,{"data-slot":"command",className:(0,ra.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})}function rx({className:e,...t}){return(0,d.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,d.jsx)(rn,{className:"size-4 shrink-0 opacity-50"}),(0,d.jsx)(t5.Input,{"data-slot":"command-input",className:(0,ra.cn)("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function ry({className:e,...t}){return(0,d.jsx)(t5.List,{"data-slot":"command-list",className:(0,ra.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function rw({...e}){return(0,d.jsx)(t5.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function rk({className:e,...t}){return(0,d.jsx)(t5.Group,{"data-slot":"command-group",className:(0,ra.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})}function rj({className:e,...t}){return(0,d.jsx)(t5.Separator,{"data-slot":"command-separator",className:(0,ra.cn)("-mx-1 h-px bg-border",e),...t})}function rS({className:e,...t}){return(0,d.jsx)(t5.Item,{"data-slot":"command-item",className:(0,ra.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}e.s(["Button",0,rf],74499),e.s(["Dialog",0,rh,"DialogContent",0,rg,"DialogDescription",0,function({className:e,...t}){return(0,d.jsx)(ro.Description,{"data-slot":"dialog-description",className:(0,ra.cn)("text-sm text-muted-foreground",e),...t})},"DialogFooter",0,function({className:e,showCloseButton:t=!1,children:r,...n}){return(0,d.jsxs)("div",{"data-slot":"dialog-footer",className:(0,ra.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...n,children:[r,t&&(0,d.jsx)(ro.Close,{asChild:!0,children:(0,d.jsx)(rf,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...t}){return(0,d.jsx)("div",{"data-slot":"dialog-header",className:(0,ra.cn)("flex flex-col gap-2 text-center sm:text-left",e),...t})},"DialogTitle",0,function({className:e,...t}){return(0,d.jsx)(ro.Title,{"data-slot":"dialog-title",className:(0,ra.cn)("text-lg leading-none font-semibold",e),...t})}],53104);var rN=e.i(36668),rE=e.i(72940),rC=e.i(50079),rR=e.i(74403),r_=e.i(29679),rO=e.i(82900),rM=e.i(82751),rz=e.i(27904),rI=class extends r_.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,rO.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#a=void 0;#s=void 0;#o;#i;#r;#t;#l;#c;#u;#d;#p;#f;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),rT(this.#n,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return rA(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return rA(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#b(),this.#n.removeObserver(this)}setOptions(e){let t=this.options,r=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,rM.resolveEnabled)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#n.setOptions(this.options),t._defaulted&&!(0,rM.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let n=this.hasListeners();n&&rD(this.#n,r,this.options,t)&&this.#m(),this.updateResult(),n&&(this.#n!==r||(0,rM.resolveEnabled)(this.options.enabled,this.#n)!==(0,rM.resolveEnabled)(t.enabled,this.#n)||(0,rM.resolveStaleTime)(this.options.staleTime,this.#n)!==(0,rM.resolveStaleTime)(t.staleTime,this.#n))&&this.#y();let a=this.#w();n&&(this.#n!==r||(0,rM.resolveEnabled)(this.options.enabled,this.#n)!==(0,rM.resolveEnabled)(t.enabled,this.#n)||a!==this.#f)&&this.#k(a)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return t=this,r=a,(0,rM.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#s=a,this.#i=this.options,this.#o=this.#n.state),a}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#m(e){this.#x();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(rM.noop)),t}#y(){this.#g();let e=(0,rM.resolveStaleTime)(this.options.staleTime,this.#n);if(rM.isServer||this.#s.isStale||!(0,rM.isValidTimeout)(e))return;let t=(0,rM.timeUntilStale)(this.#s.dataUpdatedAt,e);this.#d=rz.timeoutManager.setTimeout(()=>{this.#s.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#k(e){this.#b(),this.#f=e,!rM.isServer&&!1!==(0,rM.resolveEnabled)(this.options.enabled,this.#n)&&(0,rM.isValidTimeout)(this.#f)&&0!==this.#f&&(this.#p=rz.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||rE.focusManager.isFocused())&&this.#m()},this.#f))}#v(){this.#y(),this.#k(this.#w())}#g(){this.#d&&(rz.timeoutManager.clearTimeout(this.#d),this.#d=void 0)}#b(){this.#p&&(rz.timeoutManager.clearInterval(this.#p),this.#p=void 0)}createResult(e,t){let r,n=this.#n,a=this.options,s=this.#s,o=this.#o,i=this.#i,l=e!==n?e.state:this.#a,{state:c}=e,u={...c},d=!1;if(t._optimisticResults){let r=this.hasListeners(),s=!r&&rT(e,t),o=r&&rD(e,n,t,a);(s||o)&&(u={...u,...(0,rR.fetchState)(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:h}=u;r=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===h){let e;s?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=s.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,void 0!==e&&(h="success",r=(0,rM.replaceData)(s?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!m)if(s&&r===o?.data&&t.select===this.#l)r=this.#c;else try{this.#l=t.select,r=t.select(r),r=(0,rM.replaceData)(s?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(p=this.#t,r=this.#c,f=Date.now(),h="error");let v="fetching"===u.fetchStatus,g="pending"===h,b="error"===h,x=g&&v,y=void 0!==r,w={status:h,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===h,isError:b,isInitialLoading:x,isLoading:x,data:r,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!g,isLoadingError:b&&!y,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:b&&y,isStale:rP(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,rM.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==w.data,r="error"===w.status&&!t,a=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},s=()=>{a(this.#r=w.promise=(0,rO.pendingThenable)())},o=this.#r;switch(o.status){case"pending":e.queryHash===n.queryHash&&a(o);break;case"fulfilled":(r||w.data!==o.value)&&s();break;case"rejected":r&&w.error===o.reason||s()}}return w}updateResult(){let e=this.#s,t=this.createResult(this.#n,this.options);if(this.#o=this.#n.state,this.#i=this.options,void 0!==this.#o.data&&(this.#u=this.#n),(0,rM.shallowEqualObjects)(t,e))return;this.#s=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#h.size)return!0;let n=new Set(r??this.#h);return this.options.throwOnError&&n.add("error"),Object.keys(this.#s).some(t=>this.#s[t]!==e[t]&&n.has(t))};this.#j({listeners:r()})}#x(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#j(e){rC.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function rT(e,t){return!1!==(0,rM.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&rA(e,t,t.refetchOnMount)}function rA(e,t,r){if(!1!==(0,rM.resolveEnabled)(t.enabled,e)&&"static"!==(0,rM.resolveStaleTime)(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&rP(e,t)}return!1}function rD(e,t,r,n){return(e!==t||!1===(0,rM.resolveEnabled)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&rP(e,r)}function rP(e,t){return!1!==(0,rM.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,rM.resolveStaleTime)(t.staleTime,e))}e.i(10661);var rF=e.i(78821),rL=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),r$=p.createContext(!1);r$.Provider;var rq=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function rW(e,t){return function(e,t,r){let n,a=p.useContext(r$),s=p.useContext(rL),o=(0,rF.useQueryClient)(r),i=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(i);let l=o.getQueryCache().get(i.queryHash);if(i._optimisticResults=a?"isRestoring":"optimistic",i.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=i.staleTime;i.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof i.gcTime&&(i.gcTime=Math.max(i.gcTime,1e3))}n=l?.state.error&&"function"==typeof i.throwOnError?(0,rM.shouldThrowError)(i.throwOnError,[l.state.error,l]):i.throwOnError,(i.suspense||i.experimental_prefetchInRender||n)&&!s.isReset()&&(i.retryOnMount=!1),p.useEffect(()=>{s.clearReset()},[s]);let c=!o.getQueryCache().get(i.queryHash),[u]=p.useState(()=>new t(o,i)),d=u.getOptimisticResult(i),f=!a&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=f?u.subscribe(rC.notifyManager.batchCalls(e)):rM.noop;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),p.useEffect(()=>{u.setOptions(i)},[i,u]),i?.suspense&&d.isPending)throw rq(i,u,s);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&void 0===e.data||(0,rM.shouldThrowError)(r,[e.error,n])))({result:d,errorResetBoundary:s,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw d.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(i,d),i.experimental_prefetchInRender&&!rM.isServer&&d.isLoading&&d.isFetching&&!a){let e=c?rq(i,u,s):l?.promise;e?.catch(rM.noop).finally(()=>{u.updateResult()})}return i.notifyOnChangeProps?d:u.trackResult(d)}(e,rI,t)}var rQ=e.i(97478),rB=e.i(93716),rK=e.i(76590),rU=r_,rH=class extends rU.Subscribable{#e;#s=void 0;#S;#N;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#E()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,rM.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#S,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,rM.hashKey)(t.mutationKey)!==(0,rM.hashKey)(this.options.mutationKey)?this.reset():this.#S?.state.status==="pending"&&this.#S.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#S?.removeObserver(this)}onMutationUpdate(e){this.#E(),this.#j(e)}getCurrentResult(){return this.#s}reset(){this.#S?.removeObserver(this),this.#S=void 0,this.#E(),this.#j()}mutate(e,t){return this.#N=t,this.#S?.removeObserver(this),this.#S=this.#e.getMutationCache().build(this.#e,this.options),this.#S.addObserver(this),this.#S.execute(e)}#E(){let e=this.#S?.state??(0,rK.getDefaultState)();this.#s={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#j(e){rC.notifyManager.batch(()=>{if(this.#N&&this.hasListeners()){let t=this.#s.variables,r=this.#s.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#N.onSuccess?.(e.data,t,r,n)}catch(e){Promise.reject(e)}try{this.#N.onSettled?.(e.data,null,t,r,n)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#N.onError?.(e.error,t,r,n)}catch(e){Promise.reject(e)}try{this.#N.onSettled?.(void 0,e.error,t,r,n)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#s)})})}};function rV(e,t){let r=(0,rF.useQueryClient)(t),[n]=p.useState(()=>new rH(r,e));p.useEffect(()=>{n.setOptions(e)},[n,e]);let a=p.useSyncExternalStore(p.useCallback(e=>n.subscribe(rC.notifyManager.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),s=p.useCallback((e,t)=>{n.mutate(e,t).catch(rM.noop)},[n]);if(a.error&&(0,rM.shouldThrowError)(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function rG(){return rW({queryKey:rQ.queryKeys.sessions.all,queryFn:()=>rB.api.getSessions()})}e.s(["useBulkDeleteSessions",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.bulkDeleteSessions(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useDeleteSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.deleteSession(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useDuplicateSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:e=>rB.api.duplicateSession(e),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})},"useSessions",0,rG,"useUpdateSession",0,function(){let e=(0,rF.useQueryClient)();return rV({mutationFn:({id:e,data:t})=>rB.api.updateSession(e,t),onSuccess:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all}),onError:()=>e.invalidateQueries({queryKey:rQ.queryKeys.sessions.all})})}],3025);let rX="jinn-command-recent";function rZ(){try{let e=localStorage.getItem(rX);return e?JSON.parse(e):[]}catch{return[]}}let rJ=[{id:"page-home",label:"Dashboard",icon:h.Home,href:"/"},{id:"page-chat",label:"Chat",icon:m.MessageSquare,href:"/chat"},{id:"page-org",label:"Organization",icon:v.Users,href:"/org"},{id:"page-kanban",label:"Kanban",icon:g.LayoutGrid,href:"/kanban"},{id:"page-cron",label:"Cron",icon:b.Clock,href:"/cron"},{id:"page-costs",label:"Costs",icon:x.DollarSign,href:"/costs"},{id:"page-logs",label:"Activity",icon:y.Activity,href:"/logs"},{id:"page-skills",label:"Skills",icon:w.Zap,href:"/skills"},{id:"page-settings",label:"Settings",icon:k.Settings,href:"/settings"},{id:"page-goals",label:"Goals",icon:N,href:"/goals"}];e.s(["GlobalSearch",0,function(){let{settings:e}=(0,rN.useSettings)(),t=e.portalName??"Ryoko",[r,n]=(0,p.useState)(!1),[a,s]=(0,p.useState)([]),o=(0,f.useRouter)(),{data:i}=rW({queryKey:rQ.queryKeys.org.all,queryFn:()=>rB.api.getOrg()}),{data:l}=rW({queryKey:rQ.queryKeys.cron.all,queryFn:()=>rB.api.getCronJobs()}),{data:c}=rG(),{data:u}=rW({queryKey:rQ.queryKeys.skills.all,queryFn:()=>rB.api.getSkills()});(0,p.useEffect)(()=>{function e(e){(e.metaKey||e.ctrlKey)&&"k"===e.key&&(e.preventDefault(),n(e=>!e))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,p.useEffect)(()=>{r&&s(rZ())},[r]);let h=(0,p.useCallback)((e,t)=>{let r;(r=rZ().filter(e=>e.id!==t.id)).unshift(t),localStorage.setItem(rX,JSON.stringify(r.slice(0,5))),n(!1),o.push(e)},[o]),g=Array.isArray(i?.employees)?i.employees.map(e=>e.name):[],x=Array.isArray(l)?l:[],y=Array.isArray(c)?c.slice(0,10):[],k=Array.isArray(u)?u.slice(0,10):[];return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(rh,{open:r,onOpenChange:n,children:(0,d.jsx)(rg,{className:"p-0 gap-0 max-w-[560px]",children:(0,d.jsxs)(rb,{className:"rounded-lg",children:[(0,d.jsx)(rx,{placeholder:`Search ${t}...`}),(0,d.jsxs)(ry,{children:[(0,d.jsx)(rw,{children:"No results found."}),a.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(rk,{heading:"Recent",children:a.map(e=>(0,d.jsxs)(rS,{onSelect:()=>h(e.href,e),children:[(0,d.jsx)(E,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,d.jsx)(rj,{})]}),(0,d.jsx)(rk,{heading:"Pages",children:rJ.map(e=>(0,d.jsxs)(rS,{onSelect:()=>h(e.href,{id:e.id,label:e.label,href:e.href,type:"page"}),children:[(0,d.jsx)(e.icon,{size:16,className:"mr-2 opacity-50"}),e.label]},e.id))}),(0,d.jsx)(rk,{heading:"Actions",children:(0,d.jsxs)(rS,{onSelect:()=>{n(!1),o.push("/chat")},children:[(0,d.jsx)(j.Plus,{size:16,className:"mr-2 opacity-50"}),"New Chat"]})}),g.length>0&&(0,d.jsx)(rk,{heading:"Employees",children:g.slice(0,8).map(e=>(0,d.jsxs)(rS,{onSelect:()=>h("/org",{id:`emp-${e}`,label:e,href:"/org",type:"employee"}),children:[(0,d.jsx)(v.Users,{size:16,className:"mr-2 opacity-50"}),e]},e))}),y.length>0&&(0,d.jsx)(rk,{heading:"Recent Sessions",children:y.map(e=>{let t=String(e.id??""),r=String(e.title??e.id??"").slice(0,50);return(0,d.jsxs)(rS,{onSelect:()=>h("/chat",{id:`session-${t}`,label:r,href:"/chat",type:"session"}),children:[(0,d.jsx)(m.MessageSquare,{size:16,className:"mr-2 opacity-50"}),r]},t)})}),x.length>0&&(0,d.jsx)(rk,{heading:"Cron Jobs",children:x.slice(0,6).map(e=>{let t=String(e.id??""),r=String(e.name??t);return(0,d.jsxs)(rS,{onSelect:()=>h("/cron",{id:`cron-${t}`,label:r,href:"/cron",type:"cron"}),children:[(0,d.jsx)(b.Clock,{size:16,className:"mr-2 opacity-50"}),r]},t)})}),k.length>0&&(0,d.jsx)(rk,{heading:"Skills",children:k.map(e=>{let t=String(e.name??"");return(0,d.jsxs)(rS,{onSelect:()=>h("/skills",{id:`skill-${t}`,label:t,href:"/skills",type:"skill"}),children:[(0,d.jsx)(w.Zap,{size:16,className:"mr-2 opacity-50"}),t]},t)})})]})]})})})})}],12239);let rY=(0,S.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,rY],33941);let r0=(0,S.default)("minimize-2",[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]);e.s(["X",0,rs],41864);var r1=e.i(32984);let r2={info:"var(--system-green)",warn:"var(--system-orange)",error:"var(--system-red)",debug:"var(--text-tertiary)"},r4={info:"rgba(48,209,88,0.12)",warn:"rgba(255,159,10,0.12)",error:"rgba(255,69,58,0.12)",debug:"var(--fill-secondary)"},r5=[{key:"all",label:"All"},{key:"info",label:"Info"},{key:"warn",label:"Warn"},{key:"error",label:"Errors"}];function r3(e,t){let r=e.match(/^(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s*(.*)$/);return r?{id:`log-${t}`,timestamp:r[1],level:r[2].toLowerCase(),message:r[3]}:{id:`log-${t}`,timestamp:"",level:"info",message:e}}e.s(["LogBrowser",0,function({lines:e}){let[t,r]=(0,p.useState)("all"),[n,a]=(0,p.useState)(""),[s,o]=(0,p.useState)(null),i=e.map(r3),l=i.filter(e=>("all"===t||e.level===t)&&(!n||!!e.message.toLowerCase().includes(n.toLowerCase()))),c={all:i.length,info:i.filter(e=>"info"===e.level).length,warn:i.filter(e=>"warn"===e.level).length,error:i.filter(e=>"error"===e.level).length};return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center flex-wrap gap-[var(--space-2)] mb-[var(--space-3)]",children:[r5.map(e=>{let n=t===e.key;return(0,d.jsxs)("button",{onClick:()=>r(e.key),className:"focus-ring flex items-center flex-shrink-0 rounded-[20px] py-[6px] px-[14px] text-[length:var(--text-footnote)] font-[var(--weight-medium)] border-none cursor-pointer gap-[var(--space-2)] transition-all duration-200 ease-[var(--ease-smooth)]",style:{...n?{background:"var(--accent-fill)",color:"var(--accent)",boxShadow:"0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent)"}:{background:"var(--fill-secondary)",color:"var(--text-primary)"}},children:[(0,d.jsx)("span",{children:e.label}),(0,d.jsx)("span",{className:"font-[var(--weight-semibold)]",style:{color:n?"var(--accent)":"var(--text-secondary)"},children:c[e.key]})]},e.key)}),(0,d.jsx)("input",{type:"text",placeholder:"Search logs...",value:n,onChange:e=>a(e.target.value),className:"focus-ring ml-auto py-[6px] px-3 text-[length:var(--text-footnote)] rounded-[var(--radius-sm)] border border-[var(--separator)] bg-[var(--fill-secondary)] text-[var(--text-primary)] outline-none min-w-40 max-w-60"})]}),0===l.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-[200px] text-[var(--text-secondary)] gap-[var(--space-2)]",children:[(0,d.jsx)("span",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-medium)]",children:0===i.length?"No log entries found":"No entries match this filter"}),(0,d.jsx)("span",{className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)]",children:0===i.length?"Log entries will appear here when available":"Try adjusting your filter or search"})]}):(0,d.jsx)("div",{className:"rounded-[var(--radius-md)] overflow-hidden bg-[var(--material-regular)]",style:{backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)"},children:l.map((e,t)=>{let r=s===e.id,n=r2[e.level]??"var(--text-tertiary)",a=e.message.length>120;return(0,d.jsxs)("div",{children:[t>0&&(0,d.jsx)("div",{className:"h-px bg-[var(--separator)] mx-[var(--space-4)]"}),(0,d.jsxs)("div",{role:"button",tabIndex:0,"aria-expanded":a?r:void 0,onClick:()=>a&&o(r?null:e.id),onKeyDown:t=>{a&&("Enter"===t.key||" "===t.key)&&(t.preventDefault(),o(r?null:e.id))},className:"flex items-center hover-bg focus-ring min-h-11 px-[var(--space-4)]",style:{cursor:a?"pointer":"default",background:"error"===e.level?"rgba(255,69,58,0.06)":void 0},children:[(0,d.jsx)("span",{className:"flex-shrink-0 rounded-full w-2 h-2",style:{background:n}}),e.timestamp&&(0,d.jsx)("span",{className:"flex-shrink-0 font-mono text-[length:var(--text-caption1)] text-[var(--text-tertiary)] ml-[var(--space-3)] min-w-[130px]",children:e.timestamp}),(0,d.jsx)("span",{className:"flex-shrink-0 text-[length:var(--text-caption2)] font-[var(--weight-semibold)] py-px px-1.5 rounded ml-[var(--space-2)] tracking-[0.04em] uppercase",style:{background:r4[e.level]??"var(--fill-secondary)",color:n},children:e.level}),(0,d.jsx)("span",{className:"truncate text-[length:var(--text-footnote)] text-[var(--text-primary)] ml-[var(--space-3)] flex-1 min-w-0",children:a&&!r?e.message.slice(0,117)+"...":e.message}),a&&(0,d.jsx)("span",{"aria-hidden":"true",className:"text-[length:var(--text-footnote)] text-[var(--text-tertiary)] inline-block ml-[var(--space-2)] transition-transform duration-200 ease-[var(--ease-smooth)]",style:{transform:r?"rotate(90deg)":"rotate(0deg)"},children:"›"})]}),r&&a&&(0,d.jsx)("div",{className:"animate-slide-down px-[var(--space-4)] pb-[var(--space-4)]",children:(0,d.jsx)("div",{className:"rounded-[var(--radius-sm)] bg-[var(--fill-secondary)] p-[var(--space-3)] mt-[var(--space-2)]",children:(0,d.jsx)("pre",{className:"font-mono text-[length:var(--text-caption2)] text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0 max-h-[300px] overflow-auto leading-[var(--leading-relaxed)]",children:e.message})})})]},e.id)})})]})},"parseLogLine",0,r3],83536);let r6="open-live-stream",r9={info:{bg:"rgba(48,209,88,0.12)",color:"var(--system-green)",label:"INF"},warn:{bg:"rgba(255,159,10,0.12)",color:"var(--system-orange)",label:"WRN"},error:{bg:"rgba(255,69,58,0.12)",color:"var(--system-red)",label:"ERR"},debug:{bg:"var(--fill-secondary)",color:"var(--text-tertiary)",label:"DBG"}};function r7(e){return`[${e.timestamp}] [${e.level.toUpperCase()}] ${e.message}`}function r8({entry:e}){let[t,r]=(0,p.useState)(!1),n=r9[e.level]??r9.debug,a=e.message.length>100;return(0,d.jsxs)("div",{className:`border-b border-[var(--separator)] ${"error"===e.level?"bg-[rgba(255,69,58,0.03)]":""}`,children:[(0,d.jsxs)("button",{onClick:()=>a&&r(e=>!e),className:`flex items-center w-full px-3 py-[5px] gap-2 border-none bg-transparent text-left ${a?"cursor-pointer":"cursor-default"}`,children:[a?(0,d.jsx)("span",{className:`text-[10px] text-[var(--text-tertiary)] shrink-0 inline-block transition-transform duration-150 ${t?"rotate-90":"rotate-0"}`,children:"›"}):(0,d.jsx)("span",{className:"w-[10px] shrink-0"}),(0,d.jsx)("span",{className:"font-mono text-[var(--text-tertiary)] text-[10px] shrink-0 min-w-[58px]",children:function(e){if(!e)return"";let t=e.split(" ");return t.length>1?t[1]:e}(e.timestamp)}),(0,d.jsx)("span",{className:"text-[9px] font-bold tracking-wide px-[5px] py-px rounded-[3px] shrink-0 leading-[14px]",style:{background:n.bg,color:n.color},children:n.label}),(0,d.jsx)("span",{className:`font-mono text-[10px] leading-snug overflow-hidden text-ellipsis whitespace-nowrap flex-1 min-w-0 ${"error"===e.level?"text-[var(--system-red)]":"text-[var(--text-secondary)]"}`,children:e.message})]}),t&&a&&(0,d.jsx)("div",{className:"px-3 pt-1.5 pb-2 pl-[30px] border-t border-[var(--separator)] bg-[var(--fill-secondary)]",children:(0,d.jsx)("pre",{className:"font-mono text-[9px] leading-normal text-[var(--text-secondary)] whitespace-pre-wrap break-words m-0",children:e.message})})]})}e.s(["LiveStreamWidget",0,function(){let[e,t]=(0,p.useState)("hidden"),[r,n]=(0,p.useState)([]),[a,s]=(0,p.useState)(!0),[o,i]=(0,p.useState)(!1),[l,c]=(0,p.useState)(null),u=(0,p.useRef)(null),f=(0,p.useRef)(0),{events:h}=(0,r1.useGateway)();(0,p.useEffect)(()=>{a&&u.current&&(u.current.scrollTop=u.current.scrollHeight)},[r,a]);let m=(0,p.useCallback)(()=>{if(!u.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:r}=u.current;t-e-r<40?s(!0):s(!1)},[]);(0,p.useEffect)(()=>{"expanded"===e&&rB.api.getLogs(50).then(e=>{n((e.lines??[]).map(r3)),c(null)}).catch(e=>{c(e instanceof Error?e.message:"Failed to load logs")})},[e]),(0,p.useEffect)(()=>{if("hidden"===e||0===h.length)return;let t=h[h.length-1];if("log"===t.event&&"object"==typeof t.payload&&null!==t.payload){let e=t.payload,r=r3(e.line||e.message||JSON.stringify(t.payload),f.current++);n(e=>[...e,r].slice(-500))}},[h,e]);let v=(0,p.useCallback)(()=>{t("hidden")},[]),g=(0,p.useCallback)(async()=>{let e=r.map(r7).join("\n");await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>i(!1),1500)},[r]);return((0,p.useEffect)(()=>{function e(){t("expanded")}return window.addEventListener(r6,e),()=>window.removeEventListener(r6,e)},[]),"hidden"===e)?null:"collapsed"===e?(0,d.jsxs)("button",{onClick:()=>t("expanded"),className:"focus-ring flex items-center fixed bottom-5 right-5 z-50 px-3.5 py-2 rounded-[var(--radius-pill)] border border-[var(--separator)] bg-[var(--material-regular)] cursor-pointer gap-2 backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_4px_24px_rgba(0,0,0,0.25)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,d.jsx)("span",{className:"text-[length:var(--text-caption1)] text-[var(--text-secondary)] font-[var(--weight-medium)]",children:"Live Stream"}),r.length>0&&(0,d.jsx)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)] bg-[var(--fill-secondary)] px-1.5 py-px rounded-[var(--radius-sm)]",children:r.length}),(0,d.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]}):(0,d.jsxs)("div",{className:"panel-slide-in fixed bottom-5 right-5 z-50 w-[440px] h-[400px] rounded-[var(--radius-lg)] border border-[var(--separator)] bg-[var(--material-regular)] flex flex-col overflow-hidden backdrop-blur-[40px] backdrop-saturate-[1.8] shadow-[0_8px_40px_rgba(0,0,0,0.35)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,d.jsxs)("div",{className:"flex items-center shrink-0 px-3.5 py-2.5 border-b border-[var(--separator)] gap-2",children:[(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-[var(--system-green)] shrink-0 animate-[lsw-pulse_2s_ease-in-out_infinite]"}),(0,d.jsx)("span",{className:"text-[length:var(--text-footnote)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:"Live Stream"}),r.length>0&&(0,d.jsxs)("span",{className:"text-[length:var(--text-caption2)] text-[var(--text-tertiary)]",children:[r.length," line",1!==r.length?"s":""]}),(0,d.jsxs)("div",{className:"ml-auto flex gap-1",children:[(0,d.jsx)("button",{onClick:g,title:"Copy all logs",disabled:0===r.length,className:`focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none transition-all duration-150 ${o?"bg-[var(--accent-fill)] text-[var(--accent)]":"bg-transparent text-[var(--text-tertiary)]"} ${0===r.length?"cursor-default opacity-30":"cursor-pointer opacity-100"}`,children:(0,d.jsx)(rY,{size:14})}),(0,d.jsx)("button",{onClick:()=>t("collapsed"),className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Minimize",children:(0,d.jsx)(r0,{size:14})}),(0,d.jsx)("button",{onClick:v,className:"focus-ring w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] border-none bg-transparent text-[var(--text-tertiary)] cursor-pointer transition-colors duration-150",title:"Close",children:(0,d.jsx)(rs,{size:14})})]})]}),l&&(0,d.jsx)("div",{className:"px-3.5 py-1.5 bg-[rgba(255,69,58,0.06)] border-b border-[rgba(255,69,58,0.15)] text-[length:var(--text-caption2)] text-[var(--system-red)] shrink-0",children:l}),(0,d.jsx)("div",{ref:u,onScroll:m,className:"flex-1 min-h-0 overflow-y-auto overflow-x-hidden",children:0===r.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-[var(--text-secondary)] gap-[var(--space-2)] p-[var(--space-4)]",children:[(0,d.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-[var(--text-tertiary)]",children:(0,d.jsx)("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),(0,d.jsx)("span",{className:"text-[length:var(--text-caption1)] font-[var(--weight-medium)]",children:"Waiting for log data..."})]}):(0,d.jsx)("div",{children:r.map(e=>(0,d.jsx)(r8,{entry:e},e.id))})}),(0,d.jsx)("div",{className:"flex items-center shrink-0 px-3.5 py-2 border-t border-[var(--separator)] gap-2",children:!a&&r.length>0&&(0,d.jsx)("button",{onClick:()=>s(!0),className:"focus-ring px-2.5 py-1 rounded-[var(--radius-sm)] border-none cursor-pointer text-[length:var(--text-caption2)] font-[var(--weight-medium)] bg-[var(--fill-secondary)] text-[var(--text-secondary)]",children:"Scroll to bottom"})}),(0,d.jsx)("style",{children:"@keyframes lsw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }"})]})}],44251);let ne=(0,S.default)("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);e.s(["Columns3",0,ne],82343)},40765,77110,e=>{"use strict";let t=(0,e.i(90922).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t],77110),e.s(["Check",0,t],40765)},60282,34528,98810,69591,97302,53146,e=>{"use strict";var t=e.i(98181),r=e.i(25007),n=e.i(98676),a=e.i(10587),s=e.i(58801),o=e.i(82343),i=e.i(97058),l=e.i(15433),c=e.i(21430),u=e.i(40765),d=e.i(90922);let p=(0,d.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),f=(0,d.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),h=(0,d.default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);var m=e.i(52567),v=e.i(68442);let g=(0,d.default)("ear",[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]]);var b=e.i(36511),x=e.i(36668),y=e.i(13765),w=e.i(65390),k=e.i(93716);let j=[{label:"Red",value:"#EF4444"},{label:"Orange",value:"#F97316"},{label:"Amber",value:"#F59E0B"},{label:"Yellow",value:"#EAB308"},{label:"Lime",value:"#84CC16"},{label:"Green",value:"#22C55E"},{label:"Emerald",value:"#10B981"},{label:"Cyan",value:"#06B6D4"},{label:"Blue",value:"#3B82F6"},{label:"Indigo",value:"#6366F1"},{label:"Violet",value:"#8B5CF6"},{label:"Pink",value:"#EC4899"}],S=[{icon:a.MessageSquare,name:"チャット",desc:"従業員との直接対話"},{icon:s.Users,name:"組織",desc:"AIチームの組織図をビジュアル表示"},{icon:o.Columns3,name:"カンバン",desc:"タスクボードで作業を管理"},{icon:i.Clock,name:"スケジュール",desc:"cronジョブとステータス監視"},{icon:l.DollarSign,name:"コスト",desc:"トークン使用量とコストの追跡"},{icon:c.Activity,name:"アクティビティ",desc:"リアルタイムログ・イベントストリーム"}];e.s(["OnboardingWizard",0,function({forceOpen:e,onClose:a}){let{settings:s,setPortalName:o,setOperatorName:i,setAccentColor:l,setLanguage:c}=(0,x.useSettings)(),{theme:d,setTheme:N}=(0,y.useTheme)(),E=(0,n.useRouter)(),[C,R]=(0,r.useState)(!1),[_,O]=(0,r.useState)(0),[M,z]=(0,r.useState)("forward"),[I,T]=(0,r.useState)(""),[A,D]=(0,r.useState)(""),[P,F]=(0,r.useState)(s.language??"Japanese"),L=[{icon:m.Target,title:"自然言語 /goal",desc:"「最後までやって」等で自律完遂タスク。複数ターンの進捗が個別のSlackメッセージで届く"},{icon:v.LayoutGrid,title:"Agents View Canvas",desc:"今動いている全Ryokoセッションをチャンネルの Canvas タブで一覧。30秒ごとに自動更新"},{icon:g,title:"空気読みトリアージ",desc:"メンションされない限り基本沈黙。役立てる話題にだけ介入するから邪魔にならない"}];(0,r.useEffect)(()=>{if(e){T(s.portalName??""),D(s.operatorName??""),R(!0);return}localStorage.getItem("jinn-onboarded")||k.api.getOnboarding().then(e=>{e.onboarded?localStorage.setItem("jinn-onboarded","true"):e.needed&&R(!0)}).catch(()=>{localStorage.getItem("jinn-onboarded")||R(!0)})},[e]);let $=(0,r.useCallback)(()=>{0===_&&(o(I||null),i(A||null),c(P||"Japanese")),_<4?(z("forward"),O(_+1)):(k.api.completeOnboarding({portalName:I||void 0,operatorName:A||void 0,language:P||void 0}).catch(()=>{}),e||localStorage.setItem("jinn-onboarded","true"),R(!1),a?.(),E.push("/chat"))},[_,I,A,e,a,o,i,E]),q=(0,r.useCallback)(()=>{_>0&&(z("back"),O(_-1))},[_]);return C?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",style:{backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)"},children:(0,t.jsxs)("div",{className:"animate-fade-in w-full max-w-[520px] mx-[var(--space-4)] bg-[var(--material-regular)] rounded-[var(--radius-lg)] border border-[var(--separator)] overflow-hidden flex flex-col max-h-[90vh]",style:{boxShadow:"0 24px 48px rgba(0,0,0,0.3)"},children:[(0,t.jsx)("div",{className:"flex justify-center gap-2 pt-[var(--space-4)] px-[var(--space-4)]",children:Array.from({length:5}).map((e,r)=>(0,t.jsx)("div",{className:"h-2 rounded-full transition-all duration-200",style:{width:r===_?24:8,background:r===_||r<_?"var(--accent)":"var(--fill-tertiary)",opacity:r<_?.5:1}},r))}),(0,t.jsxs)("div",{className:"px-[var(--space-5)] pt-[var(--space-5)] pb-[var(--space-4)] overflow-y-auto flex-1",children:[0===_&&(0,t.jsxs)("div",{className:"animate-fade-in text-center",children:[(0,t.jsx)("div",{className:"text-[56px] mb-[var(--space-3)] leading-none",children:"🤖"}),(0,t.jsxs)("h2",{className:"text-[length:var(--text-large-title)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-2)]",children:[I||"Ryoko"," へようこそ"]}),(0,t.jsx)("p",{className:"text-[length:var(--text-body)] text-[var(--text-secondary)] leading-[var(--leading-relaxed)] max-w-[400px] mx-auto mb-[var(--space-5)]",children:"あなたのAIチーム管理ポータル。さっそくセットアップしましょう。"}),(0,t.jsxs)("div",{className:"flex flex-col gap-[var(--space-3)] text-left",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"ポータル名"}),(0,t.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"Ryoko",value:I,onChange:e=>T(e.target.value),autoFocus:!0})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"あなたの呼び名は?"}),(0,t.jsx)("input",{type:"text",className:"apple-input w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)]",placeholder:"お名前",value:A,onChange:e=>D(e.target.value)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mb-[var(--space-1)]",children:"使用言語"}),(0,t.jsxs)("select",{value:P,onChange:e=>F(e.target.value),className:"w-full bg-[var(--bg-secondary)] border border-[var(--separator)] rounded-[var(--radius-sm)] px-3 py-2 text-[length:var(--text-body)] text-[var(--text-primary)] cursor-pointer",children:[(0,t.jsx)("option",{value:"English",children:"English"}),(0,t.jsx)("option",{value:"Spanish",children:"Spanish"}),(0,t.jsx)("option",{value:"French",children:"French"}),(0,t.jsx)("option",{value:"German",children:"German"}),(0,t.jsx)("option",{value:"Portuguese",children:"Portuguese"}),(0,t.jsx)("option",{value:"Italian",children:"Italian"}),(0,t.jsx)("option",{value:"Dutch",children:"Dutch"}),(0,t.jsx)("option",{value:"Russian",children:"Russian"}),(0,t.jsx)("option",{value:"Chinese",children:"Chinese"}),(0,t.jsx)("option",{value:"Japanese",children:"Japanese"}),(0,t.jsx)("option",{value:"Korean",children:"Korean"}),(0,t.jsx)("option",{value:"Arabic",children:"Arabic"}),(0,t.jsx)("option",{value:"Hindi",children:"Hindi"}),(0,t.jsx)("option",{value:"Bulgarian",children:"Bulgarian"})]})]})]})]},"step-0"),1===_&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"テーマを選択"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"お好みの見た目を選んでください。即座に反映されます。"}),(0,t.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(130px,1fr))] gap-[var(--space-3)]",children:w.THEMES.map(e=>{let r=d===e.id;return(0,t.jsxs)("button",{onClick:()=>N(e.id),className:"flex flex-col items-center gap-[var(--space-2)] px-[var(--space-3)] py-[var(--space-4)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] cursor-pointer transition-all duration-150",style:{border:r?"2px solid var(--accent)":"2px solid var(--separator)"},children:[(0,t.jsx)("span",{className:"text-[28px]",children:e.emoji}),(0,t.jsx)("span",{className:"text-[length:var(--text-footnote)]",style:{fontWeight:r?"var(--weight-semibold)":"var(--weight-medium)",color:r?"var(--accent)":"var(--text-secondary)"},children:e.label})]},e.id)})})]},"step-1"),2===_&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"アクセントカラーを選択"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"お好きな色でパーソナライズしてください。"}),(0,t.jsx)("div",{className:"grid grid-cols-6 gap-[var(--space-3)] justify-items-center",children:j.map(e=>{let r=s.accentColor===e.value;return(0,t.jsx)("button",{onClick:()=>l(e.value),"aria-label":e.label,title:e.label,className:"w-10 h-10 rounded-full border-none cursor-pointer flex items-center justify-center transition-all duration-100",style:{background:e.value,outline:r?`3px solid ${e.value}`:"none",outlineOffset:3},children:r&&(0,t.jsx)(u.Check,{size:18,color:"#fff",strokeWidth:3})},e.value)})})]},"step-2"),3===_&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"Slackを繋げると…"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"Ryoko の真価は Slack に住まわせたときに出ます。後で Settings → Slack から有効化できます。"}),(0,t.jsx)("div",{className:"flex flex-col gap-[var(--space-2)] mb-[var(--space-4)]",children:L.map(e=>{let r=e.icon;return(0,t.jsxs)("div",{className:"flex items-start gap-[var(--space-3)] p-[var(--space-3)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] border border-[var(--separator)]",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[var(--accent-fill)] flex items-center justify-center shrink-0",children:(0,t.jsx)(r,{size:18,className:"text-[var(--accent)]"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:e.title}),(0,t.jsx)("div",{className:"text-[length:var(--text-caption1)] text-[var(--text-tertiary)] mt-0.5",children:e.desc})]})]},e.title)})}),(0,t.jsxs)("button",{type:"button",onClick:()=>{k.api.completeOnboarding({portalName:I||void 0,operatorName:A||void 0,language:P||void 0}).catch(()=>{}),e||localStorage.setItem("jinn-onboarded","true"),R(!1),a?.(),E.push("/settings")},className:"w-full px-[var(--space-4)] py-[var(--space-3)] rounded-[var(--radius-md)] bg-[var(--fill-tertiary)] hover:bg-[var(--fill-secondary)] border border-[var(--separator)] text-[var(--text-primary)] text-[length:var(--text-subheadline)] font-[var(--weight-medium)] cursor-pointer transition-colors inline-flex items-center justify-center gap-2",children:[(0,t.jsx)(b.Settings,{size:16}),"今すぐ Settings で Slack を設定する"]}),(0,t.jsx)("p",{className:"text-[length:var(--text-caption1)] text-[var(--text-tertiary)] text-center mt-[var(--space-2)]",children:"スキップして「次へ」を押すと、後で Settings から有効化できます。"})]},"step-3"),4===_&&(0,t.jsxs)("div",{className:"animate-fade-in",children:[(0,t.jsx)("h2",{className:"text-[length:var(--text-title1)] font-[var(--weight-bold)] tracking-[var(--tracking-tight)] text-[var(--text-primary)] mb-[var(--space-1)]",children:"セットアップ完了!"}),(0,t.jsx)("p",{className:"text-[length:var(--text-subheadline)] text-[var(--text-tertiary)] mb-[var(--space-4)]",children:"利用できる機能の一覧です。"}),(0,t.jsx)("div",{className:"flex flex-col gap-[var(--space-2)]",children:S.map(e=>{let r=e.icon;return(0,t.jsxs)("div",{className:"flex items-center gap-[var(--space-3)] p-[var(--space-3)] rounded-[var(--radius-md)] bg-[var(--fill-quaternary)] border border-[var(--separator)]",children:[(0,t.jsx)("div",{className:"w-9 h-9 rounded-lg bg-[var(--accent-fill)] flex items-center justify-center shrink-0",children:(0,t.jsx)(r,{size:18,className:"text-[var(--accent)]"})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] text-[var(--text-primary)]",children:e.name}),(0,t.jsx)("div",{className:"text-[length:var(--text-caption1)] text-[var(--text-tertiary)]",children:e.desc})]})]},e.name)})})]},"step-4")]}),(0,t.jsxs)("div",{className:"flex justify-between items-center px-[var(--space-5)] pb-[var(--space-5)] pt-[var(--space-3)] gap-[var(--space-3)]",children:[_>0?(0,t.jsxs)("button",{onClick:q,className:"px-[var(--space-4)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--fill-tertiary)] text-[var(--text-secondary)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-medium)] transition-all duration-150 inline-flex items-center gap-1.5",children:[(0,t.jsx)(p,{size:16}),"戻る"]}):(0,t.jsx)("div",{}),(0,t.jsxs)("button",{onClick:$,className:"px-[var(--space-6)] py-[var(--space-2)] rounded-[var(--radius-md)] bg-[var(--accent)] text-[var(--accent-contrast)] border-none cursor-pointer text-[length:var(--text-subheadline)] font-[var(--weight-semibold)] transition-all duration-150 inline-flex items-center gap-1.5",children:[0===_?"次へ":4===_?"はじめる":"次へ",4===_?(0,t.jsx)(h,{size:16}):(0,t.jsx)(f,{size:16})]})]})]})}):null}],60282);let N=(0,d.default)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);e.s(["Bell",0,N],34528);let E=(0,d.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckCircle",0,E],98810);let C=(0,d.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["XCircle",0,C],69591);let R=(0,d.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,R],97302);let _=(0,d.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,_],53146)},38524,e=>{"use strict";let t=(0,e.i(90922).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],38524)},58843,15587,98385,e=>{"use strict";var t=e.i(98181),r=e.i(23097),n=e.i(25007),a=e.i(94583),s=e.i(98676),o=e.i(36668),i=e.i(135),l=e.i(12239),c=e.i(44251),u=e.i(60282),d=e.i(34528),p=e.i(98810),f=e.i(69591),h=e.i(97302),m=e.i(53146),v=e.i(40765),g=e.i(38524),b=e.i(92105),x=e.i(74499),y=e.i(47899);let w={success:p.CheckCircle,error:f.XCircle,warning:h.AlertTriangle,info:m.Info},k={success:"text-[var(--system-green)]",error:"text-[var(--system-red)]",warning:"text-[var(--system-orange)]",info:"text-[var(--system-blue)]"};function j(){let{notifications:e,unreadCount:r,markAllRead:a,markRead:s,clearAll:o}=(0,b.useNotifications)(),[i,l]=(0,n.useState)(!1),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(i)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e);function e(e){c.current&&!c.current.contains(e.target)&&l(!1)}},[i]),(0,t.jsxs)("div",{ref:c,className:"relative",children:[(0,t.jsxs)(x.Button,{onClick:()=>l(e=>!e),"aria-label":`Notifications${r>0?` (${r} unread)`:""}`,variant:"ghost",size:"icon-sm",className:"relative text-muted-foreground",children:[(0,t.jsx)(d.Bell,{size:18}),r>0&&(0,t.jsx)("span",{className:"absolute right-0.5 top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-[var(--system-red)] px-1 text-[10px] font-bold leading-none text-white",children:r>99?"99+":r})]}),i&&(0,t.jsxs)("div",{className:"animate-scale-up absolute right-0 top-[calc(100%+8px)] z-[200] flex max-h-[480px] w-[360px] max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-[var(--radius-lg)] border border-border bg-[var(--material-thick)] shadow-[var(--shadow-overlay)] backdrop-blur-[40px]",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between border-b border-border px-4 py-3",children:[(0,t.jsx)("span",{className:"text-[15px] font-semibold text-foreground",children:"Notifications"}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[r>0&&(0,t.jsxs)("button",{onClick:a,title:"Mark all as read",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-[var(--system-blue)] transition-colors hover:bg-accent",children:[(0,t.jsx)(v.Check,{size:14}),"Read all"]}),e.length>0&&(0,t.jsx)("button",{onClick:()=>{o(),l(!1)},title:"Clear all",className:"flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(g.Trash2,{size:14})})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===e.length?(0,t.jsx)("div",{className:"px-4 py-8 text-center text-[13px] text-muted-foreground",children:"No notifications yet"}):e.map(e=>{var r;let n,a=w[e.type];return(0,t.jsxs)("div",{onClick:()=>s(e.id),className:(0,y.cn)("flex cursor-pointer items-start gap-2.5 border-b border-border px-4 py-2.5 transition-colors hover:bg-accent",e.read?"bg-transparent":"bg-[var(--material-ultra-thin)]"),children:[(0,t.jsx)(a,{size:16,className:(0,y.cn)("mt-0.5 shrink-0",k[e.type])}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:(0,y.cn)("text-[13px] leading-[1.3] text-foreground",e.read?"font-normal":"font-semibold"),children:e.title}),(0,t.jsx)("div",{className:"mt-0.5 truncate text-xs leading-[1.3] text-[var(--text-secondary)]",children:e.message})]}),(0,t.jsx)("span",{className:"mt-0.5 shrink-0 whitespace-nowrap text-[11px] text-[var(--text-quaternary)]",children:(r=e.timestamp,(n=Math.floor((Date.now()-r)/1e3))<60?"just now":n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`)}),!e.read&&(0,t.jsx)("span",{className:"mt-[5px] size-2 shrink-0 rounded-full bg-[var(--system-blue)]"})]},e.id)})})]})]})}e.s(["NotificationBell",0,j],15587);var S=e.i(41864);let N={success:p.CheckCircle,error:f.XCircle,warning:h.AlertTriangle,info:m.Info},E={success:"var(--system-green)",error:"var(--system-red)",warning:"var(--system-orange)",info:"var(--system-blue)"};function C(){let{toasts:e,dismissToast:r}=(0,b.useNotifications)();return 0===e.length?null:(0,t.jsx)("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 max-w-[380px] w-full pointer-events-none",children:e.map(e=>{let n=N[e.type],a=E[e.type];return(0,t.jsxs)("div",{className:"animate-slide-down pointer-events-auto flex items-start gap-2.5 px-3.5 py-3 bg-[var(--material-thick)] backdrop-blur-[40px] backdrop-saturate-[1.8] border border-[var(--separator)] rounded-[var(--radius-md)] shadow-[var(--shadow-overlay)]",style:{WebkitBackdropFilter:"blur(40px) saturate(180%)"},children:[(0,t.jsx)(n,{size:18,className:"shrink-0 mt-px",style:{color:a}}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-[13px] font-semibold text-[var(--text-primary)] leading-[1.3]",children:e.title}),(0,t.jsx)("div",{className:"text-xs text-[var(--text-secondary)] mt-0.5 leading-[1.3] overflow-hidden text-ellipsis whitespace-nowrap",children:e.message}),(0,t.jsx)("div",{className:"text-[11px] text-[var(--text-quaternary)] mt-1",children:new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),(0,t.jsx)("button",{onClick:()=>r(e.id),"aria-label":"Dismiss",className:"bg-transparent border-none cursor-pointer text-[var(--text-tertiary)] p-0.5 shrink-0",children:(0,t.jsx)(S.X,{size:14})})]},e.id)})})}var R=e.i(90922);let _=(0,R.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,_],98385);var O=e.i(11322);function M(){let{items:e}=(0,O.useBreadcrumbs)();return 0===e.length?null:1===e.length?(0,t.jsx)("h1",{className:"text-lg font-semibold text-[var(--text-primary)] tracking-tight",children:e[0].label}):(0,t.jsx)("nav",{className:"flex items-center gap-1.5 text-sm","aria-label":"Breadcrumb",children:e.map((r,n)=>{let s=n===e.length-1;return(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[n>0&&(0,t.jsx)(_,{size:14,className:"text-[var(--text-quaternary)]"}),s||!r.href?(0,t.jsx)("span",{className:s?"text-[var(--text-primary)] font-medium":"text-[var(--text-tertiary)]",children:r.label}):(0,t.jsx)(a.default,{href:r.href,className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)] transition-colors",children:r.label})]},n)})})}let z=(0,R.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var I=e.i(93574);function T({actions:e}){let[i,l]=(0,n.useState)(!1),c=(0,s.usePathname)(),{settings:u}=(0,o.useSettings)(),d=u.portalEmoji??"🧞",p=u.portalName??"Ryoko";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 relative z-60 flex h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-3 lg:hidden",children:[(0,t.jsx)("button",{onClick:()=>l(!0),"aria-label":"Open menu",className:"jsx-906cbf20b7aa1777 inline-flex size-9 items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent",children:(0,t.jsx)(z,{size:20})}),(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 items-center justify-center text-center",children:[(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 mr-1.5 text-lg",children:d}),(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-sm font-semibold text-foreground",children:p})]}),(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-1",children:[e,(0,t.jsx)(j,{})]})]}),i&&(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 fixed inset-0 z-[120] lg:hidden",children:[(0,t.jsx)("div",{onClick:()=>l(!1),className:"jsx-906cbf20b7aa1777 absolute inset-0 bg-black/50 backdrop-blur-[1px]"}),(0,t.jsxs)("nav",{className:"jsx-906cbf20b7aa1777 absolute inset-y-0 left-0 flex w-[260px] animate-slide-in flex-col border-r border-border bg-[var(--bg-secondary)]",children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center justify-between border-b border-border px-3.5 py-3",children:[(0,t.jsxs)("div",{className:"jsx-906cbf20b7aa1777 flex items-center gap-2",children:[(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-[22px]",children:d}),(0,t.jsx)("span",{className:"jsx-906cbf20b7aa1777 text-base font-semibold text-foreground",children:p})]}),(0,t.jsx)("button",{onClick:()=>l(!1),"aria-label":"Close menu",className:"jsx-906cbf20b7aa1777 inline-flex size-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:(0,t.jsx)(S.X,{size:18})})]}),(0,t.jsx)("div",{className:"jsx-906cbf20b7aa1777 flex flex-1 flex-col gap-1 p-2",children:I.NAV_ITEMS.map(e=>{let r="/"===e.href?"/"===c:c.startsWith(e.href),n=e.icon;return(0,t.jsxs)(a.default,{href:e.href,onClick:()=>l(!1),className:(0,y.cn)("flex h-11 items-center gap-3 rounded-[10px] px-3.5 text-[15px] transition-colors",r?"bg-[var(--accent-fill)] font-semibold text-[var(--accent)]":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:[(0,t.jsx)(n,{size:18,className:"jsx-906cbf20b7aa1777 shrink-0"}),e.label]},e.href)})})]})]}),(0,t.jsx)(r.default,{id:"906cbf20b7aa1777",children:"@keyframes slideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}"})]})}function A(){let{items:e}=(0,O.useBreadcrumbs)();return 0===e.length?null:(0,t.jsx)("div",{className:"hidden h-12 shrink-0 items-center border-b border-border bg-[var(--material-thick)] px-5 lg:flex",children:(0,t.jsx)(M,{})})}e.s(["PageLayout",0,function({children:e,mobileHeaderActions:r}){return(0,t.jsxs)("div",{className:"flex h-dvh overflow-hidden bg-background",children:[(0,t.jsx)(i.Sidebar,{}),(0,t.jsx)(l.GlobalSearch,{}),(0,t.jsxs)("main",{className:"flex-1 overflow-hidden flex flex-col lg:ml-[56px]",children:[(0,t.jsx)(T,{actions:r}),(0,t.jsx)(A,{}),(0,t.jsx)("div",{className:"flex-1 overflow-hidden",children:e})]}),(0,t.jsx)(C,{}),(0,t.jsx)(c.LiveStreamWidget,{}),(0,t.jsx)(u.OnboardingWizard,{})]})},"ToolbarActions",0,function({children:e}){return(0,t.jsxs)("div",{className:"hidden items-center gap-2 lg:flex",children:[e,(0,t.jsx)(j,{})]})}],58843)}]);