@decocms/mesh 2.13.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/client/assets/{AlertCircle-CtP28Oyz.js → AlertCircle-CMyS46jH.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-Bps-R0_t.js → ArrowLeft-Dsh9IWd-.js} +1 -1
  3. package/dist/client/assets/ArrowUp-CXsDJznS.js +1 -0
  4. package/dist/client/assets/{Check-Bkw0Gz-n.js → Check-BEhtk6Py.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-mvTJP4-S.js → ChevronDown-BRxtl0-A.js} +1 -1
  6. package/dist/client/assets/{Clock-DiHiAbv6.js → Clock-BSrN61cb.js} +1 -1
  7. package/dist/client/assets/{Code01-CTUZx8UP.js → Code01-Bu5zpyWd.js} +1 -1
  8. package/dist/client/assets/{Copy01-BctGx-5E.js → Copy01-B7vmVdHF.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-MMZ1EZhB.js → DotsHorizontal-B0iNa4YA.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-CzCtj25W.js → DotsVertical-CdUtOOoG.js} +1 -1
  11. package/dist/client/assets/Download01-D1VGE3pA.js +1 -0
  12. package/dist/client/assets/{Edit01-BD5iJRQz.js → Edit01-CGqnOdlK.js} +1 -1
  13. package/dist/client/assets/{File06-nV81V8TD.js → File06-De52zO32.js} +1 -1
  14. package/dist/client/assets/FilterLines-ClFUJXZP.js +1 -0
  15. package/dist/client/assets/{FlipBackward-CpWoOBPz.js → FlipBackward-B4GimHkg.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-DWYSSAGj.js → GitBranch01-B40VcD0l.js} +1 -1
  17. package/dist/client/assets/Grid01-CoHgfBeE.js +1 -0
  18. package/dist/client/assets/Home02-Dax6TXzJ.js +1 -0
  19. package/dist/client/assets/Image01-D_Oad7Fi.js +1 -0
  20. package/dist/client/assets/{Inbox01-DkMyh-FB.js → Inbox01-DU8gyK-F.js} +1 -1
  21. package/dist/client/assets/{InfoCircle-BXctEVkS.js → InfoCircle-Na8jygcw.js} +1 -1
  22. package/dist/client/assets/{Key01-ChIWeKNh.js → Key01-BbSMVBZS.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-By7zx70s.js → LinkExternal01-5OOaoko1.js} +1 -1
  24. package/dist/client/assets/List-BXC8ldIg.js +1 -0
  25. package/dist/client/assets/{Loading01-CdaWSExX.js → Loading01-DxDL3s7X.js} +1 -1
  26. package/dist/client/assets/{Lock01-txD_UwBx.js → Lock01-C1zaHQP8.js} +1 -1
  27. package/dist/client/assets/{Play-CjVz5-Yt.js → Play-ClPvjsPL.js} +1 -1
  28. package/dist/client/assets/{Plus-CovnOzP9.js → Plus-WrA7kzKa.js} +1 -1
  29. package/dist/client/assets/{SearchMd-YxKkBPG0.js → SearchMd-JSFwoON0.js} +1 -1
  30. package/dist/client/assets/{Terminal-DYwA22tz.js → Terminal-BtV_FLPF.js} +1 -1
  31. package/dist/client/assets/{Trash01-DopdNXEu.js → Trash01-MX6mkM7g.js} +1 -1
  32. package/dist/client/assets/Upload01-BGvogcXt.js +1 -0
  33. package/dist/client/assets/{X-DcqsnRSe.js → X-q5bh176U.js} +1 -1
  34. package/dist/client/assets/{XClose-D0utLGU3.js → XClose-D_dGSZ7W.js} +1 -1
  35. package/dist/client/assets/{alert-dialog-B2ogXLEp.js → alert-dialog-ocEz50Se.js} +2 -2
  36. package/dist/client/assets/{auth-catchall-BG5YjEP_.js → auth-catchall-BJS8UgWt.js} +1 -1
  37. package/dist/client/assets/avatar-Dtkx4Tl-.js +1 -0
  38. package/dist/client/assets/badge-BkSn2oaB.js +1 -0
  39. package/dist/client/assets/binder-BVHRVoIY.js +1 -0
  40. package/dist/client/assets/button-CICpj3wE.js +1 -0
  41. package/dist/client/assets/card-BMkFh6vi.js +1 -0
  42. package/dist/client/assets/checkbox-DTTIHxXg.js +1 -0
  43. package/dist/client/assets/{collection-detail-BJvqsPlx.js → collection-detail-CDCE926k.js} +2 -2
  44. package/dist/client/assets/collection-display-button-3hmFOeDC.js +1 -0
  45. package/dist/client/assets/collection-header-B6vJy14N.js +1 -0
  46. package/dist/client/assets/{collection-page-C8c74lBQ.js → collection-page-Dt6I6Mr4.js} +1 -1
  47. package/dist/client/assets/collection-search-ClK_cOgs.js +1 -0
  48. package/dist/client/assets/collection-tab-D8CKnWEB.js +1 -0
  49. package/dist/client/assets/collection-table-wrapper-CUsQQB3S.js +1 -0
  50. package/dist/client/assets/connection-Mp3hTHGP.js +2 -0
  51. package/dist/client/assets/connection-card-Cm6sQJt-.js +1 -0
  52. package/dist/client/assets/connection-detail-CS7YtOxG.js +1 -0
  53. package/dist/client/assets/connections-BXBUh1-5.js +1 -0
  54. package/dist/client/assets/constants-DsV2FGIq.js +1 -0
  55. package/dist/client/assets/create-organization-dialog-Kd2yuwpA.js +1 -0
  56. package/dist/client/assets/dialog-CuzZhGeu.js +1 -0
  57. package/dist/client/assets/dropdown-menu-D1uHrxpy.js +1 -0
  58. package/dist/client/assets/dynamic-plugin-layout-BWtm_52W.js +1 -0
  59. package/dist/client/assets/empty-state-B8LlErgw.js +1 -0
  60. package/dist/client/assets/empty-state-BhACvnGF.js +1 -0
  61. package/dist/client/assets/env-vars-editor-BSBPtnyc.js +1 -0
  62. package/dist/client/assets/error-boundary-u4ffWLYf.js +1 -0
  63. package/dist/client/assets/extract-connection-data-DSV8dsp9.js +1 -0
  64. package/dist/client/assets/file-browser-CZ1PEthx.js +2 -0
  65. package/dist/client/assets/form-f0_t6ok_.js +1 -0
  66. package/dist/client/assets/gateway-detail-D4FxMVxj.js +1 -0
  67. package/dist/client/assets/gateways-DjekxeB3.js +1 -0
  68. package/dist/client/assets/grid-view-BYe4Rwz4.js +1 -0
  69. package/dist/client/assets/home-C6GUJREk.js +1 -0
  70. package/dist/client/assets/{index-BuPukvJG.js → index-BZk2eMPx.js} +17 -17
  71. package/dist/client/assets/{index-o28bnKR9.js → index-BrOzWsZC.js} +1 -1
  72. package/dist/client/assets/index-CFMXrMRQ.js +25 -0
  73. package/dist/client/assets/{index-Cw3bkeXO.js → index-DB3GMPX_.js} +1 -1
  74. package/dist/client/assets/index-fFpUC2Bx.css +1 -0
  75. package/dist/client/assets/index-pvGhQBw9.js +174 -0
  76. package/dist/client/assets/infiniteQueryObserver-DjOTL7tS.js +1 -0
  77. package/dist/client/assets/input-Chnnz9Uq.js +1 -0
  78. package/dist/client/assets/layout-CE7L7dZF.js +1 -0
  79. package/dist/client/assets/{lazy-highlighter-C5pGkBnk.js → lazy-highlighter-HM0cmsZA.js} +1 -1
  80. package/dist/client/assets/localstorage-keys-CdhAbc7P.js +1 -0
  81. package/dist/client/assets/login-D-qtMr1_.js +1 -0
  82. package/dist/client/assets/mcp-oauth-Bkju1UsK.js +1 -0
  83. package/dist/client/assets/mcp-server-card-CsdbMsCj.js +1 -0
  84. package/dist/client/assets/mcp-server-detail-BI6WT6NT.js +1 -0
  85. package/dist/client/assets/members-DIF2fQ00.js +3 -0
  86. package/dist/client/assets/{monaco-editor-BmVBfnK5.js → monaco-editor--HoIUuQe.js} +3 -3
  87. package/dist/client/assets/{monitoring-7ik3wQUY.js → monitoring-Gwgg901f.js} +10 -10
  88. package/dist/client/assets/oauth-callback-C8OVySGi.js +1 -0
  89. package/dist/client/assets/{page-yu9K5Vtj.js → page-BthOOB1S.js} +2 -2
  90. package/dist/client/assets/page-rpmGCt1t.js +1 -0
  91. package/dist/client/assets/pin-to-sidebar-button--fqmK37a.js +1 -0
  92. package/dist/client/assets/plugin-empty-state-BPlieumE.js +1 -0
  93. package/dist/client/assets/plugin-header-CcEHY2ra.js +1 -0
  94. package/dist/client/assets/plugins-BR7M1iih.js +1 -0
  95. package/dist/client/assets/popover-Cq8T_QGa.js +1 -0
  96. package/dist/client/assets/project-context-provider-CUiGxKJp.js +1 -0
  97. package/dist/client/assets/{registry-utils-BIzwINzW.js → registry-utils-h9Ud__h7.js} +1 -1
  98. package/dist/client/assets/resizable-S6LzYu6C.js +1 -0
  99. package/dist/client/assets/resource-tabs-Blq_ajNW.js +1 -0
  100. package/dist/client/assets/select-BOEg6aAK.js +1 -0
  101. package/dist/client/assets/settings-C0Cv06sV.js +1 -0
  102. package/dist/client/assets/shell-layout-BRSb3To9.js +3 -0
  103. package/dist/client/assets/spinner-BSgPnpsR.js +1 -0
  104. package/dist/client/assets/switch-CkVmNhCD.js +1 -0
  105. package/dist/client/assets/textarea-BgUJNVXI.js +1 -0
  106. package/dist/client/assets/{thread-history-popover-BKo2wskT.js → thread-history-popover-SCaQRi-L.js} +4 -4
  107. package/dist/client/assets/tool-set-selector-BVPKiJOI.js +1 -0
  108. package/dist/client/assets/tools-list-DsOacuX3.js +1 -0
  109. package/dist/client/assets/tooltip-DySBr2SY.js +1 -0
  110. package/dist/client/assets/use-binding-s4bqKdJA.js +23 -0
  111. package/dist/client/assets/use-collections-JQXbZBdV.js +1 -0
  112. package/dist/client/assets/use-connection-BF1UFzlw.js +1 -0
  113. package/dist/client/assets/{use-connection-resources-C8cAy7Nl.js → use-connection-resources-D5d-M6jn.js} +1 -1
  114. package/dist/client/assets/{use-create-gateway-D8vNiD2K.js → use-create-gateway-DLr-GNpv.js} +1 -1
  115. package/dist/client/assets/use-gateway-B5GGqvj7.js +1 -0
  116. package/dist/client/assets/{use-gateway-system-prompt-uetw6YB3.js → use-gateway-system-prompt-K6FCpGjs.js} +1 -1
  117. package/dist/client/assets/{use-list-state-CAv4RNZg.js → use-list-state-BkPjBg3I.js} +1 -1
  118. package/dist/client/assets/use-mcp-C-3NLCFo.js +1 -0
  119. package/dist/client/assets/{use-members-9nvpFN_1.js → use-members-B9HW4lZd.js} +1 -1
  120. package/dist/client/assets/{use-mobile-sd5ko6M_.js → use-mobile-zhrv6Pzr.js} +1 -1
  121. package/dist/client/assets/use-organization-settings-DTSCQFPr.js +1 -0
  122. package/dist/client/assets/{use-tool-call-BLplGau6.js → use-tool-call-BMUEJvVc.js} +1 -1
  123. package/dist/client/assets/useInfiniteQuery-qVzxuL4i.js +1 -0
  124. package/dist/client/assets/useMutation-B64mCwly.js +1 -0
  125. package/dist/client/assets/useQuery-Dr4r_H_i.js +1 -0
  126. package/dist/client/assets/value-DvmerOpY.js +1 -0
  127. package/dist/client/assets/view-mode-toggle-DXknlAX3.js +1 -0
  128. package/dist/client/assets/workflow-Bi0pfrEf.js +1 -0
  129. package/dist/client/index.html +2 -2
  130. package/dist/server/cli.js +193 -193
  131. package/dist/server/migrate.js +128 -128
  132. package/dist/server/server.js +191 -191
  133. package/package.json +4 -4
  134. package/dist/client/assets/FilterLines-CBfbdjv3.js +0 -1
  135. package/dist/client/assets/Grid01-BEpepbVy.js +0 -1
  136. package/dist/client/assets/auth-CNkA6dk2.js +0 -1
  137. package/dist/client/assets/avatar-KT16fAYd.js +0 -1
  138. package/dist/client/assets/badge-8BCP2QJ_.js +0 -1
  139. package/dist/client/assets/card-XgDm8_H9.js +0 -1
  140. package/dist/client/assets/checkbox-B9Ss6ffk.js +0 -1
  141. package/dist/client/assets/collection-display-button-DroTLKfu.js +0 -1
  142. package/dist/client/assets/collection-header-CUphFaJM.js +0 -1
  143. package/dist/client/assets/collection-search-DIEJ7x7R.js +0 -1
  144. package/dist/client/assets/collection-tab-BQr3sv8I.js +0 -1
  145. package/dist/client/assets/collection-table-wrapper-x8zydyA0.js +0 -1
  146. package/dist/client/assets/connection-card-CTMXB5Zh.js +0 -1
  147. package/dist/client/assets/connection-detail-BU82m59Z.js +0 -1
  148. package/dist/client/assets/connections-B-zsqKwM.js +0 -1
  149. package/dist/client/assets/constants-8DEiLmV-.js +0 -1
  150. package/dist/client/assets/create-organization-dialog-CHS4cOdy.js +0 -1
  151. package/dist/client/assets/dialog-D9LHhl79.js +0 -1
  152. package/dist/client/assets/dropdown-menu-DjFWyTtD.js +0 -1
  153. package/dist/client/assets/empty-state-DSGxvcRL.js +0 -1
  154. package/dist/client/assets/empty-state-DgOO5bI1.js +0 -2
  155. package/dist/client/assets/env-vars-editor-mM2KyO-W.js +0 -1
  156. package/dist/client/assets/error-boundary-uBvOVTCE.js +0 -1
  157. package/dist/client/assets/extract-connection-data-DMhfaAiL.js +0 -1
  158. package/dist/client/assets/form-orY-xngM.js +0 -1
  159. package/dist/client/assets/gateway-detail-Bnl2H9_J.js +0 -1
  160. package/dist/client/assets/gateways-RS5E135D.js +0 -1
  161. package/dist/client/assets/home-HRdtfNlr.js +0 -1
  162. package/dist/client/assets/index-9MwexYU6.css +0 -1
  163. package/dist/client/assets/index-Bz1LU39D.js +0 -163
  164. package/dist/client/assets/index-K2EwRRk6.js +0 -25
  165. package/dist/client/assets/input-CtiQUsvV.js +0 -1
  166. package/dist/client/assets/layout-C8G6tSLB.js +0 -1
  167. package/dist/client/assets/localstorage-keys-5oG1CfEQ.js +0 -1
  168. package/dist/client/assets/login-BvQHpiOu.js +0 -1
  169. package/dist/client/assets/mcp-oauth-BzcB2WNx.js +0 -1
  170. package/dist/client/assets/mcp-server-card-BawKO-ZK.js +0 -1
  171. package/dist/client/assets/mcp-server-detail-CxrhH1J8.js +0 -1
  172. package/dist/client/assets/members-C0iWKqGR.js +0 -3
  173. package/dist/client/assets/oauth-callback-Coasa0XK.js +0 -1
  174. package/dist/client/assets/page-DsAOPS13.js +0 -1
  175. package/dist/client/assets/pin-to-sidebar-button-C-akIZzz.js +0 -1
  176. package/dist/client/assets/popover-QWczrvYc.js +0 -1
  177. package/dist/client/assets/project-context-provider-_aLYBfO9.js +0 -1
  178. package/dist/client/assets/resizable-djk090hC.js +0 -1
  179. package/dist/client/assets/resource-tabs-GXDudjH9.js +0 -1
  180. package/dist/client/assets/select-Bxj6_TSM.js +0 -1
  181. package/dist/client/assets/settings-0nIjjKRi.js +0 -1
  182. package/dist/client/assets/shell-layout-BFIjeoYr.js +0 -3
  183. package/dist/client/assets/spinner-C7HX4n17.js +0 -1
  184. package/dist/client/assets/switch-zovYrKoi.js +0 -1
  185. package/dist/client/assets/textarea-D76YOeHc.js +0 -1
  186. package/dist/client/assets/tool-set-selector-Dfdgsx2h.js +0 -1
  187. package/dist/client/assets/tools-list-C2S7XIkI.js +0 -1
  188. package/dist/client/assets/use-binding-UNVemCFv.js +0 -34
  189. package/dist/client/assets/use-connection-BXdeHsm0.js +0 -1
  190. package/dist/client/assets/use-gateway-BhC1hXIm.js +0 -1
  191. package/dist/client/assets/use-mcp-kCjFuvFP.js +0 -1
  192. package/dist/client/assets/use-organization-settings-DBRSoBd0.js +0 -1
  193. package/dist/client/assets/value-DxHsXzsm.js +0 -1
  194. package/dist/client/assets/view-mode-toggle-CVcyaB_S.js +0 -1
  195. package/dist/client/assets/workflow-BUV3CQv_.js +0 -1
@@ -1 +1 @@
1
- import{aZ as K,a_ as C,a$ as V,b0 as z,an as _,s as W,b1 as X,b2 as Y,r as h,b3 as Z,b4 as $,b5 as J,b6 as ee,b7 as k,b8 as P,b9 as se,ba as te,aj as A,ab as re,ai as oe,j as m,ac as Q,al as ne,ad as g,aa as O,ak as ae,af as w,ae as ie,aO as ue,aN as ce}from"./index-Bz1LU39D.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,v=l?!0:n.some((i,d)=>{const b=this.#e[d];return!b||!V(i,b)});!l&&!v||(l&&(this.#u=o,this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const p=o.defaultQueryOptions(u);return p._optimisticResults=e?"isRestoring":"optimistic",p}),[r,o,e]);a.forEach(u=>{Z(u);const p=o.getQueryCache().get(u.queryHash);$(u,n,p)}),J(n);const[c]=h.useState(()=>new le(o,a,s)),[l,v,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=l.find((u,p)=>{const y=a[p];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return v(i())}var S="Radio",[he,j]=Q(S),[pe,fe]=he(S),G=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:v,...i}=r,[d,b]=h.useState(null),f=O(s,p=>b(p)),R=h.useRef(!1),u=d?v||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:f,onClick:w(r.onClick,p=>{e||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:v,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(M,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=M;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),v=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&f){const R=new Event("click",{bubbles:o});f.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var ve=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[be]=Q(E,[A,j]),L=A(),B=j(),[me,ye]=be(E),F=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:v,loop:i=!0,onValueChange:d,...b}=r,f=L(t),R=re(v),[u,p]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:p,children:m.jsx(ne,{asChild:!0,...f,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...b,ref:s})})})});F.displayName=E;var T="RadioGroupItem",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(T,t),a=n.disabled||o,c=L(t),l=B(t),v=h.useRef(null),i=O(s,v),d=n.value===e.value,b=h.useRef(!1);return h.useEffect(()=>{const f=u=>{ve.includes(u.key)&&(b.current=!0)},R=()=>b.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(G,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(e.onFocus,()=>{b.current&&v.current?.click()})})})});H.displayName=T;var ge="RadioGroupIndicator",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});U.displayName=ge;var we=F,Oe=H,Se=U;export{Oe as I,we as R,Se as a,Ce as u};
1
+ import{b0 as K,b1 as C,b2 as V,b3 as z,b4 as _,v as W,b5 as X,b6 as Y,r as h,b7 as J,b8 as Z,b9 as $,ba as ee,bb as k,bc as P,bd as se,be as te,an as Q,af as re,am as oe,j as m,ag as A,ap as ne,ah as g,ae as O,ao as ae,aj as w,ai as ie,aR as ue,aQ as ce}from"./index-pvGhQBw9.js";function I(r,s){const t=new Set(s);return r.filter(o=>!t.has(o))}function de(r,s,t){const o=r.slice(0);return o[s]=t,o}var le=class extends K{#r;#e;#o;#n;#s;#t;#a;#i;#u=[];constructor(r,s,t){super(),this.#r=r,this.#n=t,this.#o=[],this.#s=[],this.#e=[],this.setQueries(s)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(s=>{this.#h(r,s)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,s){this.#o=r,this.#n=s,C.batch(()=>{const t=this.#s,o=this.#l(this.#o);o.forEach(i=>i.observer.setOptions(i.defaultedQueryOptions));const e=o.map(i=>i.observer),n=e.map(i=>i.getCurrentResult()),a=t.length!==e.length,c=e.some((i,d)=>i!==t[d]),l=a||c,b=l?!0:n.some((i,d)=>{const v=this.#e[d];return!v||!V(i,v)});!l&&!b||(l&&(this.#u=o,this.#s=e),this.#e=n,this.hasListeners()&&(l&&(I(t,e).forEach(i=>{i.destroy()}),I(e,t).forEach(i=>{i.subscribe(d=>{this.#h(i,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,s){const t=this.#l(r),o=t.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[o,e=>this.#d(e??o,s),()=>this.#c(o,t)]}#c(r,s){return s.map((t,o)=>{const e=r[o];return t.defaultedQueryOptions.notifyOnChangeProps?e:t.observer.trackResult(e,n=>{s.forEach(a=>{a.observer.trackProp(n)})})})}#d(r,s){return s?((!this.#t||this.#e!==this.#i||s!==this.#a)&&(this.#a=s,this.#i=this.#e,this.#t=z(this.#t,s(r))),this.#t):r}#l(r){const s=new Map;this.#s.forEach(o=>{const e=o.options.queryHash;if(!e)return;const n=s.get(e);n?n.push(o):s.set(e,[o])});const t=[];return r.forEach(o=>{const e=this.#r.defaultQueryOptions(o),a=s.get(e.queryHash)?.shift()??new _(this.#r,e);t.push({defaultedQueryOptions:e,observer:a})}),t}#h(r,s){const t=this.#s.indexOf(r);t!==-1&&(this.#e=de(this.#e,t,s),this.#p())}#p(){if(this.hasListeners()){const r=this.#t,s=this.#c(this.#e,this.#u),t=this.#d(s,this.#n?.combine);r!==t&&C.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}};function Ce({queries:r,...s},t){const o=W(t),e=X(),n=Y(),a=h.useMemo(()=>r.map(u=>{const p=o.defaultQueryOptions(u);return p._optimisticResults=e?"isRestoring":"optimistic",p}),[r,o,e]);a.forEach(u=>{J(u);const p=o.getQueryCache().get(u.queryHash);Z(u,n,p)}),$(n);const[c]=h.useState(()=>new le(o,a,s)),[l,b,i]=c.getOptimisticResult(a,s.combine),d=!e&&s.subscribed!==!1;h.useSyncExternalStore(h.useCallback(u=>d?c.subscribe(C.batchCalls(u)):ee,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h.useEffect(()=>{c.setQueries(a,s)},[a,s,c]);const f=l.some((u,p)=>k(a[p],u))?l.flatMap((u,p)=>{const y=a[p];if(y){const x=new _(o,y);if(k(y,u))return P(y,x,n);se(u,e)&&P(y,x,n)}return[]}):[];if(f.length>0)throw Promise.all(f);const R=l.find((u,p)=>{const y=a[p];return y&&te({result:u,errorResetBoundary:n,throwOnError:y.throwOnError,query:o.getQueryCache().get(y.queryHash),suspense:y.suspense})});if(R?.error)throw R.error;return b(i())}var S="Radio",[he,j]=A(S),[pe,fe]=he(S),G=h.forwardRef((r,s)=>{const{__scopeRadio:t,name:o,checked:e=!1,required:n,disabled:a,value:c="on",onCheck:l,form:b,...i}=r,[d,v]=h.useState(null),f=O(s,p=>v(p)),R=h.useRef(!1),u=d?b||!!d.closest("form"):!0;return m.jsxs(pe,{scope:t,checked:e,disabled:a,children:[m.jsx(g.button,{type:"button",role:"radio","aria-checked":e,"data-state":D(e),"data-disabled":a?"":void 0,disabled:a,value:c,...i,ref:f,onClick:w(r.onClick,p=>{e||l?.(),u&&(R.current=p.isPropagationStopped(),R.current||p.stopPropagation())})}),u&&m.jsx(q,{control:d,bubbles:!R.current,name:o,value:c,checked:e,required:n,disabled:a,form:b,style:{transform:"translateX(-100%)"}})]})});G.displayName=S;var M="RadioIndicator",N=h.forwardRef((r,s)=>{const{__scopeRadio:t,forceMount:o,...e}=r,n=fe(M,t);return m.jsx(ie,{present:o||n.checked,children:m.jsx(g.span,{"data-state":D(n.checked),"data-disabled":n.disabled?"":void 0,...e,ref:s})})});N.displayName=M;var Re="RadioBubbleInput",q=h.forwardRef(({__scopeRadio:r,control:s,checked:t,bubbles:o=!0,...e},n)=>{const a=h.useRef(null),c=O(a,n),l=ue(t),b=ce(s);return h.useEffect(()=>{const i=a.current;if(!i)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==t&&f){const R=new Event("click",{bubbles:o});f.call(i,t),i.dispatchEvent(R)}},[l,t,o]),m.jsx(g.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...e,tabIndex:-1,ref:c,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});q.displayName=Re;function D(r){return r?"checked":"unchecked"}var be=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E="RadioGroup",[ve]=A(E,[Q,j]),L=Q(),B=j(),[me,ye]=ve(E),F=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,name:o,defaultValue:e,value:n,required:a=!1,disabled:c=!1,orientation:l,dir:b,loop:i=!0,onValueChange:d,...v}=r,f=L(t),R=re(b),[u,p]=oe({prop:n,defaultProp:e??null,onChange:d,caller:E});return m.jsx(me,{scope:t,name:o,required:a,disabled:c,value:u,onValueChange:p,children:m.jsx(ne,{asChild:!0,...f,orientation:l,dir:R,loop:i,children:m.jsx(g.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:R,...v,ref:s})})})});F.displayName=E;var T="RadioGroupItem",H=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,disabled:o,...e}=r,n=ye(T,t),a=n.disabled||o,c=L(t),l=B(t),b=h.useRef(null),i=O(s,b),d=n.value===e.value,v=h.useRef(!1);return h.useEffect(()=>{const f=u=>{be.includes(u.key)&&(v.current=!0)},R=()=>v.current=!1;return document.addEventListener("keydown",f),document.addEventListener("keyup",R),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",R)}},[]),m.jsx(ae,{asChild:!0,...c,focusable:!a,active:d,children:m.jsx(G,{disabled:a,required:n.required,checked:d,...l,...e,name:n.name,ref:i,onCheck:()=>n.onValueChange(e.value),onKeyDown:w(f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:w(e.onFocus,()=>{v.current&&b.current?.click()})})})});H.displayName=T;var ge="RadioGroupIndicator",U=h.forwardRef((r,s)=>{const{__scopeRadioGroup:t,...o}=r,e=B(t);return m.jsx(N,{...e,...o,ref:s})});U.displayName=ge;var we=F,Oe=H,Se=U;export{Oe as I,we as R,Se as a,Ce as u};