@theobourgeois/ytdb 0.2.17 → 0.2.18

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 (199) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +3 -1
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/routes-manifest.json +12 -0
  5. package/.next/server/app/[connectionId]/[schema]/[table]/page.js +1 -1
  6. package/.next/server/app/[connectionId]/[schema]/[table]/page.js.nft.json +1 -1
  7. package/.next/server/app/[connectionId]/[schema]/[table]/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/[connectionId]/diff/page.js +2 -2
  9. package/.next/server/app/[connectionId]/diff/page.js.nft.json +1 -1
  10. package/.next/server/app/[connectionId]/diff/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/[connectionId]/migrations/[setId]/page.js +1 -1
  12. package/.next/server/app/[connectionId]/migrations/[setId]/page.js.nft.json +1 -1
  13. package/.next/server/app/[connectionId]/migrations/[setId]/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/[connectionId]/migrations/page.js +1 -1
  15. package/.next/server/app/[connectionId]/migrations/page.js.nft.json +1 -1
  16. package/.next/server/app/[connectionId]/migrations/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/[connectionId]/page.js +1 -1
  18. package/.next/server/app/[connectionId]/page.js.nft.json +1 -1
  19. package/.next/server/app/[connectionId]/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/[connectionId]/query/page.js +1 -1
  21. package/.next/server/app/[connectionId]/query/page.js.nft.json +1 -1
  22. package/.next/server/app/[connectionId]/query/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/_global-error/page.js +2 -2
  24. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  25. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  26. package/.next/server/app/_global-error.html +1 -1
  27. package/.next/server/app/_global-error.rsc +1 -1
  28. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  29. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  30. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  31. package/.next/server/app/_not-found/page.js +1 -1
  32. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  33. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  34. package/.next/server/app/_not-found.html +1 -1
  35. package/.next/server/app/_not-found.rsc +2 -2
  36. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  37. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  38. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  39. package/.next/server/app/api/activity/route.js +2 -2
  40. package/.next/server/app/api/activity/route.js.nft.json +1 -1
  41. package/.next/server/app/api/adopt/route.js +1 -1
  42. package/.next/server/app/api/adopt/route.js.nft.json +1 -1
  43. package/.next/server/app/api/cell/route.js +2 -2
  44. package/.next/server/app/api/cell/route.js.nft.json +1 -1
  45. package/.next/server/app/api/definition/route.js +2 -2
  46. package/.next/server/app/api/definition/route.js.nft.json +1 -1
  47. package/.next/server/app/api/delete-rows/route.js +2 -2
  48. package/.next/server/app/api/delete-rows/route.js.nft.json +1 -1
  49. package/.next/server/app/api/detect/route.js +1 -133
  50. package/.next/server/app/api/detect/route.js.nft.json +1 -1
  51. package/.next/server/app/api/health/route.js +1 -1
  52. package/.next/server/app/api/health/route.js.nft.json +1 -1
  53. package/.next/server/app/api/insert-row/route.js +3 -3
  54. package/.next/server/app/api/insert-row/route.js.nft.json +1 -1
  55. package/.next/server/app/api/ledger/route.js +1 -1
  56. package/.next/server/app/api/ledger/route.js.nft.json +1 -1
  57. package/.next/server/app/api/lookup/route.js +3 -3
  58. package/.next/server/app/api/lookup/route.js.nft.json +1 -1
  59. package/.next/server/app/api/migrate/route.js +1 -1
  60. package/.next/server/app/api/migrate/route.js.nft.json +1 -1
  61. package/.next/server/app/api/note/route.js +1 -1
  62. package/.next/server/app/api/note/route.js.nft.json +1 -1
  63. package/.next/server/app/api/query/route.js +3 -3
  64. package/.next/server/app/api/query/route.js.nft.json +1 -1
  65. package/.next/server/app/api/reconcile/route.js +20 -0
  66. package/.next/server/app/api/reconcile/route.js.nft.json +1 -0
  67. package/.next/server/app/api/reconcile/route_client-reference-manifest.js +1 -0
  68. package/.next/server/app/api/rehearse/route.js +1 -0
  69. package/.next/server/app/api/rehearse/route.js.nft.json +1 -0
  70. package/.next/server/app/api/rehearse/route_client-reference-manifest.js +1 -0
  71. package/.next/server/app/api/related/route.js +3 -3
  72. package/.next/server/app/api/related/route.js.nft.json +1 -1
  73. package/.next/server/app/api/repo/route.js +1 -1
  74. package/.next/server/app/api/repo/route.js.nft.json +1 -1
  75. package/.next/server/app/api/rows/route.js +2 -2
  76. package/.next/server/app/api/rows/route.js.nft.json +1 -1
  77. package/.next/server/app/api/schema/route.js +3 -3
  78. package/.next/server/app/api/schema/route.js.nft.json +1 -1
  79. package/.next/server/app/api/tables/route.js +3 -3
  80. package/.next/server/app/api/tables/route.js.nft.json +1 -1
  81. package/.next/server/app/api/timeline/route.js +1 -1
  82. package/.next/server/app/api/timeline/route.js.nft.json +1 -1
  83. package/.next/server/app/api/update-row/route.js +3 -3
  84. package/.next/server/app/api/update-row/route.js.nft.json +1 -1
  85. package/.next/server/app/favicon.ico/route.js +1 -1
  86. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  87. package/.next/server/app/icon.svg/route.js +1 -1
  88. package/.next/server/app/icon.svg/route.js.nft.json +1 -1
  89. package/.next/server/app/index.html +1 -1
  90. package/.next/server/app/index.rsc +3 -3
  91. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  92. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  93. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  94. package/.next/server/app/page.js +2 -2
  95. package/.next/server/app/page.js.nft.json +1 -1
  96. package/.next/server/app/page_client-reference-manifest.js +1 -1
  97. package/.next/server/app-paths-manifest.json +3 -1
  98. package/.next/server/chunks/1421.js +1 -0
  99. package/.next/server/chunks/1813.js +1 -0
  100. package/.next/server/chunks/{430.js → 2430.js} +1 -1
  101. package/.next/server/chunks/{741.js → 4741.js} +1 -1
  102. package/.next/server/chunks/{125.js → 5125.js} +11 -7
  103. package/.next/server/chunks/5417.js +133 -0
  104. package/.next/server/chunks/5816.js +1 -0
  105. package/.next/server/chunks/6433.js +2 -0
  106. package/.next/server/chunks/6635.js +1 -0
  107. package/.next/server/chunks/6729.js +1 -0
  108. package/.next/server/chunks/7593.js +1 -0
  109. package/.next/server/chunks/7605.js +2 -0
  110. package/.next/server/chunks/7875.js +1 -0
  111. package/.next/server/chunks/{928.js → 7928.js} +1 -1
  112. package/.next/server/chunks/8161.js +2 -0
  113. package/.next/server/chunks/8202.js +1 -0
  114. package/.next/server/chunks/8842.js +1 -0
  115. package/.next/server/middleware-build-manifest.js +1 -1
  116. package/.next/server/middleware.js +1 -1
  117. package/.next/server/pages/404.html +1 -1
  118. package/.next/server/pages/500.html +1 -1
  119. package/.next/server/webpack-runtime.js +1 -1
  120. package/.next/static/bmRCG7iMkzXVlg-XFxDlO/_buildManifest.js +1 -0
  121. package/.next/static/chunks/1981-806ce42b1641772f.js +1 -0
  122. package/.next/static/chunks/9532-d620e60587f422d7.js +1 -0
  123. package/.next/static/chunks/app/[connectionId]/migrations/[setId]/page-e5120de390d302f1.js +1 -0
  124. package/.next/static/chunks/app/[connectionId]/migrations/page-b7e1a0568b6704d5.js +1 -0
  125. package/.next/static/chunks/app/_global-error/page-ad3ae203c81de67b.js +1 -0
  126. package/.next/static/chunks/app/api/activity/route-ad3ae203c81de67b.js +1 -0
  127. package/.next/static/chunks/app/api/adopt/route-ad3ae203c81de67b.js +1 -0
  128. package/.next/static/chunks/app/api/cell/route-ad3ae203c81de67b.js +1 -0
  129. package/.next/static/chunks/app/api/definition/route-ad3ae203c81de67b.js +1 -0
  130. package/.next/static/chunks/app/api/delete-rows/route-ad3ae203c81de67b.js +1 -0
  131. package/.next/static/chunks/app/api/detect/route-ad3ae203c81de67b.js +1 -0
  132. package/.next/static/chunks/app/api/health/route-ad3ae203c81de67b.js +1 -0
  133. package/.next/static/chunks/app/api/insert-row/route-ad3ae203c81de67b.js +1 -0
  134. package/.next/static/chunks/app/api/ledger/route-ad3ae203c81de67b.js +1 -0
  135. package/.next/static/chunks/app/api/lookup/route-ad3ae203c81de67b.js +1 -0
  136. package/.next/static/chunks/app/api/migrate/route-ad3ae203c81de67b.js +1 -0
  137. package/.next/static/chunks/app/api/note/route-ad3ae203c81de67b.js +1 -0
  138. package/.next/static/chunks/app/api/query/route-ad3ae203c81de67b.js +1 -0
  139. package/.next/static/chunks/app/api/reconcile/route-ad3ae203c81de67b.js +1 -0
  140. package/.next/static/chunks/app/api/rehearse/route-ad3ae203c81de67b.js +1 -0
  141. package/.next/static/chunks/app/api/related/route-ad3ae203c81de67b.js +1 -0
  142. package/.next/static/chunks/app/api/repo/route-ad3ae203c81de67b.js +1 -0
  143. package/.next/static/chunks/app/api/rows/route-ad3ae203c81de67b.js +1 -0
  144. package/.next/static/chunks/app/api/schema/route-ad3ae203c81de67b.js +1 -0
  145. package/.next/static/chunks/app/api/tables/route-ad3ae203c81de67b.js +1 -0
  146. package/.next/static/chunks/app/api/timeline/route-ad3ae203c81de67b.js +1 -0
  147. package/.next/static/chunks/app/api/update-row/route-ad3ae203c81de67b.js +1 -0
  148. package/.next/static/chunks/f97e080b-0509045eeda7ac08.js +1 -0
  149. package/.next/static/chunks/next/dist/client/components/builtin/app-error-ad3ae203c81de67b.js +1 -0
  150. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ad3ae203c81de67b.js +1 -0
  151. package/.next/static/chunks/next/dist/client/components/builtin/not-found-ad3ae203c81de67b.js +1 -0
  152. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ad3ae203c81de67b.js +1 -0
  153. package/.next/static/css/54a62baacc492c6d.css +1 -0
  154. package/package.json +1 -1
  155. package/.next/server/chunks/161.js +0 -2
  156. package/.next/server/chunks/202.js +0 -1
  157. package/.next/server/chunks/208.js +0 -1
  158. package/.next/server/chunks/421.js +0 -1
  159. package/.next/server/chunks/593.js +0 -1
  160. package/.next/server/chunks/605.js +0 -2
  161. package/.next/server/chunks/635.js +0 -1
  162. package/.next/server/chunks/729.js +0 -1
  163. package/.next/server/chunks/813.js +0 -1
  164. package/.next/server/chunks/814.js +0 -2
  165. package/.next/server/chunks/842.js +0 -1
  166. package/.next/server/chunks/875.js +0 -1
  167. package/.next/static/Rs4wmCBhbkxl8S4ZIgteG/_buildManifest.js +0 -1
  168. package/.next/static/chunks/1981-f89f2873291b0dfe.js +0 -1
  169. package/.next/static/chunks/8098-f4a0693371faa888.js +0 -1
  170. package/.next/static/chunks/app/[connectionId]/migrations/[setId]/page-696ad0a48678eac9.js +0 -1
  171. package/.next/static/chunks/app/[connectionId]/migrations/page-b731d6df40cedc5e.js +0 -1
  172. package/.next/static/chunks/app/_global-error/page-f8c12c454482851d.js +0 -1
  173. package/.next/static/chunks/app/api/activity/route-f8c12c454482851d.js +0 -1
  174. package/.next/static/chunks/app/api/adopt/route-f8c12c454482851d.js +0 -1
  175. package/.next/static/chunks/app/api/cell/route-f8c12c454482851d.js +0 -1
  176. package/.next/static/chunks/app/api/definition/route-f8c12c454482851d.js +0 -1
  177. package/.next/static/chunks/app/api/delete-rows/route-f8c12c454482851d.js +0 -1
  178. package/.next/static/chunks/app/api/detect/route-f8c12c454482851d.js +0 -1
  179. package/.next/static/chunks/app/api/health/route-f8c12c454482851d.js +0 -1
  180. package/.next/static/chunks/app/api/insert-row/route-f8c12c454482851d.js +0 -1
  181. package/.next/static/chunks/app/api/ledger/route-f8c12c454482851d.js +0 -1
  182. package/.next/static/chunks/app/api/lookup/route-f8c12c454482851d.js +0 -1
  183. package/.next/static/chunks/app/api/migrate/route-f8c12c454482851d.js +0 -1
  184. package/.next/static/chunks/app/api/note/route-f8c12c454482851d.js +0 -1
  185. package/.next/static/chunks/app/api/query/route-f8c12c454482851d.js +0 -1
  186. package/.next/static/chunks/app/api/related/route-f8c12c454482851d.js +0 -1
  187. package/.next/static/chunks/app/api/repo/route-f8c12c454482851d.js +0 -1
  188. package/.next/static/chunks/app/api/rows/route-f8c12c454482851d.js +0 -1
  189. package/.next/static/chunks/app/api/schema/route-f8c12c454482851d.js +0 -1
  190. package/.next/static/chunks/app/api/tables/route-f8c12c454482851d.js +0 -1
  191. package/.next/static/chunks/app/api/timeline/route-f8c12c454482851d.js +0 -1
  192. package/.next/static/chunks/app/api/update-row/route-f8c12c454482851d.js +0 -1
  193. package/.next/static/chunks/f97e080b-e536bdbfe64c5a7e.js +0 -1
  194. package/.next/static/chunks/next/dist/client/components/builtin/app-error-f8c12c454482851d.js +0 -1
  195. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-f8c12c454482851d.js +0 -1
  196. package/.next/static/chunks/next/dist/client/components/builtin/not-found-f8c12c454482851d.js +0 -1
  197. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-f8c12c454482851d.js +0 -1
  198. package/.next/static/css/5612558bae080ad4.css +0 -1
  199. /package/.next/static/{Rs4wmCBhbkxl8S4ZIgteG → bmRCG7iMkzXVlg-XFxDlO}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5838],{15923:(e,n,t)=>{"use strict";t.d(n,{T:()=>r,r:()=>i});let s=new Set;function r(e){return s.add(e),()=>{s.delete(e)}}function i(){for(let e of s)e()}},34263:(e,n,t)=>{"use strict";t.d(n,{En:()=>c,Pc:()=>d,jl:()=>o});var s=t(1934),r=t(31692),i=t(40980),a=t(63307);let l="ytdb:queries";(0,a.q)("db-studio:queries",l);let o=144,d=800,c=(0,s.v)()((0,r.Zr)(e=>({drafts:{},editorHeight:224,history:[],setDraft:(n,t)=>e(e=>({drafts:{...e.drafts,[n]:t}})),setEditorHeight:n=>e({editorHeight:Math.min(d,Math.max(o,Math.round(n)))}),record:(n,t)=>e(e=>{let s=t.trim();if(!s)return e;let r=e.history.find(e=>e.connectionId===n&&e.sql===s),a={id:r?.id??(0,i.z)(),connectionId:n,sql:s,executedAt:Date.now()},l=0,o=0;return{history:[a,...e.history.filter(e=>e.id!==a.id)].filter(e=>!(l>=200)&&!(o+e.sql.length>1e6)&&(l+=1,o+=e.sql.length,!0))}}),remove:n=>e(e=>({history:e.history.filter(e=>e.id!==n)}))}),{name:l}))},52310:(e,n,t)=>{Promise.resolve().then(t.bind(t,92666))},79781:(e,n,t)=>{"use strict";t.d(n,{$C:()=>c,yG:()=>u});var s=t(73321),r=t(12115),i=t(27529),a=t(15923),l=t(20185),o=t(69586),d=t(36331);function c(){let e=(0,s.useRouter)(),n=(0,s.usePathname)(),{connection:t}=(0,d.k)(),c=(0,o.Z)(e=>e.connections);return(0,r.useCallback)(async s=>{if(s===t.id)return;let r=c.find(e=>e.id===s);if(!r)return;(0,a.r)();let o=(0,l.ZG)(n),d=!!t.layoutGroup&&t.layoutGroup===r.layoutGroup,u=!0;if("table"===o.kind&&!d)try{var m,p;m=await i.F.tables(r.url),p=o.table,u=m.some(e=>e.schema===p.schema&&e.name===p.name)}catch{u=!1}e.push((0,l.gZ)(n,s,{tableExists:u}))},[t.id,t.layoutGroup,c,n,e])}function u(){let{connection:e}=(0,d.k)(),n=(0,o.Z)(e=>e.connections),t=c(),s=function(e,n){let t=e.findIndex(e=>e.id===n);if(!(e.length<2)&&-1!==t)return e[(t+1)%e.length]}(n,e.id);return{run:()=>s?t(s.id):Promise.resolve(),enabled:void 0!==s,next:s}}},92666:(e,n,t)=>{"use strict";t.d(n,{MigrationDetail:()=>X});var s=t(95155),r=t(98500),i=t.n(r),a=t(73321),l=t(12115),o=t(13267),d=t(36331),c=t(79781),u=t(17491),m=t(89239),p=t(72264),x=t(35942),h=t(87364),g=t(27529),f=t(25),j=t(62417),v=t(56012),b=t(74590),y=t(9385),k=t(79668),N=t(34263),S=t(40980),C=t(72194),w=t(40891),$=t(30374),R=t(28335);let z="w-24",A="w-[104px]";function M({checked:e,label:n,onToggle:t}){return(0,s.jsx)("button",{type:"button",role:"checkbox","aria-checked":e,"aria-label":n,title:n,onMouseDown:e=>e.shiftKey&&e.preventDefault(),onClick:e=>t(e.shiftKey),className:(0,S.cn)("flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-[5px] border outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/60",e?"border-foreground bg-foreground text-background":"border-input hover:border-foreground/50"),children:"mixed"===e?(0,s.jsx)(o.uPM,{className:"size-3"}):e?(0,s.jsx)(o.wiW,{className:"size-3"}):null})}let O={applied:"applied",drifted:"applied, but the file changed since",pending:"not applied",unknown:"not read yet"};function q({status:e}){return"applied"===e?(0,s.jsx)(o.wiW,{className:"size-4 text-emerald-600 dark:text-emerald-400"}):"drifted"===e?(0,s.jsx)(o.e5t,{className:"size-3.5 text-amber-600 dark:text-amber-400"}):"unknown"===e?(0,s.jsx)("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}):(0,s.jsx)(o.uPM,{className:"size-3.5 text-muted-foreground/40"})}function F({step:e,environments:n,targetId:t,status:r,isNewestApplied:i,expanded:a,busy:d,editable:c=!0,drift:u,selected:x,onSelect:h,onToggle:g,actions:j}){let[v,b]=(0,l.useState)(null),y="changes"!==v||u?v??(u?"changes":"apply"):"apply",k="revert"===y?"revert":"apply",[N,C]=(0,l.useState)(!1),E="revert"===k?e.revertSql??"":e.applySql,D=(0,f.qb)(e.transaction),_=(0,f.TA)(e.transaction),I=[];async function T(){await (0,w.mw)(E),C(!0),window.setTimeout(()=>C(!1),1500)}return"drifted"===r&&"changes"!==y&&I.push("This file changed after it was applied here, so it is no longer the migration that ran."),_&&I.push(_),(0,s.jsxs)("div",{className:"border-b last:border-b-0",children:[(0,s.jsxs)("div",{className:(0,S.cn)("flex h-10 items-center transition-colors hover:bg-muted/40",x&&"bg-muted/30",d&&"opacity-60"),children:[(0,s.jsx)("span",{className:"flex h-10 shrink-0 items-center pl-3",children:(0,s.jsx)(M,{checked:x,label:x?`Deselect ${e.version}`:`Select ${e.version}`,onToggle:h})}),(0,s.jsxs)("button",{type:"button","aria-expanded":a,"aria-label":a?`Hide SQL for ${e.version}`:`Show SQL for ${e.version}`,onClick:g,className:"flex h-8 min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md px-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/60",children:[(0,s.jsx)(o.nNJ,{className:(0,S.cn)("size-3.5 shrink-0 text-muted-foreground/70 transition-transform",a&&"rotate-90")}),(0,s.jsx)("span",{className:"shrink-0 font-mono text-xs text-muted-foreground",children:e.version}),(0,s.jsx)("span",{className:"min-w-0 truncate text-sm",children:e.name}),D&&(0,s.jsx)("span",{className:"shrink-0 rounded border border-amber-600/25 bg-amber-500/10 px-1.5 text-[10px] text-amber-700 dark:text-amber-400",children:D})]}),n.map(n=>{let r=n.connection.id===t;return(0,s.jsx)("span",{title:n.error?`${n.connection.name}: ${n.error}`:`${e.version} is ${O[n.status]} on ${n.connection.name}${n.entry?` — ${function(e){if(!e)return"";let n=new Date(e.appliedAt);return Number.isNaN(n.getTime())?e.appliedAt:n.toLocaleString()}(n.entry)}`:""}`,className:(0,S.cn)("flex h-10 shrink-0 items-center justify-center",z,r&&"bg-foreground/[0.04]"),children:(0,s.jsx)(q,{status:n.status})},n.connection.id)}),(0,s.jsxs)("div",{className:(0,S.cn)("flex shrink-0 items-center justify-end gap-1 pr-2 pl-1",A),children:["pending"===r&&(0,s.jsx)(m.$,{size:"xs",variant:"outline",disabled:d,onClick:j.onApplyThrough,children:"Apply"}),i&&e.revertSql&&(0,s.jsxs)(m.$,{size:"xs",variant:"ghost",disabled:d,onClick:j.onRevertThrough,children:[(0,s.jsx)(o.ij9,{"data-icon":"inline-start"}),"Revert"]}),(0,s.jsxs)(p.rI,{children:[(0,s.jsx)(p.ty,{render:(0,s.jsx)(m.$,{size:"icon-xs",variant:"ghost","aria-label":`Actions for ${e.version}`}),className:"cursor-pointer",children:(0,s.jsx)(o.YKd,{})}),(0,s.jsxs)(p.SQ,{align:"end",className:"min-w-56",children:[(0,s.jsx)(p._2,{disabled:d||"applied"===r,onClick:j.onApplyThrough,children:"Apply everything through here"}),(0,s.jsx)(p._2,{disabled:d||"applied"===r,onClick:j.onApplyOne,children:"Apply only this one"}),(0,s.jsx)(p._2,{disabled:d||"pending"===r||!e.revertSql,onClick:j.onRevertThrough,children:"Revert back through here"}),(0,s.jsx)(p.mB,{}),(0,s.jsxs)(p._2,{disabled:d||"applied"===r,onClick:j.onMarkApplied,children:[(0,s.jsx)(o.nXx,{}),"Mark as already applied"]}),(0,s.jsxs)(p._2,{disabled:d||"pending"===r,onClick:j.onMarkPending,children:[(0,s.jsx)(o.fJ4,{}),"Mark as not applied"]}),(0,s.jsx)(p.mB,{}),c&&(0,s.jsxs)(p._2,{onClick:j.onAttachRevert,children:[(0,s.jsx)(o.W4E,{}),e.revertSql?"Replace revert file…":"Add a revert file…"]}),(0,s.jsxs)(p._2,{onClick:()=>j.onOpenInEditor(E),children:[(0,s.jsx)(o.Uoo,{}),"Open ",k," SQL in editor"]}),(0,s.jsxs)(p._2,{onClick:()=>void T(),children:[(0,s.jsx)(o.hX7,{}),"Copy ",k," SQL"]}),c&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.mB,{}),(0,s.jsx)(p._2,{variant:"destructive",onClick:j.onRemove,children:"Remove from this set"})]})]})]})]})]}),a&&(0,s.jsxs)("div",{className:"border-t bg-muted/25",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[(0,s.jsx)($.x,{label:`SQL for ${e.version}`,value:y,onChange:b,options:[...u?[{value:"changes",label:"Changes"}]:[],{value:"apply",label:"Apply"},{value:"revert",label:"Revert"}]}),"changes"===y&&u?(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-3 font-mono text-[11px]",children:[(0,s.jsxs)("span",{className:"shrink-0 text-red-600 dark:text-red-400",children:["− ran on ",u.connectionName]}),(0,s.jsxs)("span",{className:"truncate text-emerald-600 dark:text-emerald-400",children:["+ ",e.applyPath]})]}):(0,s.jsx)("span",{className:"min-w-0 truncate font-mono text-[11px] text-muted-foreground",children:"revert"===y?e.revertPath??"no revert file":e.applyPath}),"changes"!==y&&(0,s.jsxs)(m.$,{size:"xs",variant:"ghost",className:"ml-auto",onClick:()=>void T(),children:[N?(0,s.jsx)(o.wiW,{"data-icon":"inline-start"}):(0,s.jsx)(o.hX7,{"data-icon":"inline-start"}),N?"Copied":"Copy"]})]}),I.length>0&&(0,s.jsx)("ul",{className:"space-y-1 px-3 pb-2",children:I.map(e=>(0,s.jsxs)("li",{className:"flex gap-1.5 text-[11px] text-amber-700 dark:text-amber-400",children:[(0,s.jsx)(o.e5t,{className:"mt-px size-3 shrink-0"}),(0,s.jsx)("span",{children:e})]},e))}),"changes"===y&&u?u.error?(0,s.jsx)("p",{className:"px-3 pb-3 font-mono text-xs text-destructive",children:u.error}):void 0===u.appliedSql?(0,s.jsxs)("p",{className:"px-3 pb-3 text-xs text-muted-foreground",children:["Reading what ran on ",u.connectionName,"…"]}):null===u.appliedSql?(0,s.jsxs)("p",{className:"px-3 pb-3 text-xs text-muted-foreground",children:[u.connectionName," did not keep the SQL it ran, so there is nothing to compare against."]}):(0,s.jsx)(R.u,{before:u.appliedSql,after:e.applySql,className:"max-h-96 pb-2"}):E?(0,s.jsx)(w.os,{sql:E,className:"max-h-72 overflow-auto px-3 pb-3"}):(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 pb-3 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{children:"No revert file, so this one cannot be undone from here."}),c&&(0,s.jsxs)(m.$,{size:"xs",variant:"outline",onClick:j.onAttachRevert,children:[(0,s.jsx)(o.W4E,{"data-icon":"inline-start"}),"Add one"]})]})]})]})}function E({environments:e,targetId:n,onSelect:t}){let r=e.find(e=>e.connection.id===n);return r?(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:"Running against"}),(0,s.jsxs)(p.rI,{children:[(0,s.jsxs)(p.ty,{disabled:e.length<2,className:"flex h-7 cursor-pointer items-center gap-1.5 rounded-lg border bg-background px-2 text-xs font-medium outline-none hover:bg-muted/60 focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-default data-open:bg-muted/60",children:[(0,s.jsx)(C.F,{connection:r.connection}),(0,s.jsx)("span",{className:"max-w-32 truncate",children:r.connection.name})]}),(0,s.jsx)(p.SQ,{align:"start",className:"min-w-52",children:e.map(e=>(0,s.jsxs)(p._2,{onClick:()=>t(e.connection.id),className:e.connection.id===n?"font-medium":void 0,children:[(0,s.jsx)(C.F,{connection:e.connection}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.connection.name}),(0,s.jsxs)("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:[e.summary.applied,"/",e.summary.total]})]},e.connection.id))})]})]}):null}function D({environments:e,targetId:n,caption:t,loading:r,selection:i,onSelect:a,onCompare:l}){return(0,s.jsxs)("div",{className:"flex h-11 shrink-0 items-center border-b bg-muted/20",children:[(0,s.jsx)("span",{className:"flex h-11 shrink-0 items-center pl-3",children:(0,s.jsx)(M,{checked:i.checked,label:i.checked?"Clear selection":"Select all",onToggle:()=>i.onToggle()})}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate px-2 text-xs text-muted-foreground",children:t}),e.map(e=>{let{connection:t,summary:i,ledger:l,error:o}=e,d=t.id===n;return(0,s.jsxs)("button",{type:"button",disabled:d,"aria-current":d?"true":void 0,title:d?`${t.name} is what Apply and Revert run against`:`Run against ${t.name} instead`,onClick:()=>a(t.id),className:(0,S.cn)("flex h-11 shrink-0 flex-col items-center justify-center gap-0.5 border-l text-[11px] outline-none",z,d?"cursor-default bg-foreground/[0.04] font-medium":"cursor-pointer text-muted-foreground hover:bg-muted/60 hover:text-foreground",r&&"opacity-60"),children:[(0,s.jsxs)("span",{className:"flex max-w-full items-center gap-1",children:[(0,s.jsx)(C.F,{connection:t,className:"size-1.5"}),(0,s.jsx)("span",{className:"truncate",children:t.name})]}),o?(0,s.jsx)("span",{className:"text-destructive",children:"unreachable"}):l?(0,s.jsxs)("span",{className:"tabular-nums text-muted-foreground/80",children:[i.applied,"/",i.total,i.drifted>0&&(0,s.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:" !"})]}):(0,s.jsx)("span",{className:"text-muted-foreground/70",children:"reading…"})]},t.id)}),(0,s.jsx)("div",{className:(0,S.cn)("flex shrink-0 items-center justify-end border-l pr-2 pl-1",A),children:e.length>1&&(0,s.jsx)(m.$,{size:"icon-xs",variant:"ghost",title:"Compare the two schemas","aria-label":"Compare schemas",onClick:()=>{let t=e.find(e=>e.connection.id!==n);t&&l(t.connection.id)},children:(0,s.jsx)(o.R4X,{})})})]})}var _=t(42763),I=t(60529),T=t(33807);function L({schema:e,found:n,onOpenChange:t,onSave:r}){let[i,a]=(0,l.useState)(e),o=i.trim(),d=(0,v.hD)(o),c=n.filter(e=>e.schema!==o);function u(){d&&(r(o),t(!1))}return(0,s.jsx)(_.lG,{open:!0,onOpenChange:t,children:(0,s.jsxs)(_.Cf,{className:"sm:max-w-md",children:[(0,s.jsxs)(_.c7,{children:[(0,s.jsx)(_.L3,{children:"Ledger schema"}),(0,s.jsx)(_.rr,{children:"Where each database keeps its record of what has run. Created on the first apply."})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(T.J,{htmlFor:"ledger-schema",children:"Schema"}),(0,s.jsx)(I.p,{id:"ledger-schema",value:i,spellCheck:!1,autoComplete:"off","aria-invalid":o.length>0&&!d,onChange:e=>a(e.target.value),onKeyDown:e=>"Enter"===e.key&&u()}),(0,s.jsx)("p",{className:"font-mono text-xs text-muted-foreground",children:d?`${o}.${v.R9}`:"\xa0"}),o.length>0&&!d&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:"Letters, digits and underscores only, starting with a letter or underscore."})]}),c.length>0&&(0,s.jsxs)("p",{className:"rounded-md border border-amber-600/25 bg-amber-500/8 px-3 py-2 text-xs",children:[c.map(e=>`${e.name} keeps its ledger in ${e.schema}`).join("; "),". That one stays where it is."]}),(0,s.jsxs)(_.Es,{children:[o!==v.aC&&(0,s.jsx)(m.$,{variant:"ghost",onClick:()=>a(v.aC),children:"Reset"}),(0,s.jsx)(m.$,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),(0,s.jsx)(m.$,{disabled:!d,onClick:u,children:"Save"})]})]})})}var P=t(17021),B=t(41069),G=t(77649),V=t(27013),Y=t(18349);function Q({initial:e,file:n,onOpenChange:t,onSave:r}){let[i,a]=(0,l.useState)(e),[o,d]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),p=i.trim()!==e.trim();async function x(e){if(e?.preventDefault(),p&&!o){d(!0),u(null);try{await r(i.trim()),t(!1)}catch(e){u(e instanceof Error?e.message:String(e))}finally{d(!1)}}}return(0,s.jsx)(_.lG,{open:!0,onOpenChange:e=>!o&&t(e),children:(0,s.jsx)(_.Cf,{className:"sm:max-w-lg",showCloseButton:!1,children:(0,s.jsxs)("form",{onSubmit:e=>void x(e),className:"flex flex-col gap-4",children:[(0,s.jsx)(_.c7,{children:(0,s.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,s.jsx)(_.L3,{children:"Note"}),n&&(0,s.jsx)("span",{className:"ml-auto truncate font-mono text-[11px] text-muted-foreground",title:"Written into the migration's folder, to commit with the SQL",children:n})]})}),(0,s.jsx)(Y.T,{autoFocus:!0,"aria-label":"Note",value:i,maxLength:v.XG,placeholder:"Apply 0001–0007, deploy the app, then apply 0008.",className:"max-h-[50vh] min-h-32",onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.metaKey||e.ctrlKey)&&x()}}),c&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:c}),(0,s.jsxs)(_.Es,{children:[(0,s.jsx)(m.$,{type:"button",variant:"ghost",disabled:o,onClick:()=>t(!1),children:"Cancel"}),(0,s.jsx)(m.$,{type:"submit",disabled:!p||o,children:o?"Saving…":"Save"})]})]})})})}var K=t(59221),U=t(83504),W=t(71612);function X({setId:e}){let n=(0,a.useRouter)(),{connection:t,tables:r}=(0,d.k)(),u=(0,k.jV)(e=>e.addFiles),C=(0,k.jV)(e=>e.renameSet),w=(0,k.jV)(e=>e.setNote),$=(0,k.jV)(e=>e.removeSet),R=(0,k.jV)(e=>e.removeStep),z=(0,k.jV)(e=>e.record),A=(0,k.jV)(e=>e.ledgerSchema),M=(0,k.jV)(e=>e.setLedgerSchema),O=(0,k.Ss)(e),{root:q,checkout:_}=(0,k.ox)(t.id),I=(0,W.y)((0,v.km)(e)?q:null,_),T=(0,v.km)(e)?I.data?.sets.find(n=>n.id===e)??null:O,Y=!!T?.source,K=(0,b.gz)(t.id),en=(0,N.En)(e=>e.setDraft),et=(0,c.$C)(),[es,er]=(0,l.useState)("migrations"),[ei,ea]=(0,l.useState)([]),[el,eo]=(0,l.useState)([]),ed=(0,l.useRef)(null),[ec,eu]=(0,l.useState)(null),[em,ep]=(0,l.useState)(null),[ex,eh]=(0,l.useState)(!1),[eg,ef]=(0,l.useState)(!1),[ej,ev]=(0,l.useState)(!1),[eb,ey]=(0,l.useState)(null),[ek,eN]=(0,l.useState)(null),[eS,eC]=(0,l.useState)(!1),[ew,e$]=(0,l.useState)(!1),[eR,ez]=(0,l.useState)(!1),eA=(0,l.useRef)(null),eM=(0,l.useRef)(!1),eO=(0,l.useMemo)(()=>[t,...K],[t,K]),eq=eO.map(e=>e.url).join("|"),eF=(0,h.Y)(`ledgers:${A}:${eq}`,async e=>Object.fromEntries(await Promise.all(eO.map(async n=>{try{return[n.id,{ledger:await g.F.ledger(n.url,A,e),error:null}]}catch(t){if(e.aborted)throw t;return[n.id,{ledger:null,error:t instanceof Error?t.message:String(t)}]}})))),eE=eF.data?.[t.id]??null,eD=T?.name??"",e_=(0,l.useMemo)(()=>(0,j.Gf)(eE?.ledger,eD),[eE?.ledger,eD]),eI=(0,l.useMemo)(()=>eO.map(e=>{let n=eF.data?.[e.id]??null,t=(0,j.Gf)(n?.ledger,eD);return{connection:e,ledger:t,error:n?.error??null,summary:(0,j.eh)(T,t)}}),[eO,eF.data,T,eD]),eT=(0,l.useMemo)(()=>{let e=new Set;for(let n of T?.steps??[])if(ei.includes(n.version))for(let t of eI)"drifted"===(0,j.FY)(n,t.ledger)&&e.add(t.connection.id);return eO.filter(n=>e.has(n.id))},[T,ei,eI,eO]),eL=(0,h.Y)(`stored:${A}:${eT.map(e=>e.url).join("|")}`,async e=>Object.fromEntries(await Promise.all(eT.map(async n=>{try{return[n.id,{ledger:await g.F.ledger(n.url,A,e,!0),error:null}]}catch(t){if(e.aborted)throw t;return[n.id,{ledger:null,error:t instanceof Error?t.message:String(t)}]}})))),eP=`/${encodeURIComponent(t.id)}/migrations`,eB=(0,k.jV)(e=>e.history),eG=(0,l.useMemo)(()=>(0,y.x)(eI.map(e=>({connection:e.connection,ledger:e.ledger})),eB).filter(e=>e.setName===eD),[eI,eB,eD]),eV=(0,j.eh)(T,e_),eY=(0,l.useMemo)(()=>(0,j.nb)(T,e_),[T,e_]),eQ=(0,j.kB)(T,e_),eK=(0,l.useCallback)(e=>{er("migrations"),ep(null),ef(!1),eu({steps:[e],blockedBy:null,direction:"apply"})},[]),eU=(0,l.useCallback)((e,n)=>T&&T.name===e?T.steps.find(e=>e.version===n)??null:null,[T]),eW=(0,l.useCallback)(n=>{ey(u(e,n.files)),er("migrations")},[u,e]),eX=(0,G.$)(eW);function eH(e,n,t=!1){(0!==n.steps.length||n.blockedBy)&&(ep(null),ef(!1),eu({...n,direction:e,recordOnly:t}))}function eZ(e,n){return"apply"===n?e.applySql:e.revertSql}async function eJ(){if(!ec||!T)return;ef(!0),eh(!0);let e=ec.steps.map(e=>({version:e.version,name:e.name,status:"running"}));ep(e);try{let n=await g.F.rehearse(t.url,{steps:ec.steps.map(e=>({version:e.version,name:e.name,sql:eZ(e,ec.direction)??""}))}),s=new Map(n.steps.map(e=>[e.version,e]));e=e.map(e=>{let t=s.get(e.version);return t?{...e,status:"ok",durationMs:t.durationMs}:n.failed?.version===e.version?{...e,status:"failed",error:n.failed.error}:{...e,status:"skipped"}})}catch(t){let n=t instanceof Error?t.message:String(t);e=e.map((e,t)=>0===t?{...e,status:"failed",error:n}:{...e,status:"skipped"})}ep(e),eh(!1)}function e0(e){return{steps:e,blockedBy:null}}async function e1(){if(!ec||!T)return;eM.current=!1,ef(!1),eh(!0);let e=ec.steps.map(e=>({version:e.version,name:e.name,status:"waiting"}));ep(e);let n=(n,t)=>{ep(e=e.map((e,s)=>s===n?{...e,...t}:e))},s=n=>{ep(e=e.map((e,t)=>t>=n&&"waiting"===e.status?{...e,status:"skipped"}:e))};for(let[e,r]of ec.steps.entries()){if(eM.current){s(e);break}let i="apply"===ec.direction?r.applySql:r.revertSql;if(!i&&!ec.recordOnly){n(e,{status:"failed",error:"No revert file for this migration."}),s(e+1);break}n(e,{status:"running"});let a=crypto.randomUUID();try{let s=await g.F.migrate(t.url,{runId:a,direction:ec.direction,version:r.version,name:r.name,checksum:r.checksum,setName:T.name,sql:i??"",revertSql:"apply"===ec.direction?r.revertSql:void 0,ledgerSchema:A,recordOnly:ec.recordOnly});n(e,{status:"ok",durationMs:s.durationMs}),z({runId:s.runId??a,setId:T.id,setName:T.name,connectionId:t.id,connectionName:t.name,direction:ec.direction,version:r.version,name:r.name,status:"ok",recorded:ec.recordOnly,durationMs:s.durationMs})}catch(l){let i=l instanceof Error?l.message:String(l);n(e,{status:"failed",error:i}),s(e+1),z({runId:a,setId:T.id,setName:T.name,connectionId:t.id,connectionName:t.name,direction:ec.direction,version:r.version,name:r.name,status:"failed",durationMs:0,error:i});break}}eh(!1),eF.reload(),eL.reload(),r.reload(),e.every(e=>"ok"===e.status)&&eo([])}function e2(e){en(t.id,e),n.push(`/${encodeURIComponent(t.id)}/query`)}function e3(e){et(e)}async function e5(e){T&&(T.source?(await g.F.note(T.source.root,T.source.path,e),I.reload()):w(T.id,e))}async function e4(e){let n=e?.[0];eN(null),n&&ek&&T&&ey(u(T.id,[{path:`revert/${ek}_${n.name}`,text:await n.text()}]))}if(!T){let n=(0,v.km)(e)&&I.loading;return(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,s.jsx)(H,{name:n?"Reading…":"Not found"}),(0,s.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 text-muted-foreground",children:n?(0,s.jsx)("p",{className:"text-sm",children:"Reading the folder…"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"text-sm",children:I.error?I.error:(0,v.km)(e)?"That migration is not in the folder on the branch you have checked out.":"That migration is no longer here."}),(0,s.jsx)(i(),{href:eP,className:"text-foreground underline underline-offset-4",children:"All migrations"})]})})]})}let e6=new Set(el),e7=T.steps.filter(e=>e6.has(e.version)).length,e9=e7>0,e8=e9?(0,j.DM)(T,e_,e6):(0,j.gj)(T,e_),ne=e9?(0,j.n9)(T,e_,e6):(0,j.e)(T,e_),nn=ex||eF.loading||I.loading;return(0,s.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",onDragOver:e=>{!Y&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),ev(!0))},children:[(0,s.jsxs)(H,{name:T?.name??"",indexHref:eP,children:[T.source&&(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-1 text-[11px] text-muted-foreground",title:`Read from ${T.source.path}`,children:[(0,s.jsx)(o.WzY,{className:"size-3.5 shrink-0"}),(0,s.jsx)("span",{className:"max-w-48 truncate font-mono",children:T.source.path}),I.data?.git&&(0,s.jsxs)("span",{className:"shrink-0 rounded border px-1.5 font-mono text-[10px]",children:[I.data.git.branch,I.data.git.dirty&&"*"]})]}),(0,s.jsx)(E,{environments:eI,targetId:t.id,onSelect:e3}),(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,s.jsx)(m.$,{size:"icon-sm",variant:"ghost",disabled:eF.loading||I.loading,"aria-label":"Refresh",title:Y?"Re-read the files and every environment's ledger":"Re-read every environment's ledger",onClick:function(){eF.reload(),eL.reload(),Y&&I.reload()},children:(0,s.jsx)(o.oS8,{className:(0,S.cn)((eF.loading||I.loading)&&"animate-spin")})}),!Y&&(0,s.jsxs)(m.$,{size:"sm",variant:"ghost",onClick:()=>ev(!0),children:[(0,s.jsx)(o.FeY,{"data-icon":"inline-start"}),"Import"]}),(0,s.jsxs)(p.rI,{children:[(0,s.jsx)(p.ty,{render:(0,s.jsx)(m.$,{size:"icon-sm",variant:"ghost","aria-label":"More migration actions"}),className:"cursor-pointer",children:(0,s.jsx)(o.YKd,{})}),(0,s.jsxs)(p.SQ,{align:"end",className:"min-w-64",children:[(0,s.jsxs)(p._2,{disabled:nn||0===e8.steps.length,onClick:()=>eH("apply",e0(e8.steps),!0),children:[(0,s.jsx)(o.nXx,{}),"Mark ",e8.steps.length," as already applied"]}),(0,s.jsx)(p.mB,{}),(0,s.jsxs)(p._2,{disabled:nn||0===ne.steps.length,onClick:()=>eH("revert",ne),children:[(0,s.jsx)(o.ij9,{}),e9?`Revert ${ne.steps.length} selected on ${t.name}`:`Revert everything on ${t.name}`]}),(0,s.jsx)(p.mB,{}),(0,s.jsxs)(p._2,{onClick:()=>ez(!0),children:[(0,s.jsx)(o.UA_,{}),T.note?"Edit note":"Add note"]}),!Y&&(0,s.jsxs)(p._2,{onClick:()=>e$(!0),children:[(0,s.jsx)(o.NOV,{}),"Rename"]}),(0,s.jsxs)(p._2,{onClick:()=>eC(!0),children:[(0,s.jsx)(o.ooN,{}),"Ledger table",(0,s.jsxs)("span",{className:"ml-auto pl-3 font-mono text-[11px] text-muted-foreground",children:[A,".",v.R9]})]}),!Y&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.mB,{}),(0,s.jsx)(p._2,{variant:"destructive",onClick:function(){T&&($(T.id),n.push(eP))},children:"Forget this migration"})]})]})]}),(0,s.jsxs)(m.$,{size:"sm",disabled:nn||0===e8.steps.length,onClick:()=>eH("apply",e8),children:[(0,s.jsx)(o.eGB,{"data-icon":"inline-start"}),0===e8.steps.length?e9?"Nothing selected to apply":"Up to date":`Apply ${e8.steps.length}${e9?" selected":""} to ${t.name}`]})]})]}),eb&&(0,s.jsx)(J,{report:eb,onDismiss:()=>ey(null)}),eX.error&&(0,s.jsx)("p",{className:"border-b bg-destructive/5 px-4 py-1.5 text-xs text-destructive",children:eX.error}),"migrations"===es&&T.note&&(0,s.jsx)(Z,{note:T.note,notePath:T.source?.notePath??null,onEdit:()=>ez(!0)}),(0,s.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:["history"===es?(0,s.jsx)(x.F,{className:"min-h-0 flex-1",children:(0,s.jsx)(P.H,{events:eG,connections:eO,loading:eF.loading,ledgerSchema:A,setName:eD,findStep:eU,onLedgerChange:eF.reload,onRetry:eK})}):eE?.error?(0,s.jsx)("p",{className:"flex-1 px-4 py-6 font-mono text-xs text-destructive",children:eE.error}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(D,{environments:eI,targetId:t.id,caption:e9?`${e7} selected`:function(e,n){if(n&&0===e.total)return"Reading…";let t=`${e.total} migration${1===e.total?"":"s"}`;return e.foreign>0?`${t} \xb7 ${e.foreign} not in this folder`:t}(eV,eF.loading),loading:eF.loading,selection:{checked:0!==e7&&(e7===T.steps.length||"mixed"),onToggle:function(){if(!T)return;let e=T.steps.map(e=>e.version);eo(n=>n.some(n=>e.includes(n))?[]:e)}},onSelect:e3,onCompare:function(e){b.lz.getState().setCompareTarget(t.id,e),n.push(`/${encodeURIComponent(t.id)}/diff`)}}),(0,s.jsxs)(x.F,{className:(0,S.cn)("min-h-0 flex-1",eF.loading&&"opacity-70"),children:[(T?.steps.length??0)===0&&!Y&&(0,s.jsx)("div",{className:"p-6",children:(0,s.jsx)(G.k,{onFiles:eW,compact:!0})}),T.skipped.length>0&&Y&&(0,s.jsxs)("div",{className:"border-b bg-muted/20 px-4 py-2 text-xs text-muted-foreground",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(o.e5t,{className:"size-3.5 shrink-0 text-amber-600 dark:text-amber-400"}),"Skipped ",T.skipped.length," file",1===T.skipped.length?"":"s"]}),(0,s.jsx)("ul",{className:"mt-1 space-y-0.5 pl-5 font-mono text-[11px]",children:T.skipped.map(e=>(0,s.jsx)("li",{children:e},e))})]}),(T?.steps??[]).map(e=>(0,s.jsx)(F,{step:e,targetId:t.id,status:(0,j.FY)(e,e_),environments:eI.map(n=>({connection:n.connection,status:(0,j.FY)(e,n.ledger),entry:(0,j.ay)(e,n.ledger),error:n.error})),isNewestApplied:eQ?.version===e.version,expanded:ei.includes(e.version),busy:nn,editable:!Y,drift:function(e){let n=eI.filter(n=>"drifted"===(0,j.FY)(e,n.ledger)),s=n.find(e=>e.connection.id===t.id)??n[0];if(!s)return null;let r=eL.data?.[s.connection.id],i=r?.ledger?.entries.find(n=>n.setName===eD&&n.version===e.version);return{connectionName:s.connection.name,appliedSql:r?.ledger?i?.applySql??null:void 0,error:r?.error??null}}(e),selected:e6.has(e.version),onSelect:n=>(function(e,n){if(!T)return;let t=T.steps.map(e=>e.version),s=ed.current;ed.current=e,eo(r=>{let i=!r.includes(e),a=[e];if(n&&s&&s!==e&&t.includes(s)){let[n,r]=[t.indexOf(s),t.indexOf(e)].sort((e,n)=>e-n);a=t.slice(n,r+1)}let l=new Set(r);for(let e of a)i?l.add(e):l.delete(e);return t.filter(e=>l.has(e))})})(e.version,n),onToggle:()=>{var n;return n=e.version,void ea(e=>e.includes(n)?e.filter(e=>e!==n):[...e,n])},actions:{onApplyThrough:()=>eH("apply",(0,j.gj)(T,e_,e.version)),onApplyOne:()=>eH("apply",{steps:[e],blockedBy:null}),onRevertThrough:()=>eH("revert",(0,j.e)(T,e_,e.version)),onMarkApplied:()=>eH("apply",e0([e]),!0),onMarkPending:()=>eH("revert",e0([e]),!0),onAttachRevert:()=>{eN(e.version),window.requestAnimationFrame(()=>eA.current?.click())},onRemove:()=>T&&R(T.id,e.version),onOpenInEditor:e2}},e.version)),eY.length>0&&(0,s.jsx)(ee,{entries:eY,connectionName:t.name})]})]}),ej&&!Y&&(0,s.jsx)("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-background/85 p-6",onDragOver:e=>e.preventDefault(),onDragLeave:()=>ev(!1),onDrop:e=>{e.preventDefault(),ev(!1),eX.importFrom(e.dataTransfer)},children:(0,s.jsx)(G.k,{onFiles:eW,className:"w-full max-w-xl bg-background"})})]}),(0,s.jsx)(B.l,{pane:es,onPaneChange:er,historyCount:eG.length,migrationsLabel:"Files",caption:function({connectionName:e,summary:n,initialized:t,loading:s,foundIn:r,configuredSchema:i}){if(s&&null===t)return"Reading ledgers…";let a=[];return!1===t||n.pending>0?a.push(`${n.pending} of ${n.total} pending on ${e}`):a.push(`${e} is up to date`),n.drifted>0&&a.push(`${n.drifted} changed since applied`),r&&r!==i&&a.push(`ledger in ${r}`),a.join(" \xb7 ")}({connectionName:t.name,summary:eV,initialized:e_?.initialized??null,loading:eF.loading,foundIn:e_?.initialized?e_.schema:null,configuredSchema:A})}),(0,s.jsx)("input",{ref:eA,type:"file",accept:".sql",className:"sr-only",onChange:e=>{e4(e.target.files),e.target.value=""}}),(0,s.jsx)(V.K,{open:ew,title:"Rename migration",initial:T.name,submitLabel:"Rename",onOpenChange:e$,onSubmit:function(e){T&&C(T.id,e)}}),eR&&(0,s.jsx)(Q,{initial:T.note??"",file:T.source?T.source.notePath?.split(/[\\/]/).at(-1)??"README.md":null,onOpenChange:ez,onSave:e5}),eS&&(0,s.jsx)(L,{schema:A,found:eI.filter(e=>e.ledger?.initialized).map(e=>({name:e.connection.name,schema:e.ledger?.schema??A})),onOpenChange:eC,onSave:e=>{M(e),eF.reload()}}),ec&&(0,s.jsx)(U.I,{open:!0,direction:ec.direction,connection:t,steps:ec.steps,blockedBy:ec.blockedBy,progress:em,running:ex,recordOnly:ec.recordOnly??!1,note:T.note,outOfOrder:"apply"!==ec.direction||ec.recordOnly?null:(0,j.nj)(e_,ec.steps),rehearsal:eg,onRun:()=>void e1(),onRehearse:!ec.recordOnly&&0!==ec.steps.length&&ec.steps.every(e=>{let n=eZ(e,ec.direction);return!!n&&(0,f.Ol)(n).atomic})?()=>void eJ():null,onStop:()=>{eM.current=!0},onClose:function(){ex||(eu(null),ep(null),ef(!1))}})]})}function H({name:e,indexHref:n,children:t}){let r=(0,s.jsx)(o.olY,{className:"size-4 shrink-0 text-muted-foreground"});return(0,s.jsxs)(u.X,{children:[n?(0,s.jsx)(i(),{href:n,title:"All migrations","aria-label":"All migrations",className:"flex size-6 shrink-0 items-center justify-center rounded-md outline-none hover:bg-muted/60 focus-visible:ring-2 focus-visible:ring-ring/60",children:r}):r,(0,s.jsx)("span",{className:"min-w-0 truncate font-medium",children:e}),t]})}function Z({note:e,notePath:n,onEdit:t}){return(0,s.jsxs)("div",{title:n?`${n} \xb7 click to edit`:"Click to edit",onClick:e=>{e.target.closest("a")||t()},className:"group flex w-full cursor-pointer items-start gap-2 border-b px-4 py-2.5 text-left text-xs hover:bg-muted/30",children:[(0,s.jsx)(o.UA_,{className:"mt-px size-3.5 shrink-0 text-muted-foreground"}),(0,s.jsx)(K.o,{text:e,className:"max-h-40 min-w-0 flex-1 overflow-y-auto"}),(0,s.jsx)("button",{type:"button","aria-label":"Edit note",onClick:e=>{e.stopPropagation(),t()},className:"mt-px shrink-0 rounded-sm text-muted-foreground opacity-0 outline-none group-hover:opacity-100 focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-ring",children:(0,s.jsx)(o.NOV,{className:"size-3.5"})})]})}function J({report:e,onDismiss:n}){let t=[];return e.added>0&&t.push(`added ${e.added}`),e.updated>0&&t.push(`updated ${e.updated}`),e.reverts>0&&t.push(`${e.reverts} revert file${1===e.reverts?"":"s"}`),(0,s.jsxs)("div",{className:"flex items-start gap-2 border-b bg-muted/30 px-4 py-1.5 text-xs",children:[(0,s.jsxs)("span",{className:"min-w-0 flex-1",children:[t.length>0?`Imported: ${t.join(", ")}`:"Nothing new in those files",e.skipped.length>0&&(0,s.jsxs)("span",{className:"text-muted-foreground",children:[" ","\xb7 skipped ",e.skipped.slice(0,2).join(", "),e.skipped.length>2&&` and ${e.skipped.length-2} more`]})]}),(0,s.jsx)(m.$,{size:"xs",variant:"ghost",onClick:n,children:"Dismiss"})]})}function ee({entries:e,connectionName:n}){return(0,s.jsxs)("div",{className:"border-t bg-muted/20",children:[(0,s.jsxs)("p",{className:"flex items-center gap-2 px-4 py-2 text-xs text-muted-foreground",children:[(0,s.jsx)(o.e5t,{className:"size-3.5 shrink-0 text-amber-600 dark:text-amber-400"}),"Applied on ",n,", not in this folder"]}),e.map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 px-4 py-1.5 text-xs opacity-70",children:[(0,s.jsx)(q,{status:"applied"}),(0,s.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground",children:e.version}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name||"—"}),(0,s.jsx)("span",{className:"shrink-0 text-muted-foreground/70",children:new Date(e.appliedAt).toLocaleString()})]},e.version))]})}}},e=>{e.O(0,[4506,1731,8026,2435,8361,8322,1981,9243,7709,1520,9532,8441,3794,7358],()=>e(e.s=52310)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9820],{28330:(e,t,n)=>{Promise.resolve().then(n.bind(n,69063))},69063:(e,t,n)=>{"use strict";n.d(t,{MigrationsIndex:()=>P});var s=n(95155),a=n(98500),r=n.n(a),i=n(73321),l=n(12115),o=n(13267),d=n(72194),c=n(36331),u=n(17491),m=n(89239),h=n(72264),p=n(66289),x=n(91075),g=n(85488),f=n(35942),j=n(7412),b=n(87364),v=n(27529),N=n(9385),k=n(62417),y=n(74590),w=n(79668),$=n(40980),C=n(17021),S=n(20642),z=n(77649),M=n(27013),F=n(41069),R=n(42763),E=n(83504);let I=[{verdict:"applied",title:"Already there",hint:"Everything these create or change is in the database.",preselected:!0},{verdict:"partial",title:"Partly there",hint:"Some of what these do is in the database and some is not — often a later migration changed it again.",preselected:!1},{verdict:"unknown",title:"Leaves no trace",hint:"Data changes, seeds, and grants cannot be seen in the schema. Include them if you know they ran.",preselected:!1},{verdict:"pending",title:"Not there",hint:"Nothing these do is in the database. Marking these hides work that still needs to run.",preselected:!1}];function q(e){return`${e.setName}\0${e.version}`}function O({connection:e,ledgerSchema:t,plan:n,onDone:a,onOpenChange:r}){let[i,c]=(0,l.useState)(null),[u,h]=(0,l.useState)(null),[p,x]=(0,l.useState)(new Set),[g,f]=(0,l.useState)([]),[j,b]=(0,l.useState)(!1),[N,k]=(0,l.useState)(null),[y,w]=(0,l.useState)(null);(0,l.useEffect)(()=>{let t=new AbortController;return v.F.detect(e.url,n.entries.map(e=>({setName:e.setName,version:e.version,sql:e.applySql})),t.signal).then(({results:e})=>{c(e);let t=new Set;for(let n of e)I.find(e=>e.verdict===n.verdict)?.preselected&&t.add(q(n));x(t)}).catch(e=>{t.signal.aborted||h(e instanceof Error?e.message:String(e))}),()=>t.abort()},[e.url,n.entries]);let C=(0,l.useMemo)(()=>{if(!i)return[];let e=new Map(n.entries.map(e=>[q(e),e]));return I.map(t=>({verdict:t.verdict,title:t.title,hint:t.hint,entries:i.filter(e=>e.verdict===t.verdict).flatMap(t=>{let n=e.get(q(t));return n?[{entry:n,result:t}]:[]})})).filter(e=>e.entries.length>0)},[i,n.entries]),S=n.entries.filter(e=>p.has(q(e)));async function z(n){b(!0),w(null);try{k(await v.F.adopt(e.url,{ledgerSchema:t,entries:n})),a()}catch(e){w(e instanceof Error?e.message:String(e))}finally{b(!1)}}let M=!i&&!u;return(0,s.jsx)(R.lG,{open:!0,onOpenChange:e=>!j&&r(e),children:(0,s.jsxs)(R.Cf,{className:"sm:max-w-xl",children:[(0,s.jsxs)(R.c7,{children:[(0,s.jsx)(R.L3,{children:N?`Marked ${N.recorded} as applied`:M?`Checking ${e.name}…`:`Mark as already applied on ${e.name}`}),(0,s.jsx)(R.rr,{children:(0,s.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5",children:[(0,s.jsx)("span",{children:N?"Recorded on":"Records on"}),(0,s.jsx)(d.F,{connection:e}),(0,s.jsx)("span",{className:"font-medium text-foreground",children:e.name}),(0,s.jsx)("span",{className:"font-mono text-[11px]",children:(0,E.p)(e.url)})]})})]}),N?(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:N.existing>0?`${N.existing} were already in the ledger and were left as they were.`:"Every one of them was new to the ledger."}):M?(0,s.jsxs)("p",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[(0,s.jsx)(o.gnh,{className:"size-3.5 animate-spin"}),"Reading the schema to see which of the ",n.entries.length," have already run…"]}):u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"max-h-32 overflow-auto rounded-md border border-destructive/25 bg-destructive/5 px-3 py-2 font-mono text-[11px] whitespace-pre-wrap text-destructive",children:u}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["The check could not run. You can still mark all ",n.entries.length," as applied if you know the database already has these changes."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"max-h-80 overflow-y-auto rounded-md border",children:C.map(e=>{let t=e.entries.filter(({entry:e})=>p.has(q(e))).length,n=g.includes(e.verdict);return(0,s.jsxs)("div",{className:"border-b last:border-b-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2",children:[(0,s.jsx)("input",{type:"checkbox","aria-label":`Include ${e.title}`,className:"size-3.5 cursor-pointer accent-primary",checked:t===e.entries.length,ref:n=>{n&&(n.indeterminate=t>0&&t<e.entries.length)},onChange:t=>{var n;return n=t.target.checked,void x(t=>{let s=new Set(t);for(let{entry:t}of e.entries)n?s.add(q(t)):s.delete(q(t));return s})}}),(0,s.jsxs)("button",{type:"button","aria-expanded":n,onClick:()=>{var t;return t=e.verdict,void f(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 text-left",children:[(0,s.jsx)(o.nNJ,{className:(0,$.cn)("size-3.5 shrink-0 text-muted-foreground/70 transition-transform",n&&"rotate-90")}),(0,s.jsx)("span",{className:"text-sm",children:e.title}),(0,s.jsxs)("span",{className:"tabular-nums text-xs text-muted-foreground",children:[t,"/",e.entries.length]})]}),(0,s.jsx)(V,{verdict:e.verdict})]}),!n&&(0,s.jsx)("p",{className:"px-9 pb-2 text-[11px] text-muted-foreground",children:e.hint}),n&&(0,s.jsxs)("div",{className:"bg-muted/25",children:[(0,s.jsx)("p",{className:"px-9 py-1.5 text-[11px] text-muted-foreground",children:e.hint}),e.entries.map(({entry:e,result:t})=>{let n=t.evidence.filter(e=>!e.satisfied),a=t.evidence.find(e=>e.note)?.note;return(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 border-t px-3 py-1.5 text-xs hover:bg-muted/40",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5 size-3.5 cursor-pointer accent-primary",checked:p.has(q(e)),onChange:()=>{x(t=>{let n=new Set(t),s=q(e);return n.has(s)?n.delete(s):n.add(s),n})}}),(0,s.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.setName}),(0,s.jsx)("span",{className:"shrink-0 font-mono text-muted-foreground",children:e.version}),(0,s.jsx)("span",{className:"min-w-0 truncate",children:e.name})]}),(n.length>0||a)&&(0,s.jsxs)("span",{className:"mt-0.5 block truncate text-[11px] text-muted-foreground",children:[n.length>0&&(0,s.jsxs)(s.Fragment,{children:["Missing: ",n.slice(0,2).map(e=>e.description).join(", "),n.length>2&&` and ${n.length-2} more`]}),n.length>0&&a&&" \xb7 ",a]})]})]},q(e))})]})]},e.verdict)})}),(0,s.jsxs)("p",{className:"rounded-md border border-amber-600/25 bg-amber-500/8 px-3 py-2 text-xs",children:[(0,s.jsx)("span",{className:"font-medium",children:"No SQL runs."})," Only the ledger on"," ",e.name," changes, in one transaction. Rows already there are not touched."]})]}),y&&(0,s.jsx)("p",{className:"max-h-32 overflow-auto rounded-md border border-destructive/25 bg-destructive/5 px-3 py-2 font-mono text-[11px] whitespace-pre-wrap text-destructive",children:y}),(0,s.jsx)(R.Es,{children:N?(0,s.jsx)(m.$,{onClick:()=>r(!1),children:"Close"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.$,{variant:"outline",disabled:j,onClick:()=>r(!1),children:"Cancel"}),u?(0,s.jsx)(m.$,{disabled:j,onClick:()=>void z(n.entries),children:j?"Marking…":`Mark all ${n.entries.length} as applied`}):(0,s.jsx)(m.$,{disabled:j||M||0===S.length,onClick:()=>void z(S),children:j?"Marking…":`Mark as applied (${S.length})`})]})})]})})}function V({verdict:e}){return"applied"===e?(0,s.jsx)(o.wiW,{className:"size-4 shrink-0 text-emerald-600 dark:text-emerald-400"}):"partial"===e?(0,s.jsx)(o.e5t,{className:"size-3.5 shrink-0 text-amber-600 dark:text-amber-400"}):"pending"===e?(0,s.jsx)(o.e5t,{className:"size-3.5 shrink-0 text-destructive"}):(0,s.jsx)("span",{className:"size-1.5 shrink-0 rounded-full bg-muted-foreground/40"})}var L=n(60529),_=n(33807);function A({root:e,environmentNames:t,onOpenChange:n,onSave:a}){let[r,i]=(0,l.useState)(e??""),o=r.trim(),d=o.startsWith("/")||o.startsWith("~")||/^[A-Za-z]:[\\/]/.test(o);function c(){o&&d&&(a(o),n(!1))}return(0,s.jsx)(R.lG,{open:!0,onOpenChange:n,children:(0,s.jsxs)(R.Cf,{className:"sm:max-w-lg",children:[(0,s.jsxs)(R.c7,{children:[(0,s.jsx)(R.L3,{children:"Migrations folder"}),(0,s.jsxs)(R.rr,{children:["A folder on this computer. Each folder inside it that holds .sql files is one migration, read fresh from disk every time — whatever branch is checked out is what shows. ",t.join(", ")," will all read from it."]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(_.J,{htmlFor:"repo-root",children:"Path"}),(0,s.jsx)(L.p,{id:"repo-root",value:r,placeholder:"~/code/app/src/lib/supabase/migrations",spellCheck:!1,autoComplete:"off",autoFocus:!0,"aria-invalid":o.length>0&&!d,onChange:e=>i(e.target.value),onKeyDown:e=>"Enter"===e.key&&c()}),o.length>0&&!d&&(0,s.jsx)("p",{className:"text-xs text-destructive",children:"An absolute path, or one starting with ~."})]}),(0,s.jsxs)(R.Es,{children:[e&&(0,s.jsx)(m.$,{variant:"ghost",className:"mr-auto",onClick:function(){a(null),n(!1)},children:"Stop reading from disk"}),(0,s.jsx)(m.$,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),(0,s.jsx)(m.$,{disabled:!o||!d,onClick:c,children:"Save"})]})]})})}var Q=n(71612);function P(){let e=(0,i.useRouter)(),{connection:t}=(0,c.k)(),n=(0,w.jV)(e=>e.sets),a=(0,w.jV)(e=>e.createSet),r=(0,w.jV)(e=>e.adoptSet),d=(0,w.jV)(e=>e.addFiles),p=(0,w.jV)(e=>e.removeSet),x=(0,w.jV)(e=>e.ledgerSchema),g=(0,w.jV)(e=>e.history),j=(0,y.gz)(t.id),[R,E]=(0,l.useState)("migrations"),[I,q]=(0,l.useState)(null),[V,L]=(0,l.useState)(null),[_,P]=(0,l.useState)(!1),[T,K]=(0,l.useState)(!1),[D,G]=(0,l.useState)(null),H=(0,l.useMemo)(()=>[t,...j],[t,j]),J=H.map(e=>e.url).join("|"),{scope:X,root:Z,checkout:ee}=(0,w.ox)(t.id),et=(0,w.jV)(e=>e.setRepoRoot),en=(0,w.jV)(e=>e.setRepoCheckout),es=(0,w.kG)(X),ea=(0,w.jV)(e=>e.setListFilter),er=(0,Q.y)(Z,ee),ei=(0,l.useMemo)(()=>[...er.data?.sets??[]].sort((e,t)=>t.importedAt-e.importedAt),[er.data]),el=(0,b.Y)(`ledgers:${x}:${J}`,async e=>Object.fromEntries(await Promise.all(H.map(async t=>{try{return[t.id,{ledger:await v.F.ledger(t.url,x,e),error:null}]}catch(n){if(e.aborted)throw n;return[t.id,{ledger:null,error:n instanceof Error?n.message:String(n)}]}})))),eo=(0,l.useCallback)((e,t)=>[...ei,...n].find(t=>t.name===e)?.steps.find(e=>e.version===t)??null,[ei,n]),ed=(0,l.useMemo)(()=>(0,N.x)(H.map(e=>({connection:e,ledger:el.data?.[e.id]?.ledger??null})),g),[H,el.data,g]),ec=`/${encodeURIComponent(t.id)}/migrations`,eu=(0,l.useCallback)(t=>{let n=a(t.name);d(n,t.files),e.push(`${ec}/${encodeURIComponent(n)}`)},[a,d,e,ec]);async function em(t){q(t),L(null);try{let n=await Promise.all(H.map(async e=>{try{return{read:await v.F.ledger(e.url,x,void 0,!0),error:null}}catch(e){return{read:null,error:e instanceof Error?e.message:String(e)}}})),s=n.find(e=>e.error);if(s?.error)return void L(s.error);let a=n.some(e=>e.read&&void 0===e.read.withSql),i=new Map;for(let{read:e}of n)for(let n of e?.entries??[]){if(n.setName.trim()!==t)continue;let e=i.get(n.version);e?.applySql||i.set(n.version,n)}let{set:l,missing:o}=(0,S.wQ)(t,[...i.values()]);if(0===l.steps.length)return void L(a?"The YTDB running on your machine is older than this page and cannot send stored SQL. Restart it with `npx @theobourgeois/ytdb@latest`.":`${t} was applied before YTDB stored SQL, so it cannot be rebuilt. Drop its folder instead.`);r(l),o.length>0&&L(`Rebuilt ${l.steps.length} of ${l.steps.length+o.length}. No SQL was stored for ${o.join(", ")}.`),e.push(`${ec}/${encodeURIComponent(l.id)}`)}catch(e){L(e instanceof Error?e.message:String(e))}finally{q(null)}}let eh=(0,l.useMemo)(()=>[...n].sort((e,t)=>t.importedAt-e.importedAt),[n]),ep=(0,l.useMemo)(()=>(0,k.lF)(H.map(e=>({connection:e,ledger:el.data?.[e.id]?.ledger??null})),[...ei,...n].map(e=>e.name)),[H,el.data,ei,n]),ex=(0,l.useMemo)(()=>{let e=el.data?.[t.id]?.ledger??null,n=[],s=0;if(!e)return{sets:0,entries:n};for(let t of ei){let a=(0,k.gj)(t,(0,k.Gf)(e,t.name));if(0!==a.steps.length)for(let e of(s+=1,a.steps))n.push({setName:t.name,version:e.version,name:e.name,checksum:e.checksum,applySql:e.applySql,revertSql:e.revertSql})}return{sets:s,entries:n}},[el.data,t.id,ei]),eg=el.loading||er.loading,ef=0===ei.length&&0===n.length&&0===ep.length,ej=(0,l.useCallback)(e=>H.map(t=>({connection:t,summary:(0,k.eh)(e,el.data?.[t.id]?.ledger??null),read:!!el.data?.[t.id]?.ledger,error:el.data?.[t.id]?.error??null})),[H,el.data]),eb=(0,l.useCallback)(e=>(0,k.yy)(e,ej(e).map(e=>({connectionId:e.connection.id,summary:e.summary,read:e.read})),es),[ej,es]),ev=(0,l.useMemo)(()=>ei.filter(eb),[ei,eb]),eN=(0,l.useMemo)(()=>eh.filter(eb),[eh,eb]),ek=""!==es.query.trim()||"all"!==es.status,ey=ei.length+eh.length-ev.length-eN.length;return(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,s.jsxs)(u.X,{children:[(0,s.jsx)(o.olY,{className:"size-4 shrink-0 text-muted-foreground"}),(0,s.jsx)("span",{className:"font-medium",children:"Migrations"}),Z&&(0,s.jsx)(Y,{root:er.data?.root??Z,git:er.data?.git??null,checkouts:er.data?.checkouts??[],checkout:er.data?.checkout??null,onEdit:()=>K(!0),onPick:e=>en(X,e)}),(0,s.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[(0,s.jsx)(m.$,{size:"icon-sm",variant:"ghost",disabled:eg,"aria-label":"Refresh",title:Z?"Re-read the folder and every environment's ledger":"Re-read every environment's ledger",onClick:function(){el.reload(),er.reload()},children:(0,s.jsx)(o.oS8,{className:(0,$.cn)(eg&&"animate-spin")})}),!Z&&(0,s.jsxs)(m.$,{size:"sm",variant:"ghost",onClick:()=>K(!0),children:[(0,s.jsx)(o.WzY,{"data-icon":"inline-start"}),"Read from a folder"]}),(0,s.jsxs)(m.$,{size:"sm",variant:"ghost",onClick:()=>P(!0),children:[(0,s.jsx)(o.enO,{"data-icon":"inline-start"}),"New migration"]}),(Z||n.length>0)&&(0,s.jsxs)(h.rI,{children:[(0,s.jsx)(h.ty,{render:(0,s.jsx)(m.$,{size:"icon-sm",variant:"ghost","aria-label":"More migration actions"}),className:"cursor-pointer",children:(0,s.jsx)(o.YKd,{})}),(0,s.jsxs)(h.SQ,{align:"end",className:"min-w-72",children:[Z&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h._2,{disabled:eg||0===ex.entries.length,onClick:()=>G(ex),children:[(0,s.jsx)(o.nXx,{}),"Mark everything as applied on ",t.name,(0,s.jsx)("span",{className:"ml-auto pl-3 font-mono text-[11px] text-muted-foreground",children:ex.entries.length})]}),(0,s.jsx)(h.mB,{}),(0,s.jsxs)(h._2,{onClick:()=>K(!0),children:[(0,s.jsx)(o.WzY,{}),"Change folder…"]})]}),n.length>0&&(0,s.jsxs)(s.Fragment,{children:[Z&&(0,s.jsx)(h.mB,{}),(0,s.jsxs)(h._2,{variant:"destructive",onClick:function(){for(let e of n)p(e.id)},children:["Forget ",n.length," imported migration",1===n.length?"":"s"]})]})]})]})]})]}),er.error&&(0,s.jsxs)("p",{className:"flex items-start gap-2 border-b bg-destructive/5 px-4 py-1.5 text-xs text-destructive",children:[(0,s.jsx)(o.e5t,{className:"mt-px size-3.5 shrink-0"}),(0,s.jsx)("span",{className:"min-w-0 flex-1",children:er.error}),(0,s.jsx)(m.$,{size:"xs",variant:"ghost",onClick:()=>K(!0),children:"Change folder"})]}),"history"===R?(0,s.jsx)(f.F,{className:"min-h-0 flex-1",children:(0,s.jsx)(C.H,{events:ed,connections:H,loading:el.loading,ledgerSchema:x,findStep:eo,onLedgerChange:el.reload})}):ef&&Z&&er.loading?(0,s.jsxs)("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:["Reading ",Z,"…"]}):ef&&Z?(0,s.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 p-6 text-center",children:[(0,s.jsxs)("p",{className:"text-sm",children:["Nothing in ",Z," yet."]}),(0,s.jsx)("p",{className:"max-w-md text-xs text-muted-foreground",children:"Each folder inside it that holds .sql files becomes a migration here, the moment it exists on the branch you have checked out."})]}):ef?(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-4 p-6",children:[(0,s.jsx)(z.k,{onFiles:eu,className:"w-full max-w-xl"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Or"," ",(0,s.jsx)("button",{type:"button",className:"cursor-pointer underline underline-offset-4 hover:text-foreground",onClick:()=>K(!0),children:"read straight from a folder on this computer"}),", so nothing has to be imported."]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U,{filter:es,environments:H,hidden:ey,onChange:e=>ea(X,e)}),(0,s.jsxs)(f.F,{className:"min-h-0 flex-1",children:[ev.map(e=>(0,s.jsx)(B,{set:e,href:`${ec}/${encodeURIComponent(e.id)}`,environments:ej(e)},e.id)),eN.length>0&&Z&&(0,s.jsx)("p",{className:"border-b px-4 pt-2.5 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",title:"Imported into this browser rather than read from the folder.",children:"Imported"}),eN.map(e=>(0,s.jsx)(B,{set:e,href:`${ec}/${encodeURIComponent(e.id)}`,environments:ej(e)},e.id)),ek&&0===ev.length&&0===eN.length&&(0,s.jsxs)("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:["Nothing matches."," ",(0,s.jsx)("button",{type:"button",className:"cursor-pointer underline underline-offset-4 hover:text-foreground",onClick:()=>ea(X,{query:"",status:"all"}),children:"Clear the filter"})]}),ep.length>0&&(0,s.jsxs)("div",{className:"border-b bg-muted/20",children:[(0,s.jsx)("p",{className:"px-4 pt-2.5 pb-1 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",title:"Applied to a database from elsewhere. The SQL is kept in its ledger, so it opens without the folder.",children:"In the ledger only"}),ep.map(e=>(0,s.jsx)(W,{migration:e,busy:I===e.name,onOpen:()=>void em(e.name)},e.name)),V&&(0,s.jsx)("p",{className:"px-4 pt-1 pb-2 text-xs text-destructive",children:V})]}),!Z&&(0,s.jsx)("div",{className:"p-4",children:(0,s.jsx)(z.k,{onFiles:eu,compact:!0,className:"w-full"})})]})]}),(0,s.jsx)(F.l,{caption:function(e,t,n,s){if(s&&0===e)return"Reading folder…";if(0===e&&0===t&&0===n)return"No migrations yet";let a=[];return e>0&&a.push(`${e} migration${1===e?"":"s"} on disk`),t>0&&a.push(`${t} imported`),n>0&&a.push(`${n} in the ledger only`),a.join(" \xb7 ")}(ei.length,n.length,ep.length,null!==Z&&er.loading),pane:R,onPaneChange:E,historyCount:ed.length}),T&&(0,s.jsx)(A,{root:Z,environmentNames:H.map(e=>e.name),onOpenChange:K,onSave:e=>et(X,e)}),D&&(0,s.jsx)(O,{connection:t,ledgerSchema:x,plan:D,onDone:()=>el.reload(),onOpenChange:e=>!e&&G(null)}),(0,s.jsx)(M.K,{open:_,title:"New migration",submitLabel:"Create",onOpenChange:P,onSubmit:function(t){let n=a(t);e.push(`${ec}/${encodeURIComponent(n)}`)}})]})}let T={all:"All",pending:"Not fully applied",untouched:"Not started anywhere",complete:"Applied everywhere"};function U({filter:e,environments:t,hidden:n,onChange:a}){let r="all"!==e.status;return(0,s.jsxs)("div",{className:"flex items-center gap-1 border-b px-2 py-1",children:[(0,s.jsx)(j.L,{value:e.query,onChange:e=>a({query:e.target.value}),placeholder:"Search migrations","aria-label":"Search migrations",className:"min-w-0 flex-1",trailing:e.query?(0,s.jsx)("button",{type:"button","aria-label":"Clear search",className:"cursor-pointer rounded p-0.5 hover:text-foreground",onClick:()=>a({query:""}),children:(0,s.jsx)(o.yBK,{className:"size-3.5"})}):null}),(0,s.jsxs)(h.rI,{children:[(0,s.jsxs)(h.ty,{render:(0,s.jsx)(m.$,{size:"sm",variant:r?"outline":"ghost"}),className:"cursor-pointer",children:[function(e,t){if(e.startsWith("pending:")){let n=t.find(t=>t.id===e.slice(8));return n?`Pending on ${n.name}`:T.pending}return T[e]}(e.status,t),(0,s.jsx)(o.RQe,{"data-icon":"inline-end"})]}),(0,s.jsx)(h.SQ,{align:"end",className:"min-w-56",children:(0,s.jsxs)(h.Hr,{value:e.status,onValueChange:e=>a({status:e}),children:[Object.keys(T).map(e=>(0,s.jsx)(h.Ht,{value:e,children:T[e]},e)),t.length>1&&(0,s.jsx)(h.mB,{}),t.length>1&&t.map(e=>(0,s.jsxs)(h.Ht,{value:`pending:${e.id}`,children:[(0,s.jsx)(d.F,{connection:e,className:"size-1.5"}),"Pending on ",e.name]},e.id))]})})]}),n>0&&(0,s.jsxs)("span",{className:"shrink-0 pr-1 text-[11px] tabular-nums text-muted-foreground",children:[n," hidden"]})]})}function Y({root:e,git:t,checkouts:n,checkout:a,onEdit:r,onPick:i}){var d;let c,[u,m]=(0,l.useState)(""),h=(0,l.useMemo)(()=>{let e=u.trim().toLowerCase();return e?n.filter(t=>t.branch.toLowerCase().includes(e)||t.path.toLowerCase().includes(e)):n},[n,u]),f="cursor-pointer rounded-md outline-none hover:bg-muted/60 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60",j=t&&(0,s.jsxs)("span",{className:"shrink-0 rounded border px-1.5 font-mono text-[10px]",children:[t.branch,t.dirty&&"*"]});return(0,s.jsxs)("div",{className:"flex min-w-0 items-center text-xs text-muted-foreground",children:[(0,s.jsxs)("button",{type:"button",title:`Reading from ${e}. Click to change.`,onClick:r,className:(0,$.cn)("flex min-w-0 items-center gap-1.5 px-1.5 py-0.5",f),children:[(0,s.jsx)(o.WzY,{className:"size-3.5 shrink-0"}),(0,s.jsx)("span",{className:"max-w-64 truncate font-mono text-[11px]",children:(c=(d=e).split(/[\/]/).filter(Boolean)).length>2?`…/${c.slice(-2).join("/")}`:d})]}),t&&n.length>1?(0,s.jsxs)(g.G3,{items:h,filter:null,value:n.find(e=>e.path===a)??null,inputValue:u,onInputValueChange:e=>m(e),onOpenChange:e=>e&&m(""),itemToStringLabel:e=>e.branch,isItemEqualToValue:(e,t)=>e.path===t.path,onValueChange:e=>e&&i(e.path),children:[(0,s.jsxs)(p.M,{title:`${t.branch} (${t.commit}${t.dirty?", uncommitted changes":""}). Read from another worktree.`,className:(0,$.cn)("flex shrink-0 items-center gap-0.5 px-1 py-0.5",f),children:[j,(0,s.jsx)(o.klM,{className:"size-3"})]}),(0,s.jsxs)(g.h5,{className:"w-max min-w-56",children:[(0,s.jsxs)("div",{className:"m-1 mb-0 flex h-8 items-center gap-1.5 rounded-lg px-2 text-muted-foreground focus-within:bg-muted/60",children:[(0,s.jsx)(o.TfF,{className:"size-3.5 shrink-0"}),(0,s.jsx)(x.o,{placeholder:"Search worktrees",spellCheck:!1,autoComplete:"off",className:"h-full min-w-0 flex-1 bg-transparent text-[0.8rem] text-foreground outline-none placeholder:text-muted-foreground"})]}),(0,s.jsx)(g.$U,{children:"No matching worktrees"}),(0,s.jsx)(g.ex,{children:e=>(0,s.jsx)(g.x4,{value:e,title:e.path,children:(0,s.jsx)("span",{className:"font-mono text-xs",children:e.branch})},e.path)})]})]}):t&&(0,s.jsx)("span",{className:"px-1",title:`${t.branch} (${t.commit}${t.dirty?", uncommitted changes":""})`,children:j})]})}function B({set:e,href:t,environments:n}){return(0,s.jsxs)(r(),{href:t,className:"flex items-center gap-3 border-b px-4 py-3 outline-none transition-colors hover:bg-muted/40 focus-visible:bg-muted/40",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"flex min-w-0 items-center gap-1.5 text-sm font-medium",children:[(0,s.jsx)("span",{className:"truncate",children:e.name}),e.note&&(0,s.jsx)("span",{title:e.note,className:"shrink-0 text-muted-foreground",children:(0,s.jsx)(o.UA_,{className:"size-3.5"})})]}),(0,s.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:[0===e.steps.length?"No files yet":`${e.steps.length} migration${1===e.steps.length?"":"s"}`,e.steps.length>0&&` \xb7 ${e.steps[0].version}–${e.steps.at(-1)?.version}`,e.skipped.length>0&&` \xb7 ${e.skipped.length} skipped`]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-1.5",children:n.map(e=>(0,s.jsx)(K,{environment:e},e.connection.id))}),(0,s.jsx)(o.nNJ,{className:"size-4 shrink-0 text-muted-foreground/60"})]})}function W({migration:e,busy:t,onOpen:n}){return(0,s.jsxs)("div",{className:"flex items-center gap-3 border-t px-4 py-2.5 first:border-t-0",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"truncate text-sm",children:e.name}),(0,s.jsxs)("p",{className:"truncate text-xs text-muted-foreground",children:[e.total," migration",1===e.total?"":"s",e.versions.length>0&&` \xb7 ${e.versions[0]}–${e.versions.at(-1)}`]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-1.5",children:e.applied.map(t=>(0,s.jsxs)("span",{className:"flex h-6 items-center gap-1.5 rounded-lg border border-dashed px-2 text-[11px] text-muted-foreground",children:[(0,s.jsx)("span",{className:"max-w-24 truncate",children:t.connectionName}),(0,s.jsxs)("span",{className:"tabular-nums",children:[t.count,"/",e.total]})]},t.connectionId))}),(0,s.jsx)(m.$,{size:"xs",variant:"outline",disabled:t,onClick:n,children:t?"Opening…":"Open"})]})}function K({environment:e}){let{connection:t,summary:n,read:a,error:r}=e,i=a&&n.total>0&&0===n.pending&&0===n.drifted,l=a&&0===n.applied&&0===n.drifted;return(0,s.jsxs)("span",{title:r?`${t.name}: ${r}`:a?`${t.name}: ${n.applied} of ${n.total} applied`:`${t.name}: reading…`,className:(0,$.cn)("flex h-6 items-center gap-1.5 rounded-lg border px-2 text-[11px]",r&&"border-destructive/30 text-destructive",i&&"border-emerald-600/30 bg-emerald-500/10",!r&&!i&&!l&&"border-amber-600/30 bg-amber-500/10",l&&"text-muted-foreground"),children:[(0,s.jsx)(d.F,{connection:t,className:"size-1.5"}),(0,s.jsx)("span",{className:"max-w-24 truncate",children:t.name}),(0,s.jsx)("span",{className:"tabular-nums",children:r?"—":a?`${n.applied}/${n.total}`:"…"})]})}},85488:(e,t,n)=>{"use strict";n.d(t,{G3:()=>C,h5:()=>F,$U:()=>I,oK:()=>M,x4:()=>E,ex:()=>R});var s=n(95155);n(12115);var a=n(92953),r=n(66289),i=n(58565),l=n(91075),o=n(2385),d=n(19001),c=n(93313),u=n(29432),m=n(56758),h=n(47028),p=n(63205),x=n(40980),g=n(89239),f=n(18460),j=n(60529);function b({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"input-group",role:"group",className:(0,x.cn)("group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5",e),...t})}n(18349);let v=(0,f.F)("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem]","inline-end":"order-last pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem]","block-start":"order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2","block-end":"order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"}},defaultVariants:{align:"inline-start"}});function N({className:e,align:t="inline-start",...n}){return(0,s.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:(0,x.cn)(v({align:t}),e),onClick:e=>{e.target.closest("button")||e.currentTarget.parentElement?.querySelector("input")?.focus()},...n})}let k=(0,f.F)("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-3px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",sm:"","icon-xs":"size-6 rounded-[calc(var(--radius)-3px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function y({className:e,type:t="button",variant:n="ghost",size:a="xs",...r}){return(0,s.jsx)(g.$,{type:t,"data-size":a,variant:n,className:(0,x.cn)(k({size:a}),e),...r})}function w({className:e,...t}){return(0,s.jsx)(j.p,{"data-slot":"input-group-control",className:(0,x.cn)("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent",e),...t})}var $=n(13267);let C=a.i;function S({className:e,children:t,...n}){return(0,s.jsxs)(r.M,{"data-slot":"combobox-trigger",className:(0,x.cn)("[&_svg:not([class*='size-'])]:size-4",e),...n,children:[t,(0,s.jsx)($.RQe,{className:"pointer-events-none size-4 text-muted-foreground"})]})}function z({className:e,...t}){return(0,s.jsx)(i.V,{"data-slot":"combobox-clear",render:(0,s.jsx)(y,{variant:"ghost",size:"icon-xs"}),className:(0,x.cn)(e),...t,children:(0,s.jsx)($.yBK,{className:"pointer-events-none"})})}function M({className:e,children:t,disabled:n=!1,showTrigger:a=!0,showClear:r=!1,inputRef:i,...o}){return(0,s.jsxs)(b,{className:(0,x.cn)("w-auto",e),children:[(0,s.jsx)(l.o,{ref:i,render:(0,s.jsx)(w,{disabled:n}),...o}),(0,s.jsxs)(N,{align:"inline-end",children:[a&&(0,s.jsx)(y,{size:"icon-xs",variant:"ghost",render:(0,s.jsx)(S,{}),"data-slot":"input-group-button",className:"group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",disabled:n}),r&&(0,s.jsx)(z,{disabled:n})]}),t]})}function F({className:e,side:t="bottom",sideOffset:n=6,align:a="start",alignOffset:r=0,anchor:i,...l}){return(0,s.jsx)(o.K,{children:(0,s.jsx)(d.o,{side:t,sideOffset:n,align:a,alignOffset:r,anchor:i,className:"isolate z-80",children:(0,s.jsx)(c.I,{"data-slot":"combobox-content","data-chips":!!i,className:(0,x.cn)("group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...l})})})}function R({className:e,...t}){return(0,s.jsx)(u.e,{"data-slot":"combobox-list",className:(0,x.cn)("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0",e),...t})}function E({className:e,children:t,...n}){return(0,s.jsxs)(m.x,{"data-slot":"combobox-item",className:(0,x.cn)("relative flex h-8 w-full cursor-pointer items-center gap-2 rounded-lg pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[t,(0,s.jsx)(h.Q,{render:(0,s.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,s.jsx)($.wiW,{className:"pointer-events-none"})})]})}function I({className:e,...t}){return(0,s.jsx)(p.$,{"data-slot":"combobox-empty",className:(0,x.cn)("hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex",e),...t})}}},e=>{e.O(0,[4506,1731,8026,2435,8361,8322,3960,1981,9243,7709,1520,9532,8441,3794,7358],()=>e(e.s=28330)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506],{13267:(a,t,r)=>{r.d(t,{A01:()=>G,B5$:()=>ac,DPG:()=>w,E9H:()=>m,FK4:()=>y,FeY:()=>o,GVO:()=>Y,H0j:()=>B,IYh:()=>$,Inw:()=>N,M0d:()=>ao,Mvf:()=>F,NOV:()=>H,R4X:()=>s,RQe:()=>T,Rzr:()=>b,SI1:()=>Q,TfF:()=>M,UA_:()=>f,Uoo:()=>e,W4E:()=>x,WnQ:()=>C,WzY:()=>k,YKd:()=>_,Ykz:()=>I,a7N:()=>ai,aeF:()=>aa,bkQ:()=>S,cFu:()=>g,e5t:()=>n,eGB:()=>A,enO:()=>Z,fJ4:()=>c,gnh:()=>R,gvW:()=>E,hX7:()=>W,iC_:()=>U,ij9:()=>at,juJ:()=>al,klM:()=>K,mYx:()=>h,nNJ:()=>O,nTY:()=>L,nXx:()=>q,oS8:()=>D,olY:()=>d,ooN:()=>u,qM8:()=>ar,rq5:()=>v,uMc:()=>J,uPM:()=>V,vhS:()=>P,wGq:()=>X,wT6:()=>p,wiW:()=>j,x2U:()=>z,yBK:()=>i,zRt:()=>an});var l=r(13220);function i(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"},child:[]}]})(a)}function c(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208ZM165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(a)}function n(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},child:[]}]})(a)}function o(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"},child:[]}]})(a)}function h(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"},child:[]}]})(a)}function e(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"},child:[]}]})(a)}function u(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM40,112H80v32H40Zm56,0H216v32H96ZM216,64V96H40V64ZM40,160H80v32H40Zm176,32H96V160H216v32Z"},child:[]}]})(a)}function d(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12,111l112,64a8,8,0,0,0,7.94,0l112-64a8,8,0,0,0,0-13.9l-112-64a8,8,0,0,0-7.94,0l-112,64A8,8,0,0,0,12,111ZM128,49.21,223.87,104,128,158.79,32.13,104ZM246.94,140A8,8,0,0,1,244,151L132,215a8,8,0,0,1-7.94,0L12,151A8,8,0,0,1,20,137.05l108,61.74,108-61.74A8,8,0,0,1,246.94,140Z"},child:[]}]})(a)}function g(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"},child:[]}]})(a)}function v(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,168h-9.29L185.54,48H192a8,8,0,0,0,0-16H64a8,8,0,0,0,0,16h6.46L49.29,168H40a8,8,0,0,0,0,16h80v56a8,8,0,0,0,16,0V184h80a8,8,0,0,0,0-16ZM86.71,48h82.58l21.17,120H65.54Z"},child:[]}]})(a)}function Z(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"},child:[]}]})(a)}function A(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z"},child:[]}]})(a)}function H(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"},child:[]}]})(a)}function f(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M88,96a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,96Zm8,40h64a8,8,0,0,0,0-16H96a8,8,0,0,0,0,16Zm32,16H96a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16ZM224,48V156.69A15.86,15.86,0,0,1,219.31,168L168,219.31A15.86,15.86,0,0,1,156.69,224H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM48,208H152V160a8,8,0,0,1,8-8h48V48H48Zm120-40v28.7L196.69,168Z"},child:[]}]})(a)}function V(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"},child:[]}]})(a)}function M(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"},child:[]}]})(a)}function C(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},child:[]}]})(a)}function L(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"},child:[]}]})(a)}function s(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M112,152a8,8,0,0,0-8,8v28.69L66.34,151A8,8,0,0,1,64,145.37V95a32,32,0,1,0-16,0v50.38a23.85,23.85,0,0,0,7,17L92.69,200H64a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,112,152ZM40,64A16,16,0,1,1,56,80,16,16,0,0,1,40,64Zm168,97V110.63a23.85,23.85,0,0,0-7-17L163.31,56H192a8,8,0,0,0,0-16H144a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31L189.66,105a8,8,0,0,1,2.34,5.66V161a32,32,0,1,0,16,0Zm-8,47a16,16,0,1,1,16-16A16,16,0,0,1,200,208Z"},child:[]}]})(a)}function k(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},child:[]}]})(a)}function w(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M221.69,199.77,160,96.92V40h8a8,8,0,0,0,0-16H88a8,8,0,0,0,0,16h8V96.92L34.31,199.77A16,16,0,0,0,48,224H208a16,16,0,0,0,13.72-24.23ZM110.86,103.25A7.93,7.93,0,0,0,112,99.14V40h32V99.14a7.93,7.93,0,0,0,1.14,4.11L183.36,167c-12,2.37-29.07,1.37-51.75-10.11-15.91-8.05-31.05-12.32-45.22-12.81ZM48,208l28.54-47.58c14.25-1.74,30.31,1.85,47.82,10.72,19,9.61,35,12.88,48,12.88a69.89,69.89,0,0,0,19.55-2.7L208,208Z"},child:[]}]})(a)}function p(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M48,180c0,11,7.18,20,16,20a14.24,14.24,0,0,0,10.22-4.66A8,8,0,0,1,85.78,206.4,30.06,30.06,0,0,1,64,216c-17.65,0-32-16.15-32-36s14.35-36,32-36a30.06,30.06,0,0,1,21.78,9.6,8,8,0,0,1-11.56,11.06A14.24,14.24,0,0,0,64,160C55.18,160,48,169,48,180Zm79.6-8.69c-4-1.16-8.14-2.35-10.45-3.84-1.25-.81-1.23-1-1.12-1.9a4.57,4.57,0,0,1,2-3.67c4.6-3.12,15.34-1.73,19.82-.56A8,8,0,0,0,142,145.86c-2.12-.55-21-5.22-32.84,2.76a20.58,20.58,0,0,0-9,14.95c-2,15.88,13.65,20.41,23,23.11,12.06,3.49,13.12,4.92,12.78,7.59-.31,2.41-1.26,3.34-2.14,3.93-4.6,3.06-15.17,1.56-19.55.36A8,8,0,0,0,109.94,214a61.34,61.34,0,0,0,15.19,2c5.82,0,12.3-1,17.49-4.46a20.82,20.82,0,0,0,9.19-15.23C154,179,137.49,174.17,127.6,171.31Zm83.09-26.84a8,8,0,0,0-10.23,4.84L188,184.21l-12.47-34.9a8,8,0,0,0-15.07,5.38l20,56a8,8,0,0,0,15.07,0l20-56A8,8,0,0,0,210.69,144.47ZM216,88v24a8,8,0,0,1-16,0V96H152a8,8,0,0,1-8-8V40H56v72a8,8,0,0,1-16,0V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-27.31-8L160,51.31V80Z"},child:[]}]})(a)}function x(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-42.34-77.66a8,8,0,0,1-11.32,11.32L136,139.31V184a8,8,0,0,1-16,0V139.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0Z"},child:[]}]})(a)}function B(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"},child:[]}]})(a)}function m(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"},child:[]}]})(a)}function Y(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M225,80.4,183.6,39a24,24,0,0,0-33.94,0L31,157.66a24,24,0,0,0,0,33.94l30.06,30.06A8,8,0,0,0,66.74,224H216a8,8,0,0,0,0-16h-84.7L225,114.34A24,24,0,0,0,225,80.4ZM108.68,208H70.05L42.33,180.28a8,8,0,0,1,0-11.31L96,115.31,148.69,168Zm105-105L160,156.69,107.31,104,161,50.34a8,8,0,0,1,11.32,0l41.38,41.38a8,8,0,0,1,0,11.31Z"},child:[]}]})(a)}function N(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},child:[]}]})(a)}function _(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"},child:[]}]})(a)}function F(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"},child:[]}]})(a)}function S(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},child:[]}]})(a)}function W(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"},child:[]}]})(a)}function z(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z"},child:[]}]})(a)}function E(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"},child:[]}]})(a)}function G(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z"},child:[]}]})(a)}function R(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"},child:[]}]})(a)}function b(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M96.26,37.05A8,8,0,0,1,102,27.29a104.11,104.11,0,0,1,52,0,8,8,0,0,1-2,15.75,8.15,8.15,0,0,1-2-.26,88.09,88.09,0,0,0-44,0A8,8,0,0,1,96.26,37.05ZM53.79,55.14a104.05,104.05,0,0,0-26,45,8,8,0,0,0,15.42,4.27,88,88,0,0,1,22-38.09A8,8,0,0,0,53.79,55.14ZM43.21,151.55a8,8,0,1,0-15.42,4.28,104.12,104.12,0,0,0,26,45,8,8,0,0,0,11.41-11.22A88.14,88.14,0,0,1,43.21,151.55ZM150,213.22a88,88,0,0,1-44,0,8,8,0,1,0-4,15.49,104.11,104.11,0,0,0,52,0,8,8,0,0,0-4-15.49ZM222.65,146a8,8,0,0,0-9.85,5.58,87.91,87.91,0,0,1-22,38.08,8,8,0,1,0,11.42,11.21,104,104,0,0,0,26-45A8,8,0,0,0,222.65,146Zm-9.86-41.54a8,8,0,0,0,15.42-4.28,104,104,0,0,0-26-45,8,8,0,1,0-11.41,11.22A88,88,0,0,1,212.79,104.45Z"},child:[]}]})(a)}function j(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(a)}function q(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z"},child:[]}]})(a)}function I(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},child:[]}]})(a)}function J(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"},child:[]}]})(a)}function K(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z"},child:[]}]})(a)}function O(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"},child:[]}]})(a)}function Q(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"},child:[]}]})(a)}function T(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(a)}function U(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"},child:[]}]})(a)}function X(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-50.34,50.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM106.34,138.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l50.35-50.34a8,8,0,0,0-11.32-11.32Z"},child:[]}]})(a)}function P(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"},child:[]}]})(a)}function y(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"},child:[]}]})(a)}function D(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"},child:[]}]})(a)}function $(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"},child:[]}]})(a)}function aa(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"},child:[]}]})(a)}function at(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M232,144a64.07,64.07,0,0,1-64,64H80a8,8,0,0,1,0-16h88a48,48,0,0,0,0-96H51.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,85.66,45.66L51.31,80H168A64.07,64.07,0,0,1,232,144Z"},child:[]}]})(a)}function ar(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"},child:[]}]})(a)}function al(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"},child:[]}]})(a)}function ai(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"},child:[]}]})(a)}function ac(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"},child:[]}]})(a)}function an(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"},child:[]}]})(a)}function ao(a){return(0,l.k5)({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,176a8,8,0,0,1-8,8H136v56a8,8,0,0,1-16,0V184H40a8,8,0,0,1,0-16h9.29L70.46,48H64a8,8,0,0,1,0-16H192a8,8,0,0,1,0,16h-6.46l21.17,120H216A8,8,0,0,1,224,176Z"},child:[]}]})(a)}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1047,2042,2772,3058,3219,3577,4688,4707,4896,4909,5047,5374,5721,5794,6053,6258,6306,6636,6819,6986,6988,7761,7851,7981,8167,9433],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);