dgz-ui 1.4.7 → 1.4.9

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 (140) hide show
  1. package/dist/breadcrumb/index.cjs.js +1 -1
  2. package/dist/breadcrumb/index.es.js +1 -1
  3. package/dist/calendar/index.cjs.js +1 -1
  4. package/dist/calendar/index.es.js +1 -1
  5. package/dist/carousel/index.cjs.js +3 -3
  6. package/dist/carousel/index.cjs.js.map +1 -1
  7. package/dist/carousel/index.es.js +341 -340
  8. package/dist/carousel/index.es.js.map +1 -1
  9. package/dist/chunks/alert-dialog-CI_hZyxN.es.js.map +1 -1
  10. package/dist/chunks/alert-dialog-CYT3LDhH.cjs.js.map +1 -1
  11. package/dist/chunks/breadcrumb-BtO0mD2u.es.js +82 -0
  12. package/dist/chunks/breadcrumb-BtO0mD2u.es.js.map +1 -0
  13. package/dist/chunks/breadcrumb-DKVYizoh.cjs.js +2 -0
  14. package/dist/chunks/breadcrumb-DKVYizoh.cjs.js.map +1 -0
  15. package/dist/chunks/card-B87RYuvO.es.js.map +1 -1
  16. package/dist/chunks/card-Dokrjefn.cjs.js.map +1 -1
  17. package/dist/chunks/collapsible-CBOSWBKB.cjs.js.map +1 -1
  18. package/dist/chunks/collapsible-Ddd6kxXS.es.js.map +1 -1
  19. package/dist/chunks/dialog-Cb_DS5IV.es.js +105 -0
  20. package/dist/chunks/dialog-Cb_DS5IV.es.js.map +1 -0
  21. package/dist/chunks/dialog-pRz31cHo.cjs.js +2 -0
  22. package/dist/chunks/dialog-pRz31cHo.cjs.js.map +1 -0
  23. package/dist/chunks/dropdown-menu-BNURsvIJ.cjs.js.map +1 -1
  24. package/dist/chunks/dropdown-menu-CJTcrFP2.es.js.map +1 -1
  25. package/dist/chunks/pagination-CJiUbpUN.cjs.js +2 -0
  26. package/dist/chunks/pagination-CJiUbpUN.cjs.js.map +1 -0
  27. package/dist/chunks/pagination-aJ9Z0Ux9.es.js +113 -0
  28. package/dist/chunks/pagination-aJ9Z0Ux9.es.js.map +1 -0
  29. package/dist/chunks/popover-ChtTV2vy.es.js.map +1 -1
  30. package/dist/chunks/popover-cRDGBSyg.cjs.js.map +1 -1
  31. package/dist/chunks/scroll-area-sLp4wPce.cjs.js.map +1 -1
  32. package/dist/chunks/scroll-area-x2hiTYmL.es.js.map +1 -1
  33. package/dist/chunks/separator-DndNTVv8.es.js.map +1 -1
  34. package/dist/chunks/separator-uzP1VAwc.cjs.js.map +1 -1
  35. package/dist/chunks/sheet-BXSDa9XT.cjs.js +2 -0
  36. package/dist/chunks/sheet-BXSDa9XT.cjs.js.map +1 -0
  37. package/dist/chunks/{sheet-to_YuZ1x.es.js → sheet-hwgCcvpv.es.js} +35 -33
  38. package/dist/chunks/sheet-hwgCcvpv.es.js.map +1 -0
  39. package/dist/chunks/skeleton-DV_2OytH.es.js.map +1 -1
  40. package/dist/chunks/skeleton-ZHnXbbz7.cjs.js.map +1 -1
  41. package/dist/chunks/table-C-g7CjMt.cjs.js.map +1 -1
  42. package/dist/chunks/table-QbNlEa1M.es.js.map +1 -1
  43. package/dist/chunks/tabs-BNEY7wMF.cjs.js.map +1 -1
  44. package/dist/chunks/tabs-DUuliV4A.es.js.map +1 -1
  45. package/dist/chunks/textarea-C2I19p_j.cjs.js.map +1 -1
  46. package/dist/chunks/textarea-D9gE4ALW.es.js.map +1 -1
  47. package/dist/chunks/{timepicker-tBjjq8Ap.es.js → timepicker-BdDhd6Ax.es.js} +99 -99
  48. package/dist/chunks/{timepicker-tBjjq8Ap.es.js.map → timepicker-BdDhd6Ax.es.js.map} +1 -1
  49. package/dist/chunks/{timepicker-Ba47st2A.cjs.js → timepicker-C67I2BIy.cjs.js} +3 -3
  50. package/dist/chunks/{timepicker-Ba47st2A.cjs.js.map → timepicker-C67I2BIy.cjs.js.map} +1 -1
  51. package/dist/chunks/tooltip-DD-snel0.cjs.js.map +1 -1
  52. package/dist/chunks/tooltip-DHg9332v.es.js.map +1 -1
  53. package/dist/dialog/index.cjs.js +1 -1
  54. package/dist/dialog/index.es.js +1 -1
  55. package/dist/index.cjs.js +1 -1
  56. package/dist/index.es.js +5 -5
  57. package/dist/pagination/index.cjs.js +1 -1
  58. package/dist/pagination/index.es.js +1 -1
  59. package/dist/progress/index.cjs.js.map +1 -1
  60. package/dist/progress/index.es.js.map +1 -1
  61. package/dist/sheet/index.cjs.js +1 -1
  62. package/dist/sheet/index.es.js +1 -1
  63. package/dist/styles.css +1 -1
  64. package/dist/types/stories/Button.d.ts +15 -0
  65. package/dist/types/stories/Button.d.ts.map +1 -0
  66. package/dist/types/stories/Button.stories.d.ts +24 -0
  67. package/dist/types/stories/Button.stories.d.ts.map +1 -0
  68. package/dist/types/stories/Header.d.ts +12 -0
  69. package/dist/types/stories/Header.d.ts.map +1 -0
  70. package/dist/types/stories/Header.stories.d.ts +19 -0
  71. package/dist/types/stories/Header.stories.d.ts.map +1 -0
  72. package/dist/types/stories/Page.d.ts +3 -0
  73. package/dist/types/stories/Page.d.ts.map +1 -0
  74. package/dist/types/stories/Page.stories.d.ts +13 -0
  75. package/dist/types/stories/Page.stories.d.ts.map +1 -0
  76. package/dist/types/types/element-data.type.d.ts +4 -0
  77. package/dist/types/types/element-data.type.d.ts.map +1 -1
  78. package/dist/types/ui/alert-dialog/alert-dialog.d.ts +8 -0
  79. package/dist/types/ui/alert-dialog/alert-dialog.d.ts.map +1 -1
  80. package/dist/types/ui/breadcrumb/breadcrumb.d.ts +6 -4
  81. package/dist/types/ui/breadcrumb/breadcrumb.d.ts.map +1 -1
  82. package/dist/types/ui/calendar/datepicker.d.ts +1 -1
  83. package/dist/types/ui/calendar/datepicker.d.ts.map +1 -1
  84. package/dist/types/ui/calendar/timepicker.d.ts +5 -2
  85. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -1
  86. package/dist/types/ui/card/card.d.ts +8 -0
  87. package/dist/types/ui/card/card.d.ts.map +1 -1
  88. package/dist/types/ui/carousel/carousel.d.ts +53 -0
  89. package/dist/types/ui/carousel/carousel.d.ts.map +1 -1
  90. package/dist/types/ui/collapsible/collapsible.d.ts +3 -0
  91. package/dist/types/ui/collapsible/collapsible.d.ts.map +1 -1
  92. package/dist/types/ui/dialog/dialog.d.ts +19 -0
  93. package/dist/types/ui/dialog/dialog.d.ts.map +1 -1
  94. package/dist/types/ui/dropdown/dropdown-menu.d.ts +18 -0
  95. package/dist/types/ui/dropdown/dropdown-menu.d.ts.map +1 -1
  96. package/dist/types/ui/form/checkbox.d.ts +3 -1
  97. package/dist/types/ui/form/checkbox.d.ts.map +1 -1
  98. package/dist/types/ui/form/input.d.ts +13 -0
  99. package/dist/types/ui/form/input.d.ts.map +1 -1
  100. package/dist/types/ui/form/label.d.ts +1 -1
  101. package/dist/types/ui/form/radio-group.d.ts +2 -1
  102. package/dist/types/ui/form/radio-group.d.ts.map +1 -1
  103. package/dist/types/ui/form/select.d.ts +43 -0
  104. package/dist/types/ui/form/select.d.ts.map +1 -1
  105. package/dist/types/ui/form/switch.d.ts +3 -1
  106. package/dist/types/ui/form/switch.d.ts.map +1 -1
  107. package/dist/types/ui/form/textarea.d.ts +1 -0
  108. package/dist/types/ui/form/textarea.d.ts.map +1 -1
  109. package/dist/types/ui/pagination/pagination.d.ts +7 -7
  110. package/dist/types/ui/pagination/pagination.d.ts.map +1 -1
  111. package/dist/types/ui/popover/popover.d.ts +3 -1
  112. package/dist/types/ui/popover/popover.d.ts.map +1 -1
  113. package/dist/types/ui/progress/progress.d.ts +1 -1
  114. package/dist/types/ui/scroll-area/scroll-area.d.ts +2 -2
  115. package/dist/types/ui/separator/separator.d.ts +1 -1
  116. package/dist/types/ui/sheet/sheet.d.ts.map +1 -1
  117. package/dist/types/ui/skeleton/skeleton.d.ts +1 -0
  118. package/dist/types/ui/skeleton/skeleton.d.ts.map +1 -1
  119. package/dist/types/ui/tab/tabs.d.ts +3 -1
  120. package/dist/types/ui/tab/tabs.d.ts.map +1 -1
  121. package/dist/types/ui/table/table.d.ts +8 -0
  122. package/dist/types/ui/table/table.d.ts.map +1 -1
  123. package/dist/types/ui/tooltip/tooltip.d.ts +1 -0
  124. package/dist/types/ui/tooltip/tooltip.d.ts.map +1 -1
  125. package/package.json +17 -3
  126. package/dist/chunks/breadcrumb-D-Wgwp2Z.es.js +0 -78
  127. package/dist/chunks/breadcrumb-D-Wgwp2Z.es.js.map +0 -1
  128. package/dist/chunks/breadcrumb-RLwumNZG.cjs.js +0 -2
  129. package/dist/chunks/breadcrumb-RLwumNZG.cjs.js.map +0 -1
  130. package/dist/chunks/dialog-B3q0NLcE.es.js +0 -101
  131. package/dist/chunks/dialog-B3q0NLcE.es.js.map +0 -1
  132. package/dist/chunks/dialog-OejLEg29.cjs.js +0 -2
  133. package/dist/chunks/dialog-OejLEg29.cjs.js.map +0 -1
  134. package/dist/chunks/pagination-CLm98Oot.es.js +0 -103
  135. package/dist/chunks/pagination-CLm98Oot.es.js.map +0 -1
  136. package/dist/chunks/pagination-DsZd3LTv.cjs.js +0 -2
  137. package/dist/chunks/pagination-DsZd3LTv.cjs.js.map +0 -1
  138. package/dist/chunks/sheet-DvcqCxaD.cjs.js +0 -2
  139. package/dist/chunks/sheet-DvcqCxaD.cjs.js.map +0 -1
  140. package/dist/chunks/sheet-to_YuZ1x.es.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/breadcrumb-RLwumNZG.cjs.js");exports.Breadcrumb=r.Breadcrumb;exports.BreadcrumbEllipsis=r.BreadcrumbEllipsis;exports.BreadcrumbItem=r.BreadcrumbItem;exports.BreadcrumbList=r.BreadcrumbList;exports.BreadcrumbPage=r.BreadcrumbPage;exports.BreadcrumbSeparator=r.BreadcrumbSeparator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/breadcrumb-DKVYizoh.cjs.js");exports.Breadcrumb=r.Breadcrumb;exports.BreadcrumbEllipsis=r.BreadcrumbEllipsis;exports.BreadcrumbItem=r.BreadcrumbItem;exports.BreadcrumbList=r.BreadcrumbList;exports.BreadcrumbPage=r.BreadcrumbPage;exports.BreadcrumbSeparator=r.BreadcrumbSeparator;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { B as e, a as s, b as m, c as b, d as c, e as d } from "../chunks/breadcrumb-D-Wgwp2Z.es.js";
1
+ import { B as e, a as s, b as m, c as b, d as c, e as d } from "../chunks/breadcrumb-BtO0mD2u.es.js";
2
2
  export {
3
3
  e as Breadcrumb,
4
4
  s as BreadcrumbEllipsis,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/timepicker-Ba47st2A.cjs.js");exports.Calendar=e.Calendar;exports.DATE=e.DATE;exports.DatePicker=e.DatePicker;exports.HOUR=e.HOUR;exports.MINUTE=e.MINUTE;exports.TIME=e.TIME;exports.TimePicker=e.TimePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/timepicker-C67I2BIy.cjs.js");exports.Calendar=e.Calendar;exports.DATE=e.DATE;exports.DatePicker=e.DatePicker;exports.HOUR=e.HOUR;exports.MINUTE=e.MINUTE;exports.TIME=e.TIME;exports.TimePicker=e.TimePicker;
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { C as e, D as r, a as T, H as i, M as D, T as E, b as M } from "../chunks/timepicker-tBjjq8Ap.es.js";
1
+ import { C as e, D as r, a as T, H as i, M as D, T as E, b as M } from "../chunks/timepicker-BdDhd6Ax.es.js";
2
2
  export {
3
3
  e as Calendar,
4
4
  r as DATE,
@@ -1,12 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),Y=require("react"),ht=require("../chunks/index-BWS4jvS6.cjs.js"),Ut=require("../chunks/button-DLexbK7C.cjs.js"),Qt=require("../chunks/createLucideIcon-HtK0p34L.cjs.js");function gn(t){if(t&&t.__esModule)return t;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const j=gn(Y);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react/jsx-runtime"),Y=require("react"),Ut=require("react-i18next"),ht=require("../chunks/index-BWS4jvS6.cjs.js"),Qt=require("../chunks/button-DLexbK7C.cjs.js"),Jt=require("../chunks/createLucideIcon-HtK0p34L.cjs.js");function hn(t){if(t&&t.__esModule)return t;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const j=hn(Y);/**
2
2
  * @license lucide-react v0.563.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const hn=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],yn=Qt.createLucideIcon("arrow-left",hn);/**
6
+ */const yn=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Sn=Jt.createLucideIcon("arrow-left",yn);/**
7
7
  * @license lucide-react v0.563.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const Sn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],bn=Qt.createLucideIcon("arrow-right",Sn);function xn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Gt(t){return xn(t)||Array.isArray(t)}function En(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ot(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;const c=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return c!==s?!1:e.every(o=>{const a=t[o],u=n[o];return typeof a=="function"?`${a}`==`${u}`:!Gt(a)||!Gt(u)?a===u:Ot(a,u)})}function _t(t){return t.concat().sort((n,e)=>n.name>e.name?1:-1).map(n=>n.options)}function vn(t,n){if(t.length!==n.length)return!1;const e=_t(t),r=_t(n);return e.every((c,s)=>{const o=r[s];return Ot(c,o)})}function Pt(t){return typeof t=="number"}function Tt(t){return typeof t=="string"}function xt(t){return typeof t=="boolean"}function $t(t){return Object.prototype.toString.call(t)==="[object Object]"}function P(t){return Math.abs(t)}function At(t){return Math.sign(t)}function dt(t,n){return P(t-n)}function Cn(t,n){if(t===0||n===0||P(t)<=P(n))return 0;const e=dt(P(t),P(n));return P(e/t)}function Ln(t){return Math.round(t*100)/100}function pt(t){return mt(t).map(Number)}function V(t){return t[yt(t)]}function yt(t){return Math.max(0,t.length-1)}function Dt(t,n){return n===yt(t)}function Kt(t,n=0){return Array.from(Array(t),(e,r)=>n+r)}function mt(t){return Object.keys(t)}function Jt(t,n){return[t,n].reduce((e,r)=>(mt(r).forEach(c=>{const s=e[c],o=r[c],a=$t(s)&&$t(o);e[c]=a?Jt(s,o):o}),e),{})}function Nt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function wn(t,n){const e={start:r,center:c,end:s};function r(){return 0}function c(u){return s(u)/2}function s(u){return n-u}function o(u,i){return Tt(t)?e[t](u):t(n,u,i)}return{measure:o}}function gt(){let t=[];function n(c,s,o,a={passive:!0}){let u;if("addEventListener"in c)c.addEventListener(s,o,a),u=()=>c.removeEventListener(s,o,a);else{const i=c;i.addListener(o),u=()=>i.removeListener(o)}return t.push(u),r}function e(){t=t.filter(c=>c())}const r={add:n,clear:e};return r}function In(t,n,e,r){const c=gt(),s=1e3/60;let o=null,a=0,u=0;function i(){c.add(t,"visibilitychange",()=>{t.hidden&&l()})}function y(){b(),c.clear()}function d(h){if(!u)return;o||(o=h,e(),e());const f=h-o;for(o=h,a+=f;a>=s;)e(),a-=s;const g=a/s;r(g),u&&(u=n.requestAnimationFrame(d))}function p(){u||(u=n.requestAnimationFrame(d))}function b(){n.cancelAnimationFrame(u),o=null,a=0,u=0}function l(){o=null,a=0}return{init:i,destroy:y,start:p,stop:b,update:e,render:r}}function Tn(t,n){const e=n==="rtl",r=t==="y",c=r?"y":"x",s=r?"x":"y",o=!r&&e?-1:1,a=y(),u=d();function i(l){const{height:m,width:h}=l;return r?m:h}function y(){return r?"top":e?"right":"left"}function d(){return r?"bottom":e?"left":"right"}function p(l){return l*o}return{scroll:c,cross:s,startEdge:a,endEdge:u,measureSize:i,direction:p}}function ot(t=0,n=0){const e=P(t-n);function r(i){return i<t}function c(i){return i>n}function s(i){return r(i)||c(i)}function o(i){return s(i)?r(i)?t:n:i}function a(i){return e?i-e*Math.ceil((i-n)/e):i}return{length:e,max:n,min:t,constrain:o,reachedAny:s,reachedMax:c,reachedMin:r,removeOffset:a}}function Xt(t,n,e){const{constrain:r}=ot(0,t),c=t+1;let s=o(n);function o(p){return e?P((c+p)%c):r(p)}function a(){return s}function u(p){return s=o(p),d}function i(p){return y().set(a()+p)}function y(){return Xt(t,a(),e)}const d={get:a,set:u,add:i,clone:y};return d}function Nn(t,n,e,r,c,s,o,a,u,i,y,d,p,b,l,m,h,f,g){const{cross:x,direction:C}=t,N=["INPUT","SELECT","TEXTAREA"],L={passive:!1},E=gt(),v=gt(),w=ot(50,225).constrain(b.measure(20)),A={mouse:300,touch:400},I={mouse:500,touch:600},F=l?43:25;let q=!1,H=0,G=0,tt=!1,Z=!1,K=!1,U=!1;function ct(S){if(!g)return;function T(k){(xt(g)||g(S,k))&&at(k)}const D=n;E.add(D,"dragstart",k=>k.preventDefault(),L).add(D,"touchmove",()=>{},L).add(D,"touchend",()=>{}).add(D,"touchstart",T).add(D,"mousedown",T).add(D,"touchcancel",M).add(D,"contextmenu",M).add(D,"click",J,!0)}function _(){E.clear(),v.clear()}function rt(){const S=U?e:n;v.add(S,"touchmove",z,L).add(S,"touchend",M).add(S,"mousemove",z,L).add(S,"mouseup",M)}function st(S){const T=S.nodeName||"";return N.includes(T)}function Q(){return(l?I:A)[U?"mouse":"touch"]}function ut(S,T){const D=d.add(At(S)*-1),k=y.byDistance(S,!l).distance;return l||P(S)<w?k:h&&T?k*.5:y.byIndex(D.get(),0).distance}function at(S){const T=Nt(S,r);U=T,K=l&&T&&!S.buttons&&q,q=dt(c.get(),o.get())>=2,!(T&&S.button!==0)&&(st(S.target)||(tt=!0,s.pointerDown(S),i.useFriction(0).useDuration(0),c.set(o),rt(),H=s.readPoint(S),G=s.readPoint(S,x),p.emit("pointerDown")))}function z(S){if(!Nt(S,r)&&S.touches.length>=2)return M(S);const D=s.readPoint(S),k=s.readPoint(S,x),$=dt(D,H),X=dt(k,G);if(!Z&&!U&&(!S.cancelable||(Z=$>X,!Z)))return M(S);const nt=s.pointerMove(S);$>m&&(K=!0),i.useFriction(.3).useDuration(.75),a.start(),c.add(C(nt)),S.preventDefault()}function M(S){const D=y.byDistance(0,!1).index!==d.get(),k=s.pointerUp(S)*Q(),$=ut(C(k),D),X=Cn(k,$),nt=F-10*X,W=f+X/50;Z=!1,tt=!1,v.clear(),i.useDuration(nt).useFriction(W),u.distance($,!l),U=!1,p.emit("pointerUp")}function J(S){K&&(S.stopPropagation(),S.preventDefault(),K=!1)}function B(){return tt}return{init:ct,destroy:_,pointerDown:B}}function On(t,n){let r,c;function s(d){return d.timeStamp}function o(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Nt(d,n)?d:d.touches[0])[l]}function a(d){return r=d,c=d,o(d)}function u(d){const p=o(d)-o(c),b=s(d)-s(r)>170;return c=d,b&&(r=d),p}function i(d){if(!r||!c)return 0;const p=o(c)-o(r),b=s(d)-s(r),l=s(d)-s(c)>170,m=p/b;return b&&!l&&P(m)>.1?m:0}return{pointerDown:a,pointerMove:u,pointerUp:i,readPoint:o}}function Pn(){function t(e){const{offsetTop:r,offsetLeft:c,offsetWidth:s,offsetHeight:o}=e;return{top:r,right:c+s,bottom:r+o,left:c,width:s,height:o}}return{measure:t}}function An(t){function n(r){return t*(r/100)}return{measure:n}}function Dn(t,n,e,r,c,s,o){const a=[t].concat(r);let u,i,y=[],d=!1;function p(h){return c.measureSize(o.measure(h))}function b(h){if(!s)return;i=p(t),y=r.map(p);function f(g){for(const x of g){if(d)return;const C=x.target===t,N=r.indexOf(x.target),L=C?i:y[N],E=p(C?t:r[N]);if(P(E-L)>=.5){h.reInit(),n.emit("resize");break}}}u=new ResizeObserver(g=>{(xt(s)||s(h,g))&&f(g)}),e.requestAnimationFrame(()=>{a.forEach(g=>u.observe(g))})}function l(){d=!0,u&&u.disconnect()}return{init:b,destroy:l}}function Mn(t,n,e,r,c,s){let o=0,a=0,u=c,i=s,y=t.get(),d=0;function p(){const L=r.get()-t.get(),E=!u;let v=0;return E?(o=0,e.set(r),t.set(r),v=L):(e.set(t),o+=L/u,o*=i,y+=o,t.add(o),v=y-d),a=At(v),d=y,N}function b(){const L=r.get()-n.get();return P(L)<.001}function l(){return u}function m(){return a}function h(){return o}function f(){return x(c)}function g(){return C(s)}function x(L){return u=L,N}function C(L){return i=L,N}const N={direction:m,duration:l,velocity:h,seek:p,settled:b,useBaseFriction:g,useBaseDuration:f,useFriction:C,useDuration:x};return N}function kn(t,n,e,r,c){const s=c.measure(10),o=c.measure(50),a=ot(.1,.99);let u=!1;function i(){return!(u||!t.reachedAny(e.get())||!t.reachedAny(n.get()))}function y(b){if(!i())return;const l=t.reachedMin(n.get())?"min":"max",m=P(t[l]-n.get()),h=e.get()-n.get(),f=a.constrain(m/o);e.subtract(h*f),!b&&P(h)<s&&(e.set(t.constrain(e.get())),r.useDuration(25).useBaseFriction())}function d(b){u=!b}return{shouldConstrain:i,constrain:y,toggleActive:d}}function jn(t,n,e,r,c){const s=ot(-n+t,0),o=d(),a=y(),u=p();function i(l,m){return dt(l,m)<=1}function y(){const l=o[0],m=V(o),h=o.lastIndexOf(l),f=o.indexOf(m)+1;return ot(h,f)}function d(){return e.map((l,m)=>{const{min:h,max:f}=s,g=s.constrain(l),x=!m,C=Dt(e,m);return x?f:C||i(h,g)?h:i(f,g)?f:g}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+c)return[s.max];if(r==="keepSnaps")return o;const{min:l,max:m}=a;return o.slice(l,m)}return{snapsContained:u,scrollContainLimit:a}}function Fn(t,n,e){const r=n[0],c=e?r-t:V(n);return{limit:ot(c,r)}}function zn(t,n,e,r){const s=n.min+.1,o=n.max+.1,{reachedMin:a,reachedMax:u}=ot(s,o);function i(p){return p===1?u(e.get()):p===-1?a(e.get()):!1}function y(p){if(!i(p))return;const b=t*(p*-1);r.forEach(l=>l.add(b))}return{loop:y}}function Bn(t){const{max:n,length:e}=t;function r(s){const o=s-n;return e?o/-e:0}return{get:r}}function Rn(t,n,e,r,c){const{startEdge:s,endEdge:o}=t,{groupSlides:a}=c,u=d().map(n.measure),i=p(),y=b();function d(){return a(r).map(m=>V(m)[o]-m[0][s]).map(P)}function p(){return r.map(m=>e[s]-m[s]).map(m=>-P(m))}function b(){return a(i).map(m=>m[0]).map((m,h)=>m+u[h])}return{snaps:i,snapsAligned:y}}function Vn(t,n,e,r,c,s){const{groupSlides:o}=c,{min:a,max:u}=r,i=y();function y(){const p=o(s),b=!t||n==="keepSnaps";return e.length===1?[s]:b?p:p.slice(a,u).map((l,m,h)=>{const f=!m,g=Dt(h,m);if(f){const x=V(h[0])+1;return Kt(x)}if(g){const x=yt(s)-V(h)[0]+1;return Kt(x,V(h)[0])}return l})}return{slideRegistry:i}}function qn(t,n,e,r,c){const{reachedAny:s,removeOffset:o,constrain:a}=r;function u(l){return l.concat().sort((m,h)=>P(m)-P(h))[0]}function i(l){const m=t?o(l):a(l),h=n.map((g,x)=>({diff:y(g-m,0),index:x})).sort((g,x)=>P(g.diff)-P(x.diff)),{index:f}=h[0];return{index:f,distance:m}}function y(l,m){const h=[l,l+e,l-e];if(!t)return l;if(!m)return u(h);const f=h.filter(g=>At(g)===m);return f.length?u(f):V(h)-e}function d(l,m){const h=n[l]-c.get(),f=y(h,m);return{index:l,distance:f}}function p(l,m){const h=c.get()+l,{index:f,distance:g}=i(h),x=!t&&s(h);if(!m||x)return{index:f,distance:l};const C=n[f]-g,N=l+y(C,0);return{index:f,distance:N}}return{byDistance:p,byIndex:d,shortcut:y}}function Hn(t,n,e,r,c,s,o){function a(d){const p=d.distance,b=d.index!==n.get();s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),b&&(e.set(n.get()),n.set(d.index),o.emit("select"))}function u(d,p){const b=c.byDistance(d,p);a(b)}function i(d,p){const b=n.clone().set(d),l=c.byIndex(b.get(),p);a(l)}return{distance:u,index:i}}function Gn(t,n,e,r,c,s,o,a){const u={passive:!0,capture:!0};let i=0;function y(b){if(!a)return;function l(m){if(new Date().getTime()-i>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const g=e.findIndex(x=>x.includes(m));Pt(g)&&(c.useDuration(0),r.index(g,0),o.emit("slideFocus"))}s.add(document,"keydown",d,!1),n.forEach((m,h)=>{s.add(m,"focus",f=>{(xt(a)||a(b,f))&&l(h)},u)})}function d(b){b.code==="Tab"&&(i=new Date().getTime())}return{init:y}}function ft(t){let n=t;function e(){return n}function r(u){n=o(u)}function c(u){n+=o(u)}function s(u){n-=o(u)}function o(u){return Pt(u)?u:u.get()}return{get:e,set:r,add:c,subtract:s}}function Yt(t,n){const e=t.scroll==="x"?o:a,r=n.style;let c=null,s=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function a(p){return`translate3d(0px,${p}px,0px)`}function u(p){if(s)return;const b=Ln(t.direction(p));b!==c&&(r.transform=e(b),c=b)}function i(p){s=!p}function y(){s||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:y,to:u,toggleActive:i}}function _n(t,n,e,r,c,s,o,a,u){const y=pt(c),d=pt(c).reverse(),p=f().concat(g());function b(E,v){return E.reduce((w,A)=>w-c[A],v)}function l(E,v){return E.reduce((w,A)=>b(w,v)>0?w.concat([A]):w,[])}function m(E){return s.map((v,w)=>({start:v-r[w]+.5+E,end:v+n-.5+E}))}function h(E,v,w){const A=m(v);return E.map(I=>{const F=w?0:-e,q=w?e:0,H=w?"end":"start",G=A[I][H];return{index:I,loopPoint:G,slideLocation:ft(-1),translate:Yt(t,u[I]),target:()=>a.get()>G?F:q}})}function f(){const E=o[0],v=l(d,E);return h(v,e,!1)}function g(){const E=n-o[0]-1,v=l(y,E);return h(v,-e,!0)}function x(){return p.every(({index:E})=>{const v=y.filter(w=>w!==E);return b(v,n)<=.1})}function C(){p.forEach(E=>{const{target:v,translate:w,slideLocation:A}=E,I=v();I!==A.get()&&(w.to(I),A.set(I))})}function N(){p.forEach(E=>E.translate.clear())}return{canLoop:x,clear:N,loop:C,loopPoints:p}}function $n(t,n,e){let r,c=!1;function s(u){if(!e)return;function i(y){for(const d of y)if(d.type==="childList"){u.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(y=>{c||(xt(e)||e(u,y))&&i(y)}),r.observe(t,{childList:!0})}function o(){r&&r.disconnect(),c=!0}return{init:s,destroy:o}}function Kn(t,n,e,r){const c={};let s=null,o=null,a,u=!1;function i(){a=new IntersectionObserver(l=>{u||(l.forEach(m=>{const h=n.indexOf(m.target);c[h]=m}),s=null,o=null,e.emit("slidesInView"))},{root:t.parentElement,threshold:r}),n.forEach(l=>a.observe(l))}function y(){a&&a.disconnect(),u=!0}function d(l){return mt(c).reduce((m,h)=>{const f=parseInt(h),{isIntersecting:g}=c[f];return(l&&g||!l&&!g)&&m.push(f),m},[])}function p(l=!0){if(l&&s)return s;if(!l&&o)return o;const m=d(l);return l&&(s=m),l||(o=m),m}return{init:i,destroy:y,get:p}}function Un(t,n,e,r,c,s){const{measureSize:o,startEdge:a,endEdge:u}=t,i=e[0]&&c,y=l(),d=m(),p=e.map(o),b=h();function l(){if(!i)return 0;const g=e[0];return P(n[a]-g[a])}function m(){if(!i)return 0;const g=s.getComputedStyle(V(r));return parseFloat(g.getPropertyValue(`margin-${u}`))}function h(){return e.map((g,x,C)=>{const N=!x,L=Dt(C,x);return N?p[x]+y:L?p[x]+d:C[x+1][a]-g[a]}).map(P)}return{slideSizes:p,slideSizesWithGaps:b,startGap:y,endGap:d}}function Qn(t,n,e,r,c,s,o,a,u){const{startEdge:i,endEdge:y,direction:d}=t,p=Pt(e);function b(f,g){return pt(f).filter(x=>x%g===0).map(x=>f.slice(x,x+g))}function l(f){return f.length?pt(f).reduce((g,x,C)=>{const N=V(g)||0,L=N===0,E=x===yt(f),v=c[i]-s[N][i],w=c[i]-s[x][y],A=!r&&L?d(o):0,I=!r&&E?d(a):0,F=P(w-I-(v+A));return C&&F>n+u&&g.push(x),E&&g.push(f.length),g},[]).map((g,x,C)=>{const N=Math.max(C[x-1]||0);return f.slice(N,g)}):[]}function m(f){return p?b(f,e):l(f)}return{groupSlides:m}}function Jn(t,n,e,r,c,s,o){const{align:a,axis:u,direction:i,startIndex:y,loop:d,duration:p,dragFree:b,dragThreshold:l,inViewThreshold:m,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:x,watchSlides:C,watchDrag:N,watchFocus:L}=s,E=2,v=Pn(),w=v.measure(n),A=e.map(v.measure),I=Tn(u,i),F=I.measureSize(w),q=An(F),H=wn(a,F),G=!d&&!!g,tt=d||!!g,{slideSizes:Z,slideSizesWithGaps:K,startGap:U,endGap:ct}=Un(I,w,A,e,tt,c),_=Qn(I,F,h,d,w,A,U,ct,E),{snaps:rt,snapsAligned:st}=Rn(I,H,w,A,_),Q=-V(rt)+V(K),{snapsContained:ut,scrollContainLimit:at}=jn(F,Q,st,g,E),z=G?ut:st,{limit:M}=Fn(Q,z,d),J=Xt(yt(z),y,d),B=J.clone(),O=pt(e),S=({dragHandler:it,scrollBody:wt,scrollBounds:It,options:{loop:St}})=>{St||It.constrain(it.pointerDown()),wt.seek()},T=({scrollBody:it,translate:wt,location:It,offsetLocation:St,previousLocation:cn,scrollLooper:un,slideLooper:an,dragHandler:ln,animation:fn,eventHandler:zt,scrollBounds:dn,options:{loop:Bt}},Rt)=>{const Vt=it.settled(),pn=!dn.shouldConstrain(),qt=Bt?Vt:Vt&&pn,Ht=qt&&!ln.pointerDown();Ht&&fn.stop();const mn=It.get()*Rt+cn.get()*(1-Rt);St.set(mn),Bt&&(un.loop(it.direction()),an.loop()),wt.to(St.get()),Ht&&zt.emit("settle"),qt||zt.emit("scroll")},D=In(r,c,()=>S(Lt),it=>T(Lt,it)),k=.68,$=z[J.get()],X=ft($),nt=ft($),W=ft($),et=ft($),lt=Mn(X,W,nt,et,p,k),vt=qn(d,z,Q,M,et),Ct=Hn(D,J,B,lt,vt,et,o),kt=Bn(M),jt=gt(),rn=Kn(n,e,o,m),{slideRegistry:Ft}=Vn(G,g,z,at,_,O),sn=Gn(t,e,Ft,Ct,lt,jt,o,L),Lt={ownerDocument:r,ownerWindow:c,eventHandler:o,containerRect:w,slideRects:A,animation:D,axis:I,dragHandler:Nn(I,t,r,c,et,On(I,c),X,D,Ct,lt,vt,J,o,q,b,l,f,k,N),eventStore:jt,percentOfView:q,index:J,indexPrevious:B,limit:M,location:X,offsetLocation:W,previousLocation:nt,options:s,resizeHandler:Dn(n,o,c,e,I,x,v),scrollBody:lt,scrollBounds:kn(M,W,et,lt,q),scrollLooper:zn(Q,M,W,[X,W,nt,et]),scrollProgress:kt,scrollSnapList:z.map(kt.get),scrollSnaps:z,scrollTarget:vt,scrollTo:Ct,slideLooper:_n(I,F,Q,Z,K,rt,z,W,e),slideFocus:sn,slidesHandler:$n(n,o,C),slidesInView:rn,slideIndexes:O,slideRegistry:Ft,slidesToScroll:_,target:et,translate:Yt(I,n)};return Lt}function Xn(){let t={},n;function e(i){n=i}function r(i){return t[i]||[]}function c(i){return r(i).forEach(y=>y(n,i)),u}function s(i,y){return t[i]=r(i).concat([y]),u}function o(i,y){return t[i]=r(i).filter(d=>d!==y),u}function a(){t={}}const u={init:e,emit:c,off:o,on:s,clear:a};return u}const Yn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Zn(t){function n(s,o){return Jt(s,o||{})}function e(s){const o=s.breakpoints||{},a=mt(o).filter(u=>t.matchMedia(u).matches).map(u=>o[u]).reduce((u,i)=>n(u,i),{});return n(s,a)}function r(s){return s.map(o=>mt(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:e,optionsMediaQueries:r}}function Wn(t){let n=[];function e(s,o){return n=o.filter(({options:a})=>t.optionsAtMedia(a).active!==!1),n.forEach(a=>a.init(s,t)),o.reduce((a,u)=>Object.assign(a,{[u.name]:u}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:e,destroy:r}}function bt(t,n,e){const r=t.ownerDocument,c=r.defaultView,s=Zn(c),o=Wn(s),a=gt(),u=Xn(),{mergeOptions:i,optionsAtMedia:y,optionsMediaQueries:d}=s,{on:p,off:b,emit:l}=u,m=I;let h=!1,f,g=i(Yn,bt.globalOptions),x=i(g),C=[],N,L,E;function v(){const{container:O,slides:S}=x;L=(Tt(O)?t.querySelector(O):O)||t.children[0];const D=Tt(S)?L.querySelectorAll(S):S;E=[].slice.call(D||L.children)}function w(O){const S=Jn(t,L,E,r,c,O,u);if(O.loop&&!S.slideLooper.canLoop()){const T=Object.assign({},O,{loop:!1});return w(T)}return S}function A(O,S){h||(g=i(g,O),x=y(g),C=S||C,v(),f=w(x),d([g,...C.map(({options:T})=>T)]).forEach(T=>a.add(T,"change",I)),x.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(B),f.eventHandler.init(B),f.resizeHandler.init(B),f.slidesHandler.init(B),f.options.loop&&f.slideLooper.loop(),L.offsetParent&&E.length&&f.dragHandler.init(B),N=o.init(B,C)))}function I(O,S){const T=_();F(),A(i({startIndex:T},O),S),u.emit("reInit")}function F(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),a.clear()}function q(){h||(h=!0,a.clear(),F(),u.emit("destroy"),u.clear())}function H(O,S,T){!x.active||h||(f.scrollBody.useBaseFriction().useDuration(S===!0?0:x.duration),f.scrollTo.index(O,T||0))}function G(O){const S=f.index.add(1).get();H(S,O,-1)}function tt(O){const S=f.index.add(-1).get();H(S,O,1)}function Z(){return f.index.add(1).get()!==_()}function K(){return f.index.add(-1).get()!==_()}function U(){return f.scrollSnapList}function ct(){return f.scrollProgress.get(f.offsetLocation.get())}function _(){return f.index.get()}function rt(){return f.indexPrevious.get()}function st(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function ut(){return N}function at(){return f}function z(){return t}function M(){return L}function J(){return E}const B={canScrollNext:Z,canScrollPrev:K,containerNode:M,internalEngine:at,destroy:q,off:b,on:p,emit:l,plugins:ut,previousScrollSnap:rt,reInit:m,rootNode:z,scrollNext:G,scrollPrev:tt,scrollProgress:ct,scrollSnapList:U,scrollTo:H,selectedScrollSnap:_,slideNodes:J,slidesInView:st,slidesNotInView:Q};return A(n,e),setTimeout(()=>u.emit("init"),0),B}bt.globalOptions=void 0;function Mt(t={},n=[]){const e=Y.useRef(t),r=Y.useRef(n),[c,s]=Y.useState(),[o,a]=Y.useState(),u=Y.useCallback(()=>{c&&c.reInit(e.current,r.current)},[c]);return Y.useEffect(()=>{Ot(e.current,t)||(e.current=t,u())},[t,u]),Y.useEffect(()=>{vn(r.current,n)||(r.current=n,u())},[n,u]),Y.useEffect(()=>{if(En()&&o){bt.globalOptions=Mt.globalOptions;const i=bt(o,e.current,r.current);return s(i),()=>i.destroy()}else s(void 0)},[o,s]),[a,c]}Mt.globalOptions=void 0;const Zt=j.createContext(null);function Et(){const t=j.useContext(Zt);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}const Wt=j.forwardRef(({orientation:t="horizontal",opts:n,setApi:e,plugins:r,className:c,children:s,...o},a)=>{const[u,i]=Mt({...n,axis:t==="horizontal"?"x":"y"},r),[y,d]=j.useState(!1),[p,b]=j.useState(!1),l=j.useCallback(g=>{g&&(d(g.canScrollPrev()),b(g.canScrollNext()))},[]),m=j.useCallback(()=>{i==null||i.scrollPrev()},[i]),h=j.useCallback(()=>{i==null||i.scrollNext()},[i]),f=j.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),m()):g.key==="ArrowRight"&&(g.preventDefault(),h())},[m,h]);return j.useEffect(()=>{!i||!e||e(i)},[i,e]),j.useEffect(()=>{if(i)return l(i),i.on("reInit",l),i.on("select",l),()=>{i==null||i.off("select",l)}},[i,l]),R.jsx(Zt.Provider,{value:{carouselRef:u,api:i,opts:n,orientation:t||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:h,canScrollPrev:y,canScrollNext:p},children:R.jsx("div",{ref:a,onKeyDownCapture:f,className:ht.cn("relative",c),role:"region","aria-roledescription":"carousel",...o,children:s})})});Wt.displayName="Carousel";const tn=j.forwardRef(({className:t,...n},e)=>{const{carouselRef:r,orientation:c}=Et();return R.jsx("div",{ref:r,className:"overflow-hidden",children:R.jsx("div",{ref:e,className:ht.cn("flex",c==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...n})})});tn.displayName="CarouselContent";const nn=j.forwardRef(({className:t,...n},e)=>{const{orientation:r}=Et();return R.jsx("div",{ref:e,role:"group","aria-roledescription":"slide",className:ht.cn("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",t),...n})});nn.displayName="CarouselItem";const en=j.forwardRef(({className:t,variant:n,size:e="icon",...r},c)=>{const{orientation:s,scrollPrev:o,canScrollPrev:a}=Et();return R.jsxs(Ut.Button,{ref:c,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",s==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:o,...r,children:[R.jsx(yn,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only"})]})});en.displayName="CarouselPrevious";const on=j.forwardRef(({className:t,variant:n,size:e="icon",...r},c)=>{const{orientation:s,scrollNext:o,canScrollNext:a}=Et();return R.jsxs(Ut.Button,{ref:c,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",s==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!a,onClick:o,...r,children:[R.jsx(bn,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only",children:"Next slide"})]})});on.displayName="CarouselNext";exports.Carousel=Wt;exports.CarouselContent=tn;exports.CarouselItem=nn;exports.CarouselNext=on;exports.CarouselPrevious=en;
11
+ */const bn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],xn=Jt.createLucideIcon("arrow-right",bn);function vn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Gt(t){return vn(t)||Array.isArray(t)}function En(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ot(t,n){const e=Object.keys(t),r=Object.keys(n);if(e.length!==r.length)return!1;const u=JSON.stringify(Object.keys(t.breakpoints||{})),s=JSON.stringify(Object.keys(n.breakpoints||{}));return u!==s?!1:e.every(o=>{const a=t[o],i=n[o];return typeof a=="function"?`${a}`==`${i}`:!Gt(a)||!Gt(i)?a===i:Ot(a,i)})}function _t(t){return t.concat().sort((n,e)=>n.name>e.name?1:-1).map(n=>n.options)}function Cn(t,n){if(t.length!==n.length)return!1;const e=_t(t),r=_t(n);return e.every((u,s)=>{const o=r[s];return Ot(u,o)})}function Pt(t){return typeof t=="number"}function Tt(t){return typeof t=="string"}function xt(t){return typeof t=="boolean"}function $t(t){return Object.prototype.toString.call(t)==="[object Object]"}function P(t){return Math.abs(t)}function At(t){return Math.sign(t)}function dt(t,n){return P(t-n)}function Ln(t,n){if(t===0||n===0||P(t)<=P(n))return 0;const e=dt(P(t),P(n));return P(e/t)}function wn(t){return Math.round(t*100)/100}function pt(t){return mt(t).map(Number)}function V(t){return t[yt(t)]}function yt(t){return Math.max(0,t.length-1)}function Dt(t,n){return n===yt(t)}function Kt(t,n=0){return Array.from(Array(t),(e,r)=>n+r)}function mt(t){return Object.keys(t)}function Xt(t,n){return[t,n].reduce((e,r)=>(mt(r).forEach(u=>{const s=e[u],o=r[u],a=$t(s)&&$t(o);e[u]=a?Xt(s,o):o}),e),{})}function Nt(t,n){return typeof n.MouseEvent<"u"&&t instanceof n.MouseEvent}function In(t,n){const e={start:r,center:u,end:s};function r(){return 0}function u(i){return s(i)/2}function s(i){return n-i}function o(i,c){return Tt(t)?e[t](i):t(n,i,c)}return{measure:o}}function gt(){let t=[];function n(u,s,o,a={passive:!0}){let i;if("addEventListener"in u)u.addEventListener(s,o,a),i=()=>u.removeEventListener(s,o,a);else{const c=u;c.addListener(o),i=()=>c.removeListener(o)}return t.push(i),r}function e(){t=t.filter(u=>u())}const r={add:n,clear:e};return r}function Tn(t,n,e,r){const u=gt(),s=1e3/60;let o=null,a=0,i=0;function c(){u.add(t,"visibilitychange",()=>{t.hidden&&l()})}function y(){b(),u.clear()}function d(h){if(!i)return;o||(o=h,e(),e());const f=h-o;for(o=h,a+=f;a>=s;)e(),a-=s;const g=a/s;r(g),i&&(i=n.requestAnimationFrame(d))}function p(){i||(i=n.requestAnimationFrame(d))}function b(){n.cancelAnimationFrame(i),o=null,a=0,i=0}function l(){o=null,a=0}return{init:c,destroy:y,start:p,stop:b,update:e,render:r}}function Nn(t,n){const e=n==="rtl",r=t==="y",u=r?"y":"x",s=r?"x":"y",o=!r&&e?-1:1,a=y(),i=d();function c(l){const{height:m,width:h}=l;return r?m:h}function y(){return r?"top":e?"right":"left"}function d(){return r?"bottom":e?"left":"right"}function p(l){return l*o}return{scroll:u,cross:s,startEdge:a,endEdge:i,measureSize:c,direction:p}}function ot(t=0,n=0){const e=P(t-n);function r(c){return c<t}function u(c){return c>n}function s(c){return r(c)||u(c)}function o(c){return s(c)?r(c)?t:n:c}function a(c){return e?c-e*Math.ceil((c-n)/e):c}return{length:e,max:n,min:t,constrain:o,reachedAny:s,reachedMax:u,reachedMin:r,removeOffset:a}}function Yt(t,n,e){const{constrain:r}=ot(0,t),u=t+1;let s=o(n);function o(p){return e?P((u+p)%u):r(p)}function a(){return s}function i(p){return s=o(p),d}function c(p){return y().set(a()+p)}function y(){return Yt(t,a(),e)}const d={get:a,set:i,add:c,clone:y};return d}function On(t,n,e,r,u,s,o,a,i,c,y,d,p,b,l,m,h,f,g){const{cross:x,direction:C}=t,N=["INPUT","SELECT","TEXTAREA"],L={passive:!1},v=gt(),E=gt(),w=ot(50,225).constrain(b.measure(20)),A={mouse:300,touch:400},I={mouse:500,touch:600},F=l?43:25;let q=!1,H=0,G=0,tt=!1,Z=!1,K=!1,U=!1;function ct(S){if(!g)return;function T(k){(xt(g)||g(S,k))&&at(k)}const D=n;v.add(D,"dragstart",k=>k.preventDefault(),L).add(D,"touchmove",()=>{},L).add(D,"touchend",()=>{}).add(D,"touchstart",T).add(D,"mousedown",T).add(D,"touchcancel",M).add(D,"contextmenu",M).add(D,"click",J,!0)}function _(){v.clear(),E.clear()}function rt(){const S=U?e:n;E.add(S,"touchmove",z,L).add(S,"touchend",M).add(S,"mousemove",z,L).add(S,"mouseup",M)}function st(S){const T=S.nodeName||"";return N.includes(T)}function Q(){return(l?I:A)[U?"mouse":"touch"]}function ut(S,T){const D=d.add(At(S)*-1),k=y.byDistance(S,!l).distance;return l||P(S)<w?k:h&&T?k*.5:y.byIndex(D.get(),0).distance}function at(S){const T=Nt(S,r);U=T,K=l&&T&&!S.buttons&&q,q=dt(u.get(),o.get())>=2,!(T&&S.button!==0)&&(st(S.target)||(tt=!0,s.pointerDown(S),c.useFriction(0).useDuration(0),u.set(o),rt(),H=s.readPoint(S),G=s.readPoint(S,x),p.emit("pointerDown")))}function z(S){if(!Nt(S,r)&&S.touches.length>=2)return M(S);const D=s.readPoint(S),k=s.readPoint(S,x),$=dt(D,H),X=dt(k,G);if(!Z&&!U&&(!S.cancelable||(Z=$>X,!Z)))return M(S);const nt=s.pointerMove(S);$>m&&(K=!0),c.useFriction(.3).useDuration(.75),a.start(),u.add(C(nt)),S.preventDefault()}function M(S){const D=y.byDistance(0,!1).index!==d.get(),k=s.pointerUp(S)*Q(),$=ut(C(k),D),X=Ln(k,$),nt=F-10*X,W=f+X/50;Z=!1,tt=!1,E.clear(),c.useDuration(nt).useFriction(W),i.distance($,!l),U=!1,p.emit("pointerUp")}function J(S){K&&(S.stopPropagation(),S.preventDefault(),K=!1)}function B(){return tt}return{init:ct,destroy:_,pointerDown:B}}function Pn(t,n){let r,u;function s(d){return d.timeStamp}function o(d,p){const l=`client${(p||t.scroll)==="x"?"X":"Y"}`;return(Nt(d,n)?d:d.touches[0])[l]}function a(d){return r=d,u=d,o(d)}function i(d){const p=o(d)-o(u),b=s(d)-s(r)>170;return u=d,b&&(r=d),p}function c(d){if(!r||!u)return 0;const p=o(u)-o(r),b=s(d)-s(r),l=s(d)-s(u)>170,m=p/b;return b&&!l&&P(m)>.1?m:0}return{pointerDown:a,pointerMove:i,pointerUp:c,readPoint:o}}function An(){function t(e){const{offsetTop:r,offsetLeft:u,offsetWidth:s,offsetHeight:o}=e;return{top:r,right:u+s,bottom:r+o,left:u,width:s,height:o}}return{measure:t}}function Dn(t){function n(r){return t*(r/100)}return{measure:n}}function Mn(t,n,e,r,u,s,o){const a=[t].concat(r);let i,c,y=[],d=!1;function p(h){return u.measureSize(o.measure(h))}function b(h){if(!s)return;c=p(t),y=r.map(p);function f(g){for(const x of g){if(d)return;const C=x.target===t,N=r.indexOf(x.target),L=C?c:y[N],v=p(C?t:r[N]);if(P(v-L)>=.5){h.reInit(),n.emit("resize");break}}}i=new ResizeObserver(g=>{(xt(s)||s(h,g))&&f(g)}),e.requestAnimationFrame(()=>{a.forEach(g=>i.observe(g))})}function l(){d=!0,i&&i.disconnect()}return{init:b,destroy:l}}function kn(t,n,e,r,u,s){let o=0,a=0,i=u,c=s,y=t.get(),d=0;function p(){const L=r.get()-t.get(),v=!i;let E=0;return v?(o=0,e.set(r),t.set(r),E=L):(e.set(t),o+=L/i,o*=c,y+=o,t.add(o),E=y-d),a=At(E),d=y,N}function b(){const L=r.get()-n.get();return P(L)<.001}function l(){return i}function m(){return a}function h(){return o}function f(){return x(u)}function g(){return C(s)}function x(L){return i=L,N}function C(L){return c=L,N}const N={direction:m,duration:l,velocity:h,seek:p,settled:b,useBaseFriction:g,useBaseDuration:f,useFriction:C,useDuration:x};return N}function jn(t,n,e,r,u){const s=u.measure(10),o=u.measure(50),a=ot(.1,.99);let i=!1;function c(){return!(i||!t.reachedAny(e.get())||!t.reachedAny(n.get()))}function y(b){if(!c())return;const l=t.reachedMin(n.get())?"min":"max",m=P(t[l]-n.get()),h=e.get()-n.get(),f=a.constrain(m/o);e.subtract(h*f),!b&&P(h)<s&&(e.set(t.constrain(e.get())),r.useDuration(25).useBaseFriction())}function d(b){i=!b}return{shouldConstrain:c,constrain:y,toggleActive:d}}function Fn(t,n,e,r,u){const s=ot(-n+t,0),o=d(),a=y(),i=p();function c(l,m){return dt(l,m)<=1}function y(){const l=o[0],m=V(o),h=o.lastIndexOf(l),f=o.indexOf(m)+1;return ot(h,f)}function d(){return e.map((l,m)=>{const{min:h,max:f}=s,g=s.constrain(l),x=!m,C=Dt(e,m);return x?f:C||c(h,g)?h:c(f,g)?f:g}).map(l=>parseFloat(l.toFixed(3)))}function p(){if(n<=t+u)return[s.max];if(r==="keepSnaps")return o;const{min:l,max:m}=a;return o.slice(l,m)}return{snapsContained:i,scrollContainLimit:a}}function zn(t,n,e){const r=n[0],u=e?r-t:V(n);return{limit:ot(u,r)}}function Bn(t,n,e,r){const s=n.min+.1,o=n.max+.1,{reachedMin:a,reachedMax:i}=ot(s,o);function c(p){return p===1?i(e.get()):p===-1?a(e.get()):!1}function y(p){if(!c(p))return;const b=t*(p*-1);r.forEach(l=>l.add(b))}return{loop:y}}function Rn(t){const{max:n,length:e}=t;function r(s){const o=s-n;return e?o/-e:0}return{get:r}}function Vn(t,n,e,r,u){const{startEdge:s,endEdge:o}=t,{groupSlides:a}=u,i=d().map(n.measure),c=p(),y=b();function d(){return a(r).map(m=>V(m)[o]-m[0][s]).map(P)}function p(){return r.map(m=>e[s]-m[s]).map(m=>-P(m))}function b(){return a(c).map(m=>m[0]).map((m,h)=>m+i[h])}return{snaps:c,snapsAligned:y}}function qn(t,n,e,r,u,s){const{groupSlides:o}=u,{min:a,max:i}=r,c=y();function y(){const p=o(s),b=!t||n==="keepSnaps";return e.length===1?[s]:b?p:p.slice(a,i).map((l,m,h)=>{const f=!m,g=Dt(h,m);if(f){const x=V(h[0])+1;return Kt(x)}if(g){const x=yt(s)-V(h)[0]+1;return Kt(x,V(h)[0])}return l})}return{slideRegistry:c}}function Hn(t,n,e,r,u){const{reachedAny:s,removeOffset:o,constrain:a}=r;function i(l){return l.concat().sort((m,h)=>P(m)-P(h))[0]}function c(l){const m=t?o(l):a(l),h=n.map((g,x)=>({diff:y(g-m,0),index:x})).sort((g,x)=>P(g.diff)-P(x.diff)),{index:f}=h[0];return{index:f,distance:m}}function y(l,m){const h=[l,l+e,l-e];if(!t)return l;if(!m)return i(h);const f=h.filter(g=>At(g)===m);return f.length?i(f):V(h)-e}function d(l,m){const h=n[l]-u.get(),f=y(h,m);return{index:l,distance:f}}function p(l,m){const h=u.get()+l,{index:f,distance:g}=c(h),x=!t&&s(h);if(!m||x)return{index:f,distance:l};const C=n[f]-g,N=l+y(C,0);return{index:f,distance:N}}return{byDistance:p,byIndex:d,shortcut:y}}function Gn(t,n,e,r,u,s,o){function a(d){const p=d.distance,b=d.index!==n.get();s.add(p),p&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),b&&(e.set(n.get()),n.set(d.index),o.emit("select"))}function i(d,p){const b=u.byDistance(d,p);a(b)}function c(d,p){const b=n.clone().set(d),l=u.byIndex(b.get(),p);a(l)}return{distance:i,index:c}}function _n(t,n,e,r,u,s,o,a){const i={passive:!0,capture:!0};let c=0;function y(b){if(!a)return;function l(m){if(new Date().getTime()-c>10)return;o.emit("slideFocusStart"),t.scrollLeft=0;const g=e.findIndex(x=>x.includes(m));Pt(g)&&(u.useDuration(0),r.index(g,0),o.emit("slideFocus"))}s.add(document,"keydown",d,!1),n.forEach((m,h)=>{s.add(m,"focus",f=>{(xt(a)||a(b,f))&&l(h)},i)})}function d(b){b.code==="Tab"&&(c=new Date().getTime())}return{init:y}}function ft(t){let n=t;function e(){return n}function r(i){n=o(i)}function u(i){n+=o(i)}function s(i){n-=o(i)}function o(i){return Pt(i)?i:i.get()}return{get:e,set:r,add:u,subtract:s}}function Zt(t,n){const e=t.scroll==="x"?o:a,r=n.style;let u=null,s=!1;function o(p){return`translate3d(${p}px,0px,0px)`}function a(p){return`translate3d(0px,${p}px,0px)`}function i(p){if(s)return;const b=wn(t.direction(p));b!==u&&(r.transform=e(b),u=b)}function c(p){s=!p}function y(){s||(r.transform="",n.getAttribute("style")||n.removeAttribute("style"))}return{clear:y,to:i,toggleActive:c}}function $n(t,n,e,r,u,s,o,a,i){const y=pt(u),d=pt(u).reverse(),p=f().concat(g());function b(v,E){return v.reduce((w,A)=>w-u[A],E)}function l(v,E){return v.reduce((w,A)=>b(w,E)>0?w.concat([A]):w,[])}function m(v){return s.map((E,w)=>({start:E-r[w]+.5+v,end:E+n-.5+v}))}function h(v,E,w){const A=m(E);return v.map(I=>{const F=w?0:-e,q=w?e:0,H=w?"end":"start",G=A[I][H];return{index:I,loopPoint:G,slideLocation:ft(-1),translate:Zt(t,i[I]),target:()=>a.get()>G?F:q}})}function f(){const v=o[0],E=l(d,v);return h(E,e,!1)}function g(){const v=n-o[0]-1,E=l(y,v);return h(E,-e,!0)}function x(){return p.every(({index:v})=>{const E=y.filter(w=>w!==v);return b(E,n)<=.1})}function C(){p.forEach(v=>{const{target:E,translate:w,slideLocation:A}=v,I=E();I!==A.get()&&(w.to(I),A.set(I))})}function N(){p.forEach(v=>v.translate.clear())}return{canLoop:x,clear:N,loop:C,loopPoints:p}}function Kn(t,n,e){let r,u=!1;function s(i){if(!e)return;function c(y){for(const d of y)if(d.type==="childList"){i.reInit(),n.emit("slidesChanged");break}}r=new MutationObserver(y=>{u||(xt(e)||e(i,y))&&c(y)}),r.observe(t,{childList:!0})}function o(){r&&r.disconnect(),u=!0}return{init:s,destroy:o}}function Un(t,n,e,r){const u={};let s=null,o=null,a,i=!1;function c(){a=new IntersectionObserver(l=>{i||(l.forEach(m=>{const h=n.indexOf(m.target);u[h]=m}),s=null,o=null,e.emit("slidesInView"))},{root:t.parentElement,threshold:r}),n.forEach(l=>a.observe(l))}function y(){a&&a.disconnect(),i=!0}function d(l){return mt(u).reduce((m,h)=>{const f=parseInt(h),{isIntersecting:g}=u[f];return(l&&g||!l&&!g)&&m.push(f),m},[])}function p(l=!0){if(l&&s)return s;if(!l&&o)return o;const m=d(l);return l&&(s=m),l||(o=m),m}return{init:c,destroy:y,get:p}}function Qn(t,n,e,r,u,s){const{measureSize:o,startEdge:a,endEdge:i}=t,c=e[0]&&u,y=l(),d=m(),p=e.map(o),b=h();function l(){if(!c)return 0;const g=e[0];return P(n[a]-g[a])}function m(){if(!c)return 0;const g=s.getComputedStyle(V(r));return parseFloat(g.getPropertyValue(`margin-${i}`))}function h(){return e.map((g,x,C)=>{const N=!x,L=Dt(C,x);return N?p[x]+y:L?p[x]+d:C[x+1][a]-g[a]}).map(P)}return{slideSizes:p,slideSizesWithGaps:b,startGap:y,endGap:d}}function Jn(t,n,e,r,u,s,o,a,i){const{startEdge:c,endEdge:y,direction:d}=t,p=Pt(e);function b(f,g){return pt(f).filter(x=>x%g===0).map(x=>f.slice(x,x+g))}function l(f){return f.length?pt(f).reduce((g,x,C)=>{const N=V(g)||0,L=N===0,v=x===yt(f),E=u[c]-s[N][c],w=u[c]-s[x][y],A=!r&&L?d(o):0,I=!r&&v?d(a):0,F=P(w-I-(E+A));return C&&F>n+i&&g.push(x),v&&g.push(f.length),g},[]).map((g,x,C)=>{const N=Math.max(C[x-1]||0);return f.slice(N,g)}):[]}function m(f){return p?b(f,e):l(f)}return{groupSlides:m}}function Xn(t,n,e,r,u,s,o){const{align:a,axis:i,direction:c,startIndex:y,loop:d,duration:p,dragFree:b,dragThreshold:l,inViewThreshold:m,slidesToScroll:h,skipSnaps:f,containScroll:g,watchResize:x,watchSlides:C,watchDrag:N,watchFocus:L}=s,v=2,E=An(),w=E.measure(n),A=e.map(E.measure),I=Nn(i,c),F=I.measureSize(w),q=Dn(F),H=In(a,F),G=!d&&!!g,tt=d||!!g,{slideSizes:Z,slideSizesWithGaps:K,startGap:U,endGap:ct}=Qn(I,w,A,e,tt,u),_=Jn(I,F,h,d,w,A,U,ct,v),{snaps:rt,snapsAligned:st}=Vn(I,H,w,A,_),Q=-V(rt)+V(K),{snapsContained:ut,scrollContainLimit:at}=Fn(F,Q,st,g,v),z=G?ut:st,{limit:M}=zn(Q,z,d),J=Yt(yt(z),y,d),B=J.clone(),O=pt(e),S=({dragHandler:it,scrollBody:wt,scrollBounds:It,options:{loop:St}})=>{St||It.constrain(it.pointerDown()),wt.seek()},T=({scrollBody:it,translate:wt,location:It,offsetLocation:St,previousLocation:un,scrollLooper:an,slideLooper:ln,dragHandler:fn,animation:dn,eventHandler:zt,scrollBounds:pn,options:{loop:Bt}},Rt)=>{const Vt=it.settled(),mn=!pn.shouldConstrain(),qt=Bt?Vt:Vt&&mn,Ht=qt&&!fn.pointerDown();Ht&&dn.stop();const gn=It.get()*Rt+un.get()*(1-Rt);St.set(gn),Bt&&(an.loop(it.direction()),ln.loop()),wt.to(St.get()),Ht&&zt.emit("settle"),qt||zt.emit("scroll")},D=Tn(r,u,()=>S(Lt),it=>T(Lt,it)),k=.68,$=z[J.get()],X=ft($),nt=ft($),W=ft($),et=ft($),lt=kn(X,W,nt,et,p,k),Et=Hn(d,z,Q,M,et),Ct=Gn(D,J,B,lt,Et,et,o),kt=Rn(M),jt=gt(),sn=Un(n,e,o,m),{slideRegistry:Ft}=qn(G,g,z,at,_,O),cn=_n(t,e,Ft,Ct,lt,jt,o,L),Lt={ownerDocument:r,ownerWindow:u,eventHandler:o,containerRect:w,slideRects:A,animation:D,axis:I,dragHandler:On(I,t,r,u,et,Pn(I,u),X,D,Ct,lt,Et,J,o,q,b,l,f,k,N),eventStore:jt,percentOfView:q,index:J,indexPrevious:B,limit:M,location:X,offsetLocation:W,previousLocation:nt,options:s,resizeHandler:Mn(n,o,u,e,I,x,E),scrollBody:lt,scrollBounds:jn(M,W,et,lt,q),scrollLooper:Bn(Q,M,W,[X,W,nt,et]),scrollProgress:kt,scrollSnapList:z.map(kt.get),scrollSnaps:z,scrollTarget:Et,scrollTo:Ct,slideLooper:$n(I,F,Q,Z,K,rt,z,W,e),slideFocus:cn,slidesHandler:Kn(n,o,C),slidesInView:sn,slideIndexes:O,slideRegistry:Ft,slidesToScroll:_,target:et,translate:Zt(I,n)};return Lt}function Yn(){let t={},n;function e(c){n=c}function r(c){return t[c]||[]}function u(c){return r(c).forEach(y=>y(n,c)),i}function s(c,y){return t[c]=r(c).concat([y]),i}function o(c,y){return t[c]=r(c).filter(d=>d!==y),i}function a(){t={}}const i={init:e,emit:u,off:o,on:s,clear:a};return i}const Zn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Wn(t){function n(s,o){return Xt(s,o||{})}function e(s){const o=s.breakpoints||{},a=mt(o).filter(i=>t.matchMedia(i).matches).map(i=>o[i]).reduce((i,c)=>n(i,c),{});return n(s,a)}function r(s){return s.map(o=>mt(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(t.matchMedia)}return{mergeOptions:n,optionsAtMedia:e,optionsMediaQueries:r}}function te(t){let n=[];function e(s,o){return n=o.filter(({options:a})=>t.optionsAtMedia(a).active!==!1),n.forEach(a=>a.init(s,t)),o.reduce((a,i)=>Object.assign(a,{[i.name]:i}),{})}function r(){n=n.filter(s=>s.destroy())}return{init:e,destroy:r}}function bt(t,n,e){const r=t.ownerDocument,u=r.defaultView,s=Wn(u),o=te(s),a=gt(),i=Yn(),{mergeOptions:c,optionsAtMedia:y,optionsMediaQueries:d}=s,{on:p,off:b,emit:l}=i,m=I;let h=!1,f,g=c(Zn,bt.globalOptions),x=c(g),C=[],N,L,v;function E(){const{container:O,slides:S}=x;L=(Tt(O)?t.querySelector(O):O)||t.children[0];const D=Tt(S)?L.querySelectorAll(S):S;v=[].slice.call(D||L.children)}function w(O){const S=Xn(t,L,v,r,u,O,i);if(O.loop&&!S.slideLooper.canLoop()){const T=Object.assign({},O,{loop:!1});return w(T)}return S}function A(O,S){h||(g=c(g,O),x=y(g),C=S||C,E(),f=w(x),d([g,...C.map(({options:T})=>T)]).forEach(T=>a.add(T,"change",I)),x.active&&(f.translate.to(f.location.get()),f.animation.init(),f.slidesInView.init(),f.slideFocus.init(B),f.eventHandler.init(B),f.resizeHandler.init(B),f.slidesHandler.init(B),f.options.loop&&f.slideLooper.loop(),L.offsetParent&&v.length&&f.dragHandler.init(B),N=o.init(B,C)))}function I(O,S){const T=_();F(),A(c({startIndex:T},O),S),i.emit("reInit")}function F(){f.dragHandler.destroy(),f.eventStore.clear(),f.translate.clear(),f.slideLooper.clear(),f.resizeHandler.destroy(),f.slidesHandler.destroy(),f.slidesInView.destroy(),f.animation.destroy(),o.destroy(),a.clear()}function q(){h||(h=!0,a.clear(),F(),i.emit("destroy"),i.clear())}function H(O,S,T){!x.active||h||(f.scrollBody.useBaseFriction().useDuration(S===!0?0:x.duration),f.scrollTo.index(O,T||0))}function G(O){const S=f.index.add(1).get();H(S,O,-1)}function tt(O){const S=f.index.add(-1).get();H(S,O,1)}function Z(){return f.index.add(1).get()!==_()}function K(){return f.index.add(-1).get()!==_()}function U(){return f.scrollSnapList}function ct(){return f.scrollProgress.get(f.offsetLocation.get())}function _(){return f.index.get()}function rt(){return f.indexPrevious.get()}function st(){return f.slidesInView.get()}function Q(){return f.slidesInView.get(!1)}function ut(){return N}function at(){return f}function z(){return t}function M(){return L}function J(){return v}const B={canScrollNext:Z,canScrollPrev:K,containerNode:M,internalEngine:at,destroy:q,off:b,on:p,emit:l,plugins:ut,previousScrollSnap:rt,reInit:m,rootNode:z,scrollNext:G,scrollPrev:tt,scrollProgress:ct,scrollSnapList:U,scrollTo:H,selectedScrollSnap:_,slideNodes:J,slidesInView:st,slidesNotInView:Q};return A(n,e),setTimeout(()=>i.emit("init"),0),B}bt.globalOptions=void 0;function Mt(t={},n=[]){const e=Y.useRef(t),r=Y.useRef(n),[u,s]=Y.useState(),[o,a]=Y.useState(),i=Y.useCallback(()=>{u&&u.reInit(e.current,r.current)},[u]);return Y.useEffect(()=>{Ot(e.current,t)||(e.current=t,i())},[t,i]),Y.useEffect(()=>{Cn(r.current,n)||(r.current=n,i())},[n,i]),Y.useEffect(()=>{if(En()&&o){bt.globalOptions=Mt.globalOptions;const c=bt(o,e.current,r.current);return s(c),()=>c.destroy()}else s(void 0)},[o,s]),[a,u]}Mt.globalOptions=void 0;const Wt=j.createContext(null);function vt(){const t=j.useContext(Wt);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}const tn=j.forwardRef(({orientation:t="horizontal",opts:n,setApi:e,plugins:r,className:u,children:s,...o},a)=>{const[i,c]=Mt({...n,axis:t==="horizontal"?"x":"y"},r),[y,d]=j.useState(!1),[p,b]=j.useState(!1),l=j.useCallback(g=>{g&&(d(g.canScrollPrev()),b(g.canScrollNext()))},[]),m=j.useCallback(()=>{c==null||c.scrollPrev()},[c]),h=j.useCallback(()=>{c==null||c.scrollNext()},[c]),f=j.useCallback(g=>{g.key==="ArrowLeft"?(g.preventDefault(),m()):g.key==="ArrowRight"&&(g.preventDefault(),h())},[m,h]);return j.useEffect(()=>{!c||!e||e(c)},[c,e]),j.useEffect(()=>{if(c)return l(c),c.on("reInit",l),c.on("select",l),()=>{c==null||c.off("select",l)}},[c,l]),R.jsx(Wt.Provider,{value:{carouselRef:i,api:c,opts:n,orientation:t||((n==null?void 0:n.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:h,canScrollPrev:y,canScrollNext:p},children:R.jsx("div",{ref:a,onKeyDownCapture:f,className:ht.cn("relative",u),role:"region","aria-roledescription":"carousel",...o,children:s})})});tn.displayName="Carousel";const nn=j.forwardRef(({className:t,...n},e)=>{const{carouselRef:r,orientation:u}=vt();return R.jsx("div",{ref:r,className:"overflow-hidden",children:R.jsx("div",{ref:e,className:ht.cn("flex",u==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...n})})});nn.displayName="CarouselContent";const en=j.forwardRef(({className:t,...n},e)=>{const{orientation:r}=vt();return R.jsx("div",{ref:e,role:"group","aria-roledescription":"slide",className:ht.cn("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",t),...n})});en.displayName="CarouselItem";const on=j.forwardRef(({className:t,variant:n,size:e="icon",...r},u)=>{const{t:s}=Ut.useTranslation(),{orientation:o,scrollPrev:a,canScrollPrev:i}=vt();return R.jsxs(Qt.Button,{ref:u,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",o==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!i,onClick:a,...r,children:[R.jsx(Sn,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only",children:s("Previous slide")})]})});on.displayName="CarouselPrevious";const rn=j.forwardRef(({className:t,variant:n,size:e="icon",...r},u)=>{const{t:s}=Ut.useTranslation(),{orientation:o,scrollNext:a,canScrollNext:i}=vt();return R.jsxs(Qt.Button,{ref:u,variant:n,size:e,className:ht.cn("absolute h-8 w-8 rounded-full",o==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!i,onClick:a,...r,children:[R.jsx(xn,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only",children:s("Next slide")})]})});rn.displayName="CarouselNext";exports.Carousel=tn;exports.CarouselContent=nn;exports.CarouselItem=en;exports.CarouselNext=rn;exports.CarouselPrevious=on;
12
12
  //# sourceMappingURL=index.cjs.js.map